(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,i){t.exports=i("zUnb")},"5DRE":function(t,e,i){var s,n,r;r=function(t){function e(t,e,i,s){t.hasOwnProperty(e)||(t[e]=s.apply(null,i))}e(t=t?t._modules:{},"Stock/Indicators/VBPIndicator.js",[t["Core/Globals.js"],t["Core/Series/Point.js"],t["Core/Utilities.js"]],(function(t,e,i){var s=i.addEvent,n=i.animObject,r=i.arrayMax,o=i.arrayMin,a=i.correctFloat,l=i.error,h=i.extend,c=i.isArray;i=i.seriesType;var u=Math.abs,d=t.noop,p=t.seriesTypes.column.prototype;i("vbp","sma",{params:{ranges:12,volumeSeriesID:"volume"},zoneLines:{enabled:!0,styles:{color:"#0A9AC9",dashStyle:"LongDash",lineWidth:1}},volumeDivision:{enabled:!0,styles:{positiveColor:"rgba(144, 237, 125, 0.8)",negativeColor:"rgba(244, 91, 91, 0.8)"}},animationLimit:1e3,enableMouseTracking:!1,pointPadding:0,zIndex:-1,crisp:!0,dataGrouping:{enabled:!1},dataLabels:{allowOverlap:!0,enabled:!0,format:"P: {point.volumePos:.2f} | N: {point.volumeNeg:.2f}",padding:0,style:{fontSize:"7px"},verticalAlign:"top"}},{nameBase:"Volume by Price",bindTo:{series:!1,eventName:"afterSetExtremes"},calculateOn:"render",markerAttribs:d,drawGraph:d,getColumnMetrics:p.getColumnMetrics,crispCol:p.crispCol,init:function(e){t.seriesTypes.sma.prototype.init.apply(this,arguments);var i=this.options.params,s=this.linkedParent;return i=e.get(i.volumeSeriesID),this.addCustomEvents(s,i),this},addCustomEvents:function(t,e){function i(){n.chart.redraw(),n.setData([]),n.zoneStarts=[],n.zoneLinesSVG&&(n.zoneLinesSVG.destroy(),delete n.zoneLinesSVG)}var n=this;return n.dataEventsToUnbind.push(s(t,"remove",(function(){i()}))),e&&n.dataEventsToUnbind.push(s(e,"remove",(function(){i()}))),n},animate:function(t){var e=this,i=e.chart.inverted,s=e.group,r={};!t&&s&&(t=i?"translateY":"translateX",i=i?e.yAxis.top:e.xAxis.left,s["forceAnimate:"+t]=!0,r[t]=i,s.animate(r,h(n(e.options.animation),{step:function(t,i){e.group.attr({scaleX:Math.max(.001,i.pos)})}})))},drawPoints:function(){this.options.volumeDivision.enabled&&(this.posNegVolume(!0,!0),p.drawPoints.apply(this,arguments),this.posNegVolume(!1,!1)),p.drawPoints.apply(this,arguments)},posNegVolume:function(t,e){var i,s=e?["positive","negative"]:["negative","positive"],n=this.options.volumeDivision,r=this.points.length,o=[],a=[],l=0;for(t?(this.posWidths=o,this.negWidths=a):(o=this.posWidths,a=this.negWidths);ln.pointPadding?n.pointPadding:.1,y=r(n=s.volumeDataArray),v=o.plotWidth/2,b=o.plotTop,x=u(l.toPixels(h)-l.toPixels(h+s.rangeStep)),_=u(l.toPixels(h)-l.toPixels(h+s.rangeStep));m&&(h=u(x*(1-2*m)),f=u((x-h)/2),x=u(h)),g.forEach((function(n,r){e=n.barX=n.plotX=0,i=n.plotY=l.toPixels(d[r].start)-b-(l.reversed?x-_:x)-f,t=a(v*d[r].wholeVolumeData/y),n.pointWidth=t,n.shapeArgs=s.crispCol.apply(s,[e,i,t,x]),n.volumeNeg=d[r].negativeVolumeData,n.volumePos=d[r].positiveVolumeData,n.volumeAll=d[r].wholeVolumeData})),c.enabled&&s.drawZones(o,l,s.zoneStarts,c.styles)}},getValues:function(t,e){var i,s=t.processedXData,n=t.processedYData,r=this.chart,o=e.ranges,a=[],h=[],u=[];if(t.chart)if(i=r.get(e.volumeSeriesID)){if(!(e=c(n[0]))||4===n[0].length)return(this.priceZones=this.specifyZones(e,s,n,o,i)).forEach((function(t,e){a.push([t.x,t.end]),h.push(a[e][0]),u.push(a[e][1])})),{values:a,xData:h,yData:u};l("Type of "+t.name+" series is different than line, OHLC or candlestick.",!0,r)}else l("Series "+e.volumeSeriesID+" not found! Check `volumeSeriesID`.",!0,r);else l("Base series not found! In case it has been removed, add a new one.",!0,r)},specifyZones:function(t,e,i,s,n){if(t){for(var l,h=i.length,c=i[0][3],u=c,d=1;du&&(u=l);h={min:c,max:u}}else h=!1;h=(c=h)?c.min:o(i),l=c?c.max:r(i),c=this.zoneStarts=[],u=[];var p=0;if(d=1,!h||!l)return this.points.length&&(this.setData([]),this.zoneStarts=[],this.zoneLinesSVG.destroy()),[];var f=this.rangeStep=a(l-h)/s;for(c.push(h);p=e.end&&e.index===f&&(a=!0),(l>e.start||o)&&(ll?e.negativeVolumeData+=p[h]:e.positiveVolumeData+=p[h]);c.volumeDataArray.push(e.wholeVolumeData)})),e},drawZones:function(t,e,i,s){var n,r=t.renderer,o=this.zoneLinesSVG,a=[],l=t.plotWidth,h=t.plotTop;i.forEach((function(i){n=e.toPixels(i)-h,a=a.concat(t.renderer.crispLine([["M",0,n],["L",l,n]],s.lineWidth))})),o?o.animate({d:a}):o=this.zoneLinesSVG=r.path(a).attr({"stroke-width":s.lineWidth,stroke:s.color,dashstyle:s.dashStyle,zIndex:this.group.zIndex+.1}).add(this.group)}},{destroy:function(){return this.negativeGraphic&&(this.negativeGraphic=this.negativeGraphic.destroy()),e.prototype.destroy.apply(this,arguments)}})})),e(t,"masters/indicators/volume-by-price.src.js",[],(function(){}))},t.exports?(r.default=r,t.exports=r):(s=[i("6n/F"),i("N9ju")],void 0===(n=(function(t){return r(t),r.Highcharts=t,r}).apply(e,s))||(t.exports=n))},"5ZEx":function(t,e,i){var s,n,r;n="undefined"!=typeof window?window:this,r=function(t){function e(t,e,i,s){t.hasOwnProperty(e)||(t[e]=s.apply(null,i))}var i={};return e(i,"Core/Globals.js",[],(function(){var e=void 0!==t?t:"undefined"!=typeof window?window:{},i=e.document,s=e.navigator&&e.navigator.userAgent||"",n=i&&i.createElementNS&&!!i.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,r=/(edge|msie|trident)/i.test(s)&&!e.opera,o=-1!==s.indexOf("Firefox"),a=-1!==s.indexOf("Chrome"),l=o&&4>parseInt(s.split("Firefox/")[1],10);return{product:"Highcharts",version:"8.2.0",deg2rad:2*Math.PI/360,doc:i,hasBidiBug:l,hasTouch:!!e.TouchEvent,isMS:r,isWebKit:-1!==s.indexOf("AppleWebKit"),isFirefox:o,isChrome:a,isSafari:!a&&-1!==s.indexOf("Safari"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(s),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:n,win:e,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[],dateFormats:{}}})),e(i,"Core/Utilities.js",[i["Core/Globals.js"]],(function(t){function e(t,i,s,n){var r=i?"Highcharts error":"Highcharts warning";32===t&&(t=r+": Deprecated member");var o=m(t),a=o?r+" #"+t+": www.highcharts.com/errors/"+t+"/":t.toString();if(r=function(){if(i)throw Error(a);h.console&&-1===e.messages.indexOf(a)&&console.log(a)},void 0!==n){var l="";o&&(a+="?"),q(n,(function(t,e){l+="\n - "+e+": "+t,o&&(a+=encodeURI(e)+"="+encodeURI(t))})),a+=l}s?Q(s,"displayError",{code:t,message:a,params:n},r):r(),e.messages.push(a)}function i(){var t,e=arguments,i={},n=function(t,e){return"object"!=typeof t&&(t={}),q(e,(function(i,r){t[r]=!s(i,!0)||g(i)||f(i)?e[r]:n(t[r]||{},i)})),t};!0===e[0]&&(i=e[1],e=Array.prototype.slice.call(e,2));var r=e.length;for(t=0;ts)for(var n=0;n=r+this.startTime){this.now=this.end,this.pos=1,this.update();var a=o[this.prop]=!0;q(o,(function(t){!0!==t&&(a=!1)})),a&&n&&n.call(s),t=!1}else this.pos=i.easing((e-this.startTime)/r),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t},e.prototype.initPath=function(t,e,i){function s(t,e){for(;t.lengtht&&-1/0=i&&(e=[1/i]))),s=0;s=t||!n&&a<=(e[s]+(e[s+1]||e[s]))/2));s++);return F(o*i,-Math.round(Math.log(.001)/Math.LN10))},O=t.stableSort=function(t,e){var i,s,n=t.length;for(s=0;si&&(i=t[e]);return i},R=t.destroyObjectProperties=function(t,e){q(t,(function(i,s){i&&i!==e&&i.destroy&&i.destroy(),delete t[s]}))},B=t.discardElement=function(e){var i=t.garbageBin;i||(i=k("div")),e&&i.appendChild(e),i.innerHTML=""},F=t.correctFloat=function(t,e){return parseFloat(t.toPrecision(e||14))},N=t.setAnimation=function(t,e){e.renderer.globalAnimation=r(t,e.options.chart.animation,!0)},j=t.animObject=function(e){return s(e)?t.merge({duration:500,defer:0},e):{duration:e?500:0,defer:0}},z=t.timeUnits={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},H=t.numberFormat=function(e,i,s,n){i=+i;var o=t.defaultOptions.lang,a=((e=+e||0).toString().split(".")[1]||"").split("e")[0].length,l=e.toString().split("e");if(-1===i)i=Math.min(a,20);else if(m(i)){if(i&&l[1]&&0>l[1]){var h=i+ +l[1];0<=h?(l[0]=(+l[0]).toExponential(h).split("e")[0],i=h):(l[0]=l[0].split(".")[0]||0,e=20>i?(l[0]*Math.pow(10,l[1])).toFixed(i):0,l[1]=0)}}else i=2;var c=(Math.abs(l[1]?l[0]:e)+Math.pow(10,-Math.max(i,a)-1)).toFixed(i);return h=3<(a=String(u(c))).length?a.length%3:0,s=r(s,o.decimalPoint),n=r(n,o.thousandsSep),e=(0>e?"-":"")+(h?a.substr(0,h)+n:""),e+=a.substr(h).replace(/(\d{3})(?=\d)/g,"$1"+n),i&&(e+=s+c.slice(-i)),l[1]&&0!=+e&&(e+="e"+l[1]),e};Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};var W=t.getStyle=function(i,s,n){return"width"===s?(s=Math.min(i.offsetWidth,i.scrollWidth),(n=i.getBoundingClientRect&&i.getBoundingClientRect().width)=s-1&&(s=Math.floor(n)),Math.max(0,s-t.getStyle(i,"padding-left")-t.getStyle(i,"padding-right"))):"height"===s?Math.max(0,Math.min(i.offsetHeight,i.scrollHeight)-t.getStyle(i,"padding-top")-t.getStyle(i,"padding-bottom")):(h.getComputedStyle||e(27,!0),(i=h.getComputedStyle(i,void 0))&&(i=i.getPropertyValue(s),r(n,"opacity"!==s)&&(i=u(i))),i)},V=t.getDeferredAnimation=function(t,e,i){var s=j(e),n=0,r=0;return(i?[i]:t.series).forEach((function(t){t=j(t.options.animation),n=e&&v(e.defer)?s.defer:Math.max(n,t.duration+t.defer),r=Math.min(s.duration,t.duration)})),t.renderer.forExport&&(n=0),{defer:Math.max(0,n-r),duration:Math.min(n,r)}},G=t.inArray=function(t,i,s){return e(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),i.indexOf(t,s)},U=t.find=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){var i,s=t.length;for(i=0;ie?t>16,(65280&e)>>8,255&e,1]:4===n&&(i=[(3840&e)>>4|(3840&e)>>8,(240&e)>>4|240&e,(15&e)<<4|15&e,1])}if(!i)for(s=this.parsers.length;s--&&!i;){var r=this.parsers[s];(n=r.regex.exec(e))&&(i=r.parse(n))}}this.rgba=i||[]},t.prototype.get=function(t){var e=this.input,n=this.rgba;if(void 0!==this.stops){var r=s(e);r.stops=[].concat(r.stops),this.stops.forEach((function(e,i){r.stops[i]=[r.stops[i][0],e.get(t)]}))}else r=n&&i(n[0])?"rgb"===t||!t&&1===n[3]?"rgb("+n[0]+","+n[1]+","+n[2]+")":"a"===t?n[3]:"rgba("+n.join(",")+")":e;return r},t.prototype.brighten=function(t){var e,s=this.rgba;if(this.stops)this.stops.forEach((function(e){e.brighten(t)}));else if(i(t)&&0!==t)for(e=0;3>e;e++)s[e]+=n(255*t),0>s[e]&&(s[e]=0),255n.width)&&(n={width:0,height:0})}else n=this.htmlGetBBox();if(r.isSVG&&(t=n.width,r=n.height,u&&(n.height=r={"11px,17":14,"13px,20":16}[a&&a.fontSize+","+Math.round(r)]||r),e&&(a=e*s,n.width=Math.abs(r*Math.sin(a))+Math.abs(t*Math.cos(a)),n.height=Math.abs(r*Math.cos(a))+Math.abs(t*Math.sin(a)))),p&&0]*>/g,"").replace(/</g,"<").replace(/>/g,">")))},i.prototype.toFront=function(){var t=this.element;return t.parentNode.appendChild(t),this},i.prototype.translate=function(t,e){return this.attr({translateX:t,translateY:e})},i.prototype.updateShadows=function(t,e,i){var s=this.shadows;if(s)for(var n=s.length;n--;)i.call(s[n],"height"===t?Math.max(e-(s[n].cutHeight||0),0):"d"===t?this.d:e,t,s[n])},i.prototype.updateTransform=function(){var t=this.translateX||0,e=this.translateY||0,i=this.scaleX,s=this.scaleY,n=this.inverted,r=this.rotation,o=this.matrix,a=this.element;n&&(t+=this.width,e+=this.height),t=["translate("+t+","+e+")"],m(o)&&t.push("matrix("+o.join(",")+")"),n?t.push("rotate(90) scale(-1,1)"):r&&t.push("rotate("+r+" "+A(this.rotationOriginX,a.getAttribute("x"),0)+" "+A(this.rotationOriginY,a.getAttribute("y")||0)+")"),(m(i)||m(s))&&t.push("scale("+A(i,1)+" "+A(s,1)+")"),t.length&&a.setAttribute("transform",t.join(" "))},i.prototype.visibilitySetter=function(t,e,i){"inherit"===t?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t},i.prototype.xGetter=function(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)},i.prototype.zIndexSetter=function(t,e){var i=this.renderer,s=this.parentGroup,n=(s||i).element||i.box,r=this.element,o=!1;i=n===i.box;var a,l=this.added;if(m(t)?(r.setAttribute("data-z-index",t),this[e]===(t=+t)&&(l=!1)):m(this[e])&&r.removeAttribute("data-z-index"),this[e]=t,l){for((t=this.zIndex)&&s&&(s.handleZ=!0),a=(e=n.childNodes).length-1;0<=a&&!o;a--){l=(s=e[a]).getAttribute("data-z-index");var h=!m(l);s!==r&&(0>t&&h&&!i&&!a?(n.insertBefore(r,e[a]),o=!0):(E(l)<=t||h&&(!m(t)||0<=t))&&(n.insertBefore(r,e[a+1]||null),o=!0))}o||(n.insertBefore(r,e[i?3:0]||null),o=!0)}return o},i}()).prototype["stroke-widthSetter"]=i.prototype.strokeSetter,i.prototype.yGetter=i.prototype.xGetter,i.prototype.matrixSetter=i.prototype.rotationOriginXSetter=i.prototype.rotationOriginYSetter=i.prototype.rotationSetter=i.prototype.scaleXSetter=i.prototype.scaleYSetter=i.prototype.translateXSetter=i.prototype.translateYSetter=i.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0},e.SVGElement=i,e.SVGElement})),e(i,"Core/Renderer/SVG/SVGLabel.js",[i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],(function(t,e){var i=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),s=e.defined,n=e.extend,r=e.isNumber,o=e.merge,a=e.removeEvent;return function(e){function l(t,i,s,n,r,o,a,h,c,u){var d=e.call(this)||this;if(d.init(t,"g"),d.textStr=i,d.x=s,d.y=n,d.anchorX=o,d.anchorY=a,d.baseline=c,d.className=u,"button"!==u&&d.addClass("highcharts-label"),u&&d.addClass("highcharts-"+u),d.text=t.text("",0,0,h).attr({zIndex:1}),"string"==typeof r){var p=/^url\((.*?)\)$/.test(r);(d.renderer.symbols[r]||p)&&(d.symbolKey=r)}return d.bBox=l.emptyBBox,d.padding=3,d.paddingLeft=0,d.baselineOffset=0,d.needsBox=t.styledMode||p,d.deferredAttr={},d.alignFactor=0,d}return i(l,e),l.prototype.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==this.alignFactor&&(this.alignFactor=t,this.bBox&&r(this.xSetting)&&this.attr({x:this.xSetting}))},l.prototype.anchorXSetter=function(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)},l.prototype.anchorYSetter=function(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)},l.prototype.boxAttr=function(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e},l.prototype.css=function(e){if(e){var i={};e=o(e),l.textProps.forEach((function(t){void 0!==e[t]&&(i[t]=e[t],delete e[t])})),this.text.css(i);var s="fontSize"in i||"fontWeight"in i;("width"in i||s)&&(this.updateBoxSize(),s&&this.updateTextPadding())}return t.prototype.css.call(this,e)},l.prototype.destroy=function(){a(this.element,"mouseenter"),a(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),t.prototype.destroy.call(this)},l.prototype.fillSetter=function(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)},l.prototype.getBBox=function(){var t=this.bBox,e=this.padding;return{width:t.width+2*e,height:t.height+2*e,x:t.x-e,y:t.y-e}},l.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},l.prototype.heightSetter=function(t){this.heightSetting=t},l.prototype.on=function(e,i){var s=this,n=s.text,r=n&&"SPAN"===n.element.tagName?n:void 0;if(r){var o=function(t){("mouseenter"===e||"mouseleave"===e)&&t.relatedTarget instanceof Element&&(s.element.contains(t.relatedTarget)||r.element.contains(t.relatedTarget))||i.call(s.element,t)};r.on(e,o)}return t.prototype.on.call(s,e,o||i),s},l.prototype.onAdd=function(){var t=this.textStr;this.text.add(this),this.attr({text:s(t)?t:"",x:this.x,y:this.y}),this.box&&s(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},l.prototype.paddingSetter=function(t){s(t)&&t!==this.padding&&(this.padding=t,this.updateTextPadding())},l.prototype.paddingLeftSetter=function(t){s(t)&&t!==this.paddingLeft&&(this.paddingLeft=t,this.updateTextPadding())},l.prototype.rSetter=function(t,e){this.boxAttr(e,t)},l.prototype.shadow=function(t){return t&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(t)),this},l.prototype.strokeSetter=function(t,e){this.stroke=t,this.boxAttr(e,t)},l.prototype["stroke-widthSetter"]=function(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)},l.prototype["text-alignSetter"]=function(t){this.textAlign=t},l.prototype.textSetter=function(t){void 0!==t&&this.text.attr({text:t}),this.updateBoxSize(),this.updateTextPadding()},l.prototype.updateBoxSize=function(){var t=this.text.element.style,e={},i=this.padding,o=this.paddingLeft,a=r(this.widthSetting)&&r(this.heightSetting)&&!this.textAlign||!s(this.text.textStr)?l.emptyBBox:this.text.getBBox();this.width=(this.widthSetting||a.width||0)+2*i+o,this.height=(this.heightSetting||a.height||0)+2*i,this.baselineOffset=i+Math.min(this.renderer.fontMetrics(t&&t.fontSize,this.text).b,a.height||1/0),this.needsBox&&(this.box||((t=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),t.add(this),t=this.getCrispAdjust(),e.x=t,e.y=(this.baseline?-this.baselineOffset:0)+t),e.width=Math.round(this.width),e.height=Math.round(this.height),this.box.attr(n(e,this.deferredAttr)),this.deferredAttr={}),this.bBox=a},l.prototype.updateTextPadding=function(){var t=this.text,e=this.baseline?0:this.baselineOffset,i=this.paddingLeft+this.padding;s(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(i+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),i===t.x&&e===t.y||(t.attr("x",i),t.hasBoxWidthChanged&&(this.bBox=t.getBBox(!0),this.updateBoxSize()),void 0!==e&&t.attr("y",e)),t.x=i,t.y=e},l.prototype.widthSetter=function(t){this.widthSetting=r(t)?t:void 0},l.prototype.xSetter=function(t){this.x=t,this.alignFactor&&(t-=this.alignFactor*((this.widthSetting||this.bBox.width)+2*this.padding),this["forceAnimate:x"]=!0),this.xSetting=Math.round(t),this.attr("translateX",this.xSetting)},l.prototype.ySetter=function(t){this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)},l.emptyBBox={width:0,height:0,x:0,y:0},l.textProps="color cursor direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),l}(t)})),e(i,"Core/Renderer/SVG/SVGRenderer.js",[i["Core/Color.js"],i["Core/Globals.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Renderer/SVG/SVGLabel.js"],i["Core/Utilities.js"]],(function(t,e,i,s,n){var r=n.addEvent,o=n.attr,a=n.createElement,l=n.css,h=n.defined,c=n.destroyObjectProperties,u=n.extend,d=n.isArray,p=n.isNumber,f=n.isObject,g=n.isString,m=n.merge,y=n.objectEach,v=n.pick,b=n.pInt,x=n.splat,_=n.uniqueKey,w=e.charts,C=e.deg2rad,k=e.doc,S=e.isFirefox,A=e.isMS,E=e.isWebKit;n=e.noop;var M=e.svg,T=e.SVG_NS,D=e.symbolSizes,P=e.win,O=function(){function e(t,e,i,s,n,r,o){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(t,e,i,s,n,r,o)}return e.prototype.init=function(t,e,i,s,n,a,h){var c,u=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"});h||u.css(this.getStyle(s)),t.appendChild(s=u.element),o(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&o(s,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=s,this.boxWrapper=u,this.alignedObjects=[],this.url=(S||E)&&k.getElementsByTagName("base").length?P.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(k.createTextNode("Created with Highcharts 8.2.0")),this.defs=this.createElement("defs").add(),this.allowHTML=a,this.forExport=n,this.styledMode=h,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,i,!1),S&&t.getBoundingClientRect&&((e=function(){l(t,{left:0,top:0}),c=t.getBoundingClientRect(),l(t,{left:Math.ceil(c.left)-c.left+"px",top:Math.ceil(c.top)-c.top+"px"})})(),this.unSubPixelFix=r(P,"resize",e))},e.prototype.definition=function(t){var e=this;return function t(i,s){var n;return x(i).forEach((function(i){var r=e.createElement(i.tagName),o={};y(i,(function(t,e){"tagName"!==e&&"children"!==e&&"textContent"!==e&&(o[e]=t)})),r.attr(o),r.add(s||e.defs),i.textContent&&r.element.appendChild(k.createTextNode(i.textContent)),t(i.children||[],r),n=r})),n}(t)},e.prototype.getStyle=function(t){return this.style=u({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},e.prototype.setStyle=function(t){this.boxWrapper.css(this.getStyle(t))},e.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},e.prototype.destroy=function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),c(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},e.prototype.createElement=function(t){var e=new this.Element;return e.init(this,t),e},e.prototype.getRadialAttr=function(t,e){return{cx:t[0]-t[2]/2+e.cx*t[2],cy:t[1]-t[2]/2+e.cy*t[2],r:e.r*t[2]}},e.prototype.truncate=function(t,e,i,s,n,r,o){var a,l,h=this,c=t.rotation,u=s?1:0,d=(i||s).length,p=d,f=[],g=function(t){e.firstChild&&e.removeChild(e.firstChild),t&&e.appendChild(k.createTextNode(t))},m=function(r,a){if(void 0===f[a=a||r])if(e.getSubStringLength)try{f[a]=n+e.getSubStringLength(0,s?a+1:a)}catch(l){}else h.getSpanWidth&&(g(o(i||s,r)),f[a]=n+h.getSpanWidth(t,e));return f[a]};t.rotation=0;var y=m(e.textContent.length);if(l=n+y>r){for(;u<=d;)p=Math.ceil((u+d)/2),s&&(a=o(s,p)),y=m(p,a&&a.length-1),u===d?u=d+1:y>r?d=p-1:u=p;0===d?g(""):i&&d===i.length-1||g(a||o(i||s,p))}return s&&s.splice(0,p),t.actualWidth=y,t.rotation=c,l},e.prototype.buildText=function(t){var e,i,s=t.element,n=this,r=n.forExport,a=v(t.textStr,"").toString(),h=-1!==a.indexOf("<"),c=s.childNodes,u=o(s,"x"),d=t.styles,p=t.textWidth,f=d&&d.lineHeight,m=d&&d.textOutline,x=d&&"ellipsis"===d.textOverflow,_=d&&"nowrap"===d.whiteSpace,w=d&&d.fontSize,C=c.length;d=p&&!t.added&&this.box;var S=function(t){var e;return n.styledMode||(e=/(px|em)$/.test(t&&t.style.fontSize)?t.style.fontSize:w||n.style.fontSize||12),f?b(f):n.fontMetrics(e,t.getAttribute("style")?t:s).h},A=function(t,e){return y(n.escapes,(function(i,s){e&&-1!==e.indexOf(i)||(t=t.toString().replace(new RegExp(i,"g"),s))})),t},E=function(t,e){var i=t.indexOf("<");if(-1!==(i=(t=t.substring(i,t.indexOf(">")-i)).indexOf(e+"="))&&('"'===(e=t.charAt(i=i+e.length+1))||"'"===e))return(t=t.substring(i+1)).substring(0,t.indexOf(e))},D=//g,P=[a,x,_,f,m,w,p].join();if(P!==t.textCache){for(t.textCache=P;C--;)s.removeChild(c[C]);h||m||x||p||-1!==a.indexOf(" ")&&(!_||D.test(a))?(d&&d.appendChild(s),(a=(a=h?(a=n.styledMode?a.replace(/<(b|strong)>/g,'').replace(/<(i|em)>/g,''):a.replace(/<(b|strong)>/g,'').replace(/<(i|em)>/g,'')).replace(//g,"").split(D):[a]).filter((function(t){return""!==t}))).forEach((function(a,h){var c=0,d=0,f=(a=a.replace(/^\s+|\s+$/g,"").replace(//g,"|||")).split("|||");f.forEach((function(a){if(""!==a||1===f.length){var g,m,y={},v=k.createElementNS(n.SVG_NS,"tspan");if((g=E(a,"class"))&&o(v,"class",g),(g=E(a,"style"))&&(g=g.replace(/(;| |^)color([ :])/,"$1fill$2"),o(v,"style",g)),(m=E(a,"href"))&&!r&&-1===m.split(":")[0].toLowerCase().indexOf("javascript")){var b=k.createElementNS(n.SVG_NS,"a");o(b,"href",m),o(v,"class","highcharts-anchor"),b.appendChild(v),n.styledMode||l(v,{cursor:"pointer"})}if(" "!==(a=A(a.replace(/<[a-zA-Z\/](.|\n)*?>/g,"")||" "))){if(v.appendChild(k.createTextNode(a)),c?y.dx=0:h&&null!==u&&(y.x=u),o(v,y),s.appendChild(b||v),!c&&i&&(!M&&r&&l(v,{display:"block"}),o(v,"dy",S(v))),p){var C=a.replace(/([^\^])-/g,"$1- ").split(" ");if(y=!_&&(1(t=/px/.test(t)?b(t):12)?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}},e.prototype.rotCorr=function(t,e,i){var s=t;return e&&i&&(s=Math.max(s*Math.cos(e*C),4)),{x:-t/3*Math.sin(e*C),y:s}},e.prototype.pathToSegments=function(t){for(var e=[],i=[],s={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},n=0;n":">","'":"'",'"':"""},O.prototype.symbols={circle:function(t,e,i,s){return this.arc(t+i/2,e+s/2,i/2,s/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},square:function(t,e,i,s){return[["M",t,e],["L",t+i,e],["L",t+i,e+s],["L",t,e+s],["Z"]]},triangle:function(t,e,i,s){return[["M",t+i/2,e],["L",t+i,e+s],["L",t,e+s],["Z"]]},"triangle-down":function(t,e,i,s){return[["M",t,e],["L",t+i,e],["L",t+i/2,e+s],["Z"]]},diamond:function(t,e,i,s){return[["M",t+i/2,e],["L",t+i,e+s/2],["L",t+i/2,e+s],["L",t,e+s/2],["Z"]]},arc:function(t,e,i,s,n){var r=[];if(n){var o=n.start||0,a=n.end||0,l=n.r||i;i=n.r||s||i;var c=.001>Math.abs(a-o-2*Math.PI);a-=.001,s=n.innerR,c=v(n.open,c);var u=Math.cos(o),d=Math.sin(o),p=Math.cos(a),f=Math.sin(a);o=v(n.longArc,.001>a-o-Math.PI?0:1),r.push(["M",t+l*u,e+i*d],["A",l,i,0,o,v(n.clockwise,1),t+l*p,e+i*f]),h(s)&&r.push(c?["M",t+s*p,e+s*f]:["L",t+s*p,e+s*f],["A",s,s,0,o,h(n.clockwise)?1-n.clockwise:0,t+s*u,e+s*d]),c||r.push(["Z"])}return r},callout:function(t,e,i,s,n){var r=Math.min(n&&n.r||0,i,s),o=r+6,a=n&&n.anchorX||0;n=n&&n.anchorY||0;var l=[["M",t+r,e],["L",t+i-r,e],["C",t+i,e,t+i,e,t+i,e+r],["L",t+i,e+s-r],["C",t+i,e+s,t+i,e+s,t+i-r,e+s],["L",t+r,e+s],["C",t,e+s,t,e+s,t,e+s-r],["L",t,e+r],["C",t,e,t,e,t+r,e]];return a&&a>i?n>e+o&&na?n>e+o&&ns&&a>t+o&&an&&a>t+o&&athis.oldTextWidth)&&((p=this.textPxLength)||(o(e,{width:"",whiteSpace:d||"nowrap"}),p=e.offsetWidth),p=p>f),p&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)?(o(e,{width:f+"px",display:"block",whiteSpace:d||"normal"}),this.oldTextWidth=f,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1,g!==this.cTT&&(d=t.fontMetrics(e.style.fontSize,e).b,!a(u)||u===(this.oldRotation||0)&&l===this.oldAlign||this.setSpanRotation(u,h,d),this.getSpanCorrection(!a(u)&&this.textPxLength||e.offsetWidth,d,h,u,l)),o(e,{left:n+(this.xCorr||0)+"px",top:r+(this.yCorr||0)+"px"}),this.cTT=g,this.oldRotation=u,this.oldAlign=l}}else this.alignOnAdd=!0},setSpanRotation:function(t,e,i){var s={},n=this.renderer.getTransformKey();s[n]=s.transform="rotate("+t+"deg)",s[n+(u?"Origin":"-origin")]=s.transformOrigin=100*e+"% "+i+"px",o(this.element,s)},getSpanCorrection:function(t,e,i){this.xCorr=-t*i,this.yCorr=-e}}),l(i.prototype,{getTransformKey:function(){return d&&!/Edge/.test(f.navigator.userAgent)?"-ms-transform":p?"-webkit-transform":u?"MozTransform":f.opera?"-o-transform":""},html:function(t,i,s){var o=this.createElement("span"),a=o.element,c=o.renderer,u=c.isSVG,d=function(t,i){["opacity","visibility"].forEach((function(s){t[s+"Setter"]=function(n,r,o){var a=t.div?t.div.style:i;e.prototype[s+"Setter"].call(this,n,r,o),a&&(a[r]=n)}})),t.addedSetters=!0};return o.textSetter=function(t){t!==a.innerHTML&&(delete this.bBox,delete this.oldTextWidth),this.textStr=t,a.innerHTML=h(t,""),o.doTransform=!0},u&&d(o,o.element.style),o.xSetter=o.ySetter=o.alignSetter=o.rotationSetter=function(t,e){"align"===e?o.alignValue=o.textAlign=t:o[e]=t,o.doTransform=!0},o.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},o.attr({text:t,x:Math.round(i),y:Math.round(s)}).css({position:"absolute"}),c.styledMode||o.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),a.style.whiteSpace="nowrap",o.css=o.htmlCss,u&&(o.add=function(t){var e=c.box.parentNode,i=[];if(this.parentGroup=t){var s=t.div;if(!s){for(;t;)i.push(t),t=t.parentGroup;i.reverse().forEach((function(t){function a(e,i){t[i]=e,"translateX"===i?c.left=e+"px":c.top=e+"px",t.doTransform=!0}var h=n(t.element,"class"),c=(s=t.div=t.div||r("div",h?{className:h}:void 0,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,pointerEvents:t.styles&&t.styles.pointerEvents},s||e)).style;l(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(s),on:function(){return i[0].div&&o.on.apply({element:i[0].div},arguments),t},translateXSetter:a,translateYSetter:a}),t.addedSetters||d(t)}))}}else s=e;return s.appendChild(a),o.added=!0,o.alignOnAdd&&o.htmlUpdateTransform(),o}),o}})})),e(i,"Core/Axis/Tick.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e){var i=e.clamp,s=e.correctFloat,n=e.defined,r=e.destroyObjectProperties,o=e.extend,a=e.fireEvent,l=e.isNumber,h=e.merge,c=e.objectEach,u=e.pick,d=t.deg2rad;return e=function(){function t(t,e,i,s,n){this.isNewLabel=this.isNew=!0,this.axis=t,this.pos=e,this.type=i||"",this.parameters=n||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,a(this,"init"),i||s||this.addLabel()}return t.prototype.addLabel=function(){var t=this,e=t.axis,i=e.options,r=e.chart,a=e.categories,l=e.logarithmic,h=e.names,c=t.pos,d=u(t.options&&t.options.labels,i.labels),p=e.tickPositions,f=c===p[0],g=c===p[p.length-1];h=this.parameters.category||(a?u(a[c],h[c],c):c);var m,y,v=t.label;if(a=(!d.step||1===d.step)&&1===e.tickInterval,p=p.info,e.dateTime&&p)var b=r.time.resolveDTLFormat(i.dateTimeLabelFormats[!i.grid&&p.higherRanks[c]||p.unitName]),x=b.main;t.isFirst=f,t.isLast=g,t.formatCtx={axis:e,chart:r,isFirst:f,isLast:g,dateTimeLabelFormat:x,tickPositionInfo:p,value:l?s(l.lin2log(h)):h,pos:c},i=e.labelFormatter.call(t.formatCtx,this.formatCtx),(y=b&&b.list)&&(t.shortenLabel=function(){for(m=0;mh&&s-c*pr&&(a=Math.round((n-s)/Math.cos(h*d))):(n=s+(1-c)*p,s-c*pr&&(g=r-t.x+g*c,m=-1),(g=Math.min(f,g))g||e.autoRotation&&(l.styles||{}).width)&&(a=g)),a&&(this.shortenLabel?this.shortenLabel():(y.width=Math.floor(a)+"px",(i.style||{}).textOverflow||(y.textOverflow="ellipsis"),l.css(y)))},t.prototype.moveLabel=function(t,e){var i=this,s=i.label,n=!1,r=i.axis,o=r.reversed;if(s&&s.textStr===t?(i.movedLabel=s,n=!0,delete i.label):c(r.ticks,(function(e){n||e.isNew||e===i||!e.label||e.label.textStr!==t||(i.movedLabel=e.label,n=!0,e.labelPos=i.movedLabel.xy,delete e.label)})),!n&&(i.labelPos||s)){var a=i.labelPos||s.xy;i.movedLabel=i.createLabel({x:s=r.horiz?o?0:r.width+r.left:a.x,y:r=r.horiz?a.y:o?r.width+r.left:0},t,e),i.movedLabel&&i.movedLabel.attr({opacity:0})}},t.prototype.render=function(t,e,i){var s=this.axis,n=s.horiz,r=this.pos,o=u(this.tickmarkOffset,s.tickmarkOffset);o=(r=this.getPosition(n,r,o,e)).x,s=n&&o===s.pos+s.len||!n&&r.y===s.pos?-1:1,i=u(i,1),this.isActive=!0,this.renderGridLine(e,i,s),this.renderMark(r,i,s),this.renderLabel(r,e,i,t),this.isNew=!1,a(this,"afterRender")},t.prototype.renderGridLine=function(t,e,i){var s=this.axis,n=s.options,r=this.gridLine,o={},a=this.pos,l=this.type,h=u(this.tickmarkOffset,s.tickmarkOffset),c=s.chart.renderer,d=l?l+"Grid":"grid",p=n[d+"LineWidth"],f=n[d+"LineColor"];n=n[d+"LineDashStyle"],r||(s.chart.styledMode||(o.stroke=f,o["stroke-width"]=p,n&&(o.dashstyle=n)),l||(o.zIndex=1),t&&(e=0),this.gridLine=r=c.path().attr(o).addClass("highcharts-"+(l?l+"-":"")+"grid-line").add(s.gridGroup)),r&&(i=s.getPlotLinePath({value:a+h,lineWidth:r.strokeWidth()*i,force:"pass",old:t}))&&r[t||this.isNew?"attr":"animate"]({d:i,opacity:e})},t.prototype.renderMark=function(t,e,i){var s=this.axis,n=s.options,r=s.chart.renderer,o=this.type,a=o?o+"Tick":"tick",l=s.tickSize(a),h=this.mark,c=!h,d=t.x;t=t.y;var p=u(n[a+"Width"],!o&&s.isXAxis?1:0);n=n[a+"Color"],l&&(s.opposite&&(l[0]=-l[0]),c&&(this.mark=h=r.path().addClass("highcharts-"+(o?o+"-":"")+"tick").add(s.axisGroup),s.chart.styledMode||h.attr({stroke:n,"stroke-width":p})),h[c?"attr":"animate"]({d:this.getMarkPath(d,t,l[0],h.strokeWidth()*i,s.horiz,r),opacity:e}))},t.prototype.renderLabel=function(t,e,i,s){var n=this.axis,r=n.horiz,o=n.options,a=this.label,h=o.labels,c=h.step;n=u(this.tickmarkOffset,n.tickmarkOffset);var d=!0,p=t.x;t=t.y,a&&l(p)&&(a.xy=t=this.getLabelPosition(p,t,a,r,h,n,s,c),this.isFirst&&!this.isLast&&!u(o.showFirstLabel,1)||this.isLast&&!this.isFirst&&!u(o.showLastLabel,1)?d=!1:!r||h.step||h.rotation||e||0===i||this.handleOverflow(t),c&&s%c&&(d=!1),d&&l(t.y)?(t.opacity=i,a[this.isNewLabel?"attr":"animate"](t),this.isNewLabel=!1):(a.attr("y",-9999),this.isNewLabel=!0))},t.prototype.replaceMovedLabel=function(){var t=this.label,e=this.axis,i=e.reversed;t&&!this.isNew&&(t.animate({x:e.horiz?i?e.left:e.width+e.left:t.xy.x,y:i=e.horiz?t.xy.y:i?e.width+e.top:e.top,opacity:0},void 0,t.destroy),delete this.label),e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},t}(),t.Tick=e,t.Tick})),e(i,"Core/Time.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e){var i=e.defined,s=e.error,n=e.extend,r=e.isObject,o=e.merge,a=e.objectEach,l=e.pad,h=e.pick,c=e.splat,u=e.timeUnits,d=t.win;return e=function(){function e(t){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=d.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(t)}return e.prototype.get=function(t,e){if(this.variableTimezone||this.timezoneOffset){var i=e.getTime(),s=i-this.getTimezoneOffset(e);return e.setTime(s),t=e["getUTC"+t](),e.setTime(i),t}return this.useUTC?e["getUTC"+t]():e["get"+t]()},e.prototype.set=function(t,e,i){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===t||"Seconds"===t||"Minutes"===t)return e["setUTC"+t](i);var s=this.getTimezoneOffset(e);return s=e.getTime()-s,e.setTime(s),e["setUTC"+t](i),t=this.getTimezoneOffset(e),s=e.getTime()+t,e.setTime(s)}return this.useUTC?e["setUTC"+t](i):e["set"+t](i)},e.prototype.update=function(t){var e=h(t&&t.useUTC,!0);this.options=t=o(!0,this.options||{},t),this.Date=t.Date||d.Date||Date,this.timezoneOffset=(this.useUTC=e)&&t.timezoneOffset,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=!(e&&!t.getTimezoneOffset&&!t.timezone)},e.prototype.makeTime=function(e,i,s,n,r,o){if(this.useUTC){var a=this.Date.UTC.apply(0,arguments),l=this.getTimezoneOffset(a),c=this.getTimezoneOffset(a+=l);l!==c?a+=c-l:l-36e5!==this.getTimezoneOffset(a-36e5)||t.isSafari||(a-=36e5)}else a=new this.Date(e,i,h(s,1),h(n,0),h(r,0),h(o,0)).getTime();return a},e.prototype.timezoneOffsetFunction=function(){var t=this,e=this.options,i=e.moment||d.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t.toString()).getTimezoneOffset()};if(e.timezone){if(i)return function(t){return 6e4*-i.tz(t,e.timezone).utcOffset()};s(25)}return this.useUTC&&e.getTimezoneOffset?function(t){return 6e4*e.getTimezoneOffset(t.valueOf())}:function(){return 6e4*(t.timezoneOffset||0)}},e.prototype.dateFormat=function(e,s,r){var o;if(!i(s)||isNaN(s))return(null===(o=t.defaultOptions.lang)||void 0===o?void 0:o.invalidDate)||"";e=h(e,"%Y-%m-%d %H:%M:%S");var c=this;o=new this.Date(s);var u=this.get("Hours",o),d=this.get("Day",o),p=this.get("Date",o),f=this.get("Month",o),g=this.get("FullYear",o),m=t.defaultOptions.lang,y=null==m?void 0:m.weekdays,v=null==m?void 0:m.shortWeekdays;return o=n({a:v?v[d]:y[d].substr(0,3),A:y[d],d:l(p),e:l(p,2," "),w:d,b:m.shortMonths[f],B:m.months[f],m:l(f+1),o:f+1,y:g.toString().substr(2,2),Y:g,H:l(u),k:u,I:l(u%12||12),l:u%12||12,M:l(this.get("Minutes",o)),p:12>u?"AM":"PM",P:12>u?"am":"pm",S:l(o.getSeconds()),L:l(Math.floor(s%1e3),3)},t.dateFormats),a(o,(function(t,i){for(;-1!==e.indexOf("%"+i);)e=e.replace("%"+i,"function"==typeof t?t.call(c,s):t)})),r?e.substr(0,1).toUpperCase()+e.substr(1):e},e.prototype.resolveDTLFormat=function(t){return r(t,!0)?t:{main:(t=c(t))[0],from:t[1],to:t[2]}},e.prototype.getTimeTicks=function(t,e,s,r){var o,a=this,l=[],c={},d=new a.Date(e),p=t.unitRange,f=t.count||1;if(r=h(r,1),i(e)){if(a.set("Milliseconds",d,p>=u.second?0:f*Math.floor(a.get("Milliseconds",d)/f)),p>=u.second&&a.set("Seconds",d,p>=u.minute?0:f*Math.floor(a.get("Seconds",d)/f)),p>=u.minute&&a.set("Minutes",d,p>=u.hour?0:f*Math.floor(a.get("Minutes",d)/f)),p>=u.hour&&a.set("Hours",d,p>=u.day?0:f*Math.floor(a.get("Hours",d)/f)),p>=u.day&&a.set("Date",d,p>=u.month?1:Math.max(1,f*Math.floor(a.get("Date",d)/f))),p>=u.month){a.set("Month",d,p>=u.year?0:f*Math.floor(a.get("Month",d)/f));var g=a.get("FullYear",d)}p>=u.year&&a.set("FullYear",d,g-g%f),p===u.week&&(g=a.get("Day",d),a.set("Date",d,a.get("Date",d)-g+r+(g4*u.month||a.getTimezoneOffset(e)!==a.getTimezoneOffset(s)),e=d.getTime(),d=1;el.length&&l.forEach((function(t){0==t%18e5&&"000000000"===a.dateFormat("%H%M%S%L",t)&&(c[t]="day")}))}return l.info=n(t,{higherRanks:c,totalRange:p*f}),l},e}(),t.Time=e,t.Time})),e(i,"Core/Options.js",[i["Core/Globals.js"],i["Core/Time.js"],i["Core/Color.js"],i["Core/Utilities.js"]],(function(t,e,i,s){return i=i.parse,s=s.merge,t.defaultOptions={colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:{styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:t.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",padding:8,snap:t.isTouchDevice?25:10,headerFormat:'{point.key}
',pointFormat:'\u25cf {series.name}: {point.y}
',backgroundColor:i("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}},t.time=new e(s(t.defaultOptions.global,t.defaultOptions.time)),t.dateFormat=function(e,i,s){return t.time.dateFormat(e,i,s)},{dateFormat:t.dateFormat,defaultOptions:t.defaultOptions,time:t.time}})),e(i,"Core/Axis/Axis.js",[i["Core/Color.js"],i["Core/Globals.js"],i["Core/Axis/Tick.js"],i["Core/Utilities.js"],i["Core/Options.js"]],(function(t,e,i,s,n){var r=s.addEvent,o=s.animObject,a=s.arrayMax,l=s.arrayMin,h=s.clamp,c=s.correctFloat,u=s.defined,d=s.destroyObjectProperties,p=s.error,f=s.extend,g=s.fireEvent,m=s.format,y=s.getMagnitude,v=s.isArray,b=s.isFunction,x=s.isNumber,_=s.isString,w=s.merge,C=s.normalizeTickInterval,k=s.objectEach,S=s.pick,A=s.relativeLength,E=s.removeEvent,M=s.splat,T=s.syncTimeout,D=n.defaultOptions,P=e.deg2rad;return s=function(){function s(t,e){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.oldMin=this.oldMax=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0,this.init(t,e)}return s.prototype.init=function(t,e){var i=e.isX,s=this;s.chart=t,s.horiz=t.inverted&&!s.isZAxis?!i:i,s.isXAxis=i,s.coll=s.coll||(i?"xAxis":"yAxis"),g(this,"init",{userOptions:e}),s.opposite=e.opposite,s.side=e.side||(s.horiz?s.opposite?0:2:s.opposite?1:3),s.setOptions(e);var n=this.options,o=n.type;s.labelFormatter=n.labels.formatter||s.defaultLabelFormatter,s.userOptions=e,s.minPixelPadding=0,s.reversed=n.reversed,s.visible=!1!==n.visible,s.zoomEnabled=!1!==n.zoomEnabled,s.hasNames="category"===o||!0===n.categories,s.categories=n.categories||s.hasNames,s.names||(s.names=[],s.names.keys={}),s.plotLinesAndBandsGroups={},s.positiveValuesOnly=!!s.logarithmic,s.isLinked=u(n.linkedTo),s.ticks={},s.labelEdge=[],s.minorTicks={},s.plotLinesAndBands=[],s.alternateBands={},s.len=0,s.minRange=s.userMinRange=n.minRange||n.maxZoom,s.range=n.range,s.offset=n.offset||0,s.max=null,s.min=null,s.crosshair=S(n.crosshair,M(t.options.tooltip.crosshairs)[i?0:1],!1),e=s.options.events,-1===t.axes.indexOf(s)&&(i?t.axes.splice(t.xAxis.length,0,s):t.axes.push(s),t[s.coll].push(s)),s.series=s.series||[],t.inverted&&!s.isZAxis&&i&&void 0===s.reversed&&(s.reversed=!0),s.labelRotation=s.options.labels.rotation,k(e,(function(t,e){b(t)&&r(s,e,t)})),g(this,"afterInit")},s.prototype.setOptions=function(t){this.options=w(s.defaultOptions,"yAxis"===this.coll&&s.defaultYAxisOptions,[s.defaultTopAxisOptions,s.defaultRightAxisOptions,s.defaultBottomAxisOptions,s.defaultLeftAxisOptions][this.side],w(D[this.coll],t)),g(this,"afterSetOptions",{userOptions:t})},s.prototype.defaultLabelFormatter=function(){var t=this.axis,e=x(this.value)?this.value:NaN,i=t.chart.time,s=t.categories,n=this.dateTimeLabelFormat,r=D.lang,o=r.numericSymbols;r=r.numericSymbolMagnitude||1e3;var a=o&&o.length,l=t.options.labels.format;t=t.logarithmic?Math.abs(e):t.tickInterval;var h=this.chart,c=h.numberFormatter;if(l)var u=m(l,this,h);else if(s)u=""+this.value;else if(n)u=i.dateFormat(n,e);else if(a&&1e3<=t)for(;a--&&void 0===u;)t>=(i=Math.pow(r,a+1))&&0==10*e%i&&null!==o[a]&&0!==e&&(u=c(e/i,-1)+o[a]);return void 0===u&&(u=1e4<=Math.abs(e)?c(e,-1):c(e,-1,void 0,"")),u},s.prototype.getSeriesExtremes=function(){var t,e=this,i=e.chart;g(this,"getSeriesExtremes",null,(function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.stacking&&e.stacking.buildStacks(),e.series.forEach((function(s){if(s.visible||!i.options.chart.ignoreHiddenSeries){var n=s.options,r=n.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=r&&(r=null),e.isXAxis){if((n=s.xData).length){n=e.logarithmic?n.filter(e.validatePositiveValue):n;var o=(t=s.getXExtremes(n)).min,a=t.max;x(o)||o instanceof Date||(n=n.filter(x),o=(t=s.getXExtremes(n)).min,a=t.max),n.length&&(e.dataMin=Math.min(S(e.dataMin,o),o),e.dataMax=Math.max(S(e.dataMax,a),a))}}else s=s.applyExtremes(),x(s.dataMin)&&(o=s.dataMin,e.dataMin=Math.min(S(e.dataMin,o),o)),x(s.dataMax)&&(a=s.dataMax,e.dataMax=Math.max(S(e.dataMax,a),a)),u(r)&&(e.threshold=r),(!n.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}))})),g(this,"afterGetSeriesExtremes")},s.prototype.translate=function(t,e,i,s,n,r){var o=this.linkedParent||this,a=1,l=0,h=s?o.oldTransA:o.transA;s=s?o.oldMin:o.min;var c=o.minPixelPadding;return n=(o.isOrdinal||o.brokenAxis&&o.brokenAxis.hasBreaks||o.logarithmic&&n)&&o.lin2val,h||(h=o.transA),i&&(a*=-1,l=o.len),o.reversed&&(l-=(a*=-1)*(o.sector||o.len)),e?(t=(t*a+l-c)/h+s,n&&(t=o.lin2val(t))):(n&&(t=o.val2lin(t)),t=x(s)?a*(t-s)*h+l+a*c+(x(r)?h*r:0):void 0),t},s.prototype.toPixels=function(t,e){return this.translate(t,!1,!this.horiz,null,!0)+(e?0:this.pos)},s.prototype.toValue=function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,null,!0)},s.prototype.getPlotLinePath=function(t){function e(t,e,i){return("pass"!==y&&ti)&&(y?t=h(t,e,i):o=!0),t}var i,s,n,r,o,a=this,l=a.chart,c=a.left,u=a.top,d=t.old,p=t.value,f=t.translatedValue,m=t.lineWidth,y=t.force,v=d&&l.oldChartHeight||l.chartHeight,b=d&&l.oldChartWidth||l.chartWidth,_=a.transB;return g(this,"getPlotLinePath",t={value:p,lineWidth:m,old:d,force:y,acrossPanes:t.acrossPanes,translatedValue:f},(function(t){f=S(f,a.translate(p,null,null,d)),f=h(f,-1e5,1e5),i=n=Math.round(f+_),s=r=Math.round(v-f-_),x(f)?a.horiz?(s=u,r=v-a.bottom,i=n=e(i,c,c+a.width)):(i=c,n=b-a.right,s=r=e(s,u,u+a.height)):(o=!0,y=!1),t.path=o&&!y?null:l.renderer.crispLine([["M",i,s],["L",n,r]],m||1)})),t.path},s.prototype.getLinearTickPositions=function(t,e,i){var s=c(Math.floor(e/t)*t);i=c(Math.ceil(i/t)*t);var n,r=[];if(c(s+t)===s&&(n=20),this.single)return[e];for(e=s;e<=i&&(r.push(e),(e=c(e+t,n))!==o);)var o=e;return r},s.prototype.getMinorTickInterval=function(){var t=this.options;return!0===t.minorTicks?S(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval},s.prototype.getMinorTickPositions=function(){var t=this.options,e=this.tickPositions,i=this.minorTickInterval,s=[],n=this.pointRangePadding||0,r=this.min-n,o=(n=this.max+n)-r;if(o&&o/i=this.minRange,d=this.minRange,p=(d-o+r)/2;p=[r-p,S(n.min,r-p)],c&&(p[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),o=[(r=a(p))+d,S(n.max,r+d)],c&&(o[2]=h?h.log2lin(this.dataMax):this.dataMax),(o=l(o))-r=m)w=m,l=0;else if(e.dataMax<=m){var k=m;a=0}e.min=S(b,w,e.dataMin),e.max=S(_,k,e.dataMax)}s&&(e.positiveValuesOnly&&!t&&0>=Math.min(e.min,S(e.dataMin,e.min))&&p(10,1,i),e.min=c(s.log2lin(e.min),16),e.max=c(s.log2lin(e.max),16)),e.range&&u(e.max)&&(e.userMin=e.min=b=Math.max(e.dataMin,e.minFromRange()),e.userMax=_=e.max,e.range=null),g(e,"foundExtremes"),e.beforePadding&&e.beforePadding(),e.adjustForMinRange(),!(f||e.axisPointRange||e.stacking&&e.stacking.usePercentage||o)&&u(e.min)&&u(e.max)&&(i=e.max-e.min)&&(!u(b)&&l&&(e.min-=i*l),!u(_)&&a&&(e.max+=i*a)),x(e.userMin)||(x(n.softMin)&&n.softMine.max&&(e.max=_=n.softMax),x(n.ceiling)&&(e.max=Math.min(e.max,n.ceiling))),v&&u(e.dataMin)&&(m=m||0,!u(b)&&e.min=m?e.min=e.options.minRange?Math.min(m,e.max-e.minRange):m:!u(_)&&e.max>m&&e.dataMax<=m&&(e.max=e.options.minRange?Math.max(m,e.min+e.minRange):m)),e.tickInterval=e.min===e.max||void 0===e.min||void 0===e.max?1:o&&!h&&d===e.linkedParent.options.tickPixelInterval?h=e.linkedParent.tickInterval:S(h,this.tickAmount?(e.max-e.min)/Math.max(this.tickAmount-1,1):void 0,f?1:(e.max-e.min)*d/Math.max(e.len,d)),r&&!t&&e.series.forEach((function(t){t.processData(e.min!==e.oldMin||e.max!==e.oldMax)})),e.setAxisTranslation(!0),g(this,"initialAxisTranslation"),e.pointRange&&!h&&(e.tickInterval=Math.max(e.pointRange,e.tickInterval)),t=S(n.minTickInterval,e.dateTime&&!e.series.some((function(t){return t.noSharedTooltip}))?e.closestPointRange:0),!h&&e.tickIntervale.tickInterval||void 0!==this.tickAmount),!!this.tickAmount)),this.tickAmount||(e.tickInterval=e.unsquish()),this.setTickPositions()},s.prototype.setTickPositions=function(){var t=this.options,e=t.tickPositions,i=this.getMinorTickInterval(),s=t.tickPositioner,n=this.hasVerticalPanning(),r="colorAxis"===this.coll,o=(r||!n)&&t.startOnTick;n=(r||!n)&&t.endOnTick,this.tickmarkOffset=this.categories&&"between"===t.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===i&&this.tickInterval?this.tickInterval/5:i,this.single=this.min===this.max&&u(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==t.allowDecimals),this.tickPositions=i=e&&e.slice(),!i&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?i=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,t.units),this.min,this.max,t.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max):(i=[this.min,this.max],p(19,!1,this.chart)),i.length>this.len&&(i=[i[0],i.pop()])[0]===i[1]&&(i.length=1),this.tickPositions=i,s&&(s=s.apply(this,[this.min,this.max])))&&(this.tickPositions=i=s),this.paddedTicks=i.slice(0),this.trimTicks(i,o,n),this.isLinked||(this.single&&2>i.length&&!this.categories&&!this.series.some((function(t){return t.is("heatmap")&&"between"===t.options.pointPlacement}))&&(this.min-=.5,this.max+=.5),e||s||this.adjustTickAmount()),g(this,"afterSetTickPositions")},s.prototype.trimTicks=function(t,e,i){var s=t[0],n=t[t.length-1],r=!this.isOrdinal&&this.minPointOffset||0;if(g(this,"trimTicks"),!this.isLinked){if(e&&-1/0!==s)this.min=s;else for(;this.min-r>t[0];)t.shift();if(i)this.max=n;else for(;this.max+re&&(this.finalTickAmt=e,e=5),this.tickAmount=e},s.prototype.adjustTickAmount=function(){var t,e=this.options,i=this.tickInterval,s=this.tickPositions,n=this.tickAmount,r=this.finalTickAmt,o=s&&s.length,a=S(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(on&&(this.tickInterval*=2,this.setTickPositions());if(u(r)){for(i=e=s.length;i--;)(3===r&&1==i%2||2>=r&&0a&&(e=a)),u(n)&&(ra&&(r=a))),i.displayBtn=void 0!==e||void 0!==r,i.setExtremes(e,r,!1,void 0,{trigger:"zoom"})),t.zoomed=!0})),t.zoomed},s.prototype.setAxisSize=function(){var t=this.chart,e=this.options,i=e.offsets||[0,0,0,0],s=this.horiz,n=this.width=Math.round(A(S(e.width,t.plotWidth-i[3]+i[1]),t.plotWidth)),r=this.height=Math.round(A(S(e.height,t.plotHeight-i[0]+i[2]),t.plotHeight)),o=this.top=Math.round(A(S(e.top,t.plotTop+i[0]),t.plotHeight,t.plotTop));e=this.left=Math.round(A(S(e.left,t.plotLeft+i[3]),t.plotWidth,t.plotLeft)),this.bottom=t.chartHeight-r-o,this.right=t.chartWidth-n-e,this.len=Math.max(s?n:r,0),this.pos=s?e:o},s.prototype.getExtremes=function(){var t=this.logarithmic;return{min:t?c(t.lin2log(this.min)):this.min,max:t?c(t.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},s.prototype.getThreshold=function(t){var e=this.logarithmic,i=e?e.lin2log(this.min):this.min;return e=e?e.lin2log(this.max):this.max,null===t||-1/0===t?t=i:1/0===t?t=e:i>t?t=i:ee?t.align="right":195e&&(t.align="left")})),t.align},s.prototype.tickSize=function(t){var e=this.options,i=e["tick"===t?"tickLength":"minorTickLength"],s=S(e["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0);if(s&&i){"inside"===e[t+"Position"]&&(i=-i);var n=[i,s]}return g(this,"afterTickSize",t={tickSize:n}),t.tickSize},s.prototype.labelMetrics=function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},s.prototype.unsquish=function(){var t,e,i,s=this.options.labels,n=this.horiz,r=this.tickInterval,o=r,a=this.len/(((this.categories?1:0)+this.max-this.min)/r),l=s.rotation,h=this.labelMetrics(),d=Number.MAX_VALUE,p=this.max-this.min,f=function(t){var e=t/(a||1);return(e=1p&&1/0!==t&&1/0!==a&&p&&(e=Math.ceil(p/r)),c(e*r)};return n?(i=!s.staggerLines&&!s.step&&(u(l)?[l]:a=i){var s=(e=f(Math.abs(h.h/Math.sin(P*i))))+Math.abs(i/360);s(n.step||0))return n.rotation?0:(this.staggerLines||1)*this.len/r;if(!s){if(void 0!==(t=null===(e=null==n?void 0:n.style)||void 0===e?void 0:e.width))return parseInt(t,10);if(o)return o-i.spacing[3]}return.33*i.chartWidth},s.prototype.renderUnsquish=function(){var t=this.chart,e=t.renderer,i=this.tickPositions,s=this.ticks,n=this.options.labels,r=n&&n.style||{},o=this.horiz,a=this.getSlotWidth(),l=Math.max(1,Math.round(a-2*(n.padding||5))),h={},c=this.labelMetrics(),u=n.style&&n.style.textOverflow,d=0;if(_(n.rotation)||(h.rotation=n.rotation||0),i.forEach((function(t){(t=s[t]).movedLabel&&t.replaceMovedLabel(),t&&t.label&&t.label.textPxLength>d&&(d=t.label.textPxLength)})),this.maxLabelLength=d,this.autoRotation)d>l&&d>c.h?h.rotation=this.labelRotation:this.labelRotation=0;else if(a){var p=l;if(!u){var f="clip";for(l=i.length;!o&&l--;){var g=i[l];(g=s[g].label)&&(g.styles&&"ellipsis"===g.styles.textOverflow?g.css({textOverflow:"clip"}):g.textPxLength>a&&g.css({width:a+"px"}),g.getBBox().height>this.len/i.length-(c.h-c.f)&&(g.specificTextOverflow="ellipsis"))}}}h.rotation&&(p=d>.5*t.chartHeight?.33*t.chartHeight:d,u||(f="ellipsis")),(this.labelAlign=n.align||this.autoLabelAlign(this.labelRotation))&&(h.align=this.labelAlign),i.forEach((function(t){var e=(t=s[t])&&t.label,i=r.width,n={};e&&(e.attr(h),t.shortenLabel?t.shortenLabel():p&&!i&&"nowrap"!==r.whiteSpace&&(p=this.min&&t<=this.max)&&(n[t]||(n[t]=new i(this,t)),r&&n[t].isNew&&n[t].render(e,!0,-1),n[t].render(e))},s.prototype.render=function(){var t,s,n=this,r=n.chart,a=n.logarithmic,l=n.options,h=n.isLinked,c=n.tickPositions,u=n.axisTitle,d=n.ticks,p=n.minorTicks,f=n.alternateBands,m=l.stackLabels,y=l.alternateGridColor,v=n.tickmarkOffset,b=n.axisLine,_=n.showAxis,w=o(r.renderer.globalAnimation);n.labelEdge.length=0,n.overlap=!1,[d,p,f].forEach((function(t){k(t,(function(t){t.isActive=!1}))})),(n.hasData()||h)&&(n.minorTickInterval&&!n.categories&&n.getMinorTickPositions().forEach((function(t){n.renderMinorTick(t)})),c.length&&(c.forEach((function(t,e){n.renderTick(t,e)})),v&&(0===n.min||n.single)&&(d[-1]||(d[-1]=new i(n,-1,null,!0)),d[-1].render(-1))),y&&c.forEach((function(i,o){s=void 0!==c[o+1]?c[o+1]+v:n.max-v,0==o%2&&ie&&(!o||g<=i)&&void 0!==g&&c.push(g),g>i&&(d=!0);var g=f}}}else e=this.lin2log(e),i=this.lin2log(i),t=o?a.getMinorTickInterval():h.tickInterval,t=r("auto"===t?null:t,this.minorAutoInterval,h.tickPixelInterval/(o?5:1)*(i-e)/((o?l/a.tickPositions.length:l)||1)),t=n(t,void 0,s(t)),c=a.getLinearTickPositions(t,e,i).map(this.log2lin),o||(this.minorAutoInterval=t/5);return o||(a.tickInterval=t),c},t.prototype.lin2log=function(t){return Math.pow(10,t)},t.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},t}();return(e=function(){function t(){}return t.compose=function(t){t.keepProps.push("logarithmic");var e=t.prototype,s=o.prototype;e.log2lin=s.log2lin,e.lin2log=s.lin2log,i(t,"init",(function(t){var e=this.logarithmic;"logarithmic"!==t.userOptions.type?this.logarithmic=void 0:(e||(e=this.logarithmic=new o(this)),this.log2lin!==e.log2lin&&(e.log2lin=this.log2lin.bind(this)),this.lin2log!==e.lin2log&&(e.lin2log=this.lin2log.bind(this)))})),i(t,"afterInit",(function(){var t=this.logarithmic;t&&(this.lin2val=function(e){return t.lin2log(e)},this.val2lin=function(e){return t.log2lin(e)})}))},t}()).compose(t),e})),e(i,"Core/Axis/PlotLineOrBand.js",[i["Core/Axis/Axis.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e,i){var s=i.arrayMax,n=i.arrayMin,r=i.defined,o=i.destroyObjectProperties,a=i.erase,l=i.extend,h=i.merge,c=i.objectEach,u=i.pick,d=function(){function t(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)}return t.prototype.render=function(){e.fireEvent(this,"render");var t=this,i=t.axis,s=i.horiz,n=i.logarithmic,o=t.options,a=o.label,l=t.label,d=o.to,p=o.from,f=o.value,g=r(p)&&r(d),m=r(f),y=t.svgElem,v=!y,b=[],x=o.color,_=u(o.zIndex,0),w=o.events;b={class:"highcharts-plot-"+(g?"band ":"line ")+(o.className||"")};var C={},k=i.chart.renderer,S=g?"bands":"lines";if(n&&(p=n.log2lin(p),d=n.log2lin(d),f=n.log2lin(f)),i.chart.styledMode||(m?(b.stroke=x||"#999999",b["stroke-width"]=u(o.width,1),o.dashStyle&&(b.dashstyle=o.dashStyle)):g&&(b.fill=x||"#e6ebf5",o.borderWidth&&(b.stroke=o.borderColor,b["stroke-width"]=o.borderWidth))),C.zIndex=_,(n=i.plotLinesAndBandsGroups[S+="-"+_])||(i.plotLinesAndBandsGroups[S]=n=k.g("plot-"+S).attr(C).add()),v&&(t.svgElem=y=k.path().attr(b).add(n)),m)b=i.getPlotLinePath({value:f,lineWidth:y.strokeWidth(),acrossPanes:o.acrossPanes});else{if(!g)return;b=i.getPlotBandPath(p,d,o)}return!t.eventsAdded&&w&&(c(w,(function(e,i){y.on(i,(function(e){w[i].apply(t,[e])}))})),t.eventsAdded=!0),(v||!y.d)&&b&&b.length?y.attr({d:b}):y&&(b?(y.show(!0),y.animate({d:b})):y.d&&(y.hide(),l&&(t.label=l=l.destroy()))),a&&(r(a.text)||r(a.formatter))&&b&&b.length&&0this.max&&e>this.max,s&&i){if(t){var a=s.toString()===i.toString();o=0}for(t=0;tt){l=a;break}if(o[l]&&r.substr(o[l])!=="01-01 00:00:00.000".substr(o[l]))break;"week"!==l&&(a=l)}if(l)var h=n.resolveDTLFormat(s[l]).main;return h},y.prototype.getLabel=function(){var e,i,s,o=this,a=this.chart.renderer,l=this.chart.styledMode,h=this.options,c="tooltip"+(r(h.className)?" "+h.className:""),u=(null===(e=h.style)||void 0===e?void 0:e.pointerEvents)||(!this.followPointer&&h.stickOnContact?"auto":"none");if(e=function(){o.inContact=!0},!this.label){if(this.outside&&(this.container=s=t.doc.createElement("div"),s.className="highcharts-tooltip-container",n(s,{position:"absolute",top:"1px",pointerEvents:u,zIndex:3}),t.doc.body.appendChild(s),this.renderer=a=new t.Renderer(s,0,0,null===(i=this.chart.options.chart)||void 0===i?void 0:i.style,void 0,void 0,a.styledMode)),this.split?this.label=a.g(c):(this.label=a.label("",0,0,h.shape||"callout",null,null,h.useHTML,null,c).attr({padding:h.padding,r:h.borderRadius}),l||this.label.attr({fill:h.backgroundColor,"stroke-width":h.borderWidth}).css(h.style).css({pointerEvents:u}).shadow(h.shadow)),l&&(this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index)),o.outside&&!o.split){var d=this.label,p=d.xSetter,f=d.ySetter;d.xSetter=function(t){p.call(d,o.distance),s.style.left=t+"px"},d.ySetter=function(t){f.call(d,o.distance),s.style.top=t+"px"}}this.label.on("mouseenter",e).on("mouseleave",(function(){var t=o.chart.hoverSeries;o.inContact=!1,t&&t.onMouseOut&&t.onMouseOut()})).attr({zIndex:8}).add()}return this.label},y.prototype.getPosition=function(t,e,s){var n,r=this.chart,o=this.distance,a={},l=r.inverted&&s.h||0,h=this.outside,c=h?i.documentElement.clientWidth-2*o:r.chartWidth,u=h?Math.max(i.body.scrollHeight,i.documentElement.scrollHeight,i.body.offsetHeight,i.documentElement.offsetHeight,i.documentElement.clientHeight):r.chartHeight,d=r.pointer.getChartPosition(),f=r.containerScaling,g=function(t){return f?t*f.scaleX:t},m=function(t){return f?t*f.scaleY:t},y=function(i){var n="x"===i;return[i,n?c:u,n?t:e].concat(h?[n?g(t):m(e),n?d.left-o+g(s.plotX+r.plotLeft):d.top-o+m(s.plotY+r.plotTop),0,n?c:u]:[n?t:e,n?s.plotX+r.plotLeft:s.plotY+r.plotTop,n?r.plotLeft:r.plotTop,n?r.plotLeft+r.plotWidth:r.plotTop+r.plotHeight])},v=y("y"),b=y("x"),x=!this.followPointer&&p(s.ttBelow,!r.inverted==!!s.negative),_=function(t,e,i,s,n,r,h){var c="y"===t?m(o):g(o),u=(i-s)/2,d=sf-l?f:f-l);else{if(!p)return!1;a[t]=Math.max(r,n+l+i>e?n:n+l)}},w=function(t,e,i,s,n){var r;return ne-o?r=!1:a[t]=ne-s/2?e-s-2:n-i/2,r},C=function(t){var e=v;v=b,b=e,n=t},k=function(){!1!==_.apply(0,v)?!1!==w.apply(0,b)||n||(C(!0),k()):n?a.x=a.y=0:(C(!0),k())};return(r.inverted||1=b+d&&D.pos+v<=b+d+h-y&&(P=D.pos+v);m=s(m,k.left-_,k.right+_),"number"==typeof P?(f=f.height+1,v=C?C.call(r,l,f,o):n(m,P,a,l),t.push({align:C?0:void 0,anchorX:m,anchorY:P,boxWidth:l,point:o,rank:p(v.rank,a?1:0),size:f,target:v.y,tt:e,x:v.x})):e.isActive=!1}return t}),[]),!C&&e.some((function(t){return t.xi[0]?Math.max(Math.abs(i[0]),n.width-i[0]):Math.max(Math.abs(i[0]),n.width),s.height=0>i[1]?Math.max(Math.abs(i[1]),n.height-Math.abs(i[1])):Math.max(Math.abs(i[1]),n.height),this.tracker?this.tracker.attr(s):(this.tracker=e.renderer.rect(s).addClass("highcharts-tracker").add(e),t.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}},y.prototype.styledModeFormat=function(t){return t.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')},y.prototype.tooltipFooterHeaderFormatter=function(t,e){var i=e?"footer":"header",s=t.series,n=s.tooltipOptions,r=n.xDateFormat,o=s.xAxis,a=o&&"datetime"===o.options.type&&c(t.key),u=n[i+"Format"];return l(this,"headerFormatter",e={isFooter:e,labelConfig:t},(function(e){a&&!r&&(r=this.getXDateFormat(t,n,o)),a&&r&&(t.point&&t.point.tooltipDateKeys||["key"]).forEach((function(t){u=u.replace("{point."+t+"}","{point."+t+":"+r+"}")})),s.chart.styledMode&&(u=this.styledModeFormat(u)),e.text=h(u,{point:t,series:s},this.chart)})),e.text},y.prototype.update=function(t){this.destroy(),d(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,d(!0,this.options,t))},y.prototype.updatePosition=function(t){var e=this.chart,i=e.pointer,s=this.getLabel(),r=t.plotX+e.plotLeft,o=t.plotY+e.plotTop;if(i=i.getChartPosition(),t=(this.options.positioner||this.getPosition).call(this,s.width,s.height,t),this.outside){var a=(this.options.borderWidth||0)+2*this.distance;this.renderer.setSize(s.width+a,s.height+a,!1),(e=e.containerScaling)&&(n(this.container,{transform:"scale("+e.scaleX+", "+e.scaleY+")"}),r*=e.scaleX,o*=e.scaleY),r+=i.left-t.x,o+=i.top-t.y}this.move(Math.round(t.x),Math.round(t.y||0),r,o)},y}();return t.Tooltip=y,t.Tooltip})),e(i,"Core/Pointer.js",[i["Core/Color.js"],i["Core/Globals.js"],i["Core/Tooltip.js"],i["Core/Utilities.js"]],(function(t,e,i,s){var n=t.parse,r=e.charts,o=e.noop,a=s.addEvent,l=s.attr,h=s.css,c=s.defined,u=s.extend,d=s.find,p=s.fireEvent,f=s.isNumber,g=s.isObject,m=s.objectEach,y=s.offset,v=s.pick,b=s.splat;return t=function(){function t(t,e){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.chart=t,this.hasDragged=!1,this.options=e,this.unbindContainerMouseLeave=function(){},this.unbindContainerMouseEnter=function(){},this.init(t,e)}return t.prototype.applyInactiveState=function(t){var e,i=[];(t||[]).forEach((function(t){i.push(e=t.series),e.linkedParent&&i.push(e.linkedParent),e.linkedSeries&&(i=i.concat(e.linkedSeries)),e.navigatorSeries&&i.push(e.navigatorSeries)})),this.chart.series.forEach((function(t){-1===i.indexOf(t)?t.setState("inactive",!0):t.options.inactiveOtherPoints&&t.setAllPointsToState("inactive")}))},t.prototype.destroy=function(){var t=this;void 0!==t.unDocMouseMove&&t.unDocMouseMove(),this.unbindContainerMouseLeave(),e.chartCount||(e.unbindDocumentMouseUp&&(e.unbindDocumentMouseUp=e.unbindDocumentMouseUp()),e.unbindDocumentTouchEnd&&(e.unbindDocumentTouchEnd=e.unbindDocumentTouchEnd())),clearInterval(t.tooltipTimeout),m(t,(function(e,i){t[i]=void 0}))},t.prototype.drag=function(t){var e=this.chart,i=e.options.chart,s=t.chartX,r=t.chartY,o=this.zoomHor,a=this.zoomVert,l=e.plotLeft,h=e.plotTop,c=e.plotWidth,u=e.plotHeight,d=this.selectionMarker,p=this.mouseDownX||0,f=this.mouseDownY||0,m=g(i.panning)?i.panning&&i.panning.enabled:i.panning,y=i.panKey&&t[i.panKey+"Key"];if((!d||!d.touch)&&(sl+c&&(s=l+c),rh+u&&(r=h+u),this.hasDragged=Math.sqrt(Math.pow(p-s,2)+Math.pow(f-r,2)),10t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(i,n),(n=g(t,!0))&&!(n=!g(s,!0))){var r=s.dist-t.dist,o=(t.series.group&&t.series.group.zIndex)-(s.series.group&&s.series.group.zIndex);n=0<(0!=(n=s.distX-t.distX)&&e?n:0!==r?r:0!==o?o:s.series.index>t.series.index?-1:1)}n&&(s=t)})),s)},t.prototype.getChartCoordinatesFromPoint=function(t,e){var i=t.series,s=i.xAxis;i=i.yAxis;var n=v(t.clientX,t.plotX),r=t.shapeArgs;return s&&i?e?{chartX:s.len+s.pos-n,chartY:i.len+i.pos-t.plotY}:{chartX:n+s.pos,chartY:t.plotY+i.pos}:r&&r.x&&r.y?{chartX:r.x,chartY:r.y}:void 0},t.prototype.getChartPosition=function(){return this.chartPosition||(this.chartPosition=y(this.chart.container))},t.prototype.getCoordinates=function(t){var e={xAxis:[],yAxis:[]};return this.chart.axes.forEach((function(i){e[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(t[i.horiz?"chartX":"chartY"])})})),e},t.prototype.getHoverData=function(t,e,i,s,n,r){var o,a=[];s=!(!s||!t);var l=e&&!e.stickyTracking,h={chartX:r?r.chartX:void 0,chartY:r?r.chartY:void 0,shared:n};return p(this,"beforeGetHoverData",h),l=l?[e]:i.filter((function(t){return h.filter?h.filter(t):t.visible&&!(!n&&t.directTouch)&&v(t.options.enableMouseTracking,!0)&&t.stickyTracking})),e=(o=s||!r?t:this.findNearestKDPoint(l,n,r))&&o.series,o&&(n&&!e.noSharedTooltip?(l=i.filter((function(t){return h.filter?h.filter(t):t.visible&&!(!n&&t.directTouch)&&v(t.options.enableMouseTracking,!0)&&!t.noSharedTooltip}))).forEach((function(t){var e=d(t.points,(function(t){return t.x===o.x&&!t.isNull}));g(e)&&(t.chart.isBoosting&&(e=t.getPoint(e)),a.push(e))})):a.push(o)),p(this,"afterGetHoverData",h={hoverPoint:o}),{hoverPoint:h.hoverPoint,hoverSeries:e,hoverPoints:a}},t.prototype.getPointFromEvent=function(t){t=t.target;for(var e;t&&!e;)e=t.point,t=t.parentNode;return e},t.prototype.onTrackerMouseOut=function(t){t=t.relatedTarget||t.toElement;var e=this.chart.hoverSeries;this.isDirectTouch=!1,!e||!t||e.stickyTracking||this.inClass(t,"highcharts-tooltip")||this.inClass(t,"highcharts-series-"+e.index)&&this.inClass(t,"highcharts-tracker")||e.onMouseOut()},t.prototype.inClass=function(t,e){for(var i;t;){if(i=l(t,"class")){if(-1!==i.indexOf(e))return!0;if(-1!==i.indexOf("highcharts-container"))return!1}t=t.parentNode}},t.prototype.init=function(t,e){this.options=e,this.chart=t,this.runChartClick=e.chart.events&&!!e.chart.events.click,this.pinchDown=[],this.lastValidTouch={},i&&(t.tooltip=new i(t,e.tooltip),this.followTouchMove=v(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},t.prototype.normalize=function(t,e){var i=t.touches,s=i?i.length?i.item(0):v(i.changedTouches,t.changedTouches)[0]:t;return e||(e=this.getChartPosition()),i=s.pageX-e.left,e=s.pageY-e.top,(s=this.chart.containerScaling)&&(i/=s.scaleX,e/=s.scaleY),u(t,{chartX:Math.round(i),chartY:Math.round(e)})},t.prototype.onContainerClick=function(t){var e=this.chart,i=e.hoverPoint;t=this.normalize(t);var s=e.plotLeft,n=e.plotTop;e.cancelClick||(i&&this.inClass(t.target,"highcharts-tracker")?(p(i.series,"click",u(t,{point:i})),e.hoverPoint&&i.firePointEvent("click",t)):(u(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-s,t.chartY-n)&&p(e,"click",t)))},t.prototype.onContainerMouseDown=function(t){var i=1==(1&(t.buttons||t.button));t=this.normalize(t),e.isFirefox&&0!==t.button&&this.onContainerMouseMove(t),(void 0===t.button||i)&&(this.zoomOption(t),i&&t.preventDefault&&t.preventDefault(),this.dragStart(t))},t.prototype.onContainerMouseLeave=function(t){var i=r[v(e.hoverChartIndex,-1)],s=this.chart.tooltip;t=this.normalize(t),i&&(t.relatedTarget||t.toElement)&&(i.pointer.reset(),i.pointer.chartPosition=void 0),s&&!s.isHidden&&this.reset()},t.prototype.onContainerMouseEnter=function(t){delete this.chartPosition},t.prototype.onContainerMouseMove=function(t){var e=this.chart;t=this.normalize(t),this.setHoverChartIndex(),t.preventDefault||(t.returnValue=!1),"mousedown"===e.mouseIsDown&&this.drag(t),e.openMenu||!this.inClass(t.target,"highcharts-tracker")&&!e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)||this.runPointActions(t)},t.prototype.onDocumentTouchEnd=function(t){r[e.hoverChartIndex]&&r[e.hoverChartIndex].pointer.drop(t)},t.prototype.onContainerTouchMove=function(t){this.touch(t)},t.prototype.onContainerTouchStart=function(t){this.zoomOption(t),this.touch(t,!0)},t.prototype.onDocumentMouseMove=function(t){var e=this.chart,i=this.chartPosition;t=this.normalize(t,i);var s=e.tooltip;!i||s&&s.isStickyOnContact()||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)||this.inClass(t.target,"highcharts-tracker")||this.reset()},t.prototype.onDocumentMouseUp=function(t){var i=r[v(e.hoverChartIndex,-1)];i&&i.pointer.drop(t)},t.prototype.pinch=function(t){var e=this,i=e.chart,s=e.pinchDown,n=t.touches||[],r=n.length,a=e.lastValidTouch,l=e.hasZoom,h=e.selectionMarker,c={},d=1===r&&(e.inClass(t.target,"highcharts-tracker")&&i.runTrackerClick||e.runChartClick),p={};1v.max&&(e=v.max-l,k=!0);k?(_-=.8*(_-o[u][0]),"number"==typeof C&&(C-=.8*(C-o[u][1])),i()):o[u]=[_,C],y||(r[u]=h-g,r[f]=l),r=y?1/m:m,n[f]=l,n[u]=e,s[y?t?"scaleY":"scaleX":"scale"+d]=m,s["translate"+d]=r*g+(_-r*x)},t.prototype.reset=function(t,e){var i=this.chart,s=i.hoverSeries,n=i.hoverPoint,r=i.hoverPoints,o=i.tooltip,a=o&&o.shared?r:n;t&&a&&b(a).forEach((function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)})),t?o&&a&&b(a).length&&(o.refresh(a),o.shared&&r?r.forEach((function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair&&t.series.yAxis.drawCrosshair(null,t))})):n&&(n.setState(n.state,!0),i.axes.forEach((function(t){t.crosshair&&n.series[t.coll]===t&&t.drawCrosshair(null,n)})))):(n&&n.onMouseOut(),r&&r.forEach((function(t){t.setState()})),s&&s.onMouseOut(),o&&o.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach((function(t){t.hideCrosshair()})),this.hoverX=i.hoverPoints=i.hoverPoint=null)},t.prototype.runPointActions=function(t,i){var s=this.chart,n=s.tooltip&&s.tooltip.options.enabled?s.tooltip:void 0,o=!!n&&n.shared,l=i||s.hoverPoint,h=l&&l.series||s.hoverSeries;l=(h=this.getHoverData(l,h,s.series,(!t||"touchmove"!==t.type)&&(!!i||h&&h.directTouch&&this.isDirectTouch),o,t)).hoverPoint;var c=h.hoverPoints;if(i=(h=h.hoverSeries)&&h.tooltipOptions.followPointer,o=o&&h&&!h.noSharedTooltip,l&&(l!==s.hoverPoint||n&&n.isHidden)){if((s.hoverPoints||[]).forEach((function(t){-1===c.indexOf(t)&&t.setState()})),s.hoverSeries!==h&&h.onMouseOver(),this.applyInactiveState(c),(c||[]).forEach((function(t){t.setState("hover")})),s.hoverPoint&&s.hoverPoint.firePointEvent("mouseOut"),!l.series)return;s.hoverPoints=c,s.hoverPoint=l,l.firePointEvent("mouseOver"),n&&n.refresh(o?c:l,t)}else i&&n&&!n.isHidden&&(l=n.getAnchor([{}],t),n.updatePosition({plotX:l[0],plotY:l[1]}));this.unDocMouseMove||(this.unDocMouseMove=a(s.container.ownerDocument,"mousemove",(function(t){var i=r[e.hoverChartIndex];i&&i.pointer.onDocumentMouseMove(t)}))),s.axes.forEach((function(e){var i,n=v((e.crosshair||{}).snap,!0);n&&((i=s.hoverPoint)&&i.series[e.coll]===e||(i=d(c,(function(t){return t.series[e.coll]===e})))),i||!n?e.drawCrosshair(t,i):e.hideCrosshair()}))},t.prototype.scaleGroups=function(t,e){var i,s=this.chart;s.series.forEach((function(n){i=t||n.getPlotBox(),n.xAxis&&n.xAxis.zoomEnabled&&n.group&&(n.group.attr(i),n.markerGroup&&(n.markerGroup.attr(i),n.markerGroup.clip(e?s.clipRect:null)),n.dataLabelsGroup&&n.dataLabelsGroup.attr(i))})),s.clipRect.attr(e||s.clipBox)},t.prototype.setDOMEvents=function(){var t=this.chart.container,i=t.ownerDocument;t.onmousedown=this.onContainerMouseDown.bind(this),t.onmousemove=this.onContainerMouseMove.bind(this),t.onclick=this.onContainerClick.bind(this),this.unbindContainerMouseEnter=a(t,"mouseenter",this.onContainerMouseEnter.bind(this)),this.unbindContainerMouseLeave=a(t,"mouseleave",this.onContainerMouseLeave.bind(this)),e.unbindDocumentMouseUp||(e.unbindDocumentMouseUp=a(i,"mouseup",this.onDocumentMouseUp.bind(this))),e.hasTouch&&(a(t,"touchstart",this.onContainerTouchStart.bind(this)),a(t,"touchmove",this.onContainerTouchMove.bind(this)),e.unbindDocumentTouchEnd||(e.unbindDocumentTouchEnd=a(i,"touchend",this.onDocumentTouchEnd.bind(this))))},t.prototype.setHoverChartIndex=function(){var t=this.chart,i=e.charts[v(e.hoverChartIndex,-1)];i&&i!==t&&i.pointer.onContainerMouseLeave({relatedTarget:!0}),i&&i.mouseIsDown||(e.hoverChartIndex=t.index)},t.prototype.touch=function(t,e){var i=this.chart;if(this.setHoverChartIndex(),1===t.touches.length)if(t=this.normalize(t),i.isInsidePlot(t.chartX-i.plotLeft,t.chartY-i.plotTop)&&!i.openMenu){if(e&&this.runPointActions(t),"touchmove"===t.type)var s=!!(e=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(e[0].chartX-t.chartX,2)+Math.pow(e[0].chartY-t.chartY,2));v(s,!0)&&this.pinch(t)}else e&&this.reset();else 2===t.touches.length&&this.pinch(t)},t.prototype.zoomOption=function(t){var e=this.chart,i=e.options.chart,s=i.zoomType||"";e=e.inverted,/touch/.test(t.type)&&(s=v(i.pinchType,s)),this.zoomX=t=/x/.test(s),this.zoomY=s=/y/.test(s),this.zoomHor=t&&!e||s&&e,this.zoomVert=s&&!e||t&&e,this.hasZoom=t||s},t}(),e.Pointer=t})),e(i,"Core/MSPointer.js",[i["Core/Globals.js"],i["Core/Pointer.js"],i["Core/Utilities.js"]],(function(t,e,i){function s(){var t=[];return t.item=function(t){return this[t]},u(p,(function(e){t.push({pageX:e.pageX,pageY:e.pageY,target:e.target})})),t}function n(e,i,n,r){"touch"!==e.pointerType&&e.pointerType!==e.MSPOINTER_TYPE_TOUCH||!o[t.hoverChartIndex]||(r(e),(r=o[t.hoverChartIndex].pointer)[i]({type:n,target:e.currentTarget,preventDefault:l,touches:s()}))}var r=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),o=t.charts,a=t.doc,l=t.noop,h=i.addEvent,c=i.css,u=i.objectEach,d=i.removeEvent,p={},f=!!t.win.PointerEvent;return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.batchMSEvents=function(t){t(this.chart.container,f?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,f?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(a,f?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},e.prototype.destroy=function(){this.batchMSEvents(d),t.prototype.destroy.call(this)},e.prototype.init=function(e,i){t.prototype.init.call(this,e,i),this.hasZoom&&c(e.container,{"-ms-touch-action":"none","touch-action":"none"})},e.prototype.onContainerPointerDown=function(t){n(t,"onContainerTouchStart","touchstart",(function(t){p[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}}))},e.prototype.onContainerPointerMove=function(t){n(t,"onContainerTouchMove","touchmove",(function(t){p[t.pointerId]={pageX:t.pageX,pageY:t.pageY},p[t.pointerId].target||(p[t.pointerId].target=t.currentTarget)}))},e.prototype.onDocumentPointerUp=function(t){n(t,"onDocumentTouchEnd","touchend",(function(t){delete p[t.pointerId]}))},e.prototype.setDOMEvents=function(){t.prototype.setDOMEvents.call(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(h)},e}(e)})),e(i,"Core/Legend.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e){var i=e.addEvent,s=e.animObject,n=e.css,r=e.defined,o=e.discardElement,a=e.find,l=e.fireEvent,h=e.format,c=e.isNumber,u=e.merge,d=e.pick,p=e.relativeLength,f=e.setAnimation,g=e.stableSort,m=e.syncTimeout;e=e.wrap;var y=t.isFirefox,v=t.marginNames,b=t.win,x=function(){function e(t,e){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options={},this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=t,this.init(t,e)}return e.prototype.init=function(t,e){this.chart=t,this.setOptions(e),e.enabled&&(this.render(),i(this.chart,"endResize",(function(){this.legend.positionCheckboxes()})),this.proximate?this.unchartrender=i(this.chart,"render",(function(){this.legend.proximatePositions(),this.legend.positionItems()})):this.unchartrender&&this.unchartrender())},e.prototype.setOptions=function(t){var e=d(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=u(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=d(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0},e.prototype.update=function(t,e){var i=this.chart;this.setOptions(u(!0,this.options,t)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,d(e,!0)&&i.redraw(),l(this,"afterUpdate")},e.prototype.colorizeItem=function(t,e){if(t.legendGroup[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var i=this.options,s=t.legendItem,n=t.legendLine,r=t.legendSymbol,o=this.itemHiddenStyle.color;i=e?i.itemStyle.color:o;var a=e&&t.color||o,h=t.options&&t.options.marker,c={fill:a};s&&s.css({fill:i,color:i}),n&&n.attr({stroke:a}),r&&(h&&r.isMarker&&(c=t.pointAttribs(),e||(c.stroke=c.fill=o)),r.attr(c))}l(this,"afterColorizeItem",{item:t,visible:e})},e.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},e.prototype.positionItem=function(t){var e=this,i=this.options,s=i.symbolPadding,n=!i.rtl,o=t._legendItemPos;i=o[0],o=o[1];var a=t.checkbox,h=t.legendGroup;h&&h.element&&(s={translateX:n?i:this.legendWidth-i-2*s-4,translateY:o},n=function(){l(e,"afterPositionItem",{item:t})},r(h.translateY)?h.animate(s,void 0,n):(h.attr(s),n())),a&&(a.x=i,a.y=o)},e.prototype.destroyItem=function(t){var e=t.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach((function(e){t[e]&&(t[e]=t[e].destroy())})),e&&o(t.checkbox)},e.prototype.destroy=function(){function t(t){this[t]&&(this[t]=this[t].destroy())}this.getAllItems().forEach((function(e){["legendItem","legendGroup"].forEach(t,e)})),"clipRect up down pager nav box title group".split(" ").forEach(t,this),this.display=null},e.prototype.positionCheckboxes=function(){var t=this.group&&this.group.alignAttr,e=this.clipHeight||this.legendHeight,i=this.titleHeight;if(t){var s=t.translateY;this.allItems.forEach((function(r){var o=r.checkbox;if(o){var a=s+i+o.y+(this.scrollOffset||0)+3;n(o,{left:t.translateX+r.checkboxOffset+o.x-20+"px",top:a+"px",display:this.proximate||a>s-6&&al?this.maxItemWidth:t.itemWidth,s&&this.itemX-i+e>l&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=o+this.lastLineHeight+r),this.lastLineHeight=0),this.lastItemY=o+this.itemY+r,this.lastLineHeight=Math.max(n,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],s?this.itemX+=e:(this.itemY+=o+n+r,this.lastLineHeight=n),this.offsetWidth=this.widthOption||Math.max((s?this.itemX-i-(t.checkbox?0:a):e)+i,this.offsetWidth)},e.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach((function(e){var i=e&&e.options;e&&d(i.showInLegend,!r(i.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItems||("point"===i.legendType?e.data:e)))})),l(this,"afterGetAllItems",{allItems:t}),t},e.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},e.prototype.adjustMargins=function(t,e){var i=this.chart,s=this.options,n=this.getAlignment();n&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((function(o,a){o.test(n)&&!r(t[a])&&(i[v[a]]=Math.max(i[v[a]],i.legend[(a+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][a]*s[a%2?"x":"y"]+d(s.margin,12)+e[a]+(i.titleOffset[a]||0)))}))},e.prototype.proximatePositions=function(){var e=this.chart,i=[],s="left"===this.options.align;this.allItems.forEach((function(t){var n,r=s;if(t.yAxis){t.xAxis.options.reversed&&(r=!r),t.points&&(n=a(r?t.points:t.points.slice(0).reverse(),(function(t){return c(t.plotY)}))),r=this.itemMarginTop+t.legendItem.getBBox().height+this.itemMarginBottom;var o=t.yAxis.top-e.plotTop;t.visible?(n=n?n.plotY:t.yAxis.height,n+=o-.3*r):n=o+t.yAxis.height,i.push({target:n,size:r,item:t})}}),this),t.distribute(i,e.plotHeight),i.forEach((function(t){t.item._legendItemPos[1]=e.plotTop-e.spacing[0]+t.pos}))},e.prototype.render=function(){var t=this.chart,e=t.renderer,i=this.group,s=this.box,n=this.options,r=this.padding;this.itemX=r,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=p(n.width,t.spacingBox.width-r);var o=t.spacingBox.width-2*r-n.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(o/=2),this.maxLegendWidth=this.widthOption||o,i||(this.group=i=e.g("legend").attr({zIndex:7}).add(),this.contentGroup=e.g().attr({zIndex:1}).add(i),this.scrollGroup=e.g().add(this.contentGroup)),this.renderTitle();var a=this.getAllItems();g(a,(function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)})),n.reversed&&a.reverse(),this.allItems=a,this.display=o=!!a.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,a.forEach(this.renderItem,this),a.forEach(this.layoutItem,this),a=(this.widthOption||this.offsetWidth)+r;var h=this.lastItemY+this.lastLineHeight+this.titleHeight;h=this.handleOverflow(h),h+=r,s||(this.box=s=e.rect().addClass("highcharts-legend-box").attr({r:n.borderRadius}).add(i),s.isNew=!0),t.styledMode||s.attr({stroke:n.borderColor,"stroke-width":n.borderWidth||0,fill:n.backgroundColor||"none"}).shadow(n.shadow),0r&&!1!==u.enabled?(this.clipHeight=a=Math.max(r-20-this.titleHeight-o,0),this.currentPage=d(this.currentPage,1),this.fullHeight=t,y.forEach((function(t,e){var i=t._legendItemPos[1],s=Math.round(t.legendItem.getBBox().height),n=m.length;(!n||i-m[n-1]>a&&(l||i)!==m[n-1])&&(m.push(l||i),n++),t.pageIx=n-1,l&&(y[e-1].pageIx=n-1),e===y.length-1&&i+s-m[n-1]>a&&i!==l&&(m.push(i),t.pageIx=n),i!==l&&(l=i)})),c||(c=e.clipRect=s.clipRect(0,o,9999,0),e.contentGroup.clip(c)),v(a),g||(this.nav=g=s.g().attr({zIndex:1}).add(this.group),this.up=s.symbol("triangle",0,0,f,f).add(g),b("upTracker").on("click",(function(){e.scroll(-1,p)})),this.pager=s.text("",15,10).addClass("highcharts-legend-navigation"),i.styledMode||this.pager.css(u.style),this.pager.add(g),this.down=s.symbol("triangle-down",0,0,f,f).add(g),b("downTracker").on("click",(function(){e.scroll(1,p)}))),e.scroll(0),t=r):g&&(v(),this.nav=g.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},e.prototype.scroll=function(t,e){var i=this,n=this.chart,r=this.pages,o=r.length,a=this.currentPage+t;t=this.clipHeight;var h=this.options.navigation,c=this.pager,u=this.padding;a>o&&(a=o),0=i.value;)i=e[++s];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=i&&i.color&&!this.options.color?i.color:this.nonZonedColor,i},t.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},t.prototype.init=function(t,e,i){return this.series=t,this.applyOptions(e,i),this.id=s(this.id)?this.id:g(),this.resolveColor(),t.chart.pointCount++,o(this,"afterInit"),this},t.prototype.optionsToObject=function(e){var i={},s=this.series,n=s.options.keys,r=n||s.pointArrayMap||["y"],o=r.length,a=0,l=0;if(c(e)||null===e)i[r[0]]=e;else if(h(e))for(!n&&e.length>o&&("string"==(s=typeof e[0])?i.name=e[0]:"number"===s&&(i.x=e[0]),a++);l=A(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return A(e,t.length-1)},bindAxes:function(){var t,e=this,i=e.options,s=e.chart;v(this,"bindAxes",null,(function(){(e.axisTypes||[]).forEach((function(n){s[n].forEach((function(s){(i[n]===(t=s.options).index||void 0!==i[n]&&i[n]===t.id||void 0===i[n]&&0===t.index)&&(e.insert(s.series),e[n]=s,s.isDirty=!0)})),e[n]||e.optionalAxis===n||g(18,!0,s)}))})),v(this,"afterBindAxes")},updateParallelArrays:function(t,e){var i=t.series,s=arguments,n=w(e)?function(s){var n="y"===s&&i.toYData?i.toYData(t):t[s];i[s+"Data"][e]=n}:function(t){Array.prototype[e].apply(i[t+"Data"],Array.prototype.slice.call(s,2))};i.parallelArrays.forEach(n)},hasData:function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&0=this.cropStart?h-this.cropStart:h),!i&&r[h]&&r[h].touched&&(h=void 0),h},drawLegendSymbol:e.drawLineMarker,updateData:function(t,e){var i,s,n,r=this.options,o=r.dataSorting,a=this.points,l=[],c=this.requireSorting,u=t.length===a.length,d=!0;if(this.xIncrement=null,t.forEach((function(t,e){var s=p(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},h=s.x;s.id||w(h)?(-1===(h=this.findPointIndex(s,n))||void 0===h?l.push(t):a[h]&&t!==r.data[h]?(a[h].update(t,!1,null,!1),a[h].touched=!0,c&&(n=h+1)):a[h]&&(a[h].touched=!0),(!u||e!==h||o&&o.enabled||this.hasDerivedData)&&(i=!0)):l.push(t)}),this),i)for(t=a.length;t--;)(s=a[t])&&!s.touched&&s.remove&&s.remove(!1,e);else!u||o&&o.enabled?d=!1:(t.forEach((function(t,e){a[e].update&&t!==a[e].y&&a[e].update(t,!1,null,!1)})),l.length=0);return a.forEach((function(t){t&&(t.touched=!1)})),!!d&&(l.forEach((function(t){this.addPoint(t,!1,null,null,!1)}),this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=h(this.xData),this.autoIncrement()),!0)},setData:function(t,e,i,s){var n,r=this,o=r.points,a=o&&o.length||0,l=r.options,h=r.chart,c=l.dataSorting,u=null,d=r.xAxis;u=l.turboThreshold;var p,f=this.xData,m=this.yData,y=(n=r.pointArrayMap)&&n.length,v=l.keys,b=0,_=1;if(n=(t=t||[]).length,e=A(e,!0),c&&c.enabled&&(t=this.sortData(t)),!1!==s&&n&&a&&!r.cropped&&!r.hasGroupedData&&r.visible&&!r.isSeriesBoosting&&(p=this.updateData(t,i)),!p){if(r.xIncrement=null,r.colorCounter=0,this.parallelArrays.forEach((function(t){r[t+"Data"].length=0})),u&&n>u)if(u=r.getFirstValidPoint(t),w(u))for(i=0;it?1:0})).forEach((function(t,e){t.x=e}),this),e.linkedSeries&&e.linkedSeries.forEach((function(e){var i=e.options,n=i.data;i.dataSorting&&i.dataSorting.enabled||!n||(n.forEach((function(i,r){n[r]=s(e,i),t[r]&&(n[r].x=t[r].x,n[r].index=r)})),e.setData(n,!1))})),t},getProcessedData:function(t){var e=this.xData,i=this.yData,s=e.length,n=0,r=this.xAxis,o=this.options,a=o.cropThreshold,l=t||this.getExtremesFromAll||o.getExtremesFromAll,h=this.isCartesian;t=r&&r.val2lin,o=!(!r||!r.logarithmic);var c=this.requireSorting;if(r)var u=(r=r.getExtremes()).min,d=r.max;if(h&&this.sorted&&!l&&(!a||s>a||this.forceCrop))if(e[s-1]d)e=[],i=[];else if(this.yData&&(e[0]d)){e=(n=this.cropData(this.xData,this.yData,u,d)).xData,i=n.yData,n=n.start;var p=!0}for(a=e.length||1;--a;)if(0<(s=o?t(e[a])-t(e[a-1]):e[a]-e[a-1])&&(void 0===f||ss&&c&&(g(15,!1,this.chart),c=!1);return{xData:e,yData:i,cropped:p,cropStart:n,closestPointRange:f}},processData:function(t){if(this.isCartesian&&!this.isDirty&&!this.xAxis.isDirty&&!this.yAxis.isDirty&&!t)return!1;t=this.getProcessedData(),this.cropped=t.cropped,this.cropStart=t.cropStart,this.processedXData=t.xData,this.processedYData=t.yData,this.closestPointRange=this.basePointRange=t.closestPointRange},cropData:function(t,e,i,s,n){var r,o=t.length,a=0,l=o;for(n=A(n,this.cropShoulder),r=0;r=i){a=Math.max(0,r-n);break}for(i=r;is){l=i+n;break}return{xData:t.slice(a,l),yData:e.slice(a,l),start:a,end:l}},generatePoints:function(){var t,e=this.options,i=e.data,s=this.data,n=this.processedXData,r=this.processedYData,o=this.pointClass,a=n.length,l=this.cropStart||0,h=this.hasGroupedData;e=e.keys;var c,u=[];for(s||h||((s=[]).length=i.length,s=this.data=s),e&&h&&(this.options.keys=!1),c=0;c=l&&(r[i-d]||f)<=u,m&&f)if(m=g.length)for(;m--;)w(g[m])&&(o[a++]=g[m]);else o[a++]=g}return t={dataMin:c(o),dataMax:h(o)},v(this,"afterGetExtremes",{dataExtremes:t}),t},applyExtremes:function(){var t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t},getFirstValidPoint:function(t){for(var e=null,i=t.length,s=0;null===e&&s=E&&(E=null),C.total=C.stackTotal=D.total,C.percentage=D.total&&C.y/D.total*100,C.stackY=S,this.irregularWidths||D.setOffset(this.pointXOffset||0,this.barW||0)),C.yBottom=p(E)?u(a.translate(E,0,1,0,1),-1e5,1e5):null,c&&(S=this.modifyValue(S,C)),C.plotY="number"==typeof S&&1/0!==S?u(a.translate(S,0,1,0,1),-1e5,1e5):void 0,C.isInside=this.isPointInside(C),C.clientX=g?d(n.translate(k,0,0,0,1,f)):e,C.negative=C[b]<(i[b+"Threshold"]||m||0),C.category=r&&void 0!==r[C.x]?r[C.x]:C.x,!C.isNull&&!1!==C.visible){void 0!==O&&(_=Math.min(_,Math.abs(e-O)));var O=e}C.zone=this.zones.length&&C.getZone(),!C.graphic&&this.group&&o&&(C.isNew=!0)}this.closestPointRangePx=_,v(this,"afterTranslate")},getValidPoints:function(t,e,i){var s=this.chart;return(t||this.points||[]).filter((function(t){return!(e&&!s.isInsidePlot(t.plotX,t.plotY,s.inverted))&&!1!==t.visible&&(i||!t.isNull)}))},getClipBox:function(t,e){var i=this.chart,s=this.xAxis,n=s&&this.yAxis,r=i.options.chart.scrollablePlotArea||{};return t&&!1===this.options.clip&&n?t=i.inverted?{y:-i.chartWidth+n.len+n.pos,height:i.chartWidth,width:i.chartHeight,x:-i.chartHeight+s.len+s.pos}:{y:-n.pos,height:i.chartHeight,width:i.chartWidth,x:-s.pos}:(t=this.clipBox||i.clipBox,e&&(t.width=i.plotSizeX,t.x=(i.scrollablePixelsX||0)*(r.scrollPositionX||0))),e?{width:t.width,x:t.x}:t},setClip:function(t){var e=this.chart,i=this.options,s=e.renderer,n=e.inverted,r=this.clipBox,o=this.getClipBox(t),a=this.sharedClipKey||["_sharedClip",t&&t.duration,t&&t.easing,o.height,i.xAxis,i.yAxis].join(),l=e[a],h=e[a+"m"];t&&(o.width=0,n&&(o.x=e.plotHeight+(!1!==i.clip?0:e.plotTop))),l?e.hasLoaded||l.attr(o):(t&&(e[a+"m"]=h=s.clipRect(n?e.plotSizeX+99:-99,n?-e.plotLeft:-e.plotTop,99,n?e.chartWidth:e.chartHeight)),e[a]=l=s.clipRect(o),l.count={length:0}),t&&!l.count[this.index]&&(l.count[this.index]=!0,l.count.length+=1),(!1!==i.clip||t)&&(this.group.clip(t||r?l:e.clipRect),this.markerGroup.clip(h),this.sharedClipKey=a),t||(l.count[this.index]&&(delete l.count[this.index],--l.count.length),0===l.count.length&&a&&e[a]&&(r||(e[a]=e[a].destroy()),e[a+"m"]&&(e[a+"m"]=e[a+"m"].destroy())))},animate:function(t){var e=this.chart,i=l(this.options.animation);if(!e.hasRendered)if(t)this.setClip(i);else{var s=this.sharedClipKey;t=e[s];var n=this.getClipBox(i,!0);t&&t.animate(n,i),e[s+"m"]&&e[s+"m"].animate({width:n.width+99,x:n.x-(e.inverted?0:99)},i)}},afterAnimate:function(){this.setClip(),v(this,"afterAnimate"),this.finishedAnimating=!0},drawPoints:function(){var t,e,i=this.points,s=this.chart,n=this.options.marker,r=this[this.specialGroup]||this.markerGroup,o=this.xAxis,a=A(n.enabled,!(o&&!o.isRadial)||null,this.closestPointRangePx>=n.enabledThreshold*n.radius);if(!1!==n.enabled||this._hasPointMarkers)for(t=0;tr&&e.shadow)),a&&(a.startX=i.xMap,a.isArea=i.isArea)}))},getZonesGraphs:function(t){return this.zones.forEach((function(e,i){i=["zone-graph-"+i,"highcharts-graph highcharts-zone-graph-"+i+" "+(e.className||"")],this.chart.styledMode||i.push(e.color||this.color,e.dashStyle||this.options.dashStyle),t.push(i)}),this),t},applyZones:function(){var t,e,i,s,n,r,o,a,l=this,h=this.chart,c=h.renderer,d=this.zones,p=this.clips||[],f=this.graph,g=this.area,m=Math.max(h.chartWidth,h.chartHeight),y=this[(this.zoneAxis||"y")+"Axis"],v=h.inverted,b=!1;if(d.length&&(f||g)&&y&&void 0!==y.min){var x=y.reversed,_=y.horiz;f&&!this.showLine&&f.hide(),g&&g.hide();var w=y.getExtremes();d.forEach((function(d,C){t=x?_?h.plotWidth:0:_?0:y.toPixels(w.min)||0,t=u(A(e,t),0,m),e=u(Math.round(y.toPixels(A(d.value,w.max),!0)||0),0,m),b&&(t=e=y.toPixels(w.max)),s=Math.abs(t-e),n=Math.min(t,e),r=Math.max(t,e),y.isXAxis?(i={x:v?r:n,y:0,width:s,height:m},_||(i.x=h.plotHeight-i.x)):(i={x:0,y:v?r:n,width:m,height:s},_&&(i.y=h.plotWidth-i.y)),v&&c.isVML&&(i=y.isXAxis?{x:0,y:x?n:r,height:i.width,width:h.chartWidth}:{x:i.y-h.plotLeft-h.spacingBox.x,y:0,width:i.height,height:h.chartHeight}),p[C]?p[C].animate(i):p[C]=c.clipRect(i),o=l["zone-area-"+C],a=l["zone-graph-"+C],f&&a&&a.clip(p[C]),g&&o&&o.clip(p[C]),b=d.value>w.max,l.resetZones&&0===e&&(e=void 0)})),this.clips=p}else l.visible&&(f&&f.show(!0),g&&g.show(!0))},invertGroups:function(t){function e(){["group","markerGroup"].forEach((function(e){i[e]&&(s.renderer.isVML&&i[e].attr({width:i.yAxis.len,height:i.xAxis.len}),i[e].width=i.yAxis.len,i[e].height=i.xAxis.len,i[e].invert(!i.isRadialSeries&&t))}))}var i=this,s=i.chart;i.xAxis&&(i.eventsToUnbind.push(a(s,"resize",e)),e(),i.invertGroups=e)},plotGroup:function(t,e,i,s,n){var r=this[t],o=!r;return i={visibility:i,zIndex:s||.1},void 0===this.opacity||this.chart.styledMode||"inactive"===this.state||(i.opacity=this.opacity),o&&(this[t]=r=this.chart.renderer.g().add(n)),r.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(p(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(r.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),r.attr(i)[o?"attr":"animate"](this.getPlotBox()),r},getPlotBox:function(){var t=this.chart,e=this.xAxis,i=this.yAxis;return t.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:i?i.top:t.plotTop,scaleX:1,scaleY:1}},removeEvents:function(t){t?this.eventsToUnbind.length&&(this.eventsToUnbind.forEach((function(t){t()})),this.eventsToUnbind.length=0):E(this)},render:function(){var t=this,e=t.chart,i=t.options,s=l(i.animation),n=!t.finishedAnimating&&e.renderer.isSVG&&s.duration,r=t.visible?"inherit":"hidden",o=i.zIndex,a=t.hasRendered,h=e.seriesGroup,c=e.inverted;v(this,"render");var u=t.plotGroup("group","series",r,o,h);t.markerGroup=t.plotGroup("markerGroup","markers",r,o,h),n&&t.animate&&t.animate(!0),u.inverted=!(!t.isCartesian&&!t.invertable)&&c,t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels&&t.drawDataLabels(),t.redrawPoints&&t.redrawPoints(),t.drawTracker&&!1!==t.options.enableMouseTracking&&t.drawTracker(),t.invertGroups(c),!1===i.clip||t.sharedClipKey||a||u.clip(e.clipRect),n&&t.animate&&t.animate(),a||(n&&s.defer&&(n+=s.defer),t.animationTimeout=T((function(){t.afterAnimate()}),n||0)),t.isDirty=!1,t.hasRendered=!0,v(t,"afterRender")},redraw:function(){var t=this.chart,e=this.isDirty||this.isDirtyData,i=this.group,s=this.xAxis,n=this.yAxis;i&&(t.inverted&&i.attr({width:t.plotWidth,height:t.plotHeight}),i.animate({translateX:A(s&&s.left,t.plotLeft),translateY:A(n&&n.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(t,e){var i=this.xAxis,s=this.yAxis,n=this.chart.inverted;return this.searchKDTree({clientX:n?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:n?s.len-t.chartX+s.pos:t.chartY-s.pos},e,t)},buildKDTree:function(t){this.buildingKdTree=!0;var e=this,i=-1(c=e[c]-h[c])?"right":"left",i[f=0>c?"left":"right"]&&(u=(f=t(e,i[f],a+1,l))[o]p;)f--;this.updateParallelArrays(d,"splice",f,0,0),this.updateParallelArrays(d,f),l&&d.name&&(l[p]=d.name),c.splice(f,0,t),h&&(this.data.splice(f,0,null),this.processData()),"point"===r.legendType&&this.generatePoints(),i&&(o[0]&&o[0].remove?o[0].remove(!1):(o.shift(),this.updateParallelArrays(d,"shift"),c.shift())),!1!==n&&m(this,"addPoint",{point:d}),this.isDirtyData=this.isDirty=!0,e&&a.redraw(s)},removePoint:function(t,e,i){var s=this,n=s.data,r=n[t],o=s.points,a=s.chart,l=function(){o&&o.length===n.length&&o.splice(t,1),n.splice(t,1),s.options.data.splice(t,1),s.updateParallelArrays(r||{series:s},"splice",t,1),r&&r.destroy(),s.isDirty=!0,s.isDirtyData=!0,e&&a.redraw()};S(i,a),e=C(e,!0),r?r.firePointEvent("remove",null,l):l()},remove:function(t,e,i,s){function n(){r.destroy(s),r.remove=null,o.isDirtyLegend=o.isDirtyBox=!0,o.linkSeries(),C(t,!0)&&o.redraw(e)}var r=this,o=r.chart;!1!==i?m(r,"remove",null,n):n()},update:function(t,e){t=i.cleanRecursively(t,this.userOptions),m(this,"update",{options:t});var s,n=this,r=n.chart,o=n.userOptions,a=n.initialType||n.type,l=t.type||o.type||r.options.chart.type,h=!(this.hasDerivedData||t.dataGrouping||l&&l!==this.type||void 0!==t.pointStart||t.pointInterval||t.pointIntervalUnit||t.keys),c=E[a].prototype,u=["eventOptions","navigatorSeries","baseSeries"],d=n.finishedAnimating&&{animation:!1},p={};for(s in h&&(u.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","mapMap","mapData","minY","maxY","minX","maxX"),!1!==t.visible&&u.push("area","graph"),n.parallelArrays.forEach((function(t){u.push(t+"Data")})),t.data&&(t.dataSorting&&g(n.options.dataSorting,t.dataSorting),this.setData(t.data,!1))),t=_(o,d,{index:void 0===o.index?n.index:o.index,pointStart:C(o.pointStart,n.xData[0])},!h&&{data:n.options.data},t),h&&t.data&&(t.data=n.options.data),(u=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(u)).forEach((function(t){u[t]=n[t],delete n[t]})),n.remove(!1,null,!1,!0),c)n[s]=void 0;if(E[l||a]?g(n,E[l||a].prototype):f(17,!0,r,{missingModuleFor:l||a}),u.forEach((function(t){n[t]=u[t]})),n.init(r,t),h&&this.points){var y=n.options;!1===y.visible?(p.graphic=1,p.dataLabel=1):n._hasPointLabels||(o=y.dataLabels,(t=y.marker)&&(!1===t.enabled||"symbol"in t)&&(p.graphic=1),o&&!1===o.enabled&&(p.dataLabel=1)),this.points.forEach((function(t){t&&t.series&&(t.resolveColor(),Object.keys(p).length&&t.destroyElements(p),!1===y.showInLegend&&t.legendItem&&r.legend.destroyItem(t))}),this)}n.initialType=a,r.linkSeries(),m(this,"afterUpdate"),C(e,!0)&&r.redraw(!!h&&void 0)},setName:function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0}}),g(t.prototype,{update:function(t,e){var i=this.chart,s=t&&t.events||{};t=_(this.userOptions,t),i.options[this.coll].indexOf&&(i.options[this.coll][i.options[this.coll].indexOf(this.userOptions)]=t),w(i.options[this.coll].events,(function(t,e){void 0===s[e]&&(s[e]=void 0)})),this.destroy(!0),this.init(i,g(t,{events:s})),i.isDirtyBox=!0,C(e,!0)&&i.redraw()},remove:function(t){for(var e=this.chart,i=this.coll,s=this.series,n=s.length;n--;)s[n]&&s[n].remove(!1);p(e.axes,this),p(e[i],this),y(e.options[i])?e.options[i].splice(this.options.index,1):delete e.options[i],e[i].forEach((function(t,e){t.options.index=t.userOptions.index=e})),this.destroy(),e.isDirtyBox=!0,C(t,!0)&&e.redraw()},setTitle:function(t,e){this.update({title:t},e)},setCategories:function(t,e){this.update({categories:t},e)}})})),e(i,"Series/AreaSeries.js",[i["Core/Globals.js"],i["Core/Color.js"],i["Mixins/LegendSymbol.js"],i["Core/Utilities.js"]],(function(t,e,i,s){var n=e.parse,r=s.objectEach,o=s.pick,a=t.Series;(e=s.seriesType)("area","line",{threshold:0},{singleStacks:!1,getStackPoints:function(t){var e,i=[],s=[],n=this.xAxis,a=this.yAxis,l=a.stacking.stacks[this.stackKey],h={},c=this.index,u=a.series,d=u.length,p=o(a.options.reversedStacks,!0)?1:-1;if(t=t||this.points,this.options.stacking){for(e=0;et&&c>r?u=2*r-(c=Math.max(t,r)):cs&&u>r?c=2*r-(u=Math.max(s,r)):u=Math.abs(e)&&.5t.closestPointRange*t.xAxis.transA;s=t.borderWidth=u(i.borderWidth,s?0:1);var n=t.xAxis,r=t.yAxis,l=i.threshold,c=t.translatedThreshold=r.getThreshold(l),d=u(i.minPointLength,5),f=t.getColumnMetrics(),g=f.width,m=t.barW=Math.max(g,1+2*s),y=t.pointXOffset=f.offset,v=t.dataMin,b=t.dataMax;e.inverted&&(c-=.5),i.pointPadding&&(m=Math.ceil(m)),p.prototype.translate.apply(t),t.points.forEach((function(s){var p=u(s.yBottom,c),x=999+Math.abs(p),_=g,w=s.plotX||0;x=o(s.plotY,-x,r.len+x);var C=w+y,k=m,S=Math.min(x,p),A=Math.max(x,p)-S;if(d&&Math.abs(A)d?p-d:c-(E?d:0)}a(s.options.pointWidth)&&(_=k=Math.ceil(s.options.pointWidth),C-=Math.round((_-g)/2)),i.centerInCategory&&(C=t.adjustForMissingColumns(C,_,s,f)),s.barX=C,s.pointWidth=_,s.tooltipPos=e.inverted?[r.len+r.pos-e.plotLeft-x,n.len+n.pos-e.plotTop-(w||0)-y-k/2,A]:[C+k/2,x+r.pos-e.plotTop,A],s.shapeType=t.pointClass.prototype.shapeType||"rect",s.shapeArgs=t.crispCol.apply(t,s.isNull?[C,c,k,0]:[C,S,k,A])}))},getSymbol:t.noop,drawLegendSymbol:i.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(t,e){var i=this.options,s=this.pointAttrToOptions||{},r=s.stroke||"borderColor",o=s["stroke-width"]||"borderWidth",a=t&&t.color||this.color,l=t&&t[r]||i[r]||this.color||a,h=t&&t[o]||i[o]||this[o]||0;s=t&&t.options.dashStyle||i.dashStyle;var d=u(t&&t.opacity,i.opacity,1);if(t&&this.zones.length){var p=t.getZone();a=t.options.color||p&&(p.color||t.nonZonedColor)||this.color,p&&(l=p.borderColor||l,s=p.dashStyle||s,h=p.borderWidth||h)}return e&&t&&(e=(t=c(i.states[e],t.options.states&&t.options.states[e]||{})).brightness,a=t.color||void 0!==e&&n(a).brighten(t.brightness).get()||a,l=t[r]||l,h=t[o]||h,s=t.dashStyle||s,d=u(t.opacity,d)),r={fill:a,stroke:l,"stroke-width":h,opacity:d},s&&(r.dashstyle=s),r},drawPoints:function(){var t,e=this,i=this.chart,s=e.options,n=i.renderer,r=s.animationLimit||250;e.points.forEach((function(o){var a=o.graphic,l=!!a,u=a&&i.pointCount\u25cf
{series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,drawGraph:function(){this.options.lineWidth&&s.prototype.drawGraph.call(this)},applyJitter:function(){var t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach((function(s,n){["x","y"].forEach((function(r,o){var a="plot"+r.toUpperCase();if(e[r]&&!s.isNull){var l=t[r+"Axis"],h=e[r]*l.transA;if(l&&!l.isLog){var c=Math.max(0,s[a]-h);l=Math.min(l.len,s[a]+h),o=1e4*Math.sin(n+o*i),s[a]=c+(l-c)*(o-Math.floor(o)),"x"===r&&(s.clientX=s.plotX)}}}))}))}}),i(s,"afterTranslate",(function(){this.applyJitter&&this.applyJitter()}))})),e(i,"Mixins/CenteredSeries.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e){var i=e.isNumber,s=e.pick,n=e.relativeLength,r=t.deg2rad;return t.CenteredSeriesMixin={getCenter:function(){var e=this.options,i=this.chart,r=2*(e.slicedOffset||0),o=i.plotWidth-2*r,a=i.plotHeight-2*r,l=e.center,h=Math.min(o,a),c=e.size,u=e.innerSize||0;for("string"==typeof c&&(c=parseFloat(c)),"string"==typeof u&&(u=parseFloat(u)),e=[s(l[0],"50%"),s(l[1],"50%"),s(c&&0>c?void 0:e.size,"100%"),s(u&&0>u?void 0:e.innerSize||0,"0%")],!i.angular||this instanceof t.Series||(e[3]=0),l=0;4>l;++l)c=e[l],i=2>l||2===l&&/%$/.test(c),e[l]=n(c,[o,a,h,e[2]][l])+(i?r:0);return e[3]>e[2]&&(e[3]=e[2]),e},getStartAndEndRadians:function(t,e){return t=i(t)?t:0,e=i(e)&&e>t&&360>e-t?e:t+360,{start:r*(t+-90),end:r*(e+-90)}}}})),e(i,"Series/PieSeries.js",[i["Core/Globals.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Mixins/LegendSymbol.js"],i["Core/Series/Point.js"],i["Core/Utilities.js"],i["Mixins/CenteredSeries.js"]],(function(t,e,i,s,n,r){var o=n.addEvent,a=n.clamp,l=n.defined,h=n.fireEvent,c=n.isNumber,u=n.merge,d=n.pick,p=n.relativeLength,f=n.setAnimation,g=r.getStartAndEndRadians,m=t.Series;(0,n.seriesType)("pie","line",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttribs:t.seriesTypes.column.prototype.pointAttribs,animate:function(t){var e=this,i=e.startAngleRad;t||e.points.forEach((function(t){var s=t.graphic,n=t.shapeArgs;s&&n&&(s.attr({r:d(t.startR,e.center&&e.center[3]/2),start:i,end:i}),s.animate({r:n.r,start:n.start,end:n.end},e.options.animation))}))},hasData:function(){return!!this.processedXData.length},updateTotals:function(){var t,e=0,i=this.points,s=i.length,n=this.options.ignoreHiddenPoint;for(t=0;t1.5*Math.PI?y-=2*Math.PI:y<-Math.PI/2&&(y+=2*Math.PI),f.slicedTranslation={translateX:Math.round(Math.cos(y)*s),translateY:Math.round(Math.sin(y)*s)};var v=Math.cos(y)*t[2]/2,b=Math.sin(y)*t[2]/2;f.tooltipPos=[t[0]+.7*v,t[1]+.7*b],f.half=y<-Math.PI/2||y>Math.PI/2?1:0,f.angle=y,m=Math.min(n,f.labelDistance/5),f.labelPosition={natural:{x:t[0]+v+Math.cos(y)*f.labelDistance,y:t[1]+b+Math.sin(y)*f.labelDistance},final:{},alignment:0>f.labelDistance?"center":f.half?"right":"left",connectorPosition:{breakAt:{x:t[0]+v+Math.cos(y)*m,y:t[1]+b+Math.sin(y)*m},touchingSliceAt:{x:t[0]+v,y:t[1]+b}}}}h(this,"afterTranslate")},drawEmpty:function(){var t=this.startAngleRad,i=this.endAngleRad,s=this.options;if(0===this.total&&this.center){var n=this.center[0],r=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(n,r,this.center[1]/2,0,t,i).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:e.prototype.symbols.arc(n,r,this.center[2]/2,0,{start:t,end:i,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":s.borderWidth,fill:s.fillColor||"none",stroke:s.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},redrawPoints:function(){var t,e,i,s,n=this,r=n.chart,o=r.renderer,a=n.options.shadow;this.drawEmpty(),!a||n.shadowGroup||r.styledMode||(n.shadowGroup=o.g("shadow").attr({zIndex:-1}).add(n.group)),n.points.forEach((function(l){var h={};if(e=l.graphic,!l.isNull&&e){if(s=l.shapeArgs,t=l.getTranslate(),!r.styledMode){var c=l.shadowGroup;a&&!c&&(c=l.shadowGroup=o.g("shadow").add(n.shadowGroup)),c&&c.attr(t),i=n.pointAttribs(l,l.selected&&"select")}l.delayedRendering?(e.setRadialReference(n.center).attr(s).attr(t),r.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}).shadow(a,c),l.delayedRendering=!1):(e.setRadialReference(n.center),r.styledMode||u(!0,h,i),u(!0,h,s,t),e.animate(h)),e.attr({visibility:l.visible?"inherit":"hidden"}),e.addClass(l.getClassName())}else e&&(l.graphic=e.destroy())}))},drawPoints:function(){var t=this.chart.renderer;this.points.forEach((function(e){e.graphic&&e.hasNewShapeType()&&(e.graphic=e.graphic.destroy()),e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)}))},searchPoint:n=t.noop,sortByAngle:function(t,e){t.sort((function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e}))},drawLegendSymbol:i.drawRectangle,getCenter:r.getCenter,getSymbol:n,drawGraph:null},{init:function(){s.prototype.init.apply(this,arguments);var t=this;t.name=d(t.name,"Slice");var e=function(e){t.slice("select"===e.type)};return o(t,"select",e),o(t,"unselect",e),t},isValid:function(){return c(this.y)&&0<=this.y},setVisible:function(t,e){var i=this,s=i.series,n=s.chart,r=s.options.ignoreHiddenPoint;e=d(e,r),t!==i.visible&&(i.visible=i.options.visible=t=void 0===t?!i.visible:t,s.options.data[s.data.indexOf(i)]=i.options,["graphic","dataLabel","connector","shadowGroup"].forEach((function(e){i[e]&&i[e][t?"show":"hide"](!0)})),i.legendItem&&n.legend.colorizeItem(i,t),t||"hover"!==i.state||i.setState(""),r&&(s.isDirty=!0),e&&n.redraw())},slice:function(t,e,i){var s=this.series;f(i,s.chart),d(e,!0),this.sliced=this.options.sliced=l(t)?t:!this.sliced,s.options.data[s.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:e.r-1,start:e.start,end:e.end})},connectorShapes:{fixedOffset:function(t,e,i){var s=e.breakAt;return e=e.touchingSliceAt,[["M",t.x,t.y],i.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*s.x-e.x,2*s.y-e.y,s.x,s.y]:["L",s.x,s.y],["L",e.x,e.y]]},straight:function(t,e){return[["M",t.x,t.y],["L",(e=e.touchingSliceAt).x,e.y]]},crookedLine:function(t,e,i){e=e.touchingSliceAt;var s=this.series,n=s.center[0],r=s.chart.plotWidth,o=s.chart.plotLeft;s=t.alignment;var a=this.shapeArgs.r;return i=p(i.crookDistance,1),i=["L",r="left"===s?n+a+(r+o-n-a)*(1-i):o+(n-a)*i,t.y],n=!0,("left"===s?r>t.x||re.x)&&(n=!1),t=[["M",t.x,t.y]],n&&t.push(i),t.push(["L",e.x,e.y]),t}},getConnectorPath:function(){var t=this.labelPosition,e=this.series.options.dataLabels,i=e.connectorShape,s=this.connectorShapes;return s[i]&&(i=s[i]),i.call(this,{x:t.final.x,y:t.final.y,alignment:t.alignment},t.connectorPosition,e)}})})),e(i,"Core/Series/DataLabels.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e){var i=t.noop,s=t.seriesTypes,n=e.arrayMax,r=e.clamp,o=e.defined,a=e.extend,l=e.fireEvent,h=e.format,c=e.getDeferredAnimation,u=e.isArray,d=e.merge,p=e.objectEach,f=e.pick,g=e.relativeLength,m=e.splat,y=e.stableSort,v=t.Series;t.distribute=function(e,i,s){function n(t,e){return t.target-e.target}var o,a=!0,l=e,h=[],c=0,u=l.reducedLen||i;for(o=e.length;o--;)c+=e[o].size;if(c>u){for(y(e,(function(t,e){return(e.rank||0)-(t.rank||0)})),c=o=0;c<=u;)c+=e[o].size,o++;h=e.splice(o-1,e.length)}for(y(e,n),e=e.map((function(t){return{size:t.size,targets:[t.target],align:f(t.align,.5)}}));a;){for(o=e.length;o--;)a=e[o],c=(Math.min.apply(0,a.targets)+Math.max.apply(0,a.targets))/2,a.pos=r(c-a.size*a.align,0,i-a.size);for(o=e.length,a=!1;o--;)0e[o].pos&&(e[o-1].size+=e[o].size,e[o-1].targets=e[o-1].targets.concat(e[o].targets),e[o-1].align=.5,e[o-1].pos+e[o-1].size>i&&(e[o-1].pos=i-e[o-1].size),e.splice(o,1),a=!0)}l.push.apply(l,h),o=0,e.some((function(e){var n=0;if(e.targets.some((function(){if(l[o].pos=e.pos+n,void 0!==s&&Math.abs(l[o].pos-l[o].target)>s)return l.slice(0,o+1).forEach((function(t){delete t.pos})),l.reducedLen=(l.reducedLen||i)-.1*i,l.reducedLen>.1*i&&t.distribute(l,i,s),!0;n+=l[o].size,o++})))return!0})),y(l,n)},v.prototype.drawDataLabels=function(){function t(t,e){var i,s=[];if(u(t)&&!u(e))s=t.map((function(t){return d(t,e)}));else if(u(e)&&!u(t))s=e.map((function(e){return d(t,e)}));else if(u(t)||u(e))for(i=Math.max(t.length,e.length);i--;)s[i]=d(t[i],e[i]);else s=d(t,e);return s}var e=this,i=e.chart,s=e.options,n=s.dataLabels,r=e.points,a=e.hasRendered||0,g=n.animation;g=n.defer?c(i,g,e):{defer:0,duration:0};var y=i.renderer;if(n=t(t(i.options.plotOptions&&i.options.plotOptions.series&&i.options.plotOptions.series.dataLabels,i.options.plotOptions&&i.options.plotOptions[e.type]&&i.options.plotOptions[e.type].dataLabels),n),l(this,"drawDataLabels"),u(n)||n.enabled||e._hasPointLabels){var v=e.plotGroup("dataLabelsGroup","data-labels",a?"inherit":"hidden",n.zIndex||6);v.attr({opacity:+a}),!a&&(a=e.dataLabelsGroup)&&(e.visible&&v.show(!0),a[s.animation?"animate":"attr"]({opacity:1},g)),r.forEach((function(r){m(t(n,r.dlOptions||r.options&&r.options.dataLabels)).forEach((function(t,n){var a=t.enabled&&(!r.isNull||r.dataLabelOnNull)&&function(t,e){var i=e.filter;return!i||(e=i.operator,t=t[i.property],i=i.value,">"===e&&t>i||"<"===e&&t="===e&&t>=i||"<="===e&&t<=i||"=="===e&&t==i||"==="===e&&t===i)}(r,t),l=r.dataLabels?r.dataLabels[n]:r.dataLabel,c=r.connectors?r.connectors[n]:r.connector,u=f(t.distance,r.labelDistance),d=!l;if(a){var g=r.getLabelConfig(),m=f(t[r.formatPrefix+"Format"],t.format);g=o(m)?h(m,g,i):(t[r.formatPrefix+"Formatter"]||t.formatter).call(g,t),m=t.style;var b=t.rotation;i.styledMode||(m.color=f(t.color,m.color,e.color,"#000000"),"contrast"===m.color?(r.contrastColor=y.getContrast(r.color||e.color),m.color=!o(u)&&t.inside||0>u||s.stacking?r.contrastColor:"#000000"):delete r.contrastColor,s.cursor&&(m.cursor=s.cursor));var x={r:t.borderRadius||0,rotation:b,padding:t.padding,zIndex:1};i.styledMode||(x.fill=t.backgroundColor,x.stroke=t.borderColor,x["stroke-width"]=t.borderWidth),p(x,(function(t,e){void 0===t&&delete x[e]}))}!l||a&&o(g)?a&&o(g)&&(l?x.text=g:(r.dataLabels=r.dataLabels||[],l=r.dataLabels[n]=b?y.text(g,0,-9999,t.useHTML).addClass("highcharts-data-label"):y.label(g,0,-9999,t.shape,null,null,t.useHTML,null,"data-label"),n||(r.dataLabel=l),l.addClass(" highcharts-data-label-color-"+r.colorIndex+" "+(t.className||"")+(t.useHTML?" highcharts-tracker":""))),l.options=t,l.attr(x),i.styledMode||l.css(m).shadow(t.shadow),l.added||l.add(v),t.textPath&&!t.useHTML&&(l.setTextPath(r.getDataLabelPath&&r.getDataLabelPath(l)||r.graphic,t.textPath),r.dataLabelPath&&!t.textPath.enabled&&(r.dataLabelPath=r.dataLabelPath.destroy())),e.alignDataLabel(r,l,t,null,d)):(r.dataLabel=r.dataLabel&&r.dataLabel.destroy(),r.dataLabels&&(1===r.dataLabels.length?delete r.dataLabels:delete r.dataLabels[n]),n||delete r.dataLabel,c&&(r.connector=r.connector.destroy(),r.connectors&&(1===r.connectors.length?delete r.connectors:delete r.connectors[n])))}))}))}l(this,"afterDrawDataLabels")},v.prototype.alignDataLabel=function(t,e,i,s,n){var r=this,o=this.chart,l=this.isCartesian&&o.inverted,h=this.enabledDataSorting,c=f(t.dlBox&&t.dlBox.centerX,t.plotX,-9999),u=f(t.plotY,-9999),d=e.getBBox(),p=i.rotation,g=i.align,m=o.isInsidePlot(c,Math.round(u),l),y="justify"===f(i.overflow,h?"none":"justify"),v=this.visible&&!1!==t.visible&&(t.series.forceDL||h&&!y||m||i.inside&&s&&o.isInsidePlot(c,l?s.x+1:s.y+s.height-1,l)),b=function(i){h&&r.xAxis&&!y&&r.setDataLabelStartPos(t,e,n,m,i)};if(v){var x=o.renderer.fontMetrics(o.styledMode?void 0:i.style.fontSize,e).b;s=a({x:l?this.yAxis.len-u:c,y:Math.round(l?this.xAxis.len-c:u),width:0,height:0},s),a(i,{width:d.width,height:d.height}),p?(y=!1,c=o.renderer.rotCorr(x,p),b(c={x:s.x+(i.x||0)+s.width/2+c.x,y:s.y+(i.y||0)+{top:0,middle:.5,bottom:1}[i.verticalAlign]*s.height}),e[n?"attr":"animate"](c).attr({align:g}),b=180<(b=(p+720)%360)&&360>b,"left"===g?c.y-=b?d.height:0:"center"===g?(c.x-=d.width/2,c.y-=d.height/2):"right"===g&&(c.x-=d.width,c.y-=b?0:d.height),e.placed=!0,e.alignAttr=c):(b(s),e.align(i,null,s),c=e.alignAttr),y&&0<=s.height?this.justifyDataLabel(e,i,c,d,s,n):f(i.crop,!0)&&(v=o.isInsidePlot(c.x,c.y)&&o.isInsidePlot(c.x+d.width,c.y+d.height)),i.shape&&!p&&e[n?"attr":"animate"]({anchorX:l?o.plotWidth-t.plotY:t.plotX,anchorY:l?o.plotHeight-t.plotX:t.plotY})}n&&h&&(e.placed=!1),v||h&&!y||(e.hide(!0),e.placed=!1)},v.prototype.setDataLabelStartPos=function(t,e,i,s,n){var r=this.chart,o=r.inverted,a=this.xAxis,l=a.reversed,h=o?e.height/2:e.width/2;t=(t=t.pointWidth)?t/2:0,a=o?n.x:l?-h-t:a.width-h+t,n=o?l?this.yAxis.height-h+t:-h-t:n.y,e.startXPos=a,e.startYPos=n,s?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),r.hasRendered&&(i&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)},v.prototype.justifyDataLabel=function(t,e,i,s,n,r){var o=this.chart,a=e.align,l=e.verticalAlign,h=t.box?0:t.padding||0,c=e.x;c=void 0===c?0:c;var u=e.y,d=void 0===u?0:u;if(0>(u=i.x+h)){"right"===a&&0<=c?(e.align="left",e.inside=!0):c-=u;var p=!0}return(u=i.x+s.width-h)>o.plotWidth&&("left"===a&&0>=c?(e.align="right",e.inside=!0):c+=o.plotWidth-u,p=!0),0>(u=i.y+h)&&("bottom"===l&&0<=d?(e.verticalAlign="top",e.inside=!0):d-=u,p=!0),(u=i.y+s.height-h)>o.plotHeight&&("top"===l&&0>=d?(e.verticalAlign="bottom",e.inside=!0):d+=o.plotHeight-u,p=!0),p&&(e.x=c,e.y=d,t.placed=!r,t.align(e,void 0,n)),p},s.pie&&(s.pie.prototype.dataLabelPositioners={radialDistributionY:function(t){return t.top+t.distributeBox.pos},radialDistributionX:function(t,e,i,s){return t.getX(ie.bottom-2?s:i,e.half,e)},justify:function(t,e,i){return i[0]+(t.half?-1:1)*(e+t.labelDistance)},alignToPlotEdges:function(t,e,i,s){return t=t.getBBox().width,e?t+s:i-t-s},alignToConnectors:function(t,e,i,s){var n,r=0;return t.forEach((function(t){(n=t.dataLabel.getBBox().width)>r&&(r=n)})),e?r+s:i-r-s}},s.pie.prototype.drawDataLabels=function(){var e,i,s,r,a,l,h,c,u,p,g,m,y=this,b=y.data,x=y.chart,_=y.options.dataLabels||{},w=_.connectorPadding,C=x.plotWidth,k=x.plotHeight,S=x.plotLeft,A=Math.round(x.chartWidth/3),E=y.center,M=E[2]/2,T=E[1],D=[[],[]],P=[0,0,0,0],O=y.dataLabelPositioners;y.visible&&(_.enabled||y._hasPointLabels)&&(b.forEach((function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)})),v.prototype.drawDataLabels.apply(y),b.forEach((function(t){t.dataLabel&&(t.visible?(D[t.half].push(t),t.dataLabel._pos=null,!o(_.style.width)&&!o(t.options.dataLabels&&t.options.dataLabels.style&&t.options.dataLabels.style.width)&&t.dataLabel.getBBox().width>A&&(t.dataLabel.css({width:Math.round(.7*A)+"px"}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))})),D.forEach((function(i,s){var n,d=i.length,v=[];if(d){if(y.sortByAngle(i,s-.5),0C-w&&0===s&&(b=Math.round(c+a-C+w),P[1]=Math.max(b,P[1])),0>u-h/2?P[0]=Math.max(Math.round(h/2-u),P[0]):u+h/2>k&&(P[2]=Math.max(Math.round(u+h/2-k),P[2])),r.sideOverflow=b)}}})),0===n(P)||this.verifyDataLabelOverflow(P))&&(this.placeDataLabels(),this.points.forEach((function(t){var e;m=d(_,t.options.dataLabels),(i=f(m.connectorWidth,1))&&(s=t.connector,(r=t.dataLabel)&&r._pos&&t.visible&&0f(this.translatedThreshold,o.yAxis.len)),h=f(i.inside,!!this.options.stacking);a&&(0>(s=d(a)).y&&(s.height+=s.y,s.y=0),0<(a=s.y+s.height-o.yAxis.len)&&a=u.x+u.width||d.x+d.width<=u.x||d.y>=u.y+u.height||d.y+d.height<=u.y||((c.labelrank=a&&r<=(i.inverted?a+o.width:a+o.height)||l||!c(r))&&(h=!0),s[l?"zoomX":"zoomY"]&&h&&(e=o.zoom(t.min,t.max),o.displayBtn&&(n=!0))}));var o=i.resetZoomButton;n&&!o?i.showResetZoom():!n&&m(o)&&(i.resetZoomButton=o.destroy()),e&&i.redraw(b(i.options.chart.animation,t&&t.animation,100>i.pointCount))},pan:function(t,i){var s,n=this,r=n.hoverPoints,o=n.options.chart,a=n.options.mapNavigation&&n.options.mapNavigation.enabled;i="object"==typeof i?i:{enabled:i,type:"x"},o&&o.panning&&(o.panning=i);var l=i.type;d(this,"pan",{originalEvent:t},(function(){r&&r.forEach((function(t){t.setState()}));var i=[1];"xy"===l?i=[1,0]:"y"===l&&(i=[0]),i.forEach((function(i){var r=n[i?"xAxis":"yAxis"][0],o=r.horiz,h=t[o?"chartX":"chartY"],c=n[o=o?"mouseDownX":"mouseDownY"],u=(r.pointRange||0)/2,d=r.reversed&&!n.inverted||!r.reversed&&n.inverted?-1:1,p=r.getExtremes(),f=r.toValue(c-h,!0)+u*d,m=(d=r.toValue(c+r.len-h,!0)-u*d)=d&&f<=u&&(r.setExtremes(c,f,!1,!1,{trigger:"pan"}),n.resetZoomButton||a||c===d||f===u||!l.match("y")||(n.showResetZoom(),r.displayBtn=!1),s=!0),n[o]=h)})),s&&n.redraw(!1),h(n.container,{cursor:"move"})}))}}),u(n.prototype,{select:function(t,e){var i=this,s=i.series,n=s.chart;this.selectedStaging=t=b(t,!i.selected),i.firePointEvent(t?"select":"unselect",{accumulate:e},(function(){i.selected=i.options.selected=t,s.options.data[s.data.indexOf(i)]=i.options,i.setState(t&&"select"),e||n.getSelectedPoints().forEach((function(t){var e=t.series;t.selected&&t!==i&&(t.selected=t.options.selected=!1,e.options.data[e.data.indexOf(t)]=t.options,t.setState(n.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))}))})),delete this.selectedStaging},onMouseOver:function(t){var e=this.series.chart,i=e.pointer;t=t?i.normalize(t):i.getChartCoordinatesFromPoint(this,e.inverted),i.runPointActions(t,this)},onMouseOut:function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach((function(t){t.setState()})),t.hoverPoints=t.hoverPoint=null},importEvents:function(){if(!this.hasImportedEvents){var t=this,e=y(t.series.options.point,t.options).events;t.events=e,v(e,(function(e,i){f(e)&&a(t,i,e)})),this.hasImportedEvents=!0}},setState:function(t,e){var i,s=this.series,n=this.state,r=s.options.states[t||"normal"]||{},a=o.plotOptions[s.type].marker&&s.options.marker,l=a&&a.states&&a.states[t||"normal"]||{},h=s.stateMarkerGraphic,c=this.marker||{},p=s.chart,f=s.halo,g=a&&s.markerAttribs;if(!((t=t||"")===this.state&&!e||this.selected&&"select"!==t||!1===r.enabled||t&&(!1===l.enabled||a&&!1===a.enabled&&!1===l.enabled)||t&&c.states&&c.states[t]&&!1===c.states[t].enabled)){if(this.state=t,g&&(i=s.markerAttribs(this,t)),this.graphic){if(n&&this.graphic.removeClass("highcharts-point-"+n),t&&this.graphic.addClass("highcharts-point-"+t),!p.styledMode){var m=s.pointAttribs(this,t),y=b(p.options.chart.animation,r.animation);s.options.inactiveOtherPoints&&m.opacity&&((this.dataLabels||[]).forEach((function(t){t&&t.animate({opacity:m.opacity},y)})),this.connector&&this.connector.animate({opacity:m.opacity},y)),this.graphic.animate(m,y)}i&&this.graphic.animate(i,b(p.options.chart.animation,l.animation,a.animation)),h&&h.hide()}else t&&l&&(n=c.symbol||s.symbol,h&&h.currentSymbol!==n&&(h=h.destroy()),i&&(h?h[e?"animate":"attr"]({x:i.x,y:i.y}):n&&(s.stateMarkerGraphic=h=p.renderer.symbol(n,i.x,i.y,i.width,i.height).add(s.markerGroup),h.currentSymbol=n)),!p.styledMode&&h&&h.attr(s.pointAttribs(this,t))),h&&(h[t&&this.isInside?"show":"hide"](),h.element.point=this);t=r.halo,r=(h=this.graphic||h)&&h.visibility||"inherit",t&&t.size&&h&&"hidden"!==r&&!this.isCluster?(f||(s.halo=f=p.renderer.path().add(h.parentGroup)),f.show()[e?"animate":"attr"]({d:this.haloPath(t.size)}),f.attr({class:"highcharts-halo highcharts-color-"+b(this.colorIndex,s.colorIndex)+(this.className?" "+this.className:""),visibility:r,zIndex:-1}),f.point=this,p.styledMode||f.attr(u({fill:this.color||s.color,"fill-opacity":t.opacity},t.attributes))):f&&f.point&&f.point.haloPath&&f.animate({d:f.point.haloPath(0)},null,f.hide),d(this,"afterSetState")}},haloPath:function(t){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-t,this.plotY-t,2*t,2*t)}}),u(s.prototype,{onMouseOver:function(){var t=this.chart,e=t.hoverSeries;t.pointer.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&d(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},onMouseOut:function(){var t=this.options,e=this.chart,i=e.tooltip,s=e.hoverPoint;e.hoverSeries=null,s&&s.onMouseOut(),this&&t.events.mouseOut&&d(this,"mouseOut"),!i||this.stickyTracking||i.shared&&!this.noSharedTooltip||i.hide(),e.series.forEach((function(t){t.setState("",!0)}))},setState:function(t,e){var i=this,s=i.options,n=i.graph,r=s.inactiveOtherPoints,o=s.states,a=s.lineWidth,l=s.opacity,h=b(o[t||"normal"]&&o[t||"normal"].animation,i.chart.options.chart.animation);if(s=0,i.state!==(t=t||"")&&([i.group,i.markerGroup,i.dataLabelsGroup].forEach((function(e){e&&(i.state&&e.removeClass("highcharts-series-"+i.state),t&&e.addClass("highcharts-series-"+t))})),i.state=t,!i.chart.styledMode)){if(o[t]&&!1===o[t].enabled)return;if(t&&(a=o[t].lineWidth||a+(o[t].lineWidthPlus||0),l=b(o[t].opacity,l)),n&&!n.dashstyle)for(n.animate(o={"stroke-width":a},h);i["zone-graph-"+s];)i["zone-graph-"+s].attr(o),s+=1;r||[i.group,i.markerGroup,i.dataLabelsGroup,i.labelBySeries].forEach((function(t){t&&t.animate({opacity:l},h)}))}e&&r&&i.points&&i.setAllPointsToState(t)},setAllPointsToState:function(t){this.points.forEach((function(e){e.setState&&e.setState(t)}))},setVisible:function(t,e){var i=this,s=i.chart,n=i.legendItem,r=s.options.chart.ignoreHiddenSeries,o=(i.visible=t=i.options.visible=i.userOptions.visible=void 0===t?!i.visible:t)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach((function(t){i[t]&&i[t][o]()})),s.hoverSeries!==i&&(s.hoverPoint&&s.hoverPoint.series)!==i||i.onMouseOut(),n&&s.legend.colorizeItem(i,t),i.isDirty=!0,i.options.stacking&&s.series.forEach((function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)})),i.linkedSeries.forEach((function(e){e.setVisible(t,!1)})),r&&(s.isDirtyBox=!0),d(i,o),!1!==e&&s.redraw()},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),d(this,t?"select":"unselect")},drawTracker:w.drawTrackerGraph})})),e(i,"Core/Responsive.js",[i["Core/Chart/Chart.js"],i["Core/Utilities.js"]],(function(t,e){var i=e.find,s=e.isArray,n=e.isObject,r=e.merge,o=e.objectEach,a=e.pick,l=e.splat,h=e.uniqueKey;t.prototype.setResponsive=function(t,e){var s=this.options.responsive,n=[],o=this.currentResponsive;!e&&s&&s.rules&&s.rules.forEach((function(t){void 0===t._id&&(t._id=h()),this.matchResponsiveRule(t,n)}),this),(e=r.apply(0,n.map((function(t){return i(s.rules,(function(e){return e._id===t})).chartOptions})))).isResponsiveOptions=!0,(n=n.toString()||void 0)!==(o&&o.ruleIds)&&(o&&this.update(o.undoOptions,t,!0),n?((o=this.currentOptions(e)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:n,mergedOptions:e,undoOptions:o},this.update(e,t,!0)):this.currentResponsive=void 0)},t.prototype.matchResponsiveRule=function(t,e){var i=t.condition;(i.callback||function(){return this.chartWidth<=a(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=a(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=a(i.minWidth,0)&&this.chartHeight>=a(i.minHeight,0)}).call(this)&&e.push(t._id)},t.prototype.currentOptions=function(t){var e=this,i={};return function t(i,r,a,h){var c;o(i,(function(i,o){if(!h&&-1l&&(s?t=e-h:e=t+h),o(t)&&o(e)||(t=e=void 0),{min:t,max:e}},t}();return function(){function t(){}return t.compose=function(t){t.keepProps.push("navigatorAxis"),s(t,"init",(function(){this.navigatorAxis||(this.navigatorAxis=new l(this))})),s(t,"zoom",(function(t){var e=this.chart.options,s=e.navigator,n=this.navigatorAxis,o=e.chart.pinchType,a=e.rangeSelector;e=e.chart.zoomType,this.isXAxis&&(s&&s.enabled||a&&a.enabled)&&("y"===e?t.zoomed=!1:(!i&&"xy"===e||i&&"xy"===o)&&this.options.range&&(s=n.previousZoom,r(t.newMin)?n.previousZoom=[this.min,this.max]:s&&(t.newMin=s[0],t.newMax=s[1],n.previousZoom=void 0))),void 0!==t.zoomed&&t.preventDefault()}))},t.AdditionsClass=l,t}()})),e(i,"Core/Axis/ScrollbarAxis.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e){var i=e.addEvent,s=e.defined,n=e.pick;return function(){function e(){}return e.compose=function(e,r){i(e,"afterInit",(function(){var e=this;e.options&&e.options.scrollbar&&e.options.scrollbar.enabled&&(e.options.scrollbar.vertical=!e.horiz,e.options.startOnTick=e.options.endOnTick=!1,e.scrollbar=new r(e.chart.renderer,e.options.scrollbar,e.chart),i(e.scrollbar,"changed",(function(i){var r=n(e.options&&e.options.min,e.min),o=n(e.options&&e.options.max,e.max),a=s(e.dataMin)?Math.min(r,e.min,e.dataMin):r,l=(s(e.dataMax)?Math.max(o,e.max,e.dataMax):o)-a;s(r)&&s(o)&&(e.horiz&&!e.reversed||!e.horiz&&e.reversed?(r=a+l*this.to,a+=l*this.from):(r=a+l*(1-this.from),a+=l*(1-this.to)),n(this.options.liveRedraw,t.svg&&!t.isTouchDevice&&!this.chart.isBoosting)||"mouseup"===i.DOMType||!s(i.DOMType)?e.setExtremes(a,r,!0,"mousemove"!==i.DOMType,i):this.setRange(this.from,this.to))})))})),i(e,"afterRender",(function(){var t=Math.min(n(this.options.min,this.min),this.min,n(this.dataMin,this.min)),e=Math.max(n(this.options.max,this.max),this.max,n(this.dataMax,this.max)),i=this.scrollbar,r=this.axisTitleMargin+(this.titleOffset||0),o=this.chart.scrollbarsOffsets,a=this.options.margin||0;i&&(this.horiz?(this.opposite||(o[1]+=r),i.position(this.left,this.top+this.height+2+o[1]-(this.opposite?a:0),this.width,this.height),this.opposite||(o[1]+=a),r=1):(this.opposite&&(o[0]+=r),i.position(this.left+this.width+2+o[0]-(this.opposite?0:a),this.top,this.width,this.height),this.opposite&&(o[0]+=a),r=0),o[r]+=i.size+i.options.margin,isNaN(t)||isNaN(e)||!s(this.min)||!s(this.max)||this.min===this.max?i.setRange(0,1):(o=(this.min-t)/(e-t),t=(this.max-t)/(e-t),this.horiz&&!this.reversed||!this.horiz&&this.reversed?i.setRange(o,t):i.setRange(1-t,1-o)))})),i(e,"afterGetOffset",(function(){var t=this.horiz?2:1,e=this.scrollbar;e&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[t]+=e.size+e.options.margin)}))},e}()})),e(i,"Core/Scrollbar.js",[i["Core/Axis/Axis.js"],i["Core/Globals.js"],i["Core/Axis/ScrollbarAxis.js"],i["Core/Utilities.js"],i["Core/Options.js"]],(function(t,e,i,s,n){var r=s.addEvent,o=s.correctFloat,a=s.defined,l=s.destroyObjectProperties,h=s.fireEvent,c=s.merge,u=s.pick,d=s.removeEvent;s=n.defaultOptions;var p=e.hasTouch,f=e.isTouchDevice,g=e.swapXY=function(t,e){return e&&t.forEach((function(t){for(var e,i=t.length,s=0;sthis.calculatedWidth?e.minWidth:0)),chartY:(t.chartY-this.y-this.yOffset)/(this.barWidth-e)}},t.prototype.destroy=function(){var t=this.chart.scroller;this.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach((function(t){this[t]&&this[t].destroy&&(this[t]=this[t].destroy())}),this),t&&this===t.scrollbar&&(t.scrollbar=null,l(t.scrollbarButtons))},t.prototype.drawScrollbarButton=function(t){var e=this.renderer,i=this.scrollbarButtons,s=this.options,n=this.size,r=e.g().add(this.group);i.push(r),r=e.rect().addClass("highcharts-scrollbar-button").add(r),this.chart.styledMode||r.attr({stroke:s.buttonBorderColor,"stroke-width":s.buttonBorderWidth,fill:s.buttonBackgroundColor}),r.attr(r.crisp({x:-.5,y:-.5,width:n+1,height:n+1,r:s.buttonBorderRadius},r.strokeWidth())),r=e.path(g([["M",n/2+(t?-1:1),n/2-3],["L",n/2+(t?-1:1),n/2+3],["L",n/2+(t?2:-2),n/2]],s.vertical)).addClass("highcharts-scrollbar-arrow").add(i[t]),this.chart.styledMode||r.attr({fill:s.buttonArrowColor})},t.prototype.init=function(e,i,s){this.scrollbarButtons=[],this.renderer=e,this.userOptions=i,this.options=c(t.defaultOptions,i),this.chart=s,this.size=u(this.options.size,this.options.height),i.enabled&&(this.render(),this.addEvents())},t.prototype.mouseDownHandler=function(t){t=this.chart.pointer.normalize(t),t=this.cursorToScrollbarPosition(t),this.chartX=t.chartX,this.chartY=t.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0},t.prototype.mouseMoveHandler=function(t){var e=this.chart.pointer.normalize(t),i=this.options.vertical?"chartY":"chartX",s=this.initPositions||[];!this.grabbedCenter||t.touches&&0===t.touches[0][i]||(i=(e=this.cursorToScrollbarPosition(e)[i])-(i=this[i]),this.hasDragged=!0,this.updatePosition(s[0]+i,s[1]+i),this.hasDragged&&h(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}))},t.prototype.mouseUpHandler=function(t){this.hasDragged&&h(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null},t.prototype.position=function(t,e,i,s){var n=this.options.vertical,r=0,o=this.rendered?"animate":"attr";this.x=t,this.y=e+this.trackBorderWidth,this.width=i,this.xOffset=this.height=s,this.yOffset=r,n?(this.width=this.yOffset=i=r=this.size,this.xOffset=e=0,this.barWidth=s-2*i,this.x=t+=this.options.margin):(this.height=this.xOffset=s=e=this.size,this.barWidth=i-2*s,this.y+=this.options.margin),this.group[o]({translateX:t,translateY:this.y}),this.track[o]({width:i,height:s}),this.scrollbarButtons[1][o]({translateX:n?0:i-e,translateY:n?s-r:0})},t.prototype.removeEvents=function(){this._events.forEach((function(t){d.apply(null,t)})),this._events.length=0},t.prototype.render=function(){var t,e=this.renderer,i=this.options,s=this.size,n=this.chart.styledMode;this.group=t=e.g("scrollbar").attr({zIndex:i.zIndex,translateY:-99999}).add(),this.track=e.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:i.trackBorderRadius||0,height:s,width:s}).add(t),n||this.track.attr({fill:i.trackBackgroundColor,stroke:i.trackBorderColor,"stroke-width":i.trackBorderWidth}),this.trackBorderWidth=this.track.strokeWidth(),this.track.attr({y:-this.trackBorderWidth%2/2}),this.scrollbarGroup=e.g().add(t),this.scrollbar=e.rect().addClass("highcharts-scrollbar-thumb").attr({height:s,width:s,r:i.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=e.path(g([["M",-3,s/4],["L",-3,2*s/3],["M",0,s/4],["L",0,2*s/3],["M",3,s/4],["L",3,2*s/3]],i.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),n||(this.scrollbar.attr({fill:i.barBackgroundColor,stroke:i.barBorderColor,"stroke-width":i.barBorderWidth}),this.scrollbarRifles.attr({stroke:i.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2),this.drawScrollbarButton(0),this.drawScrollbarButton(1)},t.prototype.setRange=function(t,e){var i,s=this.options,n=s.vertical,r=s.minWidth,l=this.barWidth,h=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(a(l)){t=Math.max(t,0);var c=Math.ceil(l*t);this.calculatedWidth=i=o(l*Math.min(e,1)-c),i=i?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===s.showFull&&(0>=t&&1<=e?this.group.hide():this.group.show()),this.rendered=!0}},t.prototype.trackClick=function(t){var e=this.chart.pointer.normalize(t),i=this.to-this.from;this.options.vertical&&e.chartY>this.y+this.scrollbarTop||!this.options.vertical&&e.chartX>this.x+this.scrollbarLeft?this.updatePosition(this.from+i,this.to+i):this.updatePosition(this.from-i,this.to-i),h(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.update=function(t){this.destroy(),this.init(this.chart.renderer,c(!0,this.options,t),this.chart)},t.prototype.updatePosition=function(t,e){1t&&(e=o(e-t),t=0),this.from=t,this.to=e},t.defaultOptions={height:f?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,margin:10,minWidth:6,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:1,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"#333333",trackBackgroundColor:"#f2f2f2",trackBorderColor:"#f2f2f2",trackBorderWidth:1},t}(),e.Scrollbar||(s.scrollbar=c(!0,n.defaultOptions,s.scrollbar),e.Scrollbar=n,i.compose(t,n)),e.Scrollbar})),e(i,"Core/Navigator.js",[i["Core/Axis/Axis.js"],i["Core/Chart/Chart.js"],i["Core/Color.js"],i["Core/Globals.js"],i["Core/Axis/NavigatorAxis.js"],i["Core/Options.js"],i["Core/Scrollbar.js"],i["Core/Utilities.js"]],(function(t,e,i,s,n,r,o,a){var l=r.defaultOptions,h=a.addEvent,c=a.clamp,u=a.correctFloat,d=a.defined,p=a.destroyObjectProperties,f=a.erase,g=a.extend,m=a.find,y=a.isArray,v=a.isNumber,b=a.merge,x=a.pick,_=a.removeEvent,w=a.splat,C=s.hasTouch,k=s.isTouchDevice;r=s.Series;var S=function(t){for(var e=[],i=1;ib&&(this.grabbedLeft?i=l.toPixels(e-b-h,!0):this.grabbedRight&&(s=l.toPixels(t+b+h,!0))),this.zoomedMax=c(Math.max(i,s),0,r),this.zoomedMin=c(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(i,s),0,r),this.range=this.zoomedMax-this.zoomedMin,r=Math.round(this.zoomedMax),i=Math.round(this.zoomedMin),f&&(this.navigatorGroup.attr({visibility:"visible"}),this.drawMasks(i,r,m,g=g&&!this.hasDragged?"animate":"attr"),this.drawOutline(i,r,m,g),this.navigatorOptions.handles.enabled&&(this.drawHandle(i,0,m,g),this.drawHandle(r,1,m,g))),this.scrollbar&&(m?(m=this.top-a,p=this.left-a+(f||!p.opposite?0:(p.titleOffset||0)+p.axisTitleMargin),a=n+2*a):(m=this.top+(f?this.height:-a),p=this.left-a),this.scrollbar.position(p,m,o,a),this.scrollbar.setRange(this.zoomedMin/(n||1),this.zoomedMax/(n||1))),this.rendered=!0}},e.prototype.addMouseEvents=function(){var t,e,i=this,s=i.chart,n=s.container,r=[];i.mouseMoveHandler=t=function(t){i.onMouseMove(t)},i.mouseUpHandler=e=function(t){i.onMouseUp(t)},(r=i.getPartsEvents("mousedown")).push(h(s.renderTo,"mousemove",t),h(n.ownerDocument,"mouseup",e)),C&&(r.push(h(s.renderTo,"touchmove",t),h(n.ownerDocument,"touchend",e)),r.concat(i.getPartsEvents("touchstart"))),i.eventsToUnbind=r,i.series&&i.series[0]&&r.push(h(i.series[0].xAxis,"foundExtremes",(function(){s.navigator.modifyNavigatorAxisExtremes()})))},e.prototype.getPartsEvents=function(t){var e=this,i=[];return["shades","handles"].forEach((function(s){e[s].forEach((function(n,r){i.push(h(n.element,t,(function(t){e[s+"Mousedown"](t,r)})))}))})),i},e.prototype.shadesMousedown=function(t,e){t=this.chart.pointer.normalize(t);var i=this.chart,s=this.xAxis,n=this.zoomedMin,r=this.left,o=this.size,a=this.range,l=t.chartX;if(i.inverted&&(l=t.chartY,r=this.top),1===e)this.grabbedCenter=l,this.fixedWidth=a,this.dragOffset=l-n;else{if(t=l-r-a/2,0===e)t=Math.max(0,t);else if(2===e&&t+a>=o)if(t=o-a,this.reversedExtremes){t-=a;var h=this.getUnionExtremes().dataMin}else var c=this.getUnionExtremes().dataMax;t!==n&&(this.fixedWidth=a,e=s.navigatorAxis.toFixedRange(t,t+a,h,c),d(e.min)&&i.xAxis[0].setExtremes(Math.min(e.min,e.max),Math.max(e.min,e.max),!0,null,{trigger:"navigator"}))}},e.prototype.handlesMousedown=function(t,e){this.chart.pointer.normalize(t);var i=(t=this.chart).xAxis[0],s=this.reversedExtremes;0===e?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=s?i.min:i.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=s?i.max:i.min),t.fixedRange=null},e.prototype.onMouseMove=function(t){var e=this,i=e.chart,n=e.left,r=e.navigatorSize,o=e.range,a=e.dragOffset,l=i.inverted;t.touches&&0===t.touches[0].pageX||(t=i.pointer.normalize(t),i=t.chartX,l&&(n=e.top,i=t.chartY),e.grabbedLeft?(e.hasDragged=!0,e.render(0,0,i-n,e.otherHandlePos)):e.grabbedRight?(e.hasDragged=!0,e.render(0,0,e.otherHandlePos,i-n)):e.grabbedCenter&&(e.hasDragged=!0,ir+a-o&&(i=r+a-o),e.render(0,0,i-a,i-a+o)),e.hasDragged&&e.scrollbar&&x(e.scrollbar.options.liveRedraw,s.svg&&!k&&!this.chart.isBoosting)&&(t.DOMType=t.type,setTimeout((function(){e.onMouseUp(t)}),0)))},e.prototype.onMouseUp=function(t){var e=this.chart,i=this.xAxis,s=this.scrollbar,n=t.DOMEvent||t,r=e.inverted,o=this.rendered&&!this.hasDragged?"animate":"attr";if(this.hasDragged&&(!s||!s.hasDragged)||"scrollbar"===t.trigger){if(s=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos)var a=this.fixedExtreme;else if(this.zoomedMax===this.otherHandlePos)var l=this.fixedExtreme;this.zoomedMax===this.size&&(l=this.reversedExtremes?s.dataMin:s.dataMax),0===this.zoomedMin&&(a=this.reversedExtremes?s.dataMax:s.dataMin),i=i.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,a,l),d(i.min)&&e.xAxis[0].setExtremes(Math.min(i.min,i.max),Math.max(i.min,i.max),!0,!this.hasDragged&&null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:n})}"mousemove"!==t.DOMType&&"touchmove"!==t.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&v(this.zoomedMin)&&v(this.zoomedMax)&&(e=Math.round(this.zoomedMin),t=Math.round(this.zoomedMax),this.shades&&this.drawMasks(e,t,r,o),this.outline&&this.drawOutline(e,t,r,o),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(e,0,r,o),this.drawHandle(t,1,r,o)))},e.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach((function(t){t()})),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()},e.prototype.removeBaseSeriesEvents=function(){var t=this.baseSeries||[];this.navigatorEnabled&&t[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&t.forEach((function(t){_(t,"updatedData",this.updatedDataHandler)}),this),t[0].xAxis&&_(t[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},e.prototype.init=function(e){var i=e.options,s=i.navigator,r=s.enabled,a=i.scrollbar,l=a.enabled;i=r?s.height:0;var c=l?a.height:0;this.handles=[],this.shades=[],this.chart=e,this.setBaseSeries(),this.height=i,this.scrollbarHeight=c,this.scrollbarEnabled=l,this.navigatorEnabled=r,this.navigatorOptions=s,this.scrollbarOptions=a,this.outlineHeight=i+c,this.opposite=x(s.opposite,!(r||!e.inverted));var u=this;a=e.xAxis.length,l=e.yAxis.length;var d=(r=u.baseSeries)&&r[0]&&r[0].xAxis||e.xAxis[0]||{options:{}};e.isDirtyBox=!0,u.navigatorEnabled?(u.xAxis=new t(e,b({breaks:d.options.breaks,ordinal:d.options.ordinal},s.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:a,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},e.inverted?{offsets:[c,0,-c,0],width:i}:{offsets:[0,-c,0,c],height:i})),u.yAxis=new t(e,b(s.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:l,isInternal:!0,zoomEnabled:!1},e.inverted?{width:i}:{height:i})),r||s.series.data?u.updateNavigatorSeries(!1):0===e.series.length&&(u.unbindRedraw=h(e,"beforeRedraw",(function(){0a.indexOf(e)&&(e&&(_(e,"updatedData",r.updatedDataHandler),delete e.navigatorSeries),t.chart&&t.destroy(),1))}));a&&a.length&&a.forEach((function(t){var d=t.navigatorSeries,p=g({color:t.color,visible:t.visible},y(h)?l.navigator.series:h);d&&!1===r.navigatorOptions.adaptToUpdatedData||(c.name="Navigator "+a.length,(s=b(i=t.options||{},c,p,n=i.navigatorOptions||{})).pointRange=x(p.pointRange,n.pointRange,l.plotOptions[s.type||"line"].pointRange),p=n.data||p.data,r.hasNavigatorData=r.hasNavigatorData||!!p,s.data=p||i.data&&i.data.slice(0),d&&d.options?d.update(s,e):(t.navigatorSeries=o.initSeries(s),t.navigatorSeries.baseSeries=t,u.push(t.navigatorSeries)))})),(!h.data||a&&a.length)&&!y(h)||(r.hasNavigatorData=!1,(h=w(h)).forEach((function(t,e){c.name="Navigator "+(u.length+1),(s=b(l.navigator.series,{color:o.series[e]&&!o.series[e].options.isInternal&&o.series[e].color||o.options.colors[e]||o.options.colors[0]},c,t)).data=t.data,s.data&&(r.hasNavigatorData=!0,u.push(o.initSeries(s)))}))),t&&this.addBaseSeriesEvents()},e.prototype.addBaseSeriesEvents=function(){var t=this,e=t.baseSeries||[];e[0]&&e[0].xAxis&&h(e[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes),e.forEach((function(e){h(e,"show",(function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),h(e,"hide",(function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),!1!==this.navigatorOptions.adaptToUpdatedData&&e.xAxis&&h(e,"updatedData",this.updatedDataHandler),h(e,"remove",(function(){this.navigatorSeries&&(f(t.series,this.navigatorSeries),d(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))}),this)},e.prototype.getBaseSeriesMin=function(t){return this.baseSeries.reduce((function(t,e){return Math.min(t,e.xData?e.xData[0]:t)}),t)},e.prototype.modifyNavigatorAxisExtremes=function(){var t,e=this.xAxis;void 0!==e.getExtremes&&(!(t=this.getUnionExtremes(!0))||t.dataMin===e.min&&t.dataMax===e.max||(e.min=t.dataMin,e.max=t.dataMax))},e.prototype.modifyBaseAxisExtremes=function(){var t=this.chart.navigator,e=this.getExtremes(),i=e.dataMin,s=e.dataMax;e=e.max-e.min;var n=t.stickToMin,r=t.stickToMax,o=x(this.options.overscroll,0),a=t.series&&t.series[0],l=!!this.setExtremes;if(!this.eventArgs||"rangeSelectorButton"!==this.eventArgs.trigger){if(n)var h=i,c=i+e;r&&(c=s+o,n||(h=Math.max(i,c-e,t.getBaseSeriesMin(a&&a.xData?a.xData[0]:-Number.MAX_VALUE)))),l&&(n||r)&&v(h)&&(this.min=this.userMin=h,this.max=this.userMax=c)}t.stickToMin=t.stickToMax=null},e.prototype.updatedDataHandler=function(){var t=this.chart.navigator,e=this.navigatorSeries,i=t.getBaseSeriesMin(this.xData[0]);t.stickToMax=t.reversedExtremes?0===Math.round(t.zoomedMin):Math.round(t.zoomedMax)>=Math.round(t.size),t.stickToMin=v(this.xAxis.min)&&this.xAxis.min<=i&&(!this.chart.fixedRange||!t.stickToMax),e&&!t.hasNavigatorData&&(e.options.pointStart=this.xData[0],e.setData(this.options.data,!1,null,!1))},e.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(h(this.chart,"redraw",(function(){var t=this.navigator,e=t&&(t.baseSeries&&t.baseSeries[0]&&t.baseSeries[0].xAxis||this.xAxis[0]);e&&t.render(e.min,e.max)})),h(this.chart,"getMargins",(function(){var t=this.navigator,e=t.opposite?"plotTop":"marginBottom";this.inverted&&(e=t.opposite?"marginRight":"plotLeft"),this[e]=(this[e]||0)+(t.navigatorEnabled||!this.inverted?t.outlineHeight:0)+t.navigatorOptions.margin})))},e.prototype.destroy=function(){this.removeEvents(),this.xAxis&&(f(this.chart.xAxis,this.xAxis),f(this.chart.axes,this.xAxis)),this.yAxis&&(f(this.chart.yAxis,this.yAxis),f(this.chart.axes,this.yAxis)),(this.series||[]).forEach((function(t){t.destroy&&t.destroy()})),"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" ").forEach((function(t){this[t]&&this[t].destroy&&this[t].destroy(),this[t]=null}),this),[this.handles].forEach((function(t){p(t)}),this)},e}();return s.Navigator||(s.Navigator=A,n.compose(t),h(e,"beforeShowResetZoom",(function(){var t=this.options,e=t.navigator,i=t.rangeSelector;if((e&&e.enabled||i&&i.enabled)&&(!k&&"x"===t.chart.zoomType||k&&"x"===t.chart.pinchType))return!1})),h(e,"beforeRender",(function(){var t=this.options;(t.navigator.enabled||t.scrollbar.enabled)&&(this.scroller=this.navigator=new A(this))})),h(e,"afterSetChartSize",(function(){var t=this.legend,e=this.navigator;if(e){var i=t&&t.options,s=e.xAxis,n=e.yAxis,r=e.scrollbarHeight;this.inverted?(e.left=e.opposite?this.chartWidth-r-e.height:this.spacing[3]+r,e.top=this.plotTop+r):(e.left=this.plotLeft+r,e.top=e.navigatorOptions.top||this.chartHeight-e.height-r-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(i&&"bottom"===i.verticalAlign&&"proximate"!==i.layout&&i.enabled&&!i.floating?t.legendHeight+x(i.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),s&&n&&(this.inverted?s.options.left=n.options.left=e.left:s.options.top=n.options.top=e.top,s.setAxisSize(),n.setAxisSize())}})),h(e,"update",(function(t){var e=t.options.navigator||{},i=t.options.scrollbar||{};this.navigator||this.scroller||!e.enabled&&!i.enabled||(b(!0,this.options.navigator,e),b(!0,this.options.scrollbar,i),delete t.options.navigator,delete t.options.scrollbar)})),h(e,"afterUpdate",(function(t){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new A(this),x(t.redraw,!0)&&this.redraw(t.animation))})),h(e,"afterAddSeries",(function(){this.navigator&&this.navigator.setBaseSeries(null,!1)})),h(r,"afterUpdate",(function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)})),e.prototype.callbacks.push((function(t){var e=t.navigator;e&&t.xAxis[0]&&(t=t.xAxis[0].getExtremes(),e.render(t.min,t.max))}))),s.Navigator=A,s.Navigator})),e(i,"Core/Axis/OrdinalAxis.js",[i["Core/Axis/Axis.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e,i){var s=i.addEvent,n=i.css,r=i.defined,o=i.pick,a=i.timeUnits;i=e.Chart;var l,h=e.Series;return function(t){var i=function(){function t(t){this.index={},this.axis=t}return t.prototype.beforeSetTickPositions=function(){var t,e,i=this.axis,s=i.ordinal,n=[],r=!1,a=i.getExtremes(),l=a.min,h=a.max,c=i.isXAxis&&!!i.options.breaks;a=i.options.ordinal;var u,d=Number.MAX_VALUE,p=i.chart.options.chart.ignoreHiddenSeries;if(a||c){i.series.forEach((function(e,i){if(t=[],!(p&&!1===e.visible||!1===e.takeOrdinalPosition&&!c)&&(n=n.concat(e.processedXData),f=n.length,n.sort((function(t,e){return t-e})),d=Math.min(d,o(e.closestPointRange,d)),f)){for(i=0;ig||h-n[n.length-1]>g)&&(r=!0)}else i.options.overscroll&&(2===f?d=n[1]-n[0]:1===f?n=[n[0],n[0]+(d=i.options.overscroll)]:d=s.overscrollPointsRange);r?(i.options.overscroll&&(s.overscrollPointsRange=d,n=n.concat(s.getOverscrollPositions())),s.positions=n,g=i.ordinal2lin(Math.max(l,n[0]),!0),e=Math.max(i.ordinal2lin(Math.min(h,n[n.length-1]),!0),1),s.slope=h=(h-l)/(e-g),s.offset=l-g*h):(s.overscrollPointsRange=o(i.closestPointRange,s.overscrollPointsRange),s.positions=i.ordinal.slope=s.offset=void 0)}i.isOrdinal=a&&r,s.groupIntervalFactor=null},t.prototype.getExtendedPositions=function(){var t,i=this,s=i.axis,n=s.constructor.prototype,r=s.chart,o=s.series[0].currentDataGrouping,a=i.index,l=o?o.count+o.unitName:"raw",h=s.options.overscroll,c=s.getExtremes();if(a||(a=i.index={}),!a[l]){var u={series:[],chart:r,getExtremes:function(){return{min:c.dataMin,max:c.dataMax+h}},options:{ordinal:!0},ordinal:{},ordinal2lin:n.ordinal2lin,val2lin:n.val2lin};u.ordinal.axis=u,s.series.forEach((function(s){(t={xAxis:u,xData:s.xData.slice(),chart:r,destroyGroupedData:e.noop,getProcessedData:e.Series.prototype.getProcessedData}).xData=t.xData.concat(i.getOverscrollPositions()),t.options={dataGrouping:o?{enabled:!0,forced:!0,approximation:"open",units:[[o.unitName,[o.count]]]}:{enabled:!1}},s.processData.apply(t),u.series.push(t)})),s.ordinal.beforeSetTickPositions.apply({axis:u}),a[l]=u.ordinal.positions}return a[l]},t.prototype.getGroupIntervalFactor=function(t,e,i){var s=(i=i.processedXData).length,n=[],r=this.groupIntervalFactor;if(!r){for(r=0;rn.length||void 0===e)return m.getTimeTicks.apply(m,arguments);var v=n.length;for(h=0;hi;if(n[h]5*o||b){if(n[h]>f){for(c=m.getTimeTicks(t,n[u],n[h],s);c.length&&c[0]<=f;)c.shift();c.length&&(f=c[c.length-1]),y.push(p.length),p=p.concat(c)}u=h+1}if(b)break}if(c=c.info,l&&c.unitRange<=a.hour){for(h=p.length-1,u=1;ui?y-1:y,_=void 0;u--;)h=x[u],y=Math.abs(_-h),_&&y<.8*g&&(null===m||y<.8*m)?(d[p[u]]&&!d[p[u+1]]?(y=u+1,_=h):y=u,p.splice(y,1)):_=h}return p},l.lin2val=function(t,e){var i=this.ordinal,s=i.positions;if(s){var n=i.slope,r=i.offset;if(i=s.length-1,e)if(0>t)t=s[0];else if(t>i)t=s[i];else var o=t-(i=Math.floor(t));else for(;i--;)if(t>=(e=n*i+r)){o=(t-e)/((n=n*(i+1)+r)-e);break}return void 0!==o&&void 0!==s[i]?s[i]+(o?o*(s[i+1]-s[i]):0):t}return t},l.val2lin=function(t,e){var i=this.ordinal,s=i.positions;if(s){var n,r=s.length;for(n=r;n--;)if(s[n]===t){var o=n;break}for(n=r-1;n--;)if(t>s[n]||0===n){o=n+(t=(t-s[n])/(s[n+1]-s[n]));break}e=e?o:i.slope*(o||0)+i.offset}else e=t;return e},l.ordinal2lin=l.val2lin,s(e,"afterInit",(function(){this.ordinal||(this.ordinal=new t.Composition(this))})),s(e,"foundExtremes",(function(){this.isXAxis&&r(this.options.overscroll)&&this.max===this.dataMax&&(!this.chart.mouseIsDown||this.isInternal)&&(!this.eventArgs||this.eventArgs&&"navigator"!==this.eventArgs.trigger)&&(this.max+=this.options.overscroll,!this.isInternal&&r(this.userMin)&&(this.min+=this.options.overscroll))})),s(e,"afterSetScale",(function(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)})),s(e,"initialAxisTranslation",(function(){this.ordinal&&(this.ordinal.beforeSetTickPositions(),this.tickInterval=this.ordinal.postProcessTickInterval(this.tickInterval))})),s(i,"pan",(function(t){var e=this.xAxis[0],i=e.options.overscroll,s=t.originalEvent.chartX,r=this.options.chart&&this.options.chart.panning,o=!1;if(r&&"y"!==r.type&&e.options.ordinal&&e.series.length){var a=this.mouseDownX,l=e.getExtremes(),h=l.dataMax,c=l.min,u=l.max,d=this.hoverPoints,p=e.closestPointRange||e.ordinal&&e.ordinal.overscrollPointsRange;a=(a-s)/(e.translationSlope*(e.ordinal.slope||p));var f={ordinal:{positions:e.ordinal.getExtendedPositions()}};p=e.lin2val;var g=e.val2lin;if(f.ordinal.positions){if(1a){d=f;var m=e.ordinal.positions?e:f}else d=e.ordinal.positions?e:f,m=f;h>(f=m.ordinal.positions)[f.length-1]&&f.push(h),this.fixedRange=u-c,(a=e.navigatorAxis.toFixedRange(null,null,p.apply(d,[g.apply(d,[c,!0])+a,!0]),p.apply(m,[g.apply(m,[u,!0])+a,!0]))).min>=Math.min(l.dataMin,c)&&a.max<=Math.max(h,u)+i&&e.setExtremes(a.min,a.max,!0,!1,{trigger:"pan"}),this.mouseDownX=s,n(this.container,{cursor:"move"})}}else o=!0}else o=!0;o||r&&/y/.test(r.type)?i&&(e.max=e.dataMax+i):t.preventDefault()})),s(o,"updatedData",(function(){var t=this.xAxis;t&&t.options.ordinal&&delete t.ordinal.index}))}}(l||(l={})),l.compose(t,i,h),l})),e(i,"Core/Axis/BrokenAxis.js",[i["Core/Axis/Axis.js"],i["Core/Globals.js"],i["Core/Utilities.js"],i["Extensions/Stacking.js"]],(function(t,e,i,s){var n=i.addEvent,r=i.find,o=i.fireEvent,a=i.isArray,l=i.isNumber,h=i.pick,c=e.Series,u=function(){function e(t){this.hasBreaks=!1,this.axis=t}return e.isInBreak=function(t,e){var i=t.repeat||1/0,s=t.from,n=t.to-t.from;return e=e>=s?(e-s)%i:i-(s-e)%i,t.inclusive?e<=n:e=t)break;(n.to=t)break;if(e.isInBreak(r,t)){n-=t-r.from;break}}}return n},e.prototype.findBreakAt=function(t,e){return r(e,(function(e){return e.fromd;)m-=s;for(;me.to||s>e.from&&re.from&&re.from&&r>e.to&&rt&&e>=this.basePointRange&&(t=e),i=void 0;r--;)i&&!1!==i.visible||(i=n[r+1]),e=n[r],!1!==i.visible&&!1!==e.visible&&(i.x-e.x>t&&(n.splice(r+1,0,{isNull:!0,x:i=(e.x+i.x)/2}),o.stacking&&this.options.stacking&&((i=o.stacking.stacks[this.stackKey][i]=new s(o,o.options.stackLabels,!1,i,this.stack)).total=0)),i=e);return this.getGraphPath(n)},n(t,"init",(function(){this.brokenAxis||(this.brokenAxis=new u(this))})),n(t,"afterInit",(function(){void 0!==this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,!1)})),n(t,"afterSetTickPositions",(function(){var t=this.brokenAxis;if(t&&t.hasBreaks){var e,i=this.tickPositions,s=this.tickPositions.info,n=[];for(e=0;e=i[0]);n++);for(;n<=d;n++){for(;void 0!==i[_+1]&&t[n]>=i[_+1]||n===d;){var k=i[_];r.dataGroupInfo={start:r.cropStart+w,length:m[0].length};var S=s.apply(r,m);for(r.pointClass&&!c(r.dataGroupInfo.options)&&(r.dataGroupInfo.options=g(r.pointClass.prototype.optionsToObject.call({series:r},r.options.data[r.cropStart+w])),x.forEach((function(t){delete r.dataGroupInfo.options[t]}))),void 0!==S&&(l.push(k),h.push(S),u.push(r.dataGroupInfo)),w=n,k=0;kthis.chart.plotSizeX/n||s&&e.forced)&&(r=!0);return r?n:0},y.prototype.setDataGrouping=function(t,e){var i;if(e=m(e,!0),t||(t={forced:!1,units:null}),this instanceof y)for(i=this.series.length;i--;)this.series[i].update({dataGrouping:t},!1);else this.chart.options.series.forEach((function(e){e.dataGrouping=t}),!1);this.ordinal&&(this.ordinal.slope=void 0),e&&this.chart.redraw()},e.dataGrouping=x,x})),e(i,"Series/OHLCSeries.js",[i["Core/Globals.js"],i["Core/Series/Point.js"],i["Core/Utilities.js"]],(function(t,e,i){var s=t.seriesTypes;(i=i.seriesType)("ohlc","column",{lineWidth:1,tooltip:{pointFormat:'\u25cf {series.name}
Open: {point.open}
High: {point.high}
Low: {point.low}
Close: {point.close}
'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:["open","high","low","close"],toYData:function(t){return[t.open,t.high,t.low,t.close]},pointValKey:"close",pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},init:function(){s.column.prototype.init.apply(this,arguments),this.options.stacking=void 0},pointAttribs:function(t,e){e=s.column.prototype.pointAttribs.call(this,t,e);var i=this.options;return delete e.fill,!t.options.color&&i.upColor&&t.open--l)break}}}a.forEach((function(s,n){if(s.plotX+=y,(void 0===s.plotY||f)&&(0<=s.plotX&&s.plotX<=g.len?f?(s.plotY=g.translate(s.x,0,1,0,1),s.plotX=i(s.y)?m.translate(s.y,0,0,0,1):0):s.plotY=(g.opposite?0:e.yAxis.len)+g.offset:s.shapeArgs={}),(t=a[n-1])&&t.plotX===s.plotX){void 0===t.stackIndex&&(t.stackIndex=0);var r=t.stackIndex+1}s.stackIndex=r})),this.onSeries=h}}})),e(i,"Series/FlagsSeries.js",[i["Core/Globals.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Core/Utilities.js"],i["Mixins/OnSeries.js"]],(function(t,e,i,s,n){function r(t){m[t+"pin"]=function(e,i,s,n,r){var o=r&&r.anchorX;r=r&&r.anchorY,"circle"===t&&n>s&&(e-=Math.round((n-s)/2),s=n);var a=m[t](e,i,s,n);if(o&&r){var l=o;"circle"===t?l=e+s/2:(s=a[1],"M"===(e=a[0])[0]&&"L"===s[0]&&(l=(e[1]+s[1])/2)),a.push(["M",l,i>r?i:i+n],["L",o,r]),a=a.concat(m.circle(o-1,r-1,2,2))}return a}}var o=s.addEvent,a=s.defined,l=s.isNumber,h=s.merge,c=s.objectEach,u=s.wrap,d=t.Renderer,p=t.Series,f=t.TrackerMixin,g=t.VMLRenderer,m=i.prototype.symbols;(0,s.seriesType)("flags","column",{pointRange:0,allowOverlapX:!1,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}
"},threshold:null,y:-30,fillColor:"#ffffff",lineWidth:1,states:{hover:{lineColor:"#000000",fillColor:"#ccd6eb"}},style:{fontSize:"11px",fontWeight:"bold"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],forceCrop:!0,init:p.prototype.init,pointAttribs:function(t,e){var i=this.options,s=t&&t.color||this.color,n=i.lineColor,r=t&&t.lineWidth;return t=t&&t.fillColor||i.fillColor,e&&(t=i.states[e].fillColor,n=i.states[e].lineColor,r=i.states[e].lineWidth),{fill:t||s,stroke:n||s,"stroke-width":r||i.lineWidth||0}},translate:n.translate,getPlotBox:n.getPlotBox,drawPoints:function(){var i,s=this.points,n=this.chart,r=n.renderer,o=n.inverted,l=this.options,d=l.y,p=this.yAxis,f={},g=[];for(i=s.length;i--;){var m=s[i],y=(o?m.plotY:m.plotX)>this.xAxis.len,v=m.plotX,b=m.stackIndex,x=m.options.shape||l.shape,_=m.plotY;void 0!==_&&(_=m.plotY+d-(void 0!==b&&b*l.stackDistance)),m.anchorX=b?void 0:m.plotX;var w=b?void 0:m.plotY,C="flag"!==x;b=m.graphic,void 0!==_&&0<=v&&!y?(b||(b=m.graphic=r.label("",null,null,x,null,null,l.useHTML),n.styledMode||b.attr(this.pointAttribs(m)).css(h(l.style,m.style)),b.attr({align:C?"center":"left",width:l.width,height:l.height,"text-align":l.textAlign}).addClass("highcharts-point").add(this.markerGroup),m.graphic.div&&(m.graphic.div.point=m),n.styledMode||b.shadow(l.shadow),b.isNew=!0),0a-o,_=f=864e5*{month:28,year:365}[g]*m-b&&s-36e5<=864e5*{month:31,year:366}[g]*m+b?f=!0:"ytd"===g?(f=h-l+b===s,w=!e):"all"===g&&(f=i.max-i.min>=a-o,C=!e&&u&&f),m=e&&f||f&&!u&&!w||e&&t.frozenStates,(g=!d&&(x||_||C||n))?v=3:m&&(u=!0,v=2),y.state!==v&&(y.setState(v),0===v&&c===r&&t.setSelected(null))}))},e.prototype.computeButtonRange=function(t){var e=t.type,i=t.count||1,s={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};s[e]?t._range=s[e]*i:"month"!==e&&"year"!==e||(t._range=864e5*{month:30,year:365}[e]*i),t._offsetMin=v(t.offsetMin,0),t._offsetMax=v(t.offsetMax,0),t._range+=t._offsetMax-t._offsetMin},e.prototype.setInputValue=function(t,e){var i=this.chart.options.rangeSelector,s=this.chart.time,n=this[t+"Input"];c(e)&&(n.previousValue=n.HCTime,n.HCTime=e),n.value=s.dateFormat(i.inputEditDateFormat||"%Y-%m-%d",n.HCTime),this[t+"DateBox"].attr({text:s.dateFormat(i.inputDateFormat||"%b %e, %Y",n.HCTime)})},e.prototype.showInput=function(t){var e=this.inputGroup,i=this[t+"DateBox"];h(this[t+"Input"],{left:e.translateX+i.x+"px",top:e.translateY+"px",width:i.width-2+"px",height:i.height-2+"px",border:"2px solid silver"})},e.prototype.hideInput=function(t){h(this[t+"Input"],{border:0,width:"1px",height:"1px"}),this.setInputValue(t)},e.prototype.defaultInputDateParser=function(t,e){var s=new Date;return i.isSafari?Date.parse(t.split(" ").join("T")):e?Date.parse(t+"Z"):Date.parse(t)-6e4*s.getTimezoneOffset()},e.prototype.drawInput=function(t){function e(){var t=s.value,e=a.xAxis[0],i=a.scroller&&a.scroller.xAxis?a.scroller.xAxis:e,n=i.dataMin,o=i.dataMax;(i=(d.inputDateParser||x)(t,a.time.useUTC))!==s.previousValue&&(s.previousValue=i,g(i)||(i=t.split("-"),i=Date.UTC(b(i[0]),b(i[1])-1,b(i[2]))),g(i)&&(a.time.useUTC||(i+=6e4*(new Date).getTimezoneOffset()),y?i>r.maxInput.HCTime?i=void 0:io&&(i=o),void 0!==i&&e.setExtremes(y?i:e.min,y?e.max:i,void 0,void 0,{trigger:"rangeSelectorInput"})))}var s,n,r=this,a=r.chart,c=a.renderer.style||{},u=a.renderer,d=a.options.rangeSelector,f=r.div,y="min"===t,v=this.inputGroup,x=this.defaultInputDateParser;this[t+"Label"]=n=u.label(o.lang[y?"rangeSelectorFrom":"rangeSelectorTo"],this.inputGroup.offset).addClass("highcharts-range-label").attr({padding:2}).add(v),v.offset+=n.width+5,this[t+"DateBox"]=u=u.label("",v.offset).addClass("highcharts-range-input").attr({padding:2,width:d.inputBoxWidth||90,height:d.inputBoxHeight||17,"text-align":"center"}).on("click",(function(){r.showInput(t),r[t+"Input"].focus()})),a.styledMode||u.attr({stroke:d.inputBoxBorderColor||"#cccccc","stroke-width":1}),u.add(v),v.offset+=u.width+(y?10:0),this[t+"Input"]=s=l("input",{name:t,className:"highcharts-range-selector",type:"text"},{top:a.plotTop+"px"},f),a.styledMode||(n.css(m(c,d.labelStyle)),u.css(m({color:"#333333"},c,d.inputStyle)),h(s,p({position:"absolute",border:0,width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:c.fontSize,fontFamily:c.fontFamily,top:"-9999em"},d.inputStyle))),s.onfocus=function(){r.showInput(t)},s.onblur=function(){s===i.doc.activeElement&&e(),r.hideInput(t),s.blur()},s.onchange=e,s.onkeypress=function(t){13===t.keyCode&&e()}},e.prototype.getPosition=function(){var t=this.chart,e=t.options.rangeSelector;return{buttonTop:(t="top"===e.verticalAlign?t.plotTop-t.axisOffset[0]:0)+e.buttonPosition.y,inputTop:t+e.inputPosition.y-10}},e.prototype.getYTDExtremes=function(t,e,i){var s=this.chart.time,n=new s.Date(t),r=s.get("FullYear",n);return i=i?s.Date.UTC(r,0,1):+new s.Date(r,0,1),e=Math.max(e||0,i),n=n.getTime(),{max:Math.min(t||n,n),min:e}},e.prototype.render=function(t,e){var i=this,s=i.chart,n=s.renderer,r=s.container,a=s.options,h=a.exporting&&!1!==a.exporting.enabled&&a.navigation&&a.navigation.buttonOptions,c=o.lang,u=i.div,d=a.rangeSelector,p=v(a.chart.style&&a.chart.style.zIndex,0)+1;a=d.floating;var f=i.buttons;u=i.inputGroup;var g,m=d.buttonTheme,y=d.buttonPosition,b=d.inputPosition,x=d.inputEnabled,_=m&&m.states,w=s.plotLeft,C=i.buttonGroup,k=i.options.verticalAlign,S=s.legend,A=S&&S.options,E=y.y,M=b.y,T=s.hasLoaded,D=T?"animate":"attr",P=0,O=0;if(!1!==d.enabled){i.rendered||(i.group=g=n.g("range-selector-group").attr({zIndex:7}).add(),i.buttonGroup=C=n.g("range-selector-buttons").add(g),i.zoomText=n.text(c.rangeSelectorZoom,0,15).add(C),s.styledMode||(i.zoomText.css(d.labelStyle),m["stroke-width"]=v(m["stroke-width"],0)),i.buttonOptions.forEach((function(t,e){f[e]=n.button(t.text,0,0,(function(s){var n,r=t.events&&t.events.click;r&&(n=r.call(t,s)),!1!==n&&i.clickButton(e),i.isActive=!0}),m,_&&_.hover,_&&_.select,_&&_.disabled).attr({"text-align":"center"}).add(C)})),!1!==x&&(i.div=u=l("div",null,{position:"relative",height:0,zIndex:p}),r.parentNode.insertBefore(u,r),i.inputGroup=u=n.g("input-group").add(g),u.offset=0,i.drawInput("min"),i.drawInput("max"))),i.zoomText[D]({x:v(w+y.x,w)});var L=v(w+y.x,w)+i.zoomText.getBBox().width+5;i.buttonOptions.forEach((function(t,e){f[e][D]({x:L}),L+=f[e].width+v(d.buttonSpacing,5)})),w=s.plotLeft-s.spacing[3],i.updateButtonStates(),h&&this.titleCollision(s)&&"top"===k&&"right"===y.align&&y.y+C.getBBox().height-12<(h.y||0)+h.height&&(P=-40),r=y.x-s.spacing[3],"right"===y.align?r+=P-w:"center"===y.align&&(r-=w/2),C.align({y:y.y,width:C.getBBox().width,align:y.align,x:r},!0,s.spacingBox),i.group.placed=T,i.buttonGroup.placed=T,!1!==x&&(P=h&&this.titleCollision(s)&&"top"===k&&"right"===b.align&&b.y-u.getBBox().height-12<(h.y||0)+h.height+s.spacing[0]?-40:0,"left"===b.align?r=w:"right"===b.align&&(r=-Math.max(s.axisOffset[1],-P)),u.align({y:b.y,width:u.getBBox().width,align:b.align,x:b.x+r-2},!0,s.spacingBox),h=u.alignAttr.translateX+u.alignOptions.x-P+u.getBBox().x+2,r=u.alignOptions.width,c=C.alignAttr.translateX+C.getBBox().x,w=C.getBBox().width+20,(b.align===y.align||c+w>h&&h+r>c&&E=-P?0:-P),translateY:u.alignAttr.translateY+C.getBBox().height+10}),i.setInputValue("min",t),i.setInputValue("max",e),i.inputGroup.placed=T),i.group.align({verticalAlign:k},!0,s.spacingBox),t=i.group.getBBox().height+20,e=i.group.alignAttr.translateY,"bottom"===k&&(O=e-(t=t+(S=A&&"bottom"===A.verticalAlign&&A.enabled&&!A.floating?S.legendHeight+v(A.margin,10):0)-20)-(a?0:d.y)-(s.titleOffset?s.titleOffset[2]:0)-10),"top"===k?(a&&(O=0),s.titleOffset&&s.titleOffset[0]&&(O=s.titleOffset[0]),O+=s.margin[0]-s.spacing[0]||0):"middle"===k&&(M===E?O=0>M?e+void 0:e:(M||E)&&(O=0>M||0>E?O-Math.min(M,E):e-t+NaN)),i.group.translate(d.x,d.y+Math.floor(O)),!1!==x&&(i.minInput.style.marginTop=i.group.translateY+"px",i.maxInput.style.marginTop=i.group.translateY+"px"),i.rendered=!0}},e.prototype.getHeight=function(){var t=this.options,e=this.group,i=t.y,s=t.buttonPosition.y,n=t.inputPosition.y;return t.height?t.height:(t=e?e.getBBox(!0).height+13+i:0,e=Math.min(n,s),(0>n&&0>s||0u+r.width)&&(_?e=s=h(e,u,u+r.width):o=!0),o||f.push(["M",e,i],["L",s,n])}:function(t){var o;s=(e=t.pos)+t.len,i=n=Math.round(p+r.height-C),"pass"!==_&&(ip+r.height)&&(_?i=n=h(i,p,p+r.height):o=!0),o||f.push(["M",e,i],["L",s,n])}),t.path=0C?"hidden":"visible"}),r=d.getBBox(),g(d.y)&&(o?(y&&!a||!y&&a)&&(h=d.y-r.height):h=d.y-r.height/2),o?(e=l-r.x,i=l+this.width-r.x):(e="left"===this.labelAlign?l:0,i="right"===this.labelAlign?l+this.width:s.chartWidth),d.translateX=i&&(x=-(d.translateX+r.width-i)),d.attr({x:n+x,y:h,anchorX:o?n:this.opposite?0:s.chartWidth,anchorY:o?this.opposite?s.chartHeight:0:h+r.height/2})}})),x.init=function(){_.apply(this,arguments),this.setCompare(this.options.compare)},x.setCompare=function(t){this.modifyValue="value"===t||"percent"===t?function(e,i){var s=this.compareValue;return void 0!==e&&void 0!==s?(e="value"===t?e-s:e/s*100-(100===this.options.compareBase?0:100),i&&(i.change=e),e):0}:null,this.userOptions.compare=t,this.chart.hasRendered&&(this.isDirty=!0)},x.processData=function(t){var e,i=-1,s=!0===this.options.compareStart?0:1;if(w.apply(this,arguments),this.xAxis&&this.processedYData){var n=this.processedXData,r=this.processedYData,o=r.length;for(this.pointArrayMap&&(i=this.pointArrayMap.indexOf(this.options.pointValKey||this.pointValKey||"y")),e=0;e=this.xAxis.min&&0!==a){this.compareValue=a;break}}}},o(r,"afterGetExtremes",(function(t){if(t=t.dataExtremes,this.modifyValue&&t){var e=[this.modifyValue(t.dataMin),this.modifyValue(t.dataMax)];t.dataMin=l(e),t.dataMax=a(e)}})),t.prototype.setCompare=function(t,e){this.isXAxis||(this.series.forEach((function(e){e.setCompare(t)})),v(e,!0)&&this.chart.redraw())},s.prototype.tooltipFormatter=function(t){return t=t.replace("{point.change}",(0parseInt(s.split("Firefox/")[1],10);return{product:"Highcharts",version:"8.2.0",deg2rad:2*Math.PI/360,doc:i,hasBidiBug:l,hasTouch:!!e.TouchEvent,isMS:r,isWebKit:-1!==s.indexOf("AppleWebKit"),isFirefox:o,isChrome:a,isSafari:!a&&-1!==s.indexOf("Safari"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(s),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:n,win:e,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[],dateFormats:{}}})),e(i,"Core/Utilities.js",[i["Core/Globals.js"]],(function(t){function e(t,i,s,n){var r=i?"Highcharts error":"Highcharts warning";32===t&&(t=r+": Deprecated member");var o=m(t),a=o?r+" #"+t+": www.highcharts.com/errors/"+t+"/":t.toString();if(r=function(){if(i)throw Error(a);h.console&&-1===e.messages.indexOf(a)&&console.log(a)},void 0!==n){var l="";o&&(a+="?"),q(n,(function(t,e){l+="\n - "+e+": "+t,o&&(a+=encodeURI(e)+"="+encodeURI(t))})),a+=l}s?Q(s,"displayError",{code:t,message:a,params:n},r):r(),e.messages.push(a)}function i(){var t,e=arguments,i={},n=function(t,e){return"object"!=typeof t&&(t={}),q(e,(function(i,r){t[r]=!s(i,!0)||g(i)||f(i)?e[r]:n(t[r]||{},i)})),t};!0===e[0]&&(i=e[1],e=Array.prototype.slice.call(e,2));var r=e.length;for(t=0;ts)for(var n=0;n=r+this.startTime){this.now=this.end,this.pos=1,this.update();var a=o[this.prop]=!0;q(o,(function(t){!0!==t&&(a=!1)})),a&&n&&n.call(s),t=!1}else this.pos=i.easing((e-this.startTime)/r),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t},e.prototype.initPath=function(t,e,i){function s(t,e){for(;t.lengtht&&-1/0=i&&(e=[1/i]))),s=0;s=t||!n&&a<=(e[s]+(e[s+1]||e[s]))/2));s++);return F(o*i,-Math.round(Math.log(.001)/Math.LN10))},O=t.stableSort=function(t,e){var i,s,n=t.length;for(s=0;si&&(i=t[e]);return i},R=t.destroyObjectProperties=function(t,e){q(t,(function(i,s){i&&i!==e&&i.destroy&&i.destroy(),delete t[s]}))},B=t.discardElement=function(e){var i=t.garbageBin;i||(i=k("div")),e&&i.appendChild(e),i.innerHTML=""},F=t.correctFloat=function(t,e){return parseFloat(t.toPrecision(e||14))},N=t.setAnimation=function(t,e){e.renderer.globalAnimation=r(t,e.options.chart.animation,!0)},j=t.animObject=function(e){return s(e)?t.merge({duration:500,defer:0},e):{duration:e?500:0,defer:0}},z=t.timeUnits={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},H=t.numberFormat=function(e,i,s,n){i=+i;var o=t.defaultOptions.lang,a=((e=+e||0).toString().split(".")[1]||"").split("e")[0].length,l=e.toString().split("e");if(-1===i)i=Math.min(a,20);else if(m(i)){if(i&&l[1]&&0>l[1]){var h=i+ +l[1];0<=h?(l[0]=(+l[0]).toExponential(h).split("e")[0],i=h):(l[0]=l[0].split(".")[0]||0,e=20>i?(l[0]*Math.pow(10,l[1])).toFixed(i):0,l[1]=0)}}else i=2;var c=(Math.abs(l[1]?l[0]:e)+Math.pow(10,-Math.max(i,a)-1)).toFixed(i);return h=3<(a=String(u(c))).length?a.length%3:0,s=r(s,o.decimalPoint),n=r(n,o.thousandsSep),e=(0>e?"-":"")+(h?a.substr(0,h)+n:""),e+=a.substr(h).replace(/(\d{3})(?=\d)/g,"$1"+n),i&&(e+=s+c.slice(-i)),l[1]&&0!=+e&&(e+="e"+l[1]),e};Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)};var W=t.getStyle=function(i,s,n){return"width"===s?(s=Math.min(i.offsetWidth,i.scrollWidth),(n=i.getBoundingClientRect&&i.getBoundingClientRect().width)=s-1&&(s=Math.floor(n)),Math.max(0,s-t.getStyle(i,"padding-left")-t.getStyle(i,"padding-right"))):"height"===s?Math.max(0,Math.min(i.offsetHeight,i.scrollHeight)-t.getStyle(i,"padding-top")-t.getStyle(i,"padding-bottom")):(h.getComputedStyle||e(27,!0),(i=h.getComputedStyle(i,void 0))&&(i=i.getPropertyValue(s),r(n,"opacity"!==s)&&(i=u(i))),i)},V=t.getDeferredAnimation=function(t,e,i){var s=j(e),n=0,r=0;return(i?[i]:t.series).forEach((function(t){t=j(t.options.animation),n=e&&v(e.defer)?s.defer:Math.max(n,t.duration+t.defer),r=Math.min(s.duration,t.duration)})),t.renderer.forExport&&(n=0),{defer:Math.max(0,n-r),duration:Math.min(n,r)}},G=t.inArray=function(t,i,s){return e(32,!1,void 0,{"Highcharts.inArray":"use Array.indexOf"}),i.indexOf(t,s)},U=t.find=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){var i,s=t.length;for(i=0;ie?t>16,(65280&e)>>8,255&e,1]:4===n&&(i=[(3840&e)>>4|(3840&e)>>8,(240&e)>>4|240&e,(15&e)<<4|15&e,1])}if(!i)for(s=this.parsers.length;s--&&!i;){var r=this.parsers[s];(n=r.regex.exec(e))&&(i=r.parse(n))}}this.rgba=i||[]},t.prototype.get=function(t){var e=this.input,n=this.rgba;if(void 0!==this.stops){var r=s(e);r.stops=[].concat(r.stops),this.stops.forEach((function(e,i){r.stops[i]=[r.stops[i][0],e.get(t)]}))}else r=n&&i(n[0])?"rgb"===t||!t&&1===n[3]?"rgb("+n[0]+","+n[1]+","+n[2]+")":"a"===t?n[3]:"rgba("+n.join(",")+")":e;return r},t.prototype.brighten=function(t){var e,s=this.rgba;if(this.stops)this.stops.forEach((function(e){e.brighten(t)}));else if(i(t)&&0!==t)for(e=0;3>e;e++)s[e]+=n(255*t),0>s[e]&&(s[e]=0),255n.width)&&(n={width:0,height:0})}else n=this.htmlGetBBox();if(r.isSVG&&(t=n.width,r=n.height,u&&(n.height=r={"11px,17":14,"13px,20":16}[a&&a.fontSize+","+Math.round(r)]||r),e&&(a=e*s,n.width=Math.abs(r*Math.sin(a))+Math.abs(t*Math.cos(a)),n.height=Math.abs(r*Math.cos(a))+Math.abs(t*Math.sin(a)))),p&&0]*>/g,"").replace(/</g,"<").replace(/>/g,">")))},i.prototype.toFront=function(){var t=this.element;return t.parentNode.appendChild(t),this},i.prototype.translate=function(t,e){return this.attr({translateX:t,translateY:e})},i.prototype.updateShadows=function(t,e,i){var s=this.shadows;if(s)for(var n=s.length;n--;)i.call(s[n],"height"===t?Math.max(e-(s[n].cutHeight||0),0):"d"===t?this.d:e,t,s[n])},i.prototype.updateTransform=function(){var t=this.translateX||0,e=this.translateY||0,i=this.scaleX,s=this.scaleY,n=this.inverted,r=this.rotation,o=this.matrix,a=this.element;n&&(t+=this.width,e+=this.height),t=["translate("+t+","+e+")"],m(o)&&t.push("matrix("+o.join(",")+")"),n?t.push("rotate(90) scale(-1,1)"):r&&t.push("rotate("+r+" "+A(this.rotationOriginX,a.getAttribute("x"),0)+" "+A(this.rotationOriginY,a.getAttribute("y")||0)+")"),(m(i)||m(s))&&t.push("scale("+A(i,1)+" "+A(s,1)+")"),t.length&&a.setAttribute("transform",t.join(" "))},i.prototype.visibilitySetter=function(t,e,i){"inherit"===t?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t},i.prototype.xGetter=function(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)},i.prototype.zIndexSetter=function(t,e){var i=this.renderer,s=this.parentGroup,n=(s||i).element||i.box,r=this.element,o=!1;i=n===i.box;var a,l=this.added;if(m(t)?(r.setAttribute("data-z-index",t),this[e]===(t=+t)&&(l=!1)):m(this[e])&&r.removeAttribute("data-z-index"),this[e]=t,l){for((t=this.zIndex)&&s&&(s.handleZ=!0),a=(e=n.childNodes).length-1;0<=a&&!o;a--){l=(s=e[a]).getAttribute("data-z-index");var h=!m(l);s!==r&&(0>t&&h&&!i&&!a?(n.insertBefore(r,e[a]),o=!0):(E(l)<=t||h&&(!m(t)||0<=t))&&(n.insertBefore(r,e[a+1]||null),o=!0))}o||(n.insertBefore(r,e[i?3:0]||null),o=!0)}return o},i}()).prototype["stroke-widthSetter"]=i.prototype.strokeSetter,i.prototype.yGetter=i.prototype.xGetter,i.prototype.matrixSetter=i.prototype.rotationOriginXSetter=i.prototype.rotationOriginYSetter=i.prototype.rotationSetter=i.prototype.scaleXSetter=i.prototype.scaleYSetter=i.prototype.translateXSetter=i.prototype.translateYSetter=i.prototype.verticalAlignSetter=function(t,e){this[e]=t,this.doTransform=!0},e.SVGElement=i,e.SVGElement})),e(i,"Core/Renderer/SVG/SVGLabel.js",[i["Core/Renderer/SVG/SVGElement.js"],i["Core/Utilities.js"]],(function(t,e){var i=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),s=e.defined,n=e.extend,r=e.isNumber,o=e.merge,a=e.removeEvent;return function(e){function l(t,i,s,n,r,o,a,h,c,u){var d=e.call(this)||this;if(d.init(t,"g"),d.textStr=i,d.x=s,d.y=n,d.anchorX=o,d.anchorY=a,d.baseline=c,d.className=u,"button"!==u&&d.addClass("highcharts-label"),u&&d.addClass("highcharts-"+u),d.text=t.text("",0,0,h).attr({zIndex:1}),"string"==typeof r){var p=/^url\((.*?)\)$/.test(r);(d.renderer.symbols[r]||p)&&(d.symbolKey=r)}return d.bBox=l.emptyBBox,d.padding=3,d.paddingLeft=0,d.baselineOffset=0,d.needsBox=t.styledMode||p,d.deferredAttr={},d.alignFactor=0,d}return i(l,e),l.prototype.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==this.alignFactor&&(this.alignFactor=t,this.bBox&&r(this.xSetting)&&this.attr({x:this.xSetting}))},l.prototype.anchorXSetter=function(t,e){this.anchorX=t,this.boxAttr(e,Math.round(t)-this.getCrispAdjust()-this.xSetting)},l.prototype.anchorYSetter=function(t,e){this.anchorY=t,this.boxAttr(e,t-this.ySetting)},l.prototype.boxAttr=function(t,e){this.box?this.box.attr(t,e):this.deferredAttr[t]=e},l.prototype.css=function(e){if(e){var i={};e=o(e),l.textProps.forEach((function(t){void 0!==e[t]&&(i[t]=e[t],delete e[t])})),this.text.css(i);var s="fontSize"in i||"fontWeight"in i;("width"in i||s)&&(this.updateBoxSize(),s&&this.updateTextPadding())}return t.prototype.css.call(this,e)},l.prototype.destroy=function(){a(this.element,"mouseenter"),a(this.element,"mouseleave"),this.text&&this.text.destroy(),this.box&&(this.box=this.box.destroy()),t.prototype.destroy.call(this)},l.prototype.fillSetter=function(t,e){t&&(this.needsBox=!0),this.fill=t,this.boxAttr(e,t)},l.prototype.getBBox=function(){var t=this.bBox,e=this.padding;return{width:t.width+2*e,height:t.height+2*e,x:t.x-e,y:t.y-e}},l.prototype.getCrispAdjust=function(){return this.renderer.styledMode&&this.box?this.box.strokeWidth()%2/2:(this["stroke-width"]?parseInt(this["stroke-width"],10):0)%2/2},l.prototype.heightSetter=function(t){this.heightSetting=t},l.prototype.on=function(e,i){var s=this,n=s.text,r=n&&"SPAN"===n.element.tagName?n:void 0;if(r){var o=function(t){("mouseenter"===e||"mouseleave"===e)&&t.relatedTarget instanceof Element&&(s.element.contains(t.relatedTarget)||r.element.contains(t.relatedTarget))||i.call(s.element,t)};r.on(e,o)}return t.prototype.on.call(s,e,o||i),s},l.prototype.onAdd=function(){var t=this.textStr;this.text.add(this),this.attr({text:s(t)?t:"",x:this.x,y:this.y}),this.box&&s(this.anchorX)&&this.attr({anchorX:this.anchorX,anchorY:this.anchorY})},l.prototype.paddingSetter=function(t){s(t)&&t!==this.padding&&(this.padding=t,this.updateTextPadding())},l.prototype.paddingLeftSetter=function(t){s(t)&&t!==this.paddingLeft&&(this.paddingLeft=t,this.updateTextPadding())},l.prototype.rSetter=function(t,e){this.boxAttr(e,t)},l.prototype.shadow=function(t){return t&&!this.renderer.styledMode&&(this.updateBoxSize(),this.box&&this.box.shadow(t)),this},l.prototype.strokeSetter=function(t,e){this.stroke=t,this.boxAttr(e,t)},l.prototype["stroke-widthSetter"]=function(t,e){t&&(this.needsBox=!0),this["stroke-width"]=t,this.boxAttr(e,t)},l.prototype["text-alignSetter"]=function(t){this.textAlign=t},l.prototype.textSetter=function(t){void 0!==t&&this.text.attr({text:t}),this.updateBoxSize(),this.updateTextPadding()},l.prototype.updateBoxSize=function(){var t=this.text.element.style,e={},i=this.padding,o=this.paddingLeft,a=r(this.widthSetting)&&r(this.heightSetting)&&!this.textAlign||!s(this.text.textStr)?l.emptyBBox:this.text.getBBox();this.width=(this.widthSetting||a.width||0)+2*i+o,this.height=(this.heightSetting||a.height||0)+2*i,this.baselineOffset=i+Math.min(this.renderer.fontMetrics(t&&t.fontSize,this.text).b,a.height||1/0),this.needsBox&&(this.box||((t=this.box=this.symbolKey?this.renderer.symbol(this.symbolKey):this.renderer.rect()).addClass(("button"===this.className?"":"highcharts-label-box")+(this.className?" highcharts-"+this.className+"-box":"")),t.add(this),t=this.getCrispAdjust(),e.x=t,e.y=(this.baseline?-this.baselineOffset:0)+t),e.width=Math.round(this.width),e.height=Math.round(this.height),this.box.attr(n(e,this.deferredAttr)),this.deferredAttr={}),this.bBox=a},l.prototype.updateTextPadding=function(){var t=this.text,e=this.baseline?0:this.baselineOffset,i=this.paddingLeft+this.padding;s(this.widthSetting)&&this.bBox&&("center"===this.textAlign||"right"===this.textAlign)&&(i+={center:.5,right:1}[this.textAlign]*(this.widthSetting-this.bBox.width)),i===t.x&&e===t.y||(t.attr("x",i),t.hasBoxWidthChanged&&(this.bBox=t.getBBox(!0),this.updateBoxSize()),void 0!==e&&t.attr("y",e)),t.x=i,t.y=e},l.prototype.widthSetter=function(t){this.widthSetting=r(t)?t:void 0},l.prototype.xSetter=function(t){this.x=t,this.alignFactor&&(t-=this.alignFactor*((this.widthSetting||this.bBox.width)+2*this.padding),this["forceAnimate:x"]=!0),this.xSetting=Math.round(t),this.attr("translateX",this.xSetting)},l.prototype.ySetter=function(t){this.ySetting=this.y=Math.round(t),this.attr("translateY",this.ySetting)},l.emptyBBox={width:0,height:0,x:0,y:0},l.textProps="color cursor direction fontFamily fontSize fontStyle fontWeight lineHeight textAlign textDecoration textOutline textOverflow width".split(" "),l}(t)})),e(i,"Core/Renderer/SVG/SVGRenderer.js",[i["Core/Color.js"],i["Core/Globals.js"],i["Core/Renderer/SVG/SVGElement.js"],i["Core/Renderer/SVG/SVGLabel.js"],i["Core/Utilities.js"]],(function(t,e,i,s,n){var r=n.addEvent,o=n.attr,a=n.createElement,l=n.css,h=n.defined,c=n.destroyObjectProperties,u=n.extend,d=n.isArray,p=n.isNumber,f=n.isObject,g=n.isString,m=n.merge,y=n.objectEach,v=n.pick,b=n.pInt,x=n.splat,_=n.uniqueKey,w=e.charts,C=e.deg2rad,k=e.doc,S=e.isFirefox,A=e.isMS,E=e.isWebKit;n=e.noop;var M=e.svg,T=e.SVG_NS,D=e.symbolSizes,P=e.win,O=function(){function e(t,e,i,s,n,r,o){this.width=this.url=this.style=this.isSVG=this.imgCount=this.height=this.gradients=this.globalAnimation=this.defs=this.chartIndex=this.cacheKeys=this.cache=this.boxWrapper=this.box=this.alignedObjects=void 0,this.init(t,e,i,s,n,r,o)}return e.prototype.init=function(t,e,i,s,n,a,h){var c,u=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"});h||u.css(this.getStyle(s)),t.appendChild(s=u.element),o(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&o(s,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=s,this.boxWrapper=u,this.alignedObjects=[],this.url=(S||E)&&k.getElementsByTagName("base").length?P.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(k.createTextNode("Created with Highcharts 8.2.0")),this.defs=this.createElement("defs").add(),this.allowHTML=a,this.forExport=n,this.styledMode=h,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,i,!1),S&&t.getBoundingClientRect&&((e=function(){l(t,{left:0,top:0}),c=t.getBoundingClientRect(),l(t,{left:Math.ceil(c.left)-c.left+"px",top:Math.ceil(c.top)-c.top+"px"})})(),this.unSubPixelFix=r(P,"resize",e))},e.prototype.definition=function(t){var e=this;return function t(i,s){var n;return x(i).forEach((function(i){var r=e.createElement(i.tagName),o={};y(i,(function(t,e){"tagName"!==e&&"children"!==e&&"textContent"!==e&&(o[e]=t)})),r.attr(o),r.add(s||e.defs),i.textContent&&r.element.appendChild(k.createTextNode(i.textContent)),t(i.children||[],r),n=r})),n}(t)},e.prototype.getStyle=function(t){return this.style=u({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},e.prototype.setStyle=function(t){this.boxWrapper.css(this.getStyle(t))},e.prototype.isHidden=function(){return!this.boxWrapper.getBBox().width},e.prototype.destroy=function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),c(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},e.prototype.createElement=function(t){var e=new this.Element;return e.init(this,t),e},e.prototype.getRadialAttr=function(t,e){return{cx:t[0]-t[2]/2+e.cx*t[2],cy:t[1]-t[2]/2+e.cy*t[2],r:e.r*t[2]}},e.prototype.truncate=function(t,e,i,s,n,r,o){var a,l,h=this,c=t.rotation,u=s?1:0,d=(i||s).length,p=d,f=[],g=function(t){e.firstChild&&e.removeChild(e.firstChild),t&&e.appendChild(k.createTextNode(t))},m=function(r,a){if(void 0===f[a=a||r])if(e.getSubStringLength)try{f[a]=n+e.getSubStringLength(0,s?a+1:a)}catch(l){}else h.getSpanWidth&&(g(o(i||s,r)),f[a]=n+h.getSpanWidth(t,e));return f[a]};t.rotation=0;var y=m(e.textContent.length);if(l=n+y>r){for(;u<=d;)p=Math.ceil((u+d)/2),s&&(a=o(s,p)),y=m(p,a&&a.length-1),u===d?u=d+1:y>r?d=p-1:u=p;0===d?g(""):i&&d===i.length-1||g(a||o(i||s,p))}return s&&s.splice(0,p),t.actualWidth=y,t.rotation=c,l},e.prototype.buildText=function(t){var e,i,s=t.element,n=this,r=n.forExport,a=v(t.textStr,"").toString(),h=-1!==a.indexOf("<"),c=s.childNodes,u=o(s,"x"),d=t.styles,p=t.textWidth,f=d&&d.lineHeight,m=d&&d.textOutline,x=d&&"ellipsis"===d.textOverflow,_=d&&"nowrap"===d.whiteSpace,w=d&&d.fontSize,C=c.length;d=p&&!t.added&&this.box;var S=function(t){var e;return n.styledMode||(e=/(px|em)$/.test(t&&t.style.fontSize)?t.style.fontSize:w||n.style.fontSize||12),f?b(f):n.fontMetrics(e,t.getAttribute("style")?t:s).h},A=function(t,e){return y(n.escapes,(function(i,s){e&&-1!==e.indexOf(i)||(t=t.toString().replace(new RegExp(i,"g"),s))})),t},E=function(t,e){var i=t.indexOf("<");if(-1!==(i=(t=t.substring(i,t.indexOf(">")-i)).indexOf(e+"="))&&('"'===(e=t.charAt(i=i+e.length+1))||"'"===e))return(t=t.substring(i+1)).substring(0,t.indexOf(e))},D=//g,P=[a,x,_,f,m,w,p].join();if(P!==t.textCache){for(t.textCache=P;C--;)s.removeChild(c[C]);h||m||x||p||-1!==a.indexOf(" ")&&(!_||D.test(a))?(d&&d.appendChild(s),(a=(a=h?(a=n.styledMode?a.replace(/<(b|strong)>/g,'').replace(/<(i|em)>/g,''):a.replace(/<(b|strong)>/g,'').replace(/<(i|em)>/g,'')).replace(/
/g,"
").split(D):[a]).filter((function(t){return""!==t}))).forEach((function(a,h){var c=0,d=0,f=(a=a.replace(/^\s+|\s+$/g,"").replace(//g,"|||")).split("|||");f.forEach((function(a){if(""!==a||1===f.length){var g,m,y={},v=k.createElementNS(n.SVG_NS,"tspan");if((g=E(a,"class"))&&o(v,"class",g),(g=E(a,"style"))&&(g=g.replace(/(;| |^)color([ :])/,"$1fill$2"),o(v,"style",g)),(m=E(a,"href"))&&!r&&-1===m.split(":")[0].toLowerCase().indexOf("javascript")){var b=k.createElementNS(n.SVG_NS,"a");o(b,"href",m),o(v,"class","highcharts-anchor"),b.appendChild(v),n.styledMode||l(v,{cursor:"pointer"})}if(" "!==(a=A(a.replace(/<[a-zA-Z\/](.|\n)*?>/g,"")||" "))){if(v.appendChild(k.createTextNode(a)),c?y.dx=0:h&&null!==u&&(y.x=u),o(v,y),s.appendChild(b||v),!c&&i&&(!M&&r&&l(v,{display:"block"}),o(v,"dy",S(v))),p){var C=a.replace(/([^\^])-/g,"$1- ").split(" ");if(y=!_&&(1(t=/px/.test(t)?b(t):12)?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}},e.prototype.rotCorr=function(t,e,i){var s=t;return e&&i&&(s=Math.max(s*Math.cos(e*C),4)),{x:-t/3*Math.sin(e*C),y:s}},e.prototype.pathToSegments=function(t){for(var e=[],i=[],s={A:8,C:7,H:2,L:3,M:3,Q:5,S:5,T:3,V:2},n=0;n":">","'":"'",'"':"""},O.prototype.symbols={circle:function(t,e,i,s){return this.arc(t+i/2,e+s/2,i/2,s/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},square:function(t,e,i,s){return[["M",t,e],["L",t+i,e],["L",t+i,e+s],["L",t,e+s],["Z"]]},triangle:function(t,e,i,s){return[["M",t+i/2,e],["L",t+i,e+s],["L",t,e+s],["Z"]]},"triangle-down":function(t,e,i,s){return[["M",t,e],["L",t+i,e],["L",t+i/2,e+s],["Z"]]},diamond:function(t,e,i,s){return[["M",t+i/2,e],["L",t+i,e+s/2],["L",t+i/2,e+s],["L",t,e+s/2],["Z"]]},arc:function(t,e,i,s,n){var r=[];if(n){var o=n.start||0,a=n.end||0,l=n.r||i;i=n.r||s||i;var c=.001>Math.abs(a-o-2*Math.PI);a-=.001,s=n.innerR,c=v(n.open,c);var u=Math.cos(o),d=Math.sin(o),p=Math.cos(a),f=Math.sin(a);o=v(n.longArc,.001>a-o-Math.PI?0:1),r.push(["M",t+l*u,e+i*d],["A",l,i,0,o,v(n.clockwise,1),t+l*p,e+i*f]),h(s)&&r.push(c?["M",t+s*p,e+s*f]:["L",t+s*p,e+s*f],["A",s,s,0,o,h(n.clockwise)?1-n.clockwise:0,t+s*u,e+s*d]),c||r.push(["Z"])}return r},callout:function(t,e,i,s,n){var r=Math.min(n&&n.r||0,i,s),o=r+6,a=n&&n.anchorX||0;n=n&&n.anchorY||0;var l=[["M",t+r,e],["L",t+i-r,e],["C",t+i,e,t+i,e,t+i,e+r],["L",t+i,e+s-r],["C",t+i,e+s,t+i,e+s,t+i-r,e+s],["L",t+r,e+s],["C",t,e+s,t,e+s,t,e+s-r],["L",t,e+r],["C",t,e,t,e,t+r,e]];return a&&a>i?n>e+o&&na?n>e+o&&ns&&a>t+o&&an&&a>t+o&&athis.oldTextWidth)&&((p=this.textPxLength)||(o(e,{width:"",whiteSpace:d||"nowrap"}),p=e.offsetWidth),p=p>f),p&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)?(o(e,{width:f+"px",display:"block",whiteSpace:d||"normal"}),this.oldTextWidth=f,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1,g!==this.cTT&&(d=t.fontMetrics(e.style.fontSize,e).b,!a(u)||u===(this.oldRotation||0)&&l===this.oldAlign||this.setSpanRotation(u,h,d),this.getSpanCorrection(!a(u)&&this.textPxLength||e.offsetWidth,d,h,u,l)),o(e,{left:n+(this.xCorr||0)+"px",top:r+(this.yCorr||0)+"px"}),this.cTT=g,this.oldRotation=u,this.oldAlign=l}}else this.alignOnAdd=!0},setSpanRotation:function(t,e,i){var s={},n=this.renderer.getTransformKey();s[n]=s.transform="rotate("+t+"deg)",s[n+(u?"Origin":"-origin")]=s.transformOrigin=100*e+"% "+i+"px",o(this.element,s)},getSpanCorrection:function(t,e,i){this.xCorr=-t*i,this.yCorr=-e}}),l(i.prototype,{getTransformKey:function(){return d&&!/Edge/.test(f.navigator.userAgent)?"-ms-transform":p?"-webkit-transform":u?"MozTransform":f.opera?"-o-transform":""},html:function(t,i,s){var o=this.createElement("span"),a=o.element,c=o.renderer,u=c.isSVG,d=function(t,i){["opacity","visibility"].forEach((function(s){t[s+"Setter"]=function(n,r,o){var a=t.div?t.div.style:i;e.prototype[s+"Setter"].call(this,n,r,o),a&&(a[r]=n)}})),t.addedSetters=!0};return o.textSetter=function(t){t!==a.innerHTML&&(delete this.bBox,delete this.oldTextWidth),this.textStr=t,a.innerHTML=h(t,""),o.doTransform=!0},u&&d(o,o.element.style),o.xSetter=o.ySetter=o.alignSetter=o.rotationSetter=function(t,e){"align"===e?o.alignValue=o.textAlign=t:o[e]=t,o.doTransform=!0},o.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},o.attr({text:t,x:Math.round(i),y:Math.round(s)}).css({position:"absolute"}),c.styledMode||o.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),a.style.whiteSpace="nowrap",o.css=o.htmlCss,u&&(o.add=function(t){var e=c.box.parentNode,i=[];if(this.parentGroup=t){var s=t.div;if(!s){for(;t;)i.push(t),t=t.parentGroup;i.reverse().forEach((function(t){function a(e,i){t[i]=e,"translateX"===i?c.left=e+"px":c.top=e+"px",t.doTransform=!0}var h=n(t.element,"class"),c=(s=t.div=t.div||r("div",h?{className:h}:void 0,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,pointerEvents:t.styles&&t.styles.pointerEvents},s||e)).style;l(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(s),on:function(){return i[0].div&&o.on.apply({element:i[0].div},arguments),t},translateXSetter:a,translateYSetter:a}),t.addedSetters||d(t)}))}}else s=e;return s.appendChild(a),o.added=!0,o.alignOnAdd&&o.htmlUpdateTransform(),o}),o}})})),e(i,"Core/Axis/Tick.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e){var i=e.clamp,s=e.correctFloat,n=e.defined,r=e.destroyObjectProperties,o=e.extend,a=e.fireEvent,l=e.isNumber,h=e.merge,c=e.objectEach,u=e.pick,d=t.deg2rad;return e=function(){function t(t,e,i,s,n){this.isNewLabel=this.isNew=!0,this.axis=t,this.pos=e,this.type=i||"",this.parameters=n||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,a(this,"init"),i||s||this.addLabel()}return t.prototype.addLabel=function(){var t=this,e=t.axis,i=e.options,r=e.chart,a=e.categories,l=e.logarithmic,h=e.names,c=t.pos,d=u(t.options&&t.options.labels,i.labels),p=e.tickPositions,f=c===p[0],g=c===p[p.length-1];h=this.parameters.category||(a?u(a[c],h[c],c):c);var m,y,v=t.label;if(a=(!d.step||1===d.step)&&1===e.tickInterval,p=p.info,e.dateTime&&p)var b=r.time.resolveDTLFormat(i.dateTimeLabelFormats[!i.grid&&p.higherRanks[c]||p.unitName]),x=b.main;t.isFirst=f,t.isLast=g,t.formatCtx={axis:e,chart:r,isFirst:f,isLast:g,dateTimeLabelFormat:x,tickPositionInfo:p,value:l?s(l.lin2log(h)):h,pos:c},i=e.labelFormatter.call(t.formatCtx,this.formatCtx),(y=b&&b.list)&&(t.shortenLabel=function(){for(m=0;mh&&s-c*pr&&(a=Math.round((n-s)/Math.cos(h*d))):(n=s+(1-c)*p,s-c*pr&&(g=r-t.x+g*c,m=-1),(g=Math.min(f,g))g||e.autoRotation&&(l.styles||{}).width)&&(a=g)),a&&(this.shortenLabel?this.shortenLabel():(y.width=Math.floor(a)+"px",(i.style||{}).textOverflow||(y.textOverflow="ellipsis"),l.css(y)))},t.prototype.moveLabel=function(t,e){var i=this,s=i.label,n=!1,r=i.axis,o=r.reversed;if(s&&s.textStr===t?(i.movedLabel=s,n=!0,delete i.label):c(r.ticks,(function(e){n||e.isNew||e===i||!e.label||e.label.textStr!==t||(i.movedLabel=e.label,n=!0,e.labelPos=i.movedLabel.xy,delete e.label)})),!n&&(i.labelPos||s)){var a=i.labelPos||s.xy;i.movedLabel=i.createLabel({x:s=r.horiz?o?0:r.width+r.left:a.x,y:r=r.horiz?a.y:o?r.width+r.left:0},t,e),i.movedLabel&&i.movedLabel.attr({opacity:0})}},t.prototype.render=function(t,e,i){var s=this.axis,n=s.horiz,r=this.pos,o=u(this.tickmarkOffset,s.tickmarkOffset);o=(r=this.getPosition(n,r,o,e)).x,s=n&&o===s.pos+s.len||!n&&r.y===s.pos?-1:1,i=u(i,1),this.isActive=!0,this.renderGridLine(e,i,s),this.renderMark(r,i,s),this.renderLabel(r,e,i,t),this.isNew=!1,a(this,"afterRender")},t.prototype.renderGridLine=function(t,e,i){var s=this.axis,n=s.options,r=this.gridLine,o={},a=this.pos,l=this.type,h=u(this.tickmarkOffset,s.tickmarkOffset),c=s.chart.renderer,d=l?l+"Grid":"grid",p=n[d+"LineWidth"],f=n[d+"LineColor"];n=n[d+"LineDashStyle"],r||(s.chart.styledMode||(o.stroke=f,o["stroke-width"]=p,n&&(o.dashstyle=n)),l||(o.zIndex=1),t&&(e=0),this.gridLine=r=c.path().attr(o).addClass("highcharts-"+(l?l+"-":"")+"grid-line").add(s.gridGroup)),r&&(i=s.getPlotLinePath({value:a+h,lineWidth:r.strokeWidth()*i,force:"pass",old:t}))&&r[t||this.isNew?"attr":"animate"]({d:i,opacity:e})},t.prototype.renderMark=function(t,e,i){var s=this.axis,n=s.options,r=s.chart.renderer,o=this.type,a=o?o+"Tick":"tick",l=s.tickSize(a),h=this.mark,c=!h,d=t.x;t=t.y;var p=u(n[a+"Width"],!o&&s.isXAxis?1:0);n=n[a+"Color"],l&&(s.opposite&&(l[0]=-l[0]),c&&(this.mark=h=r.path().addClass("highcharts-"+(o?o+"-":"")+"tick").add(s.axisGroup),s.chart.styledMode||h.attr({stroke:n,"stroke-width":p})),h[c?"attr":"animate"]({d:this.getMarkPath(d,t,l[0],h.strokeWidth()*i,s.horiz,r),opacity:e}))},t.prototype.renderLabel=function(t,e,i,s){var n=this.axis,r=n.horiz,o=n.options,a=this.label,h=o.labels,c=h.step;n=u(this.tickmarkOffset,n.tickmarkOffset);var d=!0,p=t.x;t=t.y,a&&l(p)&&(a.xy=t=this.getLabelPosition(p,t,a,r,h,n,s,c),this.isFirst&&!this.isLast&&!u(o.showFirstLabel,1)||this.isLast&&!this.isFirst&&!u(o.showLastLabel,1)?d=!1:!r||h.step||h.rotation||e||0===i||this.handleOverflow(t),c&&s%c&&(d=!1),d&&l(t.y)?(t.opacity=i,a[this.isNewLabel?"attr":"animate"](t),this.isNewLabel=!1):(a.attr("y",-9999),this.isNewLabel=!0))},t.prototype.replaceMovedLabel=function(){var t=this.label,e=this.axis,i=e.reversed;t&&!this.isNew&&(t.animate({x:e.horiz?i?e.left:e.width+e.left:t.xy.x,y:i=e.horiz?t.xy.y:i?e.width+e.top:e.top,opacity:0},void 0,t.destroy),delete this.label),e.isDirty=!0,this.label=this.movedLabel,delete this.movedLabel},t}(),t.Tick=e,t.Tick})),e(i,"Core/Time.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e){var i=e.defined,s=e.error,n=e.extend,r=e.isObject,o=e.merge,a=e.objectEach,l=e.pad,h=e.pick,c=e.splat,u=e.timeUnits,d=t.win;return e=function(){function e(t){this.options={},this.variableTimezone=this.useUTC=!1,this.Date=d.Date,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.update(t)}return e.prototype.get=function(t,e){if(this.variableTimezone||this.timezoneOffset){var i=e.getTime(),s=i-this.getTimezoneOffset(e);return e.setTime(s),t=e["getUTC"+t](),e.setTime(i),t}return this.useUTC?e["getUTC"+t]():e["get"+t]()},e.prototype.set=function(t,e,i){if(this.variableTimezone||this.timezoneOffset){if("Milliseconds"===t||"Seconds"===t||"Minutes"===t)return e["setUTC"+t](i);var s=this.getTimezoneOffset(e);return s=e.getTime()-s,e.setTime(s),e["setUTC"+t](i),t=this.getTimezoneOffset(e),s=e.getTime()+t,e.setTime(s)}return this.useUTC?e["setUTC"+t](i):e["set"+t](i)},e.prototype.update=function(t){var e=h(t&&t.useUTC,!0);this.options=t=o(!0,this.options||{},t),this.Date=t.Date||d.Date||Date,this.timezoneOffset=(this.useUTC=e)&&t.timezoneOffset,this.getTimezoneOffset=this.timezoneOffsetFunction(),this.variableTimezone=!(e&&!t.getTimezoneOffset&&!t.timezone)},e.prototype.makeTime=function(e,i,s,n,r,o){if(this.useUTC){var a=this.Date.UTC.apply(0,arguments),l=this.getTimezoneOffset(a),c=this.getTimezoneOffset(a+=l);l!==c?a+=c-l:l-36e5!==this.getTimezoneOffset(a-36e5)||t.isSafari||(a-=36e5)}else a=new this.Date(e,i,h(s,1),h(n,0),h(r,0),h(o,0)).getTime();return a},e.prototype.timezoneOffsetFunction=function(){var t=this,e=this.options,i=e.moment||d.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t.toString()).getTimezoneOffset()};if(e.timezone){if(i)return function(t){return 6e4*-i.tz(t,e.timezone).utcOffset()};s(25)}return this.useUTC&&e.getTimezoneOffset?function(t){return 6e4*e.getTimezoneOffset(t.valueOf())}:function(){return 6e4*(t.timezoneOffset||0)}},e.prototype.dateFormat=function(e,s,r){var o;if(!i(s)||isNaN(s))return(null===(o=t.defaultOptions.lang)||void 0===o?void 0:o.invalidDate)||"";e=h(e,"%Y-%m-%d %H:%M:%S");var c=this;o=new this.Date(s);var u=this.get("Hours",o),d=this.get("Day",o),p=this.get("Date",o),f=this.get("Month",o),g=this.get("FullYear",o),m=t.defaultOptions.lang,y=null==m?void 0:m.weekdays,v=null==m?void 0:m.shortWeekdays;return o=n({a:v?v[d]:y[d].substr(0,3),A:y[d],d:l(p),e:l(p,2," "),w:d,b:m.shortMonths[f],B:m.months[f],m:l(f+1),o:f+1,y:g.toString().substr(2,2),Y:g,H:l(u),k:u,I:l(u%12||12),l:u%12||12,M:l(this.get("Minutes",o)),p:12>u?"AM":"PM",P:12>u?"am":"pm",S:l(o.getSeconds()),L:l(Math.floor(s%1e3),3)},t.dateFormats),a(o,(function(t,i){for(;-1!==e.indexOf("%"+i);)e=e.replace("%"+i,"function"==typeof t?t.call(c,s):t)})),r?e.substr(0,1).toUpperCase()+e.substr(1):e},e.prototype.resolveDTLFormat=function(t){return r(t,!0)?t:{main:(t=c(t))[0],from:t[1],to:t[2]}},e.prototype.getTimeTicks=function(t,e,s,r){var o,a=this,l=[],c={},d=new a.Date(e),p=t.unitRange,f=t.count||1;if(r=h(r,1),i(e)){if(a.set("Milliseconds",d,p>=u.second?0:f*Math.floor(a.get("Milliseconds",d)/f)),p>=u.second&&a.set("Seconds",d,p>=u.minute?0:f*Math.floor(a.get("Seconds",d)/f)),p>=u.minute&&a.set("Minutes",d,p>=u.hour?0:f*Math.floor(a.get("Minutes",d)/f)),p>=u.hour&&a.set("Hours",d,p>=u.day?0:f*Math.floor(a.get("Hours",d)/f)),p>=u.day&&a.set("Date",d,p>=u.month?1:Math.max(1,f*Math.floor(a.get("Date",d)/f))),p>=u.month){a.set("Month",d,p>=u.year?0:f*Math.floor(a.get("Month",d)/f));var g=a.get("FullYear",d)}p>=u.year&&a.set("FullYear",d,g-g%f),p===u.week&&(g=a.get("Day",d),a.set("Date",d,a.get("Date",d)-g+r+(g4*u.month||a.getTimezoneOffset(e)!==a.getTimezoneOffset(s)),e=d.getTime(),d=1;el.length&&l.forEach((function(t){0==t%18e5&&"000000000"===a.dateFormat("%H%M%S%L",t)&&(c[t]="day")}))}return l.info=n(t,{higherRanks:c,totalRange:p*f}),l},e}(),t.Time=e,t.Time})),e(i,"Core/Options.js",[i["Core/Globals.js"],i["Core/Time.js"],i["Core/Color.js"],i["Core/Utilities.js"]],(function(t,e,i,s){return i=i.parse,s=s.merge,t.defaultOptions={colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},chart:{styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:t.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",padding:8,snap:t.isTouchDevice?25:10,headerFormat:'{point.key}
',pointFormat:'\u25cf {series.name}: {point.y}
',backgroundColor:i("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,style:{color:"#333333",cursor:"default",fontSize:"12px",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}},t.time=new e(s(t.defaultOptions.global,t.defaultOptions.time)),t.dateFormat=function(e,i,s){return t.time.dateFormat(e,i,s)},{dateFormat:t.dateFormat,defaultOptions:t.defaultOptions,time:t.time}})),e(i,"Core/Axis/Axis.js",[i["Core/Color.js"],i["Core/Globals.js"],i["Core/Axis/Tick.js"],i["Core/Utilities.js"],i["Core/Options.js"]],(function(t,e,i,s,n){var r=s.addEvent,o=s.animObject,a=s.arrayMax,l=s.arrayMin,h=s.clamp,c=s.correctFloat,u=s.defined,d=s.destroyObjectProperties,p=s.error,f=s.extend,g=s.fireEvent,m=s.format,y=s.getMagnitude,v=s.isArray,b=s.isFunction,x=s.isNumber,_=s.isString,w=s.merge,C=s.normalizeTickInterval,k=s.objectEach,S=s.pick,A=s.relativeLength,E=s.removeEvent,M=s.splat,T=s.syncTimeout,D=n.defaultOptions,P=e.deg2rad;return s=function(){function s(t,e){this.zoomEnabled=this.width=this.visible=this.userOptions=this.translationSlope=this.transB=this.transA=this.top=this.ticks=this.tickRotCorr=this.tickPositions=this.tickmarkOffset=this.tickInterval=this.tickAmount=this.side=this.series=this.right=this.positiveValuesOnly=this.pos=this.pointRangePadding=this.pointRange=this.plotLinesAndBandsGroups=this.plotLinesAndBands=this.paddedTicks=this.overlap=this.options=this.oldMin=this.oldMax=this.offset=this.names=this.minPixelPadding=this.minorTicks=this.minorTickInterval=this.min=this.maxLabelLength=this.max=this.len=this.left=this.labelFormatter=this.labelEdge=this.isLinked=this.height=this.hasVisibleSeries=this.hasNames=this.coll=this.closestPointRange=this.chart=this.categories=this.bottom=this.alternateBands=void 0,this.init(t,e)}return s.prototype.init=function(t,e){var i=e.isX,s=this;s.chart=t,s.horiz=t.inverted&&!s.isZAxis?!i:i,s.isXAxis=i,s.coll=s.coll||(i?"xAxis":"yAxis"),g(this,"init",{userOptions:e}),s.opposite=e.opposite,s.side=e.side||(s.horiz?s.opposite?0:2:s.opposite?1:3),s.setOptions(e);var n=this.options,o=n.type;s.labelFormatter=n.labels.formatter||s.defaultLabelFormatter,s.userOptions=e,s.minPixelPadding=0,s.reversed=n.reversed,s.visible=!1!==n.visible,s.zoomEnabled=!1!==n.zoomEnabled,s.hasNames="category"===o||!0===n.categories,s.categories=n.categories||s.hasNames,s.names||(s.names=[],s.names.keys={}),s.plotLinesAndBandsGroups={},s.positiveValuesOnly=!!s.logarithmic,s.isLinked=u(n.linkedTo),s.ticks={},s.labelEdge=[],s.minorTicks={},s.plotLinesAndBands=[],s.alternateBands={},s.len=0,s.minRange=s.userMinRange=n.minRange||n.maxZoom,s.range=n.range,s.offset=n.offset||0,s.max=null,s.min=null,s.crosshair=S(n.crosshair,M(t.options.tooltip.crosshairs)[i?0:1],!1),e=s.options.events,-1===t.axes.indexOf(s)&&(i?t.axes.splice(t.xAxis.length,0,s):t.axes.push(s),t[s.coll].push(s)),s.series=s.series||[],t.inverted&&!s.isZAxis&&i&&void 0===s.reversed&&(s.reversed=!0),s.labelRotation=s.options.labels.rotation,k(e,(function(t,e){b(t)&&r(s,e,t)})),g(this,"afterInit")},s.prototype.setOptions=function(t){this.options=w(s.defaultOptions,"yAxis"===this.coll&&s.defaultYAxisOptions,[s.defaultTopAxisOptions,s.defaultRightAxisOptions,s.defaultBottomAxisOptions,s.defaultLeftAxisOptions][this.side],w(D[this.coll],t)),g(this,"afterSetOptions",{userOptions:t})},s.prototype.defaultLabelFormatter=function(){var t=this.axis,e=x(this.value)?this.value:NaN,i=t.chart.time,s=t.categories,n=this.dateTimeLabelFormat,r=D.lang,o=r.numericSymbols;r=r.numericSymbolMagnitude||1e3;var a=o&&o.length,l=t.options.labels.format;t=t.logarithmic?Math.abs(e):t.tickInterval;var h=this.chart,c=h.numberFormatter;if(l)var u=m(l,this,h);else if(s)u=""+this.value;else if(n)u=i.dateFormat(n,e);else if(a&&1e3<=t)for(;a--&&void 0===u;)t>=(i=Math.pow(r,a+1))&&0==10*e%i&&null!==o[a]&&0!==e&&(u=c(e/i,-1)+o[a]);return void 0===u&&(u=1e4<=Math.abs(e)?c(e,-1):c(e,-1,void 0,"")),u},s.prototype.getSeriesExtremes=function(){var t,e=this,i=e.chart;g(this,"getSeriesExtremes",null,(function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.stacking&&e.stacking.buildStacks(),e.series.forEach((function(s){if(s.visible||!i.options.chart.ignoreHiddenSeries){var n=s.options,r=n.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=r&&(r=null),e.isXAxis){if((n=s.xData).length){n=e.logarithmic?n.filter(e.validatePositiveValue):n;var o=(t=s.getXExtremes(n)).min,a=t.max;x(o)||o instanceof Date||(n=n.filter(x),o=(t=s.getXExtremes(n)).min,a=t.max),n.length&&(e.dataMin=Math.min(S(e.dataMin,o),o),e.dataMax=Math.max(S(e.dataMax,a),a))}}else s=s.applyExtremes(),x(s.dataMin)&&(o=s.dataMin,e.dataMin=Math.min(S(e.dataMin,o),o)),x(s.dataMax)&&(a=s.dataMax,e.dataMax=Math.max(S(e.dataMax,a),a)),u(r)&&(e.threshold=r),(!n.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}}))})),g(this,"afterGetSeriesExtremes")},s.prototype.translate=function(t,e,i,s,n,r){var o=this.linkedParent||this,a=1,l=0,h=s?o.oldTransA:o.transA;s=s?o.oldMin:o.min;var c=o.minPixelPadding;return n=(o.isOrdinal||o.brokenAxis&&o.brokenAxis.hasBreaks||o.logarithmic&&n)&&o.lin2val,h||(h=o.transA),i&&(a*=-1,l=o.len),o.reversed&&(l-=(a*=-1)*(o.sector||o.len)),e?(t=(t*a+l-c)/h+s,n&&(t=o.lin2val(t))):(n&&(t=o.val2lin(t)),t=x(s)?a*(t-s)*h+l+a*c+(x(r)?h*r:0):void 0),t},s.prototype.toPixels=function(t,e){return this.translate(t,!1,!this.horiz,null,!0)+(e?0:this.pos)},s.prototype.toValue=function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,null,!0)},s.prototype.getPlotLinePath=function(t){function e(t,e,i){return("pass"!==y&&ti)&&(y?t=h(t,e,i):o=!0),t}var i,s,n,r,o,a=this,l=a.chart,c=a.left,u=a.top,d=t.old,p=t.value,f=t.translatedValue,m=t.lineWidth,y=t.force,v=d&&l.oldChartHeight||l.chartHeight,b=d&&l.oldChartWidth||l.chartWidth,_=a.transB;return g(this,"getPlotLinePath",t={value:p,lineWidth:m,old:d,force:y,acrossPanes:t.acrossPanes,translatedValue:f},(function(t){f=S(f,a.translate(p,null,null,d)),f=h(f,-1e5,1e5),i=n=Math.round(f+_),s=r=Math.round(v-f-_),x(f)?a.horiz?(s=u,r=v-a.bottom,i=n=e(i,c,c+a.width)):(i=c,n=b-a.right,s=r=e(s,u,u+a.height)):(o=!0,y=!1),t.path=o&&!y?null:l.renderer.crispLine([["M",i,s],["L",n,r]],m||1)})),t.path},s.prototype.getLinearTickPositions=function(t,e,i){var s=c(Math.floor(e/t)*t);i=c(Math.ceil(i/t)*t);var n,r=[];if(c(s+t)===s&&(n=20),this.single)return[e];for(e=s;e<=i&&(r.push(e),(e=c(e+t,n))!==o);)var o=e;return r},s.prototype.getMinorTickInterval=function(){var t=this.options;return!0===t.minorTicks?S(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval},s.prototype.getMinorTickPositions=function(){var t=this.options,e=this.tickPositions,i=this.minorTickInterval,s=[],n=this.pointRangePadding||0,r=this.min-n,o=(n=this.max+n)-r;if(o&&o/i=this.minRange,d=this.minRange,p=(d-o+r)/2;p=[r-p,S(n.min,r-p)],c&&(p[2]=this.logarithmic?this.logarithmic.log2lin(this.dataMin):this.dataMin),o=[(r=a(p))+d,S(n.max,r+d)],c&&(o[2]=h?h.log2lin(this.dataMax):this.dataMax),(o=l(o))-r=m)w=m,l=0;else if(e.dataMax<=m){var k=m;a=0}e.min=S(b,w,e.dataMin),e.max=S(_,k,e.dataMax)}s&&(e.positiveValuesOnly&&!t&&0>=Math.min(e.min,S(e.dataMin,e.min))&&p(10,1,i),e.min=c(s.log2lin(e.min),16),e.max=c(s.log2lin(e.max),16)),e.range&&u(e.max)&&(e.userMin=e.min=b=Math.max(e.dataMin,e.minFromRange()),e.userMax=_=e.max,e.range=null),g(e,"foundExtremes"),e.beforePadding&&e.beforePadding(),e.adjustForMinRange(),!(f||e.axisPointRange||e.stacking&&e.stacking.usePercentage||o)&&u(e.min)&&u(e.max)&&(i=e.max-e.min)&&(!u(b)&&l&&(e.min-=i*l),!u(_)&&a&&(e.max+=i*a)),x(e.userMin)||(x(n.softMin)&&n.softMine.max&&(e.max=_=n.softMax),x(n.ceiling)&&(e.max=Math.min(e.max,n.ceiling))),v&&u(e.dataMin)&&(m=m||0,!u(b)&&e.min=m?e.min=e.options.minRange?Math.min(m,e.max-e.minRange):m:!u(_)&&e.max>m&&e.dataMax<=m&&(e.max=e.options.minRange?Math.max(m,e.min+e.minRange):m)),e.tickInterval=e.min===e.max||void 0===e.min||void 0===e.max?1:o&&!h&&d===e.linkedParent.options.tickPixelInterval?h=e.linkedParent.tickInterval:S(h,this.tickAmount?(e.max-e.min)/Math.max(this.tickAmount-1,1):void 0,f?1:(e.max-e.min)*d/Math.max(e.len,d)),r&&!t&&e.series.forEach((function(t){t.processData(e.min!==e.oldMin||e.max!==e.oldMax)})),e.setAxisTranslation(!0),g(this,"initialAxisTranslation"),e.pointRange&&!h&&(e.tickInterval=Math.max(e.pointRange,e.tickInterval)),t=S(n.minTickInterval,e.dateTime&&!e.series.some((function(t){return t.noSharedTooltip}))?e.closestPointRange:0),!h&&e.tickIntervale.tickInterval||void 0!==this.tickAmount),!!this.tickAmount)),this.tickAmount||(e.tickInterval=e.unsquish()),this.setTickPositions()},s.prototype.setTickPositions=function(){var t=this.options,e=t.tickPositions,i=this.getMinorTickInterval(),s=t.tickPositioner,n=this.hasVerticalPanning(),r="colorAxis"===this.coll,o=(r||!n)&&t.startOnTick;n=(r||!n)&&t.endOnTick,this.tickmarkOffset=this.categories&&"between"===t.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===i&&this.tickInterval?this.tickInterval/5:i,this.single=this.min===this.max&&u(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==t.allowDecimals),this.tickPositions=i=e&&e.slice(),!i&&(this.ordinal&&this.ordinal.positions||!((this.max-this.min)/this.tickInterval>Math.max(2*this.len,200))?i=this.dateTime?this.getTimeTicks(this.dateTime.normalizeTimeTickInterval(this.tickInterval,t.units),this.min,this.max,t.startOfWeek,this.ordinal&&this.ordinal.positions,this.closestPointRange,!0):this.logarithmic?this.logarithmic.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max):(i=[this.min,this.max],p(19,!1,this.chart)),i.length>this.len&&(i=[i[0],i.pop()])[0]===i[1]&&(i.length=1),this.tickPositions=i,s&&(s=s.apply(this,[this.min,this.max])))&&(this.tickPositions=i=s),this.paddedTicks=i.slice(0),this.trimTicks(i,o,n),this.isLinked||(this.single&&2>i.length&&!this.categories&&!this.series.some((function(t){return t.is("heatmap")&&"between"===t.options.pointPlacement}))&&(this.min-=.5,this.max+=.5),e||s||this.adjustTickAmount()),g(this,"afterSetTickPositions")},s.prototype.trimTicks=function(t,e,i){var s=t[0],n=t[t.length-1],r=!this.isOrdinal&&this.minPointOffset||0;if(g(this,"trimTicks"),!this.isLinked){if(e&&-1/0!==s)this.min=s;else for(;this.min-r>t[0];)t.shift();if(i)this.max=n;else for(;this.max+re&&(this.finalTickAmt=e,e=5),this.tickAmount=e},s.prototype.adjustTickAmount=function(){var t,e=this.options,i=this.tickInterval,s=this.tickPositions,n=this.tickAmount,r=this.finalTickAmt,o=s&&s.length,a=S(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(on&&(this.tickInterval*=2,this.setTickPositions());if(u(r)){for(i=e=s.length;i--;)(3===r&&1==i%2||2>=r&&0a&&(e=a)),u(n)&&(ra&&(r=a))),i.displayBtn=void 0!==e||void 0!==r,i.setExtremes(e,r,!1,void 0,{trigger:"zoom"})),t.zoomed=!0})),t.zoomed},s.prototype.setAxisSize=function(){var t=this.chart,e=this.options,i=e.offsets||[0,0,0,0],s=this.horiz,n=this.width=Math.round(A(S(e.width,t.plotWidth-i[3]+i[1]),t.plotWidth)),r=this.height=Math.round(A(S(e.height,t.plotHeight-i[0]+i[2]),t.plotHeight)),o=this.top=Math.round(A(S(e.top,t.plotTop+i[0]),t.plotHeight,t.plotTop));e=this.left=Math.round(A(S(e.left,t.plotLeft+i[3]),t.plotWidth,t.plotLeft)),this.bottom=t.chartHeight-r-o,this.right=t.chartWidth-n-e,this.len=Math.max(s?n:r,0),this.pos=s?e:o},s.prototype.getExtremes=function(){var t=this.logarithmic;return{min:t?c(t.lin2log(this.min)):this.min,max:t?c(t.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},s.prototype.getThreshold=function(t){var e=this.logarithmic,i=e?e.lin2log(this.min):this.min;return e=e?e.lin2log(this.max):this.max,null===t||-1/0===t?t=i:1/0===t?t=e:i>t?t=i:ee?t.align="right":195e&&(t.align="left")})),t.align},s.prototype.tickSize=function(t){var e=this.options,i=e["tick"===t?"tickLength":"minorTickLength"],s=S(e["tick"===t?"tickWidth":"minorTickWidth"],"tick"===t&&this.isXAxis&&!this.categories?1:0);if(s&&i){"inside"===e[t+"Position"]&&(i=-i);var n=[i,s]}return g(this,"afterTickSize",t={tickSize:n}),t.tickSize},s.prototype.labelMetrics=function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},s.prototype.unsquish=function(){var t,e,i,s=this.options.labels,n=this.horiz,r=this.tickInterval,o=r,a=this.len/(((this.categories?1:0)+this.max-this.min)/r),l=s.rotation,h=this.labelMetrics(),d=Number.MAX_VALUE,p=this.max-this.min,f=function(t){var e=t/(a||1);return(e=1p&&1/0!==t&&1/0!==a&&p&&(e=Math.ceil(p/r)),c(e*r)};return n?(i=!s.staggerLines&&!s.step&&(u(l)?[l]:a=i){var s=(e=f(Math.abs(h.h/Math.sin(P*i))))+Math.abs(i/360);s(n.step||0))return n.rotation?0:(this.staggerLines||1)*this.len/r;if(!s){if(void 0!==(t=null===(e=null==n?void 0:n.style)||void 0===e?void 0:e.width))return parseInt(t,10);if(o)return o-i.spacing[3]}return.33*i.chartWidth},s.prototype.renderUnsquish=function(){var t=this.chart,e=t.renderer,i=this.tickPositions,s=this.ticks,n=this.options.labels,r=n&&n.style||{},o=this.horiz,a=this.getSlotWidth(),l=Math.max(1,Math.round(a-2*(n.padding||5))),h={},c=this.labelMetrics(),u=n.style&&n.style.textOverflow,d=0;if(_(n.rotation)||(h.rotation=n.rotation||0),i.forEach((function(t){(t=s[t]).movedLabel&&t.replaceMovedLabel(),t&&t.label&&t.label.textPxLength>d&&(d=t.label.textPxLength)})),this.maxLabelLength=d,this.autoRotation)d>l&&d>c.h?h.rotation=this.labelRotation:this.labelRotation=0;else if(a){var p=l;if(!u){var f="clip";for(l=i.length;!o&&l--;){var g=i[l];(g=s[g].label)&&(g.styles&&"ellipsis"===g.styles.textOverflow?g.css({textOverflow:"clip"}):g.textPxLength>a&&g.css({width:a+"px"}),g.getBBox().height>this.len/i.length-(c.h-c.f)&&(g.specificTextOverflow="ellipsis"))}}}h.rotation&&(p=d>.5*t.chartHeight?.33*t.chartHeight:d,u||(f="ellipsis")),(this.labelAlign=n.align||this.autoLabelAlign(this.labelRotation))&&(h.align=this.labelAlign),i.forEach((function(t){var e=(t=s[t])&&t.label,i=r.width,n={};e&&(e.attr(h),t.shortenLabel?t.shortenLabel():p&&!i&&"nowrap"!==r.whiteSpace&&(p=this.min&&t<=this.max)&&(n[t]||(n[t]=new i(this,t)),r&&n[t].isNew&&n[t].render(e,!0,-1),n[t].render(e))},s.prototype.render=function(){var t,s,n=this,r=n.chart,a=n.logarithmic,l=n.options,h=n.isLinked,c=n.tickPositions,u=n.axisTitle,d=n.ticks,p=n.minorTicks,f=n.alternateBands,m=l.stackLabels,y=l.alternateGridColor,v=n.tickmarkOffset,b=n.axisLine,_=n.showAxis,w=o(r.renderer.globalAnimation);n.labelEdge.length=0,n.overlap=!1,[d,p,f].forEach((function(t){k(t,(function(t){t.isActive=!1}))})),(n.hasData()||h)&&(n.minorTickInterval&&!n.categories&&n.getMinorTickPositions().forEach((function(t){n.renderMinorTick(t)})),c.length&&(c.forEach((function(t,e){n.renderTick(t,e)})),v&&(0===n.min||n.single)&&(d[-1]||(d[-1]=new i(n,-1,null,!0)),d[-1].render(-1))),y&&c.forEach((function(i,o){s=void 0!==c[o+1]?c[o+1]+v:n.max-v,0==o%2&&ie&&(!o||g<=i)&&void 0!==g&&c.push(g),g>i&&(d=!0);var g=f}}}else e=this.lin2log(e),i=this.lin2log(i),t=o?a.getMinorTickInterval():h.tickInterval,t=r("auto"===t?null:t,this.minorAutoInterval,h.tickPixelInterval/(o?5:1)*(i-e)/((o?l/a.tickPositions.length:l)||1)),t=n(t,void 0,s(t)),c=a.getLinearTickPositions(t,e,i).map(this.log2lin),o||(this.minorAutoInterval=t/5);return o||(a.tickInterval=t),c},t.prototype.lin2log=function(t){return Math.pow(10,t)},t.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},t}();return(e=function(){function t(){}return t.compose=function(t){t.keepProps.push("logarithmic");var e=t.prototype,s=o.prototype;e.log2lin=s.log2lin,e.lin2log=s.lin2log,i(t,"init",(function(t){var e=this.logarithmic;"logarithmic"!==t.userOptions.type?this.logarithmic=void 0:(e||(e=this.logarithmic=new o(this)),this.log2lin!==e.log2lin&&(e.log2lin=this.log2lin.bind(this)),this.lin2log!==e.lin2log&&(e.lin2log=this.lin2log.bind(this)))})),i(t,"afterInit",(function(){var t=this.logarithmic;t&&(this.lin2val=function(e){return t.lin2log(e)},this.val2lin=function(e){return t.log2lin(e)})}))},t}()).compose(t),e})),e(i,"Core/Axis/PlotLineOrBand.js",[i["Core/Axis/Axis.js"],i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e,i){var s=i.arrayMax,n=i.arrayMin,r=i.defined,o=i.destroyObjectProperties,a=i.erase,l=i.extend,h=i.merge,c=i.objectEach,u=i.pick,d=function(){function t(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)}return t.prototype.render=function(){e.fireEvent(this,"render");var t=this,i=t.axis,s=i.horiz,n=i.logarithmic,o=t.options,a=o.label,l=t.label,d=o.to,p=o.from,f=o.value,g=r(p)&&r(d),m=r(f),y=t.svgElem,v=!y,b=[],x=o.color,_=u(o.zIndex,0),w=o.events;b={class:"highcharts-plot-"+(g?"band ":"line ")+(o.className||"")};var C={},k=i.chart.renderer,S=g?"bands":"lines";if(n&&(p=n.log2lin(p),d=n.log2lin(d),f=n.log2lin(f)),i.chart.styledMode||(m?(b.stroke=x||"#999999",b["stroke-width"]=u(o.width,1),o.dashStyle&&(b.dashstyle=o.dashStyle)):g&&(b.fill=x||"#e6ebf5",o.borderWidth&&(b.stroke=o.borderColor,b["stroke-width"]=o.borderWidth))),C.zIndex=_,(n=i.plotLinesAndBandsGroups[S+="-"+_])||(i.plotLinesAndBandsGroups[S]=n=k.g("plot-"+S).attr(C).add()),v&&(t.svgElem=y=k.path().attr(b).add(n)),m)b=i.getPlotLinePath({value:f,lineWidth:y.strokeWidth(),acrossPanes:o.acrossPanes});else{if(!g)return;b=i.getPlotBandPath(p,d,o)}return!t.eventsAdded&&w&&(c(w,(function(e,i){y.on(i,(function(e){w[i].apply(t,[e])}))})),t.eventsAdded=!0),(v||!y.d)&&b&&b.length?y.attr({d:b}):y&&(b?(y.show(!0),y.animate({d:b})):y.d&&(y.hide(),l&&(t.label=l=l.destroy()))),a&&(r(a.text)||r(a.formatter))&&b&&b.length&&0this.max&&e>this.max,s&&i){if(t){var a=s.toString()===i.toString();o=0}for(t=0;tt){l=a;break}if(o[l]&&r.substr(o[l])!=="01-01 00:00:00.000".substr(o[l]))break;"week"!==l&&(a=l)}if(l)var h=n.resolveDTLFormat(s[l]).main;return h},y.prototype.getLabel=function(){var e,i,s,o=this,a=this.chart.renderer,l=this.chart.styledMode,h=this.options,c="tooltip"+(r(h.className)?" "+h.className:""),u=(null===(e=h.style)||void 0===e?void 0:e.pointerEvents)||(!this.followPointer&&h.stickOnContact?"auto":"none");if(e=function(){o.inContact=!0},!this.label){if(this.outside&&(this.container=s=t.doc.createElement("div"),s.className="highcharts-tooltip-container",n(s,{position:"absolute",top:"1px",pointerEvents:u,zIndex:3}),t.doc.body.appendChild(s),this.renderer=a=new t.Renderer(s,0,0,null===(i=this.chart.options.chart)||void 0===i?void 0:i.style,void 0,void 0,a.styledMode)),this.split?this.label=a.g(c):(this.label=a.label("",0,0,h.shape||"callout",null,null,h.useHTML,null,c).attr({padding:h.padding,r:h.borderRadius}),l||this.label.attr({fill:h.backgroundColor,"stroke-width":h.borderWidth}).css(h.style).css({pointerEvents:u}).shadow(h.shadow)),l&&(this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index)),o.outside&&!o.split){var d=this.label,p=d.xSetter,f=d.ySetter;d.xSetter=function(t){p.call(d,o.distance),s.style.left=t+"px"},d.ySetter=function(t){f.call(d,o.distance),s.style.top=t+"px"}}this.label.on("mouseenter",e).on("mouseleave",(function(){var t=o.chart.hoverSeries;o.inContact=!1,t&&t.onMouseOut&&t.onMouseOut()})).attr({zIndex:8}).add()}return this.label},y.prototype.getPosition=function(t,e,s){var n,r=this.chart,o=this.distance,a={},l=r.inverted&&s.h||0,h=this.outside,c=h?i.documentElement.clientWidth-2*o:r.chartWidth,u=h?Math.max(i.body.scrollHeight,i.documentElement.scrollHeight,i.body.offsetHeight,i.documentElement.offsetHeight,i.documentElement.clientHeight):r.chartHeight,d=r.pointer.getChartPosition(),f=r.containerScaling,g=function(t){return f?t*f.scaleX:t},m=function(t){return f?t*f.scaleY:t},y=function(i){var n="x"===i;return[i,n?c:u,n?t:e].concat(h?[n?g(t):m(e),n?d.left-o+g(s.plotX+r.plotLeft):d.top-o+m(s.plotY+r.plotTop),0,n?c:u]:[n?t:e,n?s.plotX+r.plotLeft:s.plotY+r.plotTop,n?r.plotLeft:r.plotTop,n?r.plotLeft+r.plotWidth:r.plotTop+r.plotHeight])},v=y("y"),b=y("x"),x=!this.followPointer&&p(s.ttBelow,!r.inverted==!!s.negative),_=function(t,e,i,s,n,r,h){var c="y"===t?m(o):g(o),u=(i-s)/2,d=sf-l?f:f-l);else{if(!p)return!1;a[t]=Math.max(r,n+l+i>e?n:n+l)}},w=function(t,e,i,s,n){var r;return ne-o?r=!1:a[t]=ne-s/2?e-s-2:n-i/2,r},C=function(t){var e=v;v=b,b=e,n=t},k=function(){!1!==_.apply(0,v)?!1!==w.apply(0,b)||n||(C(!0),k()):n?a.x=a.y=0:(C(!0),k())};return(r.inverted||1=b+d&&D.pos+v<=b+d+h-y&&(P=D.pos+v);m=s(m,k.left-_,k.right+_),"number"==typeof P?(f=f.height+1,v=C?C.call(r,l,f,o):n(m,P,a,l),t.push({align:C?0:void 0,anchorX:m,anchorY:P,boxWidth:l,point:o,rank:p(v.rank,a?1:0),size:f,target:v.y,tt:e,x:v.x})):e.isActive=!1}return t}),[]),!C&&e.some((function(t){return t.xi[0]?Math.max(Math.abs(i[0]),n.width-i[0]):Math.max(Math.abs(i[0]),n.width),s.height=0>i[1]?Math.max(Math.abs(i[1]),n.height-Math.abs(i[1])):Math.max(Math.abs(i[1]),n.height),this.tracker?this.tracker.attr(s):(this.tracker=e.renderer.rect(s).addClass("highcharts-tracker").add(e),t.styledMode||this.tracker.attr({fill:"rgba(0,0,0,0)"}))}}},y.prototype.styledModeFormat=function(t){return t.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')},y.prototype.tooltipFooterHeaderFormatter=function(t,e){var i=e?"footer":"header",s=t.series,n=s.tooltipOptions,r=n.xDateFormat,o=s.xAxis,a=o&&"datetime"===o.options.type&&c(t.key),u=n[i+"Format"];return l(this,"headerFormatter",e={isFooter:e,labelConfig:t},(function(e){a&&!r&&(r=this.getXDateFormat(t,n,o)),a&&r&&(t.point&&t.point.tooltipDateKeys||["key"]).forEach((function(t){u=u.replace("{point."+t+"}","{point."+t+":"+r+"}")})),s.chart.styledMode&&(u=this.styledModeFormat(u)),e.text=h(u,{point:t,series:s},this.chart)})),e.text},y.prototype.update=function(t){this.destroy(),d(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,d(!0,this.options,t))},y.prototype.updatePosition=function(t){var e=this.chart,i=e.pointer,s=this.getLabel(),r=t.plotX+e.plotLeft,o=t.plotY+e.plotTop;if(i=i.getChartPosition(),t=(this.options.positioner||this.getPosition).call(this,s.width,s.height,t),this.outside){var a=(this.options.borderWidth||0)+2*this.distance;this.renderer.setSize(s.width+a,s.height+a,!1),(e=e.containerScaling)&&(n(this.container,{transform:"scale("+e.scaleX+", "+e.scaleY+")"}),r*=e.scaleX,o*=e.scaleY),r+=i.left-t.x,o+=i.top-t.y}this.move(Math.round(t.x),Math.round(t.y||0),r,o)},y}();return t.Tooltip=y,t.Tooltip})),e(i,"Core/Pointer.js",[i["Core/Color.js"],i["Core/Globals.js"],i["Core/Tooltip.js"],i["Core/Utilities.js"]],(function(t,e,i,s){var n=t.parse,r=e.charts,o=e.noop,a=s.addEvent,l=s.attr,h=s.css,c=s.defined,u=s.extend,d=s.find,p=s.fireEvent,f=s.isNumber,g=s.isObject,m=s.objectEach,y=s.offset,v=s.pick,b=s.splat;return t=function(){function t(t,e){this.lastValidTouch={},this.pinchDown=[],this.runChartClick=!1,this.chart=t,this.hasDragged=!1,this.options=e,this.unbindContainerMouseLeave=function(){},this.unbindContainerMouseEnter=function(){},this.init(t,e)}return t.prototype.applyInactiveState=function(t){var e,i=[];(t||[]).forEach((function(t){i.push(e=t.series),e.linkedParent&&i.push(e.linkedParent),e.linkedSeries&&(i=i.concat(e.linkedSeries)),e.navigatorSeries&&i.push(e.navigatorSeries)})),this.chart.series.forEach((function(t){-1===i.indexOf(t)?t.setState("inactive",!0):t.options.inactiveOtherPoints&&t.setAllPointsToState("inactive")}))},t.prototype.destroy=function(){var t=this;void 0!==t.unDocMouseMove&&t.unDocMouseMove(),this.unbindContainerMouseLeave(),e.chartCount||(e.unbindDocumentMouseUp&&(e.unbindDocumentMouseUp=e.unbindDocumentMouseUp()),e.unbindDocumentTouchEnd&&(e.unbindDocumentTouchEnd=e.unbindDocumentTouchEnd())),clearInterval(t.tooltipTimeout),m(t,(function(e,i){t[i]=void 0}))},t.prototype.drag=function(t){var e=this.chart,i=e.options.chart,s=t.chartX,r=t.chartY,o=this.zoomHor,a=this.zoomVert,l=e.plotLeft,h=e.plotTop,c=e.plotWidth,u=e.plotHeight,d=this.selectionMarker,p=this.mouseDownX||0,f=this.mouseDownY||0,m=g(i.panning)?i.panning&&i.panning.enabled:i.panning,y=i.panKey&&t[i.panKey+"Key"];if((!d||!d.touch)&&(sl+c&&(s=l+c),rh+u&&(r=h+u),this.hasDragged=Math.sqrt(Math.pow(p-s,2)+Math.pow(f-r,2)),10t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(i,n),(n=g(t,!0))&&!(n=!g(s,!0))){var r=s.dist-t.dist,o=(t.series.group&&t.series.group.zIndex)-(s.series.group&&s.series.group.zIndex);n=0<(0!=(n=s.distX-t.distX)&&e?n:0!==r?r:0!==o?o:s.series.index>t.series.index?-1:1)}n&&(s=t)})),s)},t.prototype.getChartCoordinatesFromPoint=function(t,e){var i=t.series,s=i.xAxis;i=i.yAxis;var n=v(t.clientX,t.plotX),r=t.shapeArgs;return s&&i?e?{chartX:s.len+s.pos-n,chartY:i.len+i.pos-t.plotY}:{chartX:n+s.pos,chartY:t.plotY+i.pos}:r&&r.x&&r.y?{chartX:r.x,chartY:r.y}:void 0},t.prototype.getChartPosition=function(){return this.chartPosition||(this.chartPosition=y(this.chart.container))},t.prototype.getCoordinates=function(t){var e={xAxis:[],yAxis:[]};return this.chart.axes.forEach((function(i){e[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(t[i.horiz?"chartX":"chartY"])})})),e},t.prototype.getHoverData=function(t,e,i,s,n,r){var o,a=[];s=!(!s||!t);var l=e&&!e.stickyTracking,h={chartX:r?r.chartX:void 0,chartY:r?r.chartY:void 0,shared:n};return p(this,"beforeGetHoverData",h),l=l?[e]:i.filter((function(t){return h.filter?h.filter(t):t.visible&&!(!n&&t.directTouch)&&v(t.options.enableMouseTracking,!0)&&t.stickyTracking})),e=(o=s||!r?t:this.findNearestKDPoint(l,n,r))&&o.series,o&&(n&&!e.noSharedTooltip?(l=i.filter((function(t){return h.filter?h.filter(t):t.visible&&!(!n&&t.directTouch)&&v(t.options.enableMouseTracking,!0)&&!t.noSharedTooltip}))).forEach((function(t){var e=d(t.points,(function(t){return t.x===o.x&&!t.isNull}));g(e)&&(t.chart.isBoosting&&(e=t.getPoint(e)),a.push(e))})):a.push(o)),p(this,"afterGetHoverData",h={hoverPoint:o}),{hoverPoint:h.hoverPoint,hoverSeries:e,hoverPoints:a}},t.prototype.getPointFromEvent=function(t){t=t.target;for(var e;t&&!e;)e=t.point,t=t.parentNode;return e},t.prototype.onTrackerMouseOut=function(t){t=t.relatedTarget||t.toElement;var e=this.chart.hoverSeries;this.isDirectTouch=!1,!e||!t||e.stickyTracking||this.inClass(t,"highcharts-tooltip")||this.inClass(t,"highcharts-series-"+e.index)&&this.inClass(t,"highcharts-tracker")||e.onMouseOut()},t.prototype.inClass=function(t,e){for(var i;t;){if(i=l(t,"class")){if(-1!==i.indexOf(e))return!0;if(-1!==i.indexOf("highcharts-container"))return!1}t=t.parentNode}},t.prototype.init=function(t,e){this.options=e,this.chart=t,this.runChartClick=e.chart.events&&!!e.chart.events.click,this.pinchDown=[],this.lastValidTouch={},i&&(t.tooltip=new i(t,e.tooltip),this.followTouchMove=v(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},t.prototype.normalize=function(t,e){var i=t.touches,s=i?i.length?i.item(0):v(i.changedTouches,t.changedTouches)[0]:t;return e||(e=this.getChartPosition()),i=s.pageX-e.left,e=s.pageY-e.top,(s=this.chart.containerScaling)&&(i/=s.scaleX,e/=s.scaleY),u(t,{chartX:Math.round(i),chartY:Math.round(e)})},t.prototype.onContainerClick=function(t){var e=this.chart,i=e.hoverPoint;t=this.normalize(t);var s=e.plotLeft,n=e.plotTop;e.cancelClick||(i&&this.inClass(t.target,"highcharts-tracker")?(p(i.series,"click",u(t,{point:i})),e.hoverPoint&&i.firePointEvent("click",t)):(u(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-s,t.chartY-n)&&p(e,"click",t)))},t.prototype.onContainerMouseDown=function(t){var i=1==(1&(t.buttons||t.button));t=this.normalize(t),e.isFirefox&&0!==t.button&&this.onContainerMouseMove(t),(void 0===t.button||i)&&(this.zoomOption(t),i&&t.preventDefault&&t.preventDefault(),this.dragStart(t))},t.prototype.onContainerMouseLeave=function(t){var i=r[v(e.hoverChartIndex,-1)],s=this.chart.tooltip;t=this.normalize(t),i&&(t.relatedTarget||t.toElement)&&(i.pointer.reset(),i.pointer.chartPosition=void 0),s&&!s.isHidden&&this.reset()},t.prototype.onContainerMouseEnter=function(t){delete this.chartPosition},t.prototype.onContainerMouseMove=function(t){var e=this.chart;t=this.normalize(t),this.setHoverChartIndex(),t.preventDefault||(t.returnValue=!1),"mousedown"===e.mouseIsDown&&this.drag(t),e.openMenu||!this.inClass(t.target,"highcharts-tracker")&&!e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)||this.runPointActions(t)},t.prototype.onDocumentTouchEnd=function(t){r[e.hoverChartIndex]&&r[e.hoverChartIndex].pointer.drop(t)},t.prototype.onContainerTouchMove=function(t){this.touch(t)},t.prototype.onContainerTouchStart=function(t){this.zoomOption(t),this.touch(t,!0)},t.prototype.onDocumentMouseMove=function(t){var e=this.chart,i=this.chartPosition;t=this.normalize(t,i);var s=e.tooltip;!i||s&&s.isStickyOnContact()||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)||this.inClass(t.target,"highcharts-tracker")||this.reset()},t.prototype.onDocumentMouseUp=function(t){var i=r[v(e.hoverChartIndex,-1)];i&&i.pointer.drop(t)},t.prototype.pinch=function(t){var e=this,i=e.chart,s=e.pinchDown,n=t.touches||[],r=n.length,a=e.lastValidTouch,l=e.hasZoom,h=e.selectionMarker,c={},d=1===r&&(e.inClass(t.target,"highcharts-tracker")&&i.runTrackerClick||e.runChartClick),p={};1v.max&&(e=v.max-l,k=!0);k?(_-=.8*(_-o[u][0]),"number"==typeof C&&(C-=.8*(C-o[u][1])),i()):o[u]=[_,C],y||(r[u]=h-g,r[f]=l),r=y?1/m:m,n[f]=l,n[u]=e,s[y?t?"scaleY":"scaleX":"scale"+d]=m,s["translate"+d]=r*g+(_-r*x)},t.prototype.reset=function(t,e){var i=this.chart,s=i.hoverSeries,n=i.hoverPoint,r=i.hoverPoints,o=i.tooltip,a=o&&o.shared?r:n;t&&a&&b(a).forEach((function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)})),t?o&&a&&b(a).length&&(o.refresh(a),o.shared&&r?r.forEach((function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair&&t.series.yAxis.drawCrosshair(null,t))})):n&&(n.setState(n.state,!0),i.axes.forEach((function(t){t.crosshair&&n.series[t.coll]===t&&t.drawCrosshair(null,n)})))):(n&&n.onMouseOut(),r&&r.forEach((function(t){t.setState()})),s&&s.onMouseOut(),o&&o.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach((function(t){t.hideCrosshair()})),this.hoverX=i.hoverPoints=i.hoverPoint=null)},t.prototype.runPointActions=function(t,i){var s=this.chart,n=s.tooltip&&s.tooltip.options.enabled?s.tooltip:void 0,o=!!n&&n.shared,l=i||s.hoverPoint,h=l&&l.series||s.hoverSeries;l=(h=this.getHoverData(l,h,s.series,(!t||"touchmove"!==t.type)&&(!!i||h&&h.directTouch&&this.isDirectTouch),o,t)).hoverPoint;var c=h.hoverPoints;if(i=(h=h.hoverSeries)&&h.tooltipOptions.followPointer,o=o&&h&&!h.noSharedTooltip,l&&(l!==s.hoverPoint||n&&n.isHidden)){if((s.hoverPoints||[]).forEach((function(t){-1===c.indexOf(t)&&t.setState()})),s.hoverSeries!==h&&h.onMouseOver(),this.applyInactiveState(c),(c||[]).forEach((function(t){t.setState("hover")})),s.hoverPoint&&s.hoverPoint.firePointEvent("mouseOut"),!l.series)return;s.hoverPoints=c,s.hoverPoint=l,l.firePointEvent("mouseOver"),n&&n.refresh(o?c:l,t)}else i&&n&&!n.isHidden&&(l=n.getAnchor([{}],t),n.updatePosition({plotX:l[0],plotY:l[1]}));this.unDocMouseMove||(this.unDocMouseMove=a(s.container.ownerDocument,"mousemove",(function(t){var i=r[e.hoverChartIndex];i&&i.pointer.onDocumentMouseMove(t)}))),s.axes.forEach((function(e){var i,n=v((e.crosshair||{}).snap,!0);n&&((i=s.hoverPoint)&&i.series[e.coll]===e||(i=d(c,(function(t){return t.series[e.coll]===e})))),i||!n?e.drawCrosshair(t,i):e.hideCrosshair()}))},t.prototype.scaleGroups=function(t,e){var i,s=this.chart;s.series.forEach((function(n){i=t||n.getPlotBox(),n.xAxis&&n.xAxis.zoomEnabled&&n.group&&(n.group.attr(i),n.markerGroup&&(n.markerGroup.attr(i),n.markerGroup.clip(e?s.clipRect:null)),n.dataLabelsGroup&&n.dataLabelsGroup.attr(i))})),s.clipRect.attr(e||s.clipBox)},t.prototype.setDOMEvents=function(){var t=this.chart.container,i=t.ownerDocument;t.onmousedown=this.onContainerMouseDown.bind(this),t.onmousemove=this.onContainerMouseMove.bind(this),t.onclick=this.onContainerClick.bind(this),this.unbindContainerMouseEnter=a(t,"mouseenter",this.onContainerMouseEnter.bind(this)),this.unbindContainerMouseLeave=a(t,"mouseleave",this.onContainerMouseLeave.bind(this)),e.unbindDocumentMouseUp||(e.unbindDocumentMouseUp=a(i,"mouseup",this.onDocumentMouseUp.bind(this))),e.hasTouch&&(a(t,"touchstart",this.onContainerTouchStart.bind(this)),a(t,"touchmove",this.onContainerTouchMove.bind(this)),e.unbindDocumentTouchEnd||(e.unbindDocumentTouchEnd=a(i,"touchend",this.onDocumentTouchEnd.bind(this))))},t.prototype.setHoverChartIndex=function(){var t=this.chart,i=e.charts[v(e.hoverChartIndex,-1)];i&&i!==t&&i.pointer.onContainerMouseLeave({relatedTarget:!0}),i&&i.mouseIsDown||(e.hoverChartIndex=t.index)},t.prototype.touch=function(t,e){var i=this.chart;if(this.setHoverChartIndex(),1===t.touches.length)if(t=this.normalize(t),i.isInsidePlot(t.chartX-i.plotLeft,t.chartY-i.plotTop)&&!i.openMenu){if(e&&this.runPointActions(t),"touchmove"===t.type)var s=!!(e=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(e[0].chartX-t.chartX,2)+Math.pow(e[0].chartY-t.chartY,2));v(s,!0)&&this.pinch(t)}else e&&this.reset();else 2===t.touches.length&&this.pinch(t)},t.prototype.zoomOption=function(t){var e=this.chart,i=e.options.chart,s=i.zoomType||"";e=e.inverted,/touch/.test(t.type)&&(s=v(i.pinchType,s)),this.zoomX=t=/x/.test(s),this.zoomY=s=/y/.test(s),this.zoomHor=t&&!e||s&&e,this.zoomVert=s&&!e||t&&e,this.hasZoom=t||s},t}(),e.Pointer=t})),e(i,"Core/MSPointer.js",[i["Core/Globals.js"],i["Core/Pointer.js"],i["Core/Utilities.js"]],(function(t,e,i){function s(){var t=[];return t.item=function(t){return this[t]},u(p,(function(e){t.push({pageX:e.pageX,pageY:e.pageY,target:e.target})})),t}function n(e,i,n,r){"touch"!==e.pointerType&&e.pointerType!==e.MSPOINTER_TYPE_TOUCH||!o[t.hoverChartIndex]||(r(e),(r=o[t.hoverChartIndex].pointer)[i]({type:n,target:e.currentTarget,preventDefault:l,touches:s()}))}var r=this&&this.__extends||function(){var t=function(e,i){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(e,i)};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}(),o=t.charts,a=t.doc,l=t.noop,h=i.addEvent,c=i.css,u=i.objectEach,d=i.removeEvent,p={},f=!!t.win.PointerEvent;return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.batchMSEvents=function(t){t(this.chart.container,f?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,f?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(a,f?"pointerup":"MSPointerUp",this.onDocumentPointerUp)},e.prototype.destroy=function(){this.batchMSEvents(d),t.prototype.destroy.call(this)},e.prototype.init=function(e,i){t.prototype.init.call(this,e,i),this.hasZoom&&c(e.container,{"-ms-touch-action":"none","touch-action":"none"})},e.prototype.onContainerPointerDown=function(t){n(t,"onContainerTouchStart","touchstart",(function(t){p[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}}))},e.prototype.onContainerPointerMove=function(t){n(t,"onContainerTouchMove","touchmove",(function(t){p[t.pointerId]={pageX:t.pageX,pageY:t.pageY},p[t.pointerId].target||(p[t.pointerId].target=t.currentTarget)}))},e.prototype.onDocumentPointerUp=function(t){n(t,"onDocumentTouchEnd","touchend",(function(t){delete p[t.pointerId]}))},e.prototype.setDOMEvents=function(){t.prototype.setDOMEvents.call(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(h)},e}(e)})),e(i,"Core/Legend.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e){var i=e.addEvent,s=e.animObject,n=e.css,r=e.defined,o=e.discardElement,a=e.find,l=e.fireEvent,h=e.format,c=e.isNumber,u=e.merge,d=e.pick,p=e.relativeLength,f=e.setAnimation,g=e.stableSort,m=e.syncTimeout;e=e.wrap;var y=t.isFirefox,v=t.marginNames,b=t.win,x=function(){function e(t,e){this.allItems=[],this.contentGroup=this.box=void 0,this.display=!1,this.group=void 0,this.offsetWidth=this.maxLegendWidth=this.maxItemWidth=this.legendWidth=this.legendHeight=this.lastLineHeight=this.lastItemY=this.itemY=this.itemX=this.itemMarginTop=this.itemMarginBottom=this.itemHeight=this.initialItemY=0,this.options={},this.padding=0,this.pages=[],this.proximate=!1,this.scrollGroup=void 0,this.widthOption=this.totalItemWidth=this.titleHeight=this.symbolWidth=this.symbolHeight=0,this.chart=t,this.init(t,e)}return e.prototype.init=function(t,e){this.chart=t,this.setOptions(e),e.enabled&&(this.render(),i(this.chart,"endResize",(function(){this.legend.positionCheckboxes()})),this.proximate?this.unchartrender=i(this.chart,"render",(function(){this.legend.proximatePositions(),this.legend.positionItems()})):this.unchartrender&&this.unchartrender())},e.prototype.setOptions=function(t){var e=d(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=u(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=d(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted,this.baseline=void 0},e.prototype.update=function(t,e){var i=this.chart;this.setOptions(u(!0,this.options,t)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,d(e,!0)&&i.redraw(),l(this,"afterUpdate")},e.prototype.colorizeItem=function(t,e){if(t.legendGroup[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var i=this.options,s=t.legendItem,n=t.legendLine,r=t.legendSymbol,o=this.itemHiddenStyle.color;i=e?i.itemStyle.color:o;var a=e&&t.color||o,h=t.options&&t.options.marker,c={fill:a};s&&s.css({fill:i,color:i}),n&&n.attr({stroke:a}),r&&(h&&r.isMarker&&(c=t.pointAttribs(),e||(c.stroke=c.fill=o)),r.attr(c))}l(this,"afterColorizeItem",{item:t,visible:e})},e.prototype.positionItems=function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},e.prototype.positionItem=function(t){var e=this,i=this.options,s=i.symbolPadding,n=!i.rtl,o=t._legendItemPos;i=o[0],o=o[1];var a=t.checkbox,h=t.legendGroup;h&&h.element&&(s={translateX:n?i:this.legendWidth-i-2*s-4,translateY:o},n=function(){l(e,"afterPositionItem",{item:t})},r(h.translateY)?h.animate(s,void 0,n):(h.attr(s),n())),a&&(a.x=i,a.y=o)},e.prototype.destroyItem=function(t){var e=t.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach((function(e){t[e]&&(t[e]=t[e].destroy())})),e&&o(t.checkbox)},e.prototype.destroy=function(){function t(t){this[t]&&(this[t]=this[t].destroy())}this.getAllItems().forEach((function(e){["legendItem","legendGroup"].forEach(t,e)})),"clipRect up down pager nav box title group".split(" ").forEach(t,this),this.display=null},e.prototype.positionCheckboxes=function(){var t=this.group&&this.group.alignAttr,e=this.clipHeight||this.legendHeight,i=this.titleHeight;if(t){var s=t.translateY;this.allItems.forEach((function(r){var o=r.checkbox;if(o){var a=s+i+o.y+(this.scrollOffset||0)+3;n(o,{left:t.translateX+r.checkboxOffset+o.x-20+"px",top:a+"px",display:this.proximate||a>s-6&&al?this.maxItemWidth:t.itemWidth,s&&this.itemX-i+e>l&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=o+this.lastLineHeight+r),this.lastLineHeight=0),this.lastItemY=o+this.itemY+r,this.lastLineHeight=Math.max(n,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],s?this.itemX+=e:(this.itemY+=o+n+r,this.lastLineHeight=n),this.offsetWidth=this.widthOption||Math.max((s?this.itemX-i-(t.checkbox?0:a):e)+i,this.offsetWidth)},e.prototype.getAllItems=function(){var t=[];return this.chart.series.forEach((function(e){var i=e&&e.options;e&&d(i.showInLegend,!r(i.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItems||("point"===i.legendType?e.data:e)))})),l(this,"afterGetAllItems",{allItems:t}),t},e.prototype.getAlignment=function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},e.prototype.adjustMargins=function(t,e){var i=this.chart,s=this.options,n=this.getAlignment();n&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach((function(o,a){o.test(n)&&!r(t[a])&&(i[v[a]]=Math.max(i[v[a]],i.legend[(a+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][a]*s[a%2?"x":"y"]+d(s.margin,12)+e[a]+(i.titleOffset[a]||0)))}))},e.prototype.proximatePositions=function(){var e=this.chart,i=[],s="left"===this.options.align;this.allItems.forEach((function(t){var n,r=s;if(t.yAxis){t.xAxis.options.reversed&&(r=!r),t.points&&(n=a(r?t.points:t.points.slice(0).reverse(),(function(t){return c(t.plotY)}))),r=this.itemMarginTop+t.legendItem.getBBox().height+this.itemMarginBottom;var o=t.yAxis.top-e.plotTop;t.visible?(n=n?n.plotY:t.yAxis.height,n+=o-.3*r):n=o+t.yAxis.height,i.push({target:n,size:r,item:t})}}),this),t.distribute(i,e.plotHeight),i.forEach((function(t){t.item._legendItemPos[1]=e.plotTop-e.spacing[0]+t.pos}))},e.prototype.render=function(){var t=this.chart,e=t.renderer,i=this.group,s=this.box,n=this.options,r=this.padding;this.itemX=r,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=p(n.width,t.spacingBox.width-r);var o=t.spacingBox.width-2*r-n.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(o/=2),this.maxLegendWidth=this.widthOption||o,i||(this.group=i=e.g("legend").attr({zIndex:7}).add(),this.contentGroup=e.g().attr({zIndex:1}).add(i),this.scrollGroup=e.g().add(this.contentGroup)),this.renderTitle();var a=this.getAllItems();g(a,(function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)})),n.reversed&&a.reverse(),this.allItems=a,this.display=o=!!a.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,a.forEach(this.renderItem,this),a.forEach(this.layoutItem,this),a=(this.widthOption||this.offsetWidth)+r;var h=this.lastItemY+this.lastLineHeight+this.titleHeight;h=this.handleOverflow(h),h+=r,s||(this.box=s=e.rect().addClass("highcharts-legend-box").attr({r:n.borderRadius}).add(i),s.isNew=!0),t.styledMode||s.attr({stroke:n.borderColor,"stroke-width":n.borderWidth||0,fill:n.backgroundColor||"none"}).shadow(n.shadow),0r&&!1!==u.enabled?(this.clipHeight=a=Math.max(r-20-this.titleHeight-o,0),this.currentPage=d(this.currentPage,1),this.fullHeight=t,y.forEach((function(t,e){var i=t._legendItemPos[1],s=Math.round(t.legendItem.getBBox().height),n=m.length;(!n||i-m[n-1]>a&&(l||i)!==m[n-1])&&(m.push(l||i),n++),t.pageIx=n-1,l&&(y[e-1].pageIx=n-1),e===y.length-1&&i+s-m[n-1]>a&&i!==l&&(m.push(i),t.pageIx=n),i!==l&&(l=i)})),c||(c=e.clipRect=s.clipRect(0,o,9999,0),e.contentGroup.clip(c)),v(a),g||(this.nav=g=s.g().attr({zIndex:1}).add(this.group),this.up=s.symbol("triangle",0,0,f,f).add(g),b("upTracker").on("click",(function(){e.scroll(-1,p)})),this.pager=s.text("",15,10).addClass("highcharts-legend-navigation"),i.styledMode||this.pager.css(u.style),this.pager.add(g),this.down=s.symbol("triangle-down",0,0,f,f).add(g),b("downTracker").on("click",(function(){e.scroll(1,p)}))),e.scroll(0),t=r):g&&(v(),this.nav=g.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},e.prototype.scroll=function(t,e){var i=this,n=this.chart,r=this.pages,o=r.length,a=this.currentPage+t;t=this.clipHeight;var h=this.options.navigation,c=this.pager,u=this.padding;a>o&&(a=o),0=i.value;)i=e[++s];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=i&&i.color&&!this.options.color?i.color:this.nonZonedColor,i},t.prototype.hasNewShapeType=function(){return(this.graphic&&(this.graphic.symbolName||this.graphic.element.nodeName))!==this.shapeType},t.prototype.init=function(t,e,i){return this.series=t,this.applyOptions(e,i),this.id=s(this.id)?this.id:g(),this.resolveColor(),t.chart.pointCount++,o(this,"afterInit"),this},t.prototype.optionsToObject=function(e){var i={},s=this.series,n=s.options.keys,r=n||s.pointArrayMap||["y"],o=r.length,a=0,l=0;if(c(e)||null===e)i[r[0]]=e;else if(h(e))for(!n&&e.length>o&&("string"==(s=typeof e[0])?i.name=e[0]:"number"===s&&(i.x=e[0]),a++);l=A(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return A(e,t.length-1)},bindAxes:function(){var t,e=this,i=e.options,s=e.chart;v(this,"bindAxes",null,(function(){(e.axisTypes||[]).forEach((function(n){s[n].forEach((function(s){(i[n]===(t=s.options).index||void 0!==i[n]&&i[n]===t.id||void 0===i[n]&&0===t.index)&&(e.insert(s.series),e[n]=s,s.isDirty=!0)})),e[n]||e.optionalAxis===n||g(18,!0,s)}))})),v(this,"afterBindAxes")},updateParallelArrays:function(t,e){var i=t.series,s=arguments,n=w(e)?function(s){var n="y"===s&&i.toYData?i.toYData(t):t[s];i[s+"Data"][e]=n}:function(t){Array.prototype[e].apply(i[t+"Data"],Array.prototype.slice.call(s,2))};i.parallelArrays.forEach(n)},hasData:function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&0=this.cropStart?h-this.cropStart:h),!i&&r[h]&&r[h].touched&&(h=void 0),h},drawLegendSymbol:e.drawLineMarker,updateData:function(t,e){var i,s,n,r=this.options,o=r.dataSorting,a=this.points,l=[],c=this.requireSorting,u=t.length===a.length,d=!0;if(this.xIncrement=null,t.forEach((function(t,e){var s=p(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},h=s.x;s.id||w(h)?(-1===(h=this.findPointIndex(s,n))||void 0===h?l.push(t):a[h]&&t!==r.data[h]?(a[h].update(t,!1,null,!1),a[h].touched=!0,c&&(n=h+1)):a[h]&&(a[h].touched=!0),(!u||e!==h||o&&o.enabled||this.hasDerivedData)&&(i=!0)):l.push(t)}),this),i)for(t=a.length;t--;)(s=a[t])&&!s.touched&&s.remove&&s.remove(!1,e);else!u||o&&o.enabled?d=!1:(t.forEach((function(t,e){a[e].update&&t!==a[e].y&&a[e].update(t,!1,null,!1)})),l.length=0);return a.forEach((function(t){t&&(t.touched=!1)})),!!d&&(l.forEach((function(t){this.addPoint(t,!1,null,null,!1)}),this),null===this.xIncrement&&this.xData&&this.xData.length&&(this.xIncrement=h(this.xData),this.autoIncrement()),!0)},setData:function(t,e,i,s){var n,r=this,o=r.points,a=o&&o.length||0,l=r.options,h=r.chart,c=l.dataSorting,u=null,d=r.xAxis;u=l.turboThreshold;var p,f=this.xData,m=this.yData,y=(n=r.pointArrayMap)&&n.length,v=l.keys,b=0,_=1;if(n=(t=t||[]).length,e=A(e,!0),c&&c.enabled&&(t=this.sortData(t)),!1!==s&&n&&a&&!r.cropped&&!r.hasGroupedData&&r.visible&&!r.isSeriesBoosting&&(p=this.updateData(t,i)),!p){if(r.xIncrement=null,r.colorCounter=0,this.parallelArrays.forEach((function(t){r[t+"Data"].length=0})),u&&n>u)if(u=r.getFirstValidPoint(t),w(u))for(i=0;it?1:0})).forEach((function(t,e){t.x=e}),this),e.linkedSeries&&e.linkedSeries.forEach((function(e){var i=e.options,n=i.data;i.dataSorting&&i.dataSorting.enabled||!n||(n.forEach((function(i,r){n[r]=s(e,i),t[r]&&(n[r].x=t[r].x,n[r].index=r)})),e.setData(n,!1))})),t},getProcessedData:function(t){var e=this.xData,i=this.yData,s=e.length,n=0,r=this.xAxis,o=this.options,a=o.cropThreshold,l=t||this.getExtremesFromAll||o.getExtremesFromAll,h=this.isCartesian;t=r&&r.val2lin,o=!(!r||!r.logarithmic);var c=this.requireSorting;if(r)var u=(r=r.getExtremes()).min,d=r.max;if(h&&this.sorted&&!l&&(!a||s>a||this.forceCrop))if(e[s-1]d)e=[],i=[];else if(this.yData&&(e[0]d)){e=(n=this.cropData(this.xData,this.yData,u,d)).xData,i=n.yData,n=n.start;var p=!0}for(a=e.length||1;--a;)if(0<(s=o?t(e[a])-t(e[a-1]):e[a]-e[a-1])&&(void 0===f||ss&&c&&(g(15,!1,this.chart),c=!1);return{xData:e,yData:i,cropped:p,cropStart:n,closestPointRange:f}},processData:function(t){if(this.isCartesian&&!this.isDirty&&!this.xAxis.isDirty&&!this.yAxis.isDirty&&!t)return!1;t=this.getProcessedData(),this.cropped=t.cropped,this.cropStart=t.cropStart,this.processedXData=t.xData,this.processedYData=t.yData,this.closestPointRange=this.basePointRange=t.closestPointRange},cropData:function(t,e,i,s,n){var r,o=t.length,a=0,l=o;for(n=A(n,this.cropShoulder),r=0;r=i){a=Math.max(0,r-n);break}for(i=r;is){l=i+n;break}return{xData:t.slice(a,l),yData:e.slice(a,l),start:a,end:l}},generatePoints:function(){var t,e=this.options,i=e.data,s=this.data,n=this.processedXData,r=this.processedYData,o=this.pointClass,a=n.length,l=this.cropStart||0,h=this.hasGroupedData;e=e.keys;var c,u=[];for(s||h||((s=[]).length=i.length,s=this.data=s),e&&h&&(this.options.keys=!1),c=0;c=l&&(r[i-d]||f)<=u,m&&f)if(m=g.length)for(;m--;)w(g[m])&&(o[a++]=g[m]);else o[a++]=g}return t={dataMin:c(o),dataMax:h(o)},v(this,"afterGetExtremes",{dataExtremes:t}),t},applyExtremes:function(){var t=this.getExtremes();return this.dataMin=t.dataMin,this.dataMax=t.dataMax,t},getFirstValidPoint:function(t){for(var e=null,i=t.length,s=0;null===e&&s=E&&(E=null),C.total=C.stackTotal=D.total,C.percentage=D.total&&C.y/D.total*100,C.stackY=S,this.irregularWidths||D.setOffset(this.pointXOffset||0,this.barW||0)),C.yBottom=p(E)?u(a.translate(E,0,1,0,1),-1e5,1e5):null,c&&(S=this.modifyValue(S,C)),C.plotY="number"==typeof S&&1/0!==S?u(a.translate(S,0,1,0,1),-1e5,1e5):void 0,C.isInside=this.isPointInside(C),C.clientX=g?d(n.translate(k,0,0,0,1,f)):e,C.negative=C[b]<(i[b+"Threshold"]||m||0),C.category=r&&void 0!==r[C.x]?r[C.x]:C.x,!C.isNull&&!1!==C.visible){void 0!==O&&(_=Math.min(_,Math.abs(e-O)));var O=e}C.zone=this.zones.length&&C.getZone(),!C.graphic&&this.group&&o&&(C.isNew=!0)}this.closestPointRangePx=_,v(this,"afterTranslate")},getValidPoints:function(t,e,i){var s=this.chart;return(t||this.points||[]).filter((function(t){return!(e&&!s.isInsidePlot(t.plotX,t.plotY,s.inverted))&&!1!==t.visible&&(i||!t.isNull)}))},getClipBox:function(t,e){var i=this.chart,s=this.xAxis,n=s&&this.yAxis,r=i.options.chart.scrollablePlotArea||{};return t&&!1===this.options.clip&&n?t=i.inverted?{y:-i.chartWidth+n.len+n.pos,height:i.chartWidth,width:i.chartHeight,x:-i.chartHeight+s.len+s.pos}:{y:-n.pos,height:i.chartHeight,width:i.chartWidth,x:-s.pos}:(t=this.clipBox||i.clipBox,e&&(t.width=i.plotSizeX,t.x=(i.scrollablePixelsX||0)*(r.scrollPositionX||0))),e?{width:t.width,x:t.x}:t},setClip:function(t){var e=this.chart,i=this.options,s=e.renderer,n=e.inverted,r=this.clipBox,o=this.getClipBox(t),a=this.sharedClipKey||["_sharedClip",t&&t.duration,t&&t.easing,o.height,i.xAxis,i.yAxis].join(),l=e[a],h=e[a+"m"];t&&(o.width=0,n&&(o.x=e.plotHeight+(!1!==i.clip?0:e.plotTop))),l?e.hasLoaded||l.attr(o):(t&&(e[a+"m"]=h=s.clipRect(n?e.plotSizeX+99:-99,n?-e.plotLeft:-e.plotTop,99,n?e.chartWidth:e.chartHeight)),e[a]=l=s.clipRect(o),l.count={length:0}),t&&!l.count[this.index]&&(l.count[this.index]=!0,l.count.length+=1),(!1!==i.clip||t)&&(this.group.clip(t||r?l:e.clipRect),this.markerGroup.clip(h),this.sharedClipKey=a),t||(l.count[this.index]&&(delete l.count[this.index],--l.count.length),0===l.count.length&&a&&e[a]&&(r||(e[a]=e[a].destroy()),e[a+"m"]&&(e[a+"m"]=e[a+"m"].destroy())))},animate:function(t){var e=this.chart,i=l(this.options.animation);if(!e.hasRendered)if(t)this.setClip(i);else{var s=this.sharedClipKey;t=e[s];var n=this.getClipBox(i,!0);t&&t.animate(n,i),e[s+"m"]&&e[s+"m"].animate({width:n.width+99,x:n.x-(e.inverted?0:99)},i)}},afterAnimate:function(){this.setClip(),v(this,"afterAnimate"),this.finishedAnimating=!0},drawPoints:function(){var t,e,i=this.points,s=this.chart,n=this.options.marker,r=this[this.specialGroup]||this.markerGroup,o=this.xAxis,a=A(n.enabled,!(o&&!o.isRadial)||null,this.closestPointRangePx>=n.enabledThreshold*n.radius);if(!1!==n.enabled||this._hasPointMarkers)for(t=0;tr&&e.shadow)),a&&(a.startX=i.xMap,a.isArea=i.isArea)}))},getZonesGraphs:function(t){return this.zones.forEach((function(e,i){i=["zone-graph-"+i,"highcharts-graph highcharts-zone-graph-"+i+" "+(e.className||"")],this.chart.styledMode||i.push(e.color||this.color,e.dashStyle||this.options.dashStyle),t.push(i)}),this),t},applyZones:function(){var t,e,i,s,n,r,o,a,l=this,h=this.chart,c=h.renderer,d=this.zones,p=this.clips||[],f=this.graph,g=this.area,m=Math.max(h.chartWidth,h.chartHeight),y=this[(this.zoneAxis||"y")+"Axis"],v=h.inverted,b=!1;if(d.length&&(f||g)&&y&&void 0!==y.min){var x=y.reversed,_=y.horiz;f&&!this.showLine&&f.hide(),g&&g.hide();var w=y.getExtremes();d.forEach((function(d,C){t=x?_?h.plotWidth:0:_?0:y.toPixels(w.min)||0,t=u(A(e,t),0,m),e=u(Math.round(y.toPixels(A(d.value,w.max),!0)||0),0,m),b&&(t=e=y.toPixels(w.max)),s=Math.abs(t-e),n=Math.min(t,e),r=Math.max(t,e),y.isXAxis?(i={x:v?r:n,y:0,width:s,height:m},_||(i.x=h.plotHeight-i.x)):(i={x:0,y:v?r:n,width:m,height:s},_&&(i.y=h.plotWidth-i.y)),v&&c.isVML&&(i=y.isXAxis?{x:0,y:x?n:r,height:i.width,width:h.chartWidth}:{x:i.y-h.plotLeft-h.spacingBox.x,y:0,width:i.height,height:h.chartHeight}),p[C]?p[C].animate(i):p[C]=c.clipRect(i),o=l["zone-area-"+C],a=l["zone-graph-"+C],f&&a&&a.clip(p[C]),g&&o&&o.clip(p[C]),b=d.value>w.max,l.resetZones&&0===e&&(e=void 0)})),this.clips=p}else l.visible&&(f&&f.show(!0),g&&g.show(!0))},invertGroups:function(t){function e(){["group","markerGroup"].forEach((function(e){i[e]&&(s.renderer.isVML&&i[e].attr({width:i.yAxis.len,height:i.xAxis.len}),i[e].width=i.yAxis.len,i[e].height=i.xAxis.len,i[e].invert(!i.isRadialSeries&&t))}))}var i=this,s=i.chart;i.xAxis&&(i.eventsToUnbind.push(a(s,"resize",e)),e(),i.invertGroups=e)},plotGroup:function(t,e,i,s,n){var r=this[t],o=!r;return i={visibility:i,zIndex:s||.1},void 0===this.opacity||this.chart.styledMode||"inactive"===this.state||(i.opacity=this.opacity),o&&(this[t]=r=this.chart.renderer.g().add(n)),r.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(p(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(r.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),r.attr(i)[o?"attr":"animate"](this.getPlotBox()),r},getPlotBox:function(){var t=this.chart,e=this.xAxis,i=this.yAxis;return t.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:i?i.top:t.plotTop,scaleX:1,scaleY:1}},removeEvents:function(t){t?this.eventsToUnbind.length&&(this.eventsToUnbind.forEach((function(t){t()})),this.eventsToUnbind.length=0):E(this)},render:function(){var t=this,e=t.chart,i=t.options,s=l(i.animation),n=!t.finishedAnimating&&e.renderer.isSVG&&s.duration,r=t.visible?"inherit":"hidden",o=i.zIndex,a=t.hasRendered,h=e.seriesGroup,c=e.inverted;v(this,"render");var u=t.plotGroup("group","series",r,o,h);t.markerGroup=t.plotGroup("markerGroup","markers",r,o,h),n&&t.animate&&t.animate(!0),u.inverted=!(!t.isCartesian&&!t.invertable)&&c,t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels&&t.drawDataLabels(),t.redrawPoints&&t.redrawPoints(),t.drawTracker&&!1!==t.options.enableMouseTracking&&t.drawTracker(),t.invertGroups(c),!1===i.clip||t.sharedClipKey||a||u.clip(e.clipRect),n&&t.animate&&t.animate(),a||(n&&s.defer&&(n+=s.defer),t.animationTimeout=T((function(){t.afterAnimate()}),n||0)),t.isDirty=!1,t.hasRendered=!0,v(t,"afterRender")},redraw:function(){var t=this.chart,e=this.isDirty||this.isDirtyData,i=this.group,s=this.xAxis,n=this.yAxis;i&&(t.inverted&&i.attr({width:t.plotWidth,height:t.plotHeight}),i.animate({translateX:A(s&&s.left,t.plotLeft),translateY:A(n&&n.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(t,e){var i=this.xAxis,s=this.yAxis,n=this.chart.inverted;return this.searchKDTree({clientX:n?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:n?s.len-t.chartX+s.pos:t.chartY-s.pos},e,t)},buildKDTree:function(t){this.buildingKdTree=!0;var e=this,i=-1(c=e[c]-h[c])?"right":"left",i[f=0>c?"left":"right"]&&(u=(f=t(e,i[f],a+1,l))[o]p;)f--;this.updateParallelArrays(d,"splice",f,0,0),this.updateParallelArrays(d,f),l&&d.name&&(l[p]=d.name),c.splice(f,0,t),h&&(this.data.splice(f,0,null),this.processData()),"point"===r.legendType&&this.generatePoints(),i&&(o[0]&&o[0].remove?o[0].remove(!1):(o.shift(),this.updateParallelArrays(d,"shift"),c.shift())),!1!==n&&m(this,"addPoint",{point:d}),this.isDirtyData=this.isDirty=!0,e&&a.redraw(s)},removePoint:function(t,e,i){var s=this,n=s.data,r=n[t],o=s.points,a=s.chart,l=function(){o&&o.length===n.length&&o.splice(t,1),n.splice(t,1),s.options.data.splice(t,1),s.updateParallelArrays(r||{series:s},"splice",t,1),r&&r.destroy(),s.isDirty=!0,s.isDirtyData=!0,e&&a.redraw()};S(i,a),e=C(e,!0),r?r.firePointEvent("remove",null,l):l()},remove:function(t,e,i,s){function n(){r.destroy(s),r.remove=null,o.isDirtyLegend=o.isDirtyBox=!0,o.linkSeries(),C(t,!0)&&o.redraw(e)}var r=this,o=r.chart;!1!==i?m(r,"remove",null,n):n()},update:function(t,e){t=i.cleanRecursively(t,this.userOptions),m(this,"update",{options:t});var s,n=this,r=n.chart,o=n.userOptions,a=n.initialType||n.type,l=t.type||o.type||r.options.chart.type,h=!(this.hasDerivedData||t.dataGrouping||l&&l!==this.type||void 0!==t.pointStart||t.pointInterval||t.pointIntervalUnit||t.keys),c=E[a].prototype,u=["eventOptions","navigatorSeries","baseSeries"],d=n.finishedAnimating&&{animation:!1},p={};for(s in h&&(u.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","cropped","_hasPointMarkers","_hasPointLabels","mapMap","mapData","minY","maxY","minX","maxX"),!1!==t.visible&&u.push("area","graph"),n.parallelArrays.forEach((function(t){u.push(t+"Data")})),t.data&&(t.dataSorting&&g(n.options.dataSorting,t.dataSorting),this.setData(t.data,!1))),t=_(o,d,{index:void 0===o.index?n.index:o.index,pointStart:C(o.pointStart,n.xData[0])},!h&&{data:n.options.data},t),h&&t.data&&(t.data=n.options.data),(u=["group","markerGroup","dataLabelsGroup","transformGroup"].concat(u)).forEach((function(t){u[t]=n[t],delete n[t]})),n.remove(!1,null,!1,!0),c)n[s]=void 0;if(E[l||a]?g(n,E[l||a].prototype):f(17,!0,r,{missingModuleFor:l||a}),u.forEach((function(t){n[t]=u[t]})),n.init(r,t),h&&this.points){var y=n.options;!1===y.visible?(p.graphic=1,p.dataLabel=1):n._hasPointLabels||(o=y.dataLabels,(t=y.marker)&&(!1===t.enabled||"symbol"in t)&&(p.graphic=1),o&&!1===o.enabled&&(p.dataLabel=1)),this.points.forEach((function(t){t&&t.series&&(t.resolveColor(),Object.keys(p).length&&t.destroyElements(p),!1===y.showInLegend&&t.legendItem&&r.legend.destroyItem(t))}),this)}n.initialType=a,r.linkSeries(),m(this,"afterUpdate"),C(e,!0)&&r.redraw(!!h&&void 0)},setName:function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0}}),g(t.prototype,{update:function(t,e){var i=this.chart,s=t&&t.events||{};t=_(this.userOptions,t),i.options[this.coll].indexOf&&(i.options[this.coll][i.options[this.coll].indexOf(this.userOptions)]=t),w(i.options[this.coll].events,(function(t,e){void 0===s[e]&&(s[e]=void 0)})),this.destroy(!0),this.init(i,g(t,{events:s})),i.isDirtyBox=!0,C(e,!0)&&i.redraw()},remove:function(t){for(var e=this.chart,i=this.coll,s=this.series,n=s.length;n--;)s[n]&&s[n].remove(!1);p(e.axes,this),p(e[i],this),y(e.options[i])?e.options[i].splice(this.options.index,1):delete e.options[i],e[i].forEach((function(t,e){t.options.index=t.userOptions.index=e})),this.destroy(),e.isDirtyBox=!0,C(t,!0)&&e.redraw()},setTitle:function(t,e){this.update({title:t},e)},setCategories:function(t,e){this.update({categories:t},e)}})})),e(i,"Series/AreaSeries.js",[i["Core/Globals.js"],i["Core/Color.js"],i["Mixins/LegendSymbol.js"],i["Core/Utilities.js"]],(function(t,e,i,s){var n=e.parse,r=s.objectEach,o=s.pick,a=t.Series;(e=s.seriesType)("area","line",{threshold:0},{singleStacks:!1,getStackPoints:function(t){var e,i=[],s=[],n=this.xAxis,a=this.yAxis,l=a.stacking.stacks[this.stackKey],h={},c=this.index,u=a.series,d=u.length,p=o(a.options.reversedStacks,!0)?1:-1;if(t=t||this.points,this.options.stacking){for(e=0;et&&c>r?u=2*r-(c=Math.max(t,r)):cs&&u>r?c=2*r-(u=Math.max(s,r)):u=Math.abs(e)&&.5t.closestPointRange*t.xAxis.transA;s=t.borderWidth=u(i.borderWidth,s?0:1);var n=t.xAxis,r=t.yAxis,l=i.threshold,c=t.translatedThreshold=r.getThreshold(l),d=u(i.minPointLength,5),f=t.getColumnMetrics(),g=f.width,m=t.barW=Math.max(g,1+2*s),y=t.pointXOffset=f.offset,v=t.dataMin,b=t.dataMax;e.inverted&&(c-=.5),i.pointPadding&&(m=Math.ceil(m)),p.prototype.translate.apply(t),t.points.forEach((function(s){var p=u(s.yBottom,c),x=999+Math.abs(p),_=g,w=s.plotX||0;x=o(s.plotY,-x,r.len+x);var C=w+y,k=m,S=Math.min(x,p),A=Math.max(x,p)-S;if(d&&Math.abs(A)d?p-d:c-(E?d:0)}a(s.options.pointWidth)&&(_=k=Math.ceil(s.options.pointWidth),C-=Math.round((_-g)/2)),i.centerInCategory&&(C=t.adjustForMissingColumns(C,_,s,f)),s.barX=C,s.pointWidth=_,s.tooltipPos=e.inverted?[r.len+r.pos-e.plotLeft-x,n.len+n.pos-e.plotTop-(w||0)-y-k/2,A]:[C+k/2,x+r.pos-e.plotTop,A],s.shapeType=t.pointClass.prototype.shapeType||"rect",s.shapeArgs=t.crispCol.apply(t,s.isNull?[C,c,k,0]:[C,S,k,A])}))},getSymbol:t.noop,drawLegendSymbol:i.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(t,e){var i=this.options,s=this.pointAttrToOptions||{},r=s.stroke||"borderColor",o=s["stroke-width"]||"borderWidth",a=t&&t.color||this.color,l=t&&t[r]||i[r]||this.color||a,h=t&&t[o]||i[o]||this[o]||0;s=t&&t.options.dashStyle||i.dashStyle;var d=u(t&&t.opacity,i.opacity,1);if(t&&this.zones.length){var p=t.getZone();a=t.options.color||p&&(p.color||t.nonZonedColor)||this.color,p&&(l=p.borderColor||l,s=p.dashStyle||s,h=p.borderWidth||h)}return e&&t&&(e=(t=c(i.states[e],t.options.states&&t.options.states[e]||{})).brightness,a=t.color||void 0!==e&&n(a).brighten(t.brightness).get()||a,l=t[r]||l,h=t[o]||h,s=t.dashStyle||s,d=u(t.opacity,d)),r={fill:a,stroke:l,"stroke-width":h,opacity:d},s&&(r.dashstyle=s),r},drawPoints:function(){var t,e=this,i=this.chart,s=e.options,n=i.renderer,r=s.animationLimit||250;e.points.forEach((function(o){var a=o.graphic,l=!!a,u=a&&i.pointCount\u25cf
{series.name}
',pointFormat:"x: {point.x}
y: {point.y}
"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,drawGraph:function(){this.options.lineWidth&&s.prototype.drawGraph.call(this)},applyJitter:function(){var t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach((function(s,n){["x","y"].forEach((function(r,o){var a="plot"+r.toUpperCase();if(e[r]&&!s.isNull){var l=t[r+"Axis"],h=e[r]*l.transA;if(l&&!l.isLog){var c=Math.max(0,s[a]-h);l=Math.min(l.len,s[a]+h),o=1e4*Math.sin(n+o*i),s[a]=c+(l-c)*(o-Math.floor(o)),"x"===r&&(s.clientX=s.plotX)}}}))}))}}),i(s,"afterTranslate",(function(){this.applyJitter&&this.applyJitter()}))})),e(i,"Mixins/CenteredSeries.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e){var i=e.isNumber,s=e.pick,n=e.relativeLength,r=t.deg2rad;return t.CenteredSeriesMixin={getCenter:function(){var e=this.options,i=this.chart,r=2*(e.slicedOffset||0),o=i.plotWidth-2*r,a=i.plotHeight-2*r,l=e.center,h=Math.min(o,a),c=e.size,u=e.innerSize||0;for("string"==typeof c&&(c=parseFloat(c)),"string"==typeof u&&(u=parseFloat(u)),e=[s(l[0],"50%"),s(l[1],"50%"),s(c&&0>c?void 0:e.size,"100%"),s(u&&0>u?void 0:e.innerSize||0,"0%")],!i.angular||this instanceof t.Series||(e[3]=0),l=0;4>l;++l)c=e[l],i=2>l||2===l&&/%$/.test(c),e[l]=n(c,[o,a,h,e[2]][l])+(i?r:0);return e[3]>e[2]&&(e[3]=e[2]),e},getStartAndEndRadians:function(t,e){return t=i(t)?t:0,e=i(e)&&e>t&&360>e-t?e:t+360,{start:r*(t+-90),end:r*(e+-90)}}}})),e(i,"Series/PieSeries.js",[i["Core/Globals.js"],i["Core/Renderer/SVG/SVGRenderer.js"],i["Mixins/LegendSymbol.js"],i["Core/Series/Point.js"],i["Core/Utilities.js"],i["Mixins/CenteredSeries.js"]],(function(t,e,i,s,n,r){var o=n.addEvent,a=n.clamp,l=n.defined,h=n.fireEvent,c=n.isNumber,u=n.merge,d=n.pick,p=n.relativeLength,f=n.setAnimation,g=r.getStartAndEndRadians,m=t.Series;(0,n.seriesType)("pie","line",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,connectorShape:"fixedOffset",crookDistance:"70%",distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttribs:t.seriesTypes.column.prototype.pointAttribs,animate:function(t){var e=this,i=e.startAngleRad;t||e.points.forEach((function(t){var s=t.graphic,n=t.shapeArgs;s&&n&&(s.attr({r:d(t.startR,e.center&&e.center[3]/2),start:i,end:i}),s.animate({r:n.r,start:n.start,end:n.end},e.options.animation))}))},hasData:function(){return!!this.processedXData.length},updateTotals:function(){var t,e=0,i=this.points,s=i.length,n=this.options.ignoreHiddenPoint;for(t=0;t1.5*Math.PI?y-=2*Math.PI:y<-Math.PI/2&&(y+=2*Math.PI),f.slicedTranslation={translateX:Math.round(Math.cos(y)*s),translateY:Math.round(Math.sin(y)*s)};var v=Math.cos(y)*t[2]/2,b=Math.sin(y)*t[2]/2;f.tooltipPos=[t[0]+.7*v,t[1]+.7*b],f.half=y<-Math.PI/2||y>Math.PI/2?1:0,f.angle=y,m=Math.min(n,f.labelDistance/5),f.labelPosition={natural:{x:t[0]+v+Math.cos(y)*f.labelDistance,y:t[1]+b+Math.sin(y)*f.labelDistance},final:{},alignment:0>f.labelDistance?"center":f.half?"right":"left",connectorPosition:{breakAt:{x:t[0]+v+Math.cos(y)*m,y:t[1]+b+Math.sin(y)*m},touchingSliceAt:{x:t[0]+v,y:t[1]+b}}}}h(this,"afterTranslate")},drawEmpty:function(){var t=this.startAngleRad,i=this.endAngleRad,s=this.options;if(0===this.total&&this.center){var n=this.center[0],r=this.center[1];this.graph||(this.graph=this.chart.renderer.arc(n,r,this.center[1]/2,0,t,i).addClass("highcharts-empty-series").add(this.group)),this.graph.attr({d:e.prototype.symbols.arc(n,r,this.center[2]/2,0,{start:t,end:i,innerR:this.center[3]/2})}),this.chart.styledMode||this.graph.attr({"stroke-width":s.borderWidth,fill:s.fillColor||"none",stroke:s.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},redrawPoints:function(){var t,e,i,s,n=this,r=n.chart,o=r.renderer,a=n.options.shadow;this.drawEmpty(),!a||n.shadowGroup||r.styledMode||(n.shadowGroup=o.g("shadow").attr({zIndex:-1}).add(n.group)),n.points.forEach((function(l){var h={};if(e=l.graphic,!l.isNull&&e){if(s=l.shapeArgs,t=l.getTranslate(),!r.styledMode){var c=l.shadowGroup;a&&!c&&(c=l.shadowGroup=o.g("shadow").add(n.shadowGroup)),c&&c.attr(t),i=n.pointAttribs(l,l.selected&&"select")}l.delayedRendering?(e.setRadialReference(n.center).attr(s).attr(t),r.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}).shadow(a,c),l.delayedRendering=!1):(e.setRadialReference(n.center),r.styledMode||u(!0,h,i),u(!0,h,s,t),e.animate(h)),e.attr({visibility:l.visible?"inherit":"hidden"}),e.addClass(l.getClassName())}else e&&(l.graphic=e.destroy())}))},drawPoints:function(){var t=this.chart.renderer;this.points.forEach((function(e){e.graphic&&e.hasNewShapeType()&&(e.graphic=e.graphic.destroy()),e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)}))},searchPoint:n=t.noop,sortByAngle:function(t,e){t.sort((function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e}))},drawLegendSymbol:i.drawRectangle,getCenter:r.getCenter,getSymbol:n,drawGraph:null},{init:function(){s.prototype.init.apply(this,arguments);var t=this;t.name=d(t.name,"Slice");var e=function(e){t.slice("select"===e.type)};return o(t,"select",e),o(t,"unselect",e),t},isValid:function(){return c(this.y)&&0<=this.y},setVisible:function(t,e){var i=this,s=i.series,n=s.chart,r=s.options.ignoreHiddenPoint;e=d(e,r),t!==i.visible&&(i.visible=i.options.visible=t=void 0===t?!i.visible:t,s.options.data[s.data.indexOf(i)]=i.options,["graphic","dataLabel","connector","shadowGroup"].forEach((function(e){i[e]&&i[e][t?"show":"hide"](!0)})),i.legendItem&&n.legend.colorizeItem(i,t),t||"hover"!==i.state||i.setState(""),r&&(s.isDirty=!0),e&&n.redraw())},slice:function(t,e,i){var s=this.series;f(i,s.chart),d(e,!0),this.sliced=this.options.sliced=l(t)?t:!this.sliced,s.options.data[s.data.indexOf(this)]=this.options,this.graphic&&this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:e.r-1,start:e.start,end:e.end})},connectorShapes:{fixedOffset:function(t,e,i){var s=e.breakAt;return e=e.touchingSliceAt,[["M",t.x,t.y],i.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*s.x-e.x,2*s.y-e.y,s.x,s.y]:["L",s.x,s.y],["L",e.x,e.y]]},straight:function(t,e){return[["M",t.x,t.y],["L",(e=e.touchingSliceAt).x,e.y]]},crookedLine:function(t,e,i){e=e.touchingSliceAt;var s=this.series,n=s.center[0],r=s.chart.plotWidth,o=s.chart.plotLeft;s=t.alignment;var a=this.shapeArgs.r;return i=p(i.crookDistance,1),i=["L",r="left"===s?n+a+(r+o-n-a)*(1-i):o+(n-a)*i,t.y],n=!0,("left"===s?r>t.x||re.x)&&(n=!1),t=[["M",t.x,t.y]],n&&t.push(i),t.push(["L",e.x,e.y]),t}},getConnectorPath:function(){var t=this.labelPosition,e=this.series.options.dataLabels,i=e.connectorShape,s=this.connectorShapes;return s[i]&&(i=s[i]),i.call(this,{x:t.final.x,y:t.final.y,alignment:t.alignment},t.connectorPosition,e)}})})),e(i,"Core/Series/DataLabels.js",[i["Core/Globals.js"],i["Core/Utilities.js"]],(function(t,e){var i=t.noop,s=t.seriesTypes,n=e.arrayMax,r=e.clamp,o=e.defined,a=e.extend,l=e.fireEvent,h=e.format,c=e.getDeferredAnimation,u=e.isArray,d=e.merge,p=e.objectEach,f=e.pick,g=e.relativeLength,m=e.splat,y=e.stableSort,v=t.Series;t.distribute=function(e,i,s){function n(t,e){return t.target-e.target}var o,a=!0,l=e,h=[],c=0,u=l.reducedLen||i;for(o=e.length;o--;)c+=e[o].size;if(c>u){for(y(e,(function(t,e){return(e.rank||0)-(t.rank||0)})),c=o=0;c<=u;)c+=e[o].size,o++;h=e.splice(o-1,e.length)}for(y(e,n),e=e.map((function(t){return{size:t.size,targets:[t.target],align:f(t.align,.5)}}));a;){for(o=e.length;o--;)a=e[o],c=(Math.min.apply(0,a.targets)+Math.max.apply(0,a.targets))/2,a.pos=r(c-a.size*a.align,0,i-a.size);for(o=e.length,a=!1;o--;)0e[o].pos&&(e[o-1].size+=e[o].size,e[o-1].targets=e[o-1].targets.concat(e[o].targets),e[o-1].align=.5,e[o-1].pos+e[o-1].size>i&&(e[o-1].pos=i-e[o-1].size),e.splice(o,1),a=!0)}l.push.apply(l,h),o=0,e.some((function(e){var n=0;if(e.targets.some((function(){if(l[o].pos=e.pos+n,void 0!==s&&Math.abs(l[o].pos-l[o].target)>s)return l.slice(0,o+1).forEach((function(t){delete t.pos})),l.reducedLen=(l.reducedLen||i)-.1*i,l.reducedLen>.1*i&&t.distribute(l,i,s),!0;n+=l[o].size,o++})))return!0})),y(l,n)},v.prototype.drawDataLabels=function(){function t(t,e){var i,s=[];if(u(t)&&!u(e))s=t.map((function(t){return d(t,e)}));else if(u(e)&&!u(t))s=e.map((function(e){return d(t,e)}));else if(u(t)||u(e))for(i=Math.max(t.length,e.length);i--;)s[i]=d(t[i],e[i]);else s=d(t,e);return s}var e=this,i=e.chart,s=e.options,n=s.dataLabels,r=e.points,a=e.hasRendered||0,g=n.animation;g=n.defer?c(i,g,e):{defer:0,duration:0};var y=i.renderer;if(n=t(t(i.options.plotOptions&&i.options.plotOptions.series&&i.options.plotOptions.series.dataLabels,i.options.plotOptions&&i.options.plotOptions[e.type]&&i.options.plotOptions[e.type].dataLabels),n),l(this,"drawDataLabels"),u(n)||n.enabled||e._hasPointLabels){var v=e.plotGroup("dataLabelsGroup","data-labels",a?"inherit":"hidden",n.zIndex||6);v.attr({opacity:+a}),!a&&(a=e.dataLabelsGroup)&&(e.visible&&v.show(!0),a[s.animation?"animate":"attr"]({opacity:1},g)),r.forEach((function(r){m(t(n,r.dlOptions||r.options&&r.options.dataLabels)).forEach((function(t,n){var a=t.enabled&&(!r.isNull||r.dataLabelOnNull)&&function(t,e){var i=e.filter;return!i||(e=i.operator,t=t[i.property],i=i.value,">"===e&&t>i||"<"===e&&t="===e&&t>=i||"<="===e&&t<=i||"=="===e&&t==i||"==="===e&&t===i)}(r,t),l=r.dataLabels?r.dataLabels[n]:r.dataLabel,c=r.connectors?r.connectors[n]:r.connector,u=f(t.distance,r.labelDistance),d=!l;if(a){var g=r.getLabelConfig(),m=f(t[r.formatPrefix+"Format"],t.format);g=o(m)?h(m,g,i):(t[r.formatPrefix+"Formatter"]||t.formatter).call(g,t),m=t.style;var b=t.rotation;i.styledMode||(m.color=f(t.color,m.color,e.color,"#000000"),"contrast"===m.color?(r.contrastColor=y.getContrast(r.color||e.color),m.color=!o(u)&&t.inside||0>u||s.stacking?r.contrastColor:"#000000"):delete r.contrastColor,s.cursor&&(m.cursor=s.cursor));var x={r:t.borderRadius||0,rotation:b,padding:t.padding,zIndex:1};i.styledMode||(x.fill=t.backgroundColor,x.stroke=t.borderColor,x["stroke-width"]=t.borderWidth),p(x,(function(t,e){void 0===t&&delete x[e]}))}!l||a&&o(g)?a&&o(g)&&(l?x.text=g:(r.dataLabels=r.dataLabels||[],l=r.dataLabels[n]=b?y.text(g,0,-9999,t.useHTML).addClass("highcharts-data-label"):y.label(g,0,-9999,t.shape,null,null,t.useHTML,null,"data-label"),n||(r.dataLabel=l),l.addClass(" highcharts-data-label-color-"+r.colorIndex+" "+(t.className||"")+(t.useHTML?" highcharts-tracker":""))),l.options=t,l.attr(x),i.styledMode||l.css(m).shadow(t.shadow),l.added||l.add(v),t.textPath&&!t.useHTML&&(l.setTextPath(r.getDataLabelPath&&r.getDataLabelPath(l)||r.graphic,t.textPath),r.dataLabelPath&&!t.textPath.enabled&&(r.dataLabelPath=r.dataLabelPath.destroy())),e.alignDataLabel(r,l,t,null,d)):(r.dataLabel=r.dataLabel&&r.dataLabel.destroy(),r.dataLabels&&(1===r.dataLabels.length?delete r.dataLabels:delete r.dataLabels[n]),n||delete r.dataLabel,c&&(r.connector=r.connector.destroy(),r.connectors&&(1===r.connectors.length?delete r.connectors:delete r.connectors[n])))}))}))}l(this,"afterDrawDataLabels")},v.prototype.alignDataLabel=function(t,e,i,s,n){var r=this,o=this.chart,l=this.isCartesian&&o.inverted,h=this.enabledDataSorting,c=f(t.dlBox&&t.dlBox.centerX,t.plotX,-9999),u=f(t.plotY,-9999),d=e.getBBox(),p=i.rotation,g=i.align,m=o.isInsidePlot(c,Math.round(u),l),y="justify"===f(i.overflow,h?"none":"justify"),v=this.visible&&!1!==t.visible&&(t.series.forceDL||h&&!y||m||i.inside&&s&&o.isInsidePlot(c,l?s.x+1:s.y+s.height-1,l)),b=function(i){h&&r.xAxis&&!y&&r.setDataLabelStartPos(t,e,n,m,i)};if(v){var x=o.renderer.fontMetrics(o.styledMode?void 0:i.style.fontSize,e).b;s=a({x:l?this.yAxis.len-u:c,y:Math.round(l?this.xAxis.len-c:u),width:0,height:0},s),a(i,{width:d.width,height:d.height}),p?(y=!1,c=o.renderer.rotCorr(x,p),b(c={x:s.x+(i.x||0)+s.width/2+c.x,y:s.y+(i.y||0)+{top:0,middle:.5,bottom:1}[i.verticalAlign]*s.height}),e[n?"attr":"animate"](c).attr({align:g}),b=180<(b=(p+720)%360)&&360>b,"left"===g?c.y-=b?d.height:0:"center"===g?(c.x-=d.width/2,c.y-=d.height/2):"right"===g&&(c.x-=d.width,c.y-=b?0:d.height),e.placed=!0,e.alignAttr=c):(b(s),e.align(i,null,s),c=e.alignAttr),y&&0<=s.height?this.justifyDataLabel(e,i,c,d,s,n):f(i.crop,!0)&&(v=o.isInsidePlot(c.x,c.y)&&o.isInsidePlot(c.x+d.width,c.y+d.height)),i.shape&&!p&&e[n?"attr":"animate"]({anchorX:l?o.plotWidth-t.plotY:t.plotX,anchorY:l?o.plotHeight-t.plotX:t.plotY})}n&&h&&(e.placed=!1),v||h&&!y||(e.hide(!0),e.placed=!1)},v.prototype.setDataLabelStartPos=function(t,e,i,s,n){var r=this.chart,o=r.inverted,a=this.xAxis,l=a.reversed,h=o?e.height/2:e.width/2;t=(t=t.pointWidth)?t/2:0,a=o?n.x:l?-h-t:a.width-h+t,n=o?l?this.yAxis.height-h+t:-h-t:n.y,e.startXPos=a,e.startYPos=n,s?"hidden"===e.visibility&&(e.show(),e.attr({opacity:0}).animate({opacity:1})):e.attr({opacity:1}).animate({opacity:0},void 0,e.hide),r.hasRendered&&(i&&e.attr({x:e.startXPos,y:e.startYPos}),e.placed=!0)},v.prototype.justifyDataLabel=function(t,e,i,s,n,r){var o=this.chart,a=e.align,l=e.verticalAlign,h=t.box?0:t.padding||0,c=e.x;c=void 0===c?0:c;var u=e.y,d=void 0===u?0:u;if(0>(u=i.x+h)){"right"===a&&0<=c?(e.align="left",e.inside=!0):c-=u;var p=!0}return(u=i.x+s.width-h)>o.plotWidth&&("left"===a&&0>=c?(e.align="right",e.inside=!0):c+=o.plotWidth-u,p=!0),0>(u=i.y+h)&&("bottom"===l&&0<=d?(e.verticalAlign="top",e.inside=!0):d-=u,p=!0),(u=i.y+s.height-h)>o.plotHeight&&("top"===l&&0>=d?(e.verticalAlign="bottom",e.inside=!0):d+=o.plotHeight-u,p=!0),p&&(e.x=c,e.y=d,t.placed=!r,t.align(e,void 0,n)),p},s.pie&&(s.pie.prototype.dataLabelPositioners={radialDistributionY:function(t){return t.top+t.distributeBox.pos},radialDistributionX:function(t,e,i,s){return t.getX(ie.bottom-2?s:i,e.half,e)},justify:function(t,e,i){return i[0]+(t.half?-1:1)*(e+t.labelDistance)},alignToPlotEdges:function(t,e,i,s){return t=t.getBBox().width,e?t+s:i-t-s},alignToConnectors:function(t,e,i,s){var n,r=0;return t.forEach((function(t){(n=t.dataLabel.getBBox().width)>r&&(r=n)})),e?r+s:i-r-s}},s.pie.prototype.drawDataLabels=function(){var e,i,s,r,a,l,h,c,u,p,g,m,y=this,b=y.data,x=y.chart,_=y.options.dataLabels||{},w=_.connectorPadding,C=x.plotWidth,k=x.plotHeight,S=x.plotLeft,A=Math.round(x.chartWidth/3),E=y.center,M=E[2]/2,T=E[1],D=[[],[]],P=[0,0,0,0],O=y.dataLabelPositioners;y.visible&&(_.enabled||y._hasPointLabels)&&(b.forEach((function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)})),v.prototype.drawDataLabels.apply(y),b.forEach((function(t){t.dataLabel&&(t.visible?(D[t.half].push(t),t.dataLabel._pos=null,!o(_.style.width)&&!o(t.options.dataLabels&&t.options.dataLabels.style&&t.options.dataLabels.style.width)&&t.dataLabel.getBBox().width>A&&(t.dataLabel.css({width:Math.round(.7*A)+"px"}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))})),D.forEach((function(i,s){var n,d=i.length,v=[];if(d){if(y.sortByAngle(i,s-.5),0C-w&&0===s&&(b=Math.round(c+a-C+w),P[1]=Math.max(b,P[1])),0>u-h/2?P[0]=Math.max(Math.round(h/2-u),P[0]):u+h/2>k&&(P[2]=Math.max(Math.round(u+h/2-k),P[2])),r.sideOverflow=b)}}})),0===n(P)||this.verifyDataLabelOverflow(P))&&(this.placeDataLabels(),this.points.forEach((function(t){var e;m=d(_,t.options.dataLabels),(i=f(m.connectorWidth,1))&&(s=t.connector,(r=t.dataLabel)&&r._pos&&t.visible&&0f(this.translatedThreshold,o.yAxis.len)),h=f(i.inside,!!this.options.stacking);a&&(0>(s=d(a)).y&&(s.height+=s.y,s.y=0),0<(a=s.y+s.height-o.yAxis.len)&&a=u.x+u.width||d.x+d.width<=u.x||d.y>=u.y+u.height||d.y+d.height<=u.y||((c.labelrank=a&&r<=(i.inverted?a+o.width:a+o.height)||l||!c(r))&&(h=!0),s[l?"zoomX":"zoomY"]&&h&&(e=o.zoom(t.min,t.max),o.displayBtn&&(n=!0))}));var o=i.resetZoomButton;n&&!o?i.showResetZoom():!n&&m(o)&&(i.resetZoomButton=o.destroy()),e&&i.redraw(b(i.options.chart.animation,t&&t.animation,100>i.pointCount))},pan:function(t,i){var s,n=this,r=n.hoverPoints,o=n.options.chart,a=n.options.mapNavigation&&n.options.mapNavigation.enabled;i="object"==typeof i?i:{enabled:i,type:"x"},o&&o.panning&&(o.panning=i);var l=i.type;d(this,"pan",{originalEvent:t},(function(){r&&r.forEach((function(t){t.setState()}));var i=[1];"xy"===l?i=[1,0]:"y"===l&&(i=[0]),i.forEach((function(i){var r=n[i?"xAxis":"yAxis"][0],o=r.horiz,h=t[o?"chartX":"chartY"],c=n[o=o?"mouseDownX":"mouseDownY"],u=(r.pointRange||0)/2,d=r.reversed&&!n.inverted||!r.reversed&&n.inverted?-1:1,p=r.getExtremes(),f=r.toValue(c-h,!0)+u*d,m=(d=r.toValue(c+r.len-h,!0)-u*d)=d&&f<=u&&(r.setExtremes(c,f,!1,!1,{trigger:"pan"}),n.resetZoomButton||a||c===d||f===u||!l.match("y")||(n.showResetZoom(),r.displayBtn=!1),s=!0),n[o]=h)})),s&&n.redraw(!1),h(n.container,{cursor:"move"})}))}}),u(n.prototype,{select:function(t,e){var i=this,s=i.series,n=s.chart;this.selectedStaging=t=b(t,!i.selected),i.firePointEvent(t?"select":"unselect",{accumulate:e},(function(){i.selected=i.options.selected=t,s.options.data[s.data.indexOf(i)]=i.options,i.setState(t&&"select"),e||n.getSelectedPoints().forEach((function(t){var e=t.series;t.selected&&t!==i&&(t.selected=t.options.selected=!1,e.options.data[e.data.indexOf(t)]=t.options,t.setState(n.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))}))})),delete this.selectedStaging},onMouseOver:function(t){var e=this.series.chart,i=e.pointer;t=t?i.normalize(t):i.getChartCoordinatesFromPoint(this,e.inverted),i.runPointActions(t,this)},onMouseOut:function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach((function(t){t.setState()})),t.hoverPoints=t.hoverPoint=null},importEvents:function(){if(!this.hasImportedEvents){var t=this,e=y(t.series.options.point,t.options).events;t.events=e,v(e,(function(e,i){f(e)&&a(t,i,e)})),this.hasImportedEvents=!0}},setState:function(t,e){var i,s=this.series,n=this.state,r=s.options.states[t||"normal"]||{},a=o.plotOptions[s.type].marker&&s.options.marker,l=a&&a.states&&a.states[t||"normal"]||{},h=s.stateMarkerGraphic,c=this.marker||{},p=s.chart,f=s.halo,g=a&&s.markerAttribs;if(!((t=t||"")===this.state&&!e||this.selected&&"select"!==t||!1===r.enabled||t&&(!1===l.enabled||a&&!1===a.enabled&&!1===l.enabled)||t&&c.states&&c.states[t]&&!1===c.states[t].enabled)){if(this.state=t,g&&(i=s.markerAttribs(this,t)),this.graphic){if(n&&this.graphic.removeClass("highcharts-point-"+n),t&&this.graphic.addClass("highcharts-point-"+t),!p.styledMode){var m=s.pointAttribs(this,t),y=b(p.options.chart.animation,r.animation);s.options.inactiveOtherPoints&&m.opacity&&((this.dataLabels||[]).forEach((function(t){t&&t.animate({opacity:m.opacity},y)})),this.connector&&this.connector.animate({opacity:m.opacity},y)),this.graphic.animate(m,y)}i&&this.graphic.animate(i,b(p.options.chart.animation,l.animation,a.animation)),h&&h.hide()}else t&&l&&(n=c.symbol||s.symbol,h&&h.currentSymbol!==n&&(h=h.destroy()),i&&(h?h[e?"animate":"attr"]({x:i.x,y:i.y}):n&&(s.stateMarkerGraphic=h=p.renderer.symbol(n,i.x,i.y,i.width,i.height).add(s.markerGroup),h.currentSymbol=n)),!p.styledMode&&h&&h.attr(s.pointAttribs(this,t))),h&&(h[t&&this.isInside?"show":"hide"](),h.element.point=this);t=r.halo,r=(h=this.graphic||h)&&h.visibility||"inherit",t&&t.size&&h&&"hidden"!==r&&!this.isCluster?(f||(s.halo=f=p.renderer.path().add(h.parentGroup)),f.show()[e?"animate":"attr"]({d:this.haloPath(t.size)}),f.attr({class:"highcharts-halo highcharts-color-"+b(this.colorIndex,s.colorIndex)+(this.className?" "+this.className:""),visibility:r,zIndex:-1}),f.point=this,p.styledMode||f.attr(u({fill:this.color||s.color,"fill-opacity":t.opacity},t.attributes))):f&&f.point&&f.point.haloPath&&f.animate({d:f.point.haloPath(0)},null,f.hide),d(this,"afterSetState")}},haloPath:function(t){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-t,this.plotY-t,2*t,2*t)}}),u(s.prototype,{onMouseOver:function(){var t=this.chart,e=t.hoverSeries;t.pointer.setHoverChartIndex(),e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&d(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},onMouseOut:function(){var t=this.options,e=this.chart,i=e.tooltip,s=e.hoverPoint;e.hoverSeries=null,s&&s.onMouseOut(),this&&t.events.mouseOut&&d(this,"mouseOut"),!i||this.stickyTracking||i.shared&&!this.noSharedTooltip||i.hide(),e.series.forEach((function(t){t.setState("",!0)}))},setState:function(t,e){var i=this,s=i.options,n=i.graph,r=s.inactiveOtherPoints,o=s.states,a=s.lineWidth,l=s.opacity,h=b(o[t||"normal"]&&o[t||"normal"].animation,i.chart.options.chart.animation);if(s=0,i.state!==(t=t||"")&&([i.group,i.markerGroup,i.dataLabelsGroup].forEach((function(e){e&&(i.state&&e.removeClass("highcharts-series-"+i.state),t&&e.addClass("highcharts-series-"+t))})),i.state=t,!i.chart.styledMode)){if(o[t]&&!1===o[t].enabled)return;if(t&&(a=o[t].lineWidth||a+(o[t].lineWidthPlus||0),l=b(o[t].opacity,l)),n&&!n.dashstyle)for(n.animate(o={"stroke-width":a},h);i["zone-graph-"+s];)i["zone-graph-"+s].attr(o),s+=1;r||[i.group,i.markerGroup,i.dataLabelsGroup,i.labelBySeries].forEach((function(t){t&&t.animate({opacity:l},h)}))}e&&r&&i.points&&i.setAllPointsToState(t)},setAllPointsToState:function(t){this.points.forEach((function(e){e.setState&&e.setState(t)}))},setVisible:function(t,e){var i=this,s=i.chart,n=i.legendItem,r=s.options.chart.ignoreHiddenSeries,o=(i.visible=t=i.options.visible=i.userOptions.visible=void 0===t?!i.visible:t)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach((function(t){i[t]&&i[t][o]()})),s.hoverSeries!==i&&(s.hoverPoint&&s.hoverPoint.series)!==i||i.onMouseOut(),n&&s.legend.colorizeItem(i,t),i.isDirty=!0,i.options.stacking&&s.series.forEach((function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)})),i.linkedSeries.forEach((function(e){e.setVisible(t,!1)})),r&&(s.isDirtyBox=!0),d(i,o),!1!==e&&s.redraw()},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),d(this,t?"select":"unselect")},drawTracker:w.drawTrackerGraph})})),e(i,"Core/Responsive.js",[i["Core/Chart/Chart.js"],i["Core/Utilities.js"]],(function(t,e){var i=e.find,s=e.isArray,n=e.isObject,r=e.merge,o=e.objectEach,a=e.pick,l=e.splat,h=e.uniqueKey;t.prototype.setResponsive=function(t,e){var s=this.options.responsive,n=[],o=this.currentResponsive;!e&&s&&s.rules&&s.rules.forEach((function(t){void 0===t._id&&(t._id=h()),this.matchResponsiveRule(t,n)}),this),(e=r.apply(0,n.map((function(t){return i(s.rules,(function(e){return e._id===t})).chartOptions})))).isResponsiveOptions=!0,(n=n.toString()||void 0)!==(o&&o.ruleIds)&&(o&&this.update(o.undoOptions,t,!0),n?((o=this.currentOptions(e)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:n,mergedOptions:e,undoOptions:o},this.update(e,t,!0)):this.currentResponsive=void 0)},t.prototype.matchResponsiveRule=function(t,e){var i=t.condition;(i.callback||function(){return this.chartWidth<=a(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=a(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=a(i.minWidth,0)&&this.chartHeight>=a(i.minHeight,0)}).call(this)&&e.push(t._id)},t.prototype.currentOptions=function(t){var e=this,i={};return function t(i,r,a,h){var c;o(i,(function(i,o){if(!h&&-1u?t[r]:t[r][u],r++;for(e=r;eu?t[e]:t[e][u])/i];l.push(d),h.push(d[0]),c.push(d[1]),a-=0>u?t[e-r]:t[e-r][u]}return{values:l,xData:h,yData:c}}},destroy:function(){this.dataEventsToUnbind.forEach((function(t){t()})),c.prototype.destroy.apply(this,arguments)}})})),e(t,"masters/indicators/indicators.src.js",[],(function(){}))},t.exports?(r.default=r,t.exports=r):(s=[i("6n/F"),i("N9ju")],void 0===(n=(function(t){return r(t),r.Highcharts=t,r}).apply(e,s))||(t.exports=n))},N9ju:function(t,e,i){var s,n,r;r=function(t){function e(t,e,i,s){t.hasOwnProperty(e)||(t[e]=s.apply(null,i))}e(t=t?t._modules:{},"Core/Axis/NavigatorAxis.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],(function(t,e){var i=t.isTouchDevice,s=e.addEvent,n=e.correctFloat,r=e.defined,o=e.isNumber,a=e.pick,l=function(){function t(t){this.axis=t}return t.prototype.destroy=function(){this.axis=void 0},t.prototype.toFixedRange=function(t,e,i,s){var l=this.axis,h=l.chart;h=h&&h.fixedRange;var c=(l.pointRange||0)/2;return t=a(i,l.translate(t,!0,!l.horiz)),e=a(s,l.translate(e,!0,!l.horiz)),l=h&&(e-t)/h,r(i)||(t=n(t+c)),r(s)||(e=n(e-c)),.7l&&(s?t=e-h:e=t+h),o(t)&&o(e)||(t=e=void 0),{min:t,max:e}},t}();return function(){function t(){}return t.compose=function(t){t.keepProps.push("navigatorAxis"),s(t,"init",(function(){this.navigatorAxis||(this.navigatorAxis=new l(this))})),s(t,"zoom",(function(t){var e=this.chart.options,s=e.navigator,n=this.navigatorAxis,o=e.chart.pinchType,a=e.rangeSelector;e=e.chart.zoomType,this.isXAxis&&(s&&s.enabled||a&&a.enabled)&&("y"===e?t.zoomed=!1:(!i&&"xy"===e||i&&"xy"===o)&&this.options.range&&(s=n.previousZoom,r(t.newMin)?n.previousZoom=[this.min,this.max]:s&&(t.newMin=s[0],t.newMax=s[1],n.previousZoom=void 0))),void 0!==t.zoomed&&t.preventDefault()}))},t.AdditionsClass=l,t}()})),e(t,"Core/Axis/ScrollbarAxis.js",[t["Core/Globals.js"],t["Core/Utilities.js"]],(function(t,e){var i=e.addEvent,s=e.defined,n=e.pick;return function(){function e(){}return e.compose=function(e,r){i(e,"afterInit",(function(){var e=this;e.options&&e.options.scrollbar&&e.options.scrollbar.enabled&&(e.options.scrollbar.vertical=!e.horiz,e.options.startOnTick=e.options.endOnTick=!1,e.scrollbar=new r(e.chart.renderer,e.options.scrollbar,e.chart),i(e.scrollbar,"changed",(function(i){var r=n(e.options&&e.options.min,e.min),o=n(e.options&&e.options.max,e.max),a=s(e.dataMin)?Math.min(r,e.min,e.dataMin):r,l=(s(e.dataMax)?Math.max(o,e.max,e.dataMax):o)-a;s(r)&&s(o)&&(e.horiz&&!e.reversed||!e.horiz&&e.reversed?(r=a+l*this.to,a+=l*this.from):(r=a+l*(1-this.from),a+=l*(1-this.to)),n(this.options.liveRedraw,t.svg&&!t.isTouchDevice&&!this.chart.isBoosting)||"mouseup"===i.DOMType||!s(i.DOMType)?e.setExtremes(a,r,!0,"mousemove"!==i.DOMType,i):this.setRange(this.from,this.to))})))})),i(e,"afterRender",(function(){var t=Math.min(n(this.options.min,this.min),this.min,n(this.dataMin,this.min)),e=Math.max(n(this.options.max,this.max),this.max,n(this.dataMax,this.max)),i=this.scrollbar,r=this.axisTitleMargin+(this.titleOffset||0),o=this.chart.scrollbarsOffsets,a=this.options.margin||0;i&&(this.horiz?(this.opposite||(o[1]+=r),i.position(this.left,this.top+this.height+2+o[1]-(this.opposite?a:0),this.width,this.height),this.opposite||(o[1]+=a),r=1):(this.opposite&&(o[0]+=r),i.position(this.left+this.width+2+o[0]-(this.opposite?0:a),this.top,this.width,this.height),this.opposite&&(o[0]+=a),r=0),o[r]+=i.size+i.options.margin,isNaN(t)||isNaN(e)||!s(this.min)||!s(this.max)||this.min===this.max?i.setRange(0,1):(o=(this.min-t)/(e-t),t=(this.max-t)/(e-t),this.horiz&&!this.reversed||!this.horiz&&this.reversed?i.setRange(o,t):i.setRange(1-t,1-o)))})),i(e,"afterGetOffset",(function(){var t=this.horiz?2:1,e=this.scrollbar;e&&(this.chart.scrollbarsOffsets=[0,0],this.chart.axisOffset[t]+=e.size+e.options.margin)}))},e}()})),e(t,"Core/Scrollbar.js",[t["Core/Axis/Axis.js"],t["Core/Globals.js"],t["Core/Axis/ScrollbarAxis.js"],t["Core/Utilities.js"],t["Core/Options.js"]],(function(t,e,i,s,n){var r=s.addEvent,o=s.correctFloat,a=s.defined,l=s.destroyObjectProperties,h=s.fireEvent,c=s.merge,u=s.pick,d=s.removeEvent;s=n.defaultOptions;var p=e.hasTouch,f=e.isTouchDevice,g=e.swapXY=function(t,e){return e&&t.forEach((function(t){for(var e,i=t.length,s=0;sthis.calculatedWidth?e.minWidth:0)),chartY:(t.chartY-this.y-this.yOffset)/(this.barWidth-e)}},t.prototype.destroy=function(){var t=this.chart.scroller;this.removeEvents(),["track","scrollbarRifles","scrollbar","scrollbarGroup","group"].forEach((function(t){this[t]&&this[t].destroy&&(this[t]=this[t].destroy())}),this),t&&this===t.scrollbar&&(t.scrollbar=null,l(t.scrollbarButtons))},t.prototype.drawScrollbarButton=function(t){var e=this.renderer,i=this.scrollbarButtons,s=this.options,n=this.size,r=e.g().add(this.group);i.push(r),r=e.rect().addClass("highcharts-scrollbar-button").add(r),this.chart.styledMode||r.attr({stroke:s.buttonBorderColor,"stroke-width":s.buttonBorderWidth,fill:s.buttonBackgroundColor}),r.attr(r.crisp({x:-.5,y:-.5,width:n+1,height:n+1,r:s.buttonBorderRadius},r.strokeWidth())),r=e.path(g([["M",n/2+(t?-1:1),n/2-3],["L",n/2+(t?-1:1),n/2+3],["L",n/2+(t?2:-2),n/2]],s.vertical)).addClass("highcharts-scrollbar-arrow").add(i[t]),this.chart.styledMode||r.attr({fill:s.buttonArrowColor})},t.prototype.init=function(e,i,s){this.scrollbarButtons=[],this.renderer=e,this.userOptions=i,this.options=c(t.defaultOptions,i),this.chart=s,this.size=u(this.options.size,this.options.height),i.enabled&&(this.render(),this.addEvents())},t.prototype.mouseDownHandler=function(t){t=this.chart.pointer.normalize(t),t=this.cursorToScrollbarPosition(t),this.chartX=t.chartX,this.chartY=t.chartY,this.initPositions=[this.from,this.to],this.grabbedCenter=!0},t.prototype.mouseMoveHandler=function(t){var e=this.chart.pointer.normalize(t),i=this.options.vertical?"chartY":"chartX",s=this.initPositions||[];!this.grabbedCenter||t.touches&&0===t.touches[0][i]||(i=(e=this.cursorToScrollbarPosition(e)[i])-(i=this[i]),this.hasDragged=!0,this.updatePosition(s[0]+i,s[1]+i),this.hasDragged&&h(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}))},t.prototype.mouseUpHandler=function(t){this.hasDragged&&h(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMType:t.type,DOMEvent:t}),this.grabbedCenter=this.hasDragged=this.chartX=this.chartY=null},t.prototype.position=function(t,e,i,s){var n=this.options.vertical,r=0,o=this.rendered?"animate":"attr";this.x=t,this.y=e+this.trackBorderWidth,this.width=i,this.xOffset=this.height=s,this.yOffset=r,n?(this.width=this.yOffset=i=r=this.size,this.xOffset=e=0,this.barWidth=s-2*i,this.x=t+=this.options.margin):(this.height=this.xOffset=s=e=this.size,this.barWidth=i-2*s,this.y+=this.options.margin),this.group[o]({translateX:t,translateY:this.y}),this.track[o]({width:i,height:s}),this.scrollbarButtons[1][o]({translateX:n?0:i-e,translateY:n?s-r:0})},t.prototype.removeEvents=function(){this._events.forEach((function(t){d.apply(null,t)})),this._events.length=0},t.prototype.render=function(){var t,e=this.renderer,i=this.options,s=this.size,n=this.chart.styledMode;this.group=t=e.g("scrollbar").attr({zIndex:i.zIndex,translateY:-99999}).add(),this.track=e.rect().addClass("highcharts-scrollbar-track").attr({x:0,r:i.trackBorderRadius||0,height:s,width:s}).add(t),n||this.track.attr({fill:i.trackBackgroundColor,stroke:i.trackBorderColor,"stroke-width":i.trackBorderWidth}),this.trackBorderWidth=this.track.strokeWidth(),this.track.attr({y:-this.trackBorderWidth%2/2}),this.scrollbarGroup=e.g().add(t),this.scrollbar=e.rect().addClass("highcharts-scrollbar-thumb").attr({height:s,width:s,r:i.barBorderRadius||0}).add(this.scrollbarGroup),this.scrollbarRifles=e.path(g([["M",-3,s/4],["L",-3,2*s/3],["M",0,s/4],["L",0,2*s/3],["M",3,s/4],["L",3,2*s/3]],i.vertical)).addClass("highcharts-scrollbar-rifles").add(this.scrollbarGroup),n||(this.scrollbar.attr({fill:i.barBackgroundColor,stroke:i.barBorderColor,"stroke-width":i.barBorderWidth}),this.scrollbarRifles.attr({stroke:i.rifleColor,"stroke-width":1})),this.scrollbarStrokeWidth=this.scrollbar.strokeWidth(),this.scrollbarGroup.translate(-this.scrollbarStrokeWidth%2/2,-this.scrollbarStrokeWidth%2/2),this.drawScrollbarButton(0),this.drawScrollbarButton(1)},t.prototype.setRange=function(t,e){var i,s=this.options,n=s.vertical,r=s.minWidth,l=this.barWidth,h=!this.rendered||this.hasDragged||this.chart.navigator&&this.chart.navigator.hasDragged?"attr":"animate";if(a(l)){t=Math.max(t,0);var c=Math.ceil(l*t);this.calculatedWidth=i=o(l*Math.min(e,1)-c),i=i?this.scrollbarRifles.hide():this.scrollbarRifles.show(!0),!1===s.showFull&&(0>=t&&1<=e?this.group.hide():this.group.show()),this.rendered=!0}},t.prototype.trackClick=function(t){var e=this.chart.pointer.normalize(t),i=this.to-this.from;this.options.vertical&&e.chartY>this.y+this.scrollbarTop||!this.options.vertical&&e.chartX>this.x+this.scrollbarLeft?this.updatePosition(this.from+i,this.to+i):this.updatePosition(this.from-i,this.to-i),h(this,"changed",{from:this.from,to:this.to,trigger:"scrollbar",DOMEvent:t})},t.prototype.update=function(t){this.destroy(),this.init(this.chart.renderer,c(!0,this.options,t),this.chart)},t.prototype.updatePosition=function(t,e){1t&&(e=o(e-t),t=0),this.from=t,this.to=e},t.defaultOptions={height:f?20:14,barBorderRadius:0,buttonBorderRadius:0,liveRedraw:void 0,margin:10,minWidth:6,step:.2,zIndex:3,barBackgroundColor:"#cccccc",barBorderWidth:1,barBorderColor:"#cccccc",buttonArrowColor:"#333333",buttonBackgroundColor:"#e6e6e6",buttonBorderColor:"#cccccc",buttonBorderWidth:1,rifleColor:"#333333",trackBackgroundColor:"#f2f2f2",trackBorderColor:"#f2f2f2",trackBorderWidth:1},t}(),e.Scrollbar||(s.scrollbar=c(!0,n.defaultOptions,s.scrollbar),e.Scrollbar=n,i.compose(t,n)),e.Scrollbar})),e(t,"Core/Navigator.js",[t["Core/Axis/Axis.js"],t["Core/Chart/Chart.js"],t["Core/Color.js"],t["Core/Globals.js"],t["Core/Axis/NavigatorAxis.js"],t["Core/Options.js"],t["Core/Scrollbar.js"],t["Core/Utilities.js"]],(function(t,e,i,s,n,r,o,a){var l=r.defaultOptions,h=a.addEvent,c=a.clamp,u=a.correctFloat,d=a.defined,p=a.destroyObjectProperties,f=a.erase,g=a.extend,m=a.find,y=a.isArray,v=a.isNumber,b=a.merge,x=a.pick,_=a.removeEvent,w=a.splat,C=s.hasTouch,k=s.isTouchDevice;r=s.Series;var S=function(t){for(var e=[],i=1;ib&&(this.grabbedLeft?i=l.toPixels(e-b-h,!0):this.grabbedRight&&(s=l.toPixels(t+b+h,!0))),this.zoomedMax=c(Math.max(i,s),0,r),this.zoomedMin=c(this.fixedWidth?this.zoomedMax-this.fixedWidth:Math.min(i,s),0,r),this.range=this.zoomedMax-this.zoomedMin,r=Math.round(this.zoomedMax),i=Math.round(this.zoomedMin),f&&(this.navigatorGroup.attr({visibility:"visible"}),this.drawMasks(i,r,m,g=g&&!this.hasDragged?"animate":"attr"),this.drawOutline(i,r,m,g),this.navigatorOptions.handles.enabled&&(this.drawHandle(i,0,m,g),this.drawHandle(r,1,m,g))),this.scrollbar&&(m?(m=this.top-a,p=this.left-a+(f||!p.opposite?0:(p.titleOffset||0)+p.axisTitleMargin),a=n+2*a):(m=this.top+(f?this.height:-a),p=this.left-a),this.scrollbar.position(p,m,o,a),this.scrollbar.setRange(this.zoomedMin/(n||1),this.zoomedMax/(n||1))),this.rendered=!0}},e.prototype.addMouseEvents=function(){var t,e,i=this,s=i.chart,n=s.container,r=[];i.mouseMoveHandler=t=function(t){i.onMouseMove(t)},i.mouseUpHandler=e=function(t){i.onMouseUp(t)},(r=i.getPartsEvents("mousedown")).push(h(s.renderTo,"mousemove",t),h(n.ownerDocument,"mouseup",e)),C&&(r.push(h(s.renderTo,"touchmove",t),h(n.ownerDocument,"touchend",e)),r.concat(i.getPartsEvents("touchstart"))),i.eventsToUnbind=r,i.series&&i.series[0]&&r.push(h(i.series[0].xAxis,"foundExtremes",(function(){s.navigator.modifyNavigatorAxisExtremes()})))},e.prototype.getPartsEvents=function(t){var e=this,i=[];return["shades","handles"].forEach((function(s){e[s].forEach((function(n,r){i.push(h(n.element,t,(function(t){e[s+"Mousedown"](t,r)})))}))})),i},e.prototype.shadesMousedown=function(t,e){t=this.chart.pointer.normalize(t);var i=this.chart,s=this.xAxis,n=this.zoomedMin,r=this.left,o=this.size,a=this.range,l=t.chartX;if(i.inverted&&(l=t.chartY,r=this.top),1===e)this.grabbedCenter=l,this.fixedWidth=a,this.dragOffset=l-n;else{if(t=l-r-a/2,0===e)t=Math.max(0,t);else if(2===e&&t+a>=o)if(t=o-a,this.reversedExtremes){t-=a;var h=this.getUnionExtremes().dataMin}else var c=this.getUnionExtremes().dataMax;t!==n&&(this.fixedWidth=a,e=s.navigatorAxis.toFixedRange(t,t+a,h,c),d(e.min)&&i.xAxis[0].setExtremes(Math.min(e.min,e.max),Math.max(e.min,e.max),!0,null,{trigger:"navigator"}))}},e.prototype.handlesMousedown=function(t,e){this.chart.pointer.normalize(t);var i=(t=this.chart).xAxis[0],s=this.reversedExtremes;0===e?(this.grabbedLeft=!0,this.otherHandlePos=this.zoomedMax,this.fixedExtreme=s?i.min:i.max):(this.grabbedRight=!0,this.otherHandlePos=this.zoomedMin,this.fixedExtreme=s?i.max:i.min),t.fixedRange=null},e.prototype.onMouseMove=function(t){var e=this,i=e.chart,n=e.left,r=e.navigatorSize,o=e.range,a=e.dragOffset,l=i.inverted;t.touches&&0===t.touches[0].pageX||(t=i.pointer.normalize(t),i=t.chartX,l&&(n=e.top,i=t.chartY),e.grabbedLeft?(e.hasDragged=!0,e.render(0,0,i-n,e.otherHandlePos)):e.grabbedRight?(e.hasDragged=!0,e.render(0,0,e.otherHandlePos,i-n)):e.grabbedCenter&&(e.hasDragged=!0,ir+a-o&&(i=r+a-o),e.render(0,0,i-a,i-a+o)),e.hasDragged&&e.scrollbar&&x(e.scrollbar.options.liveRedraw,s.svg&&!k&&!this.chart.isBoosting)&&(t.DOMType=t.type,setTimeout((function(){e.onMouseUp(t)}),0)))},e.prototype.onMouseUp=function(t){var e=this.chart,i=this.xAxis,s=this.scrollbar,n=t.DOMEvent||t,r=e.inverted,o=this.rendered&&!this.hasDragged?"animate":"attr";if(this.hasDragged&&(!s||!s.hasDragged)||"scrollbar"===t.trigger){if(s=this.getUnionExtremes(),this.zoomedMin===this.otherHandlePos)var a=this.fixedExtreme;else if(this.zoomedMax===this.otherHandlePos)var l=this.fixedExtreme;this.zoomedMax===this.size&&(l=this.reversedExtremes?s.dataMin:s.dataMax),0===this.zoomedMin&&(a=this.reversedExtremes?s.dataMax:s.dataMin),i=i.navigatorAxis.toFixedRange(this.zoomedMin,this.zoomedMax,a,l),d(i.min)&&e.xAxis[0].setExtremes(Math.min(i.min,i.max),Math.max(i.min,i.max),!0,!this.hasDragged&&null,{trigger:"navigator",triggerOp:"navigator-drag",DOMEvent:n})}"mousemove"!==t.DOMType&&"touchmove"!==t.DOMType&&(this.grabbedLeft=this.grabbedRight=this.grabbedCenter=this.fixedWidth=this.fixedExtreme=this.otherHandlePos=this.hasDragged=this.dragOffset=null),this.navigatorEnabled&&v(this.zoomedMin)&&v(this.zoomedMax)&&(e=Math.round(this.zoomedMin),t=Math.round(this.zoomedMax),this.shades&&this.drawMasks(e,t,r,o),this.outline&&this.drawOutline(e,t,r,o),this.navigatorOptions.handles.enabled&&Object.keys(this.handles).length===this.handles.length&&(this.drawHandle(e,0,r,o),this.drawHandle(t,1,r,o)))},e.prototype.removeEvents=function(){this.eventsToUnbind&&(this.eventsToUnbind.forEach((function(t){t()})),this.eventsToUnbind=void 0),this.removeBaseSeriesEvents()},e.prototype.removeBaseSeriesEvents=function(){var t=this.baseSeries||[];this.navigatorEnabled&&t[0]&&(!1!==this.navigatorOptions.adaptToUpdatedData&&t.forEach((function(t){_(t,"updatedData",this.updatedDataHandler)}),this),t[0].xAxis&&_(t[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes))},e.prototype.init=function(e){var i=e.options,s=i.navigator,r=s.enabled,a=i.scrollbar,l=a.enabled;i=r?s.height:0;var c=l?a.height:0;this.handles=[],this.shades=[],this.chart=e,this.setBaseSeries(),this.height=i,this.scrollbarHeight=c,this.scrollbarEnabled=l,this.navigatorEnabled=r,this.navigatorOptions=s,this.scrollbarOptions=a,this.outlineHeight=i+c,this.opposite=x(s.opposite,!(r||!e.inverted));var u=this;a=e.xAxis.length,l=e.yAxis.length;var d=(r=u.baseSeries)&&r[0]&&r[0].xAxis||e.xAxis[0]||{options:{}};e.isDirtyBox=!0,u.navigatorEnabled?(u.xAxis=new t(e,b({breaks:d.options.breaks,ordinal:d.options.ordinal},s.xAxis,{id:"navigator-x-axis",yAxis:"navigator-y-axis",isX:!0,type:"datetime",index:a,isInternal:!0,offset:0,keepOrdinalPadding:!0,startOnTick:!1,endOnTick:!1,minPadding:0,maxPadding:0,zoomEnabled:!1},e.inverted?{offsets:[c,0,-c,0],width:i}:{offsets:[0,-c,0,c],height:i})),u.yAxis=new t(e,b(s.yAxis,{id:"navigator-y-axis",alignTicks:!1,offset:0,index:l,isInternal:!0,zoomEnabled:!1},e.inverted?{width:i}:{height:i})),r||s.series.data?u.updateNavigatorSeries(!1):0===e.series.length&&(u.unbindRedraw=h(e,"beforeRedraw",(function(){0a.indexOf(e)&&(e&&(_(e,"updatedData",r.updatedDataHandler),delete e.navigatorSeries),t.chart&&t.destroy(),1))}));a&&a.length&&a.forEach((function(t){var d=t.navigatorSeries,p=g({color:t.color,visible:t.visible},y(h)?l.navigator.series:h);d&&!1===r.navigatorOptions.adaptToUpdatedData||(c.name="Navigator "+a.length,(s=b(i=t.options||{},c,p,n=i.navigatorOptions||{})).pointRange=x(p.pointRange,n.pointRange,l.plotOptions[s.type||"line"].pointRange),p=n.data||p.data,r.hasNavigatorData=r.hasNavigatorData||!!p,s.data=p||i.data&&i.data.slice(0),d&&d.options?d.update(s,e):(t.navigatorSeries=o.initSeries(s),t.navigatorSeries.baseSeries=t,u.push(t.navigatorSeries)))})),(!h.data||a&&a.length)&&!y(h)||(r.hasNavigatorData=!1,(h=w(h)).forEach((function(t,e){c.name="Navigator "+(u.length+1),(s=b(l.navigator.series,{color:o.series[e]&&!o.series[e].options.isInternal&&o.series[e].color||o.options.colors[e]||o.options.colors[0]},c,t)).data=t.data,s.data&&(r.hasNavigatorData=!0,u.push(o.initSeries(s)))}))),t&&this.addBaseSeriesEvents()},e.prototype.addBaseSeriesEvents=function(){var t=this,e=t.baseSeries||[];e[0]&&e[0].xAxis&&h(e[0].xAxis,"foundExtremes",this.modifyBaseAxisExtremes),e.forEach((function(e){h(e,"show",(function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!0,!1)})),h(e,"hide",(function(){this.navigatorSeries&&this.navigatorSeries.setVisible(!1,!1)})),!1!==this.navigatorOptions.adaptToUpdatedData&&e.xAxis&&h(e,"updatedData",this.updatedDataHandler),h(e,"remove",(function(){this.navigatorSeries&&(f(t.series,this.navigatorSeries),d(this.navigatorSeries.options)&&this.navigatorSeries.remove(!1),delete this.navigatorSeries)}))}),this)},e.prototype.getBaseSeriesMin=function(t){return this.baseSeries.reduce((function(t,e){return Math.min(t,e.xData?e.xData[0]:t)}),t)},e.prototype.modifyNavigatorAxisExtremes=function(){var t,e=this.xAxis;void 0!==e.getExtremes&&(!(t=this.getUnionExtremes(!0))||t.dataMin===e.min&&t.dataMax===e.max||(e.min=t.dataMin,e.max=t.dataMax))},e.prototype.modifyBaseAxisExtremes=function(){var t=this.chart.navigator,e=this.getExtremes(),i=e.dataMin,s=e.dataMax;e=e.max-e.min;var n=t.stickToMin,r=t.stickToMax,o=x(this.options.overscroll,0),a=t.series&&t.series[0],l=!!this.setExtremes;if(!this.eventArgs||"rangeSelectorButton"!==this.eventArgs.trigger){if(n)var h=i,c=i+e;r&&(c=s+o,n||(h=Math.max(i,c-e,t.getBaseSeriesMin(a&&a.xData?a.xData[0]:-Number.MAX_VALUE)))),l&&(n||r)&&v(h)&&(this.min=this.userMin=h,this.max=this.userMax=c)}t.stickToMin=t.stickToMax=null},e.prototype.updatedDataHandler=function(){var t=this.chart.navigator,e=this.navigatorSeries,i=t.getBaseSeriesMin(this.xData[0]);t.stickToMax=t.reversedExtremes?0===Math.round(t.zoomedMin):Math.round(t.zoomedMax)>=Math.round(t.size),t.stickToMin=v(this.xAxis.min)&&this.xAxis.min<=i&&(!this.chart.fixedRange||!t.stickToMax),e&&!t.hasNavigatorData&&(e.options.pointStart=this.xData[0],e.setData(this.options.data,!1,null,!1))},e.prototype.addChartEvents=function(){this.eventsToUnbind||(this.eventsToUnbind=[]),this.eventsToUnbind.push(h(this.chart,"redraw",(function(){var t=this.navigator,e=t&&(t.baseSeries&&t.baseSeries[0]&&t.baseSeries[0].xAxis||this.xAxis[0]);e&&t.render(e.min,e.max)})),h(this.chart,"getMargins",(function(){var t=this.navigator,e=t.opposite?"plotTop":"marginBottom";this.inverted&&(e=t.opposite?"marginRight":"plotLeft"),this[e]=(this[e]||0)+(t.navigatorEnabled||!this.inverted?t.outlineHeight:0)+t.navigatorOptions.margin})))},e.prototype.destroy=function(){this.removeEvents(),this.xAxis&&(f(this.chart.xAxis,this.xAxis),f(this.chart.axes,this.xAxis)),this.yAxis&&(f(this.chart.yAxis,this.yAxis),f(this.chart.axes,this.yAxis)),(this.series||[]).forEach((function(t){t.destroy&&t.destroy()})),"series xAxis yAxis shades outline scrollbarTrack scrollbarRifles scrollbarGroup scrollbar navigatorGroup rendered".split(" ").forEach((function(t){this[t]&&this[t].destroy&&this[t].destroy(),this[t]=null}),this),[this.handles].forEach((function(t){p(t)}),this)},e}();return s.Navigator||(s.Navigator=A,n.compose(t),h(e,"beforeShowResetZoom",(function(){var t=this.options,e=t.navigator,i=t.rangeSelector;if((e&&e.enabled||i&&i.enabled)&&(!k&&"x"===t.chart.zoomType||k&&"x"===t.chart.pinchType))return!1})),h(e,"beforeRender",(function(){var t=this.options;(t.navigator.enabled||t.scrollbar.enabled)&&(this.scroller=this.navigator=new A(this))})),h(e,"afterSetChartSize",(function(){var t=this.legend,e=this.navigator;if(e){var i=t&&t.options,s=e.xAxis,n=e.yAxis,r=e.scrollbarHeight;this.inverted?(e.left=e.opposite?this.chartWidth-r-e.height:this.spacing[3]+r,e.top=this.plotTop+r):(e.left=this.plotLeft+r,e.top=e.navigatorOptions.top||this.chartHeight-e.height-r-this.spacing[2]-(this.rangeSelector&&this.extraBottomMargin?this.rangeSelector.getHeight():0)-(i&&"bottom"===i.verticalAlign&&"proximate"!==i.layout&&i.enabled&&!i.floating?t.legendHeight+x(i.margin,10):0)-(this.titleOffset?this.titleOffset[2]:0)),s&&n&&(this.inverted?s.options.left=n.options.left=e.left:s.options.top=n.options.top=e.top,s.setAxisSize(),n.setAxisSize())}})),h(e,"update",(function(t){var e=t.options.navigator||{},i=t.options.scrollbar||{};this.navigator||this.scroller||!e.enabled&&!i.enabled||(b(!0,this.options.navigator,e),b(!0,this.options.scrollbar,i),delete t.options.navigator,delete t.options.scrollbar)})),h(e,"afterUpdate",(function(t){this.navigator||this.scroller||!this.options.navigator.enabled&&!this.options.scrollbar.enabled||(this.scroller=this.navigator=new A(this),x(t.redraw,!0)&&this.redraw(t.animation))})),h(e,"afterAddSeries",(function(){this.navigator&&this.navigator.setBaseSeries(null,!1)})),h(r,"afterUpdate",(function(){this.chart.navigator&&!this.options.isInternal&&this.chart.navigator.setBaseSeries(null,!1)})),e.prototype.callbacks.push((function(t){var e=t.navigator;e&&t.xAxis[0]&&(t=t.xAxis[0].getExtremes(),e.render(t.min,t.max))}))),s.Navigator=A,s.Navigator})),e(t,"Core/Axis/OrdinalAxis.js",[t["Core/Axis/Axis.js"],t["Core/Globals.js"],t["Core/Utilities.js"]],(function(t,e,i){var s=i.addEvent,n=i.css,r=i.defined,o=i.pick,a=i.timeUnits;i=e.Chart;var l,h=e.Series;return function(t){var i=function(){function t(t){this.index={},this.axis=t}return t.prototype.beforeSetTickPositions=function(){var t,e,i=this.axis,s=i.ordinal,n=[],r=!1,a=i.getExtremes(),l=a.min,h=a.max,c=i.isXAxis&&!!i.options.breaks;a=i.options.ordinal;var u,d=Number.MAX_VALUE,p=i.chart.options.chart.ignoreHiddenSeries;if(a||c){i.series.forEach((function(e,i){if(t=[],!(p&&!1===e.visible||!1===e.takeOrdinalPosition&&!c)&&(n=n.concat(e.processedXData),f=n.length,n.sort((function(t,e){return t-e})),d=Math.min(d,o(e.closestPointRange,d)),f)){for(i=0;ig||h-n[n.length-1]>g)&&(r=!0)}else i.options.overscroll&&(2===f?d=n[1]-n[0]:1===f?n=[n[0],n[0]+(d=i.options.overscroll)]:d=s.overscrollPointsRange);r?(i.options.overscroll&&(s.overscrollPointsRange=d,n=n.concat(s.getOverscrollPositions())),s.positions=n,g=i.ordinal2lin(Math.max(l,n[0]),!0),e=Math.max(i.ordinal2lin(Math.min(h,n[n.length-1]),!0),1),s.slope=h=(h-l)/(e-g),s.offset=l-g*h):(s.overscrollPointsRange=o(i.closestPointRange,s.overscrollPointsRange),s.positions=i.ordinal.slope=s.offset=void 0)}i.isOrdinal=a&&r,s.groupIntervalFactor=null},t.prototype.getExtendedPositions=function(){var t,i=this,s=i.axis,n=s.constructor.prototype,r=s.chart,o=s.series[0].currentDataGrouping,a=i.index,l=o?o.count+o.unitName:"raw",h=s.options.overscroll,c=s.getExtremes();if(a||(a=i.index={}),!a[l]){var u={series:[],chart:r,getExtremes:function(){return{min:c.dataMin,max:c.dataMax+h}},options:{ordinal:!0},ordinal:{},ordinal2lin:n.ordinal2lin,val2lin:n.val2lin};u.ordinal.axis=u,s.series.forEach((function(s){(t={xAxis:u,xData:s.xData.slice(),chart:r,destroyGroupedData:e.noop,getProcessedData:e.Series.prototype.getProcessedData}).xData=t.xData.concat(i.getOverscrollPositions()),t.options={dataGrouping:o?{enabled:!0,forced:!0,approximation:"open",units:[[o.unitName,[o.count]]]}:{enabled:!1}},s.processData.apply(t),u.series.push(t)})),s.ordinal.beforeSetTickPositions.apply({axis:u}),a[l]=u.ordinal.positions}return a[l]},t.prototype.getGroupIntervalFactor=function(t,e,i){var s=(i=i.processedXData).length,n=[],r=this.groupIntervalFactor;if(!r){for(r=0;rn.length||void 0===e)return m.getTimeTicks.apply(m,arguments);var v=n.length;for(h=0;hi;if(n[h]5*o||b){if(n[h]>f){for(c=m.getTimeTicks(t,n[u],n[h],s);c.length&&c[0]<=f;)c.shift();c.length&&(f=c[c.length-1]),y.push(p.length),p=p.concat(c)}u=h+1}if(b)break}if(c=c.info,l&&c.unitRange<=a.hour){for(h=p.length-1,u=1;ui?y-1:y,_=void 0;u--;)h=x[u],y=Math.abs(_-h),_&&y<.8*g&&(null===m||y<.8*m)?(d[p[u]]&&!d[p[u+1]]?(y=u+1,_=h):y=u,p.splice(y,1)):_=h}return p},l.lin2val=function(t,e){var i=this.ordinal,s=i.positions;if(s){var n=i.slope,r=i.offset;if(i=s.length-1,e)if(0>t)t=s[0];else if(t>i)t=s[i];else var o=t-(i=Math.floor(t));else for(;i--;)if(t>=(e=n*i+r)){o=(t-e)/((n=n*(i+1)+r)-e);break}return void 0!==o&&void 0!==s[i]?s[i]+(o?o*(s[i+1]-s[i]):0):t}return t},l.val2lin=function(t,e){var i=this.ordinal,s=i.positions;if(s){var n,r=s.length;for(n=r;n--;)if(s[n]===t){var o=n;break}for(n=r-1;n--;)if(t>s[n]||0===n){o=n+(t=(t-s[n])/(s[n+1]-s[n]));break}e=e?o:i.slope*(o||0)+i.offset}else e=t;return e},l.ordinal2lin=l.val2lin,s(e,"afterInit",(function(){this.ordinal||(this.ordinal=new t.Composition(this))})),s(e,"foundExtremes",(function(){this.isXAxis&&r(this.options.overscroll)&&this.max===this.dataMax&&(!this.chart.mouseIsDown||this.isInternal)&&(!this.eventArgs||this.eventArgs&&"navigator"!==this.eventArgs.trigger)&&(this.max+=this.options.overscroll,!this.isInternal&&r(this.userMin)&&(this.min+=this.options.overscroll))})),s(e,"afterSetScale",(function(){this.horiz&&!this.isDirty&&(this.isDirty=this.isOrdinal&&this.chart.navigator&&!this.chart.navigator.adaptToUpdatedData)})),s(e,"initialAxisTranslation",(function(){this.ordinal&&(this.ordinal.beforeSetTickPositions(),this.tickInterval=this.ordinal.postProcessTickInterval(this.tickInterval))})),s(i,"pan",(function(t){var e=this.xAxis[0],i=e.options.overscroll,s=t.originalEvent.chartX,r=this.options.chart&&this.options.chart.panning,o=!1;if(r&&"y"!==r.type&&e.options.ordinal&&e.series.length){var a=this.mouseDownX,l=e.getExtremes(),h=l.dataMax,c=l.min,u=l.max,d=this.hoverPoints,p=e.closestPointRange||e.ordinal&&e.ordinal.overscrollPointsRange;a=(a-s)/(e.translationSlope*(e.ordinal.slope||p));var f={ordinal:{positions:e.ordinal.getExtendedPositions()}};p=e.lin2val;var g=e.val2lin;if(f.ordinal.positions){if(1a){d=f;var m=e.ordinal.positions?e:f}else d=e.ordinal.positions?e:f,m=f;h>(f=m.ordinal.positions)[f.length-1]&&f.push(h),this.fixedRange=u-c,(a=e.navigatorAxis.toFixedRange(null,null,p.apply(d,[g.apply(d,[c,!0])+a,!0]),p.apply(m,[g.apply(m,[u,!0])+a,!0]))).min>=Math.min(l.dataMin,c)&&a.max<=Math.max(h,u)+i&&e.setExtremes(a.min,a.max,!0,!1,{trigger:"pan"}),this.mouseDownX=s,n(this.container,{cursor:"move"})}}else o=!0}else o=!0;o||r&&/y/.test(r.type)?i&&(e.max=e.dataMax+i):t.preventDefault()})),s(o,"updatedData",(function(){var t=this.xAxis;t&&t.options.ordinal&&delete t.ordinal.index}))}}(l||(l={})),l.compose(t,i,h),l})),e(t,"Core/Axis/BrokenAxis.js",[t["Core/Axis/Axis.js"],t["Core/Globals.js"],t["Core/Utilities.js"],t["Extensions/Stacking.js"]],(function(t,e,i,s){var n=i.addEvent,r=i.find,o=i.fireEvent,a=i.isArray,l=i.isNumber,h=i.pick,c=e.Series,u=function(){function e(t){this.hasBreaks=!1,this.axis=t}return e.isInBreak=function(t,e){var i=t.repeat||1/0,s=t.from,n=t.to-t.from;return e=e>=s?(e-s)%i:i-(s-e)%i,t.inclusive?e<=n:e=t)break;(n.to=t)break;if(e.isInBreak(r,t)){n-=t-r.from;break}}}return n},e.prototype.findBreakAt=function(t,e){return r(e,(function(e){return e.fromd;)m-=s;for(;me.to||s>e.from&&re.from&&re.from&&r>e.to&&rt&&e>=this.basePointRange&&(t=e),i=void 0;r--;)i&&!1!==i.visible||(i=n[r+1]),e=n[r],!1!==i.visible&&!1!==e.visible&&(i.x-e.x>t&&(n.splice(r+1,0,{isNull:!0,x:i=(e.x+i.x)/2}),o.stacking&&this.options.stacking&&((i=o.stacking.stacks[this.stackKey][i]=new s(o,o.options.stackLabels,!1,i,this.stack)).total=0)),i=e);return this.getGraphPath(n)},n(t,"init",(function(){this.brokenAxis||(this.brokenAxis=new u(this))})),n(t,"afterInit",(function(){void 0!==this.brokenAxis&&this.brokenAxis.setBreaks(this.options.breaks,!1)})),n(t,"afterSetTickPositions",(function(){var t=this.brokenAxis;if(t&&t.hasBreaks){var e,i=this.tickPositions,s=this.tickPositions.info,n=[];for(e=0;e=i[0]);n++);for(;n<=d;n++){for(;void 0!==i[_+1]&&t[n]>=i[_+1]||n===d;){var k=i[_];r.dataGroupInfo={start:r.cropStart+w,length:m[0].length};var S=s.apply(r,m);for(r.pointClass&&!c(r.dataGroupInfo.options)&&(r.dataGroupInfo.options=g(r.pointClass.prototype.optionsToObject.call({series:r},r.options.data[r.cropStart+w])),x.forEach((function(t){delete r.dataGroupInfo.options[t]}))),void 0!==S&&(l.push(k),h.push(S),u.push(r.dataGroupInfo)),w=n,k=0;kthis.chart.plotSizeX/n||s&&e.forced)&&(r=!0);return r?n:0},y.prototype.setDataGrouping=function(t,e){var i;if(e=m(e,!0),t||(t={forced:!1,units:null}),this instanceof y)for(i=this.series.length;i--;)this.series[i].update({dataGrouping:t},!1);else this.chart.options.series.forEach((function(e){e.dataGrouping=t}),!1);this.ordinal&&(this.ordinal.slope=void 0),e&&this.chart.redraw()},e.dataGrouping=x,x})),e(t,"Series/OHLCSeries.js",[t["Core/Globals.js"],t["Core/Series/Point.js"],t["Core/Utilities.js"]],(function(t,e,i){var s=t.seriesTypes;(i=i.seriesType)("ohlc","column",{lineWidth:1,tooltip:{pointFormat:'\u25cf {series.name}
Open: {point.open}
High: {point.high}
Low: {point.low}
Close: {point.close}
'},threshold:null,states:{hover:{lineWidth:3}},stickyTracking:!0},{directTouch:!1,pointArrayMap:["open","high","low","close"],toYData:function(t){return[t.open,t.high,t.low,t.close]},pointValKey:"close",pointAttrToOptions:{stroke:"color","stroke-width":"lineWidth"},init:function(){s.column.prototype.init.apply(this,arguments),this.options.stacking=void 0},pointAttribs:function(t,e){e=s.column.prototype.pointAttribs.call(this,t,e);var i=this.options;return delete e.fill,!t.options.color&&i.upColor&&t.open--l)break}}}a.forEach((function(s,n){if(s.plotX+=y,(void 0===s.plotY||f)&&(0<=s.plotX&&s.plotX<=g.len?f?(s.plotY=g.translate(s.x,0,1,0,1),s.plotX=i(s.y)?m.translate(s.y,0,0,0,1):0):s.plotY=(g.opposite?0:e.yAxis.len)+g.offset:s.shapeArgs={}),(t=a[n-1])&&t.plotX===s.plotX){void 0===t.stackIndex&&(t.stackIndex=0);var r=t.stackIndex+1}s.stackIndex=r})),this.onSeries=h}}})),e(t,"Series/FlagsSeries.js",[t["Core/Globals.js"],t["Core/Renderer/SVG/SVGElement.js"],t["Core/Renderer/SVG/SVGRenderer.js"],t["Core/Utilities.js"],t["Mixins/OnSeries.js"]],(function(t,e,i,s,n){function r(t){m[t+"pin"]=function(e,i,s,n,r){var o=r&&r.anchorX;r=r&&r.anchorY,"circle"===t&&n>s&&(e-=Math.round((n-s)/2),s=n);var a=m[t](e,i,s,n);if(o&&r){var l=o;"circle"===t?l=e+s/2:(s=a[1],"M"===(e=a[0])[0]&&"L"===s[0]&&(l=(e[1]+s[1])/2)),a.push(["M",l,i>r?i:i+n],["L",o,r]),a=a.concat(m.circle(o-1,r-1,2,2))}return a}}var o=s.addEvent,a=s.defined,l=s.isNumber,h=s.merge,c=s.objectEach,u=s.wrap,d=t.Renderer,p=t.Series,f=t.TrackerMixin,g=t.VMLRenderer,m=i.prototype.symbols;(0,s.seriesType)("flags","column",{pointRange:0,allowOverlapX:!1,shape:"flag",stackDistance:12,textAlign:"center",tooltip:{pointFormat:"{point.text}
"},threshold:null,y:-30,fillColor:"#ffffff",lineWidth:1,states:{hover:{lineColor:"#000000",fillColor:"#ccd6eb"}},style:{fontSize:"11px",fontWeight:"bold"}},{sorted:!1,noSharedTooltip:!0,allowDG:!1,takeOrdinalPosition:!1,trackerGroups:["markerGroup"],forceCrop:!0,init:p.prototype.init,pointAttribs:function(t,e){var i=this.options,s=t&&t.color||this.color,n=i.lineColor,r=t&&t.lineWidth;return t=t&&t.fillColor||i.fillColor,e&&(t=i.states[e].fillColor,n=i.states[e].lineColor,r=i.states[e].lineWidth),{fill:t||s,stroke:n||s,"stroke-width":r||i.lineWidth||0}},translate:n.translate,getPlotBox:n.getPlotBox,drawPoints:function(){var i,s=this.points,n=this.chart,r=n.renderer,o=n.inverted,l=this.options,d=l.y,p=this.yAxis,f={},g=[];for(i=s.length;i--;){var m=s[i],y=(o?m.plotY:m.plotX)>this.xAxis.len,v=m.plotX,b=m.stackIndex,x=m.options.shape||l.shape,_=m.plotY;void 0!==_&&(_=m.plotY+d-(void 0!==b&&b*l.stackDistance)),m.anchorX=b?void 0:m.plotX;var w=b?void 0:m.plotY,C="flag"!==x;b=m.graphic,void 0!==_&&0<=v&&!y?(b||(b=m.graphic=r.label("",null,null,x,null,null,l.useHTML),n.styledMode||b.attr(this.pointAttribs(m)).css(h(l.style,m.style)),b.attr({align:C?"center":"left",width:l.width,height:l.height,"text-align":l.textAlign}).addClass("highcharts-point").add(this.markerGroup),m.graphic.div&&(m.graphic.div.point=m),n.styledMode||b.shadow(l.shadow),b.isNew=!0),0a-o,_=f=864e5*{month:28,year:365}[g]*m-b&&s-36e5<=864e5*{month:31,year:366}[g]*m+b?f=!0:"ytd"===g?(f=h-l+b===s,w=!e):"all"===g&&(f=i.max-i.min>=a-o,C=!e&&u&&f),m=e&&f||f&&!u&&!w||e&&t.frozenStates,(g=!d&&(x||_||C||n))?v=3:m&&(u=!0,v=2),y.state!==v&&(y.setState(v),0===v&&c===r&&t.setSelected(null))}))},e.prototype.computeButtonRange=function(t){var e=t.type,i=t.count||1,s={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5};s[e]?t._range=s[e]*i:"month"!==e&&"year"!==e||(t._range=864e5*{month:30,year:365}[e]*i),t._offsetMin=v(t.offsetMin,0),t._offsetMax=v(t.offsetMax,0),t._range+=t._offsetMax-t._offsetMin},e.prototype.setInputValue=function(t,e){var i=this.chart.options.rangeSelector,s=this.chart.time,n=this[t+"Input"];c(e)&&(n.previousValue=n.HCTime,n.HCTime=e),n.value=s.dateFormat(i.inputEditDateFormat||"%Y-%m-%d",n.HCTime),this[t+"DateBox"].attr({text:s.dateFormat(i.inputDateFormat||"%b %e, %Y",n.HCTime)})},e.prototype.showInput=function(t){var e=this.inputGroup,i=this[t+"DateBox"];h(this[t+"Input"],{left:e.translateX+i.x+"px",top:e.translateY+"px",width:i.width-2+"px",height:i.height-2+"px",border:"2px solid silver"})},e.prototype.hideInput=function(t){h(this[t+"Input"],{border:0,width:"1px",height:"1px"}),this.setInputValue(t)},e.prototype.defaultInputDateParser=function(t,e){var s=new Date;return i.isSafari?Date.parse(t.split(" ").join("T")):e?Date.parse(t+"Z"):Date.parse(t)-6e4*s.getTimezoneOffset()},e.prototype.drawInput=function(t){function e(){var t=s.value,e=a.xAxis[0],i=a.scroller&&a.scroller.xAxis?a.scroller.xAxis:e,n=i.dataMin,o=i.dataMax;(i=(d.inputDateParser||x)(t,a.time.useUTC))!==s.previousValue&&(s.previousValue=i,g(i)||(i=t.split("-"),i=Date.UTC(b(i[0]),b(i[1])-1,b(i[2]))),g(i)&&(a.time.useUTC||(i+=6e4*(new Date).getTimezoneOffset()),y?i>r.maxInput.HCTime?i=void 0:io&&(i=o),void 0!==i&&e.setExtremes(y?i:e.min,y?e.max:i,void 0,void 0,{trigger:"rangeSelectorInput"})))}var s,n,r=this,a=r.chart,c=a.renderer.style||{},u=a.renderer,d=a.options.rangeSelector,f=r.div,y="min"===t,v=this.inputGroup,x=this.defaultInputDateParser;this[t+"Label"]=n=u.label(o.lang[y?"rangeSelectorFrom":"rangeSelectorTo"],this.inputGroup.offset).addClass("highcharts-range-label").attr({padding:2}).add(v),v.offset+=n.width+5,this[t+"DateBox"]=u=u.label("",v.offset).addClass("highcharts-range-input").attr({padding:2,width:d.inputBoxWidth||90,height:d.inputBoxHeight||17,"text-align":"center"}).on("click",(function(){r.showInput(t),r[t+"Input"].focus()})),a.styledMode||u.attr({stroke:d.inputBoxBorderColor||"#cccccc","stroke-width":1}),u.add(v),v.offset+=u.width+(y?10:0),this[t+"Input"]=s=l("input",{name:t,className:"highcharts-range-selector",type:"text"},{top:a.plotTop+"px"},f),a.styledMode||(n.css(m(c,d.labelStyle)),u.css(m({color:"#333333"},c,d.inputStyle)),h(s,p({position:"absolute",border:0,width:"1px",height:"1px",padding:0,textAlign:"center",fontSize:c.fontSize,fontFamily:c.fontFamily,top:"-9999em"},d.inputStyle))),s.onfocus=function(){r.showInput(t)},s.onblur=function(){s===i.doc.activeElement&&e(),r.hideInput(t),s.blur()},s.onchange=e,s.onkeypress=function(t){13===t.keyCode&&e()}},e.prototype.getPosition=function(){var t=this.chart,e=t.options.rangeSelector;return{buttonTop:(t="top"===e.verticalAlign?t.plotTop-t.axisOffset[0]:0)+e.buttonPosition.y,inputTop:t+e.inputPosition.y-10}},e.prototype.getYTDExtremes=function(t,e,i){var s=this.chart.time,n=new s.Date(t),r=s.get("FullYear",n);return i=i?s.Date.UTC(r,0,1):+new s.Date(r,0,1),e=Math.max(e||0,i),n=n.getTime(),{max:Math.min(t||n,n),min:e}},e.prototype.render=function(t,e){var i=this,s=i.chart,n=s.renderer,r=s.container,a=s.options,h=a.exporting&&!1!==a.exporting.enabled&&a.navigation&&a.navigation.buttonOptions,c=o.lang,u=i.div,d=a.rangeSelector,p=v(a.chart.style&&a.chart.style.zIndex,0)+1;a=d.floating;var f=i.buttons;u=i.inputGroup;var g,m=d.buttonTheme,y=d.buttonPosition,b=d.inputPosition,x=d.inputEnabled,_=m&&m.states,w=s.plotLeft,C=i.buttonGroup,k=i.options.verticalAlign,S=s.legend,A=S&&S.options,E=y.y,M=b.y,T=s.hasLoaded,D=T?"animate":"attr",P=0,O=0;if(!1!==d.enabled){i.rendered||(i.group=g=n.g("range-selector-group").attr({zIndex:7}).add(),i.buttonGroup=C=n.g("range-selector-buttons").add(g),i.zoomText=n.text(c.rangeSelectorZoom,0,15).add(C),s.styledMode||(i.zoomText.css(d.labelStyle),m["stroke-width"]=v(m["stroke-width"],0)),i.buttonOptions.forEach((function(t,e){f[e]=n.button(t.text,0,0,(function(s){var n,r=t.events&&t.events.click;r&&(n=r.call(t,s)),!1!==n&&i.clickButton(e),i.isActive=!0}),m,_&&_.hover,_&&_.select,_&&_.disabled).attr({"text-align":"center"}).add(C)})),!1!==x&&(i.div=u=l("div",null,{position:"relative",height:0,zIndex:p}),r.parentNode.insertBefore(u,r),i.inputGroup=u=n.g("input-group").add(g),u.offset=0,i.drawInput("min"),i.drawInput("max"))),i.zoomText[D]({x:v(w+y.x,w)});var L=v(w+y.x,w)+i.zoomText.getBBox().width+5;i.buttonOptions.forEach((function(t,e){f[e][D]({x:L}),L+=f[e].width+v(d.buttonSpacing,5)})),w=s.plotLeft-s.spacing[3],i.updateButtonStates(),h&&this.titleCollision(s)&&"top"===k&&"right"===y.align&&y.y+C.getBBox().height-12<(h.y||0)+h.height&&(P=-40),r=y.x-s.spacing[3],"right"===y.align?r+=P-w:"center"===y.align&&(r-=w/2),C.align({y:y.y,width:C.getBBox().width,align:y.align,x:r},!0,s.spacingBox),i.group.placed=T,i.buttonGroup.placed=T,!1!==x&&(P=h&&this.titleCollision(s)&&"top"===k&&"right"===b.align&&b.y-u.getBBox().height-12<(h.y||0)+h.height+s.spacing[0]?-40:0,"left"===b.align?r=w:"right"===b.align&&(r=-Math.max(s.axisOffset[1],-P)),u.align({y:b.y,width:u.getBBox().width,align:b.align,x:b.x+r-2},!0,s.spacingBox),h=u.alignAttr.translateX+u.alignOptions.x-P+u.getBBox().x+2,r=u.alignOptions.width,c=C.alignAttr.translateX+C.getBBox().x,w=C.getBBox().width+20,(b.align===y.align||c+w>h&&h+r>c&&E=-P?0:-P),translateY:u.alignAttr.translateY+C.getBBox().height+10}),i.setInputValue("min",t),i.setInputValue("max",e),i.inputGroup.placed=T),i.group.align({verticalAlign:k},!0,s.spacingBox),t=i.group.getBBox().height+20,e=i.group.alignAttr.translateY,"bottom"===k&&(O=e-(t=t+(S=A&&"bottom"===A.verticalAlign&&A.enabled&&!A.floating?S.legendHeight+v(A.margin,10):0)-20)-(a?0:d.y)-(s.titleOffset?s.titleOffset[2]:0)-10),"top"===k?(a&&(O=0),s.titleOffset&&s.titleOffset[0]&&(O=s.titleOffset[0]),O+=s.margin[0]-s.spacing[0]||0):"middle"===k&&(M===E?O=0>M?e+void 0:e:(M||E)&&(O=0>M||0>E?O-Math.min(M,E):e-t+NaN)),i.group.translate(d.x,d.y+Math.floor(O)),!1!==x&&(i.minInput.style.marginTop=i.group.translateY+"px",i.maxInput.style.marginTop=i.group.translateY+"px"),i.rendered=!0}},e.prototype.getHeight=function(){var t=this.options,e=this.group,i=t.y,s=t.buttonPosition.y,n=t.inputPosition.y;return t.height?t.height:(t=e?e.getBBox(!0).height+13+i:0,e=Math.min(n,s),(0>n&&0>s||0u+r.width)&&(_?e=s=h(e,u,u+r.width):o=!0),o||f.push(["M",e,i],["L",s,n])}:function(t){var o;s=(e=t.pos)+t.len,i=n=Math.round(p+r.height-C),"pass"!==_&&(ip+r.height)&&(_?i=n=h(i,p,p+r.height):o=!0),o||f.push(["M",e,i],["L",s,n])}),t.path=0C?"hidden":"visible"}),r=d.getBBox(),g(d.y)&&(o?(y&&!a||!y&&a)&&(h=d.y-r.height):h=d.y-r.height/2),o?(e=l-r.x,i=l+this.width-r.x):(e="left"===this.labelAlign?l:0,i="right"===this.labelAlign?l+this.width:s.chartWidth),d.translateX=i&&(x=-(d.translateX+r.width-i)),d.attr({x:n+x,y:h,anchorX:o?n:this.opposite?0:s.chartWidth,anchorY:o?this.opposite?s.chartHeight:0:h+r.height/2})}})),x.init=function(){_.apply(this,arguments),this.setCompare(this.options.compare)},x.setCompare=function(t){this.modifyValue="value"===t||"percent"===t?function(e,i){var s=this.compareValue;return void 0!==e&&void 0!==s?(e="value"===t?e-s:e/s*100-(100===this.options.compareBase?0:100),i&&(i.change=e),e):0}:null,this.userOptions.compare=t,this.chart.hasRendered&&(this.isDirty=!0)},x.processData=function(t){var e,i=-1,s=!0===this.options.compareStart?0:1;if(w.apply(this,arguments),this.xAxis&&this.processedYData){var n=this.processedXData,r=this.processedYData,o=r.length;for(this.pointArrayMap&&(i=this.pointArrayMap.indexOf(this.options.pointValKey||this.pointValKey||"y")),e=0;e=this.xAxis.min&&0!==a){this.compareValue=a;break}}}},o(r,"afterGetExtremes",(function(t){if(t=t.dataExtremes,this.modifyValue&&t){var e=[this.modifyValue(t.dataMin),this.modifyValue(t.dataMax)];t.dataMin=l(e),t.dataMax=a(e)}})),t.prototype.setCompare=function(t,e){this.isXAxis||(this.series.forEach((function(e){e.setCompare(t)})),v(e,!0)&&this.chart.redraw())},s.prototype.tooltipFormatter=function(t){return t=t.replace("{point.change}",(0{throw t},0)}const a={closed:!0,next(t){},error(t){if(r.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function h(t){return null!==t&&"object"==typeof t}const c=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let u=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:i,_ctorUnsubscribe:n,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof t)i.remove(this);else if(null!==i)for(let t=0;tt.concat(e instanceof c?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends u{constructor(t,e,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof f?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new g(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new g(this,t,e,i)}}[p](){return this}static create(t,e,i){const s=new f(t,e,i);return s.syncErrorThrowable=!1,s}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class g extends f{constructor(t,e,i,n){let r;super(),this._parentSubscriber=t;let o=this;s(e)?r=e:e&&(r=e.next,i=e.error,n=e.complete,e!==a&&(o=Object.create(e),s(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=i,this._complete=n}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;r.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:i}=r;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);r.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(i){if(this.unsubscribe(),r.useDeprecatedSynchronousErrorHandling)throw i;o(i)}}__tryOrSetError(t,e,i){if(!r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(s){return r.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=s,t.syncErrorThrown=!0,!0):(o(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const m=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function y(t){return t}let v=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(t,e,i){const{operator:s}=this,n=function(t,e,i){if(t){if(t instanceof f)return t;if(t[p])return t[p]()}return t||e||i?new f(t,e,i):new f(a)}(t,e,i);if(n.add(s?s.call(n,this.source):this.source||r.useDeprecatedSynchronousErrorHandling&&!n.syncErrorThrowable?this._subscribe(n):this._trySubscribe(n)),r.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable&&(n.syncErrorThrowable=!1,n.syncErrorThrown))throw n.syncErrorValue;return n}_trySubscribe(t){try{return this._subscribe(t)}catch(e){r.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:i,isStopped:s}=t;if(e||s)return!1;t=i&&i instanceof f?i:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=b(e))((e,i)=>{let s;s=this.subscribe(e=>{try{t(e)}catch(n){i(n),s&&s.unsubscribe()}},i,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[m](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?y:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=b(t))((t,e)=>{let i;this.subscribe(t=>i=t,t=>e(t),()=>t(i))})}}return t.create=e=>new t(e),t})();function b(t){if(t||(t=r.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const x=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class _ extends u{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const i=e.indexOf(this.subscriber);-1!==i&&e.splice(i,1)}}class w extends f{constructor(t){super(t),this.destination=t}}let C=(()=>{class t extends v{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new w(this)}lift(t){const e=new k(this,this);return e.operator=t,e}next(t){if(this.closed)throw new x;if(!this.isStopped){const{observers:e}=this,i=e.length,s=e.slice();for(let n=0;nnew k(t,e),t})();class k extends C{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):u.EMPTY}}function S(t){return t&&"function"==typeof t.schedule}function A(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new E(t,e))}}class E{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new M(t,this.project,this.thisArg))}}class M extends f{constructor(t,e,i){super(t),this.project=e,this.count=0,this.thisArg=i||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}const T=t=>e=>{for(let i=0,s=t.length;it&&"number"==typeof t.length&&"function"!=typeof t;function L(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const I=t=>{if(t&&"function"==typeof t[m])return s=t,t=>{const e=s[m]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(O(t))return T(t);if(L(t))return i=t,t=>(i.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[P])return e=t,t=>{const i=e[P]();for(;;){let e;try{e=i.next()}catch(s){return t.error(s),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof i.return&&t.add(()=>{i.return&&i.return()}),t};{const e=h(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,i,s};function R(t,e){return new v(i=>{const s=new u;let n=0;return s.add(e.schedule((function(){n!==t.length?(i.next(t[n++]),i.closed||s.add(this.schedule())):i.complete()}))),s})}function B(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[m]}(t))return function(t,e){return new v(i=>{const s=new u;return s.add(e.schedule(()=>{const n=t[m]();s.add(n.subscribe({next(t){s.add(e.schedule(()=>i.next(t)))},error(t){s.add(e.schedule(()=>i.error(t)))},complete(){s.add(e.schedule(()=>i.complete()))}}))})),s})}(t,e);if(L(t))return function(t,e){return new v(i=>{const s=new u;return s.add(e.schedule(()=>t.then(t=>{s.add(e.schedule(()=>{i.next(t),s.add(e.schedule(()=>i.complete()))}))},t=>{s.add(e.schedule(()=>i.error(t)))}))),s})}(t,e);if(O(t))return R(t,e);if(function(t){return t&&"function"==typeof t[P]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new v(i=>{const s=new u;let n;return s.add(()=>{n&&"function"==typeof n.return&&n.return()}),s.add(e.schedule(()=>{n=t[P](),s.add(e.schedule((function(){if(i.closed)return;let t,e;try{const i=n.next();t=i.value,e=i.done}catch(s){return void i.error(s)}e?i.complete():(i.next(t),this.schedule())})))})),s})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof v?t:new v(I(t))}class F extends f{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class N extends f{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function j(t,e){if(!e.closed)return t instanceof v?t.subscribe(e):I(t)(e)}function z(t,e,i=Number.POSITIVE_INFINITY){return"function"==typeof e?s=>s.pipe(z((i,s)=>B(t(i,s)).pipe(A((t,n)=>e(i,t,s,n))),i)):("number"==typeof e&&(i=e),e=>e.lift(new H(t,i)))}class H{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new W(t,this.project,this.concurrent))}}class W extends N{constructor(t,e,i=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function V(t=Number.POSITIVE_INFINITY){return z(y,t)}function G(t,e){return e?R(t,e):new v(T(t))}function U(...t){let e=Number.POSITIVE_INFINITY,i=null,s=t[t.length-1];return S(s)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof s&&(e=t.pop()),null===i&&1===t.length&&t[0]instanceof v?t[0]:V(e)(G(t,i))}function X(){return function(t){return t.lift(new Y(t))}}class Y{constructor(t){this.connectable=t}call(t,e){const{connectable:i}=this;i._refCount++;const s=new q(t,i),n=e.subscribe(s);return s.closed||(s.connection=i.connect()),n}}class q extends f{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:i}=this,s=t._connection;this.connection=null,!s||i&&s!==i||s.unsubscribe()}}class $ extends v{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new u,t.add(this.source.subscribe(new Z(this.getSubject(),this))),t.closed&&(this._connection=null,t=u.EMPTY)),t}refCount(){return X()(this)}}const K=(()=>{const t=$.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class Z extends w{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function Q(){return new C}function J(t){return{toString:t}.toString()}const tt="__parameters__";function et(t,e,i){return J(()=>{const s=function(t){return function(...e){if(t){const i=t(...e);for(const t in i)this[t]=i[t]}}}(e);function n(...t){if(this instanceof n)return s.apply(this,t),this;const e=new n(...t);return i.annotation=e,i;function i(t,i,s){const n=t.hasOwnProperty(tt)?t[tt]:Object.defineProperty(t,tt,{value:[]})[tt];for(;n.length<=s;)n.push(null);return(n[s]=n[s]||[]).push(e),t}}return i&&(n.prototype=Object.create(i.prototype)),n.prototype.ngMetadataName=t,n.annotationCls=n,n})}const it=et("Inject",t=>({token:t})),st=et("Optional"),nt=et("Self"),rt=et("SkipSelf");var ot=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function at(t){for(let e in t)if(t[e]===at)return e;throw Error("Could not find renamed property on target object.")}function lt(t,e){for(const i in e)e.hasOwnProperty(i)&&!t.hasOwnProperty(i)&&(t[i]=e[i])}function ht(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ct(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function ut(t){return dt(t,t[ft])||dt(t,t[yt])}function dt(t,e){return e&&e.token===t?e:null}function pt(t){return t&&(t.hasOwnProperty(gt)||t.hasOwnProperty(vt))?t[gt]:null}const ft=at({"\u0275prov":at}),gt=at({"\u0275inj":at}),mt=at({"\u0275provFallback":at}),yt=at({ngInjectableDef:at}),vt=at({ngInjectorDef:at});function bt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(bt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;const e=t.toString();if(null==e)return""+e;const i=e.indexOf("\n");return-1===i?e:e.substring(0,i)}function xt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const _t=at({__forward_ref__:at});function wt(t){return t.__forward_ref__=wt,t.toString=function(){return bt(this())},t}function Ct(t){return kt(t)?t():t}function kt(t){return"function"==typeof t&&t.hasOwnProperty(_t)&&t.__forward_ref__===wt}const St="undefined"!=typeof globalThis&&globalThis,At="undefined"!=typeof window&&window,Et="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Mt="undefined"!=typeof global&&global,Tt=St||Mt||At||Et,Dt=at({"\u0275cmp":at}),Pt=at({"\u0275dir":at}),Ot=at({"\u0275pipe":at}),Lt=at({"\u0275mod":at}),It=at({"\u0275loc":at}),Rt=at({"\u0275fac":at}),Bt=at({__NG_ELEMENT_ID__:at});class Ft{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ht({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const Nt=new Ft("INJECTOR",-1),jt={},zt=/\n/gm,Ht="__source",Wt=at({provide:String,useValue:at});let Vt,Gt=void 0;function Ut(t){const e=Gt;return Gt=t,e}function Xt(t){const e=Vt;return Vt=t,e}function Yt(t,e=ot.Default){if(void 0===Gt)throw new Error("inject() must be called from an injection context");return null===Gt?Kt(t,void 0,e):Gt.get(t,e&ot.Optional?null:void 0,e)}function qt(t,e=ot.Default){return(Vt||Yt)(Ct(t),e)}const $t=qt;function Kt(t,e,i){const s=ut(t);if(s&&"root"==s.providedIn)return void 0===s.value?s.value=s.factory():s.value;if(i&ot.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${bt(t)}]`)}function Zt(t){const e=[];for(let i=0;iArray.isArray(t)?ee(t,e):e(t))}function ie(t,e,i){e>=t.length?t.push(i):t.splice(e,0,i)}function se(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ne(t,e){const i=[];for(let s=0;s=0?t[1|s]=i:(s=~s,function(t,e,i,s){let n=t.length;if(n==e)t.push(i,s);else if(1===n)t.push(s,t[0]),t[0]=i;else{for(n--,t.push(t[n-1],t[n]);n>e;)t[n]=t[n-2],n--;t[e]=i,t[e+1]=s}}(t,s,e,i)),s}function oe(t,e){const i=ae(t,e);if(i>=0)return t[1|i]}function ae(t,e){return function(t,e,i){let s=0,n=t.length>>1;for(;n!==s;){const i=s+(n-s>>1),r=t[i<<1];if(e===r)return i<<1;r>e?n=i:s=i+1}return~(n<<1)}(t,e)}var le=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),he=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const ce={},ue=[];let de=0;function pe(t){return J(()=>{const e={},i={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===le.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||ue,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||he.Emulated,id:"c",styles:t.styles||ue,_:null,setInput:null,schemas:t.schemas||null,tView:null},s=t.directives,n=t.features,r=t.pipes;return i.id+=de++,i.inputs=ve(t.inputs,e),i.outputs=ve(t.outputs),n&&n.forEach(t=>t(i)),i.directiveDefs=s?()=>("function"==typeof s?s():s).map(fe):null,i.pipeDefs=r?()=>("function"==typeof r?r():r).map(ge):null,i})}function fe(t){return _e(t)||function(t){return t[Pt]||null}(t)}function ge(t){return function(t){return t[Ot]||null}(t)}const me={};function ye(t){const e={type:t.type,bootstrap:t.bootstrap||ue,declarations:t.declarations||ue,imports:t.imports||ue,exports:t.exports||ue,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&J(()=>{me[t.id]=t.type}),e}function ve(t,e){if(null==t)return ce;const i={};for(const s in t)if(t.hasOwnProperty(s)){let n=t[s],r=n;Array.isArray(n)&&(r=n[1],n=n[0]),i[n]=s,e&&(e[n]=r)}return i}const be=pe;function xe(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function _e(t){return t[Dt]||null}function we(t,e){return t.hasOwnProperty(Rt)?t[Rt]:null}function Ce(t,e){const i=t[Lt]||null;if(!i&&!0===e)throw new Error(`Type ${bt(t)} does not have '\u0275mod' property.`);return i}const ke=20,Se=10;function Ae(t){return Array.isArray(t)&&"object"==typeof t[1]}function Ee(t){return Array.isArray(t)&&!0===t[1]}function Me(t){return 0!=(8&t.flags)}function Te(t){return 2==(2&t.flags)}function De(t){return 1==(1&t.flags)}function Pe(t){return null!==t.template}function Oe(t){return 0!=(512&t[2])}class Le{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Ie(){return Re}function Re(t){return t.type.prototype.ngOnChanges&&(t.setInput=Fe),Be}function Be(){const t=Ne(this),e=null==t?void 0:t.current;if(e){const i=t.previous;if(i===ce)t.previous=e;else for(let t in e)i[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Fe(t,e,i,s){const n=Ne(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:ce,current:null}),r=n.current||(n.current={}),o=n.previous,a=this.declaredInputs[i],l=o[a];r[a]=new Le(l&&l.currentValue,e,o===ce),t[s]=e}function Ne(t){return t.__ngSimpleChanges__||null}Ie.ngInherit=!0;const je="http://www.w3.org/2000/svg";let ze=void 0;function He(){return void 0!==ze?ze:"undefined"!=typeof document?document:void 0}function We(t){return!!t.listen}const Ve={createRenderer:(t,e)=>He()};function Ge(t){for(;Array.isArray(t);)t=t[0];return t}function Ue(t,e){return Ge(e[t+ke])}function Xe(t,e){return Ge(e[t.index])}function Ye(t,e){return t.data[e+ke]}function qe(t,e){return t[e+ke]}function $e(t,e){const i=e[t];return Ae(i)?i:i[0]}function Ke(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ze(t){return 4==(4&t[2])}function Qe(t){return 128==(128&t[2])}function Je(t,e){return null===t||null==e?null:t[e]}function ti(t){t[18]=0}function ei(t,e){t[5]+=e;let i=t,s=t[3];for(;null!==s&&(1===e&&1===i[5]||-1===e&&0===i[5]);)s[5]+=e,i=s,s=s[3]}const ii={lFrame:ki(null),bindingsEnabled:!0,checkNoChangesMode:!1};function si(){return ii.bindingsEnabled}function ni(){return ii.lFrame.lView}function ri(){return ii.lFrame.tView}function oi(t){ii.lFrame.contextLView=t}function ai(){return ii.lFrame.currentTNode}function li(t,e){ii.lFrame.currentTNode=t,ii.lFrame.isParent=e}function hi(){return ii.lFrame.isParent}function ci(){ii.lFrame.isParent=!1}function ui(){return ii.checkNoChangesMode}function di(t){ii.checkNoChangesMode=t}function pi(){const t=ii.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function fi(){return ii.lFrame.bindingIndex}function gi(){return ii.lFrame.bindingIndex++}function mi(t){const e=ii.lFrame,i=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,i}function yi(t,e){const i=ii.lFrame;i.bindingIndex=i.bindingRootIndex=t,vi(e)}function vi(t){ii.lFrame.currentDirectiveIndex=t}function bi(){return ii.lFrame.currentQueryIndex}function xi(t){ii.lFrame.currentQueryIndex=t}function _i(t,e){const i=Ci();ii.lFrame=i,i.currentTNode=e,i.lView=t}function wi(t){const e=Ci(),i=t[1];ii.lFrame=e,e.currentTNode=i.firstChild,e.lView=t,e.tView=i,e.contextLView=t,e.bindingIndex=i.bindingStartIndex}function Ci(){const t=ii.lFrame,e=null===t?null:t.child;return null===e?ki(t):e}function ki(t){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function Si(){const t=ii.lFrame;return ii.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Ai=Si;function Ei(){const t=Si();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Mi(){return ii.lFrame.selectedIndex}function Ti(t){ii.lFrame.selectedIndex=t}function Di(){const t=ii.lFrame;return Ye(t.tView,t.selectedIndex)}function Pi(){ii.lFrame.currentNamespace=je}function Oi(t,e){for(let i=e.directiveStart,s=e.directiveEnd;i=s)break}else e[o]<0&&(t[18]+=65536),(r>11>16&&(3&t[2])===e&&(t[2]+=2048,r.call(o)):r.call(o)}const Ni=-1;class ji{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function zi(t,e,i){const s=We(t);let n=0;for(;ne){o=r-1;break}}}for(;r>16,s=e;for(;i>0;)s=s[15],i--;return s}function qi(t){return"string"==typeof t?t:null==t?"":""+t}function $i(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():qi(t)}const Ki=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Tt))();function Zi(t){return t instanceof Function?t():t}let Qi=!0;function Ji(t){const e=Qi;return Qi=t,e}let ts=0;function es(t,e){const i=ss(t,e);if(-1!==i)return i;const s=e[1];s.firstCreatePass&&(t.injectorIndex=e.length,is(s.data,t),is(e,null),is(s.blueprint,null));const n=ns(t,e),r=t.injectorIndex;if(Ui(n)){const t=Xi(n),i=Yi(n,e),s=i[1].data;for(let n=0;n<8;n++)e[r+n]=i[t+n]|s[t+n]}return e[r+8]=n,r}function is(t,e){t.push(0,0,0,0,0,0,0,0,e)}function ss(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function ns(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let i=0,s=null,n=e;for(;null!==n;){const t=n[1],e=t.type;if(s=2===e?t.declTNode:1===e?n[6]:null,null===s)return Ni;if(i++,n=n[15],-1!==s.injectorIndex)return s.injectorIndex|i<<16}return Ni}function rs(t,e,i){!function(t,e,i){let s;"string"==typeof i?s=i.charCodeAt(0)||0:i.hasOwnProperty(Bt)&&(s=i[Bt]),null==s&&(s=i[Bt]=ts++);const n=255&s,r=1<0?255&e:e}(i);if("function"==typeof n){_i(e,t);try{const t=n();if(null!=t||s&ot.Optional)return t;throw new Error(`No provider for ${$i(i)}!`)}finally{Ai()}}else if("number"==typeof n){if(-1===n)return new ps(t,e);let r=null,o=ss(t,e),a=Ni,l=s&ot.Host?e[16][6]:null;for((-1===o||s&ot.SkipSelf)&&(a=-1===o?ns(t,e):e[o+8],a!==Ni&&ds(s,!1)?(r=e[1],o=Xi(a),e=Yi(a,e)):o=-1);-1!==o;){const t=e[1];if(us(n,o,t.data)){const t=ls(o,e,i,r,s,l);if(t!==as)return t}a=e[o+8],a!==Ni&&ds(s,e[1].data[o+8]===l)&&us(n,o,e)?(r=t,o=Xi(a),e=Yi(a,e)):o=-1}}}if(s&ot.Optional&&void 0===n&&(n=null),0==(s&(ot.Self|ot.Host))){const t=e[9],r=Xt(void 0);try{return t?t.get(i,n,s&ot.Optional):Kt(i,n,s&ot.Optional)}finally{Xt(r)}}if(s&ot.Optional)return n;throw new Error(`NodeInjector: NOT_FOUND [${$i(i)}]`)}const as={};function ls(t,e,i,s,n,r){const o=e[1],a=o.data[t+8],l=hs(a,o,i,null==s?Te(a)&&Qi:s!=o&&2===a.type,n&ot.Host&&r===a);return null!==l?cs(e,o,l,a):as}function hs(t,e,i,s,n){const r=t.providerIndexes,o=e.data,a=1048575&r,l=t.directiveStart,h=r>>20,c=n?a+h:t.directiveEnd;for(let u=s?a:a+h;u=l&&t.type===i)return u}if(n){const t=o[l];if(t&&Pe(t)&&t.type===i)return l}return null}function cs(t,e,i,s){let n=t[i];const r=e.data;if(n instanceof ji){const o=n;if(o.resolving)throw new Error("Circular dep for "+$i(r[i]));const a=Ji(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?Xt(o.injectImpl):null;_i(t,s);try{n=t[i]=o.factory(void 0,r,t,s),e.firstCreatePass&&i>=s.directiveStart&&function(t,e,i){const{ngOnChanges:s,ngOnInit:n,ngDoCheck:r}=e.type.prototype;if(s){const s=Re(e);(i.preOrderHooks||(i.preOrderHooks=[])).push(t,s),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,s)}n&&(i.preOrderHooks||(i.preOrderHooks=[])).push(0-t,n),r&&((i.preOrderHooks||(i.preOrderHooks=[])).push(t,r),(i.preOrderCheckHooks||(i.preOrderCheckHooks=[])).push(t,r))}(i,r[i],e)}finally{null!==l&&Xt(l),Ji(a),o.resolving=!1,Ai()}}return n}function us(t,e,i){const s=64&t,n=32&t;let r;return r=128&t?s?n?i[e+7]:i[e+6]:n?i[e+5]:i[e+4]:s?n?i[e+3]:i[e+2]:n?i[e+1]:i[e],!!(r&1<{const t=fs(Ct(e));return t?t():null};let i=we(e);if(null===i){const t=pt(e);i=t&&t.factory}return i||null}function gs(t){return J(()=>{const e=t.prototype.constructor,i=e[Rt]||fs(e),s=Object.prototype;let n=Object.getPrototypeOf(t.prototype).constructor;for(;n&&n!==s;){const t=n[Rt]||fs(n);if(t&&t!==i)return t;n=Object.getPrototypeOf(n)}return t=>new t})}function ms(t){return t.ngDebugContext}function ys(t){return t.ngOriginalError}function vs(t,...e){t.error(...e)}class bs{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),i=this._findContext(t),s=function(t){return t.ngErrorLogger||vs}(t);s(this._console,"ERROR",t),e&&s(this._console,"ORIGINAL ERROR",e),i&&s(this._console,"ERROR CONTEXT",i)}_findContext(t){return t?ms(t)?ms(t):this._findContext(ys(t)):null}_findOriginalError(t){let e=ys(t);for(;e&&ys(e);)e=ys(e);return e}}class xs{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}function _s(t){return t instanceof xs?t.changingThisBreaksApplicationSecurity:t}function ws(t,e){const i=function(t){return t instanceof xs&&t.getTypeName()||null}(t);if(null!=i&&i!==e){if("ResourceURL"===i&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${i} (see http://g.co/ng/security#xss)`)}return i===e}let Cs=!0,ks=!1;function Ss(){return ks=!0,Cs}class As{getInertBodyElement(t){t=""+t;try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class Es{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const i=this.inertDocument.createElement("body");return i.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let s=e.length-1;0Ds(t.trim())).join(", ")),this.buf.push(" ",e,'="',Us(o),'"')}var s;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Fs.hasOwnProperty(e)&&!Ls.hasOwnProperty(e)&&(this.buf.push(""))}chars(t){this.buf.push(Us(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e}}const Vs=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Gs=/([^\#-~ |!])/g;function Us(t){return t.replace(/&/g,"&").replace(Vs,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Gs,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(//g,">")}let Xs;function Ys(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var qs=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function $s(t){const e=Zs();return e?e.sanitize(qs.HTML,t)||"":ws(t,"HTML")?_s(t):function(t,e){let i=null;try{Xs=Xs||function(t){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(t){return!1}}()?new As:new Es(t)}(t);let s=e?String(e):"";i=Xs.getInertBodyElement(s);let n=5,r=s;do{if(0===n)throw new Error("Failed to sanitize html because the input is unstable");n--,s=r,r=i.innerHTML,i=Xs.getInertBodyElement(s)}while(s!==r);const o=new Ws,a=o.sanitizeChildren(Ys(i)||i);return Ss()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(i){const t=Ys(i)||i;for(;t.firstChild;)t.removeChild(t.firstChild)}}}(He(),qi(t))}function Ks(t){const e=Zs();return e?e.sanitize(qs.URL,t)||"":ws(t,"URL")?_s(t):Ds(qi(t))}function Zs(){const t=ni();return t&&t[12]}function Qs(t,e){t.__ngContext__=e}function Js(t,e,i){let s=t.length;for(;;){const n=t.indexOf(e,i);if(-1===n)return n;if(0===n||t.charCodeAt(n-1)<=32){const i=e.length;if(n+i===s||t.charCodeAt(n+i)<=32)return n}i=n+1}}const tn="ng-template";function en(t,e,i){let s=0;for(;sr?"":n[c+1].toLowerCase();const e=8&s?t:null;if(e&&-1!==Js(e,h,0)||2&s&&h!==t){if(on(s))return!1;o=!0}}}}else{if(!o&&!on(s)&&!on(l))return!1;if(o&&on(l))continue;o=!1,s=l|1&s}}return on(s)||o}function on(t){return 0==(1&t)}function an(t,e,i,s){if(null===e)return-1;let n=0;if(s||!i){let i=!1;for(;n-1)for(i++;i0?'="'+e+'"':"")+"]"}else 8&s?n+="."+o:4&s&&(n+=" "+o);else""===n||on(o)||(e+=cn(r,n),n=""),s=o,r=r||!on(s);i++}return""!==n&&(e+=cn(r,n)),e}const dn={};function pn(t){const e=t[3];return Ee(e)?e[3]:e}function fn(t){return mn(t[13])}function gn(t){return mn(t[4])}function mn(t){for(;null!==t&&!Ee(t);)t=t[4];return t}function yn(t){vn(ri(),ni(),Mi()+t,ui())}function vn(t,e,i,s){if(!s)if(3==(3&e[2])){const s=t.preOrderCheckHooks;null!==s&&Li(e,s,i)}else{const s=t.preOrderHooks;null!==s&&Ii(e,s,0,i)}Ti(i)}function bn(t,e){return t<<17|e<<2}function xn(t){return t>>17&32767}function _n(t){return 2|t}function wn(t){return(131068&t)>>2}function Cn(t,e){return-131069&t|e<<2}function kn(t){return 1|t}function Sn(t,e){const i=t.contentQueries;if(null!==i)for(let s=0;ske&&vn(t,e,0,ui()),i(s,n)}finally{Ti(r)}}function Ln(t,e,i){if(Me(e)){const s=e.directiveEnd;for(let n=e.directiveStart;n0&&function t(e){for(let s=fn(e);null!==s;s=gn(s))for(let e=Se;e0&&t(i)}const i=e[1].components;if(null!==i)for(let s=0;s0&&t(n)}}(i)}}function er(t,e){const i=$e(e,t),s=i[1];!function(t,e){for(let i=e.length;iPromise.resolve(null))();function lr(t){return t[7]||(t[7]=[])}function hr(t,e){const i=t[9],s=i?i.get(bs,null):null;s&&s.handleError(e)}function cr(t,e,i,s,n){for(let r=0;r0&&(t[i-1][4]=s[4]);const o=se(t,Se+e);Sr(s[1],n=s,n[11],2,null,null),n[0]=null,n[6]=null;const a=o[19];null!==a&&a.detachView(o[1]),s[3]=null,s[4]=null,s[2]&=-129}var n;return s}function gr(t,e){if(!(256&e[2])){const i=e[11];We(i)&&i.destroyNode&&Sr(t,e,i,3,null,null),function(t){let e=t[13];if(!e)return mr(t[1],t);for(;e;){let i=null;if(Ae(e))i=e[13];else{const t=e[10];t&&(i=t)}if(!i){for(;e&&!e[4]&&e!==t;)Ae(e)&&mr(e[1],e),e=e[3];null===e&&(e=t),Ae(e)&&mr(e[1],e),i=e&&e[4]}e=i}}(e)}}function mr(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let i;if(null!=t&&null!=(i=t.destroyHooks))for(let s=0;s=0?t[a]():t[-a].unsubscribe(),s+=2}else i[s].call(t[i[s+1]]);e[7]=null}}(t,e),1===e[1].type&&We(e[11])&&e[11].destroy();const i=e[17];if(null!==i&&Ee(e[3])){i!==e[3]&&pr(i,e);const s=e[19];null!==s&&s.detachView(t)}}}function yr(t,e,i){let s=e.parent;for(;null!=s&&(3===s.type||4===s.type);)s=(e=s).parent;if(null===s)return i[0];if(e&&4===e.type&&4&e.flags)return Xe(e,i).parentNode;if(2&s.flags){const e=t.data,i=e[e[s.index].directiveStart].encapsulation;if(i!==he.ShadowDom&&i!==he.Native)return null}return Xe(s,i)}function vr(t,e,i,s){We(t)?t.insertBefore(e,i,s):e.insertBefore(i,s,!0)}function br(t,e,i){We(t)?t.appendChild(e,i):e.appendChild(i)}function xr(t,e,i,s){null!==s?vr(t,e,i,s):br(t,e,i)}function _r(t,e){return We(t)?t.parentNode(e):e.parentNode}function wr(t,e){return 3===t.type||4===t.type?Xe(t,e):null}function Cr(t,e,i,s){const n=yr(t,s,e);if(null!=n){const t=e[11],r=wr(s.parent||e[6],e);if(Array.isArray(i))for(let e=0;e-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}gr(this._lView[1],this._lView)}onDestroy(t){Nn(this._lView[1],this._lView,null,t)}markForCheck(){sr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){nr(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,i){di(!0);try{nr(t,e,i)}finally{di(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Sr(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Dr extends Tr{constructor(t){super(t),this._view=t}detectChanges(){rr(this._view)}checkNoChanges(){!function(t){di(!0);try{rr(t)}finally{di(!1)}}(this._view)}get context(){return null}}let Pr,Or,Lr;function Ir(t,e,i){return Pr||(Pr=class extends t{}),new Pr(Xe(e,i))}function Rr(t,e,i,s){return Or||(Or=class extends t{constructor(t,e,i){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t){const e=this._declarationTContainer.tViews,i=En(this._declarationView,e,t,16,null,e.declTNode,null,null,null,null);i[17]=this._declarationView[this._declarationTContainer.index];const s=this._declarationView[19];return null!==s&&(i[19]=s.createEmbeddedView(e)),Tn(e,i,t),new Tr(i)}}),0===i.type?new Or(s,i,Ir(e,i,s)):null}function Br(t,e,i,s){let n;Lr||(Lr=class extends t{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostView=i}get element(){return Ir(e,this._hostTNode,this._hostView)}get injector(){return new ps(this._hostTNode,this._hostView)}get parentInjector(){const t=ns(this._hostTNode,this._hostView);if(Ui(t)){const e=Yi(t,this._hostView),i=Xi(t);return new ps(e[1].data[i+8],e)}return new ps(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-Se}createEmbeddedView(t,e,i){const s=t.createEmbeddedView(e||{});return this.insert(s,i),s}createComponent(t,e,i,s,n){const r=i||this.parentInjector;if(!n&&null==t.ngModule&&r){const t=r.get(Jt,null);t&&(n=t)}const o=t.create(r,s,void 0,n);return this.insert(o.hostView,e),o}insert(t,e){const i=t._lView,s=i[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Ee(i[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=i[3],s=new Lr(e,e[6],e[3]);s.detach(s.indexOf(t))}}const n=this._adjustIndex(e),r=this._lContainer;!function(t,e,i,s){const n=Se+s,r=i.length;s>0&&(i[n-1][4]=e),s{class t{}return t.__NG_ELEMENT_ID__=()=>Nr(),t})();const Nr=function(t=!1){return function(t,e,i){if(!i&&Te(t)){const i=$e(t.index,e);return new Tr(i,i)}return 2===t.type||0===t.type||3===t.type||4===t.type?new Tr(e[16],e):null}(ai(),ni(),t)},jr=Function,zr=new Ft("Set Injector scope."),Hr={},Wr={},Vr=[];let Gr=void 0;function Ur(){return void 0===Gr&&(Gr=new Qt),Gr}function Xr(t,e=null,i=null,s){return new Yr(t,i,e||Ur(),s)}class Yr{constructor(t,e,i,s=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const n=[];e&&ee(e,i=>this.processProvider(i,t,e)),ee([t],t=>this.processInjectorType(t,[],n)),this.records.set(Nt,Kr(void 0,this));const r=this.records.get(zr);this.scope=null!=r?r.value:null,this.source=s||("object"==typeof t?null:bt(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=jt,i=ot.Default){this.assertNotDestroyed();const s=Ut(this);try{if(!(i&ot.SkipSelf)){let e=this.records.get(t);if(void 0===e){const i=("function"==typeof(n=t)||"object"==typeof n&&n instanceof Ft)&&ut(t);e=i&&this.injectableDefInScope(i)?Kr(qr(t),Hr):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(i&ot.Self?Ur():this.parent).get(t,e=i&ot.Optional&&e===jt?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(bt(t)),s)throw r;return function(t,e,i,s){const n=t.ngTempTokenPath;throw e[Ht]&&n.unshift(e[Ht]),t.message=function(t,e,i,s=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let n=bt(e);if(Array.isArray(e))n=e.map(bt).join(" -> ");else if("object"==typeof e){let t=[];for(let i in e)if(e.hasOwnProperty(i)){let s=e[i];t.push(i+":"+("string"==typeof s?JSON.stringify(s):bt(s)))}n=`{${t.join(", ")}}`}return`${i}${s?"("+s+")":""}[${n}]: ${t.replace(zt,"\n ")}`}("\n"+t.message,n,i,s),t.ngTokenPath=n,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{Ut(s)}var n}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,i)=>t.push(bt(i))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,i){if(!(t=Ct(t)))return!1;let s=pt(t);const n=null==s&&t.ngModule||void 0,r=void 0===n?t:n,o=-1!==i.indexOf(r);if(void 0!==n&&(s=pt(n)),null==s)return!1;if(null!=s.imports&&!o){let t;i.push(r);try{ee(s.imports,s=>{this.processInjectorType(s,e,i)&&(void 0===t&&(t=[]),t.push(s))})}finally{}if(void 0!==t)for(let e=0;ethis.processProvider(t,i,s||Vr))}}this.injectorDefTypes.add(r),this.records.set(r,Kr(s.factory,Hr));const a=s.providers;if(null!=a&&!o){const e=t;ee(a,t=>this.processProvider(t,e,a))}return void 0!==n&&void 0!==t.providers}processProvider(t,e,i){let s=Qr(t=Ct(t))?t:Ct(t&&t.provide);const n=function(t,e,i){return Zr(t)?Kr(void 0,t.useValue):Kr($r(t),Hr)}(t);if(Qr(t)||!0!==t.multi)this.records.get(s);else{let e=this.records.get(s);e||(e=Kr(void 0,Hr,!0),e.factory=()=>Zt(e.multi),this.records.set(s,e)),s=t,e.multi.push(t)}this.records.set(s,n)}hydrate(t,e){var i;return e.value===Hr&&(e.value=Wr,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(i=e.value)&&"object"==typeof i&&"function"==typeof i.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function qr(t){const e=ut(t),i=null!==e?e.factory:we(t);if(null!==i)return i;const s=pt(t);if(null!==s)return s.factory;if(t instanceof Ft)throw new Error(`Token ${bt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const i=ne(e,"?");throw new Error(`Can't resolve all parameters for ${bt(t)}: (${i.join(", ")}).`)}const i=function(t){const e=t&&(t[ft]||t[yt]||t[mt]&&t[mt]());if(e){const i=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${i}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${i}" class.`),e}return null}(t);return null!==i?()=>i.factory(t):()=>new t}(t);throw new Error("unreachable")}function $r(t,e,i){let s=void 0;if(Qr(t)){const e=Ct(t);return we(e)||qr(e)}if(Zr(t))s=()=>Ct(t.useValue);else if((n=t)&&n.useFactory)s=()=>t.useFactory(...Zt(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))s=()=>qt(Ct(t.useExisting));else{const e=Ct(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return we(e)||qr(e);s=()=>new e(...Zt(t.deps))}var n;return s}function Kr(t,e,i=!1){return{factory:t,value:e,multi:i?[]:void 0}}function Zr(t){return null!==t&&"object"==typeof t&&Wt in t}function Qr(t){return"function"==typeof t}const Jr=function(t,e,i){return function(t,e=null,i=null,s){const n=Xr(t,e,i,s);return n._resolveInjectorDefTypes(),n}({name:i},e,t,i)};let to=(()=>{class t{static create(t,e){return Array.isArray(t)?Jr(t,e,""):Jr(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=jt,t.NULL=new Qt,t.\u0275prov=ht({token:t,providedIn:"any",factory:()=>qt(Nt)}),t.__NG_ELEMENT_ID__=-1,t})();const eo=new Ft("AnalyzeForEntryComponents");function io(t,e,i){let s=i?t.styles:null,n=i?t.classes:null,r=0;if(null!==e)for(let o=0;o=0;s--){const n=t[s];n.hostVars=e+=n.hostVars,n.hostAttrs=Vi(n.hostAttrs,i=Vi(i,n.hostAttrs))}}(s)}function ro(t){return t===ce?{}:t===ue?[]:t}function oo(t,e){const i=t.viewQuery;t.viewQuery=i?(t,s)=>{e(t,s),i(t,s)}:e}function ao(t,e){const i=t.contentQueries;t.contentQueries=i?(t,s,n)=>{e(t,s,n),i(t,s,n)}:e}function lo(t,e){const i=t.hostBindings;t.hostBindings=i?(t,s)=>{e(t,s),i(t,s)}:e}let ho=null;function co(){if(!ho){const t=Tt.Symbol;if(t&&t.iterator)ho=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;ea(Ge(t[s.index])).target:s.index;if(We(i)){let o=null;if(!a&&l&&(o=function(t,e,i,s){const n=t.cleanup;if(null!=n)for(let r=0;ri?t[i]:null}"string"==typeof t&&(r+=2)}return null}(t,e,n,s.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,u=!1;else{r=Ro(s,e,r,!1);const t=i.listen(p.name||f,n,r);c.push(r,t),h&&h.push(n,m,g,g+1)}}else r=Ro(s,e,r,!0),f.addEventListener(n,r,o),c.push(r),h&&h.push(n,m,g,o)}const d=s.outputs;let p;if(u&&null!==d&&(p=d[n])){const t=p.length;if(t)for(let i=0;i0;)e=e[15],t--;return e}(t,ii.lFrame.contextLView))[8]}(t)}function Fo(t,e){let i=null;const s=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let n=0;n=0}const Xo={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Yo(t){return t.substring(Xo.key,Xo.keyEnd)}function qo(t,e){const i=Xo.textEnd;return i===e?-1:(e=Xo.keyEnd=function(t,e,i){for(;e32;)e++;return e}(t,Xo.key=e,i),$o(t,e,i))}function $o(t,e,i){for(;e=0;i=qo(e,i))re(t,Yo(e),!0)}function ta(t,e,i,s){const n=ni(),r=ri(),o=mi(2);r.firstUpdatePass&&ia(r,t,o,s),e!==dn&&mo(n,o,e)&&ra(r,r.data[Mi()+ke],n,n[11],t,n[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=bt(_s(t)))),t}(e,i),s,o)}function ea(t,e){return e>=t.expandoStartIndex}function ia(t,e,i,s){const n=t.data;if(null===n[i+1]){const r=n[Mi()+ke],o=ea(t,i);la(r,s)&&null===e&&!o&&(e=!1),e=function(t,e,i,s){const n=function(t){const e=ii.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let r=s?e.residualClasses:e.residualStyles;if(null===n)0===(s?e.classBindings:e.styleBindings)&&(i=na(i=sa(null,t,e,i,s),e.attrs,s),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==n)if(i=sa(n,t,e,i,s),null===r){let i=function(t,e,i){const s=i?e.classBindings:e.styleBindings;if(0!==wn(s))return t[xn(s)]}(t,e,s);void 0!==i&&Array.isArray(i)&&(i=sa(null,t,e,i[1],s),i=na(i,e.attrs,s),function(t,e,i,s){t[xn(i?e.classBindings:e.styleBindings)]=s}(t,e,s,i))}else r=function(t,e,i){let s=void 0;const n=e.directiveEnd;for(let r=1+e.directiveStylingLast;r0)&&(c=!0)}else h=i;if(n)if(0!==l){const e=xn(t[a+1]);t[s+1]=bn(e,a),0!==e&&(t[e+1]=Cn(t[e+1],s)),t[a+1]=131071&t[a+1]|s<<17}else t[s+1]=bn(a,0),0!==a&&(t[a+1]=Cn(t[a+1],s)),a=s;else t[s+1]=bn(l,0),0===a?a=s:t[l+1]=Cn(t[l+1],s),l=s;c&&(t[s+1]=_n(t[s+1])),Go(t,h,s,!0),Go(t,h,s,!1),function(t,e,i,s,n){const r=n?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&ae(r,e)>=0&&(i[s+1]=kn(i[s+1]))}(e,h,t,s,r),o=bn(a,l),r?e.classBindings=o:e.styleBindings=o}(n,r,e,i,o,s)}}function sa(t,e,i,s,n){let r=null;const o=i.directiveEnd;let a=i.directiveStylingLast;for(-1===a?a=i.directiveStart:a++;a0;){const e=t[n],r=Array.isArray(e),l=r?e[1]:e,h=null===l;let c=i[n+1];c===dn&&(c=h?Vo:void 0);let u=h?oe(c,s):l===s?c:void 0;if(r&&!aa(u)&&(u=oe(e,s)),aa(u)&&(a=u,o))return a;const d=t[n+1];n=o?xn(d):wn(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=oe(t,s))}return a}function aa(t){return void 0!==t}function la(t,e){return 0!=(t.flags&(e?16:32))}function ha(t,e=""){const i=ni(),s=ri(),n=t+ke,r=s.firstCreatePass?Mn(s,t,2,null,null):s.data[n],o=i[n]=function(t,e){return We(e)?e.createText(t):e.createTextNode(t)}(e,i[11]);Cr(s,i,o,r),li(r,!1)}function ca(t){return ua("",t,""),ca}function ua(t,e,i){const s=ni(),n=bo(s,t,e,i);return n!==dn&&ur(s,Mi(),n),ua}function da(t,e,i,s,n){const r=ni(),o=xo(r,t,e,i,s,n);return o!==dn&&ur(r,Mi(),o),da}function pa(t,e,i){const s=ni();return mo(s,gi(),e)&&zn(ri(),Di(),s,t,e,s[11],i,!0),pa}function fa(t,e,i,s,n){if(t=Ct(t),Array.isArray(t))for(let r=0;r>20;if(Qr(t)||!t.multi){const s=new ji(l,n,Co),p=ya(a,e,n?c:c+d,u);-1===p?(rs(es(h,o),r,a),ga(r,t,e.length),e.push(a),h.directiveStart++,h.directiveEnd++,n&&(h.providerIndexes+=1048576),i.push(s),o.push(s)):(i[p]=s,o[p]=s)}else{const p=ya(a,e,c+d,u),f=ya(a,e,c,c+d),g=p>=0&&i[p],m=f>=0&&i[f];if(n&&!m||!n&&!g){rs(es(h,o),r,a);const c=function(t,e,i,s,n){const r=new ji(t,i,Co);return r.multi=[],r.index=e,r.componentProviders=0,ma(r,n,s&&!i),r}(n?ba:va,i.length,n,s,l);!n&&m&&(i[f].providerFactory=c),ga(r,t,e.length,0),e.push(a),h.directiveStart++,h.directiveEnd++,n&&(h.providerIndexes+=1048576),i.push(c),o.push(c)}else ga(r,t,p>-1?p:f,ma(i[n?f:p],l,!n&&s));!n&&s&&m&&i[f].componentProviders++}}}function ga(t,e,i,s){const n=Qr(e);if(n||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!n&&e.multi){const t=o.indexOf(i);-1===t?o.push(i,[s,r]):o[t+1].push(s,r)}else o.push(i,r)}}}function ma(t,e,i){return i&&t.componentProviders++,t.multi.push(e)-1}function ya(t,e,i,s){for(let n=i;n{i.providersResolver=(i,s)=>function(t,e,i){const s=ri();if(s.firstCreatePass){const n=Pe(t);fa(i,s.data,s.blueprint,n,!0),fa(e,s.data,s.blueprint,n,!1)}}(i,s?s(t):t,e)}}class wa{}class Ca{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${bt(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let ka=(()=>{class t{}return t.NULL=new Ca,t})(),Sa=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>Aa(t),t})();const Aa=function(t){return Ir(t,ai(),ni())};class Ea{}var Ma=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});let Ta=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Da(),t})();const Da=function(){const t=ni(),e=$e(ai().index,t);return function(t){const e=t[11];if(We(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(Ae(e)?e:t)};let Pa=(()=>{class t{}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>null}),t})();class Oa{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const La=new Oa("10.1.6");class Ia{constructor(){}supports(t){return po(t)}create(t){return new Ba(t)}}const Ra=(t,e)=>e;class Ba{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Ra}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,s=0,n=null;for(;e||i;){const r=!i||e&&e.currentIndex{s=this._trackByFn(e,t),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,t,s,e)),Object.is(n.item,t)||this._addIdentityChange(n,t)):(n=this._mismatch(n,t,s,e),r=!0),n=n._next,e++}),this.length=e;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,s){let n;return null===t?n=this._itTail:(n=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,s))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,n,s)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,n,s)):t=this._addAfter(new Fa(e,i),n,s),t}_verifyReinsertion(t,e,i,s){let n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==n?t=this._reinsertAfter(n,t._prev,s):t.currentIndex!=s&&(t.currentIndex=s,this._addToMoves(t,s)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const s=t._prevRemoved,n=t._nextRemoved;return null===s?this._removalsHead=n:s._nextRemoved=n,null===n?this._removalsTail=s:n._prevRemoved=s,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const s=null===e?this._itHead:e._next;return t._next=s,t._prev=e,null===s?this._itTail=t:s._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new ja),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ja),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Fa{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class Na{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class ja{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new Na,this.map.set(e,i)),i.add(t)}get(t,e){const i=this.map.get(t);return i?i.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function za(t,e,i){const s=t.previousIndex;if(null===s)return s;let n=0;return i&&s{if(e&&e.key===i)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(i,t);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const i=this._records.get(t);this._maybeAddToChanges(i,e);const s=i._prev,n=i._next;return s&&(s._next=n),n&&(n._prev=s),i._next=null,i._prev=null,i}const i=new Va(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class Va{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let Ga=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(null!=i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>{if(!i)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,i)},deps:[[t,new rt,new st]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${i=t,i.name||typeof i}'`);var i}}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>new t([new Ia])}),t})(),Ua=(()=>{class t{constructor(t){this.factories=t}static create(e,i){if(i){const t=i.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>{if(!i)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,i)},deps:[[t,new rt,new st]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>new t([new Ha])}),t})();const Xa=[new Ha],Ya=new Ga([new Ia]),qa=new Ua(Xa);let $a=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Ka(t,Sa),t})();const Ka=function(t,e){return Rr(t,e,ai(),ni())};let Za=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Qa(t,Sa),t})();const Qa=function(t,e){return Br(t,e,ai(),ni())},Ja={};class tl extends ka{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=_e(t);return new sl(e,this.ngModule)}}function el(t){const e=[];for(let i in t)t.hasOwnProperty(i)&&e.push({propName:t[i],templateName:i});return e}const il=new Ft("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Ki});class sl extends wa{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(un).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return el(this.componentDef.inputs)}get outputs(){return el(this.componentDef.outputs)}create(t,e,i,s){const n=(s=s||this.ngModule)?function(t,e){return{get:(i,s,n)=>{const r=t.get(i,Ja,n);return r!==Ja||s===Ja?r:e.get(i,s,n)}}}(t,s.injector):t,r=n.get(Ea,Ve),o=n.get(Pa,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",h=i?function(t,e,i){if(We(t))return t.selectRootElement(e,i===he.ShadowDom);let s="string"==typeof e?t.querySelector(e):e;return s.textContent="",s}(a,i,this.componentDef.encapsulation):An(l,r.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?je:"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),c=this.componentDef.onPush?576:528,u={components:[],scheduler:Ki,clean:ar,playerHandler:null,flags:0},d=Fn(0,null,null,1,0,null,null,null,null,null),p=En(null,d,u,c,null,null,r,a,o,n);let f,g;wi(p);try{const t=function(t,e,i,s,n,r){const o=i[1];i[20]=t;const a=Mn(o,0,2,null,null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(io(a,l,!0),null!==t&&(zi(n,t,l),null!==a.classes&&Mr(n,t,a.classes),null!==a.styles&&Er(n,t,a.styles)));const h=s.createRenderer(t,e),c=En(i,Bn(e),null,e.onPush?64:16,i[20],a,s,h,null,null);return o.firstCreatePass&&(rs(es(a,i),o,e.type),Xn(o,a),qn(a,i.length,1)),ir(i,c),i[20]=c}(h,this.componentDef,p,r,a);if(h)if(i)zi(a,h,["ng-version",La.full]);else{const{attrs:t,classes:e}=function(t){const e=[],i=[];let s=1,n=2;for(;s0&&Mr(a,h,e.join(" "))}if(g=Ye(d,0),void 0!==e){const t=g.projection=[];for(let i=0;it(o,e)),e.contentQueries&&e.contentQueries(1,o,i.length-1);const a=ai();if(r.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){Ti(a.index-ke);const t=i[1];Wn(t,e),Vn(t,i,e.hostVars),Gn(e,o)}return o}(t,this.componentDef,p,u,[so]),Tn(d,p,null)}finally{Ei()}return new nl(this.componentType,f,Ir(Sa,g,p),p,g)}}class nl extends class{}{constructor(t,e,i,s,n){super(),this.location=i,this._rootLView=s,this._tNode=n,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new Dr(s),this.componentType=t}get injector(){return new ps(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const rl=void 0;var ol=["en",[["a","p"],["AM","PM"],rl],[["AM","PM"],rl,rl],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],rl,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],rl,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",rl,"{1} 'at' {0}",rl],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let al={};function ll(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let i=hl(e);if(i)return i;const s=e.split("-")[0];if(i=hl(s),i)return i;if("en"===s)return ol;throw new Error(`Missing locale data for the locale "${t}".`)}function hl(t){return t in al||(al[t]=Tt.ng&&Tt.ng.common&&Tt.ng.common.locales&&Tt.ng.common.locales[t]),al[t]}var cl=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const ul="en-US";let dl=ul;function pl(t){var e,i;i="Expected localeId to be defined",null==(e=t)&&function(t,e,i,s){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(i,e),"string"==typeof t&&(dl=t.toLowerCase().replace(/_/g,"-"))}const fl=new Map;class gl extends Jt{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new tl(this);const i=Ce(t),s=t[It]||null;s&&pl(s),this._bootstrapComponents=Zi(i.bootstrap),this._r3Injector=Xr(t,e,[{provide:Jt,useValue:this},{provide:ka,useValue:this.componentFactoryResolver}],bt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=to.THROW_IF_NOT_FOUND,i=ot.Default){return t===to||t===Jt||t===Nt?this:this._r3Injector.get(t,e,i)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class ml extends te{constructor(t){super(),this.moduleType=t,null!==Ce(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;(function(t,e,i){if(e&&e!==i)throw new Error(`Duplicate module registered for ${t} - ${bt(e)} vs ${bt(e.name)}`)})(t,fl.get(t),e),fl.set(t,e)}let i=e.\u0275mod.imports;i instanceof Function&&(i=i()),i&&i.forEach(e=>t(e))}(t)}create(t){return new gl(this.moduleType,t)}}function yl(t,e){const i=t[e];return i===dn?void 0:i}function vl(t,e,i,s,n,r){const o=e+i;return mo(t,o,n)?go(t,o+1,r?s.call(r,n):s(n)):yl(t,o+1)}function bl(t,e,i,s,n,r,o){const a=e+i;return yo(t,a,n,r)?go(t,a+2,o?s.call(o,n,r):s(n,r)):yl(t,a+2)}function xl(t,e){const i=ri();let s;const n=t+ke;i.firstCreatePass?(s=function(t,e){if(e)for(let i=e.length-1;i>=0;i--){const s=e[i];if(t===s.name)return s}throw new Error(`The pipe '${t}' could not be found!`)}(e,i.pipeRegistry),i.data[n]=s,s.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(n,s.onDestroy)):s=i.data[n];const r=s.factory||(s.factory=we(s.type)),o=Xt(Co);try{const e=Ji(!1),s=r();return Ji(e),function(t,e,i,s){const n=i+ke;n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=s}(i,ni(),t,s),s}finally{Xt(o)}}function _l(t,e,i){const s=ni(),n=qe(s,t);return kl(s,Cl(s,t)?vl(s,pi(),e,n.transform,i,n):n.transform(i))}function wl(t,e,i,s){const n=ni(),r=qe(n,t);return kl(n,Cl(n,t)?bl(n,pi(),e,r.transform,i,s,r):r.transform(i,s))}function Cl(t,e){return t[1].data[e+ke].pure}function kl(t,e){return uo.isWrapped(e)&&(e=uo.unwrap(e),t[fi()]=dn),e}const Sl=class extends C{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let s,n=t=>null,r=()=>null;t&&"object"==typeof t?(s=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(n=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(r=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(n=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),i&&(r=this.__isAsync?()=>{setTimeout(()=>i())}:()=>{i()}));const o=super.subscribe(s,n,r);return t instanceof u&&t.add(o),o}};function Al(){return this._results[co()]()}class El{constructor(){this.dirty=!0,this._results=[],this.changes=new Sl,this.length=0;const t=co(),e=El.prototype;e[t]||(e[t]=Al)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=function t(e,i){void 0===i&&(i=e);for(let s=0;s0)n.push(a[e/2]);else{const r=o[e+1],a=i[-s];for(let e=Se;e{class t{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(qt(Yl,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const $l=new Ft("AppId"),Kl={provide:$l,useFactory:function(){return`${Zl()}${Zl()}${Zl()}`},deps:[]};function Zl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Ql=new Ft("Platform Initializer"),Jl=new Ft("Platform ID"),th=new Ft("appBootstrapListener");let eh=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const ih=new Ft("LocaleId"),sh=new Ft("DefaultCurrencyCode");class nh{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const rh=function(t){return new ml(t)},oh=rh,ah=function(t){return Promise.resolve(rh(t))},lh=function(t){const e=rh(t),i=Zi(Ce(t).declarations).reduce((t,e)=>{const i=_e(e);return i&&t.push(new sl(i)),t},[]);return new nh(e,i)},hh=lh,ch=function(t){return Promise.resolve(lh(t))};let uh=(()=>{class t{constructor(){this.compileModuleSync=oh,this.compileModuleAsync=ah,this.compileModuleAndAllComponentsSync=hh,this.compileModuleAndAllComponentsAsync=ch}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const dh=(()=>Promise.resolve(0))();function ph(t){"undefined"==typeof Zone?dh.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class fh{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Sl(!1),this.onMicrotaskEmpty=new Sl(!1),this.onStable=new Sl(!1),this.onError=new Sl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.wtfZoneSpec&&(i._inner=i._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=e,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let t=Tt.requestAnimationFrame,e=Tt.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i);const s=e[Zone.__symbol__("OriginalDelegate")];s&&(e=s)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Tt,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,vh(t),yh(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),vh(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(i,s,n,r,o,a)=>{try{return bh(t),i.invokeTask(n,r,o,a)}finally{e&&"eventTask"===r.type&&e(),xh(t)}},onInvoke:(e,i,s,n,r,o,a)=>{try{return bh(t),e.invoke(s,n,r,o,a)}finally{xh(t)}},onHasTask:(e,i,s,n)=>{e.hasTask(s,n),i===s&&("microTask"==n.change?(t._hasPendingMicrotasks=n.microTask,vh(t),yh(t)):"macroTask"==n.change&&(t.hasPendingMacrotasks=n.macroTask))},onHandleError:(e,i,s,n)=>(e.handleError(s,n),t.runOutsideAngular(()=>t.onError.emit(n)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!fh.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(fh.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,s){const n=this._inner,r=n.scheduleEventTask("NgZoneEvent: "+s,t,mh,gh,gh);try{return n.runTask(r,e,i)}finally{n.cancelTask(r)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}function gh(){}const mh={};function yh(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function vh(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function bh(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function xh(t){t._nesting--,yh(t)}class _h{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Sl,this.onMicrotaskEmpty=new Sl,this.onStable=new Sl,this.onError=new Sl}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,s){return t.apply(e,i)}}let wh=(()=>{class t{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{fh.assertNotInAngularZone(),ph(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())ph(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,e,i){let s=-1;e&&e>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==s),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:s,updateCb:i})}whenStable(t,e,i){if(i&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,i){return[]}}return t.\u0275fac=function(e){return new(e||t)(qt(fh))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Ch=(()=>{class t{constructor(){this._applications=new Map,Ah.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,e=!0){return Ah.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class kh{addToWindow(t){}findTestabilityInTree(t,e,i){return null}}let Sh,Ah=new kh;const Eh=new Ft("AllowMultipleToken");class Mh{constructor(t,e){this.name=t,this.token=e}}function Th(t,e,i=[]){const s="Platform: "+e,n=new Ft(s);return(e=[])=>{let r=Dh();if(!r||r.injector.get(Eh,!1))if(t)t(i.concat(e).concat({provide:n,useValue:!0}));else{const t=i.concat(e).concat({provide:n,useValue:!0},{provide:zr,useValue:"platform"});!function(t){if(Sh&&!Sh.destroyed&&!Sh.injector.get(Eh,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Sh=t.get(Ph);const e=t.get(Ql,null);e&&e.forEach(t=>t())}(to.create({providers:t,name:s}))}return function(t){const e=Dh();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(n)}}function Dh(){return Sh&&!Sh.destroyed?Sh:null}let Ph=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const i=function(t,e){let i;return i="noop"===t?new _h:("zone.js"===t?void 0:t)||new fh({enableLongStackTrace:Ss(),shouldCoalesceEventChangeDetection:e}),i}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),s=[{provide:fh,useValue:i}];return i.run(()=>{const e=to.create({providers:s,parent:this.injector,name:t.moduleType.name}),n=t.create(e),r=n.injector.get(bs,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(()=>Ih(this._modules,n)),i.runOutsideAngular(()=>i.onError.subscribe({next:t=>{r.handleError(t)}})),function(t,e,i){try{const s=i();return Po(s)?s.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):s}catch(s){throw e.runOutsideAngular(()=>t.handleError(s)),s}}(r,i,()=>{const t=n.injector.get(ql);return t.runInitializers(),t.donePromise.then(()=>(pl(n.injector.get(ih,ul)||ul),this._moduleDoBootstrap(n),n))})})}bootstrapModule(t,e=[]){const i=Oh({},e);return function(t,e,i){const s=new ml(i);return Promise.resolve(s)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,i))}_moduleDoBootstrap(t){const e=t.injector.get(Lh);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${bt(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(qt(to))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function Oh(t,e){return Array.isArray(e)?e.reduce(Oh,t):Object.assign(Object.assign({},t),e)}let Lh=(()=>{class t{constructor(t,e,i,s,n,r){this._zone=t,this._console=e,this._injector=i,this._exceptionHandler=s,this._componentFactoryResolver=n,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Ss(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new v(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new v(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{fh.assertNotInAngularZone(),ph(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const i=this._zone.onUnstable.subscribe(()=>{fh.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),i.unsubscribe()}});this.isStable=U(o,a.pipe(t=>{return X()((e=Q,function(t){let i;i="function"==typeof e?e:function(){return e};const s=Object.create(t,K);return s.source=t,s.subjectFactory=i,s})(t));var e}))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let i;i=t instanceof wa?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(i.componentType);const s=i.isBoundToModule?void 0:this._injector.get(Jt),n=i.create(to.NULL,[],e||i.selector,s);n.onDestroy(()=>{this._unloadComponent(n)});const r=n.injector.get(wh,null);return r&&n.injector.get(Ch).registerApplication(n.location.nativeElement,r),this._loadComponent(n),Ss()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),n}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;Ih(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(th,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),Ih(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(qt(fh),qt(eh),qt(to),qt(bs),qt(ka),qt(ql))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function Ih(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}class Rh{}class Bh{}const Fh={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};let Nh=(()=>{class t{constructor(t,e){this._compiler=t,this._config=e||Fh}load(t){return this.loadAndCompile(t)}loadAndCompile(t){let[e,s]=t.split("#");return void 0===s&&(s="default"),i("zn8P")(e).then(t=>t[s]).then(t=>jh(t,e,s)).then(t=>this._compiler.compileModuleAsync(t))}loadFactory(t){let[e,s]=t.split("#"),n="NgFactory";return void 0===s&&(s="default",n=""),i("zn8P")(this._config.factoryPathPrefix+e+this._config.factoryPathSuffix).then(t=>t[s+n]).then(t=>jh(t,e,s))}}return t.\u0275fac=function(e){return new(e||t)(qt(uh),qt(Bh,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function jh(t,e,i){if(!t)throw new Error(`Cannot find '${i}' in '${e}'`);return t}const zh=Th(null,"core",[{provide:Jl,useValue:"unknown"},{provide:Ph,deps:[to]},{provide:Ch,deps:[]},{provide:eh,deps:[]}]),Hh=[{provide:Lh,useClass:Lh,deps:[fh,eh,to,bs,ka,ql]},{provide:il,deps:[fh],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:ql,useClass:ql,deps:[[new st,Yl]]},{provide:uh,useClass:uh,deps:[]},Kl,{provide:Ga,useFactory:function(){return Ya},deps:[]},{provide:Ua,useFactory:function(){return qa},deps:[]},{provide:ih,useFactory:function(t){return pl(t=t||"undefined"!=typeof $localize&&$localize.locale||ul),t},deps:[[new it(ih),new st,new rt]]},{provide:sh,useValue:"USD"}];let Wh=(()=>{class t{constructor(t){}}return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)(qt(Lh))},providers:Hh}),t})(),Vh=null;function Gh(){return Vh}const Uh=new Ft("DocumentToken");let Xh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:Yh,token:t,providedIn:"platform"}),t})();function Yh(){return qt($h)}const qh=new Ft("Location Initialized");let $h=(()=>{class t extends Xh{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=Gh().getLocation(),this._history=Gh().getHistory()}getBaseHrefFromDOM(){return Gh().getBaseHref(this._doc)}onPopState(t){Gh().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){Gh().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(t){this.location.pathname=t}pushState(t,e,i){Kh()?this._history.pushState(t,e,i):this.location.hash=i}replaceState(t,e,i){Kh()?this._history.replaceState(t,e,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(qt(Uh))},t.\u0275prov=ht({factory:Zh,token:t,providedIn:"platform"}),t})();function Kh(){return!!window.history.pushState}function Zh(){return new $h(qt(Uh))}function Qh(t,e){if(0==t.length)return e;if(0==e.length)return t;let i=0;return t.endsWith("/")&&i++,e.startsWith("/")&&i++,2==i?t+e.substring(1):1==i?t+e:t+"/"+e}function Jh(t){const e=t.match(/#|\?|$/),i=e&&e.index||t.length;return t.slice(0,i-("/"===t[i-1]?1:0))+t.slice(i)}function tc(t){return t&&"?"!==t[0]?"?"+t:t}let ec=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:ic,token:t,providedIn:"root"}),t})();function ic(t){const e=qt(Uh).location;return new nc(qt(Xh),e&&e.origin||"")}const sc=new Ft("appBaseHref");let nc=(()=>{class t extends ec{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Qh(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+tc(this._platformLocation.search),i=this._platformLocation.hash;return i&&t?`${e}${i}`:e}pushState(t,e,i,s){const n=this.prepareExternalUrl(i+tc(s));this._platformLocation.pushState(t,e,n)}replaceState(t,e,i,s){const n=this.prepareExternalUrl(i+tc(s));this._platformLocation.replaceState(t,e,n)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(qt(Xh),qt(sc,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),rc=(()=>{class t extends ec{constructor(t,e){super(),this._platformLocation=t,this._baseHref="",null!=e&&(this._baseHref=e)}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}path(t=!1){let e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e}prepareExternalUrl(t){const e=Qh(this._baseHref,t);return e.length>0?"#"+e:e}pushState(t,e,i,s){let n=this.prepareExternalUrl(i+tc(s));0==n.length&&(n=this._platformLocation.pathname),this._platformLocation.pushState(t,e,n)}replaceState(t,e,i,s){let n=this.prepareExternalUrl(i+tc(s));0==n.length&&(n=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,n)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(qt(Xh),qt(sc,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),oc=(()=>{class t{constructor(t,e){this._subject=new Sl,this._urlChangeListeners=[],this._platformStrategy=t;const i=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=Jh(lc(i)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+tc(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,lc(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",i=null){this._platformStrategy.pushState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+tc(e)),i)}replaceState(t,e="",i=null){this._platformStrategy.replaceState(i,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+tc(e)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(i=>i(t,e))}subscribe(t,e,i){return this._subject.subscribe({next:t,error:e,complete:i})}}return t.\u0275fac=function(e){return new(e||t)(qt(ec),qt(Xh))},t.normalizeQueryParams=tc,t.joinWithSlash=Qh,t.stripTrailingSlash=Jh,t.\u0275prov=ht({factory:ac,token:t,providedIn:"root"}),t})();function ac(){return new oc(qt(ec),qt(Xh))}function lc(t){return t.replace(/\/index.html$/,"")}var hc=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),cc=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),uc=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),dc=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),pc=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),fc=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function gc(t,e){return xc(ll(t)[cl.DateFormat],e)}function mc(t,e){return xc(ll(t)[cl.TimeFormat],e)}function yc(t,e){return xc(ll(t)[cl.DateTimeFormat],e)}function vc(t,e){const i=ll(t),s=i[cl.NumberSymbols][e];if(void 0===s){if(e===fc.CurrencyDecimal)return i[cl.NumberSymbols][fc.Decimal];if(e===fc.CurrencyGroup)return i[cl.NumberSymbols][fc.Group]}return s}function bc(t){if(!t[cl.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[cl.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function xc(t,e){for(let i=e;i>-1;i--)if(void 0!==t[i])return t[i];throw new Error("Locale data API: locale data undefined")}function _c(t){const[e,i]=t.split(":");return{hours:+e,minutes:+i}}const wc=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Cc={},kc=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Sc=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),Ac=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),Ec=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function Mc(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,(function(t,i){return null!=e&&i in e?e[i]:t}))),t}function Tc(t,e,i="-",s,n){let r="";(t<0||n&&t<=0)&&(n?t=1-t:(t=-t,r=i));let o=String(t);for(;o.length0||a>-i)&&(a+=i),t===Ac.Hours)0===a&&-12===i&&(a=12);else if(t===Ac.FractionalSeconds)return l=e,Tc(a,3).substr(0,l);var l;const h=vc(o,fc.MinusSign);return Tc(a,e,h,s,n)}}function Pc(t,e,i=uc.Format,s=!1){return function(n,r){return function(t,e,i,s,n,r){switch(i){case Ec.Months:return function(t,e,i){const s=ll(t),n=xc([s[cl.MonthsFormat],s[cl.MonthsStandalone]],e);return xc(n,i)}(e,n,s)[t.getMonth()];case Ec.Days:return function(t,e,i){const s=ll(t),n=xc([s[cl.DaysFormat],s[cl.DaysStandalone]],e);return xc(n,i)}(e,n,s)[t.getDay()];case Ec.DayPeriods:const o=t.getHours(),a=t.getMinutes();if(r){const t=function(t){const e=ll(t);return bc(e),(e[cl.ExtraData][2]||[]).map(t=>"string"==typeof t?_c(t):[_c(t[0]),_c(t[1])])}(e),i=function(t,e,i){const s=ll(t);bc(s);const n=xc([s[cl.ExtraData][0],s[cl.ExtraData][1]],e)||[];return xc(n,i)||[]}(e,n,s),r=t.findIndex(t=>{if(Array.isArray(t)){const[e,i]=t,s=o>=e.hours&&a>=e.minutes,n=o0?Math.floor(n/60):Math.ceil(n/60);switch(t){case Sc.Short:return(n>=0?"+":"")+Tc(o,2,r)+Tc(Math.abs(n%60),2,r);case Sc.ShortGMT:return"GMT"+(n>=0?"+":"")+Tc(o,1,r);case Sc.Long:return"GMT"+(n>=0?"+":"")+Tc(o,2,r)+":"+Tc(Math.abs(n%60),2,r);case Sc.Extended:return 0===s?"Z":(n>=0?"+":"")+Tc(o,2,r)+":"+Tc(Math.abs(n%60),2,r);default:throw new Error(`Unknown zone width "${t}"`)}}}function Lc(t,e=!1){return function(i,s){let n;if(e){const t=new Date(i.getFullYear(),i.getMonth(),1).getDay()-1,e=i.getDate();n=1+Math.floor((e+t)/7)}else{const t=(r=i,new Date(r.getFullYear(),r.getMonth(),r.getDate()+(4-r.getDay()))),e=function(t){const e=new Date(t,0,1).getDay();return new Date(t,0,1+(e<=4?4:11)-e)}(t.getFullYear()),s=t.getTime()-e.getTime();n=1+Math.round(s/6048e5)}var r;return Tc(n,t,vc(s,fc.MinusSign))}}const Ic={};function Rc(t,e){t=t.replace(/:/g,"");const i=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(i)?e:i}function Bc(t){return t instanceof Date&&!isNaN(t.valueOf())}const Fc=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Nc=".",jc="0";function zc(t){const e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}class Hc{}let Wc=(()=>{class t extends Hc{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return ll(t)[cl.PluralCase]}(e||this.locale)(t)){case cc.Zero:return"zero";case cc.One:return"one";case cc.Two:return"two";case cc.Few:return"few";case cc.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(qt(ih))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function Vc(t,e){e=encodeURIComponent(e);for(const i of t.split(";")){const t=i.indexOf("="),[s,n]=-1==t?[i,""]:[i.slice(0,t),i.slice(t+1)];if(s.trim()===e)return decodeURIComponent(n)}return null}let Gc=(()=>{class t{constructor(t,e,i,s){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=i,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(po(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+bt(t.item));this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(Co(Ga),Co(Ua),Co(Sa),Co(Ta))},t.\u0275dir=be({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})();class Uc{constructor(t,e,i,s){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=s}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Xc=(()=>{class t{constructor(t,e,i){this._viewContainer=t,this._template=e,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){Ss()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn(`trackBy must be a function, but received ${JSON.stringify(t)}. See https://angular.io/api/common/NgForOf#change-propagation for more information.`),this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const i=this._ngForOf;if(!this._differ&&i)try{this._differ=this._differs.find(i).create(this.ngForTrackBy)}catch(e){throw new Error(`Cannot find a differ supporting object '${i}' of type '${t=i,t.name||typeof t}'. NgFor only supports binding to Iterables such as Arrays.`)}}var t;if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const e=[];t.forEachOperation((t,i,s)=>{if(null==t.previousIndex){const i=this._viewContainer.createEmbeddedView(this._template,new Uc(null,this._ngForOf,-1,-1),null===s?void 0:s),n=new Yc(t,i);e.push(n)}else if(null==s)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const n=this._viewContainer.get(i);this._viewContainer.move(n,s);const r=new Yc(t,n);e.push(r)}});for(let i=0;i{this._viewContainer.get(t.currentIndex).context.$implicit=t.item})}_perViewChange(t,e){t.context.$implicit=e.item}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Co(Za),Co($a),Co(Ga))},t.\u0275dir=be({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();class Yc{constructor(t,e){this.record=t,this.view=e}}let qc=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new $c,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Kc("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Kc("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(Co(Za),Co($a))},t.\u0275dir=be({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class $c{constructor(){this.$implicit=null,this.ngIf=null}}function Kc(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${bt(e)}'.`)}class Zc{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Qc=(()=>{class t{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e{class t{constructor(t,e,i){this.ngSwitch=i,i._addCase(),this._view=new Zc(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(Co(Za),Co($a),Co(Qc,1))},t.\u0275dir=be({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})();function tu(t,e){return Error(`InvalidPipeArgument: '${e}' for pipe '${bt(t)}'`)}const eu=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g;let iu=(()=>{class t{transform(e){if(!e)return e;if("string"!=typeof e)throw tu(t,e);return e.replace(eu,t=>t[0].toUpperCase()+t.substr(1).toLowerCase())}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=xe({name:"titlecase",type:t,pure:!0}),t})(),su=(()=>{class t{transform(e){if(!e)return e;if("string"!=typeof e)throw tu(t,e);return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=xe({name:"uppercase",type:t,pure:!0}),t})(),nu=(()=>{class t{constructor(t){this.locale=t}transform(e,i="mediumDate",s,n){if(null==e||""===e||e!=e)return null;try{return function(t,e,i,s){let n=function(t){if(Bc(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){t=t.trim();const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);if(/^(\d{4}-\d{1,2}-\d{1,2})$/.test(t)){const[e,i,s]=t.split("-").map(t=>+t);return new Date(e,i-1,s)}let i;if(i=t.match(wc))return function(t){const e=new Date(0);let i=0,s=0;const n=t[8]?e.setUTCFullYear:e.setFullYear,r=t[8]?e.setUTCHours:e.setHours;t[9]&&(i=Number(t[9]+t[10]),s=Number(t[9]+t[11])),n.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-i,a=Number(t[5]||0)-s,l=Number(t[6]||0),h=Math.round(1e3*parseFloat("0."+(t[7]||0)));return r.call(e,o,a,l,h),e}(i)}const e=new Date(t);if(!Bc(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=function t(e,i){const s=function(t){return ll(t)[cl.LocaleId]}(e);if(Cc[s]=Cc[s]||{},Cc[s][i])return Cc[s][i];let n="";switch(i){case"shortDate":n=gc(e,pc.Short);break;case"mediumDate":n=gc(e,pc.Medium);break;case"longDate":n=gc(e,pc.Long);break;case"fullDate":n=gc(e,pc.Full);break;case"shortTime":n=mc(e,pc.Short);break;case"mediumTime":n=mc(e,pc.Medium);break;case"longTime":n=mc(e,pc.Long);break;case"fullTime":n=mc(e,pc.Full);break;case"short":const i=t(e,"shortTime"),s=t(e,"shortDate");n=Mc(yc(e,pc.Short),[i,s]);break;case"medium":const r=t(e,"mediumTime"),o=t(e,"mediumDate");n=Mc(yc(e,pc.Medium),[r,o]);break;case"long":const a=t(e,"longTime"),l=t(e,"longDate");n=Mc(yc(e,pc.Long),[a,l]);break;case"full":const h=t(e,"fullTime"),c=t(e,"fullDate");n=Mc(yc(e,pc.Full),[h,c])}return n&&(Cc[s][i]=n),n}(i,e)||e;let r,o=[];for(;e;){if(r=kc.exec(e),!r){o.push(e);break}{o=o.concat(r.slice(1));const t=o.pop();if(!t)break;e=t}}let a=n.getTimezoneOffset();s&&(a=Rc(s,a),n=function(t,e,i){const s=t.getTimezoneOffset();return function(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,-1*(Rc(e,s)-s))}(n,s));let l="";return o.forEach(t=>{const e=function(t){if(Ic[t])return Ic[t];let e;switch(t){case"G":case"GG":case"GGG":e=Pc(Ec.Eras,dc.Abbreviated);break;case"GGGG":e=Pc(Ec.Eras,dc.Wide);break;case"GGGGG":e=Pc(Ec.Eras,dc.Narrow);break;case"y":e=Dc(Ac.FullYear,1,0,!1,!0);break;case"yy":e=Dc(Ac.FullYear,2,0,!0,!0);break;case"yyy":e=Dc(Ac.FullYear,3,0,!1,!0);break;case"yyyy":e=Dc(Ac.FullYear,4,0,!1,!0);break;case"M":case"L":e=Dc(Ac.Month,1,1);break;case"MM":case"LL":e=Dc(Ac.Month,2,1);break;case"MMM":e=Pc(Ec.Months,dc.Abbreviated);break;case"MMMM":e=Pc(Ec.Months,dc.Wide);break;case"MMMMM":e=Pc(Ec.Months,dc.Narrow);break;case"LLL":e=Pc(Ec.Months,dc.Abbreviated,uc.Standalone);break;case"LLLL":e=Pc(Ec.Months,dc.Wide,uc.Standalone);break;case"LLLLL":e=Pc(Ec.Months,dc.Narrow,uc.Standalone);break;case"w":e=Lc(1);break;case"ww":e=Lc(2);break;case"W":e=Lc(1,!0);break;case"d":e=Dc(Ac.Date,1);break;case"dd":e=Dc(Ac.Date,2);break;case"E":case"EE":case"EEE":e=Pc(Ec.Days,dc.Abbreviated);break;case"EEEE":e=Pc(Ec.Days,dc.Wide);break;case"EEEEE":e=Pc(Ec.Days,dc.Narrow);break;case"EEEEEE":e=Pc(Ec.Days,dc.Short);break;case"a":case"aa":case"aaa":e=Pc(Ec.DayPeriods,dc.Abbreviated);break;case"aaaa":e=Pc(Ec.DayPeriods,dc.Wide);break;case"aaaaa":e=Pc(Ec.DayPeriods,dc.Narrow);break;case"b":case"bb":case"bbb":e=Pc(Ec.DayPeriods,dc.Abbreviated,uc.Standalone,!0);break;case"bbbb":e=Pc(Ec.DayPeriods,dc.Wide,uc.Standalone,!0);break;case"bbbbb":e=Pc(Ec.DayPeriods,dc.Narrow,uc.Standalone,!0);break;case"B":case"BB":case"BBB":e=Pc(Ec.DayPeriods,dc.Abbreviated,uc.Format,!0);break;case"BBBB":e=Pc(Ec.DayPeriods,dc.Wide,uc.Format,!0);break;case"BBBBB":e=Pc(Ec.DayPeriods,dc.Narrow,uc.Format,!0);break;case"h":e=Dc(Ac.Hours,1,-12);break;case"hh":e=Dc(Ac.Hours,2,-12);break;case"H":e=Dc(Ac.Hours,1);break;case"HH":e=Dc(Ac.Hours,2);break;case"m":e=Dc(Ac.Minutes,1);break;case"mm":e=Dc(Ac.Minutes,2);break;case"s":e=Dc(Ac.Seconds,1);break;case"ss":e=Dc(Ac.Seconds,2);break;case"S":e=Dc(Ac.FractionalSeconds,1);break;case"SS":e=Dc(Ac.FractionalSeconds,2);break;case"SSS":e=Dc(Ac.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Oc(Sc.Short);break;case"ZZZZZ":e=Oc(Sc.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Oc(Sc.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Oc(Sc.Long);break;default:return null}return Ic[t]=e,e}(t);l+=e?e(n,i,a):"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}(e,i,n||this.locale,s)}catch(r){throw tu(t,r.message)}}}return t.\u0275fac=function(e){return new(e||t)(Co(ih))},t.\u0275pipe=xe({name:"date",type:t,pure:!0}),t})(),ru=(()=>{class t{constructor(t){this._locale=t}transform(e,i,s){if(function(t){return null==t||""===t||t!=t}(e))return null;s=s||this._locale;try{return function(t,e,i){return function(t,e,i,s,n,r,o=!1){let a="",l=!1;if(isFinite(t)){let h=function(t){let e,i,s,n,r,o=Math.abs(t)+"",a=0;for((i=o.indexOf(Nc))>-1&&(o=o.replace(Nc,"")),(s=o.search(/e/i))>0?(i<0&&(i=s),i+=+o.slice(s+1),o=o.substring(0,s)):i<0&&(i=o.length),s=0;o.charAt(s)===jc;s++);if(s===(r=o.length))e=[0],i=1;else{for(r--;o.charAt(r)===jc;)r--;for(i-=s,e=[],n=0;s<=r;s++,n++)e[n]=Number(o.charAt(s))}return i>22&&(e=e.splice(0,21),a=i-1,i=1),{digits:e,exponent:a,integerLen:i}}(t);o&&(h=function(t){if(0===t.digits[0])return t;const e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(h));let c=e.minInt,u=e.minFrac,d=e.maxFrac;if(r){const t=r.match(Fc);if(null===t)throw new Error(r+" is not a valid digit info");const e=t[1],i=t[3],s=t[5];null!=e&&(c=zc(e)),null!=i&&(u=zc(i)),null!=s?d=zc(s):null!=i&&u>d&&(d=u)}!function(t,e,i){if(e>i)throw new Error(`The minimum number of digits after fraction (${e}) is higher than the maximum (${i}).`);let s=t.digits,n=s.length-t.integerLen;const r=Math.min(Math.max(e,n),i);let o=r+t.integerLen,a=s[o];if(o>0){s.splice(Math.max(t.integerLen,o));for(let t=o;t=5)if(o-1<0){for(let e=0;e>o;e--)s.unshift(0),t.integerLen++;s.unshift(1),t.integerLen++}else s[o-1]++;for(;n=h?s.pop():l=!1),e>=10?1:0}),0);c&&(s.unshift(c),t.integerLen++)}(h,u,d);let p=h.digits,f=h.integerLen;const g=h.exponent;let m=[];for(l=p.every(t=>!t);f0?m=p.splice(f,p.length):(m=p,p=[0]);const y=[];for(p.length>=e.lgSize&&y.unshift(p.splice(-e.lgSize,p.length).join(""));p.length>e.gSize;)y.unshift(p.splice(-e.gSize,p.length).join(""));p.length&&y.unshift(p.join("")),a=y.join(vc(i,s)),m.length&&(a+=vc(i,n)+m.join("")),g&&(a+=vc(i,fc.Exponential)+"+"+g)}else a=vc(i,fc.Infinity);return a=t<0&&!l?e.negPre+a+e.negSuf:e.posPre+a+e.posSuf,a}(t,function(t,e="-"){const i={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},s=t.split(";"),n=s[0],r=s[1],o=-1!==n.indexOf(Nc)?n.split(Nc):[n.substring(0,n.lastIndexOf(jc)+1),n.substring(n.lastIndexOf(jc)+1)],a=o[0],l=o[1]||"";i.posPre=a.substr(0,a.indexOf("#"));for(let c=0;c{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[{provide:Hc,useClass:Wc}]}),t})(),au=(()=>{class t{}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>new lu(qt(Uh),window,qt(bs))}),t})();class lu{constructor(t,e,i){this.document=t,this.window=e,this.errorHandler=i,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.scrollX,this.window.scrollY]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(this.supportsScrolling()){const e=this.document.getElementById(t)||this.document.getElementsByName(t)[0];e&&this.scrollToElement(e)}}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,s=e.top+this.window.pageYOffset,n=this.offset();this.window.scrollTo(i-n[0],s-n[1])}supportScrollRestoration(){try{if(!this.window||!this.window.scrollTo)return!1;const t=hu(this.window.history)||hu(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch(t){return!1}}supportsScrolling(){try{return!!this.window.scrollTo}catch(t){return!1}}}function hu(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class cu extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new cu,Vh||(Vh=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=du||(du=document.querySelector("base"),du)?du.getAttribute("href"):null;return null==e?null:(i=e,uu||(uu=document.createElement("a")),uu.setAttribute("href",i),"/"===uu.pathname.charAt(0)?uu.pathname:"/"+uu.pathname);var i}resetBaseElement(){du=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return Vc(document.cookie,t)}}let uu,du=null;const pu=new Ft("TRANSITION_ID"),fu=[{provide:Yl,useFactory:function(t,e,i){return()=>{i.get(ql).donePromise.then(()=>{const i=Gh();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>i.remove(t))})}},deps:[pu,Uh,to],multi:!0}];class gu{static init(){var t;t=new gu,Ah=t}addToWindow(t){Tt.getAngularTestability=(e,i=!0)=>{const s=t.findTestabilityInTree(e,i);if(null==s)throw new Error("Could not find testability for element.");return s},Tt.getAllAngularTestabilities=()=>t.getAllTestabilities(),Tt.getAllAngularRootElements=()=>t.getAllRootElements(),Tt.frameworkStabilizers||(Tt.frameworkStabilizers=[]),Tt.frameworkStabilizers.push(t=>{const e=Tt.getAllAngularTestabilities();let i=e.length,s=!1;const n=function(e){s=s||e,i--,0==i&&t(s)};e.forEach((function(t){t.whenStable(n)}))})}findTestabilityInTree(t,e,i){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:i?Gh().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const mu=new Ft("EventManagerPlugins");let yu=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,i){return this._findPluginFor(e).addEventListener(t,e,i)}addGlobalEventListener(t,e,i){return this._findPluginFor(e).addGlobalEventListener(t,e,i)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const i=this._plugins;for(let s=0;s{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),xu=(()=>{class t extends bu{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const i=this._doc.createElement("style");i.textContent=t,this._styleNodes.add(e.appendChild(i))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Gh().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(qt(Uh))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const _u={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},wu=/%COMP%/g;function Cu(t,e,i){for(let s=0;s{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Su=(()=>{class t{constructor(t,e,i){this.eventManager=t,this.sharedStylesHost=e,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new Au(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case he.Emulated:{let i=this.rendererByCompId.get(e.id);return i||(i=new Eu(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,i)),i.applyToHost(t),i}case he.Native:case he.ShadowDom:return new Mu(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=Cu(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(qt(yu),qt(xu),qt($l))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class Au{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(_u[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,i){t&&t.insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,s){if(s){e=s+":"+e;const n=_u[s];n?t.setAttributeNS(n,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const s=_u[i];s?t.removeAttributeNS(s,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,s){s&Ma.DashCase?t.style.setProperty(e,i,s&Ma.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&Ma.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,ku(i)):this.eventManager.addEventListener(t,e,ku(i))}}class Eu extends Au{constructor(t,e,i,s){super(t),this.component=i;const n=Cu(s+"-"+i.id,i.styles,[]);e.addStyles(n),this.contentAttr="_ngcontent-%COMP%".replace(wu,s+"-"+i.id),this.hostAttr="_nghost-%COMP%".replace(wu,s+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class Mu extends Au{constructor(t,e,i,s){super(t),this.sharedStylesHost=e,this.hostEl=i,this.component=s,this.shadowRoot=s.encapsulation===he.ShadowDom?i.attachShadow({mode:"open"}):i.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const n=Cu(s.id,s.styles,[]);for(let r=0;r{class t extends vu{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,i){return t.addEventListener(e,i,!1),()=>this.removeEventListener(t,e,i)}removeEventListener(t,e,i){return t.removeEventListener(e,i)}}return t.\u0275fac=function(e){return new(e||t)(qt(Uh))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Du=["alt","control","meta","shift"],Pu={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Ou={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Lu={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Iu=(()=>{class t extends vu{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,s){const n=t.parseEventName(i),r=t.eventCallback(n.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Gh().onAndCancel(e,n.domEventName,r))}static parseEventName(e){const i=e.toLowerCase().split("."),s=i.shift();if(0===i.length||"keydown"!==s&&"keyup"!==s)return null;const n=t._normalizeKey(i.pop());let r="";if(Du.forEach(t=>{const e=i.indexOf(t);e>-1&&(i.splice(e,1),r+=t+".")}),r+=n,0!=i.length||0===n.length)return null;const o={};return o.domEventName=s,o.fullKey=r,o}static getEventFullKey(t){let e="",i=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Ou.hasOwnProperty(e)&&(e=Ou[e]))}return Pu[e]||e}(t);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),Du.forEach(s=>{s!=i&&(0,Lu[s])(t)&&(e+=s+".")}),e+=i,e}static eventCallback(e,i,s){return n=>{t.getEventFullKey(n)===e&&s.runGuarded(()=>i(n))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(qt(Uh))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Ru=Th(zh,"browser",[{provide:Jl,useValue:"browser"},{provide:Ql,useValue:function(){cu.makeCurrent(),gu.init()},multi:!0},{provide:Uh,useFactory:function(){return function(t){ze=t}(document),document},deps:[]}]),Bu=[[],{provide:zr,useValue:"root"},{provide:bs,useFactory:function(){return new bs},deps:[]},{provide:mu,useClass:Tu,multi:!0,deps:[Uh,fh,Jl]},{provide:mu,useClass:Iu,multi:!0,deps:[Uh]},[],{provide:Su,useClass:Su,deps:[yu,xu,$l]},{provide:Ea,useExisting:Su},{provide:bu,useExisting:xu},{provide:xu,useClass:xu,deps:[Uh]},{provide:wh,useClass:wh,deps:[fh]},{provide:yu,useClass:yu,deps:[mu,fh]},[]];let Fu=(()=>{class t{constructor(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(e){return{ngModule:t,providers:[{provide:$l,useValue:e.appId},{provide:pu,useExisting:$l},fu]}}}return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)(qt(t,12))},providers:Bu,imports:[ou,Wh]}),t})();function Nu(...t){let e=t[t.length-1];return S(e)?(t.pop(),R(t,e)):G(t)}function ju(t,e){return z(t,e,1)}function zu(t,e){return function(i){return i.lift(new Hu(t,e))}}"undefined"!=typeof window&&window;class Hu{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Wu(t,this.predicate,this.thisArg))}}class Wu extends f{constructor(t,e,i){super(t),this.predicate=e,this.thisArg=i,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(i){return void this.destination.error(i)}e&&this.destination.next(t)}}class Vu{}class Gu{}class Uu{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const i=t.slice(0,e),s=i.toLowerCase(),n=t.slice(e+1).trim();this.maybeSetNormalizedName(i,s),this.headers.has(s)?this.headers.get(s).push(n):this.headers.set(s,[n])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const s=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(s,i),this.maybeSetNormalizedName(e,s))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Uu?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Uu;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Uu?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const s=("a"===t.op?this.headers.get(e):void 0)||[];s.push(...i),this.headers.set(e,s);break;case"d":const n=t.value;if(n){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===n.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class Xu{encodeKey(t){return Yu(t)}encodeValue(t){return Yu(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function Yu(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class qu{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Xu,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const i=new Map;return t.length>0&&t.split("&").forEach(t=>{const s=t.indexOf("="),[n,r]=-1==s?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,s)),e.decodeValue(t.slice(s+1))],o=i.get(n)||[];o.push(r),i.set(n,o)}),i}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e];this.map.set(e,Array.isArray(i)?i:[i])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new qu({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const i=e.indexOf(t.value);-1!==i&&e.splice(i,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function $u(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Ku(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Zu(t){return"undefined"!=typeof FormData&&t instanceof FormData}class Qu{constructor(t,e,i,s){let n;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||s?(this.body=void 0!==i?i:null,n=s):n=i,n&&(this.reportProgress=!!n.reportProgress,this.withCredentials=!!n.withCredentials,n.responseType&&(this.responseType=n.responseType),n.headers&&(this.headers=n.headers),n.params&&(this.params=n.params)),this.headers||(this.headers=new Uu),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const i=e.indexOf("?");this.urlWithParams=e+(-1===i?"?":ie.set(i,t.setHeaders[i]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,i)=>e.set(i,t.setParams[i]),l)),new Qu(e,i,n,{params:l,headers:a,reportProgress:o,responseType:s,withCredentials:r})}}var Ju=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class td{constructor(t,e=200,i="OK"){this.headers=t.headers||new Uu,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class ed extends td{constructor(t={}){super(t),this.type=Ju.ResponseHeader}clone(t={}){return new ed({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class id extends td{constructor(t={}){super(t),this.type=Ju.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new id({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class sd extends td{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?"Http failure during parsing for "+(t.url||"(unknown url)"):`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function nd(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let rd=(()=>{class t{constructor(t){this.handler=t}request(t,e,i={}){let s;if(t instanceof Qu)s=t;else{let n=void 0;n=i.headers instanceof Uu?i.headers:new Uu(i.headers);let r=void 0;i.params&&(r=i.params instanceof qu?i.params:new qu({fromObject:i.params})),s=new Qu(t,e,void 0!==i.body?i.body:null,{headers:n,params:r,reportProgress:i.reportProgress,responseType:i.responseType||"json",withCredentials:i.withCredentials})}const n=Nu(s).pipe(ju(t=>this.handler.handle(t)));if(t instanceof Qu||"events"===i.observe)return n;const r=n.pipe(zu(t=>t instanceof id));switch(i.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return r.pipe(A(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe(A(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe(A(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe(A(t=>t.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${i.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new qu).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,i={}){return this.request("PATCH",t,nd(i,e))}post(t,e,i={}){return this.request("POST",t,nd(i,e))}put(t,e,i={}){return this.request("PUT",t,nd(i,e))}}return t.\u0275fac=function(e){return new(e||t)(qt(Vu))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class od{constructor(t,e){this.next=t,this.interceptor=e}handle(t){return this.interceptor.intercept(t,this.next)}}const ad=new Ft("HTTP_INTERCEPTORS");let ld=(()=>{class t{intercept(t,e){return e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const hd=/^\)\]\}',?\n/;class cd{}let ud=(()=>{class t{constructor(){}build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),dd=(()=>{class t{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new v(e=>{const i=this.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((t,e)=>i.setRequestHeader(t,e.join(","))),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const e=t.detectContentTypeHeader();null!==e&&i.setRequestHeader("Content-Type",e)}if(t.responseType){const e=t.responseType.toLowerCase();i.responseType="json"!==e?e:"text"}const s=t.serializeBody();let n=null;const r=()=>{if(null!==n)return n;const e=1223===i.status?204:i.status,s=i.statusText||"OK",r=new Uu(i.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return n=new ed({headers:r,status:e,statusText:s,url:o}),n},o=()=>{let{headers:s,status:n,statusText:o,url:a}=r(),l=null;204!==n&&(l=void 0===i.response?i.responseText:i.response),0===n&&(n=l?200:0);let h=n>=200&&n<300;if("json"===t.responseType&&"string"==typeof l){const t=l;l=l.replace(hd,"");try{l=""!==l?JSON.parse(l):null}catch(c){l=t,h&&(h=!1,l={error:c,text:l})}}h?(e.next(new id({body:l,headers:s,status:n,statusText:o,url:a||void 0})),e.complete()):e.error(new sd({error:l,headers:s,status:n,statusText:o,url:a||void 0}))},a=t=>{const{url:s}=r(),n=new sd({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:s||void 0});e.error(n)};let l=!1;const h=s=>{l||(e.next(r()),l=!0);let n={type:Ju.DownloadProgress,loaded:s.loaded};s.lengthComputable&&(n.total=s.total),"text"===t.responseType&&i.responseText&&(n.partialText=i.responseText),e.next(n)},c=t=>{let i={type:Ju.UploadProgress,loaded:t.loaded};t.lengthComputable&&(i.total=t.total),e.next(i)};return i.addEventListener("load",o),i.addEventListener("error",a),t.reportProgress&&(i.addEventListener("progress",h),null!==s&&i.upload&&i.upload.addEventListener("progress",c)),i.send(s),e.next({type:Ju.Sent}),()=>{i.removeEventListener("error",a),i.removeEventListener("load",o),t.reportProgress&&(i.removeEventListener("progress",h),null!==s&&i.upload&&i.upload.removeEventListener("progress",c)),i.readyState!==i.DONE&&i.abort()}})}}return t.\u0275fac=function(e){return new(e||t)(qt(cd))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const pd=new Ft("XSRF_COOKIE_NAME"),fd=new Ft("XSRF_HEADER_NAME");class gd{}let md=(()=>{class t{constructor(t,e,i){this.doc=t,this.platform=e,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Vc(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(qt(Uh),qt(Jl),qt(pd))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),yd=(()=>{class t{constructor(t,e){this.tokenService=t,this.headerName=e}intercept(t,e){const i=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||i.startsWith("http://")||i.startsWith("https://"))return e.handle(t);const s=this.tokenService.getToken();return null===s||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,s)})),e.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(qt(gd),qt(fd))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),vd=(()=>{class t{constructor(t,e){this.backend=t,this.injector=e,this.chain=null}handle(t){if(null===this.chain){const t=this.injector.get(ad,[]);this.chain=t.reduceRight((t,e)=>new od(t,e),this.backend)}return this.chain.handle(t)}}return t.\u0275fac=function(e){return new(e||t)(qt(Gu),qt(to))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),bd=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:yd,useClass:ld}]}}static withOptions(e={}){return{ngModule:t,providers:[e.cookieName?{provide:pd,useValue:e.cookieName}:[],e.headerName?{provide:fd,useValue:e.headerName}:[]]}}}return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[yd,{provide:ad,useExisting:yd,multi:!0},{provide:gd,useClass:md},{provide:pd,useValue:"XSRF-TOKEN"},{provide:fd,useValue:"X-XSRF-TOKEN"}]}),t})(),xd=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[rd,{provide:Vu,useClass:vd},dd,{provide:Gu,useExisting:dd},ud,{provide:cd,useExisting:ud}],imports:[[bd.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();class _d extends C{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new x;return this._value}next(t){super.next(this._value=t)}}class wd extends f{notifyNext(t,e,i,s,n){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class Cd extends f{constructor(t,e,i){super(),this.parent=t,this.outerValue=e,this.outerIndex=i,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function kd(t,e,i,s,n=new Cd(t,i,s)){if(!n.closed)return e instanceof v?e.subscribe(n):I(e)(n)}const Sd={};class Ad{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Ed(t,this.resultSelector))}}class Ed extends wd{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Sd),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let i=0;i{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})(),Td=new v(t=>t.complete());function Dd(t){return t?function(t){return new v(e=>t.schedule(()=>e.complete()))}(t):Td}function Pd(t){return new v(e=>{let i;try{i=t()}catch(s){return void e.error(s)}return(i?B(i):Dd()).subscribe(e)})}function Od(){return V(1)}const Ld=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function Id(t){return function(e){return 0===t?Dd():e.lift(new Rd(t))}}class Rd{constructor(t){if(this.total=t,this.total<0)throw new Ld}call(t,e){return e.subscribe(new Bd(t,this.total))}}class Bd extends f{constructor(t,e){super(t),this.total=e,this.ring=new Array,this.count=0}_next(t){const e=this.ring,i=this.total,s=this.count++;e.length0){const i=this.count>=this.total?this.total:this.count,s=this.ring;for(let n=0;ne.lift(new Nd(t))}class Nd{constructor(t){this.errorFactory=t}call(t,e){return e.subscribe(new jd(t,this.errorFactory))}}class jd extends f{constructor(t,e){super(t),this.errorFactory=e,this.hasValue=!1}_next(t){this.hasValue=!0,this.destination.next(t)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)}}}function zd(){return new Md}function Hd(t=null){return e=>e.lift(new Wd(t))}class Wd{constructor(t){this.defaultValue=t}call(t,e){return e.subscribe(new Vd(t,this.defaultValue))}}class Vd extends f{constructor(t,e){super(t),this.defaultValue=e,this.isEmpty=!0}_next(t){this.isEmpty=!1,this.destination.next(t)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function Gd(t,e){return"function"==typeof e?i=>i.pipe(Gd((i,s)=>B(t(i,s)).pipe(A((t,n)=>e(i,t,s,n))))):e=>e.lift(new Ud(t))}class Ud{constructor(t){this.project=t}call(t,e){return e.subscribe(new Xd(t,this.project))}}class Xd extends N{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const i=this.index++;try{e=this.project(t,i)}catch(s){return void this.destination.error(s)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const i=new F(this),s=this.destination;s.add(i),this.innerSubscription=j(t,i),this.innerSubscription!==i&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}function Yd(t){return e=>0===t?Dd():e.lift(new qd(t))}class qd{constructor(t){if(this.total=t,this.total<0)throw new Ld}call(t,e){return e.subscribe(new $d(t,this.total))}}class $d extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))}}function Kd(...t){return Od()(Nu(...t))}function Zd(...t){const e=t[t.length-1];return S(e)?(t.pop(),i=>Kd(t,i,e)):e=>Kd(t,e)}class Qd{constructor(t,e,i=!1){this.accumulator=t,this.seed=e,this.hasSeed=i}call(t,e){return e.subscribe(new Jd(t,this.accumulator,this.seed,this.hasSeed))}}class Jd extends f{constructor(t,e,i,s){super(t),this.accumulator=e,this._seed=i,this.hasSeed=s,this.index=0}get seed(){return this._seed}set seed(t){this.hasSeed=!0,this._seed=t}_next(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}_tryNext(t){const e=this.index++;let i;try{i=this.accumulator(this.seed,t,e)}catch(s){this.destination.error(s)}this.seed=i,this.destination.next(i)}}function tp(t){return function(e){const i=new ep(t),s=e.lift(i);return i.caught=s}}class ep{constructor(t){this.selector=t}call(t,e){return e.subscribe(new ip(t,this.selector,this.caught))}}class ip extends N{constructor(t,e,i){super(t),this.selector=e,this.caught=i}error(t){if(!this.isStopped){let i;try{i=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const s=new F(this);this.add(s);const n=j(i,s);n!==s&&this.add(n)}}}function sp(t,e){const i=arguments.length>=2;return s=>s.pipe(t?zu((e,i)=>t(e,i,s)):y,Yd(1),i?Hd(e):Fd(()=>new Md))}function np(){}function rp(t,e,i){return function(s){return s.lift(new op(t,e,i))}}class op{constructor(t,e,i){this.nextOrObserver=t,this.error=e,this.complete=i}call(t,e){return e.subscribe(new ap(t,this.nextOrObserver,this.error,this.complete))}}class ap extends f{constructor(t,e,i,n){super(t),this._tapNext=np,this._tapError=np,this._tapComplete=np,this._tapError=i||np,this._tapComplete=n||np,s(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||np,this._tapError=e.error||np,this._tapComplete=e.complete||np)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}class lp{constructor(t){this.callback=t}call(t,e){return e.subscribe(new hp(t,this.callback))}}class hp extends f{constructor(t,e){super(t),this.add(new u(e))}}class cp{constructor(t,e){this.id=t,this.url=e}}class up extends cp{constructor(t,e,i="imperative",s=null){super(t,e),this.navigationTrigger=i,this.restoredState=s}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class dp extends cp{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class pp extends cp{constructor(t,e,i){super(t,e),this.reason=i}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class fp extends cp{constructor(t,e,i){super(t,e),this.error=i}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class gp extends cp{constructor(t,e,i,s){super(t,e),this.urlAfterRedirects=i,this.state=s}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mp extends cp{constructor(t,e,i,s){super(t,e),this.urlAfterRedirects=i,this.state=s}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class yp extends cp{constructor(t,e,i,s,n){super(t,e),this.urlAfterRedirects=i,this.state=s,this.shouldActivate=n}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class vp extends cp{constructor(t,e,i,s){super(t,e),this.urlAfterRedirects=i,this.state=s}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class bp extends cp{constructor(t,e,i,s){super(t,e),this.urlAfterRedirects=i,this.state=s}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class xp{constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class _p{constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class wp{constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Cp{constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class kp{constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Sp{constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ap{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const Ep="primary";class Mp{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function Tp(t){return new Mp(t)}function Dp(t){const e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Pp(t,e,i){const s=i.path.split("/");if(s.length>t.length)return null;if("full"===i.pathMatch&&(e.hasChildren()||s.lengths[e]===t)}return t===e}function Ip(t){return Array.prototype.concat.apply([],t)}function Rp(t){return t.length>0?t[t.length-1]:null}function Bp(t,e){for(const i in t)t.hasOwnProperty(i)&&e(t[i],i)}function Fp(t){return Oo(t)?t:Po(t)?B(Promise.resolve(t)):Nu(t)}function Np(t,e,i){return i?function(t,e){return Op(t,e)}(t.queryParams,e.queryParams)&&function t(e,i){if(!Wp(e.segments,i.segments))return!1;if(e.numberOfChildren!==i.numberOfChildren)return!1;for(const s in i.children){if(!e.children[s])return!1;if(!t(e.children[s],i.children[s]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(i=>Lp(t[i],e[i]))}(t.queryParams,e.queryParams)&&function t(e,i){return function e(i,s,n){if(i.segments.length>n.length)return!!Wp(i.segments.slice(0,n.length),n)&&!s.hasChildren();if(i.segments.length===n.length){if(!Wp(i.segments,n))return!1;for(const e in s.children){if(!i.children[e])return!1;if(!t(i.children[e],s.children[e]))return!1}return!0}{const t=n.slice(0,i.segments.length),r=n.slice(i.segments.length);return!!Wp(i.segments,t)&&!!i.children.primary&&e(i.children.primary,s,r)}}(e,i,i.segments)}(t.root,e.root)}class jp{constructor(t,e,i){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Tp(this.queryParams)),this._queryParamMap}toString(){return Xp.serialize(this)}}class zp{constructor(t,e){this.segments=t,this.children=e,this.parent=null,Bp(e,(t,e)=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Yp(this)}}class Hp{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=Tp(this.parameters)),this._parameterMap}toString(){return Jp(this)}}function Wp(t,e){return t.length===e.length&&t.every((t,i)=>t.path===e[i].path)}function Vp(t,e){let i=[];return Bp(t.children,(t,s)=>{s===Ep&&(i=i.concat(e(t,s)))}),Bp(t.children,(t,s)=>{s!==Ep&&(i=i.concat(e(t,s)))}),i}class Gp{}class Up{parse(t){const e=new rf(t);return new jp(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){return`${"/"+function t(e,i){if(!e.hasChildren())return Yp(e);if(i){const i=e.children.primary?t(e.children.primary,!1):"",s=[];return Bp(e.children,(e,i)=>{i!==Ep&&s.push(`${i}:${t(e,!1)}`)}),s.length>0?`${i}(${s.join("//")})`:i}{const i=Vp(e,(i,s)=>s===Ep?[t(e.children.primary,!1)]:[`${s}:${t(i,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children.primary?`${Yp(e)}/${i[0]}`:`${Yp(e)}/(${i.join("//")})`}}(t.root,!0)}${function(t){const e=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(t=>`${$p(e)}=${$p(t)}`).join("&"):`${$p(e)}=${$p(i)}`});return e.length?"?"+e.join("&"):""}(t.queryParams)}${"string"==typeof t.fragment?"#"+encodeURI(t.fragment):""}`}}const Xp=new Up;function Yp(t){return t.segments.map(t=>Jp(t)).join("/")}function qp(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function $p(t){return qp(t).replace(/%3B/gi,";")}function Kp(t){return qp(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Zp(t){return decodeURIComponent(t)}function Qp(t){return Zp(t.replace(/\+/g,"%20"))}function Jp(t){return`${Kp(t.path)}${e=t.parameters,Object.keys(e).map(t=>`;${Kp(t)}=${Kp(e[t])}`).join("")}`;var e}const tf=/^[^\/()?;=#]+/;function ef(t){const e=t.match(tf);return e?e[0]:""}const sf=/^[^=?&#]+/,nf=/^[^?&#]+/;class rf{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new zp([],{}):new zp([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i.primary=new zp(t,e)),i}parseSegment(){const t=ef(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(t),new Hp(Zp(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=ef(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=ef(this.remaining);t&&(i=t,this.capture(i))}t[Zp(e)]=Zp(i)}parseQueryParam(t){const e=function(t){const e=t.match(sf);return e?e[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const t=function(t){const e=t.match(nf);return e?e[0]:""}(this.remaining);t&&(i=t,this.capture(i))}const s=Qp(e),n=Qp(i);if(t.hasOwnProperty(s)){let e=t[s];Array.isArray(e)||(e=[e],t[s]=e),e.push(n)}else t[s]=n}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=ef(this.remaining),s=this.remaining[i.length];if("/"!==s&&")"!==s&&";"!==s)throw new Error(`Cannot parse url '${this.url}'`);let n=void 0;i.indexOf(":")>-1?(n=i.substr(0,i.indexOf(":")),this.capture(n),this.capture(":")):t&&(n=Ep);const r=this.parseChildren();e[n]=1===Object.keys(r).length?r.primary:new zp([],r),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new Error(`Expected "${t}".`)}}class of{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=af(t,this._root);return e?e.children.map(t=>t.value):[]}firstChild(t){const e=af(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=lf(t,this._root);return e.length<2?[]:e[e.length-2].children.map(t=>t.value).filter(e=>e!==t)}pathFromRoot(t){return lf(t,this._root).map(t=>t.value)}}function af(t,e){if(t===e.value)return e;for(const i of e.children){const e=af(t,i);if(e)return e}return null}function lf(t,e){if(t===e.value)return[e];for(const i of e.children){const s=lf(t,i);if(s.length)return s.unshift(e),s}return[]}class hf{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function cf(t){const e={};return t&&t.children.forEach(t=>e[t.value.outlet]=t),e}class uf extends of{constructor(t,e){super(t),this.snapshot=e,yf(this,t)}toString(){return this.snapshot.toString()}}function df(t,e){const i=function(t,e){const i=new gf([],{},{},"",{},Ep,e,null,t.root,-1,{});return new mf("",new hf(i,[]))}(t,e),s=new _d([new Hp("",{})]),n=new _d({}),r=new _d({}),o=new _d({}),a=new _d(""),l=new pf(s,n,o,a,r,Ep,e,i.root);return l.snapshot=i.root,new uf(new hf(l,[]),i)}class pf{constructor(t,e,i,s,n,r,o,a){this.url=t,this.params=e,this.queryParams=i,this.fragment=s,this.data=n,this.outlet=r,this.component=o,this._futureSnapshot=a}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(A(t=>Tp(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(A(t=>Tp(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function ff(t,e="emptyOnly"){const i=t.pathFromRoot;let s=0;if("always"!==e)for(s=i.length-1;s>=1;){const t=i[s],e=i[s-1];if(t.routeConfig&&""===t.routeConfig.path)s--;else{if(e.component)break;s--}}return function(t){return t.reduce((t,e)=>({params:Object.assign(Object.assign({},t.params),e.params),data:Object.assign(Object.assign({},t.data),e.data),resolve:Object.assign(Object.assign({},t.resolve),e._resolvedData)}),{params:{},data:{},resolve:{}})}(i.slice(s))}class gf{constructor(t,e,i,s,n,r,o,a,l,h,c){this.url=t,this.params=e,this.queryParams=i,this.fragment=s,this.data=n,this.outlet=r,this.component=o,this.routeConfig=a,this._urlSegment=l,this._lastPathIndex=h,this._resolve=c}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=Tp(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Tp(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(t=>t.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class mf extends of{constructor(t,e){super(e),this.url=t,yf(this,e)}toString(){return vf(this._root)}}function yf(t,e){e.value._routerState=t,e.children.forEach(e=>yf(t,e))}function vf(t){const e=t.children.length>0?` { ${t.children.map(vf).join(", ")} } `:"";return`${t.value}${e}`}function bf(t){if(t.snapshot){const e=t.snapshot,i=t._futureSnapshot;t.snapshot=i,Op(e.queryParams,i.queryParams)||t.queryParams.next(i.queryParams),e.fragment!==i.fragment&&t.fragment.next(i.fragment),Op(e.params,i.params)||t.params.next(i.params),function(t,e){if(t.length!==e.length)return!1;for(let i=0;iOp(t.parameters,s[e].parameters))&&!(!t.parent!=!e.parent)&&(!t.parent||xf(t.parent,e.parent))}function _f(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function wf(t,e,i,s,n){let r={};return s&&Bp(s,(t,e)=>{r[e]=Array.isArray(t)?t.map(t=>""+t):""+t}),new jp(i.root===t?e:function t(e,i,s){const n={};return Bp(e.children,(e,r)=>{n[r]=e===i?s:t(e,i,s)}),new zp(e.segments,n)}(i.root,t,e),r,n)}class Cf{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&_f(i[0]))throw new Error("Root segment cannot have matrix parameters");const s=i.find(t=>"object"==typeof t&&null!=t&&t.outlets);if(s&&s!==Rp(i))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class kf{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function Sf(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:""+t}function Af(t,e,i){if(t||(t=new zp([],{})),0===t.segments.length&&t.hasChildren())return Ef(t,e,i);const s=function(t,e,i){let s=0,n=e;const r={match:!1,pathIndex:0,commandIndex:0};for(;n=i.length)return r;const e=t.segments[n],o=Sf(i[s]),a=s0&&void 0===o)break;if(o&&a&&"object"==typeof a&&void 0===a.outlets){if(!Pf(o,a,e))return r;s+=2}else{if(!Pf(o,{},e))return r;s++}n++}return{match:!0,pathIndex:n,commandIndex:s}}(t,e,i),n=i.slice(s.commandIndex);if(s.match&&s.pathIndex{null!==i&&(n[s]=Af(t.children[s],e,i))}),Bp(t.children,(t,e)=>{void 0===s[e]&&(n[e]=t)}),new zp(t.segments,n)}}function Mf(t,e,i){const s=t.segments.slice(0,e);let n=0;for(;n{null!==t&&(e[i]=Mf(new zp([],{}),0,t))}),e}function Df(t){const e={};return Bp(t,(t,i)=>e[i]=""+t),e}function Pf(t,e,i){return t==i.path&&Op(e,i.parameters)}class Of{constructor(t,e,i,s){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=s}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),bf(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const s=cf(e);t.children.forEach(t=>{const e=t.value.outlet;this.deactivateRoutes(t,s[e],i),delete s[e]}),Bp(s,(t,e)=>{this.deactivateRouteAndItsChildren(t,i)})}deactivateRoutes(t,e,i){const s=t.value,n=e?e.value:null;if(s===n)if(s.component){const n=i.getContext(s.outlet);n&&this.deactivateChildRoutes(t,e,n.children)}else this.deactivateChildRoutes(t,e,i);else n&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet);if(i&&i.outlet){const e=i.outlet.detach(),s=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:e,route:t,contexts:s})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet);if(i){const s=cf(t),n=t.value.component?i.children:e;Bp(s,(t,e)=>this.deactivateRouteAndItsChildren(t,n)),i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated())}}activateChildRoutes(t,e,i){const s=cf(e);t.children.forEach(t=>{this.activateRoutes(t,s[t.value.outlet],i),this.forwardEvent(new Sp(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Cp(t.value.snapshot))}activateRoutes(t,e,i){const s=t.value,n=e?e.value:null;if(bf(s),s===n)if(s.component){const n=i.getOrCreateContext(s.outlet);this.activateChildRoutes(t,e,n.children)}else this.activateChildRoutes(t,e,i);else if(s.component){const e=i.getOrCreateContext(s.outlet);if(this.routeReuseStrategy.shouldAttach(s.snapshot)){const t=this.routeReuseStrategy.retrieve(s.snapshot);this.routeReuseStrategy.store(s.snapshot,null),e.children.onOutletReAttached(t.contexts),e.attachRef=t.componentRef,e.route=t.route.value,e.outlet&&e.outlet.attach(t.componentRef,t.route.value),Lf(t.route)}else{const i=function(t){for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig;if(t&&t.component)return null}return null}(s.snapshot),n=i?i.module.componentFactoryResolver:null;e.attachRef=null,e.route=s,e.resolver=n,e.outlet&&e.outlet.activateWith(s,n),this.activateChildRoutes(t,null,e.children)}}else this.activateChildRoutes(t,null,i)}}function Lf(t){bf(t.value),t.children.forEach(Lf)}class If{constructor(t,e){this.routes=t,this.module=e}}function Rf(t){return"function"==typeof t}function Bf(t){return t instanceof jp}const Ff=Symbol("INITIAL_VALUE");function Nf(){return Gd(t=>function(...t){let e=void 0,i=void 0;return S(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),G(t,i).lift(new Ad(e))}(...t.map(t=>t.pipe(Yd(1),Zd(Ff)))).pipe(function(t,e){let i=!1;return arguments.length>=2&&(i=!0),function(s){return s.lift(new Qd(t,e,i))}}((t,e)=>{let i=!1;return e.reduce((t,s,n)=>{if(t!==Ff)return t;if(s===Ff&&(i=!0),!i){if(!1===s)return s;if(n===e.length-1||Bf(s))return s}return t},t)},Ff),zu(t=>t!==Ff),A(t=>Bf(t)?t:!0===t),Yd(1)))}class jf{constructor(t){this.segmentGroup=t||null}}class zf{constructor(t){this.urlTree=t}}function Hf(t){return new v(e=>e.error(new jf(t)))}function Wf(t){return new v(e=>e.error(new zf(t)))}function Vf(t){return new v(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class Gf{constructor(t,e,i,s,n){this.configLoader=e,this.urlSerializer=i,this.urlTree=s,this.config=n,this.allowRedirects=!0,this.ngModule=t.get(Jt)}apply(){return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Ep).pipe(A(t=>this.createUrlTree(t,this.urlTree.queryParams,this.urlTree.fragment))).pipe(tp(t=>{if(t instanceof zf)return this.allowRedirects=!1,this.match(t.urlTree);if(t instanceof jf)throw this.noMatchError(t);throw t}))}match(t){return this.expandSegmentGroup(this.ngModule,this.config,t.root,Ep).pipe(A(e=>this.createUrlTree(e,t.queryParams,t.fragment))).pipe(tp(t=>{if(t instanceof jf)throw this.noMatchError(t);throw t}))}noMatchError(t){return new Error(`Cannot match any routes. URL Segment: '${t.segmentGroup}'`)}createUrlTree(t,e,i){const s=t.segments.length>0?new zp([],{[Ep]:t}):t;return new jp(s,e,i)}expandSegmentGroup(t,e,i,s){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(A(t=>new zp([],t))):this.expandSegment(t,i,e,i.segments,s,!0)}expandChildren(t,e,i){return function(t,e){if(0===Object.keys(t).length)return Nu({});const i=[],s=[],n={};return Bp(t,(t,r)=>{const o=e(r,t).pipe(A(t=>n[r]=t));r===Ep?i.push(o):s.push(o)}),Nu.apply(null,i.concat(s)).pipe(Od(),function(t,e){const i=arguments.length>=2;return s=>s.pipe(t?zu((e,i)=>t(e,i,s)):y,Id(1),i?Hd(e):Fd(()=>new Md))}(),A(()=>n))}(i.children,(i,s)=>this.expandSegmentGroup(t,e,s,i))}expandSegment(t,e,i,s,n,r){return Nu(...i).pipe(ju(o=>this.expandSegmentAgainstRoute(t,e,i,o,s,n,r).pipe(tp(t=>{if(t instanceof jf)return Nu(null);throw t}))),sp(t=>!!t),tp((t,i)=>{if(t instanceof Md||"EmptyError"===t.name){if(this.noLeftoversInUrl(e,s,n))return Nu(new zp([],{}));throw new jf(e)}throw t}))}noLeftoversInUrl(t,e,i){return 0===e.length&&!t.children[i]}expandSegmentAgainstRoute(t,e,i,s,n,r,o){return qf(s)!==r?Hf(e):void 0===s.redirectTo?this.matchSegmentAgainstRoute(t,e,s,n):o&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,s,n,r):Hf(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,s,n,r){return"**"===s.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,s,r):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,s,n,r)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,s){const n=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Wf(n):this.lineralizeSegments(i,n).pipe(z(i=>{const n=new zp(i,{});return this.expandSegment(t,n,e,i,s,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,s,n,r){const{matched:o,consumedSegments:a,lastChild:l,positionalParamSegments:h}=Uf(e,s,n);if(!o)return Hf(e);const c=this.applyRedirectCommands(a,s.redirectTo,h);return s.redirectTo.startsWith("/")?Wf(c):this.lineralizeSegments(s,c).pipe(z(s=>this.expandSegment(t,e,i,s.concat(n.slice(l)),r,!1)))}matchSegmentAgainstRoute(t,e,i,s){if("**"===i.path)return i.loadChildren?this.configLoader.load(t.injector,i).pipe(A(t=>(i._loadedConfig=t,new zp(s,{})))):Nu(new zp(s,{}));const{matched:n,consumedSegments:r,lastChild:o}=Uf(e,i,s);if(!n)return Hf(e);const a=s.slice(o);return this.getChildConfig(t,i,s).pipe(z(t=>{const i=t.module,s=t.routes,{segmentGroup:n,slicedSegments:o}=function(t,e,i,s){return i.length>0&&function(t,e,i){return i.some(i=>Yf(t,e,i)&&qf(i)!==Ep)}(t,i,s)?{segmentGroup:Xf(new zp(e,function(t,e){const i={};i.primary=e;for(const s of t)""===s.path&&qf(s)!==Ep&&(i[qf(s)]=new zp([],{}));return i}(s,new zp(i,t.children)))),slicedSegments:[]}:0===i.length&&function(t,e,i){return i.some(i=>Yf(t,e,i))}(t,i,s)?{segmentGroup:Xf(new zp(t.segments,function(t,e,i,s){const n={};for(const r of i)Yf(t,e,r)&&!s[qf(r)]&&(n[qf(r)]=new zp([],{}));return Object.assign(Object.assign({},s),n)}(t,i,s,t.children))),slicedSegments:i}:{segmentGroup:t,slicedSegments:i}}(e,r,a,s);return 0===o.length&&n.hasChildren()?this.expandChildren(i,s,n).pipe(A(t=>new zp(r,t))):0===s.length&&0===o.length?Nu(new zp(r,{})):this.expandSegment(i,n,s,o,Ep,!0).pipe(A(t=>new zp(r.concat(t.segments),t.children)))}))}getChildConfig(t,e,i){return e.children?Nu(new If(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Nu(e._loadedConfig):this.runCanLoadGuards(t.injector,e,i).pipe(z(i=>i?this.configLoader.load(t.injector,e).pipe(A(t=>(e._loadedConfig=t,t))):function(t){return new v(e=>e.error(Dp(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(e))):Nu(new If([],t))}runCanLoadGuards(t,e,i){const s=e.canLoad;return s&&0!==s.length?Nu(s.map(s=>{const n=t.get(s);let r;if(function(t){return t&&Rf(t.canLoad)}(n))r=n.canLoad(e,i);else{if(!Rf(n))throw new Error("Invalid CanLoad guard");r=n(e,i)}return Fp(r)})).pipe(Nf(),rp(t=>{if(!Bf(t))return;const e=Dp(`Redirecting to "${this.urlSerializer.serialize(t)}"`);throw e.url=t,e}),A(t=>!0===t)):Nu(!0)}lineralizeSegments(t,e){let i=[],s=e.root;for(;;){if(i=i.concat(s.segments),0===s.numberOfChildren)return Nu(i);if(s.numberOfChildren>1||!s.children.primary)return Vf(t.redirectTo);s=s.children.primary}}applyRedirectCommands(t,e,i){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreatreUrlTree(t,e,i,s){const n=this.createSegmentGroup(t,e.root,i,s);return new jp(n,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return Bp(t,(t,s)=>{if("string"==typeof t&&t.startsWith(":")){const n=t.substring(1);i[s]=e[n]}else i[s]=t}),i}createSegmentGroup(t,e,i,s){const n=this.createSegments(t,e.segments,i,s);let r={};return Bp(e.children,(e,n)=>{r[n]=this.createSegmentGroup(t,e,i,s)}),new zp(n,r)}createSegments(t,e,i,s){return e.map(e=>e.path.startsWith(":")?this.findPosParam(t,e,s):this.findOrReturn(e,i))}findPosParam(t,e,i){const s=i[e.path.substring(1)];if(!s)throw new Error(`Cannot redirect to '${t}'. Cannot find '${e.path}'.`);return s}findOrReturn(t,e){let i=0;for(const s of e){if(s.path===t.path)return e.splice(i),s;i++}return t}}function Uf(t,e,i){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||i.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};const s=(e.matcher||Pp)(i,t,e);return s?{matched:!0,consumedSegments:s.consumed,lastChild:s.consumed.length,positionalParamSegments:s.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Xf(t){if(1===t.numberOfChildren&&t.children.primary){const e=t.children.primary;return new zp(t.segments.concat(e.segments),e.children)}return t}function Yf(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0!==i.redirectTo}function qf(t){return t.outlet||Ep}class $f{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Kf{constructor(t,e){this.component=t,this.route=e}}function Zf(t,e,i){const s=t._root;return function t(e,i,s,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=cf(i);return e.children.forEach(e=>{!function(e,i,s,n,r={canDeactivateChecks:[],canActivateChecks:[]}){const o=e.value,a=i?i.value:null,l=s?s.getContext(e.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){const h=function(t,e,i){if("function"==typeof i)return i(t,e);switch(i){case"pathParamsChange":return!Wp(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Wp(t.url,e.url)||!Op(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!xf(t,e)||!Op(t.queryParams,e.queryParams);case"paramsChange":default:return!xf(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);h?r.canActivateChecks.push(new $f(n)):(o.data=a.data,o._resolvedData=a._resolvedData),t(e,i,o.component?l?l.children:null:s,n,r),h&&l&&l.outlet&&l.outlet.isActivated&&r.canDeactivateChecks.push(new Kf(l.outlet.component,a))}else a&&Jf(i,l,r),r.canActivateChecks.push(new $f(n)),t(e,null,o.component?l?l.children:null:s,n,r)}(e,o[e.value.outlet],s,n.concat([e.value]),r),delete o[e.value.outlet]}),Bp(o,(t,e)=>Jf(t,s.getContext(e),r)),r}(s,e?e._root:null,i,[s.value])}function Qf(t,e,i){const s=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const t=e.routeConfig;if(t&&t._loadedConfig)return t._loadedConfig}return null}(e);return(s?s.module.injector:i).get(t)}function Jf(t,e,i){const s=cf(t),n=t.value;Bp(s,(t,s)=>{Jf(t,n.component?e?e.children.getContext(s):null:e,i)}),i.canDeactivateChecks.push(new Kf(n.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,n))}function tg(t,e){return null!==t&&e&&e(new kp(t)),Nu(!0)}function eg(t,e){return null!==t&&e&&e(new wp(t)),Nu(!0)}function ig(t,e,i){const s=e.routeConfig?e.routeConfig.canActivate:null;return s&&0!==s.length?Nu(s.map(s=>Pd(()=>{const n=Qf(s,e,i);let r;if(function(t){return t&&Rf(t.canActivate)}(n))r=Fp(n.canActivate(e,t));else{if(!Rf(n))throw new Error("Invalid CanActivate guard");r=Fp(n(e,t))}return r.pipe(sp())}))).pipe(Nf()):Nu(!0)}function sg(t,e,i){const s=e[e.length-1],n=e.slice(0,e.length-1).reverse().map(t=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)).filter(t=>null!==t).map(e=>Pd(()=>Nu(e.guards.map(n=>{const r=Qf(n,e.node,i);let o;if(function(t){return t&&Rf(t.canActivateChild)}(r))o=Fp(r.canActivateChild(s,t));else{if(!Rf(r))throw new Error("Invalid CanActivateChild guard");o=Fp(r(s,t))}return o.pipe(sp())})).pipe(Nf())));return Nu(n).pipe(Nf())}class ng{}class rg{constructor(t,e,i,s,n,r){this.rootComponentType=t,this.config=e,this.urlTree=i,this.url=s,this.paramsInheritanceStrategy=n,this.relativeLinkResolution=r}recognize(){try{const t=lg(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Ep),i=new gf([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Ep,this.rootComponentType,null,this.urlTree.root,-1,{}),s=new hf(i,e),n=new mf(this.url,s);return this.inheritParamsAndData(n._root),Nu(n)}catch(t){return new v(e=>e.error(t))}}inheritParamsAndData(t){const e=t.value,i=ff(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(t=>this.inheritParamsAndData(t))}processSegmentGroup(t,e,i){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,i)}processChildren(t,e){const i=Vp(e,(e,i)=>this.processSegmentGroup(t,e,i));return function(t){const e={};t.forEach(t=>{const i=e[t.value.outlet];if(i){const e=i.url.map(t=>t.toString()).join("/"),s=t.value.url.map(t=>t.toString()).join("/");throw new Error(`Two segments cannot have the same outlet name: '${e}' and '${s}'.`)}e[t.value.outlet]=t.value})}(i),i.sort((t,e)=>t.value.outlet===Ep?-1:e.value.outlet===Ep?1:t.value.outlet.localeCompare(e.value.outlet)),i}processSegment(t,e,i,s){for(const r of t)try{return this.processSegmentAgainstRoute(r,e,i,s)}catch(n){if(!(n instanceof ng))throw n}if(this.noLeftoversInUrl(e,i,s))return[];throw new ng}noLeftoversInUrl(t,e,i){return 0===e.length&&!t.children[i]}processSegmentAgainstRoute(t,e,i,s){if(t.redirectTo)throw new ng;if((t.outlet||Ep)!==s)throw new ng;let n,r=[],o=[];if("**"===t.path){const r=i.length>0?Rp(i).parameters:{};n=new gf(i,r,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ug(t),s,t.component,t,og(e),ag(e)+i.length,dg(t))}else{const a=function(t,e,i){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||i.length>0))throw new ng;return{consumedSegments:[],lastChild:0,parameters:{}}}const s=(e.matcher||Pp)(i,t,e);if(!s)throw new ng;const n={};Bp(s.posParams,(t,e)=>{n[e]=t.path});const r=s.consumed.length>0?Object.assign(Object.assign({},n),s.consumed[s.consumed.length-1].parameters):n;return{consumedSegments:s.consumed,lastChild:s.consumed.length,parameters:r}}(e,t,i);r=a.consumedSegments,o=i.slice(a.lastChild),n=new gf(r,a.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ug(t),s,t.component,t,og(e),ag(e)+r.length,dg(t))}const a=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),{segmentGroup:l,slicedSegments:h}=lg(e,r,o,a,this.relativeLinkResolution);if(0===h.length&&l.hasChildren()){const t=this.processChildren(a,l);return[new hf(n,t)]}if(0===a.length&&0===h.length)return[new hf(n,[])];const c=this.processSegment(a,l,h,Ep);return[new hf(n,c)]}}function og(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function ag(t){let e=t,i=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,i+=e._segmentIndexShift?e._segmentIndexShift:0;return i-1}function lg(t,e,i,s,n){if(i.length>0&&function(t,e,i){return i.some(i=>hg(t,e,i)&&cg(i)!==Ep)}(t,i,s)){const n=new zp(e,function(t,e,i,s){const n={};n.primary=s,s._sourceSegment=t,s._segmentIndexShift=e.length;for(const r of i)if(""===r.path&&cg(r)!==Ep){const i=new zp([],{});i._sourceSegment=t,i._segmentIndexShift=e.length,n[cg(r)]=i}return n}(t,e,s,new zp(i,t.children)));return n._sourceSegment=t,n._segmentIndexShift=e.length,{segmentGroup:n,slicedSegments:[]}}if(0===i.length&&function(t,e,i){return i.some(i=>hg(t,e,i))}(t,i,s)){const r=new zp(t.segments,function(t,e,i,s,n,r){const o={};for(const a of s)if(hg(t,i,a)&&!n[cg(a)]){const i=new zp([],{});i._sourceSegment=t,i._segmentIndexShift="legacy"===r?t.segments.length:e.length,o[cg(a)]=i}return Object.assign(Object.assign({},n),o)}(t,e,i,s,t.children,n));return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:i}}const r=new zp(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=e.length,{segmentGroup:r,slicedSegments:i}}function hg(t,e,i){return(!(t.hasChildren()||e.length>0)||"full"!==i.pathMatch)&&""===i.path&&void 0===i.redirectTo}function cg(t){return t.outlet||Ep}function ug(t){return t.data||{}}function dg(t){return t.resolve||{}}function pg(t){return function(e){return e.pipe(Gd(e=>{const i=t(e);return i?B(i).pipe(A(()=>e)):B([e])}))}}class fg extends class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}{}let gg=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&To(0,"router-outlet")},directives:function(){return[Lg]},encapsulation:2}),t})();function mg(t,e=""){for(let i=0;i{this.onLoadEndListener&&this.onLoadEndListener(e);const s=i.create(t);return new If(Ip(s.injector.get(xg)).map(bg),s)}))}loadModuleFactory(t){return"string"==typeof t?B(this.loader.load(t)):Fp(t()).pipe(z(t=>t instanceof te?Nu(t):B(this.compiler.compileModuleAsync(t))))}}class wg{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Cg,this.attachRef=null}}class Cg{constructor(){this.contexts=new Map}onChildOutletCreated(t,e){const i=this.getOrCreateContext(t);i.outlet=e,this.contexts.set(t,i)}onChildOutletDestroyed(t){const e=this.getContext(t);e&&(e.outlet=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let e=this.getContext(t);return e||(e=new wg,this.contexts.set(t,e)),e}getContext(t){return this.contexts.get(t)||null}}class kg{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,e){return t}}function Sg(t){throw t}function Ag(t,e,i){return e.parse("/")}function Eg(t,e){return Nu(null)}let Mg=(()=>{class t{constructor(t,e,i,s,n,r,o,a){this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=i,this.location=s,this.config=a,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.lastLocationChangeInfo=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new C,this.errorHandler=Sg,this.malformedUriErrorHandler=Ag,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Eg,afterPreactivation:Eg},this.urlHandlingStrategy=new kg,this.routeReuseStrategy=new fg,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=n.get(Jt),this.console=n.get(eh);const l=n.get(fh);this.isNgZoneEnabled=l instanceof fh,this.resetConfig(a),this.currentUrlTree=new jp(new zp([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new _g(r,o,t=>this.triggerEvent(new xp(t)),t=>this.triggerEvent(new _p(t))),this.routerState=df(this.currentUrlTree,this.rootComponentType),this.transitions=new _d({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}setupNavigations(t){const e=this.events;return t.pipe(zu(t=>0!==t.id),A(t=>Object.assign(Object.assign({},t),{extractedUrl:this.urlHandlingStrategy.extract(t.rawUrl)})),Gd(t=>{let i=!1,s=!1;return Nu(t).pipe(rp(t=>{this.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Gd(t=>{const i=!this.navigated||t.extractedUrl.toString()!==this.browserUrlTree.toString();if(("reload"===this.onSameUrlNavigation||i)&&this.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Nu(t).pipe(Gd(t=>{const i=this.transitions.getValue();return e.next(new up(t.id,this.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==this.transitions.getValue()?Td:[t]}),Gd(t=>Promise.resolve(t)),(s=this.ngModule.injector,n=this.configLoader,r=this.urlSerializer,o=this.config,function(t){return t.pipe(Gd(t=>function(t,e,i,s,n){return new Gf(t,e,i,s,n).apply()}(s,n,r,t.extractedUrl,o).pipe(A(e=>Object.assign(Object.assign({},t),{urlAfterRedirects:e})))))}),rp(t=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,e,i,s,n){return function(r){return r.pipe(z(r=>function(t,e,i,s,n="emptyOnly",r="legacy"){return new rg(t,e,i,s,n,r).recognize()}(t,e,r.urlAfterRedirects,i(r.urlAfterRedirects),s,n).pipe(A(t=>Object.assign(Object.assign({},r),{targetSnapshot:t})))))}}(this.rootComponentType,this.config,t=>this.serializeUrl(t),this.paramsInheritanceStrategy,this.relativeLinkResolution),rp(t=>{"eager"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),rp(t=>{const i=new gp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.next(i)}));var s,n,r,o;if(i&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:i,extractedUrl:s,source:n,restoredState:r,extras:o}=t,a=new up(i,this.serializeUrl(s),n,r);e.next(a);const l=df(s,this.rootComponentType).snapshot;return Nu(Object.assign(Object.assign({},t),{targetSnapshot:l,urlAfterRedirects:s,extras:Object.assign(Object.assign({},o),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=t.rawUrl,this.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Td}),pg(t=>{const{targetSnapshot:e,id:i,extractedUrl:s,rawUrl:n,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.beforePreactivation(e,{navigationId:i,appliedUrlTree:s,rawUrlTree:n,skipLocationChange:!!r,replaceUrl:!!o})}),rp(t=>{const e=new mp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),A(t=>Object.assign(Object.assign({},t),{guards:Zf(t.targetSnapshot,t.currentSnapshot,this.rootContexts)})),function(t,e){return function(i){return i.pipe(z(i=>{const{targetSnapshot:s,currentSnapshot:n,guards:{canActivateChecks:r,canDeactivateChecks:o}}=i;return 0===o.length&&0===r.length?Nu(Object.assign(Object.assign({},i),{guardsResult:!0})):function(t,e,i,s){return B(t).pipe(z(t=>function(t,e,i,s,n){const r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?Nu(r.map(r=>{const o=Qf(r,e,n);let a;if(function(t){return t&&Rf(t.canDeactivate)}(o))a=Fp(o.canDeactivate(t,e,i,s));else{if(!Rf(o))throw new Error("Invalid CanDeactivate guard");a=Fp(o(t,e,i,s))}return a.pipe(sp())})).pipe(Nf()):Nu(!0)}(t.component,t.route,i,e,s)),sp(t=>!0!==t,!0))}(o,s,n,t).pipe(z(i=>i&&"boolean"==typeof i?function(t,e,i,s){return B(e).pipe(ju(e=>B([eg(e.route.parent,s),tg(e.route,s),sg(t,e.path,i),ig(t,e.route,i)]).pipe(Od(),sp(t=>!0!==t,!0))),sp(t=>!0!==t,!0))}(s,r,t,e):Nu(i)),A(t=>Object.assign(Object.assign({},i),{guardsResult:t})))}))}}(this.ngModule.injector,t=>this.triggerEvent(t)),rp(t=>{if(Bf(t.guardsResult)){const e=Dp(`Redirecting to "${this.serializeUrl(t.guardsResult)}"`);throw e.url=t.guardsResult,e}}),rp(t=>{const e=new yp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);this.triggerEvent(e)}),zu(t=>{if(!t.guardsResult){this.resetUrlToCurrentUrlTree();const i=new pp(t.id,this.serializeUrl(t.extractedUrl),"");return e.next(i),t.resolve(!1),!1}return!0}),pg(t=>{if(t.guards.canActivateChecks.length)return Nu(t).pipe(rp(t=>{const e=new vp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}),Gd(t=>{let i=!1;return Nu(t).pipe((s=this.paramsInheritanceStrategy,n=this.ngModule.injector,function(t){return t.pipe(z(t=>{const{targetSnapshot:e,guards:{canActivateChecks:i}}=t;if(!i.length)return Nu(t);let r=0;return B(i).pipe(ju(t=>function(t,e,i,s){return function(t,e,i,s){const n=Object.keys(t);if(0===n.length)return Nu({});const r={};return B(n).pipe(z(n=>function(t,e,i,s){const n=Qf(t,e,s);return Fp(n.resolve?n.resolve(e,i):n(e,i))}(t[n],e,i,s).pipe(rp(t=>{r[n]=t}))),Id(1),z(()=>Object.keys(r).length===n.length?Nu(r):Td))}(t._resolve,t,e,s).pipe(A(e=>(t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),ff(t,i).resolve),null)))}(t.route,e,s,n)),rp(()=>r++),Id(1),z(e=>r===i.length?Nu(t):Td))}))}),rp({next:()=>i=!0,complete:()=>{if(!i){const i=new pp(t.id,this.serializeUrl(t.extractedUrl),"At least one route resolver didn't emit any value.");e.next(i),t.resolve(!1)}}}));var s,n}),rp(t=>{const e=new bp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);this.triggerEvent(e)}))}),pg(t=>{const{targetSnapshot:e,id:i,extractedUrl:s,rawUrl:n,extras:{skipLocationChange:r,replaceUrl:o}}=t;return this.hooks.afterPreactivation(e,{navigationId:i,appliedUrlTree:s,rawUrlTree:n,skipLocationChange:!!r,replaceUrl:!!o})}),A(t=>{const e=function(t,e,i){const s=function t(e,i,s){if(s&&e.shouldReuseRoute(i.value,s.value.snapshot)){const n=s.value;n._futureSnapshot=i.value;const r=function(e,i,s){return i.children.map(i=>{for(const n of s.children)if(e.shouldReuseRoute(n.value.snapshot,i.value))return t(e,i,n);return t(e,i)})}(e,i,s);return new hf(n,r)}{const s=e.retrieve(i.value);if(s){const t=s.route;return function t(e,i){if(e.value.routeConfig!==i.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==i.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");i.value._futureSnapshot=e.value;for(let s=0;st(e,i));return new hf(s,r)}}var n}(t,e._root,i?i._root:void 0);return new uf(s,e)}(this.routeReuseStrategy,t.targetSnapshot,t.currentRouterState);return Object.assign(Object.assign({},t),{targetRouterState:e})}),rp(t=>{this.currentUrlTree=t.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl),this.routerState=t.targetRouterState,"deferred"===this.urlUpdateStrategy&&(t.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,!!t.extras.replaceUrl,t.id,t.extras.state),this.browserUrlTree=t.urlAfterRedirects)}),(r=this.rootContexts,o=this.routeReuseStrategy,a=t=>this.triggerEvent(t),A(t=>(new Of(o,t.targetRouterState,t.currentRouterState,a).activate(r),t))),rp({next(){i=!0},complete(){i=!0}}),(n=()=>{if(!i&&!s){this.resetUrlToCurrentUrlTree();const i=new pp(t.id,this.serializeUrl(t.extractedUrl),`Navigation ID ${t.id} is not equal to the current navigation id ${this.navigationId}`);e.next(i),t.resolve(!1)}this.currentNavigation=null},t=>t.lift(new lp(n))),tp(i=>{if(s=!0,(n=i)&&n.ngNavigationCancelingError){const s=Bf(i.url);s||(this.navigated=!0,this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));const n=new pp(t.id,this.serializeUrl(t.extractedUrl),i.message);e.next(n),s?setTimeout(()=>{const e=this.urlHandlingStrategy.merge(i.url,this.rawUrlTree);return this.scheduleNavigation(e,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{this.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);const s=new fp(t.id,this.serializeUrl(t.extractedUrl),i);e.next(s);try{t.resolve(this.errorHandler(i))}catch(r){t.reject(r)}}var n;return Td}));var n,r,o,a}))}resetRootComponentType(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}getTransition(){const t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}setTransition(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const e=this.extractLocationChangeInfoFromEvent(t);this.shouldScheduleNavigation(this.lastLocationChangeInfo,e)&&setTimeout(()=>{const{source:t,state:i,urlTree:s}=e,n={replaceUrl:!0};if(i){const t=Object.assign({},i);delete t.navigationId,0!==Object.keys(t).length&&(n.state=t)}this.scheduleNavigation(s,t,i,n)},0),this.lastLocationChangeInfo=e}))}extractLocationChangeInfoFromEvent(t){var e;return{source:"popstate"===t.type?"popstate":"hashchange",urlTree:this.parseUrl(t.url),state:(null===(e=t.state)||void 0===e?void 0:e.navigationId)?t.state:null,transitionId:this.getTransition().id}}shouldScheduleNavigation(t,e){if(!t)return!0;const i=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&i&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(t){this.events.next(t)}resetConfig(t){mg(t),this.config=t.map(bg),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0)}createUrlTree(t,e={}){const{relativeTo:i,queryParams:s,fragment:n,preserveQueryParams:r,queryParamsHandling:o,preserveFragment:a}=e;Ss()&&r&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");const l=i||this.routerState.root,h=a?this.currentUrlTree.fragment:n;let c=null;if(o)switch(o){case"merge":c=Object.assign(Object.assign({},this.currentUrlTree.queryParams),s);break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=s||null}else c=r?this.currentUrlTree.queryParams:s||null;return null!==c&&(c=this.removeEmptyProps(c)),function(t,e,i,s,n){if(0===i.length)return wf(e.root,e.root,e,s,n);const r=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Cf(!0,0,t);let e=0,i=!1;const s=t.reduce((t,s,n)=>{if("object"==typeof s&&null!=s){if(s.outlets){const e={};return Bp(s.outlets,(t,i)=>{e[i]="string"==typeof t?t.split("/"):t}),[...t,{outlets:e}]}if(s.segmentPath)return[...t,s.segmentPath]}return"string"!=typeof s?[...t,s]:0===n?(s.split("/").forEach((s,n)=>{0==n&&"."===s||(0==n&&""===s?i=!0:".."===s?e++:""!=s&&t.push(s))}),t):[...t,s]},[]);return new Cf(i,e,s)}(i);if(r.toRoot())return wf(e.root,new zp([],{}),e,s,n);const o=function(t,e,i){if(t.isAbsolute)return new kf(e.root,!0,0);if(-1===i.snapshot._lastPathIndex){const t=i.snapshot._urlSegment;return new kf(t,t===e.root,0)}const s=_f(t.commands[0])?0:1;return function(t,e,i){let s=t,n=e,r=i;for(;r>n;){if(r-=n,s=s.parent,!s)throw new Error("Invalid number of '../'");n=s.segments.length}return new kf(s,!1,n-r)}(i.snapshot._urlSegment,i.snapshot._lastPathIndex+s,t.numberOfDoubleDots)}(r,e,t),a=o.processChildren?Ef(o.segmentGroup,o.index,r.commands):Af(o.segmentGroup,o.index,r.commands);return wf(o.segmentGroup,a,e,s,n)}(l,this.currentUrlTree,t,c,h)}navigateByUrl(t,e={skipLocationChange:!1}){Ss()&&this.isNgZoneEnabled&&!fh.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");const i=Bf(t)?t:this.parseUrl(t),s=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(s,"imperative",null,e)}navigate(t,e={skipLocationChange:!1}){return function(t){for(let e=0;e{const s=t[i];return null!=s&&(e[i]=s),e},{})}processNavigations(){this.navigations.subscribe(t=>{this.navigated=!0,this.lastSuccessfulId=t.id,this.events.next(new dp(t.id,this.serializeUrl(t.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,this.currentNavigation=null,t.resolve(!0)},t=>{this.console.warn("Unhandled Navigation Error: ")})}scheduleNavigation(t,e,i,s,n){const r=this.getTransition(),o="imperative"!==e&&"imperative"===(null==r?void 0:r.source),a=(this.lastSuccessfulId===r.id||this.currentNavigation?r.rawUrl:r.urlAfterRedirects).toString()===t.toString();if(o&&a)return Promise.resolve(!0);let l,h,c;n?(l=n.resolve,h=n.reject,c=n.promise):c=new Promise((t,e)=>{l=t,h=e});const u=++this.navigationId;return this.setTransition({id:u,source:e,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:s,resolve:l,reject:h,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(t=>Promise.reject(t))}setBrowserUrl(t,e,i,s){const n=this.urlSerializer.serialize(t);s=s||{},this.location.isCurrentPathEqualTo(n)||e?this.location.replaceState(n,"",Object.assign(Object.assign({},s),{navigationId:i})):this.location.go(n,"",Object.assign(Object.assign({},s),{navigationId:i}))}resetStateAndUrl(t,e,i){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,i),this.resetUrlToCurrentUrlTree()}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})}}return t.\u0275fac=function(e){return new(e||t)(qt(jr),qt(Gp),qt(Cg),qt(oc),qt(to),qt(Rh),qt(uh),qt(void 0))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Tg=(()=>{class t{constructor(t,e,i,s,n){this.router=t,this.route=e,this.commands=[],this.onChanges=new C,null==i&&s.setAttribute(n.nativeElement,"tabindex","0")}ngOnChanges(t){this.onChanges.next(this)}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Ss()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t}onClick(){const t={skipLocationChange:Pg(this.skipLocationChange),replaceUrl:Pg(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,t),!0}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Pg(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Pg(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Co(Mg),Co(pf),ko("tabindex"),Co(Ta),Co(Sa))},t.\u0275dir=be({type:t,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(t,e){1&t&&Lo("click",(function(){return e.onClick()}))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[Ie]}),t})(),Dg=(()=>{class t{constructor(t,e,i){this.router=t,this.route=e,this.locationStrategy=i,this.commands=[],this.onChanges=new C,this.subscription=t.events.subscribe(t=>{t instanceof dp&&this.updateTargetUrlAndHref()})}set routerLink(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]}set preserveQueryParams(t){Ss()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t}ngOnChanges(t){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(t,e,i,s,n){if(0!==t||e||i||s||n)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;const r={skipLocationChange:Pg(this.skipLocationChange),replaceUrl:Pg(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,r),!1}updateTargetUrlAndHref(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))}get urlTree(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Pg(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Pg(this.preserveFragment)})}}return t.\u0275fac=function(e){return new(e||t)(Co(Mg),Co(pf),Co(ec))},t.\u0275dir=be({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(t,e){1&t&&Lo("click",(function(t){return e.onClick(t.button,t.ctrlKey,t.shiftKey,t.altKey,t.metaKey)})),2&t&&(pa("href",e.href,Ks),vo("target",e.target))},inputs:{routerLink:"routerLink",preserveQueryParams:"preserveQueryParams",target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state"},features:[Ie]}),t})();function Pg(t){return""===t||!!t}let Og=(()=>{class t{constructor(t,e,i,s,n,r){this.router=t,this.element=e,this.renderer=i,this.cdr=s,this.link=n,this.linkWithHref=r,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.routerEventsSubscription=t.events.subscribe(t=>{t instanceof dp&&this.update()})}ngAfterContentInit(){B([this.links.changes,this.linksWithHrefs.changes,Nu(null)]).pipe(V()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var t;null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe();const e=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(t=>!!t).map(t=>t.onChanges);this.linkInputChangesSubscription=B(e).pipe(V()).subscribe(t=>{this.isActive!==this.isLinkActive(this.router)(t)&&this.update()})}set routerLinkActive(t){const e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(t=>!!t)}ngOnChanges(t){this.update()}ngOnDestroy(){var t;this.routerEventsSubscription.unsubscribe(),null===(t=this.linkInputChangesSubscription)||void 0===t||t.unsubscribe()}update(){this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(()=>{const t=this.hasActiveLinks();this.isActive!==t&&(this.isActive=t,this.cdr.markForCheck(),this.classes.forEach(e=>{t?this.renderer.addClass(this.element.nativeElement,e):this.renderer.removeClass(this.element.nativeElement,e)}))})}isLinkActive(t){return e=>t.isActive(e.urlTree,this.routerLinkActiveOptions.exact)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.linkWithHref&&t(this.linkWithHref)||this.links.some(t)||this.linksWithHrefs.some(t)}}return t.\u0275fac=function(e){return new(e||t)(Co(Mg),Co(Sa),Co(Ta),Co(Fr),Co(Tg,8),Co(Dg,8))},t.\u0275dir=be({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(t,e,i){var s;1&t&&(zl(i,Tg,!0),zl(i,Dg,!0)),2&t&&(Bl(s=Wl())&&(e.links=s),Bl(s=Wl())&&(e.linksWithHrefs=s))},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},exportAs:["routerLinkActive"],features:[Ie]}),t})(),Lg=(()=>{class t{constructor(t,e,i,s,n){this.parentContexts=t,this.location=e,this.resolver=i,this.changeDetector=n,this.activated=null,this._activatedRoute=null,this.activateEvents=new Sl,this.deactivateEvents=new Sl,this.name=s||Ep,t.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,t}attach(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;const i=(e=e||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),s=this.parentContexts.getOrCreateContext(this.name).children,n=new Ig(t,s,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,n),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(e){return new(e||t)(Co(Cg),Co(Za),Co(ka),ko("name"),Co(Fr))},t.\u0275dir=be({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]}),t})();class Ig{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===pf?this.route:t===Cg?this.childContexts:this.parent.get(t,e)}}class Rg{}class Bg{preload(t,e){return Nu(null)}}let Fg=(()=>{class t{constructor(t,e,i,s,n){this.router=t,this.injector=s,this.preloadingStrategy=n,this.loader=new _g(e,i,e=>t.triggerEvent(new xp(e)),e=>t.triggerEvent(new _p(e)))}setUpPreloading(){this.subscription=this.router.events.pipe(zu(t=>t instanceof dp),ju(()=>this.preload())).subscribe(()=>{})}preload(){const t=this.injector.get(Jt);return this.processRoutes(t,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,e){const i=[];for(const s of e)if(s.loadChildren&&!s.canLoad&&s._loadedConfig){const t=s._loadedConfig;i.push(this.processRoutes(t.module,t.routes))}else s.loadChildren&&!s.canLoad?i.push(this.preloadConfig(t,s)):s.children&&i.push(this.processRoutes(t,s.children));return B(i).pipe(V(),A(t=>{}))}preloadConfig(t,e){return this.preloadingStrategy.preload(e,()=>this.loader.load(t.injector,e).pipe(z(t=>(e._loadedConfig=t,this.processRoutes(t.module,t.routes)))))}}return t.\u0275fac=function(e){return new(e||t)(qt(Mg),qt(Rh),qt(uh),qt(to),qt(Rg))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Ng=(()=>{class t{constructor(t,e,i={}){this.router=t,this.viewportScroller=e,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(t=>{t instanceof up?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof dp&&(this.lastId=t.id,this.scheduleScrollEvent(t,this.router.parseUrl(t.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(t=>{t instanceof Ap&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,e){this.router.triggerEvent(new Ap(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(qt(Mg),qt(au),qt(void 0))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const jg=new Ft("ROUTER_CONFIGURATION"),zg=new Ft("ROUTER_FORROOT_GUARD"),Hg=[oc,{provide:Gp,useClass:Up},{provide:Mg,useFactory:function(t,e,i,s,n,r,o,a={},l,h){const c=new Mg(null,t,e,i,s,n,r,Ip(o));if(l&&(c.urlHandlingStrategy=l),h&&(c.routeReuseStrategy=h),a.errorHandler&&(c.errorHandler=a.errorHandler),a.malformedUriErrorHandler&&(c.malformedUriErrorHandler=a.malformedUriErrorHandler),a.enableTracing){const t=Gh();c.events.subscribe(e=>{t.logGroup("Router Event: "+e.constructor.name),t.log(e.toString()),t.log(e),t.logGroupEnd()})}return a.onSameUrlNavigation&&(c.onSameUrlNavigation=a.onSameUrlNavigation),a.paramsInheritanceStrategy&&(c.paramsInheritanceStrategy=a.paramsInheritanceStrategy),a.urlUpdateStrategy&&(c.urlUpdateStrategy=a.urlUpdateStrategy),a.relativeLinkResolution&&(c.relativeLinkResolution=a.relativeLinkResolution),c},deps:[Gp,Cg,oc,to,Rh,uh,xg,jg,[class{},new st],[class{},new st]]},Cg,{provide:pf,useFactory:function(t){return t.routerState.root},deps:[Mg]},{provide:Rh,useClass:Nh},Fg,Bg,class{preload(t,e){return e().pipe(tp(()=>Nu(null)))}},{provide:jg,useValue:{enableTracing:!1}}];function Wg(){return new Mh("Router",Mg)}let Vg=(()=>{class t{constructor(t,e){}static forRoot(e,i){return{ngModule:t,providers:[Hg,Yg(e),{provide:zg,useFactory:Xg,deps:[[Mg,new st,new rt]]},{provide:jg,useValue:i||{}},{provide:ec,useFactory:Ug,deps:[Xh,[new it(sc),new st],jg]},{provide:Ng,useFactory:Gg,deps:[Mg,au,jg]},{provide:Rg,useExisting:i&&i.preloadingStrategy?i.preloadingStrategy:Bg},{provide:Mh,multi:!0,useFactory:Wg},[qg,{provide:Yl,multi:!0,useFactory:$g,deps:[qg]},{provide:Zg,useFactory:Kg,deps:[qg]},{provide:th,multi:!0,useExisting:Zg}]]}}static forChild(e){return{ngModule:t,providers:[Yg(e)]}}}return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)(qt(zg,8),qt(Mg,8))}}),t})();function Gg(t,e,i){return i.scrollOffset&&e.setOffset(i.scrollOffset),new Ng(t,e,i)}function Ug(t,e,i={}){return i.useHash?new rc(t,e):new nc(t,e)}function Xg(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Yg(t){return[{provide:eo,multi:!0,useValue:t},{provide:xg,multi:!0,useValue:t}]}let qg=(()=>{class t{constructor(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new C}appInitializer(){return this.injector.get(qh,Promise.resolve(null)).then(()=>{let t=null;const e=new Promise(e=>t=e),i=this.injector.get(Mg),s=this.injector.get(jg);if(this.isLegacyDisabled(s)||this.isLegacyEnabled(s))t(!0);else if("disabled"===s.initialNavigation)i.setUpLocationChangeListener(),t(!0);else{if("enabled"!==s.initialNavigation)throw new Error(`Invalid initialNavigation options: '${s.initialNavigation}'`);i.hooks.afterPreactivation=()=>this.initNavigation?Nu(null):(this.initNavigation=!0,t(!0),this.resultOfPreactivationDone),i.initialNavigation()}return e})}bootstrapListener(t){const e=this.injector.get(jg),i=this.injector.get(Fg),s=this.injector.get(Ng),n=this.injector.get(Mg),r=this.injector.get(Lh);t===r.components[0]&&(this.isLegacyEnabled(e)?n.initialNavigation():this.isLegacyDisabled(e)&&n.setUpLocationChangeListener(),i.setUpPreloading(),s.init(),n.resetRootComponentType(r.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}isLegacyEnabled(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation}isLegacyDisabled(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation}}return t.\u0275fac=function(e){return new(e||t)(qt(to))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function $g(t){return t.appInitializer.bind(t)}function Kg(t){return t.bootstrapListener.bind(t)}const Zg=new Ft("Router Initializer");var Qg=i("5ZEx");let Jg=(()=>{class t{constructor(t){this.http=t,this.detailsUrl="https://cloudbackend.wl.r.appspot.com/details",this.summaryUrl="https://cloudbackend.wl.r.appspot.com/summary",this.newsUrl="https://cloudbackend.wl.r.appspot.com/news",this.dailychartsUrl="https://cloudbackend.wl.r.appspot.com/dailycharts",this.historicalCharts="https://cloudbackend.wl.r.appspot.com/charts",this.watchlistUrl="https://cloudbackend.wl.r.appspot.com/watchlist",this.portfolioUrl="https://cloudbackend.wl.r.appspot.com/portfolio"}getDetailsData(t){return this.http.get(`${this.detailsUrl}/${t}`)}getSummaryData(t){return this.http.get(`${this.summaryUrl}/${t}`)}getNewsData(t){return this.http.get(`${this.newsUrl}/${t}`)}getDailyData(t){return this.http.get(`${this.dailychartsUrl}/${t}`)}getHistoricalData(t){return this.http.get(`${this.historicalCharts}/${t}`)}getWatchlistUpdatedData(t){return this.http.get(`${this.watchlistUrl}/${t}`)}getPortfolioUpdatedData(t){return this.http.get(`${this.portfolioUrl}/${t}`)}}return t.\u0275fac=function(e){return new(e||t)(qt(rd))},t.\u0275prov=ht({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function tm(t,e){return new v(i=>{const s=t.length;if(0===s)return void i.complete();const n=new Array(s);let r=0,o=0;for(let a=0;a{h||(h=!0,o++),n[a]=t},error:t=>i.error(t),complete:()=>{r++,r!==s&&h||(o===s&&i.next(e?e.reduce((t,e,i)=>(t[e]=n[i],t),{}):n),i.complete())}}))}})}const em=new Ft("NgValueAccessor"),im={provide:em,useExisting:wt(()=>sm),multi:!0};let sm=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Co(Ta),Co(Sa))},t.\u0275dir=be({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&Lo("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[_a([im])]}),t})();const nm={provide:em,useExisting:wt(()=>om),multi:!0},rm=new Ft("CompositionEventMode");let om=(()=>{class t{constructor(t,e,i){this._renderer=t,this._elementRef=e,this._compositionMode=i,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Gh()?Gh().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return t.\u0275fac=function(e){return new(e||t)(Co(Ta),Co(Sa),Co(rm,8))},t.\u0275dir=be({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,e){1&t&&Lo("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[_a([nm])]}),t})(),am=(()=>{class t{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t}),t})(),lm=(()=>{class t extends am{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return hm(e||t)},t.\u0275dir=be({type:t,features:[no]}),t})();const hm=gs(lm);class cm extends am{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){}get asyncValidator(){}}class um{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}let dm=(()=>{class t extends um{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Co(cm,2))},t.\u0275dir=be({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&Zo("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[no]}),t})(),pm=(()=>{class t extends um{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(Co(lm,2))},t.\u0275dir=be({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:14,hostBindings:function(t,e){2&t&&Zo("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[no]}),t})();function fm(t){return null==t||0===t.length}function gm(t){return null!=t&&"number"==typeof t.length}const mm=new Ft("NgValidators"),ym=new Ft("NgAsyncValidators"),vm=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/;class bm{static min(t){return e=>{if(fm(e.value)||fm(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i{if(fm(e.value)||fm(t))return null;const i=parseFloat(e.value);return!isNaN(i)&&i>t?{max:{max:t,actual:e.value}}:null}}static required(t){return fm(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return fm(t.value)||vm.test(t.value)?null:{email:!0}}static minLength(t){return e=>fm(e.value)||!gm(e.value)?null:e.value.lengthgm(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return bm.nullValidator;let e,i;return"string"==typeof t?(i="","^"!==t.charAt(0)&&(i+="^"),i+=t,"$"!==t.charAt(t.length-1)&&(i+="$"),e=new RegExp(i)):(i=t.toString(),e=t),t=>{if(fm(t.value))return null;const s=t.value;return e.test(s)?null:{pattern:{requiredPattern:i,actualValue:s}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(xm);return 0==e.length?null:function(t){return wm(Cm(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(xm);return 0==e.length?null:function(t){return function(...t){if(1===t.length){const e=t[0];if(l(e))return tm(e,null);if(h(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return tm(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return tm(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(A(t=>e(...t)))}return tm(t,null)}(Cm(t,e).map(_m)).pipe(A(wm))}}}function xm(t){return null!=t}function _m(t){const e=Po(t)?B(t):t;return Oo(e),e}function wm(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function Cm(t,e){return e.map(e=>e(t))}function km(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}const Sm={provide:em,useExisting:wt(()=>Am),multi:!0};let Am=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Co(Ta),Co(Sa))},t.\u0275dir=be({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&Lo("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[_a([Sm])]}),t})();const Em={provide:em,useExisting:wt(()=>Tm),multi:!0};let Mm=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Tm=(()=>{class t{constructor(t,e,i,s){this._renderer=t,this._elementRef=e,this._registry=i,this._injector=s,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(cm),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return t.\u0275fac=function(e){return new(e||t)(Co(Ta),Co(Sa),Co(Mm),Co(to))},t.\u0275dir=be({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&Lo("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[_a([Em])]}),t})();const Dm={provide:em,useExisting:wt(()=>Pm),multi:!0};let Pm=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(Co(Ta),Co(Sa))},t.\u0275dir=be({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&Lo("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[_a([Dm])]}),t})();const Om={provide:em,useExisting:wt(()=>Lm),multi:!0};let Lm=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const i=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",i)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(Co(Ta),Co(Sa))},t.\u0275dir=be({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&Lo("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[_a([Om])]}),t})();const Im={provide:em,useExisting:wt(()=>Rm),multi:!0};let Rm=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const i=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(i.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const i=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e{t._pendingValue=i,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Fm(t,e)})}(t,e),function(t,e){t.registerOnChange((t,i)=>{e.valueAccessor.writeValue(t),i&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Fm(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function Fm(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Nm(t,e){t.validator=bm.compose([t.validator,e.validator]),t.asyncValidator=bm.composeAsync([t.asyncValidator,e.asyncValidator])}function jm(t){return null!=t?bm.compose(km(t)):null}function zm(t){return null!=t?bm.composeAsync(km(t)):null}function Hm(t,e){if(!t.hasOwnProperty("model"))return!1;const i=t.model;return!!i.isFirstChange()||!Object.is(e,i.currentValue)}const Wm=[sm,Pm,Am,Lm,Rm,Tm];function Vm(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function Gm(t,e){if(!e)return null;Array.isArray(e);let i=void 0,s=void 0,n=void 0;return e.forEach(t=>{var e;t.constructor===om?i=t:(e=t,Wm.some(t=>e.constructor===t)?s=t:n=t)}),n||s||i||null}function Um(t,e){const i=t.indexOf(e);i>-1&&t.splice(i,1)}const Xm="VALID",Ym="INVALID",qm="PENDING",$m="DISABLED";function Km(t){return(ty(t)?t.validators:t)||null}function Zm(t){return Array.isArray(t)?jm(t):t||null}function Qm(t,e){return(ty(e)?e.asyncValidators:t)||null}function Jm(t){return Array.isArray(t)?zm(t):t||null}function ty(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class ey{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=Zm(this._rawValidators),this._composedAsyncValidatorFn=Jm(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Xm}get invalid(){return this.status===Ym}get pending(){return this.status==qm}get disabled(){return this.status===$m}get enabled(){return this.status!==$m}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=Zm(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=Jm(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=qm,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=$m,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Xm,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==Xm&&this.status!==qm||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?$m:Xm}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=qm,this._hasOwnPendingAsyncValidator=!0;const e=_m(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,i){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let s=t;return e.forEach(t=>{s=s instanceof sy?s.controls.hasOwnProperty(t)?s.controls[t]:null:s instanceof ny&&s.at(t)||null}),s}(this,t)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Sl,this.statusChanges=new Sl}_calculateStatus(){return this._allControlsDisabled()?$m:this.errors?Ym:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(qm)?qm:this._anyControlsHaveStatus(Ym)?Ym:Xm}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ty(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class iy extends ey{constructor(t=null,e,i){super(Km(e),Qm(i,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class sy extends ey{constructor(t,e,i){super(Km(e),Qm(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(i=>{this._throwIfControlMissing(i),this.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((i,s)=>{i.reset(t[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,i)=>(t[i]=e instanceof iy?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const i=this.controls[e];if(this.contains(e)&&t(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,i)=>((e.enabled||this.disabled)&&(t[i]=e.value),t))}_reduceChildren(t,e){let i=t;return this._forEachChild((t,s)=>{i=e(i,t,s)}),i}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control with name: '${i}'.`)})}}class ny extends ey{constructor(t,e,i){super(Km(e),Qm(i,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,i)=>{this._throwIfControlMissing(i),this.at(i).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,i)=>{this.at(i)&&this.at(i).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((i,s)=>{i.reset(t[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof iy?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)}_forEachChild(t){this.controls.forEach((e,i)=>{t(e,i)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,i)=>{if(void 0===t[i])throw new Error(`Must supply a value for form control at index: ${i}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const ry={provide:lm,useExisting:wt(()=>ay)},oy=(()=>Promise.resolve(null))();let ay=(()=>{class t extends lm{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new Sl,this.form=new sy({},jm(t),zm(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){oy.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),Bm(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){oy.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),Um(this._directives,t)})}addFormGroup(t){oy.then(()=>{const e=this._findContainer(t.path),i=new sy({});Nm(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){oy.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){oy.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,Vm(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return t.\u0275fac=function(e){return new(e||t)(Co(mm,10),Co(ym,10))},t.\u0275dir=be({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&Lo("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_a([ry]),no]}),t})();const ly={provide:cm,useExisting:wt(()=>cy)},hy=(()=>Promise.resolve(null))();let cy=(()=>{class t extends cm{constructor(t,e,i,s){super(),this.control=new iy,this._registered=!1,this.update=new Sl,this._parent=t,this._rawValidators=e||[],this._rawAsyncValidators=i||[],this.valueAccessor=Gm(0,s)}ngOnChanges(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),Hm(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?[...this._parent.path,this.name]:[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}get validator(){return jm(this._rawValidators)}get asyncValidator(){return zm(this._rawAsyncValidators)}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Bm(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){hy.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1})})}_updateDisabled(t){const e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;hy.then(()=>{i&&!this.control.disabled?this.control.disable():!i&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(e){return new(e||t)(Co(lm,9),Co(mm,10),Co(ym,10),Co(em,10))},t.\u0275dir=be({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[_a([ly]),no,Ie]}),t})(),uy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})();const dy=new Ft("NgModelWithFormControlWarning"),py={provide:cm,useExisting:wt(()=>fy)};let fy=(()=>{class t extends cm{constructor(t,e,i,s){super(),this._ngModelWarningConfig=s,this.update=new Sl,this._ngModelWarningSent=!1,this._rawValidators=t||[],this._rawAsyncValidators=e||[],this.valueAccessor=Gm(0,i)}set isDisabled(t){}ngOnChanges(e){var i,s;this._isControlChanged(e)&&(Bm(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),Hm(e,this.viewModel)&&(i=t,this,s=this._ngModelWarningConfig,Ss()&&"never"!==s&&((null!==s&&"once"!==s||i._ngModelWarningSentOnce)&&("always"!==s||this._ngModelWarningSent)||(i._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get validator(){return jm(this._rawValidators)}get asyncValidator(){return zm(this._rawAsyncValidators)}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(Co(mm,10),Co(ym,10),Co(em,10),Co(dy,8))},t.\u0275dir=be({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[_a([py]),no,Ie]}),t._ngModelWarningSentOnce=!1,t})();const gy={provide:lm,useExisting:wt(()=>my)};let my=(()=>{class t extends lm{constructor(t,e){super(),this._validators=t,this._asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new Sl}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return Bm(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){Um(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);Nm(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);Nm(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,Vm(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const e=this.form.get(t.path);t.control!==e&&(function(t,e){const i=()=>{};e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i),e._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(t.control,t),e&&Bm(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const t=jm(this._validators);this.form.validator=bm.compose([this.form.validator,t]);const e=zm(this._asyncValidators);this.form.asyncValidator=bm.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(Co(mm,10),Co(ym,10))},t.\u0275dir=be({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&Lo("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_a([gy]),no,Ie]}),t})(),yy=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)}}),t})(),vy=(()=>{class t{group(t,e=null){const i=this._reduceControls(t);let s=null,n=null,r=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(s=null!=e.validators?e.validators:null,n=null!=e.asyncValidators?e.asyncValidators:null,r=null!=e.updateOn?e.updateOn:void 0):(s=null!=e.validator?e.validator:null,n=null!=e.asyncValidator?e.asyncValidator:null)),new sy(i,{asyncValidators:n,updateOn:r,validators:s})}control(t,e,i){return new iy(t,e,i)}array(t,e,i){const s=t.map(t=>this._createControl(t));return new ny(s,e,i)}_reduceControls(t){const e={};return Object.keys(t).forEach(i=>{e[i]=this._createControl(t[i])}),e}_createControl(t){return t instanceof iy||t instanceof sy||t instanceof ny?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),by=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[Mm],imports:[yy]}),t})(),xy=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:dy,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[vy,Mm],imports:[yy]}),t})();class _y extends u{constructor(t,e){super()}schedule(t,e=0){return this}}class wy extends _y{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const i=this.id,s=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(s,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(s,this.id,e),this}requestAsyncId(t,e,i=0){return setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let i=!1,s=void 0;try{this.work(t)}catch(n){i=!0,s=!!n&&n||new Error(n)}if(i)return this.unsubscribe(),s}_unsubscribe(){const t=this.id,e=this.scheduler,i=e.actions,s=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&i.splice(s,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let Cy=(()=>{class t{constructor(e,i=t.now){this.SchedulerAction=e,this.now=i}schedule(t,e=0,i){return new this.SchedulerAction(this,t).schedule(i,e)}}return t.now=()=>Date.now(),t})();class ky extends Cy{constructor(t,e=Cy.now){super(t,()=>ky.delegate&&ky.delegate!==this?ky.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,i){return ky.delegate&&ky.delegate!==this?ky.delegate.schedule(t,e,i):super.schedule(t,e,i)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}const Sy=new ky(wy);function Ay(t){return!l(t)&&t-parseFloat(t)+1>=0}function Ey(t=0,e,i){let s=-1;return Ay(e)?s=Number(e)<1?1:Number(e):S(e)&&(i=e),S(i)||(i=Sy),new v(e=>{const n=Ay(t)?t:+t-i.now();return i.schedule(My,n,{index:0,period:s,subscriber:e})})}function My(t){const{index:e,period:i,subscriber:s}=t;if(s.next(e),!s.closed){if(-1===i)return s.complete();t.index=e+1,this.schedule(t,i)}}function Ty(t,e,i,n){return s(i)&&(n=i,i=void 0),n?Ty(t,e,i).pipe(A(t=>l(t)?n(...t):n(t))):new v(s=>{!function t(e,i,s,n,r){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(i,s,r),o=()=>t.removeEventListener(i,s,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(i,s),o=()=>t.off(i,s)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(i,s),o=()=>t.removeListener(i,s)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,a=e.length;o1?Array.prototype.slice.call(arguments):t)}),s,i)})}class Dy{constructor(t,e){this.compare=t,this.keySelector=e}call(t,e){return e.subscribe(new Py(t,this.compare,this.keySelector))}}class Py extends f{constructor(t,e,i){super(t),this.keySelector=i,this.hasKey=!1,"function"==typeof e&&(this.compare=e)}compare(t,e){return t===e}_next(t){let e;try{const{keySelector:i}=this;e=i?i(t):t}catch(s){return this.destination.error(s)}let i=!1;if(this.hasKey)try{const{compare:t}=this;i=t(this.key,e)}catch(s){return this.destination.error(s)}else this.hasKey=!0;i||(this.key=e,this.destination.next(t))}}function Oy(t){return e=>e.lift(new Ly(t))}class Ly{constructor(t){this.notifier=t}call(t,e){const i=new Iy(t),s=j(this.notifier,new F(i));return s&&!i.seenValue?(i.add(s),e.subscribe(i)):i}}class Iy extends N{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Ry(...t){return e=>{let i;return"function"==typeof t[t.length-1]&&(i=t.pop()),e.lift(new By(t,i))}}class By{constructor(t,e){this.observables=t,this.project=e}call(t,e){return e.subscribe(new Fy(t,this.observables,this.project))}}class Fy extends wd{constructor(t,e,i){super(t),this.observables=e,this.project=i,this.toRespond=[];const s=e.length;this.values=new Array(s);for(let n=0;n0){const t=s.indexOf(i);-1!==t&&s.splice(t,1)}}notifyComplete(){}_next(t){if(0===this.toRespond.length){const e=[t,...this.values];this.project?this._tryProject(e):this.destination.next(e)}}_tryProject(t){let e;try{e=this.project.apply(this,t)}catch(i){return void this.destination.error(i)}this.destination.next(e)}}let Ny=(()=>{class t{constructor(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}}accept(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)}toObservable(){switch(this.kind){case"N":return Nu(this.value);case"E":return t=this.error,new v(e=>e.error(t));case"C":return Dd()}var t;throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class jy{constructor(t,e){this.delay=t,this.scheduler=e}call(t,e){return e.subscribe(new zy(t,this.delay,this.scheduler))}}class zy extends f{constructor(t,e,i){super(t),this.delay=e,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(t){const e=t.source,i=e.queue,s=t.scheduler,n=t.destination;for(;i.length>0&&i[0].time-s.now()<=0;)i.shift().notification.observe(n);if(i.length>0){const e=Math.max(0,i[0].time-s.now());this.schedule(t,e)}else this.unsubscribe(),e.active=!1}_schedule(t){this.active=!0,this.destination.add(t.schedule(zy.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}scheduleNotification(t){if(!0===this.errored)return;const e=this.scheduler,i=new Hy(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}_next(t){this.scheduleNotification(Ny.createNext(t))}_error(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}_complete(){this.scheduleNotification(Ny.createComplete()),this.unsubscribe()}}class Hy{constructor(t,e){this.time=t,this.notification=e}}const Wy=["*"],Vy=["dialog"];function Gy(t){return null!=t}"undefined"==typeof Element||Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){let e=this;if(!document.documentElement.contains(e))return null;do{if(e.matches(t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null});let Uy=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[ou]]}),t})(),Xy=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[ou]]}),t})(),Yy=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)}}),t})(),qy=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[ou]]}),t})(),$y=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)}}),t})();var Ky=function(t){return t[t.Tab=9]="Tab",t[t.Enter=13]="Enter",t[t.Escape=27]="Escape",t[t.Space=32]="Space",t[t.PageUp=33]="PageUp",t[t.PageDown=34]="PageDown",t[t.End=35]="End",t[t.Home=36]="Home",t[t.ArrowLeft=37]="ArrowLeft",t[t.ArrowUp=38]="ArrowUp",t[t.ArrowRight=39]="ArrowRight",t[t.ArrowDown=40]="ArrowDown",t}({});const Zy=["a[href]","button:not([disabled])",'input:not([disabled]):not([type="hidden"])',"select:not([disabled])","textarea:not([disabled])","[contenteditable]",'[tabindex]:not([tabindex="-1"])'].join(", ");function Qy(t){const e=Array.from(t.querySelectorAll(Zy)).filter(t=>-1!==t.tabIndex);return[e[0],e[e.length-1]]}let Jy=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[ou,by]]}),t})(),tv=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["",8,"navbar"]]}),t})(),ev=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)}}),t})(),iv=(()=>{let t=class{constructor(){this.backdrop=!0,this.keyboard=!0}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})();class sv{constructor(t,e,i){this.nodes=t,this.viewRef=e,this.componentRef=i}}const nv=()=>{};let rv=(()=>{let t=class{constructor(t){this._document=t}compensate(){const t=this._getWidth();return this._isPresent(t)?this._adjustBody(t):nv}_adjustBody(t){const e=this._document.body,i=e.style.paddingRight,s=parseFloat(window.getComputedStyle(e)["padding-right"]);return e.style["padding-right"]=s+t+"px",()=>e.style["padding-right"]=i}_isPresent(t){const e=this._document.body.getBoundingClientRect();return window.innerWidth-(e.left+e.right)>=t-.1*t}_getWidth(){const t=this._document.createElement("div");t.className="modal-scrollbar-measure";const e=this._document.body;e.appendChild(t);const i=t.getBoundingClientRect().width-t.clientWidth;return e.removeChild(t),i}};return t.\u0275fac=function(e){return new(e||t)(qt(Uh))},t.\u0275prov=ht({factory:function(){return new t(qt(Uh))},token:t,providedIn:"root"}),t})(),ov=(()=>{let t=class{};return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["ngb-modal-backdrop"]],hostAttrs:[2,"z-index","1050"],hostVars:2,hostBindings:function(t,e){2&t&&Qo("modal-backdrop fade show"+(e.backdropClass?" "+e.backdropClass:""))},inputs:{backdropClass:"backdropClass"},decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})();class av{close(t){}dismiss(t){}}class lv{constructor(t,e,i,s){this._windowCmptRef=t,this._contentRef=e,this._backdropCmptRef=i,this._beforeDismiss=s,t.instance.dismissEvent.subscribe(t=>{this.dismiss(t)}),this.result=new Promise((t,e)=>{this._resolve=t,this._reject=e}),this.result.then(null,()=>{})}get componentInstance(){if(this._contentRef&&this._contentRef.componentRef)return this._contentRef.componentRef.instance}close(t){this._windowCmptRef&&(this._resolve(t),this._removeModalElements())}_dismiss(t){this._reject(t),this._removeModalElements()}dismiss(t){if(this._windowCmptRef)if(this._beforeDismiss){const e=this._beforeDismiss();e&&e.then?e.then(e=>{!1!==e&&this._dismiss(t)},()=>{}):!1!==e&&this._dismiss(t)}else this._dismiss(t)}_removeModalElements(){const t=this._windowCmptRef.location.nativeElement;if(t.parentNode.removeChild(t),this._windowCmptRef.destroy(),this._backdropCmptRef){const t=this._backdropCmptRef.location.nativeElement;t.parentNode.removeChild(t),this._backdropCmptRef.destroy()}this._contentRef&&this._contentRef.viewRef&&this._contentRef.viewRef.destroy(),this._windowCmptRef=null,this._backdropCmptRef=null,this._contentRef=null}}var hv=function(t){return t[t.BACKDROP_CLICK=0]="BACKDROP_CLICK",t[t.ESC=1]="ESC",t}({});let cv=(()=>{let t=class{constructor(t,e,i){this._document=t,this._elRef=e,this._zone=i,this._closed$=new C,this._elWithFocus=null,this.backdrop=!0,this.keyboard=!0,this.dismissEvent=new Sl}dismiss(t){this.dismissEvent.emit(t)}ngOnInit(){this._elWithFocus=this._document.activeElement}ngAfterViewInit(){const{nativeElement:t}=this._elRef;if(this._zone.runOutsideAngular(()=>{Ty(t,"keydown").pipe(Oy(this._closed$),zu(t=>t.which===Ky.Escape&&this.keyboard)).subscribe(t=>requestAnimationFrame(()=>{t.defaultPrevented||this._zone.run(()=>this.dismiss(hv.ESC))}));let e=!1;Ty(this._dialogEl.nativeElement,"mousedown").pipe(Oy(this._closed$),rp(()=>e=!1),Gd(()=>Ty(t,"mouseup").pipe(Oy(this._closed$),Yd(1))),zu(({target:e})=>t===e)).subscribe(()=>{e=!0}),Ty(t,"click").pipe(Oy(this._closed$)).subscribe(({target:i})=>{!0!==this.backdrop||t!==i||e||this._zone.run(()=>this.dismiss(hv.BACKDROP_CLICK)),e=!1})}),!t.contains(document.activeElement)){const e=t.querySelector("[ngbAutofocus]"),i=Qy(t)[0];(e||i||t).focus()}}ngOnDestroy(){const t=this._document.body,e=this._elWithFocus;let i;i=e&&e.focus&&t.contains(e)?e:t,this._zone.runOutsideAngular(()=>{setTimeout(()=>i.focus()),this._elWithFocus=null}),this._closed$.next()}};return t.\u0275fac=function(e){return new(e||t)(Co(Uh),Co(Sa),Co(fh))},t.\u0275cmp=pe({type:t,selectors:[["ngb-modal-window"]],viewQuery:function(t,e){var i;1&t&&Fl(Vy,!0),2&t&&Bl(i=Wl())&&(e._dialogEl=i.first)},hostAttrs:["role","dialog","tabindex","-1"],hostVars:5,hostBindings:function(t,e){2&t&&(vo("aria-modal",!0)("aria-labelledby",e.ariaLabelledBy)("aria-describedby",e.ariaDescribedBy),Qo("modal fade show d-block"+(e.windowClass?" "+e.windowClass:"")))},inputs:{backdrop:"backdrop",keyboard:"keyboard",ariaLabelledBy:"ariaLabelledBy",ariaDescribedBy:"ariaDescribedBy",centered:"centered",scrollable:"scrollable",size:"size",windowClass:"windowClass"},outputs:{dismissEvent:"dismiss"},ngContentSelectors:Wy,decls:4,vars:2,consts:[["role","document"],["dialog",""],[1,"modal-content"]],template:function(t,e){1&t&&(No(),Eo(0,"div",0,1),Eo(2,"div",2),jo(3),Mo(),Mo()),2&t&&Qo("modal-dialog"+(e.size?" modal-"+e.size:"")+(e.centered?" modal-dialog-centered":"")+(e.scrollable?" modal-dialog-scrollable":""))},styles:["ngb-modal-window .component-host-scrollable{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden}"],encapsulation:2}),t})(),uv=(()=>{let t=class{constructor(t,e,i,s,n,r){this._applicationRef=t,this._injector=e,this._document=i,this._scrollBar=s,this._rendererFactory=n,this._ngZone=r,this._activeWindowCmptHasChanged=new C,this._ariaHiddenValues=new Map,this._backdropAttributes=["backdropClass"],this._modalRefs=[],this._windowAttributes=["ariaLabelledBy","ariaDescribedBy","backdrop","centered","keyboard","scrollable","size","windowClass"],this._windowCmpts=[],this._activeInstances=new Sl,this._activeWindowCmptHasChanged.subscribe(()=>{if(this._windowCmpts.length){const t=this._windowCmpts[this._windowCmpts.length-1];((t,e,i,s=!1)=>{this._ngZone.runOutsideAngular(()=>{const t=Ty(e,"focusin").pipe(Oy(i),A(t=>t.target));Ty(e,"keydown").pipe(Oy(i),zu(t=>t.which===Ky.Tab),Ry(t)).subscribe(([t,i])=>{const[s,n]=Qy(e);i!==s&&i!==e||!t.shiftKey||(n.focus(),t.preventDefault()),i!==n||t.shiftKey||(s.focus(),t.preventDefault())}),s&&Ty(e,"click").pipe(Oy(i),Ry(t),A(t=>t[1])).subscribe(t=>t.focus())})})(0,t.location.nativeElement,this._activeWindowCmptHasChanged),this._revertAriaHidden(),this._setAriaHidden(t.location.nativeElement)}})}open(t,e,i,s){const n=s.container instanceof HTMLElement?s.container:Gy(s.container)?this._document.querySelector(s.container):this._document.body,r=this._rendererFactory.createRenderer(null,null),o=this._scrollBar.compensate(),a=()=>{this._modalRefs.length||(r.removeClass(this._document.body,"modal-open"),this._revertAriaHidden())};if(!n)throw new Error(`The specified modal container "${s.container||"body"}" was not found in the DOM.`);const l=new av,h=this._getContentRef(t,s.injector||e,i,l,s);let c=!1!==s.backdrop?this._attachBackdrop(t,n):void 0,u=this._attachWindowComponent(t,n,h),d=new lv(u,h,c,s.beforeDismiss);return this._registerModalRef(d),this._registerWindowCmpt(u),d.result.then(o,o),d.result.then(a,a),l.close=t=>{d.close(t)},l.dismiss=t=>{d.dismiss(t)},this._applyWindowOptions(u.instance,s),1===this._modalRefs.length&&r.addClass(this._document.body,"modal-open"),c&&c.instance&&this._applyBackdropOptions(c.instance,s),d}get activeInstances(){return this._activeInstances}dismissAll(t){this._modalRefs.forEach(e=>e.dismiss(t))}hasOpenModals(){return this._modalRefs.length>0}_attachBackdrop(t,e){let i=t.resolveComponentFactory(ov).create(this._injector);return this._applicationRef.attachView(i.hostView),e.appendChild(i.location.nativeElement),i}_attachWindowComponent(t,e,i){let s=t.resolveComponentFactory(cv).create(this._injector,i.nodes);return this._applicationRef.attachView(s.hostView),e.appendChild(s.location.nativeElement),s}_applyWindowOptions(t,e){this._windowAttributes.forEach(i=>{Gy(e[i])&&(t[i]=e[i])})}_applyBackdropOptions(t,e){this._backdropAttributes.forEach(i=>{Gy(e[i])&&(t[i]=e[i])})}_getContentRef(t,e,i,s,n){return i?i instanceof $a?this._createFromTemplateRef(i,s):"string"==typeof i?this._createFromString(i):this._createFromComponent(t,e,i,s,n):new sv([])}_createFromTemplateRef(t,e){const i=t.createEmbeddedView({$implicit:e,close(t){e.close(t)},dismiss(t){e.dismiss(t)}});return this._applicationRef.attachView(i),new sv([i.rootNodes],i)}_createFromString(t){const e=this._document.createTextNode(""+t);return new sv([[e]])}_createFromComponent(t,e,i,s,n){const r=t.resolveComponentFactory(i),o=to.create({providers:[{provide:av,useValue:s}],parent:e}),a=r.create(o),l=a.location.nativeElement;return n.scrollable&&l.classList.add("component-host-scrollable"),this._applicationRef.attachView(a.hostView),new sv([[l]],a.hostView,a)}_setAriaHidden(t){const e=t.parentElement;e&&t!==this._document.body&&(Array.from(e.children).forEach(e=>{e!==t&&"SCRIPT"!==e.nodeName&&(this._ariaHiddenValues.set(e,e.getAttribute("aria-hidden")),e.setAttribute("aria-hidden","true"))}),this._setAriaHidden(e))}_revertAriaHidden(){this._ariaHiddenValues.forEach((t,e)=>{t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenValues.clear()}_registerModalRef(t){const e=()=>{const e=this._modalRefs.indexOf(t);e>-1&&(this._modalRefs.splice(e,1),this._activeInstances.emit(this._modalRefs))};this._modalRefs.push(t),this._activeInstances.emit(this._modalRefs),t.result.then(e,e)}_registerWindowCmpt(t){this._windowCmpts.push(t),this._activeWindowCmptHasChanged.next(),t.onDestroy(()=>{const e=this._windowCmpts.indexOf(t);e>-1&&(this._windowCmpts.splice(e,1),this._activeWindowCmptHasChanged.next())})}};return t.\u0275fac=function(e){return new(e||t)(qt(Lh),qt(to),qt(Uh),qt(rv),qt(Ea),qt(fh))},t.\u0275prov=ht({factory:function(){return new t(qt(Lh),qt(Nt),qt(Uh),qt(rv),qt(Ea),qt(fh))},token:t,providedIn:"root"}),t})(),dv=(()=>{let t=class{constructor(t,e,i,s){this._moduleCFR=t,this._injector=e,this._modalStack=i,this._config=s}open(t,e={}){const i=Object.assign({},this._config,e);return this._modalStack.open(this._moduleCFR,this._injector,t,i)}get activeInstances(){return this._modalStack.activeInstances}dismissAll(t){this._modalStack.dismissAll(t)}hasOpenModals(){return this._modalStack.hasOpenModals()}};return t.\u0275fac=function(e){return new(e||t)(qt(ka),qt(to),qt(uv),qt(iv))},t.\u0275prov=ht({factory:function(){return new t(qt(ka),qt(Nt),qt(uv),qt(iv))},token:t,providedIn:"root"}),t})(),pv=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[dv]}),t})(),fv=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[ou]]}),t})(),gv=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[ou]]}),t})(),mv=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[ou]]}),t})(),yv=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[ou]]}),t})(),vv=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[ou]]}),t})(),bv=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[ou]]}),t})(),xv=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[ou]]}),t})(),_v=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[ou]]}),t})(),wv=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)}}),t})(),Cv=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[ou]]}),t})();const kv=[Uy,Xy,Yy,qy,$y,Jy,ev,pv,fv,gv,mv,yv,vv,xv,_v,wv,Cv,bv];let Sv,Av=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[kv,Uy,Xy,Yy,qy,$y,Jy,ev,pv,fv,gv,mv,yv,vv,xv,_v,wv,Cv,bv]}),t})(),Ev=(()=>{class t{constructor(){}addWatchlist(t){let{ticker:e,companyName:i,lastPrice:s,change:n,changePercent:r}=t;this.resp={},localStorage.watchlist&&(this.resp=JSON.parse(localStorage.watchlist)),this.resp[e]=JSON.stringify({ticker:e,companyName:i,lastPrice:s,change:n,changePercent:r}),localStorage.watchlist=JSON.stringify(this.resp)}removeWatchlist(t){localStorage.watchlist&&(this.resp=JSON.parse(localStorage.watchlist),delete this.resp[t],localStorage.watchlist=JSON.stringify(this.resp))}getWatchlistData(){let t=[],e=[];if(localStorage.watchlist){this.resp=JSON.parse(localStorage.watchlist);for(let t in this.resp)e.push(t);e.sort(),e.forEach(e=>{t.push(JSON.parse(this.resp[e]))})}return t}contains(t){if(localStorage.watchlist){this.resp=JSON.parse(localStorage.watchlist);for(let e in this.resp)if(e===t)return!0}return!1}getWatchlistTickers(){if(this.ans="",localStorage.watchlist){this.resp=JSON.parse(localStorage.watchlist);for(let t in this.resp)this.ans+=t+","}return this.ans}updateWatchlistData(t){this.resp=JSON.parse(localStorage.watchlist),t.forEach(t=>{this.temp=JSON.parse(this.resp[t[0]]),this.companyName=this.temp.companyName,this.resp[t[0]]=JSON.stringify({ticker:t[0],companyName:this.companyName,lastPrice:t[1],change:t[2],changePercent:t[3]}),localStorage.watchlist=JSON.stringify(this.resp)})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Mv=(()=>{class t{constructor(){}addPortfolio(t){let{ticker:e,companyName:i,quantity:s,totalCost:n,lastPrice:r}=t;localStorage[e]=JSON.stringify({ticker:e,companyName:i,quantity:s,totalCost:n,lastPrice:r}),console.log(localStorage)}getPortfolioData(){let t=[],e=[];for(let i in localStorage)"watchlist"!==i&&localStorage.hasOwnProperty(i)&&e.push(i);return e.sort(),e.forEach(e=>{t.push(JSON.parse(localStorage[e]))}),t}getPortfolioTickers(){this.ans="";for(let t in localStorage)"watchlist"!==t&&(this.ans+=t+",");return this.ans}updatePortfolioData(t){t.forEach(t=>{localStorage[t[0]]&&(this.resp=JSON.parse(localStorage[t[0]]),this.quantity=this.resp.quantity,this.totalCost=+this.resp.totalCost,this.companyName=this.resp.companyName,localStorage[t[0]]=JSON.stringify({ticker:t[0],companyName:this.companyName,quantity:this.quantity,totalCost:this.totalCost,lastPrice:t[1]}))})}buyShares(t,e,i){this.resp=JSON.parse(localStorage[t]),this.last=this.resp.lastPrice,this.quantity=this.resp.quantity,this.totalCost=this.resp.totalCost,this.companyName=this.resp.companyName,localStorage[t]=JSON.stringify({ticker:t,companyName:this.companyName,quantity:e+this.quantity,totalCost:this.totalCost+i,lastPrice:this.last})}sellShares(t,e,i){this.resp=JSON.parse(localStorage[t]),this.last=this.resp.lastPrice,this.quantity=this.resp.quantity,this.quantity-e!=0?(this.totalCost=this.resp.totalCost,this.companyName=this.resp.companyName,this.avg=this.totalCost/this.quantity,this.totalCost=this.totalCost-this.avg*e,localStorage[t]=JSON.stringify({ticker:t,companyName:this.companyName,quantity:this.quantity-e,totalCost:this.totalCost,lastPrice:this.last})):localStorage.removeItem(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();try{Sv="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(EA){Sv=!1}let Tv,Dv=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?"browser"===this._platformId:"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Sv)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return t.\u0275fac=function(e){return new(e||t)(qt(Jl))},t.\u0275prov=ht({factory:function(){return new t(qt(Jl))},token:t,providedIn:"root"}),t})(),Pv=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)}}),t})();const Ov=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Lv(){if(Tv)return Tv;if("object"!=typeof document||!document)return Tv=new Set(Ov),Tv;let t=document.createElement("input");return Tv=new Set(Ov.filter(e=>(t.setAttribute("type",e),t.type===e))),Tv}let Iv,Rv;function Bv(t){return function(){if(null==Iv&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Iv=!0}))}finally{Iv=Iv||!1}return Iv}()?t:!!t.capture}function Fv(t){if(function(){if(null==Rv){const t="undefined"!=typeof document?document.head:null;Rv=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Rv}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function Nv(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}function jv(t,e=Sy){return i=>i.lift(new zv(t,e))}class zv{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new Hv(t,this.dueTime,this.scheduler))}}class Hv extends f{constructor(t,e,i){super(t),this.dueTime=e,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Wv,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function Wv(t){t.debouncedNext()}function Vv(t){return null!=t&&""+t!="false"}function Gv(t,e=0){return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):e}function Uv(t){return Array.isArray(t)?t:[t]}function Xv(t){return null==t?"":"string"==typeof t?t:t+"px"}function Yv(t){return t instanceof Sa?t.nativeElement:t}let qv=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})(),$v=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=Yv(t);return new v(t=>{const i=this._observeElement(e).subscribe(t);return()=>{i.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new C,i=this._mutationObserverFactory.create(t=>e.next(t));i&&i.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:i,stream:e,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:e,stream:i}=this._observedElements.get(t);e&&e.disconnect(),i.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(qt(qv))},t.\u0275prov=ht({factory:function(){return new t(qt(qv))},token:t,providedIn:"root"}),t})(),Kv=(()=>{class t{constructor(t,e,i){this._contentObserver=t,this._elementRef=e,this._ngZone=i,this.event=new Sl,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Vv(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=Gv(t),this._subscribe()}ngAfterContentInit(){this._currentSubscription||this.disabled||this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(jv(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){this._currentSubscription&&this._currentSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Co($v),Co(Sa),Co(fh))},t.\u0275dir=be({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),Zv=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[qv]}),t})();class Qv{constructor(t){this._items=t,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new C,this._typeaheadSubscription=u.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new C,this.change=new C,t instanceof El&&t.changes.subscribe(t=>{if(this._activeItem){const e=t.toArray().indexOf(this._activeItem);e>-1&&e!==this._activeItemIndex&&(this._activeItemIndex=e)}})}skipPredicate(t){return this._skipPredicateFn=t,this}withWrap(t=!0){return this._wrap=t,this}withVerticalOrientation(t=!0){return this._vertical=t,this}withHorizontalOrientation(t){return this._horizontal=t,this}withAllowedModifierKeys(t){return this._allowedModifierKeys=t,this}withTypeAhead(t=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(rp(t=>this._pressedLetters.push(t)),jv(t),zu(()=>this._pressedLetters.length>0),A(()=>this._pressedLetters.join(""))).subscribe(t=>{const e=this._getItemsArray();for(let i=1;i!t[e]||this._allowedModifierKeys.indexOf(e)>-1);switch(e){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||Nv(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))))}this._pressedLetters=[],t.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(t){const e=this._getItemsArray(),i="number"==typeof t?t:e.indexOf(t),s=e[i];this._activeItem=null==s?null:s,this._activeItemIndex=i}_setActiveItemByDelta(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}_setActiveInWrapMode(t){const e=this._getItemsArray();for(let i=1;i<=e.length;i++){const s=(this._activeItemIndex+t*i+e.length)%e.length;if(!this._skipPredicateFn(e[s]))return void this.setActiveItem(s)}}_setActiveInDefaultMode(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}_setActiveItemByIndex(t,e){const i=this._getItemsArray();if(i[t]){for(;this._skipPredicateFn(i[t]);)if(!i[t+=e])return;this.setActiveItem(t)}}_getItemsArray(){return this._items instanceof El?this._items.toArray():this._items}}class Jv extends Qv{setActiveItem(t){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(t),this.activeItem&&this.activeItem.setActiveStyles()}}class tb extends Qv{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(t){return this._origin=t,this}setActiveItem(t){super.setActiveItem(t),this.activeItem&&this.activeItem.focus(this._origin)}}function eb(t){return 0===t.buttons}"undefined"!=typeof Element&∈const ib=new Ft("cdk-focus-monitor-default-options"),sb=Bv({passive:!0,capture:!0});let nb=(()=>{class t{constructor(t,e,i,s){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=eb(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=rb(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=rb(t),i="focus"===t.type?this._onFocus:this._onBlur;for(let s=e;s;s=s.parentElement)i.call(this,t,s)},this._document=i,this._detectionMode=(null==s?void 0:s.detectionMode)||0}monitor(t,e=!1){const i=Yv(t);if(!this._platform.isBrowser||1!==i.nodeType)return Nu(null);const s=Fv(i)||this._getDocument(),n=this._elementInfo.get(i);if(n)return e&&(n.checkChildren=!0),n.subject;const r={checkChildren:e,subject:new C,rootNode:s};return this._elementInfo.set(i,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(t){const e=Yv(t),i=this._elementInfo.get(e);i&&(i.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(i))}focusVia(t,e,i){const s=Yv(t);this._setOriginForCurrentEventQueue(e),"function"==typeof s.focus&&s.focus(i)}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,i){i?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=rb(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const i=this._elementInfo.get(e);if(!i||!i.checkChildren&&e!==rb(t))return;const s=this._getFocusOrigin(t);this._setClasses(e,s),this._emitOrigin(i.subject,s),this._lastFocusOrigin=s}_onBlur(t,e){const i=this._elementInfo.get(e);!i||i.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(i.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,i=this._rootNodeFocusListenerCount.get(e)||0;i||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,sb),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,sb)}),this._rootNodeFocusListenerCount.set(e,i+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,sb),t.addEventListener("mousedown",this._documentMousedownListener,sb),t.addEventListener("touchstart",this._documentTouchstartListener,sb),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,sb),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,sb),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,sb),t.removeEventListener("mousedown",this._documentMousedownListener,sb),t.removeEventListener("touchstart",this._documentTouchstartListener,sb),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}return t.\u0275fac=function(e){return new(e||t)(qt(fh),qt(Dv),qt(Uh,8),qt(ib,8))},t.\u0275prov=ht({factory:function(){return new t(qt(fh),qt(Dv),qt(Uh,8),qt(ib,8))},token:t,providedIn:"root"}),t})();function rb(t){return t.composedPath?t.composedPath()[0]:t.target}let ob=(()=>{class t{constructor(t,e){this._elementRef=t,this._focusMonitor=e,this.cdkFocusChange=new Sl}ngAfterViewInit(){const t=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(t,1===t.nodeType&&t.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>this.cdkFocusChange.emit(t))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Co(Sa),Co(nb))},t.\u0275dir=be({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t})();const ab="cdk-high-contrast-black-on-white",lb="cdk-high-contrast-white-on-black",hb="cdk-high-contrast-active";let cb=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const e=this._document.defaultView||window,i=e&&e.getComputedStyle?e.getComputedStyle(t):null,s=(i&&i.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(hb),t.remove(ab),t.remove(lb);const e=this.getHighContrastMode();1===e?(t.add(hb),t.add(ab)):2===e&&(t.add(hb),t.add(lb))}}}return t.\u0275fac=function(e){return new(e||t)(qt(Dv),qt(Uh))},t.\u0275prov=ht({factory:function(){return new t(qt(Dv),qt(Uh))},token:t,providedIn:"root"}),t})(),ub=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)(qt(cb))},imports:[[Pv,Zv]]}),t})();const db=new Ft("cdk-dir-doc",{providedIn:"root",factory:function(){return $t(Uh)}});let pb=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new Sl,t){const e=t.documentElement?t.documentElement.dir:null,i=(t.body?t.body.dir:null)||e;this.value="ltr"===i||"rtl"===i?i:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(qt(db,8))},t.\u0275prov=ht({factory:function(){return new t(qt(db,8))},token:t,providedIn:"root"}),t})(),fb=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)}}),t})();const gb=new Oa("10.2.5");class mb{}const yb="*";function vb(t,e){return{type:7,name:t,definitions:e,options:{}}}function bb(t,e=null){return{type:4,styles:e,timings:t}}function xb(t,e=null){return{type:2,steps:t,options:e}}function _b(t){return{type:6,styles:t,offset:null}}function wb(t,e,i){return{type:0,name:t,styles:e,options:i}}function Cb(t,e,i=null){return{type:1,expr:t,animation:e,options:i}}function kb(t){Promise.resolve(null).then(t)}class Sb{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){kb(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Ab{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,s=0;const n=this.players.length;0==n?kb(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==n&&this._onFinish()}),t.onDestroy(()=>{++i==n&&this._onDestroy()}),t.onStart(()=>{++s==n&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const i=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(i)})}getPosition(){let t=0;return this.players.forEach(e=>{const i=e.getPosition();t=Math.min(i,t)}),t}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function Eb(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Mb(t){switch(t.length){case 0:return new Sb;case 1:return t[0];default:return new Ab(t)}}function Tb(t,e,i,s,n={},r={}){const o=[],a=[];let l=-1,h=null;if(s.forEach(t=>{const i=t.offset,s=i==l,c=s&&h||{};Object.keys(t).forEach(i=>{let s=i,a=t[i];if("offset"!==i)switch(s=e.normalizePropertyName(s,o),a){case"!":a=n[i];break;case yb:a=r[i];break;default:a=e.normalizeStyleValue(i,s,a,o)}c[s]=a}),s||a.push(c),h=c,l=i}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function Db(t,e,i,s){switch(e){case"start":t.onStart(()=>s(i&&Pb(i,"start",t)));break;case"done":t.onDone(()=>s(i&&Pb(i,"done",t)));break;case"destroy":t.onDestroy(()=>s(i&&Pb(i,"destroy",t)))}}function Pb(t,e,i){const s=i.totalTime,n=Ob(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==s?t.totalTime:s,!!i.disabled),r=t._data;return null!=r&&(n._data=r),n}function Ob(t,e,i,s,n="",r=0,o){return{element:t,triggerName:e,fromState:i,toState:s,phaseName:n,totalTime:r,disabled:!!o}}function Lb(t,e,i){let s;return t instanceof Map?(s=t.get(e),s||t.set(e,s=i)):(s=t[e],s||(s=t[e]=i)),s}function Ib(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let Rb=(t,e)=>!1,Bb=(t,e)=>!1,Fb=(t,e,i)=>[];const Nb=Eb();(Nb||"undefined"!=typeof Element)&&(Rb=(t,e)=>t.contains(e),Bb=(()=>{if(Nb||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,i)=>e.apply(t,[i]):Bb}})(),Fb=(t,e,i)=>{let s=[];if(i)s.push(...t.querySelectorAll(e));else{const i=t.querySelector(e);i&&s.push(i)}return s});let jb=null,zb=!1;function Hb(t){jb||(jb=("undefined"!=typeof document?document.body:null)||{},zb=!!jb.style&&"WebkitAppearance"in jb.style);let e=!0;return jb.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in jb.style,!e&&zb)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in jb.style),e}const Wb=Bb,Vb=Rb,Gb=Fb;function Ub(t){const e={};return Object.keys(t).forEach(i=>{const s=i.replace(/([a-z])([A-Z])/g,"$1-$2");e[s]=t[i]}),e}let Xb=(()=>{class t{validateStyleProperty(t){return Hb(t)}matchesElement(t,e){return Wb(t,e)}containsElement(t,e){return Vb(t,e)}query(t,e,i){return Gb(t,e,i)}computeStyle(t,e,i){return i||""}animate(t,e,i,s,n,r=[],o){return new Sb(i,s)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Yb=(()=>{class t{}return t.NOOP=new Xb,t})();const qb="ng-enter",$b="ng-leave",Kb="ng-trigger",Zb=".ng-trigger",Qb="ng-animating",Jb=".ng-animating";function tx(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:ex(parseFloat(e[1]),e[2])}function ex(t,e){switch(e){case"s":return 1e3*t;default:return t}}function ix(t,e,i){return t.hasOwnProperty("duration")?t:function(t,e,i){let s,n=0,r="";if("string"==typeof t){const i=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===i)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};s=ex(parseFloat(i[1]),i[2]);const o=i[3];null!=o&&(n=ex(parseFloat(o),i[4]));const a=i[5];a&&(r=a)}else s=t;if(!i){let i=!1,r=e.length;s<0&&(e.push("Duration values below 0 are not allowed for this animation step."),i=!0),n<0&&(e.push("Delay values below 0 are not allowed for this animation step."),i=!0),i&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:s,delay:n,easing:r}}(t,e,i)}function sx(t,e={}){return Object.keys(t).forEach(i=>{e[i]=t[i]}),e}function nx(t,e,i={}){if(e)for(let s in t)i[s]=t[s];else sx(t,i);return i}function rx(t,e,i){return i?e+":"+i+";":""}function ox(t){let e="";for(let i=0;i{const n=gx(s);i&&!i.hasOwnProperty(s)&&(i[s]=t.style[n]),t.style[n]=e[s]}),Eb()&&ox(t))}function lx(t,e){t.style&&(Object.keys(e).forEach(e=>{const i=gx(e);t.style[i]=""}),Eb()&&ox(t))}function hx(t){return Array.isArray(t)?1==t.length?t[0]:xb(t):t}const cx=new RegExp("{{\\s*(.+?)\\s*}}","g");function ux(t){let e=[];if("string"==typeof t){let i;for(;i=cx.exec(t);)e.push(i[1]);cx.lastIndex=0}return e}function dx(t,e,i){const s=t.toString(),n=s.replace(cx,(t,s)=>{let n=e[s];return e.hasOwnProperty(s)||(i.push("Please provide a value for the animation param "+s),n=""),n.toString()});return n==s?t:n}function px(t){const e=[];let i=t.next();for(;!i.done;)e.push(i.value),i=t.next();return e}const fx=/-+([a-z0-9])/g;function gx(t){return t.replace(fx,(...t)=>t[1].toUpperCase())}function mx(t,e){return 0===t||0===e}function yx(t,e,i){const s=Object.keys(i);if(s.length&&e.length){let r=e[0],o=[];if(s.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=i[t]}),o.length)for(var n=1;nfunction(t,e,i){if(":"==t[0]){const s=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e) *"}}(t,i);if("function"==typeof s)return void e.push(s);t=s}const s=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==s||s.length<4)return i.push(`The provided transition expression "${t}" is not supported`),e;const n=s[1],r=s[2],o=s[3];e.push(kx(n,o)),"<"!=r[0]||n==xx&&o==xx||e.push(kx(o,n))}(t,i,e)):i.push(t),i}const wx=new Set(["true","1"]),Cx=new Set(["false","0"]);function kx(t,e){const i=wx.has(t)||Cx.has(t),s=wx.has(e)||Cx.has(e);return(n,r)=>{let o=t==xx||t==n,a=e==xx||e==r;return!o&&i&&"boolean"==typeof n&&(o=n?wx.has(t):Cx.has(t)),!a&&s&&"boolean"==typeof r&&(a=r?wx.has(e):Cx.has(e)),o&&a}}const Sx=new RegExp("s*:selfs*,?","g");function Ax(t,e,i){return new Ex(t).build(e,i)}class Ex{constructor(t){this._driver=t}build(t,e){const i=new Mx(e);return this._resetContextStyleTimingState(i),vx(this,hx(t),i)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,s=e.depCount=0;const n=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const i=t,s=i.name;s.toString().split(/\s*,\s*/).forEach(t=>{i.name=t,n.push(this.visitState(i,e))}),i.name=s}else if(1==t.type){const n=this.visitTransition(t,e);i+=n.queryCount,s+=n.depCount,r.push(n)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:n,transitions:r,queryCount:i,depCount:s,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),s=t.options&&t.options.params||null;if(i.containsDynamicStyles){const n=new Set,r=s||{};if(i.styles.forEach(t=>{if(Tx(t)){const e=t;Object.keys(e).forEach(t=>{ux(e[t]).forEach(t=>{r.hasOwnProperty(t)||n.add(t)})})}}),n.size){const i=px(n.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${i.join(", ")}`)}}return{type:0,name:t.name,style:i,options:s?{params:s}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=vx(this,hx(t.animation),e);return{type:1,matchers:_x(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Dx(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>vx(this,t,e)),options:Dx(t.options)}}visitGroup(t,e){const i=e.currentTime;let s=0;const n=t.steps.map(t=>{e.currentTime=i;const n=vx(this,t,e);return s=Math.max(s,e.currentTime),n});return e.currentTime=s,{type:3,steps:n,options:Dx(t.options)}}visitAnimate(t,e){const i=function(t,e){let i=null;if(t.hasOwnProperty("duration"))i=t;else if("number"==typeof t)return Px(ix(t,e).duration,0,"");const s=t;if(s.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=Px(0,0,"");return t.dynamic=!0,t.strValue=s,t}return i=i||ix(s,e),Px(i.duration,i.delay,i.easing)}(t.timings,e.errors);let s;e.currentAnimateTimings=i;let n=t.styles?t.styles:_b({});if(5==n.type)s=this.visitKeyframes(n,e);else{let n=t.styles,r=!1;if(!n){r=!0;const t={};i.easing&&(t.easing=i.easing),n=_b(t)}e.currentTime+=i.duration+i.delay;const o=this.visitStyle(n,e);o.isEmptyStep=r,s=o}return e.currentAnimateTimings=null,{type:4,timings:i,style:s,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==yb?i.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):i.push(t)}):i.push(t.styles);let s=!1,n=null;return i.forEach(t=>{if(Tx(t)){const e=t,i=e.easing;if(i&&(n=i,delete e.easing),!s)for(let t in e)if(e[t].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:i,easing:n,offset:t.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let s=e.currentTime,n=e.currentTime;i&&n>0&&(n-=i.duration+i.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(i=>{if(!this._driver.validateStyleProperty(i))return void e.errors.push(`The provided animation property "${i}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[i];let a=!0;o&&(n!=s&&n>=o.startTime&&s<=o.endTime&&(e.errors.push(`The CSS property "${i}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${n}ms" and "${s}ms"`),a=!1),n=o.startTime),a&&(r[i]={startTime:n,endTime:s}),e.options&&function(t,e,i){const s=e.params||{},n=ux(t);n.length&&n.forEach(t=>{s.hasOwnProperty(t)||i.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[i],e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;let s=0;const n=[];let r=!1,o=!1,a=0;const l=t.steps.map(t=>{const i=this._makeStyleAst(t,e);let l=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(Tx(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(Tx(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}return e}(i.styles),h=0;return null!=l&&(s++,h=i.offset=l),o=o||h<0||h>1,r=r||h0&&s{const r=c>0?s==u?1:c*s:n[s],o=r*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,i.styles.push(t)}),i}visitReference(t,e){return{type:8,animation:vx(this,hx(t.animation),e),options:Dx(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:Dx(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Dx(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,s=t.options||{};e.queryCount++,e.currentQuery=t;const[n,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(Sx,"")),[t=t.replace(/@\*/g,Zb).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,Jb),e]}(t.selector);e.currentQuerySelector=i.length?i+" "+n:n,Lb(e.collectedStyles,e.currentQuerySelector,{});const o=vx(this,hx(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:n,limit:s.limit||0,optional:!!s.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:Dx(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:ix(t.timings,e.errors,!0);return{type:12,animation:vx(this,hx(t.animation),e),timings:i,options:null}}}class Mx{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Tx(t){return!Array.isArray(t)&&"object"==typeof t}function Dx(t){var e;return t?(t=sx(t)).params&&(t.params=(e=t.params)?sx(e):null):t={},t}function Px(t,e,i){return{duration:t,delay:e,easing:i}}function Ox(t,e,i,s,n,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:i,postStyleProps:s,duration:n,delay:r,totalTime:n+r,easing:o,subTimeline:a}}class Lx{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const Ix=new RegExp(":enter","g"),Rx=new RegExp(":leave","g");function Bx(t,e,i,s,n,r={},o={},a,l,h=[]){return(new Fx).buildKeyframes(t,e,i,s,n,r,o,a,l,h)}class Fx{buildKeyframes(t,e,i,s,n,r,o,a,l,h=[]){l=l||new Lx;const c=new jx(t,e,l,s,n,h,[]);c.options=a,c.currentTimeline.setStyles([r],null,c.errors,a),vx(this,i,c);const u=c.timelines.filter(t=>t.containsAnimation());if(u.length&&Object.keys(o).length){const t=u[u.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,c.errors,a)}return u.length?u.map(t=>t.buildKeyframes()):[Ox(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.consume(e.element);if(i){const s=e.createSubContext(t.options),n=e.currentTimeline.currentTime,r=this._visitSubInstructions(i,s,s.options);n!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,i){let s=e.currentTimeline.currentTime;const n=null!=i.duration?tx(i.duration):null,r=null!=i.delay?tx(i.delay):null;return 0!==n&&t.forEach(t=>{const i=e.appendInstructionToTimeline(t,n,r);s=Math.max(s,i.duration+i.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),vx(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let s=e;const n=t.options;if(n&&(n.params||n.delay)&&(s=e.createSubContext(n),s.transformIntoNewTimeline(),null!=n.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=Nx);const t=tx(n.delay);s.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>vx(this,t,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>i&&s.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let s=e.currentTimeline.currentTime;const n=t.options&&t.options.delay?tx(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);n&&o.delayNextStep(n),vx(this,r,o),s=Math.max(s,o.currentTimeline.currentTime),i.push(o.currentTimeline)}),i.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(s),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return ix(e.params?dx(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),s=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),s.snapshotCurrentStyles());const n=t.style;5==n.type?this.visitKeyframes(n,e):(e.incrementTime(i.duration),this.visitStyle(n,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,s=e.currentAnimateTimings;!s&&i.getCurrentStyleProperties().length&&i.forwardFrame();const n=s&&s.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(n):i.setStyles(t.styles,n,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,s=e.currentTimeline.duration,n=i.duration,r=e.createSubContext().currentTimeline;r.easing=i.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*n),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(s+n),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,s=t.options||{},n=s.delay?tx(s.delay):0;n&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Nx);let r=i;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((i,s)=>{e.currentQueryIndex=s;const o=e.createSubContext(t.options,i);n&&o.delayNextStep(n),i===e.element&&(a=o.currentTimeline),vx(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,s=e.currentTimeline,n=t.timings,r=Math.abs(n.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(n.duration<0?"reverse":n.easing){case"reverse":a=o-a;break;case"full":a=i.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const h=l.currentTime;vx(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=s.currentTime-h+(s.startTime-i.currentTimeline.startTime)}}const Nx={};class jx{constructor(t,e,i,s,n,r,o,a){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=s,this._leaveClassName=n,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Nx,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new zx(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let s=this.options;null!=i.duration&&(s.duration=tx(i.duration)),null!=i.delay&&(s.delay=tx(i.delay));const n=i.params;if(n){let t=s.params;t||(t=this.options.params={}),Object.keys(n).forEach(i=>{e&&t.hasOwnProperty(i)||(t[i]=dx(n[i],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(t=>{i[t]=e[t]})}}return t}createSubContext(t=null,e,i){const s=e||this.element,n=new jx(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,i||0));return n.previousNode=this.previousNode,n.currentAnimateTimings=this.currentAnimateTimings,n.options=this._copyOptions(),n.updateOptions(t),n.currentQueryIndex=this.currentQueryIndex,n.currentQueryTotal=this.currentQueryTotal,n.parentContext=this,this.subContextCount++,n}transformIntoNewTimeline(t){return this.previousNode=Nx,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const s={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+t.delay,easing:""},n=new Hx(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,s,t.stretchStartingKeyframe);return this.timelines.push(n),s}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,s,n,r){let o=[];if(s&&o.push(this.element),t.length>0){t=(t=t.replace(Ix,"."+this._enterClassName)).replace(Rx,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=i);0!==i&&(e=i<0?e.slice(e.length+i,e.length):e.slice(0,i)),o.push(...e)}return n||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class zx{constructor(t,e,i,s){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=s,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new zx(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||yb,this._currentKeyframe[t]=yb}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,s){e&&(this._previousKeyframe.easing=e);const n=s&&s.params||{},r=function(t,e){const i={};let s;return t.forEach(t=>{"*"===t?(s=s||Object.keys(e),s.forEach(t=>{i[t]=yb})):nx(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=dx(r[t],n,i);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:yb),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const i=this._styleSummary[e],s=t._styleSummary[e];(!i||s.time>i.time)&&this._updateStyle(e,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((n,r)=>{const o=nx(n,!0);Object.keys(o).forEach(i=>{const s=o[i];"!"==s?t.add(i):s==yb&&e.add(i)}),i||(o.offset=r/this.duration),s.push(o)});const n=t.size?px(t.values()):[],r=e.size?px(e.values()):[];if(i){const t=s[0],e=sx(t);t.offset=0,e.offset=1,s=[t,e]}return Ox(this.element,s,n,r,this.duration,this.startTime,this.easing,!1)}}class Hx extends zx{constructor(t,e,i,s,n,r,o=!1){super(t,e,r.delay),this.element=e,this.keyframes=i,this.preStyleProps=s,this.postStyleProps=n,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const n=[],r=i+e,o=e/r,a=nx(t[0],!1);a.offset=0,n.push(a);const l=nx(t[0],!1);l.offset=Wx(o),n.push(l);const h=t.length-1;for(let s=1;s<=h;s++){let o=nx(t[s],!1);o.offset=Wx((e+o.offset*i)/r),n.push(o)}i=r,e=0,s="",t=n}return Ox(this.element,t,this.preStyleProps,this.postStyleProps,i,e,s,!0)}}function Wx(t,e=3){const i=Math.pow(10,e-1);return Math.round(t*i)/i}class Vx{}class Gx extends Vx{normalizePropertyName(t,e){return gx(t)}normalizeStyleValue(t,e,i,s){let n="";const r=i.toString().trim();if(Ux[e]&&0!==i&&"0"!==i)if("number"==typeof i)n="px";else{const e=i.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&s.push(`Please provide a CSS unit value for ${t}:${i}`)}return r+n}}const Ux=(()=>function(t){const e={};return t.forEach(t=>e[t]=!0),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")))();function Xx(t,e,i,s,n,r,o,a,l,h,c,u,d){return{type:0,element:t,triggerName:e,isRemovalTransition:n,fromState:i,fromStyles:r,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:h,postStyleProps:c,totalTime:u,errors:d}}const Yx={};class qx{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,s){return function(t,e,i,s,n){return t.some(t=>t(e,i,s,n))}(this.ast.matchers,t,e,i,s)}buildStyles(t,e,i){const s=this._stateStyles["*"],n=this._stateStyles[t],r=s?s.buildStyles(e,i):{};return n?n.buildStyles(e,i):r}build(t,e,i,s,n,r,o,a,l,h){const c=[],u=this.ast.options&&this.ast.options.params||Yx,d=this.buildStyles(i,o&&o.params||Yx,c),p=a&&a.params||Yx,f=this.buildStyles(s,p,c),g=new Set,m=new Map,y=new Map,v="void"===s,b={params:Object.assign(Object.assign({},u),p)},x=h?[]:Bx(t,e,this.ast.animation,n,r,d,f,b,l,c);let _=0;if(x.forEach(t=>{_=Math.max(t.duration+t.delay,_)}),c.length)return Xx(e,this._triggerName,i,s,v,d,f,[],[],m,y,_,c);x.forEach(t=>{const i=t.element,s=Lb(m,i,{});t.preStyleProps.forEach(t=>s[t]=!0);const n=Lb(y,i,{});t.postStyleProps.forEach(t=>n[t]=!0),i!==e&&g.add(i)});const w=px(g.values());return Xx(e,this._triggerName,i,s,v,d,f,x,w,m,y,_)}}class $x{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const i={},s=sx(this.defaultParams);return Object.keys(t).forEach(e=>{const i=t[e];null!=i&&(s[e]=i)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const n=t;Object.keys(n).forEach(t=>{let r=n[t];r.length>1&&(r=dx(r,s,e)),i[t]=r})}}),i}}class Kx{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new $x(t.style,t.options&&t.options.params||{})}),Zx(this.states,"true","1"),Zx(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new qx(t,e,this.states))}),this.fallbackTransition=new qx(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,s){return this.transitionFactories.find(n=>n.match(t,e,i,s))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function Zx(t,e,i){t.hasOwnProperty(e)?t.hasOwnProperty(i)||(t[i]=t[e]):t.hasOwnProperty(i)&&(t[e]=t[i])}const Qx=new Lx;class Jx{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(t,e){const i=[],s=Ax(this._driver,e,i);if(i.length)throw new Error("Unable to build the animation due to the following errors: "+i.join("\n"));this._animations[t]=s}_buildPlayer(t,e,i){const s=t.element,n=Tb(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(s,n,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const s=[],n=this._animations[t];let r;const o=new Map;if(n?(r=Bx(this._driver,e,n,qb,$b,{},{},i,Qx,s),r.forEach(t=>{const e=Lb(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(s.push("The requested animation doesn't exist or has already been destroyed"),r=[]),s.length)throw new Error("Unable to create the animation due to the following errors: "+s.join("\n"));o.forEach((t,e)=>{Object.keys(t).forEach(i=>{t[i]=this._driver.computeStyle(e,i,yb)})});const a=Mb(r.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e}listen(t,e,i,s){const n=Ob(e,"","","");return Db(this._getPlayer(t),i,n,s),()=>{}}command(t,e,i,s){if("register"==i)return void this.register(t,s[0]);if("create"==i)return void this.create(t,e,s[0]||{});const n=this._getPlayer(t);switch(i){case"play":n.play();break;case"pause":n.pause();break;case"reset":n.reset();break;case"restart":n.restart();break;case"finish":n.finish();break;case"init":n.init();break;case"setPosition":n.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(t)}}}const t_="ng-animate-queued",e_="ng-animate-disabled",i_=".ng-animate-disabled",s_=[],n_={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},r_={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class o_{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=null!=(s=i?t.value:t)?s:null,i){const e=sx(t);delete e.value,this.options=e}else this.options={};var s;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(i=>{null==t[i]&&(t[i]=e[i])})}}}const a_="void",l_=new o_(a_);class h_{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,m_(e,this._hostClassName)}listen(t,e,i,s){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${i}" because the animation trigger "${e}" doesn't exist!`);if(null==i||0==i.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(n=i)&&"done"!=n)throw new Error(`The provided animation trigger event "${i}" for the animation trigger "${e}" is not supported!`);var n;const r=Lb(this._elementListeners,t,[]),o={name:e,phase:i,callback:s};r.push(o);const a=Lb(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(m_(t,Kb),m_(t,"ng-trigger-"+e),a[e]=l_),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,i,s=!0){const n=this._getTrigger(e),r=new u_(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(m_(t,Kb),m_(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new o_(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=l_),l.value!==a_&&a.value===l.value){if(!function(t,e){const i=Object.keys(t),s=Object.keys(e);if(i.length!=s.length)return!1;for(let n=0;n{lx(t,i),ax(t,s)})}return}const h=Lb(this._engine.playersByElement,t,[]);h.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let c=n.matchTransition(a.value,l.value,t,l.params),u=!1;if(!c){if(!s)return;c=n.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:c,fromState:a,toState:l,player:r,isFallbackTransition:u}),u||(m_(t,t_),r.onStart(()=>{y_(t,t_)})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const i=this._engine.playersByElement.get(t);if(i){let t=i.indexOf(r);t>=0&&i.splice(t,1)}}),this.players.push(r),h.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,i)=>{delete e[t]}),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,Zb,!0);i.forEach(t=>{if(t.__ng_removed)return;const i=this._engine.fetchNamespacesByElement(t);i.size?i.forEach(i=>i.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,i,s){const n=this._engine.statesByElement.get(t);if(n){const r=[];if(Object.keys(n).forEach(e=>{if(this._triggers[e]){const i=this.trigger(t,e,a_,s);i&&r.push(i)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),i&&Mb(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const i=new Set;e.forEach(e=>{const s=e.name;if(i.has(s))return;i.add(s);const n=this._triggers[s].fallbackTransition,r=this._engine.statesByElement.get(t)[s]||l_,o=new o_(a_),a=new u_(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:n,fromState:r,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let s=!1;if(i.totalAnimations){const e=i.players.length?i.playersByQueriedElement.get(t):[];if(e&&e.length)s=!0;else{let e=t;for(;e=e.parentNode;)if(i.statesByElement.get(e)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(t),s)i.markElementAsRemoved(this.id,t,!1,e);else{const s=t.__ng_removed;s&&s!==n_||(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){m_(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const s=i.player;if(s.destroyed)return;const n=i.element,r=this._elementListeners.get(n);r&&r.forEach(e=>{if(e.name==i.triggerName){const s=Ob(n,i.triggerName,i.fromState.value,i.toState.value);s._data=t,Db(i.player,e.phase,s,e.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(i)}),this._queue=[],e.sort((t,e)=>{const i=t.transition.ast.depCount,s=e.transition.ast.depCount;return 0==i||0==s?i-s:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class c_{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const i=new h_(t,e,this);return e.parentNode?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList.length-1;if(i>=0){let s=!1;for(let n=i;n>=0;n--)if(this.driver.containsElement(this._namespaceList[n].hostElement,e)){this._namespaceList.splice(n+1,0,t),s=!0;break}s||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let s=this._namespaceLookup[t];s&&s.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(i);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i){const t=Object.keys(i);for(let s=0;s=0&&this.collectedLeaveElements.splice(t,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,i)}s&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),m_(t,e_)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),y_(t,e_))}removeNode(t,e,i,s){if(d_(e)){const n=t?this._fetchNamespace(t):null;if(n?n.removeNode(e,s):this.markElementAsRemoved(t,e,!1,s),i){const i=this.namespacesByHostElement.get(e);i&&i.id!==t&&i.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(t,e,i,s){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:s,hasAnimation:i,removedBeforeQueried:!1}}listen(t,e,i,s,n){return d_(e)?this._fetchNamespace(t).listen(e,i,s,n):()=>{}}_buildInstruction(t,e,i,s,n){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,s,t.fromState.options,t.toState.options,e,n)}destroyInnerAnimations(t){let e=this.driver.query(t,Zb,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,Jb,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Mb(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=n_,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,i_)&&this.markElementAsDisabled(t,!1),this.driver.query(t,i_,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;it()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?Mb(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))}_flushAnimations(t,e){const i=new Lx,s=[],n=new Map,r=[],o=new Map,a=new Map,l=new Map,h=new Set;this.disabledNodes.forEach(t=>{h.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let i=0;i{const i=qb+f++;p.set(e,i),t.forEach(t=>m_(t,i))});const g=[],m=new Set,y=new Set;for(let D=0;Dm.add(t)):y.add(t))}const v=new Map,b=g_(u,Array.from(m));b.forEach((t,e)=>{const i=$b+f++;v.set(e,i),t.forEach(t=>m_(t,i))}),t.push(()=>{d.forEach((t,e)=>{const i=p.get(e);t.forEach(t=>y_(t,i))}),b.forEach((t,e)=>{const i=v.get(e);t.forEach(t=>y_(t,i))}),g.forEach(t=>{this.processLeaveNode(t)})});const x=[],_=[];for(let D=this._namespaceList.length-1;D>=0;D--)this._namespaceList[D].drainQueuedTransitions(e).forEach(t=>{const e=t.player,n=t.element;if(x.push(e),this.collectedEnterElements.length){const t=n.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const h=!c||!this.driver.containsElement(c,n),u=v.get(n),d=p.get(n),f=this._buildInstruction(t,i,d,u,h);if(f.errors&&f.errors.length)_.push(f);else{if(h)return e.onStart(()=>lx(n,f.fromStyles)),e.onDestroy(()=>ax(n,f.toStyles)),void s.push(e);if(t.isFallbackTransition)return e.onStart(()=>lx(n,f.fromStyles)),e.onDestroy(()=>ax(n,f.toStyles)),void s.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),i.append(n,f.timelines),r.push({instruction:f,player:e,element:n}),f.queriedElements.forEach(t=>Lb(o,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const i=Object.keys(t);if(i.length){let t=a.get(e);t||a.set(e,t=new Set),i.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const i=Object.keys(t);let s=l.get(e);s||l.set(e,s=new Set),i.forEach(t=>s.add(t))})}});if(_.length){const t=[];_.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),x.forEach(t=>t.destroy()),this.reportError(t)}const w=new Map,C=new Map;r.forEach(t=>{const e=t.element;i.has(e)&&(C.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,w))}),s.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{Lb(w,e,[]).push(t),t.destroy()})});const k=g.filter(t=>b_(t,a,l)),S=new Map;f_(S,this.driver,y,l,yb).forEach(t=>{b_(t,a,l)&&k.push(t)});const A=new Map;d.forEach((t,e)=>{f_(A,this.driver,new Set(t),a,"!")}),k.forEach(t=>{const e=S.get(t),i=A.get(t);S.set(t,Object.assign(Object.assign({},e),i))});const E=[],M=[],T={};r.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(i.has(e)){if(h.has(e))return r.onDestroy(()=>ax(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void s.push(r);let t=T;if(C.size>1){let i=e;const s=[];for(;i=i.parentNode;){const e=C.get(i);if(e){t=e;break}s.push(i)}s.forEach(e=>C.set(e,t))}const i=this._buildAnimation(r.namespaceId,o,w,n,A,S);if(r.setRealPlayer(i),t===T)E.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=Mb(e)),s.push(r)}}else lx(e,o.fromStyles),r.onDestroy(()=>ax(e,o.toStyles)),M.push(r),h.has(e)&&s.push(r)}),M.forEach(t=>{const e=n.get(t.element);if(e&&e.length){const i=Mb(e);t.setRealPlayer(i)}}),s.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let D=0;D!t.destroyed);s.length?v_(this,t,s):this.processLeaveNode(t)}return g.length=0,E.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),E}elementContainsData(t,e){let i=!1;const s=e.__ng_removed;return s&&s.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,s,n){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!n||n==a_;e.forEach(e=>{e.queued||(t||e.triggerName==s)&&r.push(e)})}}return(i||s)&&(r=r.filter(t=>!(i&&i!=t.namespaceId||s&&s!=t.triggerName))),r}_beforeAnimationBuild(t,e,i){const s=e.element,n=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==s,l=Lb(i,t,[]);this._getPreviousPlayers(t,a,n,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}lx(s,e.fromStyles)}_buildAnimation(t,e,i,s,n,r){const o=e.triggerName,a=e.element,l=[],h=new Set,c=new Set,u=e.timelines.map(e=>{const u=e.element;h.add(u);const d=u.__ng_removed;if(d&&d.removedBeforeQueried)return new Sb(e.duration,e.delay);const p=u!==a,f=function(t){const e=[];return function t(e,i){for(let s=0;st.getRealPlayer())).filter(t=>!!t.element&&t.element===u),g=n.get(u),m=r.get(u),y=Tb(0,this._normalizer,0,e.keyframes,g,m),v=this._buildPlayer(e,y,f);if(e.subTimeline&&s&&c.add(u),p){const e=new u_(t,o,u);e.setRealPlayer(v),l.push(e)}return v});l.forEach(t=>{Lb(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,i){let s;if(t instanceof Map){if(s=t.get(e),s){if(s.length){const t=s.indexOf(i);s.splice(t,1)}0==s.length&&t.delete(e)}}else if(s=t[e],s){if(s.length){const t=s.indexOf(i);s.splice(t,1)}0==s.length&&delete t[e]}return s}(this.playersByQueriedElement,t.element,t))}),h.forEach(t=>m_(t,Qb));const d=Mb(u);return d.onDestroy(()=>{h.forEach(t=>y_(t,Qb)),ax(a,e.toStyles)}),c.forEach(t=>{Lb(s,t,[]).push(d)}),d}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new Sb(t.duration,t.delay)}}class u_{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new Sb,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(i=>Db(t,e,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Lb(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function d_(t){return t&&1===t.nodeType}function p_(t,e){const i=t.style.display;return t.style.display=null!=e?e:"none",i}function f_(t,e,i,s,n){const r=[];i.forEach(t=>r.push(p_(t)));const o=[];s.forEach((i,s)=>{const r={};i.forEach(t=>{const i=r[t]=e.computeStyle(s,t,n);i&&0!=i.length||(s.__ng_removed=r_,o.push(s))}),t.set(s,r)});let a=0;return i.forEach(t=>p_(t,r[a++])),o}function g_(t,e){const i=new Map;if(t.forEach(t=>i.set(t,[])),0==e.length)return i;const s=new Set(e),n=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let r=n.get(e);if(r)return r;const o=e.parentNode;return r=i.has(o)?o:s.has(o)?1:t(o),n.set(e,r),r}(t);1!==e&&i.get(e).push(t)}),i}function m_(t,e){if(t.classList)t.classList.add(e);else{let i=t.$$classes;i||(i=t.$$classes={}),i[e]=!0}}function y_(t,e){if(t.classList)t.classList.remove(e);else{let i=t.$$classes;i&&delete i[e]}}function v_(t,e,i){Mb(i).onDone(()=>t.processLeaveNode(e))}function b_(t,e,i){const s=i.get(t);if(!s)return!1;let n=e.get(t);return n?s.forEach(t=>n.add(t)):e.set(t,s),i.delete(t),!0}class x_{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new c_(t,e,i),this._timelineEngine=new Jx(t,e,i),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,i,s,n){const r=t+"-"+s;let o=this._triggerCache[r];if(!o){const t=[],e=Ax(this._driver,n,t);if(t.length)throw new Error(`The animation trigger "${s}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new Kx(t,e)}(s,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,s,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,s){this._transitionEngine.insertNode(t,e,i,s)}onRemove(t,e,i,s){this._transitionEngine.removeNode(t,e,s||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,s){if("@"==i.charAt(0)){const[t,n]=Ib(i);this._timelineEngine.command(t,e,n,s)}else this._transitionEngine.trigger(t,e,i,s)}listen(t,e,i,s,n){if("@"==i.charAt(0)){const[t,s]=Ib(i);return this._timelineEngine.listen(t,e,s,n)}return this._transitionEngine.listen(t,e,i,s,n)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function __(t,e){let i=null,s=null;return Array.isArray(e)&&e.length?(i=C_(e[0]),e.length>1&&(s=C_(e[e.length-1]))):e&&(i=C_(e)),i||s?new w_(t,i,s):null}let w_=(()=>{class t{constructor(e,i,s){this._element=e,this._startStyles=i,this._endStyles=s,this._state=0;let n=t.initialStylesByElement.get(e);n||t.initialStylesByElement.set(e,n={}),this._initialStyles=n}start(){this._state<1&&(this._startStyles&&ax(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ax(this._element,this._initialStyles),this._endStyles&&(ax(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(lx(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(lx(this._element,this._endStyles),this._endStyles=null),ax(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function C_(t){let e=null;const i=Object.keys(t);for(let s=0;sthis._handleCallback(t)}apply(){!function(t,e){const i=L_(t,"").trim();i.length&&(function(t,e){let i=0;for(let s=0;s=this._delay&&i>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),P_(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const i=L_(t,"").split(","),s=D_(i,e);s>=0&&(i.splice(s,1),O_(t,"",i.join(",")))}(this._element,this._name))}}function M_(t,e,i){O_(t,"PlayState",i,T_(t,e))}function T_(t,e){const i=L_(t,"");return i.indexOf(",")>0?D_(i.split(","),e):D_([i],e)}function D_(t,e){for(let i=0;i=0)return i;return-1}function P_(t,e,i){i?t.removeEventListener(A_,e):t.addEventListener(A_,e)}function O_(t,e,i,s){const n=S_+e;if(null!=s){const e=t.style[n];if(e.length){const t=e.split(",");t[s]=i,i=t.join(",")}}t.style[n]=i}function L_(t,e){return t.style[S_+e]}class I_{constructor(t,e,i,s,n,r,o,a){this.element=t,this.keyframes=e,this.animationName=i,this._duration=s,this._delay=n,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=s+n,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new E_(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(i=>{"offset"!=i&&(t[i]=e?this._finalStyles[i]:bx(this.element,i))})}this.currentSnapshot=t}}class R_ extends Sb{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=Ub(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class B_{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return Hb(t)}matchesElement(t,e){return Wb(t,e)}containsElement(t,e){return Vb(t,e)}query(t,e,i){return Gb(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,i){i=i.map(t=>Ub(t));let s=`@keyframes ${e} {\n`,n="";i.forEach(t=>{n=" ";const e=parseFloat(t.offset);s+=`${n}${100*e}% {\n`,n+=" ",Object.keys(t).forEach(e=>{const i=t[e];switch(e){case"offset":return;case"easing":return void(i&&(s+=`${n}animation-timing-function: ${i};\n`));default:return void(s+=`${n}${e}: ${i};\n`)}}),s+=n+"}\n"}),s+="}\n";const r=document.createElement("style");return r.textContent=s,r}animate(t,e,i,s,n,r=[],o){o&&this._notifyFaultyScrubber();const a=r.filter(t=>t instanceof I_),l={};mx(i,s)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const h=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(i=>{"offset"!=i&&"easing"!=i&&(e[i]=t[i])})}),e}(e=yx(t,e,l));if(0==i)return new R_(t,h);const c="gen_css_kf_"+this._count++,u=this.buildKeyframeElement(t,c,e);document.querySelector("head").appendChild(u);const d=__(t,e),p=new I_(t,e,c,i,s,n,h,d);return p.onDestroy(()=>{var t;(t=u).parentNode.removeChild(t)}),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class F_{constructor(t,e,i,s){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,i){return t.animate(e,i)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:bx(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class N_{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(j_().toString()),this._cssKeyframesDriver=new B_}validateStyleProperty(t){return Hb(t)}matchesElement(t,e){return Wb(t,e)}containsElement(t,e){return Vb(t,e)}query(t,e,i){return Gb(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,i,s,n,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,i,s,n,r);const a={duration:i,delay:s,fill:0==s?"both":"forwards"};n&&(a.easing=n);const l={},h=r.filter(t=>t instanceof F_);mx(i,s)&&h.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=__(t,e=yx(t,e=e.map(t=>nx(t,!1)),l));return new F_(t,e,a,c)}}function j_(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let z_=(()=>{class t extends mb{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:he.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(t)?xb(t):t;return V_(this._renderer,null,e,"register",[i]),new H_(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(qt(Ea),qt(Uh))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class H_ extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new W_(this._id,t,e||{},this._renderer)}}class W_{constructor(t,e,i,s){this.id=t,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return V_(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function V_(t,e,i,s,n){return t.setProperty(e,`@@${i}:${s}`,n)}const G_="@",U_="@.disabled";let X_=(()=>{class t{constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const i=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(i);return t||(t=new Y_("",i,this.engine),this._rendererCache.set(i,t)),t}const s=e.id,n=e.id+"-"+this._currentId;this._currentId++,this.engine.register(n,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(s,n,t,e.name,e)};return e.data.animation.forEach(r),new q_(this,n,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){t>=0&&te(i)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,i]=t;e(i)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,i]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return t.\u0275fac=function(e){return new(e||t)(qt(Ea),qt(x_),qt(fh))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class Y_{constructor(t,e,i){this.namespaceId=t,this.delegate=e,this.engine=i,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,s){this.delegate.setAttribute(t,e,i,s)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,s){this.delegate.setStyle(t,e,i,s)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){e.charAt(0)==G_&&e==U_?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class q_ extends Y_{constructor(t,e,i,s){super(e,i,s),this.factory=t,this.namespaceId=e}setProperty(t,e,i){e.charAt(0)==G_?"."==e.charAt(1)&&e==U_?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.substr(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if(e.charAt(0)==G_){const s=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let n=e.substr(1),r="";return n.charAt(0)!=G_&&([n,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(n)),this.engine.listen(this.namespaceId,s,n,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,i,t)})}return this.delegate.listen(t,e,i)}}let $_=(()=>{class t extends x_{constructor(t,e,i){super(t.body,e,i)}}return t.\u0275fac=function(e){return new(e||t)(qt(Uh),qt(Yb),qt(Vx))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const K_=new Ft("AnimationModuleType"),Z_=[{provide:Yb,useFactory:function(){return"function"==typeof j_()?new N_:new B_}},{provide:K_,useValue:"BrowserAnimations"},{provide:mb,useClass:z_},{provide:Vx,useFactory:function(){return new Gx}},{provide:x_,useClass:$_},{provide:Ea,useFactory:function(t,e,i){return new X_(t,e,i)},deps:[Su,x_,fh]}];let Q_=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:Z_,imports:[Fu]}),t})();function J_(t,e){if(1&t&&To(0,"mat-pseudo-checkbox",3),2&t){const t=Bo();So("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}const tw=["*"],ew=new Oa("10.2.5"),iw=new Ft("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let sw,nw=(()=>{class t{constructor(t,e,i){this._hasDoneGlobalChecks=!1,this._document=i,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getDocument(){const t=this._document||document;return"object"==typeof t&&t?t:null}_getWindow(){const t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e:null}_checksAreEnabled(){return Ss()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){const t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){const t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(t||!e||!e.body||"function"!=typeof getComputedStyle)return;const i=e.createElement("div");i.classList.add("mat-theme-loaded-marker"),e.body.appendChild(i);const s=getComputedStyle(i);s&&"none"!==s.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),e.body.removeChild(i)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&ew.full!==gb.full&&console.warn("The Angular Material version ("+ew.full+") does not match the Angular CDK version ("+gb.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)(qt(cb),qt(iw,8),qt(Uh,8))},imports:[[fb],fb]}),t})();function rw(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=Vv(t)}}}function ow(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),e&&this._elementRef.nativeElement.classList.add("mat-"+e),this._color=e)}}}function aw(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Vv(t)}}}function lw(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new C}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}try{sw="undefined"!=typeof Intl}catch(EA){sw=!1}let hw=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})();class cw{constructor(t,e,i){this._renderer=t,this.element=e,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const uw={enterDuration:450,exitDuration:400},dw=Bv({passive:!0}),pw=["mousedown","touchstart"],fw=["mouseup","mouseleave","touchend","touchcancel"];class gw{constructor(t,e,i,s){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=Yv(i))}fadeInRipple(t,e,i={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),n=Object.assign(Object.assign({},uw),i.animation);i.centered&&(t=s.left+s.width/2,e=s.top+s.height/2);const r=i.radius||function(t,e,i){const s=Math.max(Math.abs(t-i.left),Math.abs(t-i.right)),n=Math.max(Math.abs(e-i.top),Math.abs(e-i.bottom));return Math.sqrt(s*s+n*n)}(t,e,s),o=t-s.left,a=e-s.top,l=n.enterDuration,h=document.createElement("div");h.classList.add("mat-ripple-element"),h.style.left=o-r+"px",h.style.top=a-r+"px",h.style.height=2*r+"px",h.style.width=2*r+"px",null!=i.color&&(h.style.backgroundColor=i.color),h.style.transitionDuration=l+"ms",this._containerElement.appendChild(h),window.getComputedStyle(h).getPropertyValue("opacity"),h.style.transform="scale(1)";const c=new cw(this,h,i);return c.state=0,this._activeRipples.add(c),i.persistent||(this._mostRecentTransientRipple=c),this._runTimeoutOutsideZone(()=>{const t=c===this._mostRecentTransientRipple;c.state=1,i.persistent||t&&this._isPointerDown||c.fadeOut()},l),c}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const i=t.element,s=Object.assign(Object.assign({},uw),t.config.animation);i.style.transitionDuration=s.exitDuration+"ms",i.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,i.parentNode.removeChild(i)},s.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=Yv(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(pw))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(fw),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=eb(t),i=this._lastTouchStartEvent&&Date.now(){!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,dw)})})}_removeTriggerEvents(){this._triggerElement&&(pw.forEach(t=>{this._triggerElement.removeEventListener(t,this,dw)}),this._pointerUpEventsRegistered&&fw.forEach(t=>{this._triggerElement.removeEventListener(t,this,dw)}))}}const mw=new Ft("mat-ripple-global-options");let yw=(()=>{class t{constructor(t,e,i,s,n){this._elementRef=t,this._animationMode=n,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new gw(this,e,t,i)}get disabled(){return this._disabled}set disabled(t){this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,e=0,i){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),i)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(Co(Sa),Co(fh),Co(Dv),Co(mw,8),Co(K_,8))},t.\u0275dir=be({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&Zo("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),vw=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[nw,Pv],nw]}),t})(),bw=(()=>{class t{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return t.\u0275fac=function(e){return new(e||t)(Co(K_,8))},t.\u0275cmp=pe({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&Zo("mat-pseudo-checkbox-indeterminate","indeterminate"===e.state)("mat-pseudo-checkbox-checked","checked"===e.state)("mat-pseudo-checkbox-disabled",e.disabled)("_mat-animation-noopable","NoopAnimations"===e._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,e){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),t})(),xw=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)}}),t})();class _w{}const ww=rw(_w);let Cw=0,kw=(()=>{class t extends ww{constructor(){super(...arguments),this._labelId="mat-optgroup-label-"+Cw++}}return t.\u0275fac=function(e){return Sw(e||t)},t.\u0275dir=be({type:t,inputs:{label:"label"},features:[no]}),t})();const Sw=gs(kw),Aw=new Ft("MatOptgroup");let Ew=0;class Mw{constructor(t,e=!1){this.source=t,this.isUserInput=e}}const Tw=new Ft("MAT_OPTION_PARENT_COMPONENT");let Dw=(()=>{class t{constructor(t,e,i,s){this._element=t,this._changeDetectorRef=e,this._parent=i,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Ew++,this.onSelectionChange=new Sl,this._stateChanges=new C}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=Vv(t)}get disableRipple(){return this._parent&&this._parent.disableRipple}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,e){const i=this._getHostElement();"function"==typeof i.focus&&i.focus(e)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){13!==t.keyCode&&32!==t.keyCode||Nv(t)||(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new Mw(this,t))}}return t.\u0275fac=function(e){return new(e||t)(Co(Sa),Co(Fr),Co(void 0),Co(kw))},t.\u0275dir=be({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t})(),Pw=(()=>{class t extends Dw{constructor(t,e,i,s){super(t,e,i,s)}}return t.\u0275fac=function(e){return new(e||t)(Co(Sa),Co(Fr),Co(Tw,8),Co(Aw,8))},t.\u0275cmp=pe({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&Lo("click",(function(){return e._selectViaInteraction()}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&(pa("id",e.id),vo("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),Zo("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[no],ngContentSelectors:tw,decls:4,vars:3,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"]],template:function(t,e){1&t&&(No(),_o(0,J_,1,2,"mat-pseudo-checkbox",0),Eo(1,"span",1),jo(2),Mo(),To(3,"div",2)),2&t&&(So("ngIf",e.multiple),yn(3),So("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[qc,yw,bw],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.cdk-high-contrast-active .mat-option .mat-option-ripple{opacity:.5}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),t})(),Ow=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[vw,ou,xw]]}),t})();function Lw(t,e){if(1&t&&(Pi(),To(0,"circle",3)),2&t){const t=Bo();Ko("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),vo("r",t._getCircleRadius())}}function Iw(t,e){if(1&t&&(Pi(),To(0,"circle",3)),2&t){const t=Bo();Ko("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),vo("r",t._getCircleRadius())}}function Rw(t,e){if(1&t&&(Pi(),To(0,"circle",3)),2&t){const t=Bo();Ko("animation-name","mat-progress-spinner-stroke-rotate-"+t._spinnerAnimationLabel)("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),vo("r",t._getCircleRadius())}}function Bw(t,e){if(1&t&&(Pi(),To(0,"circle",3)),2&t){const t=Bo();Ko("stroke-dashoffset",t._getStrokeDashOffset(),"px")("stroke-dasharray",t._getStrokeCircumference(),"px")("stroke-width",t._getCircleStrokeWidth(),"%"),vo("r",t._getCircleRadius())}}const Fw=".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.cdk-high-contrast-active .mat-progress-spinner circle{stroke:currentColor}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4000ms;animation-timing-function:cubic-bezier(0.35, 0, 0.25, 1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10000ms cubic-bezier(0.87, 0.03, 0.33, 1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.606171575px;transform:rotate(0)}12.5%{stroke-dashoffset:56.5486677px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.606171575px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.5486677px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.606171575px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.5486677px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.606171575px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.5486677px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.5486677px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.606171575px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0deg)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}\n";class Nw{constructor(t){this._elementRef=t}}const jw=ow(Nw,"primary"),zw=new Ft("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}});let Hw=(()=>{class t extends jw{constructor(e,i,s,n,r){super(e),this._elementRef=e,this._document=s,this._diameter=100,this._value=0,this._fallbackAnimation=!1,this.mode="determinate";const o=t._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),o.has(s.head)||o.set(s.head,new Set([100])),this._fallbackAnimation=i.EDGE||i.TRIDENT,this._noopAnimations="NoopAnimations"===n&&!!r&&!r._forceAnimations,r&&(r.diameter&&(this.diameter=r.diameter),r.strokeWidth&&(this.strokeWidth=r.strokeWidth))}get diameter(){return this._diameter}set diameter(t){this._diameter=Gv(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(t){this._strokeWidth=Gv(t)}get value(){return"determinate"===this.mode?this._value:0}set value(t){this._value=Math.max(0,Math.min(100,Gv(t)))}ngOnInit(){const t=this._elementRef.nativeElement;this._styleRoot=Fv(t)||this._document.head,this._attachStyleNode(),t.classList.add(`mat-progress-spinner-indeterminate${this._fallbackAnimation?"-fallback":""}-animation`)}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const t=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${t} ${t}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_attachStyleNode(){const e=this._styleRoot,i=this._diameter,s=t._diameters;let n=s.get(e);if(!n||!n.has(i)){const t=this._document.createElement("style");t.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),t.textContent=this._getAnimationText(),e.appendChild(t),n||(n=new Set,s.set(e,n)),n.add(i)}}_getAnimationText(){const t=this._getStrokeCircumference();return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*t).replace(/END_VALUE/g,""+.2*t).replace(/DIAMETER/g,""+this._spinnerAnimationLabel)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}return t.\u0275fac=function(e){return new(e||t)(Co(Sa),Co(Dv),Co(Uh,8),Co(K_,8),Co(zw))},t.\u0275cmp=pe({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(vo("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),Ko("width",e.diameter,"px")("height",e.diameter,"px"),Zo("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[no],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(Pi(),Eo(0,"svg",0),_o(1,Lw,1,9,"circle",1),_o(2,Iw,1,7,"circle",2),Mo()),2&t&&(Ko("width",e.diameter,"px")("height",e.diameter,"px"),So("ngSwitch","indeterminate"===e.mode),vo("viewBox",e._getViewBox()),yn(1),So("ngSwitchCase",!0),yn(1),So("ngSwitchCase",!1))},directives:[Qc,Jc],styles:[Fw],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t})(),Ww=(()=>{class t extends Hw{constructor(t,e,i,s,n){super(t,e,i,s,n),this.mode="indeterminate"}}return t.\u0275fac=function(e){return new(e||t)(Co(Sa),Co(Dv),Co(Uh,8),Co(K_,8),Co(zw))},t.\u0275cmp=pe({type:t,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(Ko("width",e.diameter,"px")("height",e.diameter,"px"),Zo("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[no],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(Pi(),Eo(0,"svg",0),_o(1,Rw,1,9,"circle",1),_o(2,Bw,1,7,"circle",2),Mo()),2&t&&(Ko("width",e.diameter,"px")("height",e.diameter,"px"),So("ngSwitch","indeterminate"===e.mode),vo("viewBox",e._getViewBox()),yn(1),So("ngSwitchCase",!0),yn(1),So("ngSwitchCase",!1))},directives:[Qc,Jc],styles:[Fw],encapsulation:2,changeDetection:0}),t})(),Vw=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[nw,ou],nw]}),t})();class Gw{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Uw extends Gw{constructor(t,e,i,s){super(),this.component=t,this.viewContainerRef=e,this.injector=i,this.componentFactoryResolver=s}}class Xw extends Gw{constructor(t,e,i){super(),this.templateRef=t,this.viewContainerRef=e,this.context=i}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class Yw extends Gw{constructor(t){super(),this.element=t instanceof Sa?t.nativeElement:t}}class qw{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Uw?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Xw?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof Yw?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class $w extends qw{constructor(t,e,i,s,n){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=i,this._defaultInjector=s,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");e.parentNode.insertBefore(i,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=n}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let i;return t.viewContainerRef?(i=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>i.destroy())):(i=e.create(t.injector||this._defaultInjector),this._appRef.attachView(i.hostView),this.setDisposeFn(()=>{this._appRef.detachView(i.hostView),i.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(i)),i}attachTemplatePortal(t){let e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(t=>this.outletElement.appendChild(t)),i.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(i);-1!==t&&e.remove(t)}),i}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let Kw=(()=>{class t extends qw{constructor(t,e,i){super(),this._componentFactoryResolver=t,this._viewContainerRef=e,this._isInitialized=!1,this.attached=new Sl,this.attachDomPortal=t=>{const e=t.element,i=this._document.createComment("dom-portal");t.setAttachedHost(this),e.parentNode.insertBefore(i,e),this._getRootNode().appendChild(e),super.setDisposeFn(()=>{i.parentNode&&i.parentNode.replaceChild(e,i)})},this._document=i}get portal(){return this._attachedPortal}set portal(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&super.detach(),t&&super.attach(t),this._attachedPortal=t)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(t){t.setAttachedHost(this);const e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),s=e.createComponent(i,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(s.hostView.rootNodes[0]),super.setDisposeFn(()=>s.destroy()),this._attachedPortal=t,this._attachedRef=s,this.attached.emit(s),s}attachTemplatePortal(t){t.setAttachedHost(this);const e=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=t,this._attachedRef=e,this.attached.emit(e),e}_getRootNode(){const t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}return t.\u0275fac=function(e){return new(e||t)(Co(ka),Co(Za),Co(Uh))},t.\u0275dir=be({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[no]}),t})(),Zw=(()=>{class t extends Kw{}return t.\u0275fac=function(e){return Qw(e||t)},t.\u0275dir=be({type:t,selectors:[["","cdkPortalHost",""],["","portalHost",""]],inputs:{portal:["cdkPortalHost","portal"]},exportAs:["cdkPortalHost"],features:[_a([{provide:Kw,useExisting:t}]),no]}),t})();const Qw=gs(Zw);let Jw=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)}}),t})();class tC{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new eC(t,this.durationSelector))}}class eC extends N{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let i;try{const{durationSelector:e}=this;i=e(t)}catch(e){return this.destination.error(e)}const s=j(i,new F(this));!s||s.closed?this.clearThrottle():this.add(this.throttled=s)}}clearThrottle(){const{value:t,hasValue:e,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function iC(t,e=Sy){return i=()=>Ey(t,e),function(t){return t.lift(new tC(i))};var i}let sC=(()=>{class t{constructor(t,e,i){this._ngZone=t,this._platform=e,this._scrolled=new C,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=i}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new v(e=>{this._globalSubscription||this._addGlobalListener();const i=t>0?this._scrolled.pipe(iC(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{i.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):Nu()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const i=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(zu(t=>!t||i.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((i,s)=>{this._scrollableContainsElement(s,t)&&e.push(s)}),e}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollableContainsElement(t,e){let i=e.nativeElement,s=t.getElementRef().nativeElement;do{if(i==s)return!0}while(i=i.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Ty(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(qt(fh),qt(Dv),qt(Uh,8))},t.\u0275prov=ht({factory:function(){return new t(qt(fh),qt(Dv),qt(Uh,8))},token:t,providedIn:"root"}),t})(),nC=(()=>{class t{constructor(t,e,i){this._platform=t,this._change=new C,this._changeListener=t=>{this._change.next(t)},this._document=i,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:e,height:i}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+e,height:i,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._getDocument(),e=this._getWindow(),i=t.documentElement,s=i.getBoundingClientRect();return{top:-s.top||t.body.scrollTop||e.scrollY||i.scrollTop||0,left:-s.left||t.body.scrollLeft||e.scrollX||i.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(iC(t)):this._change}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(qt(Dv),qt(fh),qt(Uh,8))},t.\u0275prov=ht({factory:function(){return new t(qt(Dv),qt(fh),qt(Uh,8))},token:t,providedIn:"root"}),t})(),rC=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)}}),t})(),oC=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[fb,Pv,rC],fb,rC]}),t})();function aC(t,e){1&t&&jo(0)}const lC=["*"];function hC(t,e){}const cC=function(t){return{animationDuration:t}},uC=function(t,e){return{value:t,params:e}},dC=["tabBodyWrapper"],pC=["tabHeader"];function fC(t,e){}function gC(t,e){1&t&&_o(0,fC,0,0,"ng-template",9),2&t&&So("cdkPortalOutlet",Bo().$implicit.templateLabel)}function mC(t,e){1&t&&ha(0),2&t&&ca(Bo().$implicit.textLabel)}function yC(t,e){if(1&t){const t=Do();Eo(0,"div",6),Lo("click",(function(){oi(t);const i=e.$implicit,s=e.index,n=Bo(),r=wo(1);return n._handleClick(i,r,s)})),Eo(1,"div",7),_o(2,gC,1,1,"ng-template",8),_o(3,mC,1,1,"ng-template",8),Mo(),Mo()}if(2&t){const t=e.$implicit,i=e.index,s=Bo();Zo("mat-tab-label-active",s.selectedIndex==i),So("id",s._getTabLabelId(i))("disabled",t.disabled)("matRippleDisabled",t.disabled||s.disableRipple),vo("tabIndex",s._getTabIndex(t,i))("aria-posinset",i+1)("aria-setsize",s._tabs.length)("aria-controls",s._getTabContentId(i))("aria-selected",s.selectedIndex==i)("aria-label",t.ariaLabel||null)("aria-labelledby",!t.ariaLabel&&t.ariaLabelledby?t.ariaLabelledby:null),yn(2),So("ngIf",t.templateLabel),yn(1),So("ngIf",!t.templateLabel)}}function vC(t,e){if(1&t){const t=Do();Eo(0,"mat-tab-body",10),Lo("_onCentered",(function(){return oi(t),Bo()._removeTabBodyWrapperHeight()}))("_onCentering",(function(e){return oi(t),Bo()._setTabBodyWrapperHeight(e)})),Mo()}if(2&t){const t=e.$implicit,i=e.index,s=Bo();Zo("mat-tab-body-active",s.selectedIndex==i),So("id",s._getTabContentId(i))("content",t.content)("position",t.position)("origin",t.origin)("animationDuration",s.animationDuration),vo("aria-labelledby",s._getTabLabelId(i))}}const bC=["tabListContainer"],xC=["tabList"],_C=["nextPaginator"],wC=["previousPaginator"],CC=new Ft("MatInkBarPositioner",{providedIn:"root",factory:function(){return t=>({left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"})}});let kC=(()=>{class t{constructor(t,e,i,s){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=i,this._animationMode=s}alignToElement(t){this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._setStyles(t))}):this._setStyles(t)}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}_setStyles(t){const e=this._inkBarPositioner(t),i=this._elementRef.nativeElement;i.style.left=e.left,i.style.width=e.width}}return t.\u0275fac=function(e){return new(e||t)(Co(Sa),Co(fh),Co(CC),Co(K_,8))},t.\u0275dir=be({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&Zo("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t})();const SC=new Ft("MatTabContent");let AC=(()=>{class t{constructor(t){this.template=t}}return t.\u0275fac=function(e){return new(e||t)(Co($a))},t.\u0275dir=be({type:t,selectors:[["","matTabContent",""]],features:[_a([{provide:SC,useExisting:t}])]}),t})();const EC=new Ft("MatTabLabel");class MC{}const TC=rw(MC),DC=new Ft("MAT_TAB_GROUP");let PC=(()=>{class t extends TC{constructor(t,e){super(),this._viewContainerRef=t,this._closestTabGroup=e,this.textLabel="",this._contentPortal=null,this._stateChanges=new C,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(t){this._setTemplateLabelInput(t)}get content(){return this._contentPortal}ngOnChanges(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Xw(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(t){t&&(this._templateLabel=t)}}return t.\u0275fac=function(e){return new(e||t)(Co(Za),Co(DC,8))},t.\u0275cmp=pe({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,i){var s,n,r,o;1&t&&(zl(i,EC,!0),n=i,r=SC,!0,o=$a,Hl(ri(),ni(),r,true,o,!0,ai(),n)),2&t&&(Bl(s=Wl())&&(e.templateLabel=s.first),Bl(s=Wl())&&(e._explicitContent=s.first))},viewQuery:function(t,e){var i;1&t&&Fl($a,!0),2&t&&Bl(i=Wl())&&(e._implicitContent=i.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[no,Ie],ngContentSelectors:lC,decls:1,vars:0,template:function(t,e){1&t&&(No(),_o(0,aC,1,0,"ng-template"))},encapsulation:2}),t})();const OC={translateTab:vb("translateTab",[wb("center, void, left-origin-center, right-origin-center",_b({transform:"none"})),wb("left",_b({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),wb("right",_b({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Cb("* => left, * => right, left => center, right => center",bb("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Cb("void => left-origin-center",[_b({transform:"translate3d(-100%, 0, 0)"}),bb("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Cb("void => right-origin-center",[_b({transform:"translate3d(100%, 0, 0)"}),bb("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let LC=(()=>{class t extends Kw{constructor(t,e,i,s){super(t,e,s),this._host=i,this._centeringSub=u.EMPTY,this._leavingSub=u.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(Zd(this._host._isCenterPosition(this._host._position))).subscribe(t=>{t&&!this.hasAttached()&&this.attach(this._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this.detach()})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(Co(ka),Co(Za),Co(wt(()=>RC)),Co(Uh))},t.\u0275dir=be({type:t,selectors:[["","matTabBodyHost",""]],features:[no]}),t})(),IC=(()=>{class t{constructor(t,e,i){this._elementRef=t,this._dir=e,this._dirChangeSubscription=u.EMPTY,this._translateTabComplete=new C,this._onCentering=new Sl,this._beforeCentering=new Sl,this._afterLeavingCenter=new Sl,this._onCentered=new Sl(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe(t=>{this._computePositionAnimationState(t),i.markForCheck()})),this._translateTabComplete.pipe(function(t,e){return e=>e.lift(new Dy(t,undefined))}((t,e)=>t.fromState===e.fromState&&t.toState===e.toState)).subscribe(t=>{this._isCenterPosition(t.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(t.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(t){this._positionIndex=t,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(t){const e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}_computePositionAnimationState(t=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}_computePositionFromOrigin(t){const e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}return t.\u0275fac=function(e){return new(e||t)(Co(Sa),Co(pb,8),Co(Fr))},t.\u0275dir=be({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t})(),RC=(()=>{class t extends IC{constructor(t,e,i){super(t,e,i)}}return t.\u0275fac=function(e){return new(e||t)(Co(Sa),Co(pb,8),Co(Fr))},t.\u0275cmp=pe({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var i;1&t&&Nl(Zw,!0),2&t&&Bl(i=Wl())&&(e._portalHost=i.first)},hostAttrs:[1,"mat-tab-body"],features:[no],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){var i,s;1&t&&(Eo(0,"div",0,1),Lo("@translateTab.start",(function(t){return e._onTranslateTabStarted(t)}))("@translateTab.done",(function(t){return e._translateTabComplete.next(t)})),_o(2,hC,0,0,"ng-template",2),Mo()),2&t&&So("@translateTab",function(t,e,i,s,n){return bl(ni(),pi(),3,e,i,s,void 0)}(0,uC,e._position,(1,i=cC,s=e.animationDuration,vl(ni(),pi(),1,i,s,undefined))))},directives:[LC],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}\n"],encapsulation:2,data:{animation:[OC.translateTab]}}),t})();const BC=new Ft("MAT_TABS_CONFIG");let FC=0;class NC{}class jC{constructor(t){this._elementRef=t}}const zC=ow(aw(jC),"primary");let HC=(()=>{class t extends zC{constructor(t,e,i,s){super(t),this._changeDetectorRef=e,this._animationMode=s,this._tabs=new El,this._indexToSelect=0,this._tabBodyWrapperHeight=0,this._tabsSubscription=u.EMPTY,this._tabLabelSubscription=u.EMPTY,this._dynamicHeight=!1,this._selectedIndex=null,this.headerPosition="above",this.selectedIndexChange=new Sl,this.focusChange=new Sl,this.animationDone=new Sl,this.selectedTabChange=new Sl(!0),this._groupId=FC++,this.animationDuration=i&&i.animationDuration?i.animationDuration:"500ms",this.disablePagination=!(!i||null==i.disablePagination)&&i.disablePagination}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(t){this._dynamicHeight=Vv(t)}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){this._indexToSelect=Gv(t,null)}get animationDuration(){return this._animationDuration}set animationDuration(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}get backgroundColor(){return this._backgroundColor}set backgroundColor(t){const e=this._elementRef.nativeElement;e.classList.remove("mat-background-"+this.backgroundColor),t&&e.classList.add("mat-background-"+t),this._backgroundColor=t}ngAfterContentChecked(){const t=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=t){const e=null==this._selectedIndex;e||this.selectedTabChange.emit(this._createChangeEvent(t)),Promise.resolve().then(()=>{this._tabs.forEach((e,i)=>e.isActive=i===t),e||this.selectedIndexChange.emit(t)})}this._tabs.forEach((e,i)=>{e.position=i-t,null==this._selectedIndex||0!=e.position||e.origin||(e.origin=t-this._selectedIndex)}),this._selectedIndex!==t&&(this._selectedIndex=t,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{if(this._clampTabIndex(this._indexToSelect)===this._selectedIndex){const t=this._tabs.toArray();for(let e=0;e{this._tabs.reset(t.filter(t=>!t._closestTabGroup||t._closestTabGroup===this)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}_focusChanged(t){this.focusChange.emit(this._createChangeEvent(t))}_createChangeEvent(t){const e=new NC;return e.index=t,this._tabs&&this._tabs.length&&(e.tab=this._tabs.toArray()[t]),e}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=U(...this._tabs.map(t=>t._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(t){return Math.min(this._tabs.length-1,Math.max(t||0,0))}_getTabLabelId(t){return`mat-tab-label-${this._groupId}-${t}`}_getTabContentId(t){return`mat-tab-content-${this._groupId}-${t}`}_setTabBodyWrapperHeight(t){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const e=this._tabBodyWrapper.nativeElement;e.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(e.style.height=t+"px")}_removeTabBodyWrapperHeight(){const t=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=t.clientHeight,t.style.height="",this.animationDone.emit()}_handleClick(t,e,i){t.disabled||(this.selectedIndex=e.focusIndex=i)}_getTabIndex(t,e){return t.disabled?null:this.selectedIndex===e?0:-1}}return t.\u0275fac=function(e){return new(e||t)(Co(Sa),Co(Fr),Co(BC,8),Co(K_,8))},t.\u0275dir=be({type:t,inputs:{headerPosition:"headerPosition",animationDuration:"animationDuration",disablePagination:"disablePagination",dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[no]}),t})(),WC=(()=>{class t extends HC{constructor(t,e,i,s){super(t,e,i,s)}}return t.\u0275fac=function(e){return new(e||t)(Co(Sa),Co(Fr),Co(BC,8),Co(K_,8))},t.\u0275cmp=pe({type:t,selectors:[["mat-tab-group"]],contentQueries:function(t,e,i){var s;1&t&&zl(i,PC,!0),2&t&&Bl(s=Wl())&&(e._allTabs=s)},viewQuery:function(t,e){var i;1&t&&(Nl(dC,!0),Nl(pC,!0)),2&t&&(Bl(i=Wl())&&(e._tabBodyWrapper=i.first),Bl(i=Wl())&&(e._tabHeader=i.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&Zo("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[_a([{provide:DC,useExisting:t}]),no],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","disabled","matRippleDisabled","click"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(Eo(0,"mat-tab-header",0,1),Lo("indexFocused",(function(t){return e._focusChanged(t)}))("selectFocusedIndex",(function(t){return e.selectedIndex=t})),_o(2,yC,4,14,"div",2),Mo(),Eo(3,"div",3,4),_o(5,vC,1,8,"mat-tab-body",5),Mo()),2&t&&(So("selectedIndex",e.selectedIndex||0)("disableRipple",e.disableRipple)("disablePagination",e.disablePagination),yn(2),So("ngForOf",e._tabs),yn(1),Zo("_mat-animation-noopable","NoopAnimations"===e._animationMode),yn(2),So("ngForOf",e._tabs))},directives:function(){return[$C,Xc,UC,yw,ob,qc,Kw,RC]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"],encapsulation:2}),t})();class VC{}const GC=rw(VC);let UC=(()=>{class t extends GC{constructor(t){super(),this.elementRef=t}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return t.\u0275fac=function(e){return new(e||t)(Co(Sa))},t.\u0275dir=be({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(vo("aria-disabled",!!e.disabled),Zo("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[no]}),t})();const XC=Bv({passive:!0});let YC=(()=>{class t{constructor(t,e,i,s,n,r,o){this._elementRef=t,this._changeDetectorRef=e,this._viewportRuler=i,this._dir=s,this._ngZone=n,this._platform=r,this._animationMode=o,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new C,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new C,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Sl,this.indexFocused=new Sl,n.runOutsideAngular(()=>{Ty(t.nativeElement,"mouseleave").pipe(Oy(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){t=Gv(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}ngAfterViewInit(){Ty(this._previousPaginator.nativeElement,"touchstart",XC).pipe(Oy(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),Ty(this._nextPaginator.nativeElement,"touchstart",XC).pipe(Oy(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const t=this._dir?this._dir.change:Nu(null),e=this._viewportRuler.change(150),i=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new tb(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),U(t,e,this._items.changes).pipe(Oy(this._destroyed)).subscribe(()=>{Promise.resolve().then(i),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe(Oy(this._destroyed)).subscribe(t=>{this.indexFocused.emit(t),this._setTabFocus(t)})}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(t){if(!Nv(t))switch(t.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}_onContentChanges(){const t=this._elementRef.nativeElement.textContent;t!==this._currentTextContent&&(this._currentTextContent=t||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}_isValidIndex(t){if(!this._items)return!0;const e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}_setTabFocus(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();const e=this._tabListContainer.nativeElement,i=this._getLayoutDirection();e.scrollLeft="ltr"==i?0:e.scrollWidth-e.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const t=this.scrollDistance,e=this._platform,i="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform=`translateX(${Math.round(i)}px)`,e&&(e.TRIDENT||e.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(t){this._scrollTo(t)}_scrollHeader(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(t){this._stopInterval(),this._scrollHeader(t)}_scrollToLabel(t){if(this.disablePagination)return;const e=this._items?this._items.toArray()[t]:null;if(!e)return;const i=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:s,offsetWidth:n}=e.elementRef.nativeElement;let r,o;"ltr"==this._getLayoutDirection()?(r=s,o=r+n):(o=this._tabList.nativeElement.offsetWidth-s,r=o-n);const a=this.scrollDistance,l=this.scrollDistance+i;rl&&(this.scrollDistance+=o-l+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(t,e){e&&null!=e.button&&0!==e.button||(this._stopInterval(),Ey(650,100).pipe(Oy(U(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:e,distance:i}=this._scrollHeader(t);(0===i||i>=e)&&this._stopInterval()}))}_scrollTo(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}return t.\u0275fac=function(e){return new(e||t)(Co(Sa),Co(Fr),Co(nC),Co(pb,8),Co(fh),Co(Dv),Co(K_,8))},t.\u0275dir=be({type:t,inputs:{disablePagination:"disablePagination"}}),t})(),qC=(()=>{class t extends YC{constructor(t,e,i,s,n,r,o){super(t,e,i,s,n,r,o),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=Vv(t)}_itemSelected(t){t.preventDefault()}}return t.\u0275fac=function(e){return new(e||t)(Co(Sa),Co(Fr),Co(nC),Co(pb,8),Co(fh),Co(Dv),Co(K_,8))},t.\u0275dir=be({type:t,inputs:{disableRipple:"disableRipple"},features:[no]}),t})(),$C=(()=>{class t extends qC{constructor(t,e,i,s,n,r,o){super(t,e,i,s,n,r,o)}}return t.\u0275fac=function(e){return new(e||t)(Co(Sa),Co(Fr),Co(nC),Co(pb,8),Co(fh),Co(Dv),Co(K_,8))},t.\u0275cmp=pe({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,i){var s;1&t&&zl(i,UC,!1),2&t&&Bl(s=Wl())&&(e._items=s)},viewQuery:function(t,e){var i;1&t&&(Fl(kC,!0),Fl(bC,!0),Fl(xC,!0),Nl(_C,!0),Nl(wC,!0)),2&t&&(Bl(i=Wl())&&(e._inkBar=i.first),Bl(i=Wl())&&(e._tabListContainer=i.first),Bl(i=Wl())&&(e._tabList=i.first),Bl(i=Wl())&&(e._nextPaginator=i.first),Bl(i=Wl())&&(e._previousPaginator=i.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&Zo("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[no],ngContentSelectors:lC,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(No(),Eo(0,"div",0,1),Lo("click",(function(){return e._handlePaginatorClick("before")}))("mousedown",(function(t){return e._handlePaginatorPress("before",t)}))("touchend",(function(){return e._stopInterval()})),To(2,"div",2),Mo(),Eo(3,"div",3,4),Lo("keydown",(function(t){return e._handleKeydown(t)})),Eo(5,"div",5,6),Lo("cdkObserveContent",(function(){return e._onContentChanges()})),Eo(7,"div",7),jo(8),Mo(),To(9,"mat-ink-bar"),Mo(),Mo(),Eo(10,"div",8,9),Lo("mousedown",(function(t){return e._handlePaginatorPress("after",t)}))("click",(function(){return e._handlePaginatorClick("after")}))("touchend",(function(){return e._stopInterval()})),To(12,"div",2),Mo()),2&t&&(Zo("mat-tab-header-pagination-disabled",e._disableScrollBefore),So("matRippleDisabled",e._disableScrollBefore||e.disableRipple),yn(5),Zo("_mat-animation-noopable","NoopAnimations"===e._animationMode),yn(5),Zo("mat-tab-header-pagination-disabled",e._disableScrollAfter),So("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[yw,Kv,kC],styles:['.mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-rtl .mat-tab-header-pagination-before,.mat-tab-header-pagination-after{padding-right:4px}.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:"";height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}.cdk-high-contrast-active .mat-ink-bar{outline:solid 2px;height:0}.mat-tab-labels{display:flex}[mat-align-tabs=center]>.mat-tab-header .mat-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-tab-header .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{min-width:72px}}\n'],encapsulation:2}),t})(),KC=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[ou,nw,Jw,vw,Zv,ub],nw]}),t})();function ZC(t,e){if(1&t){const t=Do();Eo(0,"div",14),Eo(1,"div"),Eo(2,"div",15),ha(3),Mo(),Eo(4,"div",16),ha(5),xl(6,"date"),Mo(),Mo(),Eo(7,"button",17),Lo("click",(function(){oi(t),Bo();const e=wo(10);return Bo(2).close(e)})),Eo(8,"span",18),ha(9,"\xd7"),Mo(),Mo(),Mo(),Eo(10,"div",19),Eo(11,"div",20),Eo(12,"b"),ha(13),Mo(),Mo(),To(14,"div",21),Eo(15,"div"),ha(16,"For more details click "),Eo(17,"a",22),ha(18,"here"),Mo(),Mo(),To(19,"div",23),Eo(20,"div",24),Eo(21,"div",25),Eo(22,"p",26),ha(23,"Share"),Mo(),Eo(24,"a",27),Eo(25,"span",28),To(26,"i",29),Mo(),Mo(),Eo(27,"div",30),Eo(28,"a",31),To(29,"i",32),Mo(),Mo(),Mo(),Mo(),Mo()}if(2&t){const t=Bo().$implicit,e=Bo(2);yn(3),ca(t.source.name),yn(2),ca(wl(6,8,t.publishedAt,"MMMM dd, yyyy")),yn(8),ca(t.title),yn(1),So("innerHtml",t.description,$s),yn(3),zo("href",t.url,Ks),yn(7),Wo("href","https://twitter.com/intent/tweet?text=",e.encodeUri(t.title),"&url=",e.encodeUri(t.url),"",Ks),yn(4),Ho("href","https://www.facebook.com/sharer/sharer.php?u=",t.url,"",Ks)}}function QC(t,e){if(1&t){const t=Do();Eo(0,"div",5),Eo(1,"div",6),Lo("click",(function(){oi(t);const e=wo(10);return Bo(2).open(e)})),Eo(2,"div",3),Eo(3,"div",7),Eo(4,"div",8),To(5,"img",9),Mo(),Mo(),Eo(6,"div",10),Eo(7,"div",11),ha(8),Mo(),Mo(),Mo(),Mo(),_o(9,ZC,30,11,"ng-template",12,13,Xl),Mo()}if(2&t){const t=e.$implicit;yn(5),zo("src",t.urlToImage,Ks),yn(3),ca(t.title)}}function JC(t,e){if(1&t&&(Eo(0,"div",3),_o(1,QC,11,2,"div",4),Mo()),2&t){const t=Bo();yn(1),So("ngForOf",t.data)}}let tk=(()=>{class t{constructor(t,e,i){this.router=t,this.service=e,this.modalService=i}ngOnInit(){this.ticker=this.router.snapshot.params.ticker,this.service.getNewsData(this.ticker).subscribe(t=>this.data=t)}open(t){this.modalService.open(t)}close(t){this.modalService.dismissAll(t)}encodeUri(t){return encodeURIComponent(t)}}return t.\u0275fac=function(e){return new(e||t)(Co(pf),Co(Jg),Co(dv))},t.\u0275cmp=pe({type:t,selectors:[["app-top-news"]],decls:3,vars:1,consts:[[1,"container",2,"overflow-y","hidden"],["class","row",4,"ngIf"],[2,"height","40px"],[1,"row"],["class","col-sm-12 col-md-12 col-lg-6 col-padding-bottom",4,"ngFor","ngForOf"],[1,"col-sm-12","col-md-12","col-lg-6","col-padding-bottom"],[1,"container","item",3,"click"],[1,"col-sm-12","col-md-4","my-auto"],[1,"my-auto"],[1,"image",3,"src"],[1,"col-sm-12","col-md-8","pl-md-0","my-auto"],[1,"news-info"],["class","modal"],["newsmodel",""],[1,"modal-header"],[1,"modal-title","header"],[2,"display","block"],["type","button",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"title"],[2,"overflow","hidden",3,"innerHtml"],["target","_blank",3,"href"],[2,"height","30px"],[1,"share"],[2,"padding","10px"],[2,"padding-left","10px"],["target","_blank",1,"twitter-share-button",3,"href"],[2,"padding-left","0.5rem"],["aria-hidden","true",1,"fa","fa-twitter",2,"font-size","30px"],["data-size","large",1,"fb-share-button","fb"],["target","_blank",1,"fb-xfbml-parse-ignore",3,"href"],["aria-hidden","true",1,"fa","fa-facebook-square",2,"font-size","30px","padding-left","0.5rem"]],template:function(t,e){1&t&&(Eo(0,"div",0),_o(1,JC,2,1,"div",1),To(2,"div",2),Mo()),2&t&&(yn(1),So("ngIf",e.data))},directives:[qc,Xc],pipes:[nu],styles:[".item[_ngcontent-%COMP%]{border:1px solid #dfdfdf;margin-top:25px;background-color:#fafafa;border-radius:5px;height:100%}.image[_ngcontent-%COMP%]{padding-top:1rem}.image[_ngcontent-%COMP%], .news-info[_ngcontent-%COMP%]{width:100%;height:100%}.close[_ngcontent-%COMP%]{outline:none}.header[_ngcontent-%COMP%]{font-weight:500;font-size:22px}.title[_ngcontent-%COMP%]{font-size:16px}.modal[_ngcontent-%COMP%]{height:auto}.share[_ngcontent-%COMP%]{height:100px;border:1px solid #e5e5e5}.fb[_ngcontent-%COMP%]{border-radius:2px;display:inline}.col-padding-bottom[_ngcontent-%COMP%]{padding-bottom:20px}"]}),t})();i("6n/F");let ek=(()=>{let t=class{constructor(t,e){this.el=t,this._zone=e,this.updateChange=new Sl(!0),this.chartInstance=new Sl}ngOnChanges(t){const e=t.update&&t.update.currentValue;(t.options||e)&&(this.wrappedUpdateOrCreateChart(),e&&this.updateChange.emit(!1))}wrappedUpdateOrCreateChart(){this.runOutsideAngular?this._zone.runOutsideAngular(()=>{this.updateOrCreateChart()}):this.updateOrCreateChart()}updateOrCreateChart(){this.chart&&this.chart.update?this.chart.update(this.options,!0,this.oneToOne||!1):(this.chart=this.Highcharts[this.constructorType||"chart"](this.el.nativeElement,this.options,this.callbackFunction||null),this.chartInstance.emit(this.chart))}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.chart=null)}};return t.\u0275fac=function(e){return new(e||t)(Co(Sa),Co(fh))},t.\u0275cmp=pe({type:t,selectors:[["highcharts-chart"]],inputs:{Highcharts:"Highcharts",constructorType:"constructorType",callbackFunction:"callbackFunction",oneToOne:"oneToOne",runOutsideAngular:"runOutsideAngular",options:"options",update:"update"},outputs:{updateChange:"updateChange",chartInstance:"chartInstance"},features:[Ie],decls:0,vars:0,template:function(t,e){},encapsulation:2}),t})(),ik=(()=>{let t=class{};return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)}}),t})();var sk=i("HuDP"),nk=i.n(sk),rk=i("5DRE"),ok=i.n(rk);function ak(t,e){if(1&t&&To(0,"highcharts-chart",2),2&t){const t=Bo();So("Highcharts",t.Highcharts)("constructorType","stockChart")("options",t.chartOptions)}}nk()(Qg),ok()(Qg);let lk=(()=>{class t{constructor(t,e){this.service=t,this.route=e,this.ohlc=[],this.volume=[],this.groupingUnits=[["week",[1]],["month",[1,2,3,4,6]]],this.updateFromInput=!1,this.Highcharts=Qg,this.chartOptions={rangeSelector:{selected:2},title:{},subtitle:{text:"With SMA and Volume by Price technical indicators"},yAxis:[{startOnTick:!1,endOnTick:!1,labels:{align:"right",x:-3},title:{text:"OHLC"},height:"60%",lineWidth:2,resize:{enabled:!0}},{labels:{align:"right",x:-3},title:{text:"Volume"},top:"65%",height:"35%",offset:0,lineWidth:2}],tooltip:{split:!0},series:[{type:"candlestick",zIndex:2},{type:"column",name:"Volume",id:"volume",yAxis:1},{type:"vbp",params:{volumeSeriesID:"volume"},dataLabels:{enabled:!1},zoneLines:{enabled:!1}},{type:"sma",zIndex:1,marker:{enabled:!1}}]}}ngOnInit(){this.ticker=this.route.snapshot.params.ticker,this.chartOptions.title.text=this.ticker.toUpperCase()+" Historical",this.chartOptions.series[0].name=this.ticker,this.chartOptions.series[0].id=this.ticker,this.chartOptions.series[2].linkedTo=this.ticker,this.chartOptions.series[3].linkedTo=this.ticker,this.chartOptions.series[0].data=this.iohlc,this.chartOptions.series[1].data=this.ivolume}}return t.\u0275fac=function(e){return new(e||t)(Co(Jg),Co(pf))},t.\u0275cmp=pe({type:t,selectors:[["app-daily-charts"]],inputs:{iohlc:"iohlc",ivolume:"ivolume"},decls:2,vars:1,consts:[[1,"container","w-100"],["style","width: 100%; height: 800px; display: block;",3,"Highcharts","constructorType","options",4,"ngIf"],[2,"width","100%","height","800px","display","block",3,"Highcharts","constructorType","options"]],template:function(t,e){1&t&&(Eo(0,"div",0),_o(1,ak,1,3,"highcharts-chart",1),Mo()),2&t&&(yn(1),So("ngIf",e.chartOptions.series[0].data&&e.chartOptions.series[1].data))},directives:[qc,ek],styles:[""]}),t})();function hk(t,e){1&t&&(Eo(0,"div",2),To(1,"mat-spinner",3),Mo())}function ck(t,e){if(1&t&&(Eo(0,"div",33),ha(1),xl(2,"uppercase"),Eo(3,"button",34),Eo(4,"span",35),ha(5,"\xd7"),Mo(),Mo(),Mo()),2&t){const t=Bo(4);yn(1),ua(" ",_l(2,1,t.detailsdata.ticker)," is added to Watchlist ")}}function uk(t,e){if(1&t&&(Eo(0,"div",33),ha(1),xl(2,"uppercase"),Eo(3,"button",34),Eo(4,"span",35),ha(5,"\xd7"),Mo(),Mo(),Mo()),2&t){const t=Bo(4);yn(1),ua(" ",_l(2,1,t.detailsdata.ticker)," bought successfully! ")}}function dk(t,e){if(1&t&&(Eo(0,"div",36),ha(1),xl(2,"uppercase"),Eo(3,"button",34),Eo(4,"span",35),ha(5,"\xd7"),Mo(),Mo(),Mo()),2&t){const t=Bo(4);yn(1),ua(" ",_l(2,1,t.detailsdata.ticker)," is removed from Watchlist ")}}function pk(t,e){if(1&t){const t=Do();Eo(0,"div",37),ha(1),xl(2,"uppercase"),Eo(3,"div",38),Eo(4,"img",39),Lo("click",(function(){return oi(t),Bo(4).selectStar()})),Mo(),Mo(),Mo()}if(2&t){const t=Bo(4);yn(1),ua(" ",_l(2,1,t.detailsdata.ticker)," ")}}function fk(t,e){if(1&t){const t=Do();Eo(0,"div",37),ha(1),xl(2,"uppercase"),Eo(3,"div",38),Eo(4,"img",40),Lo("click",(function(){return oi(t),Bo(4).selectStar()})),Mo(),Mo(),Mo()}if(2&t){const t=Bo(4);yn(1),ua(" ",_l(2,1,t.detailsdata.ticker)," ")}}function gk(t,e){if(1&t&&(Eo(0,"div",41),ha(1),xl(2,"number"),Mo()),2&t){const t=Bo(4);yn(1),ua(" ",wl(2,1,t.detailsdata.lastPrice,"1.2-2")," ")}}function mk(t,e){if(1&t&&(Eo(0,"div",42),ha(1),xl(2,"number"),Mo()),2&t){const t=Bo(4);yn(1),ua(" ",wl(2,1,t.detailsdata.lastPrice,"1.2-2")," ")}}function yk(t,e){if(1&t&&(Eo(0,"div",43),ha(1),xl(2,"number"),Mo()),2&t){const t=Bo(4);yn(1),ua(" ",wl(2,1,t.detailsdata.lastPrice,"1.2-2")," ")}}function vk(t,e){if(1&t&&(Eo(0,"div",44),Eo(1,"div",45),To(2,"img",46),Mo(),ha(3),xl(4,"number"),xl(5,"number"),Mo()),2&t){const t=Bo(4);yn(3),da(" ",wl(4,2,t.detailsdata.change,"1.2-2")," (",wl(5,5,t.detailsdata.changePercent,"1.2-2"),"%) ")}}function bk(t,e){if(1&t&&(Eo(0,"div",47),Eo(1,"div",45),To(2,"img",48),Mo(),ha(3),xl(4,"number"),xl(5,"number"),Mo()),2&t){const t=Bo(4);yn(3),da(" ",wl(4,2,t.detailsdata.change,"1.2-2")," (",wl(5,5,t.detailsdata.changePercent,"1.2-2"),"%) ")}}function xk(t,e){if(1&t&&(Eo(0,"div",49),ha(1),xl(2,"number"),xl(3,"number"),Mo()),2&t){const t=Bo(4);yn(1),da(" ",wl(2,2,t.detailsdata.change,"1.2-2")," (",wl(3,5,t.detailsdata.changePercent,"1.2-2"),"%) ")}}function _k(t,e){if(1&t){const t=Do();Eo(0,"div",50),Eo(1,"h4",51),ha(2),xl(3,"uppercase"),Mo(),Eo(4,"button",52),Lo("click",(function(){oi(t),Bo();const e=wo(31);return Bo(3).close(e)})),Eo(5,"span",35),ha(6,"\xd7"),Mo(),Mo(),Mo(),Eo(7,"div",53),Eo(8,"div",54),Eo(9,"div",10),Eo(10,"div",11),Eo(11,"div"),ha(12),xl(13,"number"),Mo(),Eo(14,"div",10),Eo(15,"div",55),ha(16,"Quantity"),Mo(),Eo(17,"div",56),Eo(18,"input",57),Lo("ngModelChange",(function(e){return oi(t),Bo(4).quantity=e})),Mo(),Mo(),Mo(),Mo(),Mo(),Mo(),Mo(),Eo(19,"div",58),Eo(20,"div"),ha(21),xl(22,"number"),Mo(),Eo(23,"button",59),Lo("click",(function(){oi(t),Bo();const e=wo(31);return Bo(3).buyShares(e)})),ha(24,"Buy"),Mo(),Mo()}if(2&t){const t=Bo(4);yn(2),ca(_l(3,5,t.detailsdata.ticker)),yn(10),ua("Current Price: ",wl(13,7,t.detailsdata.lastPrice,"1.2-2")," "),yn(6),So("ngModel",t.quantity),yn(3),ua(" Total: ",wl(22,10,t.detailsdata.lastPrice*t.quantity,"1.2-2")," "),yn(2),So("disabled",t.quantity<=0)}}function wk(t,e){1&t&&(Eo(0,"p",60),Eo(1,"span",61),ha(2," Market is Open"),Mo(),Mo())}function Ck(t,e){if(1&t&&(Eo(0,"p",60),Eo(1,"span",62),ha(2),xl(3,"date"),Mo(),Mo()),2&t){const t=Bo(4);yn(2),ua(" Market Closed on ",wl(3,1,t.detailsdata.lastTimestamp,"yyyy-MM-dd HH:mm:ss"),"")}}function kk(t,e){if(1&t&&(Eo(0,"td"),ha(1),xl(2,"number"),Mo()),2&t){const t=Bo(7);yn(1),ca(wl(2,1,t.summaryData.mid,"1.2-2"))}}function Sk(t,e){1&t&&(Eo(0,"td"),ha(1,"-"),Mo())}function Ak(t,e){if(1&t&&(Eo(0,"table",71),Eo(1,"tr"),Eo(2,"td"),ha(3,"Mid Price:"),Mo(),_o(4,kk,3,4,"td",4),_o(5,Sk,2,0,"td",4),Mo(),Eo(6,"tr"),Eo(7,"td"),ha(8,"Ask Price:"),Mo(),Eo(9,"td"),ha(10),xl(11,"number"),Mo(),Mo(),Eo(12,"tr"),Eo(13,"td"),ha(14,"Ask size:"),Mo(),Eo(15,"td"),ha(16),xl(17,"number"),Mo(),Mo(),Eo(18,"tr"),Eo(19,"td"),ha(20,"Bid Price:"),Mo(),Eo(21,"td"),ha(22),xl(23,"number"),Mo(),Mo(),Eo(24,"tr"),Eo(25,"td"),ha(26,"Bid Size:"),Mo(),Eo(27,"td"),ha(28),xl(29,"number"),Mo(),Mo(),Mo()),2&t){const t=Bo(6);yn(4),So("ngIf",t.summaryData.mid),yn(1),So("ngIf",!t.summaryData.mid),yn(5),ca(wl(11,6,t.summaryData.askPrice,"1.2-2")),yn(6),ca(wl(17,9,t.summaryData.askSize,"1.2-2")),yn(6),ca(wl(23,12,t.summaryData.bidPrice,"1.2-2")),yn(6),ca(wl(29,15,t.summaryData.bidSize,"1.2-2"))}}function Ek(t,e){if(1&t&&(Eo(0,"div",76),ha(1),Mo()),2&t){const t=Bo(6);yn(1),ua(" Start Date: ",t.summaryData.startDate," ")}}function Mk(t,e){if(1&t&&(Eo(0,"div",76),ha(1),Mo()),2&t){const t=Bo(6);yn(1),ua(" ",t.summaryData.description," ")}}function Tk(t,e){if(1&t&&(Eo(0,"div",68),Eo(1,"div",69),Eo(2,"div",70),Eo(3,"table",71),Eo(4,"tr"),Eo(5,"td"),ha(6,"High Price:"),Mo(),Eo(7,"td"),ha(8),xl(9,"number"),Mo(),Mo(),Eo(10,"tr"),Eo(11,"td"),ha(12,"Low Price:"),Mo(),Eo(13,"td"),ha(14),xl(15,"number"),Mo(),Mo(),Eo(16,"tr"),Eo(17,"td"),ha(18,"Open Price:"),Mo(),Eo(19,"td"),ha(20),xl(21,"number"),Mo(),Mo(),Eo(22,"tr"),Eo(23,"td"),ha(24,"Prev Close:"),Mo(),Eo(25,"td"),ha(26),xl(27,"number"),Mo(),Mo(),Eo(28,"tr"),Eo(29,"td"),ha(30,"Volume:"),Mo(),Eo(31,"td"),ha(32),xl(33,"number"),Mo(),Mo(),Mo(),Mo(),Eo(34,"div",70),_o(35,Ak,30,18,"table",72),Mo(),Mo(),Eo(36,"div",10),Eo(37,"div",73),Eo(38,"div",74),Eo(39,"p"),ha(40,"Company's Description"),Mo(),Mo(),_o(41,Ek,2,1,"div",75),_o(42,Mk,2,1,"div",75),Mo(),Mo(),Mo()),2&t){const t=Bo(5);yn(8),ca(wl(9,8,t.summaryData.high,"1.2-2")),yn(6),ca(wl(15,11,t.summaryData.low,"1.2-2")),yn(6),ca(wl(21,14,t.summaryData.open,"1.2-2")),yn(6),ca(wl(27,17,t.summaryData.prev,"1.2-2")),yn(6),ca(_l(33,20,t.summaryData.volume)),yn(3),So("ngIf",t.summaryData&&t.market),yn(6),So("ngIf",t.summaryData),yn(1),So("ngIf",t.summaryData)}}function Dk(t,e){if(1&t&&To(0,"highcharts-chart",77),2&t){const t=Bo(5);So("Highcharts",t.Highcharts)("constructorType","stockChart")("options",t.chartOptions)}}function Pk(t,e){if(1&t&&(Eo(0,"div",63),Eo(1,"div",10),_o(2,Tk,43,22,"div",64),Eo(3,"div",65),_o(4,Dk,1,3,"highcharts-chart",66),Mo(),Mo(),To(5,"div",67),Mo()),2&t){const t=Bo(4);yn(2),So("ngIf",t.summaryData),yn(2),So("ngIf",t.chartOptions.series[0].data)}}function Ok(t,e){if(1&t&&To(0,"app-daily-charts",78),2&t){const t=Bo(4);So("iohlc",t.ohlc)("ivolume",t.volume)}}function Lk(t,e){if(1&t){const t=Do();Eo(0,"div",7),_o(1,ck,6,3,"div",8),_o(2,uk,6,3,"div",8),_o(3,dk,6,3,"div",9),Eo(4,"div",10),Eo(5,"div",11),Eo(6,"div",10),Eo(7,"div",12),_o(8,pk,5,3,"div",13),_o(9,fk,5,3,"div",13),Mo(),Eo(10,"div",14),_o(11,gk,3,4,"div",15),_o(12,mk,3,4,"div",16),_o(13,yk,3,4,"div",17),Mo(),Mo(),Eo(14,"div",10),Eo(15,"div",12),Eo(16,"div",18),ha(17),xl(18,"titlecase"),Mo(),Mo(),Eo(19,"div",14),_o(20,vk,6,8,"div",19),_o(21,bk,6,8,"div",20),_o(22,xk,4,8,"div",21),Mo(),Mo(),Eo(23,"div",10),Eo(24,"div",12),Eo(25,"div",22),ha(26),Mo(),Eo(27,"div",23),Eo(28,"button",24),Lo("click",(function(){oi(t);const e=wo(31);return Bo(3).open(e)})),ha(29,"Buy"),Mo(),Mo(),_o(30,_k,25,13,"ng-template",null,25,Xl),Mo(),Eo(32,"div",14),Eo(33,"div",22),ha(34),xl(35,"date"),Mo(),Mo(),Mo(),Eo(36,"div",26),_o(37,wk,3,0,"p",27),_o(38,Ck,4,4,"p",27),Mo(),To(39,"br"),Eo(40,"mat-tab-group",28),Eo(41,"mat-tab",29),_o(42,Pk,6,2,"ng-template",30),Mo(),Eo(43,"mat-tab",31),To(44,"app-top-news"),Mo(),Eo(45,"mat-tab",32),_o(46,Ok,1,2,"ng-template",30),Mo(),Mo(),Mo(),Mo(),Mo()}if(2&t){const t=Bo(3);yn(1),So("ngIf",t.watchlist&&t.alertStatus),yn(1),So("ngIf",t.portfolio),yn(1),So("ngIf",!t.watchlist&&t.alertStatus),yn(5),So("ngIf",t.watchlist),yn(1),So("ngIf",!t.watchlist),yn(2),So("ngIf",1==t.color),yn(1),So("ngIf",2==t.color),yn(1),So("ngIf",0==t.color),yn(4),ua(" ",_l(18,16,t.detailsdata.companyName)," "),yn(3),So("ngIf",1==t.color),yn(1),So("ngIf",2==t.color),yn(1),So("ngIf",0==t.color),yn(4),ua(" ",t.detailsdata.exchangeCode," "),yn(8),ua(" ",wl(35,18,t.detailsdata.currentTimestamp,"yyyy-MM-dd HH:mm:ss")," "),yn(3),So("ngIf",t.market),yn(1),So("ngIf",!t.market)}}function Ik(t,e){if(1&t&&(Eo(0,"div"),_o(1,Lk,47,21,"div",6),Mo()),2&t){const t=Bo(2);yn(1),So("ngIf",t.detailsdata)}}function Rk(t,e){1&t&&(Eo(0,"div",79),Eo(1,"div",80),ha(2," No results found. Please enter valid Ticker "),Mo(),Mo())}function Bk(t,e){if(1&t&&(_o(0,Ik,2,1,"div",4),_o(1,Rk,3,0,"div",5)),2&t){const t=Bo();So("ngIf",!t.setAlert),yn(1),So("ngIf",t.setAlert)}}let Fk=(()=>{class t{constructor(t,e,i,s,n){this.route=t,this.basicDetailsService=e,this.modalService=i,this.watchlistService=s,this.portfolioService=n,this.market=!1,this.portfolio=!1,this.portfolioData={},this.watchlist=!1,this.setAlert=!1,this.alertStatus=!1,this.isWaiting=!0,this.quantity=0,this.ohlc=[],this.volume=[],this.Highcharts=Qg,this.chartOptions={title:{style:{color:"gray"}},rangeSelector:{enabled:!1},series:[{type:"line",tooltip:{valueDecimals:2}}]}}selectStar(){this.alertStatus=!0,setTimeout(()=>{this.alertStatus=!1},5e3),this.watchlist?(this.watchlist=!1,this.watchlistService.removeWatchlist(this.ticker)):(this.watchlist=!0,this.watchlistService.addWatchlist(this.detailsdata))}ngOnInit(){this.route.paramMap.subscribe(t=>{this.ticker=t.get("ticker")}),""==this.ticker&&(this.setAlert=!0),this.watchlistService.contains(this.ticker)&&(this.watchlist=!0),this.basicDetailsService.getDetailsData(this.ticker).subscribe(t=>{this.detailsdata=t,0==Object.keys(t).length?(this.setAlert=!0,this.isWaiting=!1):this.setAlert=!1,this.color=+t.change>0?1:+t.change<0?2:0,this.market="Close"!=t.marketStatus,this.basicDetailsService.getSummaryData(this.ticker).subscribe(t=>{this.summaryData=t,this.chartOptions.series[0].data=t.charts,this.chartOptions.title.text=this.ticker.toUpperCase(),this.chartOptions.series[0].name=this.ticker,this.chartOptions.series[0].color=0==this.color?"black":1==this.color?"green":"red",this.isWaiting=!1}),!0===this.market&&(this.myInterval=setInterval(()=>{this.basicDetailsService.getDetailsData(this.ticker).subscribe(t=>{this.detailsdata=t,this.setAlert=0==Object.keys(t).length,this.color=+t.change>0?1:+t.change<0?2:0}),this.basicDetailsService.getSummaryData(this.ticker).subscribe(t=>{this.summaryData=t,this.chartOptions.series[0].data=t.charts,this.chartOptions.title.text=this.ticker.toUpperCase(),this.chartOptions.series[0].color=t.color,this.chartOptions.series[0].name=this.ticker,this.isWaiting=!1})},15e3))}),this.basicDetailsService.getHistoricalData(this.ticker).subscribe(t=>{t.forEach(t=>{this.ohlc.push([t[0],t[1],t[2],t[3],t[4]]),this.volume.push([t[0],t[5]])})})}buyShares(t){this.portfolio=!0,localStorage[this.detailsdata.ticker]?(this.total=this.quantity*this.detailsdata.lastPrice,this.portfolioService.buyShares(this.detailsdata.ticker,this.quantity,this.total)):(this.portfolioData.ticker=this.detailsdata.ticker,this.portfolioData.companyName=this.detailsdata.companyName,this.portfolioData.quantity=this.quantity,this.portfolioData.totalCost=this.quantity*this.detailsdata.lastPrice,this.portfolioData.lastPrice=this.detailsdata.lastPrice,this.portfolioService.addPortfolio(this.portfolioData)),this.quantity=0,this.close(t),setTimeout(()=>{this.portfolio=!1},5e3)}open(t){this.modalService.open(t)}close(t){this.modalService.dismissAll(t)}ngOnDestroy(){clearInterval(this.myInterval)}}return t.\u0275fac=function(e){return new(e||t)(Co(pf),Co(Jg),Co(dv),Co(Ev),Co(Mv))},t.\u0275cmp=pe({type:t,selectors:[["app-details"]],decls:3,vars:2,consts:[["style","padding-top: 20px; left:50%; position:fixed;",4,"ngIf","ngIfElse"],["loaded",""],[2,"padding-top","20px","left","50%","position","fixed"],["diameter","35"],[4,"ngIf"],["class","container error-ticker",4,"ngIf"],["class","container",4,"ngIf"],[1,"container"],["class","alert alert-success","role","alert","style","text-align: center",4,"ngIf"],["class","alert alert-danger","role","alert","style","text-align: center",4,"ngIf"],[1,"row"],[1,"col"],["align","left",1,"col","col-sm-6"],["id","top",4,"ngIf"],["align","right",1,"col","col-sm-6"],["style","color:green;","id","top",4,"ngIf"],["style","color:#ff0000;","id","top",4,"ngIf"],["style","color:black;","id","top",4,"ngIf"],["id","middle",1,"company-color"],["style","color:green;","id","middle",4,"ngIf"],["style","color:red;","id","middle",4,"ngIf"],["style","color:black;","id","middle",4,"ngIf"],["id","low"],[2,"display","block"],["type","button",1,"btn","btn-success",3,"click"],["buymodel",""],[1,"row","top-padding"],["style","text-align: center;margin:auto",4,"ngIf"],["animationDuration","0ms"],["label","Summary"],["matTabContent",""],["label","Top News"],["label","Charts"],["role","alert",1,"alert","alert-success",2,"text-align","center"],["type","button","data-dismiss","alert","aria-label","Close",1,"close"],["aria-hidden","true"],["role","alert",1,"alert","alert-danger",2,"text-align","center"],["id","top"],[1,"star"],["src","assets/startfill.svg","width","20","height","32",1,"star-padding",3,"click"],["src","assets/star.svg","width","20","height","32",1,"star-padding",3,"click"],["id","top",2,"color","green"],["id","top",2,"color","#ff0000"],["id","top",2,"color","black"],["id","middle",2,"color","green"],[2,"display","inline"],["src","assets/caretup.svg","width","18","height","38"],["id","middle",2,"color","red"],["src","assets/caretdown.svg","width","18","height","38"],["id","middle",2,"color","black"],[1,"modal-header"],[1,"modal-title"],["type","button",1,"close",3,"click"],[1,"modal-body"],[1,"container",2,"padding-top","0px"],[1,"col-sm-12","col-md-2"],[1,"col-sm-12","col-md-5","pl-md-0","w-100"],["type","number","min","0","step","1","onclick","this.select()","oninput","validity.valid|| (value='');",1,"enter",3,"ngModel","ngModelChange"],[1,"modal-footer","justify-content-between"],["type","button",1,"btn","btn-success","buystock",3,"disabled","click"],[2,"text-align","center","margin","auto"],[2,"color","green","text-align","center","background-color","#D7EDDA"],[2,"text-align","center","background-color","#F5D7D9","color","darkred"],[1,"container",2,"padding-top","10px"],["class","col-sm-12 col-md-12 col-lg-6",4,"ngIf"],[1,"col-sm-12","col-md-12","col-lg-6","charts-space"],["style","width: 100%; height: 400px; display: block;",3,"Highcharts","constructorType","options",4,"ngIf"],[2,"height","40px"],[1,"col-sm-12","col-md-12","col-lg-6"],[1,"row","top-buffer-next"],[1,"col","col-sm-6","col-md-6"],["align","center"],["align","center",4,"ngIf"],[1,"col","col-sm-12"],[1,"top-buffer-summary"],["class","top-buffer-next",4,"ngIf"],[1,"top-buffer-next"],[2,"width","100%","height","400px","display","block",3,"Highcharts","constructorType","options"],[3,"iohlc","ivolume"],[1,"container","error-ticker"],["role","alert",1,"alert","alert-danger"]],template:function(t,e){if(1&t&&(_o(0,hk,2,0,"div",0),_o(1,Bk,2,2,"ng-template",null,1,Xl)),2&t){const t=wo(2);So("ngIf",e.isWaiting)("ngIfElse",t)}},directives:[qc,Ww,WC,PC,AC,tk,Am,om,dm,cy,ek,lk],pipes:[iu,nu,su,ru],styles:[".container[_ngcontent-%COMP%]{padding-top:20px}#top[_ngcontent-%COMP%]{font-size:35px;font-weight:700;line-height:34px}#middle[_ngcontent-%COMP%]{color:grey;font-size:28px}#low[_ngcontent-%COMP%], #middle[_ngcontent-%COMP%]{line-height:28px}.error-ticker[_ngcontent-%COMP%]{padding-top:40px;margin:auto;text-align:center}.top-buffer[_ngcontent-%COMP%]{padding-top:30px} .mat-tab-label, .mat-tab-link{min-width:33.33%!important}.close[_ngcontent-%COMP%]{outline:none}.buystock[_ngcontent-%COMP%]{align:right}input[type=number][_ngcontent-%COMP%]{box-shadow:0 0 5px #51cbee;padding:3px 0 3px 3px;margin:5px 1px 3px 0;border:1px solid #51cbee;outline:none}.top-buffer-summary[_ngcontent-%COMP%]{padding-top:40px;align-self:center;font-size:large;font-weight:700;margin-left:25%}.top-buffer-next[_ngcontent-%COMP%]{margin-top:20px}.charts-space[_ngcontent-%COMP%]{padding-top:10px;width:100%}.star[_ngcontent-%COMP%]{margin-top:-10px;display:inline}.top-padding[_ngcontent-%COMP%]{margin-top:10px}.star-padding[_ngcontent-%COMP%]{padding-bottom:10px}.enter[_ngcontent-%COMP%]{width:100%}"]}),t})();function Nk(t,e){1&t&&(Eo(0,"div",5),To(1,"mat-spinner",6),Mo())}function jk(t,e){1&t&&(Eo(0,"div"),Eo(1,"div",7),ha(2," Currently you don't have any stock. "),Mo(),Mo())}function zk(t,e){if(1&t&&(Eo(0,"div"),Eo(1,"div"),To(2,"img",26),Eo(3,"span",27),ha(4),xl(5,"number"),Mo(),Mo(),Mo()),2&t){const t=Bo().$implicit;yn(4),ca(wl(5,1,t.lastPrice-t.totalCost/t.quantity,"1.2-2"))}}function Hk(t,e){if(1&t&&(Eo(0,"div"),Eo(1,"div"),To(2,"img",28),Eo(3,"span",29),ha(4),xl(5,"number"),Mo(),Mo(),Mo()),2&t){const t=Bo().$implicit;yn(4),ca(wl(5,1,t.totalCost/t.quantity-t.lastPrice,"1.2-2"))}}function Wk(t,e){if(1&t&&(Eo(0,"div"),Eo(1,"div"),Eo(2,"span",30),ha(3),xl(4,"number"),Mo(),Mo(),Mo()),2&t){const t=Bo().$implicit;yn(3),ca(wl(4,1,t.lastPrice-t.totalCost/t.quantity,"1.2-2"))}}function Vk(t,e){if(1&t&&(Eo(0,"div"),Eo(1,"div",27),ha(2),xl(3,"number"),Mo(),Mo()),2&t){const t=Bo().$implicit;yn(2),ca(wl(3,1,t.lastPrice,"1.2-2"))}}function Gk(t,e){if(1&t&&(Eo(0,"div"),Eo(1,"div",29),ha(2),xl(3,"number"),Mo(),Mo()),2&t){const t=Bo().$implicit;yn(2),ca(wl(3,1,t.lastPrice,"1.2-2"))}}function Uk(t,e){if(1&t&&(Eo(0,"div"),Eo(1,"div",30),ha(2),xl(3,"number"),Mo(),Mo()),2&t){const t=Bo().$implicit;yn(2),ca(wl(3,1,t.lastPrice,"1.2-2"))}}function Xk(t,e){if(1&t&&(Eo(0,"div"),Eo(1,"div",27),ha(2),xl(3,"number"),Mo(),Mo()),2&t){const t=Bo().$implicit;yn(2),ca(wl(3,1,t.lastPrice*t.quantity,"1.2-2"))}}function Yk(t,e){if(1&t&&(Eo(0,"div"),Eo(1,"div",29),ha(2),xl(3,"number"),Mo(),Mo()),2&t){const t=Bo().$implicit;yn(2),ca(wl(3,1,t.lastPrice*t.quantity,"1.2-2"))}}function qk(t,e){if(1&t&&(Eo(0,"div"),Eo(1,"div",30),ha(2),xl(3,"number"),Mo(),Mo()),2&t){const t=Bo().$implicit;yn(2),ca(wl(3,1,t.lastPrice*t.quantity,"1.2-2"))}}function $k(t,e){if(1&t){const t=Do();Eo(0,"div",31),Eo(1,"h4",32),ha(2),xl(3,"uppercase"),Mo(),Eo(4,"button",33),Lo("click",(function(){oi(t),Bo();const e=wo(65);return Bo(2).closeBuy(e)})),Eo(5,"span",34),ha(6,"\xd7"),Mo(),Mo(),Mo(),Eo(7,"div",35),Eo(8,"div",36),Eo(9,"div",8),Eo(10,"div",37),Eo(11,"div"),ha(12),xl(13,"number"),Mo(),Eo(14,"div",8),Eo(15,"div",38),ha(16,"Quantity"),Mo(),Eo(17,"div",39),Eo(18,"input",40),Lo("ngModelChange",(function(e){return oi(t),Bo(3).quantity=e})),Mo(),Mo(),Mo(),Mo(),Mo(),Mo(),Mo(),Eo(19,"div",41),Eo(20,"div"),ha(21),xl(22,"number"),Mo(),Eo(23,"button",42),Lo("click",(function(){oi(t);const e=Bo().$implicit,i=wo(65),s=Bo(2);return s.buy(e.ticker,i,e.lastPrice*s.quantity)})),ha(24,"Buy"),Mo(),Mo()}if(2&t){const t=Bo().$implicit,e=Bo(2);yn(2),ca(_l(3,5,t.ticker)),yn(10),ua("Current Price: ",wl(13,7,t.lastPrice,"1.2-2")," "),yn(6),So("ngModel",e.quantity),yn(3),ua(" Total: ",wl(22,10,t.lastPrice*e.quantity,"1.2-2")," "),yn(2),So("disabled",e.quantity<=0)}}function Kk(t,e){if(1&t){const t=Do();Eo(0,"div",31),Eo(1,"h4",32),ha(2),xl(3,"uppercase"),Mo(),Eo(4,"button",33),Lo("click",(function(){oi(t),Bo();const e=wo(69);return Bo(2).closeSell(e)})),Eo(5,"span",34),ha(6,"\xd7"),Mo(),Mo(),Mo(),Eo(7,"div",35),Eo(8,"div",36),Eo(9,"div",8),Eo(10,"div",37),Eo(11,"div"),ha(12),xl(13,"number"),Mo(),Eo(14,"div",8),Eo(15,"div",38),ha(16,"Quantity"),Mo(),Eo(17,"div",43),Eo(18,"input",40),Lo("ngModelChange",(function(e){return oi(t),Bo(3).quantity=e})),Mo(),Mo(),Mo(),Mo(),Mo(),Mo(),Mo(),Eo(19,"div",41),Eo(20,"div"),ha(21),xl(22,"number"),Mo(),Eo(23,"button",42),Lo("click",(function(){oi(t);const e=Bo().$implicit,i=wo(69),s=Bo(2);return s.sell(e.ticker,i,e.lastPrice*s.quantity)})),ha(24,"Sell"),Mo(),Mo()}if(2&t){const t=Bo().$implicit,e=Bo(2);yn(2),ca(_l(3,5,t.ticker)),yn(10),ua("Current Price: ",wl(13,7,t.lastPrice,"1.2-2")," "),yn(6),So("ngModel",e.quantity),yn(3),ua(" Total: ",wl(22,10,t.lastPrice*e.quantity,"1.2-2")," "),yn(2),So("disabled",e.quantity<=0||e.quantity>t.quantity)}}function Zk(t,e){if(1&t){const t=Do();Eo(0,"div",10),Eo(1,"div",11),Eo(2,"div",12),Lo("click",(function(){oi(t);const i=e.$implicit;return Bo(2).gotoDetails(i.ticker)})),Eo(3,"div",13),ha(4),xl(5,"uppercase"),Eo(6,"span",14),ha(7),xl(8,"titlecase"),Mo(),Mo(),Mo(),Eo(9,"div",15),Eo(10,"div",8),Eo(11,"div",16),Eo(12,"div",8),Eo(13,"div",17),Eo(14,"div"),ha(15,"Quantity:"),Mo(),Mo(),Eo(16,"div",18),Eo(17,"div"),ha(18),xl(19,"number"),Mo(),Mo(),Mo(),Eo(20,"div",8),Eo(21,"div",17),Eo(22,"div"),ha(23,"Avg. Cost / Share:"),Mo(),Mo(),Eo(24,"div",18),Eo(25,"div"),ha(26),xl(27,"number"),Mo(),Mo(),Mo(),Eo(28,"div",8),Eo(29,"div",17),Eo(30,"div"),ha(31,"Total Cost:"),Mo(),Mo(),Eo(32,"div",18),Eo(33,"div"),ha(34),xl(35,"number"),Mo(),Mo(),Mo(),Mo(),Eo(36,"div",19),Eo(37,"div",8),Eo(38,"div",20),Eo(39,"div"),ha(40,"Change:"),Mo(),Mo(),Eo(41,"div",18),_o(42,zk,6,4,"div",3),_o(43,Hk,6,4,"div",3),_o(44,Wk,5,4,"div",3),Mo(),Mo(),Eo(45,"div",8),Eo(46,"div",20),Eo(47,"div"),ha(48,"Current Price:"),Mo(),Mo(),Eo(49,"div",18),_o(50,Vk,4,4,"div",3),_o(51,Gk,4,4,"div",3),_o(52,Uk,4,4,"div",3),Mo(),Mo(),Eo(53,"div",8),Eo(54,"div",20),Eo(55,"div"),ha(56,"Market Value:"),Mo(),Mo(),Eo(57,"div",18),_o(58,Xk,4,4,"div",3),_o(59,Yk,4,4,"div",3),_o(60,qk,4,4,"div",3),Mo(),Mo(),Mo(),Mo(),Mo(),Mo(),Eo(61,"div",21),Eo(62,"button",22),Lo("click",(function(){oi(t);const e=wo(65);return Bo(2).openBuy(e)})),ha(63,"Buy"),Mo(),_o(64,$k,25,13,"ng-template",null,23,Xl),Eo(66,"button",24),Lo("click",(function(){oi(t);const e=wo(69);return Bo(2).openSell(e)})),ha(67,"Sell"),Mo(),_o(68,Kk,25,13,"ng-template",null,25,Xl),Mo(),Mo()}if(2&t){const t=e.$implicit;yn(4),ua("",_l(5,14,t.ticker)," "),yn(3),ca(_l(8,16,t.companyName)),yn(11),ca(_l(19,18,t.quantity)),yn(8),ca(wl(27,20,t.totalCost/t.quantity,"1.2-2")),yn(8),ca(wl(35,23,t.totalCost,"1.2-2")),yn(8),So("ngIf",t.lastPrice-+(t.totalCost/t.quantity).toFixed(2)<0),yn(1),So("ngIf",t.lastPrice-+(t.totalCost/t.quantity).toFixed(2)>0),yn(1),So("ngIf",t.lastPrice-+(t.totalCost/t.quantity).toFixed(2)==0),yn(6),So("ngIf",t.lastPrice-+(t.totalCost/t.quantity).toFixed(2)<0),yn(1),So("ngIf",t.lastPrice-+(t.totalCost/t.quantity).toFixed(2)>0),yn(1),So("ngIf",t.lastPrice-+(t.totalCost/t.quantity).toFixed(2)==0),yn(6),So("ngIf",t.lastPrice-+(t.totalCost/t.quantity).toFixed(2)<0),yn(1),So("ngIf",t.lastPrice-+(t.totalCost/t.quantity).toFixed(2)>0),yn(1),So("ngIf",t.lastPrice-+(t.totalCost/t.quantity).toFixed(2)==0)}}function Qk(t,e){if(1&t&&(Eo(0,"div"),Eo(1,"div",8),_o(2,Zk,70,26,"div",9),Mo(),Mo()),2&t){const t=Bo();yn(2),So("ngForOf",t.data)}}let Jk=(()=>{class t{constructor(t,e,i,s){this.portfolioService=t,this.basicService=e,this.modalService=i,this.router=s,this.isLoading=!0,this.quantity=0,this.change=0,this.marketValue=0,this.operation=!1}ngOnInit(){this.ans=this.portfolioService.getPortfolioTickers(),""===this.ans?(this.data=this.portfolioService.getPortfolioData(),this.isLoading=!1):this.basicService.getPortfolioUpdatedData(this.ans).subscribe(t=>{this.updatedData=t,this.portfolioService.updatePortfolioData(this.updatedData),this.data=this.portfolioService.getPortfolioData(),this.isLoading=!1})}buy(t,e,i){this.portfolioService.buyShares(t,this.quantity,i),this.ngOnInit(),this.closeBuy(e)}sell(t,e,i){this.portfolioService.sellShares(t,this.quantity,i),this.ngOnInit(),this.closeSell(e)}openBuy(t){this.modalService.open(t)}closeBuy(t){this.quantity=0,this.modalService.dismissAll(t)}openSell(t){this.modalService.open(t)}closeSell(t){this.quantity=0,this.modalService.dismissAll(t)}gotoDetails(t){this.router.navigate(["../details",t])}}return t.\u0275fac=function(e){return new(e||t)(Co(Mv),Co(Jg),Co(dv),Co(Mg))},t.\u0275cmp=pe({type:t,selectors:[["app-portfolio"]],decls:7,vars:3,consts:[[1,"container",2,"padding-top","40px"],[1,"header"],["style","left:50%; position:fixed;",4,"ngIf"],[4,"ngIf"],[2,"height","40px"],[2,"left","50%","position","fixed"],["diameter","35"],["role","alert",1,"alert","alert-warning","myalert"],[1,"row"],["class","col-sm-12 col-md-12",4,"ngFor","ngForOf"],[1,"col-sm-12","col-md-12"],[1,"card","top-buffer"],[1,"card-header",2,"cursor","pointer",3,"click"],[1,"ticker"],[1,"name"],[1,"card-body","body-font"],[1,"col-sm-12","col-md-12","col-lg-6"],[1,"col","col-sm-6"],["align","right",1,"col","col-sm-6"],["align","right",1,"col-sm-12","col-md-12","col-lg-6"],["align","left",1,"col","col-sm-6"],[1,"card-footer","buttons"],["type","button",1,"btn","btn-primary",2,"margin-right","10px",3,"click"],["buymodel",""],["type","button",1,"btn","btn-danger",3,"click"],["sellmodel",""],["src","assets/caretdown.svg","width","15","height","15"],[2,"color","red"],["src","assets/caretup.svg","width","15","height","15"],[2,"color","green"],[2,"color","black"],[1,"modal-header"],[1,"modal-title"],["type","button",1,"close",3,"click"],["aria-hidden","true"],[1,"modal-body"],[1,"container",2,"padding-top","0px"],[1,"col"],[1,"col-sm-12","col-md-2"],[1,"col-sm-12","col-md-5","pl-md-0","w-100"],["type","number","min","0","onclick","this.select()","oninput","validity.valid|| (value='');",1,"enter",3,"ngModel","ngModelChange"],[1,"modal-footer","justify-content-between"],["type","button",1,"btn","btn-success","buystock",3,"disabled","click"],[1,"col-sm-12","col-md-2","pl-md-0","w-100"]],template:function(t,e){1&t&&(Eo(0,"div",0),Eo(1,"p",1),ha(2,"My Portfolio"),Mo(),_o(3,Nk,2,0,"div",2),_o(4,jk,3,0,"div",3),_o(5,Qk,3,1,"div",3),To(6,"div",4),Mo()),2&t&&(yn(3),So("ngIf",e.isLoading),yn(1),So("ngIf",!e.isLoading&&0==e.data.length),yn(1),So("ngIf",e.data&&!e.isLoading))},directives:[qc,Ww,Xc,Am,om,dm,cy],pipes:[su,iu,ru],styles:[".header[_ngcontent-%COMP%]{font-weight:500;font-size:32px;padding-bottom:15px}.myalert[_ngcontent-%COMP%]{height:40px;text-align:center;margin-top:40px}.top-buffer[_ngcontent-%COMP%]{margin-top:20px}.gray[_ngcontent-%COMP%]{color:grey}.buttons[_ngcontent-%COMP%]{text-align:right}.ticker[_ngcontent-%COMP%]{font-weight:500;font-size:28px}.name[_ngcontent-%COMP%]{font-size:18px;color:grey}.close[_ngcontent-%COMP%]{outline:none}.body-font[_ngcontent-%COMP%]{font-size:18px}input[type=number][_ngcontent-%COMP%]{box-shadow:0 0 5px #51cbee;padding:3px 0 3px 3px;margin:5px 1px 3px 0;border:1px solid #51cbee;outline:none}.enter[_ngcontent-%COMP%]{width:100%}"]}),t})(),tS=(()=>{class t{constructor(t){this.http=t,this.autocompleteUrl="https://cloudbackend.wl.r.appspot.com/autocomplete"}getData(t){return t.trim()?(this.mydata=this.http.get(`${this.autocompleteUrl}/${t}`),this.mydata):Nu([])}}return t.\u0275fac=function(e){return new(e||t)(qt(rd))},t.\u0275prov=ht({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const eS=Bv({passive:!0});let iS=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return Td;const e=Yv(t),i=this._monitoredElements.get(e);if(i)return i.subject;const s=new C,n="cdk-text-field-autofilled",r=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(n)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(n)&&(e.classList.remove(n),this._ngZone.run(()=>s.next({target:t.target,isAutofilled:!1}))):(e.classList.add(n),this._ngZone.run(()=>s.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",r,eS),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:s,unlisten:()=>{e.removeEventListener("animationstart",r,eS)}}),s}stopMonitoring(t){const e=Yv(t),i=this._monitoredElements.get(e);i&&(i.unlisten(),i.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(qt(Dv),qt(fh))},t.\u0275prov=ht({factory:function(){return new t(qt(Dv),qt(fh))},token:t,providedIn:"root"}),t})(),sS=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[Pv]]}),t})(),nS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t}),t})();const rS=new Ft("MatFormField");let oS=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[ou,nw,Zv],nw]}),t})();const aS=new Ft("MAT_INPUT_VALUE_ACCESSOR"),lS=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let hS=0;class cS{constructor(t,e,i,s){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=i,this.ngControl=s}}const uS=lw(cS);let dS=(()=>{class t extends uS{constructor(t,e,i,s,n,r,o,a,l,h){super(r,s,n,i),this._elementRef=t,this._platform=e,this.ngControl=i,this._autofillMonitor=a,this._formField=h,this._uid="mat-input-"+hS++,this.focused=!1,this.stateChanges=new C,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>Lv().has(t));const c=this._elementRef.nativeElement,u=c.nodeName.toLowerCase();this._inputValueAccessor=o||c,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&l.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{let e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===u,this._isTextarea="textarea"===u,this._isNativeSelect&&(this.controlType=c.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=Vv(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=Vv(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&Lv().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=Vv(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const i=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(i!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=i,i?t.setAttribute("placeholder",i):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){lS.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}}return t.\u0275fac=function(e){return new(e||t)(Co(Sa),Co(Dv),Co(cm,10),Co(ay,8),Co(my,8),Co(hw),Co(aS,10),Co(iS),Co(fh),Co(rS,8))},t.\u0275dir=be({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&Lo("focus",(function(){return e._focusChanged(!0)}))("blur",(function(){return e._focusChanged(!1)}))("input",(function(){return e._onInput()})),2&t&&(pa("disabled",e.disabled)("required",e.required),vo("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),Zo("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[_a([{provide:nS,useExisting:t}]),no,Ie]}),t})(),pS=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[hw],imports:[[sS,oS],sS,oS]}),t})();class fS{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Xv(-this._previousScrollPosition.left),t.style.top=Xv(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,i=this._document.body.style,s=e.scrollBehavior||"",n=i.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=i.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=s,i.scrollBehavior=n}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class gS{constructor(t,e,i,s){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=i,this._config=s,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class mS{enable(){}disable(){}attach(){}}function yS(t,e){return e.some(e=>t.bottome.bottom||t.righte.right)}function vS(t,e){return e.some(e=>t.tope.bottom||t.lefte.right)}class bS{constructor(t,e,i,s){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this._config=s,this._scrollSubscription=null}attach(t){this._overlayRef=t}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:e,height:i}=this._viewportRuler.getViewportSize();yS(t,[{width:e,height:i,bottom:i,right:e,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let xS=(()=>{class t{constructor(t,e,i,s){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=i,this.noop=()=>new mS,this.close=t=>new gS(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new fS(this._viewportRuler,this._document),this.reposition=t=>new bS(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=s}}return t.\u0275fac=function(e){return new(e||t)(qt(sC),qt(nC),qt(fh),qt(Uh))},t.\u0275prov=ht({factory:function(){return new t(qt(sC),qt(nC),qt(fh),qt(Uh))},token:t,providedIn:"root"}),t})();class _S{constructor(t){if(this.scrollStrategy=new mS,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const i of e)void 0!==t[i]&&(this[i]=t[i])}}}class wS{constructor(t,e,i,s,n){this.offsetX=i,this.offsetY=s,this.panelClass=n,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class CS{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let kS=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(qt(Uh))},t.\u0275prov=ht({factory:function(){return new t(qt(Uh))},token:t,providedIn:"root"}),t})(),SS=(()=>{class t extends kS{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let i=e.length-1;i>-1;i--)if(e[i]._keydownEvents.observers.length>0){e[i]._keydownEvents.next(t);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(qt(Uh))},t.\u0275prov=ht({factory:function(){return new t(qt(Uh))},token:t,providedIn:"root"}),t})(),AS=(()=>{class t extends kS{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,i=this._attachedOverlays.slice();for(let s=i.length-1;s>-1;s--){const n=i[s];if(!(n._outsidePointerEvents.observers.length<1)&&n.hasAttached()){if(n.overlayElement.contains(e))break;n._outsidePointerEvents.next(t)}}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(qt(Uh),qt(Dv))},t.\u0275prov=ht({factory:function(){return new t(qt(Uh),qt(Dv))},token:t,providedIn:"root"}),t})();const ES=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let MS=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t=this._platform?this._platform.isBrowser:"undefined"!=typeof window,e="cdk-overlay-container";if(t||ES){const t=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let e=0;ethis._backdropClick.next(t),this._keydownEvents=new C,this._outsidePointerEvents=new C,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Yd(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&this._location&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher&&this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher&&this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher&&this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=Xv(this._config.width),t.height=Xv(this._config.height),t.minWidth=Xv(this._config.minWidth),t.minHeight=Xv(this._config.minHeight),t.maxWidth=Xv(this._config.maxWidth),t.maxHeight=Xv(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){const t="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(t,e,i){const s=t.classList;Uv(e).forEach(t=>{t&&(i?s.add(t):s.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Oy(U(this._attachments,this._detachments))).subscribe(()=>{this._pane&&this._host&&0!==this._pane.children.length||(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const DS="cdk-overlay-connected-position-bounding-box",PS=/([A-Za-z%]+)$/;class OS{constructor(t,e,i,s,n){this._viewportRuler=e,this._document=i,this._platform=s,this._overlayContainer=n,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new C,this._resizeSubscription=u.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(DS),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect();const t=this._originRect,e=this._overlayRect,i=this._viewportRect,s=[];let n;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),l=this._getOverlayFit(a,e,i,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(l,a,i)?s.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!n||n.overlayFit.visibleAreae&&(e=s,t=i)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(n.position,n.originPoint);this._applyPosition(n.position,n.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&LS(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(DS),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let i,s;if("center"==e.originX)i=t.left+t.width/2;else{const s=this._isRtl()?t.right:t.left,n=this._isRtl()?t.left:t.right;i="start"==e.originX?s:n}return s="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:i,y:s}}_getOverlayPoint(t,e,i){let s,n;return s="center"==i.overlayX?-e.width/2:"start"===i.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,n="center"==i.overlayY?-e.height/2:"top"==i.overlayY?0:-e.height,{x:t.x+s,y:t.y+n}}_getOverlayFit(t,e,i,s){let{x:n,y:r}=t,o=this._getOffset(s,"x"),a=this._getOffset(s,"y");o&&(n+=o),a&&(r+=a);let l=0-r,h=r+e.height-i.height,c=this._subtractOverflows(e.width,0-n,n+e.width-i.width),u=this._subtractOverflows(e.height,l,h),d=c*u;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:u===e.height,fitsInViewportHorizontally:c==e.width}}_canFitWithFlexibleDimensions(t,e,i){if(this._hasFlexibleDimensions){const s=i.bottom-e.y,n=i.right-e.x,r=IS(this._overlayRef.getConfig().minHeight),o=IS(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=n;return(t.fitsInViewportVertically||null!=r&&r<=s)&&a}return!1}_pushOverlayOnScreen(t,e,i){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const s=this._viewportRect,n=Math.max(t.x+e.width-s.width,0),r=Math.max(t.y+e.height-s.height,0),o=Math.max(s.top-i.top-t.y,0),a=Math.max(s.left-i.left-t.x,0);let l=0,h=0;return l=e.width<=s.width?a||-n:t.xs&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-s/2)}if("end"===e.overlayX&&!s||"start"===e.overlayX&&s)h=i.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!s||"end"===e.overlayX&&s)l=t.x,a=i.right-t.x;else{const e=Math.min(i.right-t.x+i.left,t.x),s=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>s&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-s/2)}return{top:r,left:l,bottom:o,right:h,width:a,height:n}}_setBoundingBoxStyles(t,e){const i=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,n=this._overlayRef.getConfig().maxWidth;s.height=Xv(i.height),s.top=Xv(i.top),s.bottom=Xv(i.bottom),s.width=Xv(i.width),s.left=Xv(i.left),s.right=Xv(i.right),s.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",s.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(s.maxHeight=Xv(t)),n&&(s.maxWidth=Xv(n))}this._lastBoundingBoxSize=i,LS(this._boundingBox.style,s)}_resetBoundingBoxStyles(){LS(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){LS(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const i={},s=this._hasExactPosition(),n=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(s){const s=this._viewportRuler.getViewportScrollPosition();LS(i,this._getExactOverlayY(e,t,s)),LS(i,this._getExactOverlayX(e,t,s))}else i.position="static";let o="",a=this._getOffset(e,"x"),l=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),l&&(o+=`translateY(${l}px)`),i.transform=o.trim(),r.maxHeight&&(s?i.maxHeight=Xv(r.maxHeight):n&&(i.maxHeight="")),r.maxWidth&&(s?i.maxWidth=Xv(r.maxWidth):n&&(i.maxWidth="")),LS(this._pane.style,i)}_getExactOverlayY(t,e,i){let s={top:"",bottom:""},n=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(n=this._pushOverlayOnScreen(n,this._overlayRect,i));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return n.y-=r,"bottom"===t.overlayY?s.bottom=this._document.documentElement.clientHeight-(n.y+this._overlayRect.height)+"px":s.top=Xv(n.y),s}_getExactOverlayX(t,e,i){let s,n={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,i)),s=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===s?n.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":n.left=Xv(r.x),n}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),i=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:vS(t,i),isOriginOutsideView:yS(t,i),isOverlayClipped:vS(e,i),isOverlayOutsideView:yS(e,i)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+t-this._viewportMargin,bottom:i.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&Uv(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof Sa)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,i=t.height||0;return{top:t.y,bottom:t.y+i,left:t.x,right:t.x+e,height:i,width:e}}}function LS(t,e){for(let i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t}function IS(t){if("number"!=typeof t&&null!=t){const[e,i]=t.split(PS);return i&&"px"!==i?null:parseFloat(e)}return t||null}class RS{constructor(t,e,i,s,n,r,o){this._preferredPositions=[],this._positionStrategy=new OS(i,s,n,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,i,s){const n=new wS(t,e,i,s);return this._preferredPositions.push(n),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const BS="cdk-global-overlay-wrapper";class FS{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(BS),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:s,height:n,maxWidth:r,maxHeight:o}=i,a=!("100%"!==s&&"100vw"!==s||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==n&&"100vh"!==n||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,i=e.style;e.classList.remove(BS),i.justifyContent=i.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let NS=(()=>{class t{constructor(t,e,i,s){this._viewportRuler=t,this._document=e,this._platform=i,this._overlayContainer=s}global(){return new FS}connectedTo(t,e,i){return new RS(e,i,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new OS(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(qt(nC),qt(Uh),qt(Dv),qt(MS))},t.\u0275prov=ht({factory:function(){return new t(qt(nC),qt(Uh),qt(Dv),qt(MS))},token:t,providedIn:"root"}),t})(),jS=0,zS=(()=>{class t{constructor(t,e,i,s,n,r,o,a,l,h,c){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=i,this._positionBuilder=s,this._keyboardDispatcher=n,this._injector=r,this._ngZone=o,this._document=a,this._directionality=l,this._location=h,this._outsideClickDispatcher=c}create(t){const e=this._createHostElement(),i=this._createPaneElement(e),s=this._createPortalOutlet(i),n=new _S(t);return n.direction=n.direction||this._directionality.value,new TS(s,e,i,n,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+jS++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(Lh)),new $w(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(qt(xS),qt(MS),qt(ka),qt(NS),qt(SS),qt(to),qt(fh),qt(Uh),qt(pb),qt(oc),qt(AS))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const HS={provide:new Ft("cdk-connected-overlay-scroll-strategy"),deps:[zS],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let WS=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[zS,HS],imports:[[fb,Jw,oC],oC]}),t})();const VS=["panel"];function GS(t,e){if(1&t&&(Eo(0,"div",0,1),jo(2),Mo()),2&t){const t=Bo();So("id",t.id)("ngClass",t._classList)}}const US=["*"];let XS=0;class YS{constructor(t,e){this.source=t,this.option=e}}class qS{}const $S=aw(qS),KS=new Ft("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}});let ZS=(()=>{class t extends $S{constructor(t,e,i){super(),this._changeDetectorRef=t,this._elementRef=e,this._activeOptionChanges=u.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new Sl,this.opened=new Sl,this.closed=new Sl,this.optionActivated=new Sl,this._classList={},this.id="mat-autocomplete-"+XS++,this._autoActiveFirstOption=!!i.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=Vv(t)}set classList(t){this._classList=t&&t.length?t.split(" ").reduce((t,e)=>(t[e.trim()]=!0,t),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new Jv(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){const e=new YS(this,t);this.optionSelected.emit(e)}_setVisibilityClasses(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}return t.\u0275fac=function(e){return new(e||t)(Co(Fr),Co(Sa),Co(KS))},t.\u0275dir=be({type:t,viewQuery:function(t,e){var i;1&t&&(Fl($a,!0),Nl(VS,!0)),2&t&&(Bl(i=Wl())&&(e.template=i.first),Bl(i=Wl())&&(e.panel=i.first))},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[no]}),t})(),QS=(()=>{class t extends ZS{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return t.\u0275fac=function(e){return JS(e||t)},t.\u0275cmp=pe({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,i){var s;1&t&&(zl(i,Aw,!0),zl(i,Pw,!0)),2&t&&(Bl(s=Wl())&&(e.optionGroups=s),Bl(s=Wl())&&(e.options=s))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[_a([{provide:Tw,useExisting:t}]),no],ngContentSelectors:US,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(No(),_o(0,GS,3,2,"ng-template"))},directives:[Gc],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),t})();const JS=gs(QS),tA=new Ft("mat-autocomplete-scroll-strategy"),eA={provide:tA,deps:[zS],useFactory:function(t){return()=>t.scrollStrategies.reposition()}},iA={provide:em,useExisting:wt(()=>nA),multi:!0};let sA=(()=>{class t{constructor(t,e,i,s,n,r,o,a,l,h){this._element=t,this._overlay=e,this._viewContainerRef=i,this._zone=s,this._changeDetectorRef=n,this._dir=o,this._formField=a,this._document=l,this._viewportRuler=h,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=u.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new C,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Pd(()=>this.autocomplete&&this.autocomplete.options?U(...this.autocomplete.options.map(t=>t.onSelectionChange)):this._zone.onStable.pipe(Yd(1),Gd(()=>this.optionSelections))),this._scrollStrategy=r}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=Vv(t)}ngAfterViewInit(){const t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return U(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(zu(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(zu(()=>this._overlayAttached)):Nu()).pipe(A(t=>t instanceof Mw?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return U(Ty(this._document,"click"),Ty(this._document,"touchend")).pipe(zu(t=>{const e=this._isInsideShadowRoot&&t.composedPath?t.composedPath()[0]:t.target,i=this._formField?this._formField._elementRef.nativeElement:null,s=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&e!==this._element.nativeElement&&(!i||!i.contains(e))&&(!s||!s.contains(e))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(e)}))}writeValue(t){Promise.resolve(null).then(()=>this._setTriggerValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){const e=t.keyCode;if(27!==e||Nv(t)||t.preventDefault(),this.activeOption&&13===e&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){const i=this.autocomplete._keyManager.activeItem,s=38===e||40===e;this.panelOpen||9===e?this.autocomplete._keyManager.onKeydown(t):s&&this._canOpen()&&this.openPanel(),(s||this.autocomplete._keyManager.activeItem!==i)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(t){let e=t.target,i=e.value;"number"===e.type&&(i=""==i?null:parseFloat(i)),this._previousValue!==i&&(this._previousValue=i,this._onChange(i),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(t=!1){this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return U(this._zone.onStable.pipe(Yd(1)),this.autocomplete.options.changes.pipe(rp(()=>this._positionStrategy.reapplyLastPosition()),function(t,e=Sy){var i;const s=(i=t)instanceof Date&&!isNaN(+i)?+t-e.now():Math.abs(t);return t=>t.lift(new jy(s,e))}(0))).pipe(Gd(()=>{const t=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),t!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),Yd(1)).subscribe(t=>this._setValueAndClose(t))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(t){const e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,i=null!=e?e:"";this._formField?this._formField._control.value=i:this._element.nativeElement.value=i,this._previousValue=i}_setValueAndClose(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()}_clearPreviousSelectedOption(t){this.autocomplete.options.forEach(e=>{e!==t&&e.selected&&e.deselect()})}_attachOverlay(){null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!Fv(this._element.nativeElement));let t=this._overlayRef;t?(this._positionStrategy.setOrigin(this._getConnectedElement()),t.updateSize({width:this._getPanelWidth()})):(this._portal=new Xw(this.autocomplete.template,this._viewContainerRef),t=this._overlay.create(this._getOverlayConfig()),this._overlayRef=t,t.keydownEvents().subscribe(t=>{(27===t.keyCode&&!Nv(t)||38===t.keyCode&&Nv(t,"altKey"))&&(this._resetActiveItem(),this._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&t&&t.updateSize({width:this._getPanelWidth()})})),t&&!t.hasAttached()&&(t.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const e=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&e!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){return new _S({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir})}_getOverlayPosition(){const t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){const e=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=this._aboveClass,s=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:i},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:i}];let n;n="above"===this.position?s:"below"===this.position?e:[...e,...s],t.withPositions(n)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){this.autocomplete._keyManager.setActiveItem(this.autocomplete.autoActiveFirstOption?0:-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}_scrollToOption(t){const e=this.autocomplete,i=function(t,e,i){if(i.length){let s=e.toArray(),n=i.toArray(),r=0;for(let e=0;er+o?Math.max(0,s-o+n):r);e._setScrollTop(a)}}var s,n,r,o}}return t.\u0275fac=function(e){return new(e||t)(Co(Sa),Co(zS),Co(Za),Co(fh),Co(Fr),Co(tA),Co(pb,8),Co(rS,9),Co(Uh,8),Co(nC))},t.\u0275dir=be({type:t,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[Ie]}),t})(),nA=(()=>{class t extends sA{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return t.\u0275fac=function(e){return rA(e||t)},t.\u0275dir=be({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&Lo("focusin",(function(){return e._handleFocus()}))("blur",(function(){return e._onTouched()}))("input",(function(t){return e._handleInput(t)}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&vo("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen||null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[_a([iA]),no]}),t})();const rA=gs(nA);let oA=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[eA],imports:[[WS,Ow,nw,ou],rC,Ow,nw]}),t})();function aA(t,e){1&t&&(Eo(0,"mat-option"),To(1,"mat-spinner",11),Mo())}function lA(t,e){if(1&t&&(Eo(0,"mat-option",13),Eo(1,"span"),ha(2),xl(3,"uppercase"),Mo(),ha(4," | "),Eo(5,"span"),ha(6),Mo(),Mo()),2&t){const t=e.$implicit;So("value",t.ticker),yn(2),ca(_l(3,3,t.ticker)),yn(4),ca(t.name)}}function hA(t,e){if(1&t&&(function(t,e,i){const s=ni(),n=ri(),r=n.firstCreatePass?function(t,e,i,s,n){const r=e.consts,o=Je(r,undefined),a=Mn(e,0,3,"ng-container",o);return null!==o&&io(a,o,!0),Hn(e,i,a,Je(r,undefined)),null!==e.queries&&e.queries.elementStart(e,a),a}(0,n,s):n.data[20];li(r,!0);const o=s[20]=s[11].createComment("");Cr(n,s,o,r),Qs(o,s),De(r)&&(In(n,s,r),Ln(n,r,s))}(),_o(1,lA,7,5,"mat-option",12),function(){let t=ai();const e=ri();hi()?ci():(t=t.parent,li(t,!1)),e.firstCreatePass&&(Oi(e,t),Me(t)&&e.queries.elementEnd(t))}()),2&t){const t=Bo();yn(1),So("ngForOf",t.searchdata)}}function cA(t,e){1&t&&(Eo(0,"div",3),To(1,"mat-spinner",4),Mo())}function uA(t,e){1&t&&(Eo(0,"div"),Eo(1,"div",5),ha(2," Currently you don't have any stock in your watchlist. "),Mo(),Mo())}function dA(t,e){if(1&t&&(Eo(0,"div",24),ha(1),xl(2,"number"),Mo()),2&t){const t=Bo().$implicit;yn(1),ua(" ",wl(2,1,t.lastPrice,"1.2-2")," ")}}function pA(t,e){if(1&t&&(Eo(0,"div",25),ha(1),xl(2,"number"),Mo()),2&t){const t=Bo().$implicit;yn(1),ua(" ",wl(2,1,t.lastPrice,"1.2-2")," ")}}function fA(t,e){if(1&t&&(Eo(0,"div",26),ha(1),xl(2,"number"),Mo()),2&t){const t=Bo().$implicit;yn(1),ua(" ",wl(2,1,t.lastPrice,"1.2-2")," ")}}function gA(t,e){if(1&t&&(Eo(0,"div",27),To(1,"img",28),ha(2),xl(3,"number"),xl(4,"number"),Mo()),2&t){const t=Bo().$implicit;yn(2),da(" ",wl(3,2,t.change,"1.2-2")," (",wl(4,5,t.changePercent,"1.2-2"),"%) ")}}function mA(t,e){if(1&t&&(Eo(0,"div",29),To(1,"img",30),ha(2),xl(3,"number"),xl(4,"number"),Mo()),2&t){const t=Bo().$implicit;yn(2),da(" ",wl(3,2,t.change,"1.2-2")," (",wl(4,5,t.changePercent,"1.2-2"),"%) ")}}function yA(t,e){if(1&t&&(Eo(0,"div",31),ha(1),xl(2,"number"),xl(3,"number"),Mo()),2&t){const t=Bo().$implicit;yn(1),da(" ",wl(2,2,t.change,"1.2-2")," (",wl(3,5,t.changePercent,"1.2-2"),"%) ")}}function vA(t,e){if(1&t){const t=Do();Eo(0,"div",9),Eo(1,"div",10),Lo("click",(function(){oi(t);const i=e.$implicit;return Bo(2).gotoDetails(i.ticker)})),Eo(2,"div",11),Eo(3,"span",12),Lo("click",(function(i){oi(t);const s=e.$implicit;return Bo(2).delete(s.ticker),i.stopPropagation()})),ha(4,"\xd7"),Mo(),Mo(),Eo(5,"div",13),Eo(6,"div",6),Eo(7,"div",14),Eo(8,"div",15),ha(9),xl(10,"uppercase"),Mo(),Eo(11,"div",16),ha(12),xl(13,"titlecase"),Mo(),Mo(),Eo(14,"div",17),_o(15,dA,3,4,"div",18),_o(16,pA,3,4,"div",19),_o(17,fA,3,4,"div",20),_o(18,gA,5,8,"div",21),_o(19,mA,5,8,"div",22),_o(20,yA,4,8,"div",23),Mo(),Mo(),Mo(),Mo(),Mo()}if(2&t){const t=e.$implicit;yn(9),ua(" ",_l(10,8,t.ticker)," "),yn(3),ua(" ",_l(13,10,t.companyName)," "),yn(3),So("ngIf",+t.change>0),yn(1),So("ngIf",+t.change<0),yn(1),So("ngIf",0==+t.change),yn(1),So("ngIf",+t.change>0),yn(1),So("ngIf",+t.change<0),yn(1),So("ngIf",0==+t.change)}}function bA(t,e){if(1&t&&(Eo(0,"div"),Eo(1,"div",6),_o(2,vA,21,12,"div",7),Mo(),To(3,"div",8),Mo()),2&t){const t=Bo();yn(2),So("ngForOf",t.data)}}const xA=[{path:"",component:(()=>{class t{constructor(t,e){this.autocompleteService=t,this.router=e,this.wait=!1,this.searchcntrl=new iy}onSearchSubmit(t){""!==t&&this.router.navigate(["/details",t])}ngOnInit(){this.searchcntrl.valueChanges.pipe(jv(300),rp(()=>{this.wait=!0}),Gd(t=>this.autocompleteService.getData(t))).subscribe(t=>{this.searchdata=t,this.wait=!1})}}return t.\u0275fac=function(e){return new(e||t)(Co(tS),Co(Mg))},t.\u0275cmp=pe({type:t,selectors:[["app-searchpage"]],decls:15,vars:4,consts:[[1,"container"],["id","heading",1,"h1"],[1,"row"],[1,"col","col-sm-12"],["id","search-box"],["matInput","","placeholder","Enter stock name","aria-label","stock",3,"matAutocomplete","formControl"],["search",""],["id","submit-search",2,"margin-left","-35px","color","#7C5FFB","cursor","pointer",3,"click"],[1,"fa","fa-search"],["auto","matAutocomplete"],[4,"ngIf"],["diameter","35"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(t,e){if(1&t){const t=Do();Eo(0,"div",0),Eo(1,"div",1),ha(2,"STOCK SEARCH"),Mo(),Eo(3,"div",2),Eo(4,"div",3),Eo(5,"form"),Eo(6,"div",4),To(7,"input",5,6),Eo(9,"span",7),Lo("click",(function(){oi(t);const i=wo(8);return e.onSearchSubmit(i.value)})),To(10,"i",8),Mo(),Mo(),Eo(11,"mat-autocomplete",null,9),_o(13,aA,2,0,"mat-option",10),_o(14,hA,2,1,"ng-container",10),Mo(),Mo(),Mo(),Mo(),Mo()}if(2&t){const t=wo(12);yn(7),So("matAutocomplete",t)("formControl",e.searchcntrl),yn(6),So("ngIf",e.wait),yn(1),So("ngIf",!e.wait)}},directives:[uy,pm,ay,dS,nA,om,dm,fy,QS,qc,Pw,Ww,Xc],pipes:[su],styles:["#heading[_ngcontent-%COMP%]{padding-top:100px;font-weight:700;font-size:60px;text-align:center}#search-box[_ngcontent-%COMP%]{text-align:center;padding-top:20px}#search-box[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]{border:2px solid #7c5ffb;border-radius:25px;height:35px;padding-left:15px;width:13rem}#search-box[_ngcontent-%COMP%] > input[_ngcontent-%COMP%]:focus{outline:none}"]}),t})()},{path:"watchlist",component:(()=>{class t{constructor(t,e,i,s){this.watchlistService=t,this.route=e,this.router=i,this.basicService=s,this.isLoading=!0}ngOnInit(){this.tickers=this.watchlistService.getWatchlistTickers(),""===this.tickers?(this.isLoading=!1,this.data=this.watchlistService.getWatchlistData()):this.basicService.getWatchlistUpdatedData(this.tickers).subscribe(t=>{this.updatedData=t,this.watchlistService.updateWatchlistData(this.updatedData),this.data=this.watchlistService.getWatchlistData(),this.isLoading=!1})}delete(t){this.watchlistService.removeWatchlist(t),this.update()}gotoDetails(t){this.router.navigate(["../details",t],{relativeTo:this.route})}update(){this.tickers=this.watchlistService.getWatchlistTickers(),""===this.tickers?this.data=this.watchlistService.getWatchlistData():this.basicService.getWatchlistUpdatedData(this.tickers).subscribe(t=>{this.updatedData=t,this.watchlistService.updateWatchlistData(this.updatedData),this.data=this.watchlistService.getWatchlistData()})}}return t.\u0275fac=function(e){return new(e||t)(Co(Ev),Co(pf),Co(Mg),Co(Jg))},t.\u0275cmp=pe({type:t,selectors:[["app-watchlist"]],decls:6,vars:3,consts:[[1,"container",2,"padding-top","40px"],["style","left:50%; position:fixed;",4,"ngIf"],[4,"ngIf"],[2,"left","50%","position","fixed"],["diameter","35"],["role","alert",1,"alert","alert-warning","myalert"],[1,"row"],["class","col-sm-12 col-md-12",4,"ngFor","ngForOf"],[2,"height","20px"],[1,"col-sm-12","col-md-12"],[1,"card","top-buffer",2,"cursor","pointer",3,"click"],[1,"header"],["aria-hidden","true",1,"close",3,"click"],[1,"card-body"],[1,"col","col-sm-6"],["id","top"],["id","middle"],["align","right",1,"col","col-sm-6"],["style","color:green;","id","top",4,"ngIf"],["style","color:#ff0000;","id","top",4,"ngIf"],["style","color:black;","id","top",4,"ngIf"],["style","color:green;","id","middle",4,"ngIf"],["style","color:red;","id","middle",4,"ngIf"],["style","color:black;","id","middle",4,"ngIf"],["id","top",2,"color","green"],["id","top",2,"color","#ff0000"],["id","top",2,"color","black"],["id","middle",2,"color","green"],["src","assets/caretup.svg","width","15","height","32"],["id","middle",2,"color","red"],["src","assets/caretdown.svg","width","15","height","32"],["id","middle",2,"color","black"]],template:function(t,e){1&t&&(Eo(0,"div",0),Eo(1,"h1"),ha(2,"My Watchlist"),Mo(),_o(3,cA,2,0,"div",1),_o(4,uA,3,0,"div",2),_o(5,bA,4,1,"div",2),Mo()),2&t&&(yn(3),So("ngIf",e.isLoading),yn(1),So("ngIf",!e.isLoading&&0==e.data.length),yn(1),So("ngIf",e.data&&!e.isLoading))},directives:[qc,Ww,Xc],pipes:[su,iu,ru],styles:[".myalert[_ngcontent-%COMP%]{text-align:center;margin-top:30px}h1[_ngcontent-%COMP%]{font-size:32px;font-weight:500;padding-bottom:15px}.top-buffer[_ngcontent-%COMP%]{margin-top:15px}.close[_ngcontent-%COMP%]{text-align:right;margin-top:-5px;font-size:20px;padding:5px}.close[_ngcontent-%COMP%], .close[_ngcontent-%COMP%]:focus{outline:none}.header[_ngcontent-%COMP%]{height:15px}#top[_ngcontent-%COMP%]{font-size:27px;line-height:36px}#middle[_ngcontent-%COMP%], #top[_ngcontent-%COMP%]{font-weight:500}#middle[_ngcontent-%COMP%]{font-size:18px;line-height:25px;padding-top:5px}.card-body[_ngcontent-%COMP%]{padding-top:0;padding-bottom:10px}"]}),t})()},{path:"portfolio",component:Jk},{path:"details/:ticker",component:Fk}];let _A=(()=>{class t{}return t.\u0275mod=ye({type:t}),t.\u0275inj=ct({factory:function(e){return new(e||t)},imports:[[Vg.forRoot(xA)],Vg]}),t})();const wA=function(){return{exact:!0}};let CA=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["app-navbar"]],decls:18,vars:2,consts:[[1,"navbar","navbar-expand-sm","navbar-dark","static-top",2,"background-color","#7C5FFB"],["routerLink","/",1,"navbar-brand",2,"color","white"],["type","button","data-toggle","collapse","data-target","#navbarSupportedContent","aria-controls","navbarSupportedContent","aria-expanded","false","aria-label","Toggle navigation",1,"navbar-toggler"],[1,"navbar-toggler-icon"],["id","navbarSupportedContent",1,"collapse","navbar-collapse","text-right"],["data-toggle","collapse","data-target",".navbar-collapse.show",1,"nav","navbar-nav","ml-auto"],["routerLinkActive","active",1,"nav-item",3,"routerLinkActiveOptions"],["routerLink","/",1,"nav-link"],[1,"sr-only"],["routerLinkActive","active",1,"nav-item"],["routerLink","/watchlist",1,"nav-link"],["routerLink","/portfolio",1,"nav-link"]],template:function(t,e){1&t&&(Eo(0,"nav",0),Eo(1,"a",1),ha(2,"Stock Search"),Mo(),Eo(3,"button",2),To(4,"span",3),Mo(),Eo(5,"div",4),Eo(6,"ul",5),Eo(7,"li",6),Eo(8,"a",7),ha(9,"Search "),Eo(10,"span",8),ha(11,"(current)"),Mo(),Mo(),Mo(),Eo(12,"li",9),Eo(13,"a",10),ha(14,"Watchlist"),Mo(),Mo(),Eo(15,"li",9),Eo(16,"a",11),ha(17,"Portfolio"),Mo(),Mo(),Mo(),Mo(),Mo()),2&t&&(yn(7),So("routerLinkActiveOptions",function(t,e,i){const s=pi()+1,n=ni();return n[s]===dn?go(n,s,e()):function(t,e){return t[e]}(n,s)}(0,wA)))},directives:[tv,Dg,Og],styles:[".active[_ngcontent-%COMP%]{border:.15rem solid #fff;border-radius:15px}.nav-link[_ngcontent-%COMP%]{padding-right:10px}.navbar[_ngcontent-%COMP%]{width:100%}.navigation[_ngcontent-%COMP%]{z-index:1}"]}),t})(),kA=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["app-footer"]],decls:3,vars:0,consts:[[1,"footer-style"]],template:function(t,e){1&t&&(Eo(0,"footer"),Eo(1,"p",0),ha(2,"Powered by Tiingo. Developed by Samipya Nirmal."),Mo(),Mo())},styles:["footer[_ngcontent-%COMP%]{width:100%;height:50px;background-color:#ddd}.footer-style[_ngcontent-%COMP%]{text-align:center;margin:0!important;padding-top:20px}"]}),t})(),SA=(()=>{class t{constructor(){this.title="stocksclient"}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=pe({type:t,selectors:[["app-root"]],decls:3,vars:0,consts:[[1,"mt-auto"]],template:function(t,e){1&t&&(To(0,"app-navbar"),To(1,"router-outlet"),To(2,"app-footer",0))},directives:[CA,Lg,kA],styles:[""]}),t})(),AA=(()=>{class t{}return t.\u0275mod=ye({type:t,bootstrap:[SA]}),t.\u0275inj=ct({factory:function(e){return new(e||t)},providers:[],imports:[[Fu,_A,Q_,xd,by,xy,pS,oA,Vw,KC,Av,ik]]}),t})();(function(){if(ks)throw new Error("Cannot enable prod mode after platform setup.");Cs=!1})(),Ru().bootstrapModule(AA).catch(t=>console.error(t))},zn8P:function(t,e){function i(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}i.keys=function(){return[]},i.resolve=i,t.exports=i,i.id="zn8P"}},[[0,0]]]);