From ca5b54c8e23f0290c12a63d61bc7bcd7001c3652 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Wed, 14 Jul 2021 13:49:58 +0200 Subject: [PATCH] Added hidden dark theme to administration --- server/src/uds/static/admin/main.js | 2 +- server/src/uds/static/admin/styles.css | 6 +++++- server/src/uds/templates/uds/admin/index.html | 14 +++++++++----- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/server/src/uds/static/admin/main.js b/server/src/uds/static/admin/main.js index a28639ab..8c587dfc 100644 --- a/server/src/uds/static/admin/main.js +++ b/server/src/uds/static/admin/main.js @@ -1 +1 @@ -(self.webpackChunkuds_admin=self.webpackChunkuds_admin||[]).push([[179],{8255:function(t){function e(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=function(){return[]},e.resolve=e,e.id=8255,t.exports=e},9737:function(t,e,n){"use strict";n.r(e),n.d(e,{Axis:function(){return Ww},ChartView:function(){return ig},ComponentModel:function(){return md},ComponentView:function(){return qp},List:function(){return hb},Model:function(){return sh},PRIORITY:function(){return gy},SeriesModel:function(){return Wp},color:function(){return o},connect:function(){return l_},dataTool:function(){return E_},dependencies:function(){return dy},disConnect:function(){return u_},disconnect:function(){return c_},dispose:function(){return h_},env:function(){return w},extendChartView:function(){return Zw},extendComponentModel:function(){return Yw},extendComponentView:function(){return qw},extendSeriesModel:function(){return Xw},format:function(){return f},getCoordinateSystemDimensions:function(){return w_},getInstanceByDom:function(){return d_},getInstanceById:function(){return f_},getMap:function(){return T_},graphic:function(){return d},helper:function(){return u},init:function(){return s_},innerDrawElementOnCanvas:function(){return ov},matrix:function(){return a},number:function(){return c},parseGeoJSON:function(){return Wv},parseGeoJson:function(){return Wv},registerAction:function(){return __},registerCoordinateSystem:function(){return b_},registerLayout:function(){return x_},registerLoading:function(){return A_},registerLocale:function(){return gh},registerMap:function(){return I_},registerPostInit:function(){return v_},registerPostUpdate:function(){return y_},registerPreprocessor:function(){return g_},registerProcessor:function(){return m_},registerTheme:function(){return p_},registerTransform:function(){return D_},registerVisual:function(){return k_},setCanvasCreator:function(){return M_},throttle:function(){return sg},time:function(){return h},use:function(){return R_},util:function(){return p},vector:function(){return r},version:function(){return hy},zrUtil:function(){return i},zrender:function(){return s}});var i={};n.r(i),n.d(i,{$override:function(){return P},HashMap:function(){return St},assert:function(){return _t},bind:function(){return J},clone:function(){return F},concatArray:function(){return At},createCanvas:function(){return j},createHashMap:function(){return Ct},createObject:function(){return Mt},curry:function(){return tt},defaults:function(){return H},each:function(){return q},eqNaN:function(){return ft},extend:function(){return B},filter:function(){return K},find:function(){return $},guid:function(){return L},hasOwn:function(){return It},indexOf:function(){return G},inherits:function(){return U},isArray:function(){return et},isArrayLike:function(){return Y},isBuiltInObject:function(){return st},isDom:function(){return ut},isFunction:function(){return nt},isGradientObject:function(){return ct},isImagePatternObject:function(){return ht},isNumber:function(){return ot},isObject:function(){return at},isPrimitive:function(){return kt},isRegExp:function(){return dt},isString:function(){return it},isStringSafe:function(){return rt},isTypedArray:function(){return lt},keys:function(){return Q},logError:function(){return N},map:function(){return X},merge:function(){return V},mergeAll:function(){return z},mixin:function(){return W},noop:function(){return Tt},normalizeCssArray:function(){return yt},reduce:function(){return Z},retrieve:function(){return pt},retrieve2:function(){return gt},retrieve3:function(){return mt},setAsPrimitive:function(){return xt},slice:function(){return vt},trim:function(){return bt}});var r={};n.r(r),n.d(r,{add:function(){return Nt},applyTransform:function(){return te},clone:function(){return Rt},copy:function(){return Pt},create:function(){return Ot},dist:function(){return Zt},distSquare:function(){return $t},distance:function(){return Xt},distanceSquare:function(){return Kt},div:function(){return Ut},dot:function(){return Wt},len:function(){return zt},lenSquare:function(){return Ht},length:function(){return Bt},lengthSquare:function(){return jt},lerp:function(){return Jt},max:function(){return ne},min:function(){return ee},mul:function(){return Gt},negate:function(){return Qt},normalize:function(){return qt},scale:function(){return Yt},scaleAndAdd:function(){return Ft},set:function(){return Lt},sub:function(){return Vt}});var o={};n.r(o),n.d(o,{fastLerp:function(){return fn},fastMapToColor:function(){return pn},lerp:function(){return gn},lift:function(){return hn},lum:function(){return bn},mapToColor:function(){return mn},modifyAlpha:function(){return yn},modifyHSL:function(){return vn},parse:function(){return un},random:function(){return wn},stringify:function(){return _n},toHex:function(){return dn}});var a={};n.r(a),n.d(a,{clone:function(){return di},copy:function(){return ai},create:function(){return ri},identity:function(){return oi},invert:function(){return hi},mul:function(){return si},rotate:function(){return ui},scale:function(){return ci},translate:function(){return li}});var s={};n.r(s),n.d(s,{dispose:function(){return ar},disposeAll:function(){return sr},getInstance:function(){return lr},init:function(){return or},registerPainter:function(){return ur},version:function(){return cr}});var l={};n.r(l),n.d(l,{Arc:function(){return ju},BezierCurve:function(){return zu},BoundingRect:function(){return Ei},Circle:function(){return eu},CompoundPath:function(){return Gu},Ellipse:function(){return ru},Group:function(){return tr},Image:function(){return _s},IncrementalDisplayable:function(){return Ju},Line:function(){return Ru},LinearGradient:function(){return Wu},OrientedBoundingRect:function(){return $u},Path:function(){return ds},Point:function(){return xi},Polygon:function(){return Mu},Polyline:function(){return Du},RadialGradient:function(){return Yu},Rect:function(){return Ms},Ring:function(){return xu},Sector:function(){return _u},Text:function(){return Vs},applyTransform:function(){return kc},clipPointsByRect:function(){return Mc},clipRectByRect:function(){return Ic},createIcon:function(){return Tc},extendPath:function(){return rc},extendShape:function(){return ic},getShapeClass:function(){return ac},getTransform:function(){return xc},groupTransition:function(){return Ac},initProps:function(){return vc},isElementRemoved:function(){return wc},lineLineIntersect:function(){return Ec},linePolygonIntersect:function(){return Dc},makeImage:function(){return lc},makePath:function(){return sc},mergePath:function(){return cc},registerShape:function(){return oc},removeElement:function(){return yc},removeElementWithFadeOut:function(){return bc},resizePath:function(){return hc},setTooltipConfig:function(){return Pc},subPixelOptimize:function(){return pc},subPixelOptimizeLine:function(){return dc},subPixelOptimizeRect:function(){return fc},transformDirection:function(){return Sc},updateProps:function(){return mc}});var u={};n.r(u),n.d(u,{createDimensions:function(){return fb},createList:function(){return Dw},createScale:function(){return Ow},createSymbol:function(){return jm},createTextStyle:function(){return Rw},dataStack:function(){return Ew},enableHoverEmphasis:function(){return Al},getECData:function(){return zs},getLayoutRect:function(){return ld},mixinAxisModelCommonMethods:function(){return Pw}});var c={};n.r(c),n.d(c,{MAX_SAFE_INTEGER:function(){return br},asc:function(){return pr},getPercentWithPrecision:function(){return yr},getPixelPrecision:function(){return vr},getPrecision:function(){return gr},getPrecisionSafe:function(){return mr},isNumeric:function(){return Er},isRadianAroundZero:function(){return xr},linearMap:function(){return hr},nice:function(){return Mr},numericToNumber:function(){return Dr},parseDate:function(){return Sr},quantile:function(){return Ir},quantity:function(){return Cr},quantityExponent:function(){return Ar},reformIntervals:function(){return Tr},remRadian:function(){return wr},round:function(){return fr}});var h={};n.r(h),n.d(h,{format:function(){return Ch},parse:function(){return Sr}});var d={};n.r(d),n.d(d,{Arc:function(){return ju},BezierCurve:function(){return zu},BoundingRect:function(){return Ei},Circle:function(){return eu},CompoundPath:function(){return Gu},Ellipse:function(){return ru},Group:function(){return tr},Image:function(){return _s},IncrementalDisplayable:function(){return Ju},Line:function(){return Ru},LinearGradient:function(){return Wu},Polygon:function(){return Mu},Polyline:function(){return Du},RadialGradient:function(){return Yu},Rect:function(){return Ms},Ring:function(){return xu},Sector:function(){return _u},Text:function(){return Vs},clipPointsByRect:function(){return Mc},clipRectByRect:function(){return Ic},createIcon:function(){return Tc},extendPath:function(){return rc},extendShape:function(){return ic},getShapeClass:function(){return ac},getTransform:function(){return xc},initProps:function(){return vc},makeImage:function(){return lc},makePath:function(){return sc},mergePath:function(){return cc},registerShape:function(){return oc},resizePath:function(){return hc},updateProps:function(){return mc}});var f={};n.r(f),n.d(f,{addCommas:function(){return jh},capitalFirst:function(){return td},encodeHTML:function(){return qh},formatTime:function(){return Jh},formatTpl:function(){return $h},getTextRect:function(){return Lw},getTooltipMarker:function(){return Qh},normalizeCssArray:function(){return Uh},toCamelCase:function(){return Gh},truncateText:function(){return ko}});var p={};n.r(p),n.d(p,{bind:function(){return J},clone:function(){return F},curry:function(){return tt},defaults:function(){return H},each:function(){return q},extend:function(){return B},filter:function(){return K},indexOf:function(){return G},inherits:function(){return U},isArray:function(){return et},isFunction:function(){return nt},isObject:function(){return at},isString:function(){return it},map:function(){return X},merge:function(){return V},reduce:function(){return Z}});var g=function(t,e){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function m(t,e){function n(){this.constructor=t}g(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var v=function(){return(v=Object.assign||function(t){for(var e,n=1,i=arguments.length;n18),a&&(n.weChat=!0),e.canvasSupported=!!document.createElement("canvas").getContext,e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,b);var w=b,x={"[object Function]":!0,"[object RegExp]":!0,"[object Date]":!0,"[object Error]":!0,"[object CanvasGradient]":!0,"[object CanvasPattern]":!0,"[object Image]":!0,"[object Canvas]":!0},k={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0},S=Object.prototype.toString,C=Array.prototype,A=C.forEach,M=C.filter,I=C.slice,T=C.map,D=(function(){}).constructor,E=D?D.prototype:null,O={};function P(t,e){O[t]=e}var R=2311;function L(){return R++}function N(){for(var t=[],e=0;e>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,o),o,r);if(a)return a(t,n,i),!0}return!1}function he(t){return"CANVAS"===t.nodeName.toUpperCase()}var de="undefined"!=typeof window&&!!window.addEventListener,fe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,pe=[];function ge(t,e,n,i){return n=n||{},i||!w.canvasSupported?me(t,e,n):w.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):me(t,e,n),n}function me(t,e,n){if(w.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(he(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(ce(pe,t,i,r))return n.zrX=pe[0],void(n.zrY=pe[1])}n.zrX=n.zrY=0}function ve(t){return t||window.event}function ye(t,e,n){if(null!=(e=ve(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&ge(t,r,e,n)}else{ge(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;return null==n||null==i?e:3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&fe.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function _e(t,e,n,i){de?t.addEventListener(e,n,i):t.attachEvent("on"+e,n)}var be=de?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};function we(t){return 2===t.which||3===t.which}var xe=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o1&&r&&r.length>1){var a=ke(r)/ke(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}},Ce="silent";function Ae(){be(this.event)}var Me=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return Et(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(oe),Ie=function(t,e){this.x=t,this.y=e},Te=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],De=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o._hovered=new Ie(0,0),o.storage=e,o.painter=n,o.painterRoot=r,i=i||new Me,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new re(o),o}return Et(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(q(Te,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=Oe(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new Ie(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Ie(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Ae}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},e.prototype.findHover=function(t,e,n){for(var i=this.storage.getDisplayList(),r=new Ie(t,e),o=i.length-1;o>=0;o--){var a=void 0;if(i[o]!==n&&!i[o].ignore&&(a=Ee(i[o],t,e))&&(!r.topTarget&&(r.topTarget=i[o]),a!==Ce)){r.target=i[o];break}}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new xe);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new Ie;o.target=i.target,this.dispatchToElement(o,r,i.event)}},e}(oe);function Ee(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(r=!0)}i=i.__hostTarget||i.parent}return!r||Ce}return!1}function Oe(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}q(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){De.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=Oe(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Zt(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var Pe=De;function Re(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r=0;)r++;return r-e}function Le(t,e,n,i,r){for(i===e&&i++;i>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function Ne(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function Fe(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function Ve(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(r<2)){var o=0;if(r<32)Le(t,n,i,n+(o=Re(t,n,i,e)),e);else{var a=function(t,e){var n,i,r=7,o=0,a=[];function s(s){var l=n[s],u=i[s],c=n[s+1],h=i[s+1];i[s]=u+h,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var d=Fe(t[c],t,l,u,0,e);l+=d,0!=(u-=d)&&0!==(h=Ne(t[l+u-1],t,c,h,h-1,e))&&(u<=h?function(n,i,o,s){var l=0;for(l=0;l=7||f>=7);if(p)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(l=0;l=0;l--)t[f+l]=t[d+l];if(0===i){v=!0;break}}if(t[h--]=a[c--],1==--s){v=!0;break}if(0!=(m=s-Ne(t[u],a,0,s,s-1,e))){for(s-=m,f=1+(h-=m),d=1+(c-=m),l=0;l=7||m>=7);if(v)break;p<0&&(p=0),p+=2}if((r=p)<1&&(r=1),1===s){for(f=1+(h-=i),d=1+(u-=i),l=i-1;l>=0;l--)t[f+l]=t[d+l];t[h]=a[c]}else{if(0===s)throw new Error;for(d=h-(s-1),l=0;l=0;l--)t[f+l]=t[d+l];t[h]=a[c]}else for(d=h-(s-1),l=0;l1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]i[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]=32;)e|=1&t,t>>=1;return t+e}(r);do{if((o=Re(t,n,i,e))s&&(l=s),Le(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}}var ze=!1;function Be(){ze||(ze=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function He(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var je=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=He}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(Be(),u.z=0),isNaN(u.z2)&&(Be(),u.z2=0),isNaN(u.zlevel)&&(Be(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),Ge="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},Ue={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Ue.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*Ue.bounceIn(2*t):.5*Ue.bounceOut(2*t-1)+.5}},We=Ue,Ye=function(){function t(t){this._initialized=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart}return t.prototype.step=function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),!this._paused){var n=(t-this._startTime-this._pausedTime)/this._life;n<0&&(n=0),n=Math.min(n,1);var i=this.easing,r="string"==typeof i?We[i]:i,o="function"==typeof r?r(n):n;if(this.onframe&&this.onframe(o),1===n){if(!this.loop)return!0;this._restart(t),this.onrestart&&this.onrestart()}return!1}this._pausedTime+=e},t.prototype._restart=function(t){this._startTime=t-(t-this._startTime-this._pausedTime)%this._life+this.gap,this._pausedTime=0},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t}(),qe=function(t){this.value=t},Xe=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new qe(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),Ze=function(){function t(t){this._list=new Xe,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new qe(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),Ke={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function $e(t){return(t=Math.round(t))<0?0:t>255?255:t}function Qe(t){return t<0?0:t>1?1:t}function Je(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?$e(parseFloat(e)/100*255):$e(parseInt(e,10))}function tn(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Qe(parseFloat(e)/100):Qe(parseFloat(e))}function en(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function nn(t,e,n){return t+(e-t)*n}function rn(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function on(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var an=new Ze(20),sn=null;function ln(t,e){sn&&on(sn,e),sn=an.put(t,sn||e.slice())}function un(t,e){if(t){e=e||[];var n=an.get(t);if(n)return on(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in Ke)return on(e,Ke[i]),ln(t,e),e;var r,o=i.length;if("#"===i.charAt(0))return 4===o||5===o?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(rn(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===o?parseInt(i.slice(4),16)/15:1),ln(t,e),e):void rn(e,0,0,0,1):7===o||9===o?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(rn(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===o?parseInt(i.slice(7),16)/255:1),ln(t,e),e):void rn(e,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?rn(e,+u[0],+u[1],+u[2],1):rn(e,0,0,0,1);c=tn(u.pop());case"rgb":return 3!==u.length?void rn(e,0,0,0,1):(rn(e,Je(u[0]),Je(u[1]),Je(u[2]),c),ln(t,e),e);case"hsla":return 4!==u.length?void rn(e,0,0,0,1):(u[3]=tn(u[3]),cn(u,e),ln(t,e),e);case"hsl":return 3!==u.length?void rn(e,0,0,0,1):(cn(u,e),ln(t,e),e);default:return}}rn(e,0,0,0,1)}}function cn(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=tn(t[1]),r=tn(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return rn(e=e||[],$e(255*en(a,o,n+1/3)),$e(255*en(a,o,n)),$e(255*en(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function hn(t,e){var n=un(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return _n(n,4===n.length?"rgba":"rgb")}}function dn(t){var e=un(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function fn(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=$e(nn(a[0],s[0],l)),n[1]=$e(nn(a[1],s[1],l)),n[2]=$e(nn(a[2],s[2],l)),n[3]=Qe(nn(a[3],s[3],l)),n}}var pn=fn;function gn(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=un(e[r]),s=un(e[o]),l=i-r,u=_n([$e(nn(a[0],s[0],l)),$e(nn(a[1],s[1],l)),$e(nn(a[2],s[2],l)),Qe(nn(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}var mn=gn;function vn(t,e,n,i){var r=un(t);if(t)return r=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?e=d-h:r===s?e=1/3+c-d:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,n,u];return null!=t[3]&&f.push(t[3]),f}}(r),null!=e&&(r[0]=function(t){return(t=Math.round(t))<0?0:t>360?360:t}(e)),null!=n&&(r[1]=tn(n)),null!=i&&(r[2]=tn(i)),_n(cn(r),"rgba")}function yn(t,e){var n=un(t);if(n&&null!=e)return n[3]=Qe(e),_n(n,"rgba")}function _n(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function bn(t,e){var n=un(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function wn(){return"rgb("+Math.round(255*Math.random())+","+Math.round(255*Math.random())+","+Math.round(255*Math.random())+")"}var xn=Array.prototype.slice;function kn(t,e,n){return(e-t)*n+t}function Sn(t,e,n,i){for(var r=e.length,o=0;oa)i.length=a;else for(var s=o;s=2&&this.interpolable},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e){t>=this.maxTime?this.maxTime=t:this._needsSort=!0;var n=this.keyframes,i=n.length;if(this.interpolable)if(Y(e)){var r=function(t){return Y(t&&t[0])?2:1}(e);if(i>0&&this.arrDim!==r)return void(this.interpolable=!1);if(1===r&&"number"!=typeof e[0]||2===r&&"number"!=typeof e[0][0])return void(this.interpolable=!1);if(i>0){var o=n[i-1];this._isAllValueEqual&&(1===r&&In(e,o.value)||(this._isAllValueEqual=!1))}this.arrDim=r}else{if(this.arrDim>0)return void(this.interpolable=!1);if("string"==typeof e){var a=un(e);a?(e=a,this.isValueColor=!0):this.interpolable=!1}else if("number"!=typeof e||isNaN(e))return void(this.interpolable=!1);this._isAllValueEqual&&i>0&&(o=n[i-1],(this.isValueColor&&!In(o.value,e)||o.value!==e)&&(this._isAllValueEqual=!1))}var s={time:t,value:e,percent:0};return this.keyframes.push(s),s},t.prototype.prepare=function(t){var e=this.keyframes;this._needsSort&&e.sort(function(t,e){return t.time-e.time});for(var n=this.arrDim,i=e.length,r=e[i-1],o=0;o0&&o!==i-1&&Mn(e[o].value,r.value,n);if(t&&this.needsAnimate()&&t.needsAnimate()&&n===t.arrDim&&this.isValueColor===t.isValueColor&&!t._finished){this._additiveTrack=t;var a=e[0].value;for(o=0;o=0&&!(o[n].percent<=e);n--);n=Math.min(n,a-2)}else{for(n=this._lastFrame;ne);n++);n=Math.min(n-1,a-2)}var c=o[n+1],h=o[n];if(h&&c){this._lastFrame=n,this._lastFramePercent=e;var d=c.percent-h.percent;if(0!==d){var f=(e-h.percent)/d,p=i?this._additiveValue:u?Ln:t[s];if((l>0||u)&&!p&&(p=this._additiveValue=[]),this.useSpline){var g=o[n][r],m=o[0===n?n:n-1][r],v=o[n>a-2?a-1:n+1][r],y=o[n>a-3?a-1:n+2][r];if(l>0)1===l?Dn(p,m,g,v,y,f,f*f,f*f*f):function(t,e,n,i,r,o,a,s){for(var l=e.length,u=e[0].length,c=0;c0?1===l?Sn(p,h[r],c[r],f):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a.5?e:t}(h[r],c[r],f),i?this._additiveValue=_:t[s]=_);i&&this._addToTarget(t)}}}},t.prototype._addToTarget=function(t){var e=this.arrDim,n=this.propName,i=this._additiveValue;0===e?this.isValueColor?(un(t[n],Ln),Cn(Ln,Ln,i,1),t[n]=On(Ln)):t[n]=t[n]+i:1===e?Cn(t[n],t[n],i,1):2===e&&An(t[n],t[n],i,1)},t}(),Fn=function(){function t(t,e,n){this._tracks={},this._trackKeys=[],this._delay=0,this._maxTime=0,this._paused=!1,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n?N("Can' use additive animation on looped animation."):this._additiveAnimators=n}return t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e){return this.whenWithKeys(t,e,Q(e))},t.prototype.whenWithKeys=function(t,e,n){for(var i=this._tracks,r=0;r0)){this._started=1;for(var n=this,i=[],r=0;r1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(r.getAdditiveTrack())}}}},t}(),Vn=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,n.stage=(e=e||{}).stage||{},n.onframe=e.onframe||function(){},n}return Et(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._clipsHead?(this._clipsTail.next=t,t.prev=this._clipsTail,t.next=null,this._clipsTail=t):this._clipsHead=this._clipsTail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._clipsHead=n,n?n.prev=e:this._clipsTail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=(new Date).getTime()-this._pausedTime,n=e-this._time,i=this._clipsHead;i;){var r=i.next;i.step(e,n)?(i.ondestroy&&i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.onframe(n),this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,Ge(function e(){t._running&&(Ge(e),!t._paused&&t.update())})},e.prototype.start=function(){this._running||(this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._clipsHead;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._clipsHead=this._clipsTail=null},e.prototype.isFinished=function(){return null==this._clipsHead},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new Fn(t,e.loop);return this.addAnimator(n),n},e}(oe),zn=w.domSupported,Bn=(Rn={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:Pn=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:X(Pn,function(t){var e=t.replace("mouse","pointer");return Rn.hasOwnProperty(e)?e:t})}),Hn=["mousemove","mouseup"],jn=["pointermove","pointerup"],Gn=!1;function Un(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Wn(t){t&&(t.zrByTouch=!0)}function Yn(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var qn=function(t,e){this.stopPropagation=Tt,this.stopImmediatePropagation=Tt,this.preventDefault=Tt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Xn={mousedown:function(t){t=ye(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=ye(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=ye(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Yn(this,(t=ye(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Gn=!0,t=ye(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Gn||(t=ye(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Wn(t=ye(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Xn.mousemove.call(this,t),Xn.mousedown.call(this,t)},touchmove:function(t){Wn(t=ye(this.dom,t)),this.handler.processGesture(t,"change"),Xn.mousemove.call(this,t)},touchend:function(t){Wn(t=ye(this.dom,t)),this.handler.processGesture(t,"end"),Xn.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Xn.click.call(this,t)},pointerdown:function(t){Xn.mousedown.call(this,t)},pointermove:function(t){Un(t)||Xn.mousemove.call(this,t)},pointerup:function(t){Xn.mouseup.call(this,t)},pointerout:function(t){Un(t)||Xn.mouseout.call(this,t)}};q(["click","dblclick","contextmenu"],function(t){Xn[t]=function(e){e=ye(this.dom,e),this.trigger(t,e)}});var Zn={pointermove:function(t){Un(t)||Zn.mousemove.call(this,t)},pointerup:function(t){Zn.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function Kn(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,_e(t.domTarget,e,n,i)}function $n(t){var e,n,i,r=t.mounted;for(var o in r)r.hasOwnProperty(o)&&(e=t.domTarget,n=o,i=r[o],de?e.removeEventListener(n,i,t.listenerOpts[o]):e.detachEvent("on"+n,i));t.mounted={}}var Qn=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},Jn=function(t){function e(e,n){var i,r,o,a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=e,a.painterRoot=n,a._localHandlerScope=new Qn(e,Xn),zn&&(a._globalHandlerScope=new Qn(document,Zn)),i=a,o=(r=a._localHandlerScope).domHandlers,w.pointerEventsSupported?q(Bn.pointer,function(t){Kn(r,t,function(e){o[t].call(i,e)})}):(w.touchEventsSupported&&q(Bn.touch,function(t){Kn(r,t,function(e){o[t].call(i,e),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}(r)})}),q(Bn.mouse,function(t){Kn(r,t,function(e){e=ve(e),r.touching||o[t].call(i,e)})})),a}return Et(e,t),e.prototype.dispose=function(){$n(this._localHandlerScope),zn&&$n(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,zn&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?function(t,e){function n(n){Kn(e,n,function(i){i=ve(i),Yn(t,i.target)||(i=function(t,e){return ye(t.dom,new qn(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))},{capture:!0})}w.pointerEventsSupported?q(jn,n):w.touchEventsSupported||q(Hn,n)}(this,e):$n(e)}},e}(oe),ti=1;"undefined"!=typeof window&&(ti=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ei=ti,ni="#333",ii="#ccc";function ri(){return[1,0,0,1,0,0]}function oi(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function ai(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function si(t,e,n){var i=e[1]*n[0]+e[3]*n[1],r=e[0]*n[2]+e[2]*n[3],o=e[1]*n[2]+e[3]*n[3],a=e[0]*n[4]+e[2]*n[5]+e[4],s=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=e[0]*n[0]+e[2]*n[1],t[1]=i,t[2]=r,t[3]=o,t[4]=a,t[5]=s,t}function li(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function ui(t,e,n){var i=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),c=Math.cos(n);return t[0]=i*c+a*u,t[1]=-i*u+a*c,t[2]=r*c+s*u,t[3]=-r*u+c*s,t[4]=c*o+u*l,t[5]=c*l-u*o,t}function ci(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function hi(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(t[0]=a*(l=1/l),t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function di(t){var e=[1,0,0,1,0,0];return ai(e,t),e}var fi=oi;function pi(t){return t>5e-5||t<-5e-5}var gi,mi,vi=[],yi=[],_i=[1,0,0,1,0,0],bi=Math.abs,wi=function(){function t(){}return t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return pi(this.rotation)||pi(this.x)||pi(this.y)||pi(this.scaleX-1)||pi(this.scaleY-1)},t.prototype.updateTransform=function(){var t=this.parent,e=t&&t.transform,n=this.needLocalTransform(),i=this.transform;n||e?(i=i||[1,0,0,1,0,0],n?this.getLocalTransform(i):fi(i),e&&(n?si(i,t.transform,i):ai(i,t.transform)),this.transform=i,this._resolveGlobalScaleRatio(i)):i&&fi(i)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(vi);var n=vi[0]<0?-1:1,i=vi[1]<0?-1:1,r=((vi[0]-n)*e+n)/vi[0]||0,o=((vi[1]-i)*e+i)/vi[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],hi(this.invTransform,t)},t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(si(yi,t.invTransform,e),e=yi);var n=this.originX,i=this.originY;(n||i)&&(_i[4]=n,_i[5]=i,si(yi,e,_i),yi[4]-=n,yi[5]-=i,e=yi),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&te(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&te(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&bi(t[0]-1)>1e-10&&bi(t[3]-1)>1e-10?Math.sqrt(bi(t[0]*t[3]-t[2]*t[1])):1},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.rotation||0,s=t.x,l=t.y,u=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;return n||i?(e[4]=-n*r-u*i*o,e[5]=-i*o-c*n*r):e[4]=e[5]=0,e[0]=r,e[3]=o,e[1]=c*r,e[2]=u*o,a&&ui(e,e,a),e[4]+=n+s,e[5]+=i+l,e},t.initDefaultProps=function(){var e=t.prototype;e.x=0,e.y=0,e.scaleX=1,e.scaleY=1,e.originX=0,e.originY=0,e.skewX=0,e.skewY=0,e.rotation=0,e.globalScaleRatio=1}(),t}(),xi=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}(),ki=Math.min,Si=Math.max,Ci=new xi,Ai=new xi,Mi=new xi,Ii=new xi,Ti=new xi,Di=new xi,Ei=function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=ki(t.x,this.x),n=ki(t.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?Si(t.x+t.width,this.x+this.width)-e:t.width,this.height=isFinite(this.y)&&isFinite(this.height)?Si(t.y+t.height,this.y+this.height)-n:t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=[1,0,0,1,0,0];return li(r,r,[-e.x,-e.y]),ci(r,r,[n,i]),li(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,c=e.y,h=e.y+e.height,d=!(op&&(p=_,xi.set(Di,gp&&(p=b,xi.set(Di,0,v=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[5];return e.x=n.x*r+i[4],e.y=n.y*o+a,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Ci.x=Mi.x=n.x,Ci.y=Ii.y=n.y,Ai.x=Ii.x=n.x+n.width,Ai.y=Mi.y=n.y+n.height,Ci.transform(i),Ii.transform(i),Ai.transform(i),Mi.transform(i),e.x=ki(Ci.x,Ai.x,Mi.x,Ii.x),e.y=ki(Ci.y,Ai.y,Mi.y,Ii.y);var s=Si(Ci.x,Ai.x,Mi.x,Ii.x),l=Si(Ci.y,Ai.y,Mi.y,Ii.y);e.width=s-e.x,e.height=l-e.y}else e!==n&&t.copy(e,n)},t}(),Oi={},Pi="12px sans-serif";function Ri(t,e){var n=Oi[e=e||Pi];n||(n=Oi[e]=new Ze(500));var i=n.get(t);return null==i&&(i=function(t,e){return gi||(gi=j().getContext("2d")),mi!==e&&(mi=gi.font=e||Pi),gi.measureText(t)}(t,e).width,n.put(t,i)),i}function Li(t,e,n,i){var r=Ri(t,e),o=zi(e),a=Fi(0,r,n),s=Vi(0,o,i);return new Ei(a,s,r,o)}function Ni(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return Li(r[0],e,n,i);for(var o=new Ei(0,0,0,0),a=0;a=0?parseFloat(t)/100*e:parseFloat(t):t}function Hi(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(i instanceof Array)l+=Bi(i[0],n.width),u+=Bi(i[1],n.height),c=null,h=null;else switch(i){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+a,u+=s,h="middle";break;case"top":l+=a/2,u-=r,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=a-r,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",h="bottom"}return(t=t||{}).x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var ji="__zr_normal__",Gi=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],Ui={x:!0,y:!0,scaleX:!0,scaleY:!0,originX:!0,originY:!0,rotation:!0,ignore:!1},Wi={},Yi=new Ei(0,0,0,0),qi=function(){function t(t){this.id=L(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.attachedTransform,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.x=e.x,r.y=e.y,r.originX=e.originX,r.originY=e.originY,r.rotation=e.rotation,r.scaleX=e.scaleX,r.scaleY=e.scaleY,null!=n.position){var u=Yi;u.copy(n.layoutRect?n.layoutRect:this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Wi,n,u):Hi(Wi,n,u),r.x=Wi.x,r.y=Wi.y,o=Wi.align,a=Wi.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var h=void 0,d=void 0;"center"===c?(h=.5*u.width,d=.5*u.height):(h=Bi(c[0],u.width),d=Bi(c[1],u.height)),l=!0,r.originX=-r.x+h+(i?0:u.x),r.originY=-r.y+d+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var f=n.offset;f&&(r.x+=f[0],r.y+=f[1],l||(r.originX=-f[0],r.originY=-f[1]));var p=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,v=void 0,y=void 0;p&&this.canBeInsideText()?(v=n.insideStroke,null!=(m=n.insideFill)&&"auto"!==m||(m=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(m),y=!0)):(v=n.outsideStroke,null!=(m=n.outsideFill)&&"auto"!==m||(m=this.getOutsideFill()),null!=v&&"auto"!==v||(v=this.getOutsideStroke(m),y=!0)),(m=m||"#000")===g.fill&&v===g.stroke&&y===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=m,g.stroke=v,g.autoStroke=y,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=1,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ii:ni},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&un(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,_n(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},B(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(at(t))for(var n=Q(t),i=0;i0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(ji,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===ji;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!(G(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,c=this._textGuide;return u&&u.useState(t,e,n,l),c&&c.useState(t,e,n,l),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}N("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s0,f);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=G(i,t),o=G(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i=0&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o8)&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),t}();function Xi(t,e,n,i,r){var o=[];$i(t,"",t,e,n=n||{},i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},h=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var d=0;d0||r.force&&!a.length){for(var y=t.animators,_=[],b=0;b=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=G(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.addHover=function(t){},t.prototype.removeHover=function(t){},t.prototype.clearHover=function(){},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){this.painter.resize((t=t||{}).width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.pathToImage=function(t,e){if(this.painter.pathToImage)return this.painter.pathToImage(t,e)},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e0){if(t<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function dr(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function fr(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function pr(t){return t.sort(function(t,e){return t-e}),t}function gr(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return mr(t)}function mr(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf(".");return Math.max(0,(o<0?0:r-1-o)-i)}function vr(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function yr(t,e,n){if(!t[e])return 0;var i=Z(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===i)return 0;for(var r=Math.pow(10,n),o=X(t,function(t){return(isNaN(t)?0:t)/i*r*100}),a=100*r,s=X(o,function(t){return Math.floor(t)}),l=Z(s,function(t,e){return t+e},0),u=X(o,function(t,e){return t-s[e]});lc&&(c=u[d],h=d);++s[h],u[h]=0,++l}return s[e]/r}function _r(t,e){var n=Math.max(gr(t),gr(e)),i=t+e;return n>20?i:fr(i,n)}var br=9007199254740991;function wr(t){var e=2*Math.PI;return(t%e+e)%e}function xr(t){return t>-1e-4&&t<1e-4}var kr=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Sr(t){if(t instanceof Date)return t;if("string"==typeof t){var e=kr.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,+e[7]||0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0)}return null==t?new Date(NaN):new Date(Math.round(t))}function Cr(t){return Math.pow(10,Ar(t))}function Ar(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function Mr(t,e){var n=Ar(t),i=Math.pow(10,n),r=t/i;return t=(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,n>=-20?+t.toFixed(n<0?-n:0):t}function Ir(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function Tr(t){t.sort(function(t,e){return s(t,e,0)?-1:1});for(var e=-1/0,n=1,i=0;i=0||r&&G(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var go=po([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),mo=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return go(this,t,e)},t}(),vo=new Ze(50);function yo(t){if("string"==typeof t){var e=vo.get(t);return e&&e.image}return t}function _o(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=vo.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?!wo(e=o.image)&&o.pending.push(a):((e=new Image).onload=e.onerror=bo,vo.put(t,e.__cachedImgObj={image:e,pending:[a]}),e.src=e.__zrImageSrc=t),e}return t}return e}function bo(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=a;l++)s-=a;var u=Ri(n,e);return u>s&&(n="",u=0),s=t-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=t,r}function Co(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=Ri(t,i);if(o<=n)return t;for(var a=0;;a++){if(o<=r||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?Ao(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;o=Ri(t=t.substr(0,s),i)}return""===t&&(t=e.placeholder),t}function Ao(t,e,n,i){for(var r=0,o=0,a=t.length;o0&&p+i.accumWidth>i.width&&(o=e.split("\n"),h=!0),i.accumWidth=p}else{var g=Po(e,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+f,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var m=0;m=33&&e<=255}(t)||!!Eo[t]}function Po(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;hn:r+c+f>n)?c?(s||l)&&(p?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=d,s="",c=u+=f):(l&&(s+=l,c+=u,l="",u=0),o.push(s),a.push(c),s=d,c=f)):p?(o.push(l),a.push(u),l=d,u=f):(o.push(d),a.push(f)):(c+=f,p?(l+=d,u+=f):(l&&(s+=l,l="",u=0),s+=d))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=r),{accumWidth:c,lines:o,linesWidths:a}}var Ro="__zr_style_"+Math.round(10*Math.random()),Lo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},No={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Lo[Ro]=!0;var Fo=["z","z2","invisible"],Vo=["invisible"],zo=function(t){function e(e){return t.call(this,e)||this}var n;return Et(e,t),e.prototype._init=function(e){for(var n=Q(e),i=0;i-1e-8&&t<1e-8}function Qo(t){return t>1e-8||t<-1e-8}function Jo(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function ta(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function ea(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,c=s*s-3*a*l,h=s*l-9*a*u,d=l*l-3*s*u,f=0;if($o(c)&&$o(h))$o(s)?o[0]=0:(S=-l/s)>=0&&S<=1&&(o[f++]=S);else{var p=h*h-4*c*d;if($o(p)){var g=h/c,m=-g/2;(S=-s/a+g)>=0&&S<=1&&(o[f++]=S),m>=0&&m<=1&&(o[f++]=m)}else if(p>0){var v=Uo(p),y=c*s+1.5*a*(-h+v),_=c*s+1.5*a*(-h-v);(S=(-s-((y=y<0?-Go(-y,qo):Go(y,qo))+(_=_<0?-Go(-_,qo):Go(_,qo))))/(3*a))>=0&&S<=1&&(o[f++]=S)}else{var b=(2*c*s-3*a*h)/(2*Uo(c*c*c)),w=Math.acos(b)/3,x=Uo(c),k=Math.cos(w),S=(-s-2*x*k)/(3*a),C=(m=(-s+x*(k+Yo*Math.sin(w)))/(3*a),(-s+x*(k-Yo*Math.sin(w)))/(3*a));S>=0&&S<=1&&(o[f++]=S),m>=0&&m<=1&&(o[f++]=m),C>=0&&C<=1&&(o[f++]=C)}}return f}function na(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if($o(a))Qo(o)&&(c=-s/o)>=0&&c<=1&&(r[l++]=c);else{var u=o*o-4*a*s;if($o(u))r[0]=-o/(2*a);else if(u>0){var c,h=Uo(u),d=(-o-h)/(2*a);(c=(-o+h)/(2*a))>=0&&c<=1&&(r[l++]=c),d>=0&&d<=1&&(r[l++]=d)}}return l}function ia(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=i}function ra(t,e,n,i,r,o,a,s,l,u,c){var h,d,f,p,g,m=.005,v=1/0;Xo[0]=l,Xo[1]=u;for(var y=0;y<1;y+=.05)Zo[0]=Jo(t,n,r,a,y),Zo[1]=Jo(e,i,o,s,y),(p=$t(Xo,Zo))=0&&p=0&&m1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(va[0]=ga(r)*n+t,va[1]=pa(r)*i+e,ya[0]=ga(o)*n+t,ya[1]=pa(o)*i+e,u(s,va,ya),c(l,va,ya),(r%=ma)<0&&(r+=ma),(o%=ma)<0&&(o+=ma),r>o&&!a?o+=ma:rr&&(_a[0]=ga(f)*n+t,_a[1]=pa(f)*i+e,u(s,_a,s),c(l,_a,l))}var Ma={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ia=[],Ta=[],Da=[],Ea=[],Oa=[],Pa=[],Ra=Math.min,La=Math.max,Na=Math.cos,Fa=Math.sin,Va=Math.sqrt,za=Math.abs,Ba=Math.PI,Ha=2*Ba,ja="undefined"!=typeof Float32Array,Ga=[];function Ua(t){return Math.round(t/Ba*1e8)/1e8%2*Ba}function Wa(t,e){var n=Ua(t[0]);n<0&&(n+=Ha);var i=t[1];i+=n-t[0],!e&&i-n>=Ha?i=n+Ha:e&&n-i>=Ha?i=n-Ha:!e&&n>i?i=n+(Ha-Ua(n-i)):e&&n0&&(this._ux=za(n/ei/t)||0,this._uy=za(n/ei/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Ma.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=za(t-this._xi),i=za(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(Ma.L,t,e),this._ctx&&r&&(this._needsDash?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this.addData(Ma.C,t,e,n,i,r,o),this._ctx&&(this._needsDash?this._dashedBezierTo(t,e,n,i,r,o):this._ctx.bezierCurveTo(t,e,n,i,r,o)),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this.addData(Ma.Q,t,e,n,i),this._ctx&&(this._needsDash?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){return Ga[0]=i,Ga[1]=r,Wa(Ga,o),this.addData(Ma.A,t,e,n,n,i=Ga[0],(r=Ga[1])-i,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=Na(r)*n+t,this._yi=Fa(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Ma.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ma.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.setLineDash=function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,n=0;nu.length&&(this._expandData(),u=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e0&&f<=t||c<0&&f>=t||0===c&&(h>0&&p<=e||h<0&&p>=e);)f+=c*(n=o[i=this._dashIdx]),p+=h*n,this._dashIdx=(i+1)%g,c>0&&fl||h>0&&pu||a[i%2?"moveTo":"lineTo"](c>=0?Ra(f,t):La(f,t),h>=0?Ra(p,e):La(p,e));this._dashOffset=-Va((c=f-t)*c+(h=p-e)*h)},t.prototype._dashedBezierTo=function(t,e,n,i,r,o){var a,s,l,u,c,h=this._ctx,d=this._dashSum,f=this._dashOffset,p=this._lineDash,g=this._xi,m=this._yi,v=0,y=this._dashIdx,_=p.length,b=0;for(f<0&&(f=d+f),f%=d,a=0;a<1;a+=.1)s=Jo(g,t,n,r,a+.1)-Jo(g,t,n,r,a),l=Jo(m,e,i,o,a+.1)-Jo(m,e,i,o,a),v+=Va(s*s+l*l);for(;y<_&&!((b+=p[y])>f);y++);for(a=(b-f)/v;a<=1;)u=Jo(g,t,n,r,a),c=Jo(m,e,i,o,a),y%2?h.moveTo(u,c):h.lineTo(u,c),a+=p[y]/v,y=(y+1)%_;y%2!=0&&h.lineTo(r,o),this._dashOffset=-Va((s=r-u)*s+(l=o-c)*l)},t.prototype._dashedQuadraticTo=function(t,e,n,i){var r=n,o=i;n=(n+2*t)/3,i=(i+2*e)/3,this._dashedBezierTo(t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,n,i,r,o)},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,ja&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){Da[0]=Da[1]=Oa[0]=Oa[1]=Number.MAX_VALUE,Ea[0]=Ea[1]=Pa[0]=Pa[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;tn||za(m)>i||h===e-1)&&(p=Math.sqrt(T*T+m*m),r=g,o=_);break;case Ma.C:var v=t[h++],y=t[h++],_=(g=t[h++],t[h++]),b=t[h++],w=t[h++];p=oa(r,o,v,y,g,_,b,w,10),r=b,o=w;break;case Ma.Q:p=ha(r,o,v=t[h++],y=t[h++],g=t[h++],_=t[h++],10),r=g,o=_;break;case Ma.A:var x=t[h++],k=t[h++],S=t[h++],C=t[h++],A=t[h++],M=t[h++],I=M+A;h+=1,h++,f&&(a=Na(A)*S+x,s=Fa(A)*C+k),p=La(S,C)*Ra(Ha,Math.abs(M)),r=Na(I)*S+x,o=Fa(I)*C+k;break;case Ma.R:a=r=t[h++],s=o=t[h++],p=2*t[h++]+2*t[h++];break;case Ma.Z:var T=a-r;m=s-o,p=Math.sqrt(T*T+m*m),r=a,o=s}p>=0&&(l[c++]=p,u+=p)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,c,h,d=this.data,f=this._ux,p=this._uy,g=this._len,m=e<1,v=0,y=0,_=0;if(!m||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var b=0;b0&&(t.lineTo(c,h),_=0),n=r=d[b++],i=o=d[b++],t.moveTo(r,o);break;case Ma.L:a=d[b++],s=d[b++];var k=za(a-r),S=za(s-o);if(k>f||S>p){if(m){if(v+(q=l[y++])>u){t.lineTo(r*(1-(X=(u-v)/q))+a*X,o*(1-X)+s*X);break t}v+=q}t.lineTo(a,s),r=a,o=s,_=0}else{var C=k*k+S*S;C>_&&(c=a,h=s,_=C)}break;case Ma.C:var A=d[b++],M=d[b++],I=d[b++],T=d[b++],D=d[b++],E=d[b++];if(m){if(v+(q=l[y++])>u){ia(r,A,I,D,X=(u-v)/q,Ia),ia(o,M,T,E,X,Ta),t.bezierCurveTo(Ia[1],Ta[1],Ia[2],Ta[2],Ia[3],Ta[3]);break t}v+=q}t.bezierCurveTo(A,M,I,T,D,E),r=D,o=E;break;case Ma.Q:if(A=d[b++],M=d[b++],I=d[b++],T=d[b++],m){if(v+(q=l[y++])>u){ua(r,A,I,X=(u-v)/q,Ia),ua(o,M,T,X,Ta),t.quadraticCurveTo(Ia[1],Ta[1],Ia[2],Ta[2]);break t}v+=q}t.quadraticCurveTo(A,M,I,T),r=I,o=T;break;case Ma.A:var O=d[b++],P=d[b++],R=d[b++],L=d[b++],N=d[b++],F=d[b++],V=d[b++],z=!d[b++],B=R>L?R:L,H=za(R-L)>.001,j=N+F,G=!1;if(m&&(v+(q=l[y++])>u&&(j=N+F*(u-v)/q,G=!0),v+=q),H&&t.ellipse?t.ellipse(O,P,R,L,V,N,j,z):t.arc(O,P,B,N,j,z),G)break t;x&&(n=Na(N)*R+O,i=Fa(N)*L+P),r=Na(j)*R+O,o=Fa(j)*L+P;break;case Ma.R:n=r=d[b],i=o=d[b+1],a=d[b++],s=d[b++];var U=d[b++],W=d[b++];if(m){if(v+(q=l[y++])>u){var Y=u-v;t.moveTo(a,s),t.lineTo(a+Ra(Y,U),s),(Y-=U)>0&&t.lineTo(a+U,s+Ra(Y,W)),(Y-=W)>0&&t.lineTo(a+La(U-Y,0),s+W),(Y-=U)>0&&t.lineTo(a,s+La(W-Y,0));break t}v+=q}t.rect(a,s,U,W);break;case Ma.Z:if(_>0&&(t.lineTo(c,h),_=0),m){var q;if(v+(q=l[y++])>u){var X;t.lineTo(r*(1-(X=(u-v)/q))+n*X,o*(1-X)+i*X);break t}v+=q}t.closePath(),r=n,o=i}}},t.CMD=Ma,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._needsDash=!1,e._dashOffset=0,e._dashIdx=0,e._dashSum=0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();function qa(t,e,n,i,r,o,a){if(0===r)return!1;var s,l=r;if(a>e+l&&a>i+l||at+l&&o>n+l||oe+h&&c>i+h&&c>o+h&&c>s+h||ct+h&&u>n+h&&u>r+h&&u>a+h||ue+u&&l>i+u&&l>o+u||lt+u&&s>n+u&&s>r+u||sn||c+ur&&(r+=Qa);var d=Math.atan2(l,s);return d<0&&(d+=Qa),d>=i&&d<=r||d+Qa>=i&&d+Qa<=r}function ts(t,e,n,i,r,o){if(o>e&&o>i||or?s:0}var es=Ya.CMD,ns=2*Math.PI,is=[-1,-1,-1],rs=[-1,-1];function os(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||u1&&(c=rs[0],rs[0]=rs[1],rs[1]=c),p=Jo(e,i,o,s,rs[0]),f>1&&(g=Jo(e,i,o,s,rs[1]))),d+=2===f?ve&&s>i&&s>o||s=0&&c<=1&&(r[l++]=c);else{var u=a*a-4*o*s;if($o(u))(c=-a/(2*o))>=0&&c<=1&&(r[l++]=c);else if(u>0){var c,h=Uo(u),d=(-a-h)/(2*o);(c=(-a+h)/(2*o))>=0&&c<=1&&(r[l++]=c),d>=0&&d<=1&&(r[l++]=d)}}return l}(e,i,o,s,is);if(0===l)return 0;var u=la(e,i,o);if(u>=0&&u<=1){for(var c=0,h=aa(e,i,o,u),d=0;dn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);is[0]=-l,is[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=ns-1e-4){i=0,r=ns;var c=o?1:-1;return a>=is[0]+t&&a<=is[1]+t?c:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=ns,r+=ns);for(var d=0,f=0;f<2;f++){var p=is[f];if(p+t>a){var g=Math.atan2(s,p);c=o?1:-1,g<0&&(g=ns+g),(g>=i&&g<=r||g+ns>=i&&g+ns<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),d+=c)}}return d}function ls(t,e,n,i,r){for(var o,a,s=t.data,l=t.len(),u=0,c=0,h=0,d=0,f=0,p=0;p1&&(n||(u+=ts(c,h,d,f,i,r))),m&&(d=c=s[p],f=h=s[p+1]),g){case es.M:c=d=s[p++],h=f=s[p++];break;case es.L:if(n){if(qa(c,h,s[p],s[p+1],e,i,r))return!0}else u+=ts(c,h,s[p],s[p+1],i,r)||0;c=s[p++],h=s[p++];break;case es.C:if(n){if(Xa(c,h,s[p++],s[p++],s[p++],s[p++],s[p],s[p+1],e,i,r))return!0}else u+=os(c,h,s[p++],s[p++],s[p++],s[p++],s[p],s[p+1],i,r)||0;c=s[p++],h=s[p++];break;case es.Q:if(n){if(Za(c,h,s[p++],s[p++],s[p],s[p+1],e,i,r))return!0}else u+=as(c,h,s[p++],s[p++],s[p],s[p+1],i,r)||0;c=s[p++],h=s[p++];break;case es.A:var v=s[p++],y=s[p++],_=s[p++],b=s[p++],w=s[p++],x=s[p++];p+=1;var k=!!(1-s[p++]);o=Math.cos(w)*_+v,a=Math.sin(w)*b+y,m?(d=o,f=a):u+=ts(c,h,o,a,i,r);var S=(i-v)*b/_+v;if(n){if(Ja(v,y,b,w,w+x,k,e,S,r))return!0}else u+=ss(v,y,b,w,w+x,k,S,r);c=Math.cos(w+x)*_+v,h=Math.sin(w+x)*b+y;break;case es.R:if(d=c=s[p++],f=h=s[p++],o=d+s[p++],a=f+s[p++],n){if(qa(d,f,o,f,e,i,r)||qa(o,f,o,a,e,i,r)||qa(o,a,d,a,e,i,r)||qa(d,a,d,f,e,i,r))return!0}else u+=ts(o,f,o,a,i,r),u+=ts(d,a,d,f,i,r);break;case es.Z:if(n){if(qa(c,h,d,f,e,i,r))return!0}else u+=ts(c,h,d,f,i,r);c=d,h=f}}return n||Math.abs(h-f)<1e-4||(u+=ts(c,h,d,f,i,r)||0),0!==u}var us=H({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Lo),cs={style:H({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},No.style)},hs=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],ds=function(t){function e(e){return t.call(this,e)||this}var n;return Et(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s.5?ni:e>.2?"#eee":ii}if(t)return ii}return ni},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(it(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==bn(t,0)<.4)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=-5},e.prototype.createPathProxy=function(){this.path=new Ya(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||4&this.__dirty)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(i.contain(t=n[0],e=n[1])){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,i){return ls(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return ls(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:B(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(4&this.__dirty)},e.prototype.createStyle=function(t){return Mt(us,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=B({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=B({},i.shape),B(s,n.shape)):(s=B({},r?this.shape:i.shape),B(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=B({},this.shape);for(var u={},c=Q(s),h=0;h0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return Mt(fs,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=Ni(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(jo);ps.prototype.type="tspan";var gs=ps,ms=H({x:0,y:0},Lo),vs={style:H({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},No.style)},ys=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Et(e,t),e.prototype.createStyle=function(t){return Mt(ms,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i,r=(i=e.image)&&"string"!=typeof i&&i.width&&i.height?e.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return vs},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Ei(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(jo);ys.prototype.type="image";var _s=ys,bs=Math.round;function ws(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(bs(2*i)===bs(2*r)&&(t.x1=t.x2=ks(i,s,!0)),bs(2*o)===bs(2*a)&&(t.y1=t.y2=ks(o,s,!0)),t):t}}function xs(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=ks(i,s,!0),t.y=ks(r,s,!0),t.width=Math.max(ks(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(ks(r+a,s,!1)-t.y,0===a?0:1),t):t}}function ks(t,e,n){if(!e)return t;var i=bs(2*t);return(i+bs(e))%2==0?i/2:(i+(n?1:-1))/2}var Ss=function(){this.x=0,this.y=0,this.width=0,this.height=0},Cs={},As=function(t){function e(e){return t.call(this,e)||this}return Et(e,t),e.prototype.getDefaultShape=function(){return new Ss},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=xs(Cs,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?function(t,e){var n,i,r,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof h?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0,n+i>u&&(n*=u/(a=n+i),i*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),i+r>c&&(i*=c/(a=i+r),r*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+c-r),0!==r&&t.arc(s+u-r,l+c-r,r,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,i,r,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(ds);As.prototype.type="rect";var Ms=As,Is={fill:"#000"},Ts={style:H({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},No.style)},Ds=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Is,n.attr(e),n}return Et(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){this.styleChanged()&&this._updateSubTexts();for(var e=0;ed&&u){var f=Math.floor(d/l);n=n.slice(0,f)}var p=d,g=c;if(r&&(p+=r[0]+r[2],null!=g&&(g+=r[1]+r[3])),t&&a&&null!=g)for(var m=So(c,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;v0,C=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),A=i.calculatedLineHeight,M=0;Ml&&Do(n,t.substring(l,u),e,s),Do(n,i[2],e,s,i[1]),l=xo.lastIndex}lo){w>0?(y.tokens=y.tokens.slice(0,w),m(y,b,_),n.lines=n.lines.slice(0,v+1)):n.lines=n.lines.slice(0,v);break t}var M=x.width,I=null==M||"auto"===M;if("string"==typeof M&&"%"===M.charAt(M.length-1))O.percentWidth=M,c.push(O),O.contentWidth=Ri(O.text,C);else{if(I){var T=x.backgroundColor,D=T&&T.image;D&&wo(D=yo(D))&&(O.width=Math.max(O.width,D.width*A/D.height))}var E=p&&null!=r?r-b:null;null!=E&&E=0&&"right"===(C=v[S]).align;)this._placeToken(C,t,_,d,k,"right",p),b-=C.width,k-=C.width,S--;for(x+=(n-(x-h)-(f-k)-b)/2;w<=S;)this._placeToken(C=v[w],t,_,d,x+C.width/2,"center",p),x+=C.width,w++;d+=_}},e.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&Fs(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var c=!!s.backgroundColor,h=t.textPadding;h&&(r=Ls(r,o,h),u-=t.height/2-h[0]-t.innerHeight/2);var d=this._getOrCreateChild(gs),f=d.createStyle();d.useStyle(f);var p=this._defaultStyle,g=!1,m=0,v=Rs("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,p.fill)),y=Rs("stroke"in s?s.stroke:"stroke"in e?e.stroke:c||a||p.autoStroke&&!g?null:(m=2,p.stroke)),_=s.textShadowBlur>0||e.textShadowBlur>0;f.text=t.text,f.x=r,f.y=u,_&&(f.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,f.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",f.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,f.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),f.textAlign=o,f.textBaseline="middle",f.font=t.font||Pi,f.opacity=mt(s.opacity,e.opacity,1),y&&(f.lineWidth=mt(s.lineWidth,e.lineWidth,m),f.lineDash=gt(s.lineDash,e.lineDash),f.lineDashOffset=e.lineDashOffset||0,f.stroke=y),v&&(f.fill=v);var b=t.contentWidth,w=t.contentHeight;d.setBoundingRect(new Ei(Fi(f.x,b,f.textAlign),Vi(f.y,w,f.textBaseline),b,w))},e.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l,u=t.backgroundColor,c=t.borderWidth,h=t.borderColor,d=u&&u.image,f=u&&!d,p=t.borderRadius,g=this;if(f||c&&h){(a=this._getOrCreateChild(Ms)).useStyle(a.createStyle()),a.style.fill=null;var m=a.shape;m.x=n,m.y=i,m.width=r,m.height=o,m.r=p,a.dirtyShape()}if(f)(l=a.style).fill=u||null,l.fillOpacity=gt(t.fillOpacity,1);else if(d){(s=this._getOrCreateChild(_s)).onload=function(){g.dirtyStyle()};var v=s.style;v.image=u.image,v.x=n,v.y=i,v.width=r,v.height=o}c&&h&&((l=a.style).lineWidth=c,l.stroke=h,l.strokeOpacity=gt(t.strokeOpacity,1),l.lineDash=t.borderDash,l.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var y=(a||s).style;y.shadowBlur=t.shadowBlur||0,y.shadowColor=t.shadowColor||"transparent",y.shadowOffsetX=t.shadowOffsetX||0,y.shadowOffsetY=t.shadowOffsetY||0,y.opacity=mt(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";if(t.fontSize||t.fontFamily||t.fontWeight){var n="";n="string"!=typeof t.fontSize||-1===t.fontSize.indexOf("px")&&-1===t.fontSize.indexOf("rem")&&-1===t.fontSize.indexOf("em")?isNaN(+t.fontSize)?"12px":t.fontSize+"px":t.fontSize,e=[t.fontStyle,t.fontWeight,n,t.fontFamily||"sans-serif"].join(" ")}return e&&bt(e)||t.textFont||t.font},e}(jo),Es={left:!0,right:1,center:1},Os={top:1,bottom:1,middle:1};function Ps(t){if(t){t.font=Ds.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||Es[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||Os[n]?n:"top",t.padding&&(t.padding=yt(t.padding))}}function Rs(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Ls(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Ns(t){var e=t.text;return null!=e&&(e+=""),e}function Fs(t){return!!(t.backgroundColor||t.borderWidth&&t.borderColor)}var Vs=Ds,zs=qr(),Bs=1,Hs={},js=qr(),Gs=["emphasis","blur","select"],Us=["normal","emphasis","blur","select"],Ws="highlight",Ys="downplay",qs="select",Xs="unselect",Zs="toggleSelect";function Ks(t){return null!=t&&"none"!==t}var $s=new Ze(100);function Qs(t){if("string"!=typeof t)return t;var e=$s.get(t);return e||(e=hn(t,-.1),$s.put(t,e)),e}function Js(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function tl(t){Js(t,"emphasis",2)}function el(t){2===t.hoverState&&Js(t,"normal",0)}function nl(t){Js(t,"blur",1)}function il(t){1===t.hoverState&&Js(t,"normal",0)}function rl(t){t.selected=!0}function ol(t){t.selected=!1}function al(t,e,n){e(t,n)}function sl(t,e,n){al(t,e,n),t.isGroup&&t.traverse(function(t){al(t,e,n)})}function ll(t,e){switch(e){case"emphasis":t.hoverState=2;break;case"normal":t.hoverState=0;break;case"blur":t.hoverState=1;break;case"select":t.selected=!0}}function ul(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,i){var r=n&&G(n,"select")>=0,o=!1;if(t instanceof ds){var a=js(t),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(Ks(s)||Ks(l)){var u=(i=i||{}).style||{};!Ks(u.fill)&&Ks(s)?(o=!0,i=B({},i),(u=B({},u)).fill=Qs(s)):!Ks(u.stroke)&&Ks(l)&&(o||(i=B({},i),u=B({},u)),u.stroke=Qs(l)),i.style=u}}if(i&&null==i.z2){o||(i=B({},i));var c=t.z2EmphasisLift;i.z2=t.z2+(null!=c?c:10)}return i}(this,0,e,n);if("blur"===t)return function(t,e,n){var i=G(t.currentStates,e)>=0,r=t.style.opacity,o=i?null:function(t,e,n,i){for(var r=t.style,o={},a=0;a0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}})}),e}function Al(t,e,n){El(t,!0),sl(t,cl),Ml(t,e,n)}function Ml(t,e,n){var i=zs(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}var Il=["emphasis","blur","select"],Tl={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Dl(t,e,n,i){n=n||"itemStyle";for(var r=0;r1&&(a*=zl(p),s*=zl(p));var g=(r===o?-1:1)*zl((a*a*(s*s)-a*a*(f*f)-s*s*(d*d))/(a*a*(f*f)+s*s*(d*d)))||0,m=g*a*f/s,v=g*-s*d/a,y=(t+n)/2+Hl(h)*m-Bl(h)*v,_=(e+i)/2+Bl(h)*m+Hl(h)*v,b=Wl([1,0],[(d-m)/a,(f-v)/s]),w=[(d-m)/a,(f-v)/s],x=[(-1*d-m)/a,(-1*f-v)/s],k=Wl(w,x);if(Ul(w,x)<=-1&&(k=jl),Ul(w,x)>=1&&(k=0),k<0){var S=Math.round(k/jl*1e6)/1e6;k=2*jl+S%2*jl}c.addData(u,y,_,a,s,b,k,h,o)}var ql=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Xl=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,Zl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Et(e,t),e.prototype.applyTransform=function(t){},e}(ds);function Kl(t){return null!=t.setData}function $l(t,e){var n=function(t){var e=new Ya;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=Ya.CMD,l=t.match(ql);if(!l)return e;for(var u=0;uD*D+E*E&&(S=A,C=M),{cx:S,cy:C,x01:-c,y01:-h,x11:S*(r/w-1),y11:C*(r/w-1)}}var vu=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0,this.innerCornerRadius=0},yu=function(t){function e(e){return t.call(this,e)||this}return Et(e,t),e.prototype.getDefaultShape=function(){return new vu},e.prototype.buildPath=function(t,e){!function(t,e){var n=fu(e.r,0),i=fu(e.r0||0,0),r=n>0;if(r||i>0){if(r||(n=i,i=0),i>n){var o=n;n=i,i=o}var a,s=!!e.clockwise,l=e.startAngle,u=e.endAngle;if(l===u)a=0;else{var c=[l,u];Wa(c,!s),a=hu(c[0]-c[1])}var h=e.cx,d=e.cy,f=e.cornerRadius||0,p=e.innerCornerRadius||0;if(n>gu)if(a>au-gu)t.moveTo(h+n*lu(l),d+n*su(l)),t.arc(h,d,n,l,u,!s),i>gu&&(t.moveTo(h+i*lu(u),d+i*su(u)),t.arc(h,d,i,u,l,s));else{var g=hu(n-i)/2,m=pu(g,f),v=pu(g,p),y=v,_=m,b=n*lu(l),w=n*su(l),x=i*lu(u),k=i*su(u),S=void 0,C=void 0,A=void 0,M=void 0;if((m>gu||v>gu)&&(S=n*lu(u),C=n*su(u),A=i*lu(l),M=i*su(l),agu)if(_>gu){var L=mu(A,M,b,w,n,_,s),N=mu(S,C,x,k,n,_,s);t.moveTo(h+L.cx+L.x01,d+L.cy+L.y01),_gu&&a>gu?y>gu?(L=mu(x,k,S,C,i,-y,s),N=mu(b,w,A,M,i,-y,s),t.lineTo(h+L.cx+L.x01,d+L.cy+L.y01),y=2){if(i&&"spline"!==i){var o=function(t,e,n,i){var r,o,a,s,l=[],u=[],c=[],h=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,f=t.length;dn-2?n-1:l+1],f=t[l>n-3?n-1:l+2]);var p=u*u,g=u*p;i.push([ku(c[0],h[0],d[0],f[0],u,p,g),ku(c[1],h[1],d[1],f[1],u,p,g)])}return i}(r,n)),t.moveTo(r[0][0],r[0][1]),s=1;for(var h=r.length;sXu[1]){if(a=!1,r)return a;var u=Math.abs(Xu[0]-qu[1]),c=Math.abs(qu[0]-Xu[1]);Math.min(u,c)>i.len()&&xi.scale(i,l,u0?l?e.animateFrom(n,{duration:p,delay:m||0,easing:g,done:o,force:!!o||!!a,scope:t,during:a}):e.animateTo(n,{duration:p,delay:m||0,easing:g,done:o,force:!!o||!!a,setToFinal:!0,scope:t,during:a}):(e.stopAnimation(),!l&&e.attr(n),o&&o())}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function mc(t,e,n,i,r,o){gc("update",t,e,n,i,r,o)}function vc(t,e,n,i,r,o){gc("init",t,e,n,i,r,o)}function yc(t,e,n,i,r,o){wc(t)||gc("remove",t,e,n,i,r,o)}function _c(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),yc(t,{style:{opacity:0}},e,n,i)}function bc(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||_c(t,e,n,i)}):_c(t,e,n,i)}function wc(t){if(!t.__zr)return!0;for(var e=0;eMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Cc(t){return!t.isGroup}function Ac(t,e,n){if(t&&e){var i,r=(i={},t.traverse(function(t){Cc(t)&&t.anid&&(i[t.anid]=t)}),i);e.traverse(function(t){if(Cc(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),mc(t,i,n,zs(t).dataIndex)}}})}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=B({},t.shape)),e}}function Mc(t,e){return X(t,function(t){var n=t[0];n=tc(n,e.x),n=ec(n,e.x+e.width);var i=t[1];return i=tc(i,e.y),[n,i=ec(i,e.y+e.height)]})}function Ic(t,e){var n=tc(t.x,e.x),i=ec(t.x+t.width,e.x+e.width),r=tc(t.y,e.y),o=ec(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function Tc(t,e,n){var i=B({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),H(r,n),new _s(i)):sc(t.replace("path://",""),i,n,"center")}function Dc(t,e,n,i,r){for(var o=0,a=r[r.length-1];o=-1e-6)return!1;var p=t-r,g=e-o,m=Oc(p,g,u,c)/f;if(m<0||m>1)return!1;var v=Oc(p,g,h,d)/f;return!(v<0||v>1)}function Oc(t,e,n,i){return t*i-n*e}function Pc(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=it(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&q(Q(l),function(t){It(s,t)||(s[t]=l[t],s.$vars.push(t))});var u=zs(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:H({content:i,formatterParams:s},r)}}oc("circle",eu),oc("ellipse",ru),oc("sector",_u),oc("ring",xu),oc("polygon",Mu),oc("polyline",Du),oc("rect",Ms),oc("line",Ru),oc("bezierCurve",zu),oc("arc",ju);var Rc={};function Lc(t,e){for(var n=0;n-1?hh:"EN";function gh(t,e){t=t.toUpperCase(),fh[t]=new sh(e),dh[t]=e}gh("EN",{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),gh(hh,{time:{month:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],dayOfWeekAbbr:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53cd\u9009"}},toolbox:{brush:{title:{rect:"\u77e9\u5f62\u9009\u62e9",polygon:"\u5708\u9009",lineX:"\u6a2a\u5411\u9009\u62e9",lineY:"\u7eb5\u5411\u9009\u62e9",keep:"\u4fdd\u6301\u9009\u62e9",clear:"\u6e05\u9664\u9009\u62e9"}},dataView:{title:"\u6570\u636e\u89c6\u56fe",lang:["\u6570\u636e\u89c6\u56fe","\u5173\u95ed","\u5237\u65b0"]},dataZoom:{title:{zoom:"\u533a\u57df\u7f29\u653e",back:"\u533a\u57df\u7f29\u653e\u8fd8\u539f"}},magicType:{title:{line:"\u5207\u6362\u4e3a\u6298\u7ebf\u56fe",bar:"\u5207\u6362\u4e3a\u67f1\u72b6\u56fe",stack:"\u5207\u6362\u4e3a\u5806\u53e0",tiled:"\u5207\u6362\u4e3a\u5e73\u94fa"}},restore:{title:"\u8fd8\u539f"},saveAsImage:{title:"\u4fdd\u5b58\u4e3a\u56fe\u7247",lang:["\u53f3\u952e\u53e6\u5b58\u4e3a\u56fe\u7247"]}},series:{typeNames:{pie:"\u997c\u56fe",bar:"\u67f1\u72b6\u56fe",line:"\u6298\u7ebf\u56fe",scatter:"\u6563\u70b9\u56fe",effectScatter:"\u6d9f\u6f2a\u6563\u70b9\u56fe",radar:"\u96f7\u8fbe\u56fe",tree:"\u6811\u56fe",treemap:"\u77e9\u5f62\u6811\u56fe",boxplot:"\u7bb1\u578b\u56fe",candlestick:"K\u7ebf\u56fe",k:"K\u7ebf\u56fe",heatmap:"\u70ed\u529b\u56fe",map:"\u5730\u56fe",parallel:"\u5e73\u884c\u5750\u6807\u56fe",lines:"\u7ebf\u56fe",graph:"\u5173\u7cfb\u56fe",sankey:"\u6851\u57fa\u56fe",funnel:"\u6f0f\u6597\u56fe",gauge:"\u4eea\u8868\u76d8\u56fe",pictorialBar:"\u8c61\u5f62\u67f1\u56fe",themeRiver:"\u4e3b\u9898\u6cb3\u6d41\u56fe",sunburst:"\u65ed\u65e5\u56fe"}},aria:{general:{withTitle:"\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e\u201c{title}\u201d\u7684\u56fe\u8868\u3002",withoutTitle:"\u8fd9\u662f\u4e00\u4e2a\u56fe\u8868\uff0c"},series:{single:{prefix:"",withName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\uff0c\u8868\u793a{seriesName}\u3002",withoutName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\u3002"},multiple:{prefix:"\u5b83\u7531{seriesCount}\u4e2a\u56fe\u8868\u7cfb\u5217\u7ec4\u6210\u3002",withName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a\u8868\u793a{seriesName}\u7684{seriesType}\uff0c",withoutName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a{seriesType}\uff0c",separator:{middle:"\uff1b",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636e\u662f\u2014\u2014",partialData:"\u5176\u4e2d\uff0c\u524d{displayCnt}\u9879\u662f\u2014\u2014",withName:"{name}\u7684\u6570\u636e\u662f{value}",withoutName:"{value}",separator:{middle:"\uff0c",end:""}}}});var mh=36e5,vh=864e5,yh=31536e6,_h={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{hh}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss} {SSS}"},bh={year:"{yyyy}",month:"{yyyy}-{MM}",day:"{yyyy}-{MM}-{dd}",hour:"{yyyy}-{MM}-{dd} "+_h.hour,minute:"{yyyy}-{MM}-{dd} "+_h.minute,second:"{yyyy}-{MM}-{dd} "+_h.second,millisecond:_h.none},wh=["year","month","day","hour","minute","second","millisecond"],xh=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function kh(t,e){return"0000".substr(0,e-(t+="").length)+t}function Sh(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function Ch(t,e,n,i){var r=Sr(t),o=r[Ih(n)](),a=r[Th(n)]()+1,s=Math.floor((a-1)/4)+1,l=r[Dh(n)](),u=r["get"+(n?"UTC":"")+"Day"](),c=r[Eh(n)](),h=(c-1)%12+1,d=r[Oh(n)](),f=r[Ph(n)](),p=r[Rh(n)](),g=(i instanceof sh?i:function(t){return fh[t]}(i||ph)||fh.EN).getModel("time"),m=g.get("month"),v=g.get("monthAbbr"),y=g.get("dayOfWeek"),_=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[a-1]).replace(/{MMM}/g,v[a-1]).replace(/{MM}/g,kh(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,kh(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,y[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,kh(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,kh(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,kh(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,kh(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,kh(p,3)).replace(/{S}/g,p+"")}function Ah(t,e){var n=Sr(t),i=n[Th(e)]()+1,r=n[Dh(e)](),o=n[Eh(e)](),a=n[Oh(e)](),s=n[Ph(e)](),l=0===n[Rh(e)](),u=l&&0===s,c=u&&0===a,h=c&&0===o,d=h&&1===r;return d&&1===i?"year":d?"month":h?"day":c?"hour":u?"minute":l?"second":"millisecond"}function Mh(t,e,n){var i="number"==typeof t?Sr(t):t;switch(e=e||Ah(t,n)){case"year":return i[Ih(n)]();case"half-year":return i[Th(n)]()>=6?1:0;case"quarter":return Math.floor((i[Th(n)]()+1)/4);case"month":return i[Th(n)]();case"day":return i[Dh(n)]();case"half-day":return i[Eh(n)]()/24;case"hour":return i[Eh(n)]();case"minute":return i[Oh(n)]();case"second":return i[Ph(n)]();case"millisecond":return i[Rh(n)]()}}function Ih(t){return t?"getUTCFullYear":"getFullYear"}function Th(t){return t?"getUTCMonth":"getMonth"}function Dh(t){return t?"getUTCDate":"getDate"}function Eh(t){return t?"getUTCHours":"getHours"}function Oh(t){return t?"getUTCMinutes":"getMinutes"}function Ph(t){return t?"getUTCSeconds":"getSeconds"}function Rh(t){return t?"getUTCSeconds":"getSeconds"}function Lh(t){return t?"setUTCFullYear":"setFullYear"}function Nh(t){return t?"setUTCMonth":"setMonth"}function Fh(t){return t?"setUTCDate":"setDate"}function Vh(t){return t?"setUTCHours":"setHours"}function zh(t){return t?"setUTCMinutes":"setMinutes"}function Bh(t){return t?"setUTCSeconds":"setSeconds"}function Hh(t){return t?"setUTCSeconds":"setSeconds"}function jh(t){if(!Er(t))return it(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Gh(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Uh=yt,Wh=/([&<>"'])/g,Yh={"&":"&","<":"<",">":">",'"':""","'":"'"};function qh(t){return null==t?"":(t+"").replace(Wh,function(t,e){return Yh[e]})}function Xh(t,e,n){function i(t){return t&&bt(t)?t:"-"}function r(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?Sr(t):t;if(!isNaN(+s))return Ch(s,"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return rt(t)?i(t):ot(t)&&r(t)?t+"":"-";var l=Dr(t);return r(l)?jh(l):rt(t)?i(t):"-"}var Zh=["a","b","c","d","e","f","g"],Kh=function(t,e){return"{"+t+(null==e?"":e)+"}"};function $h(t,e,n){et(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o':'':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}function Jh(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=Sr(e),r=n?"UTC":"",o=i["get"+r+"FullYear"](),a=i["get"+r+"Month"]()+1,s=i["get"+r+"Date"](),l=i["get"+r+"Hours"](),u=i["get"+r+"Minutes"](),c=i["get"+r+"Seconds"](),h=i["get"+r+"Milliseconds"]();return t.replace("MM",kh(a,2)).replace("M",a).replace("yyyy",o).replace("yy",o%100+"").replace("dd",kh(s,2)).replace("d",s).replace("hh",kh(l,2)).replace("h",l).replace("mm",kh(u,2)).replace("m",u).replace("ss",kh(c,2)).replace("s",c).replace("SSS",kh(h,3))}function td(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function ed(t,e){return e=e||"transparent",it(t)?t:at(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function nd(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var id=q,rd=["left","right","top","bottom","width","height"],od=[["width","left","right"],["height","top","bottom"]];function ad(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var c,h,d=l.getBoundingRect(),f=e.childAt(u+1),p=f&&f.getBoundingRect();if("horizontal"===t){var g=d.width+(p?-p.x+d.x:0);(c=o+g)>i||l.newline?(o=0,c=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var m=d.height+(p?-p.y+d.y:0);(h=a+m)>r||l.newline?(o+=s+n,a=0,h=m,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)})}var sd=ad;function ld(t,e,n){n=Uh(n||0);var i=e.width,r=e.height,o=dr(t.left,i),a=dr(t.top,r),s=dr(t.right,i),l=dr(t.bottom,r),u=dr(t.width,i),c=dr(t.height,r),h=n[2]+n[0],d=n[1]+n[3],f=t.aspect;switch(isNaN(u)&&(u=i-s-d-o),isNaN(c)&&(c=r-l-h-a),null!=f&&(isNaN(u)&&isNaN(c)&&(f>i/r?u=.8*i:c=.8*r),isNaN(u)&&(u=f*c),isNaN(c)&&(c=u/f)),isNaN(o)&&(o=i-s-u-d),isNaN(a)&&(a=r-l-c-h),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-d}switch(t.top||t.bottom){case"middle":case"center":a=r/2-c/2-n[0];break;case"bottom":a=r-c-h}o=o||0,a=a||0,isNaN(u)&&(u=i-d-o-(s||0)),isNaN(c)&&(c=r-h-a-(l||0));var p=new Ei(o+n[3],a+n[0],u,c);return p.margin=n,p}function ud(t,e,n,i,r){var o=!r||!r.hv||r.hv[0],a=!r||!r.hv||r.hv[1],s=r&&r.boundingMode||"all";if(o||a){var l;if("raw"===s)l="group"===t.type?new Ei(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(l=t.getBoundingRect(),t.needLocalTransform()){var u=t.getLocalTransform();(l=l.clone()).applyTransform(u)}var c=ld(H({width:l.width,height:l.height},e),n,i),h=o?c.x-l.x:0,d=a?c.y-l.y:0;"raw"===s?(t.x=h,t.y=d):(t.x+=h,t.y+=d),t.markRedraw()}}function cd(t){var e=t.layoutMode||t.constructor.layoutMode;return at(e)?e:e?{type:e}:null}function hd(t,e,n){var i=n&&n.ignoreSize;!et(i)&&(i=[i,i]);var r=a(od[0],0),o=a(od[1],1);function a(n,r){var o={},a=0,u={},c=0;if(id(n,function(e){u[e]=t[e]}),id(n,function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&c++}),i[r])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(2!==c&&a){if(a>=2)return o;for(var h=0;h=0;a--)o=V(o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Id";return Jr(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(n,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(sh);lo(gd,sh),fo(gd),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=oo(t);e[i.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=oo(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r}}(gd),function(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,e,i,r){if(t.length){var o=function(t){var e={},i=[];return q(t,function(r){var o,a,s=n(e,r),l=function(t,e){var n=[];return q(t,function(t){G(e,t)>=0&&n.push(t)}),n}(s.originalDeps=(a=[],q(gd.getClassesByMainType(o=r),function(t){a=a.concat(t.dependencies||t.prototype.dependencies||[])}),a=X(a,function(t){return oo(t).main}),"dataset"!==o&&G(a,"dataset")<=0&&a.unshift("dataset"),a),t);s.entryCount=l.length,0===s.entryCount&&i.push(r),q(l,function(t){G(s.predecessor,t)<0&&s.predecessor.push(t);var i=n(e,t);G(i.successor,t)<0&&i.successor.push(r)})}),{graph:e,noEntryList:i}}(e),a=o.graph,s=o.noEntryList,l={};for(q(t,function(t){l[t]=!0});s.length;){var u=s.pop(),c=a[u],h=!!l[u];h&&(i.call(r,u,c.originalDeps.slice()),delete l[u]),q(c.successor,h?f:d)}q(l,function(){throw new Error("")})}function d(t){a[t].entryCount--,0===a[t].entryCount&&s.push(t)}function f(t){l[t]=!0,d(t)}}}(gd);var md=gd,vd="";"undefined"!=typeof navigator&&(vd=navigator.platform||"");var yd="rgba(0, 0, 0, 0.2)",_d={darkMode:"auto",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:yd,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:yd,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:yd,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:yd,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:yd,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:yd,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:vd.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},bd=Ct(["tooltip","label","itemName","itemId","seriesName"]),wd="original",xd="arrayRows",kd="objectRows",Sd="keyedColumns",Cd="typedArray",Ad="unknown",Md="column",Id="row",Td=qr();function Dd(t,e,n){var i={},r=Od(e);if(!r||!t)return i;var o,a,s=[],l=[],u=Td(e.ecModel).datasetMap,c=r.uid+"_"+n.seriesLayoutBy;q(t=t.slice(),function(e,n){var r=at(e)?e:t[n]={name:e};"ordinal"===r.type&&null==o&&(o=n,a=f(r)),i[r.name]=[]});var h=u.get(c)||u.set(c,{categoryWayDim:a,valueWayDim:0});function d(t,e,n){for(var i=0;ie)return t[i];return t[n-1]}(i,a):n;if((c=c||n)&&c.length){var h=c[l];return r&&(u[r]=h),s.paletteIdx=(l+1)%c.length,h}}var Ud=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new sh(i),this._locale=new sh(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=qd(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,qd(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):Fd(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&q(a,function(t){n=!0,this._mergeOption(t,e)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=Ct(),s=e&&e.replaceMergeMainTypeMap;Td(this).datasetMap=Ct(),q(t,function(t,e){null!=t&&(md.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?F(t):V(n[e],t,!0))}),s&&s.each(function(t,e){md.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))}),md.topologicalTravel(o,md.getAllClassMainTypes(),function(e){var o=function(t,e,n){var i=Vd.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}(this,e,Nr(t[e])),a=i.get(e),l=Br(a,o,a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll");(function(t,e,n){q(t,function(t){var i=t.newOption;at(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,i){return e.type?e.type:n?n.subType:i.determineSubType(t,e)}(e,i,t.existing,n))})})(l,e,md),n[e]=null,i.set(e,null),r.set(e,0);var u=[],c=[],h=0;q(l,function(t,n){var i=t.existing,r=t.newOption;if(r){var o=md.getClass(e,t.keyInfo.subType,!("series"===e));if(!o)return;if(i&&i.constructor===o)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var a=B({componentIndex:n},t.keyInfo);B(i=new o(r,this,this,a),a),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(u.push(i.option),c.push(i),h++):(u.push(void 0),c.push(void 0))},this),n[e]=u,i.set(e,c),r.set(e,h),"series"===e&&Ld(this)},this),this._seriesIndices||Ld(this)},e.prototype.getOption=function(){var t=F(this.option);return q(t,function(e,n){if(md.hasClass(n)){for(var i=Nr(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!Wr(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}}),delete t["\0_ec_inner"],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.getLocale=function(t){return this.getLocaleModel().get(t)},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r=e:"max"===n?t<=e:t===e})(i[a],t,o)||(r=!1)}}),r}var ef=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(q(Nr(t.series),function(t){t&&t.data&<(t.data)&&xt(t.data)}),q(Nr(t.dataset),function(t){t&&t.source&<(t.source)&&xt(t.source)})),t=F(t);var i=this._optionBackup,r=function(t,e,n){var i,r,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,h=!!(l||s||a&&a.timeline);function d(t){q(e,function(e){e(t,n)})}return a?(r=a).timeline||(r.timeline=s):((h||c)&&(t.options=t.media=null),r=t),c&&et(u)&&q(u,function(t){t&&t.option&&(t.query?o.push(t):i||(i=t))}),d(r),q(l,function(t){return d(t)}),q(o,function(t){return d(t.option)}),{baseOption:r,timelineOptions:l||[],mediaDefault:i,mediaList:o}}(t,e,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],F(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=F(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n=this._api.getWidth(),i=this._api.getHeight(),r=this._mediaList,o=this._mediaDefault,a=[],s=[];if(!r.length&&!o)return s;for(var l=0,u=r.length;l=0;p--){var g=t[p];if(a||(h=g.data.rawIndexOf(g.stackedByDimension,c)),h>=0){var m=g.data.getByRawIndex(g.stackResultDimension,h);if(d>=0&&m>0||d<=0&&m<0){d=_r(d,m),f=m;break}}}return i[0]=d,i[1]=f,i});o.hostModel.setData(s),e.data=s})}var kf,Sf,Cf,Af,Mf,If=function(t){this.data=t.data||(t.sourceFormat===Sd?{}:[]),this.sourceFormat=t.sourceFormat||Ad,this.seriesLayoutBy=t.seriesLayoutBy||Md,this.startIndex=t.startIndex||0,this.dimensionsDefine=t.dimensionsDefine,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.encodeDefine=t.encodeDefine,this.metaRawOption=t.metaRawOption};function Tf(t){return t instanceof If}function Df(t,e,n,i){n=n||Pf(t);var r=e.seriesLayoutBy,o=function(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:Rf(r),startIndex:a,dimensionsDetectedCount:o};if(e===xd){var s=t;"auto"===i||null==i?Lf(function(t){null!=t&&"-"!==t&&(it(t)?null==a&&(a=1):a=0)},n,s,10):a=ot(i)?i:i?1:0,r||1!==a||(r=[],Lf(function(t,e){r[e]=null!=t?t+"":""},n,s,1/0)),o=r?r.length:n===Id?s.length:s[0]?s[0].length:null}else if(e===kd)r||(r=function(t){for(var e,n=0;nu&&(u=f)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,f=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!i&&(o||d1&&i>0?s:a}};return o;function a(){return e=t?null:oe},gte:function(t,e){return t>=e}},op=function(){function t(t,e){"number"!=typeof e&&tp(""),this._opFn=rp[t],this._rvalFloat=Dr(e)}return t.prototype.evaluate=function(t){return this._opFn("number"==typeof t?t:Dr(t),this._rvalFloat)},t}(),ap=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=typeof t,i=typeof e,r="number"===n?t:Dr(t),o="number"===i?e:Dr(e),a=isNaN(r),s=isNaN(o);if(a&&(r=this._incomparable),s&&(o=this._incomparable),a&&s){var l="string"===n,u="string"===i;l&&(r=u?t:0),u&&(o=l?e:0)}return ro?-this._resultLT:0},t}(),sp=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Dr(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=Dr(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function lp(t,e){return"eq"===t||"ne"===t?new sp("eq"===t,e):It(rp,t)?new op(t,e):null}var up=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return ep(t,e)},t}();function cp(t){return mp(t.sourceFormat)||tp(""),t.data}function hp(t){var e=t.sourceFormat,n=t.data;if(mp(e)||tp(""),e===xd){for(var i=[],r=0,o=n.length;r9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&this._createSource()},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(_p(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,e=[u._getVersionSign()]}else s=lt(a=o.get("data",!0))?Cd:wd,e=[];var c=this._getSourceMetaRawOption(),h=l?l.metaRawOption:null;t=[Df(a,{seriesLayoutBy:gt(c.seriesLayoutBy,h?h.seriesLayoutBy:null),sourceHeader:gt(c.sourceHeader,h?h.sourceHeader:null),dimensions:gt(c.dimensions,h?h.dimensions:null)},s,o.get("encode",!0))]}else{var d=n;if(r){var f=this._applyTransform(i);t=f.sourceList,e=f.upstreamSignList}else t=[Df(d.get("source",!0),this._getSourceMetaRawOption(),null,null)],e=[]}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);null!=r&&1!==t.length&&bp("");var o,a=[],s=[];return q(t,function(t){t.prepareSource();var e=t.getSource(r||0);null==r||e||bp(""),a.push(e),s.push(t._getVersionSign())}),i?e=function(t,e,n){var i=Nr(t),r=i.length;r||tp("");for(var o=0,a=r;o1||e>0&&!t.noHeader,i=0;q(t.blocks,function(t){Cp(t).planLayout(t);var e=t.__gapLevelBetweenSubBlocks;e>=i&&(i=e+(!n||e&&("section"!==t.type||t.noHeader)?0:1))}),t.__gapLevelBetweenSubBlocks=i},build:function(t,e,n,i){var r=e.noHeader,o=Ip(e),a=function(t,e,n,i){var r=[],o=e.blocks||[];_t(!o||et(o)),o=o||[];var a=t.orderMode;if(e.sortBlocks&&a){o=o.slice();var s={valueAsc:"asc",valueDesc:"desc"};if(It(s,a)){var l=new ap(s[a],null);o.sort(function(t,e){return l.evaluate(t.sortParam,e.sortParam)})}else"seriesDesc"===a&&o.reverse()}var u=Ip(e);if(q(o,function(e,n){var o=Cp(e).build(t,e,n>0?u.html:0,i);null!=o&&r.push(o)}),r.length)return"richText"===t.renderMode?r.join(u.richText):Tp(r.join(""),n)}(t,e,r?n:o.html,i);if(r)return a;var s=Xh(e.header,"ordinal",t.useUTC),l=wp(i,t.renderMode).nameStyle;return"richText"===t.renderMode?Dp(t,s,l)+o.richText+a:Tp('
'+qh(s)+"
"+a,n)}},nameValue:{planLayout:function(t){t.__gapLevelBetweenSubBlocks=0},build:function(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=e.value,c=t.useUTC;if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),d=o?"":Xh(l,"ordinal",c),f=e.valueType,p=a?[]:et(u)?X(u,function(t,e){return Xh(t,et(f)?f[e]:f,c)}):[Xh(u,et(f)?f[0]:f,c)],g=!s||!o,m=!s&&o,v=wp(i,r),y=v.nameStyle,_=v.valueStyle;return"richText"===r?(s?"":h)+(o?"":Dp(t,d,y))+(a?"":function(t,e,n,i,r){var o=[r];return n&&o.push({padding:[0,0,0,i?10:20],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(e.join(" "),o)}(t,p,g,m,_)):Tp((s?"":h)+(o?"":function(t,e,n){return''+qh(t)+""}(d,!s,y))+(a?"":function(t,e,n,i){return''+X(t,function(t){return qh(t)}).join("  ")+""}(p,g,m,_)),n)}}}};function Mp(t,e,n,i,r,o){if(t){var a=Cp(t);return a.planLayout(t),a.build({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e},t,0,o)}}function Ip(t){var e=t.__gapLevelBetweenSubBlocks;return{html:xp[e],richText:kp[e]}}function Tp(t,e){return'
'+t+'
'}function Dp(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Ep(t,e){return ed(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function Op(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var Pp=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Or()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=Qh({color:e,type:t,renderMode:n,markerId:i});return it(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};et(e)?q(e,function(t){return B(n,t)}):B(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}();function Rp(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),d=et(h),f=Ep(o,a);if(c>1||d&&!c){var p=function(t,e,n,i,r){var o=e.getData(),a=Z(t,function(t,e,n){var i=o.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName},!1),s=[],l=[],u=[];function c(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(Sp("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return i.length?q(i,function(t){c(qf(o,n,t),t)}):q(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(h,o,a,u,f);e=p.inlineValues,n=p.inlineValueTypes,i=p.blocks,r=p.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);r=e=qf(l,a,u[0]),n=g.type}else r=e=d?h[0]:h;var m=Ur(o),v=m&&o.name||"",y=l.getName(a),_=s?v:y;return Sp("section",{header:v,noHeader:s||!m,sortParam:r,blocks:[Sp("nameValue",{markerType:"item",markerColor:f,name:_,noName:!bt(_),value:e,valueType:n})].concat(i||[])})}var Lp=qr();function Np(t,e){return t.getName(e)||t.getId(e)}var Fp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return m(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=$f({count:zp,reset:Bp}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(Lp(this).sourceManager=new vp(this)).prepareSource();var i=this.getInitialData(t,n);jp(i,this),this.dataTask.context.data=i,Lp(this).dataBeforeProcessed=i,Vp(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=cd(this),i=n?dd(t):{},r=this.subType;md.hasClass(r)&&(r+="Series"),V(t,e.getTheme().get(this.subType)),V(t,this.getDefaultOption()),Fr(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&hd(t,i,n)},e.prototype.mergeOption=function(t,e){t=V(this.option,t,!0),this.fillDataTextStyle(t.data);var n=cd(this);n&&hd(this.option,t,n);var i=Lp(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);jp(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,Lp(this).dataBeforeProcessed=r,Vp(this),this._initSelectedMapFromData(r)},e.prototype.fillDataTextStyle=function(t){if(t&&!lt(t))for(var e=["show"],n=0;nthis.getShallow("animationThreshold")&&(t=!1),!!t},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=Hd.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n)for(var i=this.getData(e),r=0;r=0&&n.push(r)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;return n&&n[Np(this.getData(e),t)]||!1},e.prototype._innerSelect=function(t,e){var n,i,r=this.option.selectedMode,o=e.length;if(r&&o)if("multiple"===r)for(var a=this.option.selectedMap||(this.option.selectedMap={}),s=0;s0&&this._innerSelect(t,e)}},e.registerClass=function(t){return md.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.useColorPaletteOnData=!1,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(md);function Vp(t){var e=t.name;Ur(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return q(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(" ")}(t)||e)}function zp(t){return t.model.getRawData().count()}function Bp(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Hp}function Hp(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function jp(t,e){q(y(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,tt(Gp,e))})}function Gp(t,e){var n=Up(t);return n&&n.setOutputEnd((e||this).count()),e}function Up(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}W(Fp,Zf),W(Fp,Hd),lo(Fp,md);var Wp=Fp,Yp=function(){function t(){this.group=new tr,this.uid=uh("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.blurSeries=function(t,e){},t}();ao(Yp),fo(Yp);var qp=Yp;function Xp(){var t=qr();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}var Zp=qr(),Kp=Xp(),$p=function(){function t(){this.group=new tr,this.uid=uh("viewChart"),this.renderTask=$f({plan:tg,reset:eg}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.highlight=function(t,e,n,i){Jp(t.getData(),i,"emphasis")},t.prototype.downplay=function(t,e,n,i){Jp(t.getData(),i,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.markUpdateMethod=function(t,e){Zp(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function Qp(t,e,n){t&&("emphasis"===e?fl:pl)(t,n)}function Jp(t,e,n){var i=Yr(t,e),r=e&&null!=e.highlightKey?function(t){var e=Hs[t];return null==e&&Bs<=32&&(e=Hs[t]=Bs++),e}(e.highlightKey):null;null!=i?q(Nr(i),function(e){Qp(t.getItemGraphicEl(e),n,r)}):t.eachItemGraphicEl(function(t){Qp(t,n,r)})}function tg(t){return Kp(t.model)}function eg(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&Zp(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),ng[l]}ao($p),fo($p);var ng={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},ig=$p,rg="\0__throttleOriginMethod",og="\0__throttleRate",ag="\0__throttleType";function sg(t,e,n){var i,r,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var d=function(){for(var t=[],d=0;d=0?h():c=setTimeout(h,-r),l=i};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function lg(t,e,n,i){var r=t[e];if(r){var o=r[rg]||r;if(r[og]!==n||r[ag]!==i){if(null==n||!i)return t[e]=o;(r=t[e]=sg(o,n,"debounce"===i))[rg]=o,r[ag]=i,r[og]=n}return r}}var ug=qr(),cg={itemStyle:po(ih,!0),lineStyle:po(th,!0)},hg={lineStyle:"stroke",itemStyle:"fill"};function dg(t,e){return t.visualStyleMapper||cg[e]||(console.warn("Unkown style type '"+e+"'."),cg.itemStyle)}function fg(t,e){return t.visualDrawType||hg[e]||(console.warn("Unkown style type '"+e+"'."),"fill")}var pg={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=dg(t,i)(r),a=r.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=fg(t,i),l=o[s],u=nt(l)?l:null;if(!o[s]||u||"auto"===o.fill||"auto"===o.stroke){var c=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=c,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||"function"==typeof o.fill?c:o.fill,o.stroke="auto"===o.stroke||"function"==typeof o.stroke?c:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=B({},o);r[s]=u(i),e.setItemVisual(n,"style",r)}}}},gg=new sh,mg={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=dg(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){gg.option=n[i];var a=r(gg);B(t.ensureUniqueItemVisual(e,"style"),a),gg.option.decal&&(t.setItemVisual(e,"decal",gg.option.decal),gg.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},vg={performRawSeries:!0,overallReset:function(t){var e=Ct();t.eachSeries(function(t){if(t.useColorPaletteOnData){var n=e.get(t.type);n||e.set(t.type,n={}),ug(t).scope=n}}),t.eachSeries(function(e){if(e.useColorPaletteOnData&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=ug(e).scope,a=fg(e,e.visualStyleAccessPath||"itemStyle");r.each(function(t){var e=r.getRawIndex(t);i[e]=t}),n.each(function(t){var s=i[t];if(r.getItemVisual(s,"colorFromPalette")){var l=r.ensureUniqueItemVisual(s,"style"),u=n.getName(t)||t+"",c=n.count();l[a]=e.getColorFromPalette(u,o,c)}})}})}},yg=Math.PI,_g=function(){function t(t,e,n,i){this._stageTaskMap=Ct(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Ct();t.eachSeries(function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;q(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,{});_t(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)},this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}q(t,function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each(function(t){a(i,t)&&(t.dirty(),h=!0)}),h&&c.dirty(),o.updatePayload(c,n);var f=o.getPerformArgs(c,i.block);d.each(function(t){t.perform(f)}),c.perform(f)&&(r=!0)}else u&&u.each(function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)})}}),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=Ct(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||$f({plan:Sg,reset:Cg,count:Ig}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||$f({reset:bg});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=Ct(),l=t.seriesType,u=t.getTargetSeries,c=!0,h=!1;function d(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,$f({reset:wg,onDirty:kg})));n.context={model:t,overallProgress:c},n.agent=o,n.__block=c,r._pipe(t,n)}_t(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,d):u?u(n,i).each(d):(c=!1,q(n.getSeries(),d)),h&&o.dirty()},t.prototype._pipe=function(t,e){var n=this._pipelineMap.get(t.uid);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},t.wrapStageHandler=function(t,e){return nt(t)&&(t={overallReset:t,seriesType:Tg(t)}),t.uid=uh("stageHandler"),e&&(t.visualType=e),t},t}();function bg(t){t.overallReset(t.ecModel,t.api,t.payload)}function wg(t){return t.overallProgress&&xg}function xg(){this.agent.dirty(),this.getDownstream().dirty()}function kg(){this.agent&&this.agent.dirty()}function Sg(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Cg(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Nr(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?X(e,function(t,e){return Mg(e)}):Ag}var Ag=Mg(0);function Mg(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Ug={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){var i=t.get("symbol"),r=t.get("symbolSize"),o=t.get("symbolKeepAspect"),a=t.get("symbolRotate"),s=t.get("symbolOffset"),l=nt(i),u=nt(r),c=nt(a),h=nt(s),d=l||u||c||h,f=!l&&i?i:t.defaultSymbol;if(n.setVisual({legendIcon:t.legendIcon||f,symbol:f,symbolSize:u?null:r,symbolKeepAspect:o,symbolRotate:c?null:a,symbolOffset:h?null:s}),!e.isSeriesFiltered(t))return{dataEach:d?function(e,n){var o=t.getRawValue(n),d=t.getDataParams(n);l&&e.setItemVisual(n,"symbol",i(o,d)),u&&e.setItemVisual(n,"symbolSize",r(o,d)),c&&e.setItemVisual(n,"symbolRotate",a(o,d)),h&&e.setItemVisual(n,"symbolOffset",s(o,d))}:null}}}};function Wg(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}function Yg(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function qg(t,e,n,i){switch(n){case"color":t.ensureUniqueItemVisual(e,"style")[t.getVisual("drawType")]=i,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,i)}}var Xg=2*Math.PI,Zg=Ya.CMD,Kg=["top","right","bottom","left"];function $g(t,e,n,i,r){var o=n.width,a=n.height;switch(t){case"top":i.set(n.x+o/2,n.y-e),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+e),r.set(0,1);break;case"left":i.set(n.x-e,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+e,n.y+a/2),r.set(1,0)}}function Qg(t,e,n,i,r,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s),c=(a/=u)*n+t,h=(s/=u)*n+e;if(Math.abs(i-r)%Xg<1e-4)return l[0]=c,l[1]=h,u-n;if(o){var d=i;i=$a(r),r=$a(d)}else i=$a(i),r=$a(r);i>r&&(r+=Xg);var f=Math.atan2(s,a);if(f<0&&(f+=Xg),f>=i&&f<=r||f+Xg>=i&&f+Xg<=r)return l[0]=c,l[1]=h,u-n;var p=n*Math.cos(i)+t,g=n*Math.sin(i)+e,m=n*Math.cos(r)+t,v=n*Math.sin(r)+e,y=(p-a)*(p-a)+(g-s)*(g-s),_=(m-a)*(m-a)+(v-s)*(v-s);return y<_?(l[0]=p,l[1]=g,Math.sqrt(y)):(l[0]=m,l[1]=v,Math.sqrt(_))}function Jg(t,e,n,i,r,o,a,s){var l=r-t,u=o-e,c=n-t,h=i-e,d=Math.sqrt(c*c+h*h),f=(l*(c/=d)+u*(h/=d))/d;s&&(f=Math.min(Math.max(f,0),1));var p=a[0]=t+(f*=d)*c,g=a[1]=e+f*h;return Math.sqrt((p-r)*(p-r)+(g-o)*(g-o))}function tm(t,e,n,i,r,o,a){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i);var s=t+n,l=e+i,u=a[0]=Math.min(Math.max(r,t),s),c=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-r)*(u-r)+(c-o)*(c-o))}var em=[];function nm(t,e,n){var i=tm(e.x,e.y,e.width,e.height,t.x,t.y,em);return n.set(em[0],em[1]),i}function im(t,e,n){for(var i,r,o=0,a=0,s=0,l=0,u=1/0,c=e.data,h=t.x,d=t.y,f=0;f0){e=e/180*Math.PI,rm.fromArray(t[0]),om.fromArray(t[1]),am.fromArray(t[2]),xi.sub(sm,rm,om),xi.sub(lm,am,om);var n=sm.len(),i=lm.len();if(!(n<.001||i<.001)){sm.scale(1/n),lm.scale(1/i);var r=sm.dot(lm);if(Math.cos(e)1&&xi.copy(hm,am),hm.toArray(t[1])}}}}function fm(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,rm.fromArray(t[0]),om.fromArray(t[1]),am.fromArray(t[2]),xi.sub(sm,om,rm),xi.sub(lm,am,om);var i=sm.len(),r=lm.len();if(!(i<.001||r<.001)&&(sm.scale(1/i),lm.scale(1/r),sm.dot(e)=a)xi.copy(hm,am);else{hm.scaleAndAdd(lm,o/Math.tan(Math.PI/2-s));var l=am.x!==om.x?(hm.x-om.x)/(am.x-om.x):(hm.y-om.y)/(am.y-om.y);if(isNaN(l))return;l<0?xi.copy(hm,om):l>1&&xi.copy(hm,am)}hm.toArray(t[1])}}}function pm(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function gm(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=Zt(i[0],i[1]),o=Zt(i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=Jt([],i[1],i[0],a/r),l=Jt([],i[1],i[2],a/o),u=Jt([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c0&&o&&x(-h/a,0,a);var m,v,y=t[0],_=t[a-1];return b(),m<0&&k(-m,.8),v<0&&k(v,.8),b(),w(m,v,1),w(v,m,-1),b(),m<0&&S(-m),v<0&&S(v),u}function b(){m=y.rect[e]-i,v=r-_.rect[e]-_.rect[n]}function w(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){x(i*n,0,a);var r=i+t;r<0&&k(-r*n,1)}else k(-t*n,1)}}function x(n,i,r){0!==n&&(u=!0);for(var o=i;o0)for(l=0;l0;l--)x(-o[l-1]*h,l,a)}}function S(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),i=0;i0?x(n,0,i+1):x(-n,a-i-1,a),(t-=n)<=0)return}}function _m(t,e,n,i){return ym(t,"y","height",e,n,i)}function bm(t){if(t){for(var e=[],n=0;n=0&&n.attr(f.oldLayoutSelect),G(u,"emphasis")>=0&&n.attr(f.oldLayoutEmphasis)),mc(n,s,e,a)}else if(n.attr(s),!Yc(n).valueAnimation){var c=gt(n.style.opacity,1);n.style.opacity=0,vc(n,{style:{opacity:c}},e,a)}if(f.oldLayout=s,n.states.select){var h=f.oldLayoutSelect={};Am(h,s,Mm),Am(h,n.states.select,Mm)}if(n.states.emphasis){var d=f.oldLayoutEmphasis={};Am(d,s,Mm),Am(d,n.states.emphasis,Mm)}Xc(n,a,l,e,e)}if(i&&!i.ignore&&!i.invisible){var f=Cm(i),p={points:i.shape.points};(r=f.oldLayout)?(i.attr({shape:r}),mc(i,{shape:p},e)):(i.setShape(p),i.style.strokePercent=0,vc(i,{style:{strokePercent:1}},e)),f.oldLayout=p}},t}();function Tm(t,e){function n(e,n){var i=[];return e.eachComponent({mainType:"series",subType:t,query:n},function(t){i.push(t.seriesIndex)}),i}q([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(t){e(t[0],function(e,i,r){e=B({},e),r.dispatchAction(B(e,{type:t[1],seriesIndex:n(i,e)}))})})}function Dm(t,e,n,i,r){var o=t+e;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,i=r.selected,a=0;a0?(e=e||1,"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:ot(t)?[t]:et(t)?t:null):null}var Ym=new Ya(!0);function qm(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Xm(t){var e=t.fill;return null!=e&&"none"!==e}function Zm(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function Km(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function $m(t,e,n){var i=_o(e.image,e.__image,n);if(wo(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r.setTransform){var o=new DOMMatrix;o.rotateSelf(0,0,(e.rotation||0)/Math.PI*180),o.scaleSelf(e.scaleX||1,e.scaleY||1),o.translateSelf(e.x||0,e.y||0),r.setTransform(o)}return r}}var Qm=["shadowBlur","shadowOffsetX","shadowOffsetY"],Jm=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function tv(t,e,n,i,r){var o=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){o||(iv(t,r),o=!0);var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Lo.opacity:a}(i||e.blend!==n.blend)&&(o||(iv(t,r),o=!0),t.globalCompositeOperation=e.blend||Lo.blend);for(var s=0;s0&&Wm(n.lineDash,n.lineWidth),x=n.lineDashOffset,k=!!t.setLineDash,S=e.getGlobalScale();if(u.setScale(S[0],S[1],e.segmentIgnoreThreshold),w){var C=n.strokeNoScale&&e.getLineScale?e.getLineScale():1;C&&1!==C&&(w=X(w,function(t){return t/C}),x/=C)}var A=!0;(l||4&e.__dirty||w&&!k&&r)&&(u.setDPR(t.dpr),s?u.setContext(null):(u.setContext(t),A=!1),u.reset(),w&&!k&&(u.setLineDash(w),u.setLineDashOffset(x)),e.buildPath(u,e.shape,i),u.toStatic(),e.pathUpdated()),A&&u.rebuildPath(t,s?a:1),w&&k&&(t.setLineDash(w),t.lineDashOffset=x),i||(n.strokeFirst?(r&&Km(t,n),o&&Zm(t,n)):(o&&Zm(t,n),r&&Km(t,n))),w&&k&&t.setLineDash([])}(t,e,f,d),d&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):e instanceof gs?(3!==n.lastDrawType&&(l=!0,n.lastDrawType=3),ev(t,e,u,l,n),function(t,e,n){var i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||Pi,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var r=void 0;if(t.setLineDash){var o=n.lineDash&&n.lineWidth>0&&Wm(n.lineDash,n.lineWidth),a=n.lineDashOffset;if(o){var s=n.strokeNoScale&&e.getLineScale?e.getLineScale():1;s&&1!==s&&(o=X(o,function(t){return t/s}),a/=s),t.setLineDash(o),t.lineDashOffset=a,r=!0}}n.strokeFirst?(qm(n)&&t.strokeText(i,n.x,n.y),Xm(n)&&t.fillText(i,n.x,n.y)):(Xm(n)&&t.fillText(i,n.x,n.y),qm(n)&&t.strokeText(i,n.x,n.y)),r&&t.setLineDash([])}}(t,e,f)):e instanceof _s?(2!==n.lastDrawType&&(l=!0,n.lastDrawType=2),function(t,e,n,i,r){tv(t,rv(e,r.inHover),n&&rv(n,r.inHover),i,r)}(t,e,u,l,n),function(t,e,n){var i=e.__image=_o(n.image,e.__image,e,e.onload);if(i&&wo(i)){var r=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight)t.drawImage(i,u=n.sx||0,c=n.sy||0,n.sWidth,n.sHeight,r,o,a,s);else if(n.sx&&n.sy){var u,c;t.drawImage(i,u=n.sx,c=n.sy,a-u,s-c,r,o,a,s)}else t.drawImage(i,r,o,a,s)}}(t,e,f)):e instanceof Ju&&(4!==n.lastDrawType&&(l=!0,n.lastDrawType=4),function(t,e,n){var i=e.getDisplayables(),r=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=i.length;o=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=a&&null!=s&&(u=Lv(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var d=i;(i=new tr).add(d),d.scaleX=d.scaleY=u.scale,d.x=u.x,d.y=u.y}return e.ignoreRootClip||null==a||null==s||i.setClipPath(new Ms({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:r}},t.prototype._parseNode=function(t,e,n,i,r,o){var a,s=t.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!r){var u=sv[s];if(u&&It(sv,s)){a=u.call(this,t,e);var c=t.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(h),"g"===s&&(l=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});e.add(a)}}var d=wv[s];if(d&&It(wv,s)){var f=d.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=f)}}if(a&&a.isGroup)for(var g=t.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,r,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var n=new gs({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Sv(e,n),Av(t,n,this._defsUsePending,!1,!1),function(t,e){var n=e.__selfStyle;if(n){var i=n.textBaseline,r=i;i&&"auto"!==i?"baseline"===i?r="alphabetic":"before-edge"===i||"text-before-edge"===i?r="top":"after-edge"===i||"text-after-edge"===i?r="bottom":"central"!==i&&"mathematical"!==i||(r="middle"):r="alphabetic",t.style.textBaseline=r}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}(n,e);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=void(sv={g:function(t,e){var n=new tr;return Sv(e,n),Av(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new Ms;return Sv(e,n),Av(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new eu;return Sv(e,n),Av(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new Ru;return Sv(e,n),Av(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new ru;return Sv(e,n),Av(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,i=t.getAttribute("points");i&&(n=Cv(i));var r=new Mu({shape:{points:n||[]},silent:!0});return Sv(e,r),Av(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var n,i=t.getAttribute("points");i&&(n=Cv(i));var r=new Du({shape:{points:n||[]},silent:!0});return Sv(e,r),Av(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var n=new _s;return Sv(e,n),Av(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new tr;return Sv(e,a),Av(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new tr;return Sv(e,a),Av(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(t,e){var n=Ql(t.getAttribute("d")||"");return Sv(e,n),Av(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),t}(),wv={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),r=parseInt(t.getAttribute("y2")||"0",10),o=new Wu(e,n,i,r);return xv(t,o),kv(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10),r=new Yu(e,n,i);return xv(t,r),kv(t,r),r}};function xv(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function kv(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i,r=n.getAttribute("offset");i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var o={};Rv(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function Sv(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),H(e.__inheritedStyle,t.__inheritedStyle))}function Cv(t){for(var e=Dv(t),n=[],i=0;i0;o-=2){var a=i[o-1],s=Dv(i[o]);switch(r=r||[1,0,0,1,0,0],a){case"translate":li(r,r,[parseFloat(s[0]),parseFloat(s[1]||"0")]);break;case"scale":ci(r,r,[parseFloat(s[0]),parseFloat(s[1]||s[0])]);break;case"rotate":ui(r,r,-parseFloat(s[0])*Ov);break;case"skewX":si(r,[1,0,Math.tan(parseFloat(s[0])*Ov),1,0,0],r);break;case"skewY":si(r,[1,Math.tan(parseFloat(s[0])*Ov),0,1,0,0],r);break;case"matrix":r[0]=parseFloat(s[0]),r[1]=parseFloat(s[1]),r[2]=parseFloat(s[2]),r[3]=parseFloat(s[3]),r[4]=parseFloat(s[4]),r[5]=parseFloat(s[5])}}e.setLocalTransform(r)}}(t,e),Rv(t,a,s),i||function(t,e,n){for(var i=0;i>1^-(1&s),l=l>>1^-(1&l),r=s+=r,o=l+=o,i.push([s/n,l/n])}return i}function Wv(t,e){return X(K((t=function(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);for(var i=e.features,r=0;r0}),function(t){var n,i=t.properties,r=t.geometry,o=[];"Polygon"===r.type&&o.push({type:"polygon",exterior:(n=r.coordinates)[0],interiors:n.slice(1)}),"MultiPolygon"===r.type&&q(n=r.coordinates,function(t){t[0]&&o.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})});var a=new Bv(i[e||"name"],o,i.cp);return a.properties=i,a})}for(var Yv=[126,25],qv="\u5357\u6d77\u8bf8\u5c9b",Xv=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],Zv=0;Zv0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.setOption=function(t,e,n){if(this._disposed);else{var i,r,o;if(ly(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this.__flagInMainProcess=!0,!this._model||e){var a=new ef(this._api),s=this._theme,l=this._model=new Xd;l.scheduler=this._scheduler,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},Ky),zy(this,o),n?(this.__optionUpdated={silent:i},this.__flagInMainProcess=!1,this.getZr().wakeUp()):(wy(this),Sy.update.call(this),this._zr.flush(),this.__optionUpdated=!1,this.__flagInMainProcess=!1,Iy.call(this,i),Ty.call(this,i))}},e.prototype.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||cy&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){if(w.canvasSupported)return this._zr.painter.getRenderedCanvas({backgroundColor:(t=t||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.getSvgDataURL=function(){if(w.svgSupported){var t=this._zr;return q(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){var e=this._model,n=[],i=this;ay((t=t||{}).excludeComponents,function(t){e.eachComponent({mainType:t},function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(n.push(e),e.group.ignore=!0)})});var r="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return ay(n,function(t){t.group.ignore=!1}),r}},e.prototype.getConnectedDataURL=function(t){if(this._disposed);else if(w.canvasSupported){var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(i_[n]){var a=o,s=o,l=-1/0,u=-1/0,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();q(n_,function(o,h){if(o.group===n){var d=e?o.getZr().painter.getSvgDom().innerHTML:o.getRenderedCanvas(F(t)),f=o.getDom().getBoundingClientRect();a=i(f.left,a),s=i(f.top,s),l=r(f.right,l),u=r(f.bottom,u),c.push({dom:d,left:f.left,top:f.top})}});var d=(l*=h)-(a*=h),f=(u*=h)-(s*=h),p=j(),g=or(p,{renderer:e?"svg":"canvas"});if(g.resize({width:d,height:f}),e){var m="";return ay(c,function(t){m+=''+t.dom+""}),g.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new Ms({shape:{x:0,y:0,width:d,height:f},style:{fill:t.connectedBackgroundColor}})),ay(c,function(t){var e=new _s({style:{x:t.left*h-a,y:t.top*h-s,image:t.dom}});g.add(e)}),g.refreshImmediately(),p.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},e.prototype.convertToPixel=function(t,e){return Cy(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return Cy(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){var n;if(!this._disposed)return q(Zr(this._model,t),function(t,i){i.indexOf("Models")>=0&&q(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}},this)},this),!!n},e.prototype.getVisual=function(t,e){var n=Zr(this._model,t,{defaultMainType:"series"}),i=n.seriesModel.getData(),r=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=r?Wg(i,r,e):Yg(i,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t,e,n=this;ay(Yy,function(t){var e=function(e){var i,r=n.getModel(),o=e.target;if("globalout"===t?i={}:o&&Em(o,function(t){var e=zs(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType)||{},!0}if(e.eventData)return i=B({},e.eventData),!0},!0),i){var a=i.componentType,s=i.componentIndex;"markLine"!==a&&"markPoint"!==a&&"markArea"!==a||(a="series",s=i.seriesIndex);var l=a&&null!=s&&r.getComponent(a,s),u=l&&n["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];i.event=e,i.type=t,n._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:l,view:u},n.trigger(t,i)}};e.zrEventfulCallAtLast=!0,n._zr.on(t,e,n)}),ay(Xy,function(t,e){n._messageCenter.on(e,function(t){this.trigger(e,t)},n)}),ay(["selectchanged"],function(t){n._messageCenter.on(t,function(e){this.trigger(t,e)},n)}),t=this,e=this._api,this._messageCenter.on("selectchanged",function(n){var i=e.getModel();n.isFromClick?(Dm("map","selectchanged",t,i,n),Dm("pie","selectchanged",t,i,n)):"select"===n.fromAction?(Dm("map","selected",t,i,n),Dm("pie","selected",t,i,n)):"unselect"===n.fromAction&&(Dm("map","unselected",t,i,n),Dm("pie","unselected",t,i,n))})},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed);else{this._disposed=!0,to(this.getDom(),a_,"");var t=this._api,e=this._model;ay(this._componentsViews,function(n){n.dispose(e,t)}),ay(this._chartsViews,function(n){n.dispose(e,t)}),this._zr.dispose(),delete n_[this.id]}},e.prototype.resize=function(t){if(this._disposed);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this.__optionUpdated&&(null==i&&(i=this.__optionUpdated.silent),n=!0,this.__optionUpdated=!1),this.__flagInMainProcess=!0,n&&wy(this),Sy.update.call(this,{type:"resize",animation:B({duration:0},t&&t.animation)}),this.__flagInMainProcess=!1,Iy.call(this,i),Ty.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed);else if(ly(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),e_[t]){var n=e_[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=B({},t);return e.type=Xy[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed);else if(ly(e)||(e={silent:!!e}),qy[t.type]&&this._model)if(this.__flagInMainProcess)this._pendingActions.push(t);else{var n=e.silent;My.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&w.browser.weChat&&this._throttledZrFlush(),Iy.call(this,n),Ty.call(this,n)}},e.prototype.updateLabelLayout=function(){var t=this._labelManager;t.updateLayoutConfig(this._api),t.layout(this._api),t.processLabelsOverall()},e.prototype.appendData=function(t){if(this._disposed);else{var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){for(var e=[],n=t.currentStates,i=0;i0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.group.traverse(function(e){if(e.states&&e.states.emphasis){if(wc(e))return;if(e instanceof ds&&function(t){var e=js(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}(e),e.__dirty){var n=e.prevStates;n&&e.useStates(n)}if(r){e.stateTransition=a;var i=e.getTextContent(),o=e.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&t(e)}})}wy=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),xy(t,!0),xy(t,!1),e.plan()},xy=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;le.get("hoverLayerThreshold")&&!w.node&&!w.worker&&e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.group.traverse(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}})}(t,n)},Ny=function(t,e){ay(Qy,function(n){n(t,e)})},By=function(t){t.__needsUpdateStatus=!0,t.getZr().wakeUp()},Hy=function(e){e.__needsUpdateStatus&&(e.getZr().storage.traverse(function(e){wc(e)||t(e)}),e.__needsUpdateStatus=!1)},Fy=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return m(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){fl(e,n),By(t)},n.prototype.leaveEmphasis=function(e,n){pl(e,n),By(t)},n.prototype.enterBlur=function(e){gl(e),By(t)},n.prototype.leaveBlur=function(e){ml(e),By(t)},n.prototype.enterSelect=function(e){vl(e),By(t)},n.prototype.leaveSelect=function(e){yl(e),By(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(Kd))(t)},Vy=function(t){function e(t,e){for(var n=0;n=0)){S_.push(n);var o=Rg.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function A_(t,e){e_[t]=e}function M_(t){P("createCanvas",t)}function I_(t,e,n){!function(t,e,n){if(e.svg){var i=new Gv(t,e.svg);ny.set(t,i)}else{var r=e.geoJson||e.geoJSON;r&&!e.features?n=e.specialAreas:r=e,i=new ty(t,r,n),ny.set(t,i)}}(t,e,n)}function T_(t){return function(t){var e=ny.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()}(t)}var D_=function(t){var e=(t=F(t)).type;e||tp("");var n=e.split(":");2!==n.length&&tp("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,pp.set(e,t)};k_(fy,pg),k_(py,mg),k_(py,vg),k_(fy,Ug),k_(py,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){var n=t.getItemModel(e),i=n.getShallow("symbol",!0),r=n.getShallow("symbolSize",!0),o=n.getShallow("symbolRotate",!0),a=n.getShallow("symbolOffset",!0),s=n.getShallow("symbolKeepAspect",!0);null!=i&&t.setItemVisual(e,"symbol",i),null!=r&&t.setItemVisual(e,"symbolSize",r),null!=o&&t.setItemVisual(e,"symbolRotate",o),null!=a&&t.setItemVisual(e,"symbolOffset",a),null!=s&&t.setItemVisual(e,"symbolKeepAspect",s)}:null}}}),k_(7e3,function(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each(function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=hv(n,e))});var r=i.getVisual("decal");r&&(i.getVisual("style").decal=hv(r,e))}})}),g_(wf),m_(900,function(t){var e=Ct();t.eachSeries(function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),e.each(xf)}),A_("default",function(t,e){H(e=e||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new tr,i=new Ms({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,o=new Vs({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new Ms({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((r=new ju({shape:{startAngle:-yg/2,endAngle:-yg/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*yg/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*yg/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}),__({type:Ws,event:Ws,update:Ws},Tt),__({type:Ys,event:Ys,update:Ys},Tt),__({type:qs,event:qs,update:qs},Tt),__({type:Xs,event:Xs,update:Xs},Tt),__({type:Zs,event:Zs,update:Zs},Tt),p_("light",Ng),p_("dark",jg);var E_={},O_=[],P_={registerPreprocessor:g_,registerProcessor:m_,registerPostInit:v_,registerPostUpdate:y_,registerAction:__,registerCoordinateSystem:b_,registerLayout:x_,registerVisual:k_,registerTransform:D_,registerLoading:A_,registerMap:I_,PRIORITY:gy,ComponentModel:md,ComponentView:qp,SeriesModel:Wp,ChartView:ig,registerComponentModel:function(t){md.registerClass(t)},registerComponentView:function(t){qp.registerClass(t)},registerSeriesModel:function(t){Wp.registerClass(t)},registerChartView:function(t){ig.registerClass(t)},registerSubTypeDefaulter:function(t,e){md.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){ur(t,e)}};function R_(t){et(t)?q(t,function(t){R_(t)}):G(O_,t)>=0||(O_.push(t),nt(t)&&(t={install:t}),t.install(P_))}function L_(t){return null==t?0:t.length||1}function N_(t){return t}var F_=function(){function t(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||N_,this._newKeyGetter=i||N_,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._new,e={},n={},i=[],r=[];this._initIndexMap(this._old,e,i,"_oldKeyGetter"),this._initIndexMap(t,n,r,"_newKeyGetter");for(var o=0;o1&&1===c)this._updateManyToOne&&this._updateManyToOne(l,s),n[a]=null;else if(1===u&&c>1)this._updateOneToMany&&this._updateOneToMany(l,s),n[a]=null;else if(1===u&&1===c)this._update&&this._update(l,s),n[a]=null;else if(u>1)for(var h=0;h1)for(var a=0;av[1]&&(v[1]=m)}e&&(this._nameList[d]=e[f],this._dontMakeIdFromName||X_(this,d))}this._rawCount=this._count=s,this._extent={},H_(this)},t.prototype._initDataFromProvider=function(t,e,n){if(!(t>=e)){for(var i=this._rawData,r=this._storage,o=this.dimensions,a=o.length,s=this._dimensionInfos,l=this._nameList,u=this._idList,c=this._rawExtent,h=i.getSource().sourceFormat===wd,d=0;dw[1]&&(w[1]=b)}if(h&&!i.pure&&g){var x=g.name;null==l[m]&&null!=x&&(l[m]=Gr(x,null));var k=g.id;null==u[m]&&null!=k&&(u[m]=Gr(k,null))}this._dontMakeIdFromName||X_(this,m)}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent={},H_(this)}},t.prototype.count=function(){return this._count},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=this._count;if((r=e.constructor)===Array){t=new r(n);for(var i=0;i=0&&e=0&&e=0&&ea&&(a=l)}return this._extent[t]=i=[o,a],i},t.prototype.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){nb(t)?B(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getSum=function(t){var e=0;if(this._storage[t])for(var n=0,i=this.count();n=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._storage[t],r=[];if(!i)return r;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l=0&&a<0)&&(o=h,a=c,s=0),c===a&&(r[s++]=l))}return r.length=s,r},t.prototype.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],n=0;n=h&&C<=d||isNaN(C))&&(s[l++]=g),g++;p=!0}else if(2===o){m=f[c[0]];var y=f[c[1]],_=t[i[1]][0],b=t[i[1]][1];for(v=0;v=h&&C<=d||isNaN(C))&&(w>=_&&w<=b||isNaN(w))&&(s[l++]=g),g++}p=!0}}if(!p)if(1===o)for(v=0;v=h&&C<=d||isNaN(C))&&(s[l++]=x)}else for(v=0;vt[A][1])&&(k=!1)}k&&(s[l++]=this.getRawIndex(v))}return lb[1]&&(b[1]=_)}}}return a},t.prototype.downSample=function(t,e,n,i){for(var r=K_(this,[t]),o=r._storage,a=[],s=eb(1/e),l=o[t],u=this.count(),c=r._rawExtent[t],h=new(j_(this))(u),d=0,f=0;fu-f&&(a.length=s=u-f);for(var p=0;pc[1]&&(c[1]=m),h[d++]=v}return r._count=d,r._indices=h,r.getRawIndex=W_,r},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=K_(this,[]),a=o._storage[t],s=this.count(),l=new(j_(this))(s),u=0,c=eb(1/e),h=this.getRawIndex(0);l[u++]=h;for(var d=1;dn&&(n=i,r=k)}l[u++]=r,h=r}return l[u++]=this.getRawIndex(s-1),o._count=u,o._indices=l,o.getRawIndex=W_,o},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new sh(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new F_(t?t.getIndices():[],this.getIndices(),function(e){return Y_(t,e)},function(t){return Y_(e,t)})},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},nb(t)?B(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(et(r=this.getVisual(e))?r=r.slice():nb(r)&&(r=B({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,nb(e)?B(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){if(nb(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?B(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel;if(e){var i=zs(e);i.dataIndex=t,i.dataType=this.dataType,i.seriesIndex=n&&n.seriesIndex,"group"===e.type&&e.traverse(Q_,e)}this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){q(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},t.prototype.cloneShallow=function(e){if(e||(e=new t(ib(this.dimensions,this.getDimensionInfo,this),this.hostModel)),e._storage=this._storage,e._storageArr=this._storageArr,J_(e,this),this._indices){var n=this._indices.constructor;if(n===Array){var i=this._indices.length;e._indices=new n(i);for(var r=0;r65535?ab:lb},G_=function(t,e,n,i){var r=ob[e.type],o=e.name;if(i){var a=t[o],s=a&&a.length;if(s!==n){for(var l=new r(n),u=0;u=0?this._indices[t]:-1},Y_=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=q_(t,t._idDimIdx,t._idOrdinalMeta,e)),null==n&&(n="e\0\0"+e),n},Z_=function(t){return et(t)||(t=null!=t?[t]:[]),t},K_=function(e,n){var i=e.dimensions,r=new t(ib(i,e.getDimensionInfo,e),e.hostModel);J_(r,e);for(var o,a,s=r._storage={},l=e._storage,u=r._storageArr=[],c=0;c=0?(s[h]=(a=void 0,(a=(o=l[h]).constructor)===Array?o.slice():new a(o)),r._rawExtent[h]=$_(),r._extent[h]=null):s[h]=l[h],u.push(s[h]))}return r},$_=function(){return[1/0,-1/0]},Q_=function(t){var e=zs(t),n=zs(this);e.seriesIndex=n.seriesIndex,e.dataIndex=n.dataIndex,e.dataType=n.dataType},J_=function(t,e){q(ub.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,q(cb,function(n){t[n]=F(e[n])}),t._calculationInfo=B({},e._calculationInfo)},X_=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=i[e];if(null==a&&null!=r&&(n[e]=a=q_(t,r,t._nameOrdinalMeta,e)),null==s&&null!=o&&(i[e]=s=q_(t,o,t._idOrdinalMeta,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),i[e]=s}}}(),t}();function db(t,e,n){if(n||null!=e.get(t)){for(var i=0;null!=e.get(t+i);)i++;t+=i}return e.set(t,!0),t}function fb(t,e){return function(t,e,n){Tf(e)||(e=Ef(e)),n=n||{},t=(t||[]).slice();for(var i=(n.dimsDef||[]).slice(),r=Ct(),o=Ct(),a=[],s=function(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return q(e,function(t){var e;at(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))}),r}(e,t,i,n.dimCount),l=0;le[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();fo(wb);var xb=wb;function kb(t){return at(t)&&null!=t.value?t.value:t+""}var Sb=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&X(i,kb);return new t({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if("string"!=typeof t&&!n)return t;if(n&&!this._deduplication)return this.categories[e=this.categories.length]=t,e;var i=this._getOrCreateMap();return null==(e=i.get(t))&&(n?(this.categories[e=this.categories.length]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Ct(this.categories))},t}(),Cb=fr;function Ab(t){return gr(t)+2}function Mb(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Ib(t,e){return t>=e[0]&&t<=e[1]}function Tb(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Db(t,e){return t*(e[1]-e[0])+e[0]}var Eb=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Sb({})),et(i)&&(i=new Sb({categories:X(i,function(t){return at(t)?t.value:t})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return m(e,t),e.prototype.parse=function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return Ib(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return Tb(t=this._getTickNumber(this.parse(t)),this._extent)},e.prototype.scale=function(t){return t=Math.round(Db(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.niceTicks=function(){},e.prototype.niceExtent=function(){},e.type="ordinal",e}(xb);xb.registerClass(Eb);var Ob=Eb,Pb=fr,Rb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return m(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Ib(t,this._extent)},e.prototype.normalize=function(t){return Tb(t,this._extent)},e.prototype.scale=function(t){return Db(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Ab(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;n[0]1e4)return[];var s=o.length?o[o.length-1].value:i[1];return n[1]>s&&o.push(t?{value:Pb(s+e,r)}:{value:n[1]}),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;ri[0]&&ui&&(o=r.interval=i);var a=r.intervalPrecision=Ab(o);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Mb(t,0,e),Mb(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(r.niceTickExtent=[Cb(Math.ceil(t[0]/o)*o,a),Cb(Math.floor(t[1]/o)*o,a)],t),r}(i,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.niceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=e[0];t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;isFinite(e[1]-e[0])||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=Pb(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=Pb(Math.ceil(e[1]/i)*i))},e.type="interval",e}(xb);xb.registerClass(Rb);var Lb=Rb,Nb="__ec_stack_",Fb="undefined"!=typeof Float32Array?Float32Array:Array;function Vb(t){return t.get("stack")||Nb+t.seriesIndex}function zb(t){return t.dim+t.index}function Bb(t,e){var n=[];return e.eachSeriesByType(t,function(t){Yb(t)&&!qb(t)&&n.push(t)}),n}function Hb(t){var e=function(t){var e={};q(t,function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=t.getData(),r=n.dim+"_"+n.index,o=i.mapDimension(n.dim),a=0,s=i.count();a0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}(t),n=[];return q(t,function(t){var i,r=t.coordinateSystem.getBaseAxis(),o=r.getExtent();if("category"===r.type)i=r.getBandWidth();else if("value"===r.type||"time"===r.type){var a=e[r.dim+"_"+r.index],s=Math.abs(o[1]-o[0]),l=r.scale.getExtent(),u=Math.abs(l[1]-l[0]);i=a?s/u*a:s}else{var c=t.getData();i=Math.abs(o[1]-o[0])/c.count()}var h=dr(t.get("barWidth"),i),d=dr(t.get("barMaxWidth"),i),f=dr(t.get("barMinWidth")||1,i),p=t.get("barGap"),g=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:h,barMaxWidth:d,barMinWidth:f,barGap:p,barCategoryGap:g,axisKey:zb(r),stackId:Vb(t)})}),jb(n)}function jb(t){var e={};q(t,function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var d=t.barCategoryGap;null!=d&&(o.categoryGap=d)});var n={};return q(e,function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=Q(i).length;o=Math.max(35-4*a,15)+"%"}var s=dr(o,r),l=dr(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),q(i,function(t){var e=t.maxWidth,n=t.minWidth;if(t.width)i=t.width,e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,c--;else{var i=h;e&&ei&&(i=n),i!==h&&(t.width=i,u-=i+l*i,c--)}}),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var d,f=0;q(i,function(t,e){t.width||(t.width=h),d=t,f+=t.width*(1+l)}),d&&(f-=d.width*l);var p=-f/2;q(i,function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:p,width:t.width},p+=t.width*(1+l)})}),n}function Gb(t,e,n){if(t&&e){var i=t[zb(e)];return null!=i&&null!=n?i[Vb(n)]:i}}function Ub(t,e){var n=Bb(t,e),i=Hb(n),r={};q(n,function(t){var e=t.getData(),n=t.coordinateSystem,o=n.getBaseAxis(),a=Vb(t),s=i[zb(o)][a],l=s.offset,u=s.width,c=n.getOtherAxis(o),h=t.get("barMinHeight")||0;r[a]=r[a]||[],e.setLayout({bandWidth:s.bandWidth,offset:l,size:u});for(var d=e.mapDimension(c.dim),f=e.mapDimension(o.dim),p=yb(e,d),g=c.isHorizontal(),m=Xb(0,c),v=0,y=e.count();v=0?"p":"n",x=m;p&&(r[a][b]||(r[a][b]={p:m,n:m}),x=r[a][b][w]);var k,S=void 0,C=void 0,A=void 0,M=void 0;g?(S=x,C=(k=n.dataToPoint([_,b]))[1]+l,A=k[0]-m,M=u,Math.abs(A).5||(c=.5),{progress:function(t,e){for(var r,h=t.count,d=new Fb(2*h),f=new Fb(2*h),p=new Fb(h),g=[],m=[],v=0,y=0;null!=(r=t.next());)m[u]=e.get(a,r),m[1-u]=e.get(s,r),g=n.dataToPoint(m,null),f[v]=l?i.x+i.width:g[0],d[v++]=g[0],f[v]=l?g[1]:i.y+i.height,d[v++]=g[1],p[y++]=r;e.setLayout({largePoints:d,largeDataIndices:p,largeBackgroundPoints:f,barWidth:c,valueAxisStart:Xb(0,o),backgroundStart:l?i.x:i.y,valueAxisHorizontal:l})}}}}};function Yb(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function qb(t){return t.pipelineContext&&t.pipelineContext.large}function Xb(t,e,n){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}var Zb=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return m(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Ch(t.value,bh[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Sh(this._minLevelUnit))]||bh.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC");return function(t,e,n,i,r){var o=null;if("string"==typeof n)o=n;else if("function"==typeof n)o=n(t.value,e,{level:t.level});else{var a=B({},_h);if(t.level>0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(et(o)){var c=null==t.level?0:t.level>=0?t.level:o.length+t.level;o=o[c=Math.min(c,o.length-1)]}}return Ch(new Date(t.value),o,r,i)}(t,e,n,this.getSetting("locale"),i)},e.prototype.getTicks=function(t){var e=this._extent,n=[];if(!this._interval)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),r=function(t,e,n,i){var r,o=xh,a=0;function s(t,e,n,r,o,a,s){for(var l=new Date(e),u=e,c=l[r]();u1&&0===u&&o.unshift({value:o[0].value-d})}}for(u=0;u=i[0]&&v<=i[1]&&h++)}var y=(i[1]-i[0])/e;if(h>1.5*y&&d>y/1.5)break;if(u.push(g),h>y||t===o[f])break}c=[]}}var _=K(X(u,function(t){return K(t,function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd})}),function(t){return t.length>0}),b=[],w=_.length-1;for(f=0;f<_.length;++f)for(var x=_[f],k=0;kn&&(this._approxInterval=n);var r=Kb.length,o=Math.min(function(t,e,n,i){for(;n>>1;t[r][1]16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function Qb(t){return(t/=2592e6)>6?6:t>3?3:t>2?2:1}function Jb(t){return(t/=mh)>12?12:t>6?6:t>3.5?4:t>2?2:1}function tw(t,e){return(t/=e?6e4:1e3)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function ew(t){return Mr(t,!0)}function nw(t,e,n){var i=new Date(t);switch(Sh(e)){case"year":case"month":i[Nh(n)](0);case"day":i[Fh(n)](1);case"hour":i[Vh(n)](0);case"minute":i[zh(n)](0);case"second":i[Bh(n)](0),i[Hh(n)](0)}return i.getTime()}xb.registerClass(Zb);var iw=Zb,rw=xb.prototype,ow=Lb.prototype,aw=fr,sw=Math.floor,lw=Math.ceil,uw=Math.pow,cw=Math.log,hw=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Lb,e._interval=0,e}return m(e,t),e.prototype.getTicks=function(t){var e=this._extent,n=this._originalScale.getExtent();return X(ow.getTicks.call(this,t),function(t){var i=t.value,r=fr(uw(this.base,i));return r=i===e[0]&&this._fixMin?fw(r,n[0]):r,{value:r=i===e[1]&&this._fixMax?fw(r,n[1]):r}},this)},e.prototype.setExtent=function(t,e){var n=this.base;t=cw(t)/cw(n),e=cw(e)/cw(n),ow.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=rw.getExtent.call(this);e[0]=uw(t,e[0]),e[1]=uw(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=fw(e[0],n[0])),this._fixMax&&(e[1]=fw(e[1],n[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=cw(t[0])/cw(e),t[1]=cw(t[1])/cw(e),rw.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.niceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i=Cr(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var r=[fr(lw(e[0]/i)*i),fr(sw(e[1]/i)*i)];this._interval=i,this._niceExtent=r}},e.prototype.niceExtent=function(t){ow.niceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Ib(t=cw(t)/cw(this.base),this._extent)},e.prototype.normalize=function(t){return Tb(t=cw(t)/cw(this.base),this._extent)},e.prototype.scale=function(t){return t=Db(t,this._extent),uw(this.base,t)},e.type="log",e}(xb),dw=hw.prototype;function fw(t,e){return aw(t,gr(e))}dw.getMinorTicks=ow.getMinorTicks,dw.getLabel=ow.getLabel,xb.registerClass(hw);var pw=hw,gw=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]s&&(a=NaN,s=NaN);var c=ft(a)||ft(s)||t&&!i;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=this._determinedMin,d=this._determinedMax;return null!=h&&(a=h,l=!0),null!=d&&(s=d,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){this[vw[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[mw[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),mw={min:"_determinedMin",max:"_determinedMax"},vw={min:"_dataMin",max:"_dataMax"};function yw(t,e,n){var i=t.rawExtentInfo;return i||(i=new gw(t,e,n),t.rawExtentInfo=i,i)}function _w(t,e){return null==e?null:ft(e)?NaN:t.parse(e)}function bw(t,e){var n=t.type,i=yw(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var r=i.min,o=i.max,a=e.ecModel;if(a&&"time"===n){var s=Bb("bar",a),l=!1;if(q(s,function(t){l=l||t.getBaseAxis()===e.axis}),l){var u=Hb(s),c=function(t,e,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=Gb(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;q(a,function(t){s=Math.min(t.offset,s)});var l=-1/0;q(a,function(t){l=Math.max(t.offset+t.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,h=c/(1-(s+l)/o)-c;return{min:t-=h*(s/u),max:e+=h*(l/u)}}(r,o,e,u);r=c.min,o=c.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function ww(t,e){var n=bw(t,e),i=n.extent,r=e.get("splitNumber");t instanceof pw&&(t.base=e.get("logBase"));var o=t.type;t.setExtent(i[0],i[1]),t.niceExtent({splitNumber:r,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===o||"time"===o?e.get("minInterval"):null,maxInterval:"interval"===o||"time"===o?e.get("maxInterval"):null});var a=e.get("interval");null!=a&&t.setInterval&&t.setInterval(a)}function xw(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Ob({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new iw({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(xb.getClass(e)||Lb)}}function kw(t){var e,n,i=t.getLabelModel().get("formatter"),r="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=i,function(e,i){return t.scale.getFormattedLabel(e,i,n)}):"string"==typeof i?function(e){return function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")}}(i):"function"==typeof i?(e=i,function(n,i){return null!=r&&(i=n.value-r),e(Sw(t,n),i,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function Sw(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function Cw(t,e){var n=e*Math.PI/180,i=t.width,r=t.height,o=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n));return new Ei(t.x,t.y,o,a)}function Aw(t){var e=t.get("interval");return null==e?"auto":e}function Mw(t){return"category"===t.type&&0===Aw(t.getLabelModel())}function Iw(t,e){var n={};return q(t.mapDimensionsAll(e),function(e){n[_b(t,e)]=!0}),Q(n)}var Tw=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}();function Dw(t){return bb(t.getSource(),t)}var Ew={isDimensionStacked:yb,enableDataStack:vb,getStackedDimension:_b};function Ow(t,e){var n=e;e instanceof sh||(n=new sh(e));var i=xw(n);return i.setExtent(t[0],t[1]),ww(i,n),i}function Pw(t){W(t,Tw)}function Rw(t,e){return zc(t,null,null,"normal"!==(e=e||{}).state)}function Lw(t,e,n,i,r,o,a,s){return new Vs({style:{text:t,font:e,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()}var Nw=qr();function Fw(t,e){var n,i,r=Vw(t,"labels"),o=Aw(e);return zw(r,o)||(nt(o)?n=jw(t,o):(i="auto"===o?function(t){var e=Nw(t).autoInterval;return null!=e?e:Nw(t).autoInterval=t.calculateCategoryInterval()}(t):o,n=Hw(t,i)),Bw(r,o,{labels:n,labelCategoryInterval:i}))}function Vw(t,e){return Nw(t)[e]||(Nw(t)[e]=[])}function zw(t,e){for(var n=0;n1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=Mw(t),d=a.get("showMinLabel")||h,f=a.get("showMaxLabel")||h;d&&u!==o[0]&&g(o[0]);for(var p=u;p<=o[1];p+=l)g(p);function g(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t})}return f&&p-l!==o[1]&&g(o[1]),s}function jw(t,e,n){var i=t.scale,r=kw(t),o=[];return q(i.getTicks(),function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})}),o}var Gw=[0,1];function Uw(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}var Ww=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return vr(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&Uw(n=n.slice(),i.count()),hr(t,Gw,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&Uw(n=n.slice(),i.count());var r=hr(t,n,Gw,e);return this.scale.scale(r)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=X(function(t,e){return"category"===t.type?function(t,e){var n,i,r=Vw(t,"ticks"),o=Aw(e),a=zw(r,o);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(n=[]),nt(o))n=jw(t,o,!0);else if("auto"===o){var s=Fw(t,t.getLabelModel());i=s.labelCategoryInterval,n=X(s.labels,function(t){return t.tickValue})}else n=Hw(t,i=o,!0);return Bw(r,o,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:X(t.scale.getTicks(),function(t){return t.value})}}(this,e).ticks,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this);return function(t,e,n,i){var r=e.length;if(t.onBand&&!n&&r){var o,a=t.getExtent();if(1===r)e[0].coord=a[0],o=e[1]={coord:a[0]};else{var s=(e[r-1].coord-e[0].coord)/(e[r-1].tickValue-e[0].tickValue);q(e,function(t){t.coord-=s/2});var l=t.scale.getExtent();e.push(o={coord:e[r-1].coord+s*(1+l[1]-e[r-1].tickValue)})}var u=a[0]>a[1];c(e[0].coord,a[0])&&(i?e[0].coord=a[0]:e.shift()),i&&c(a[0],e[0].coord)&&e.unshift({coord:a[0]}),c(a[1],o.coord)&&(i?o.coord=a[1]:e.pop()),i&&c(o.coord,a[1])&&e.push({coord:a[1]})}function c(t,e){return t=fr(t),e=fr(e),u?t>e:t0&&t<100||(t=5),X(this.scale.getMinorTicks(t),function(t){return X(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this)},t.prototype.getViewLabels=function(){return(t=this,"category"===t.type?function(t){var e=t.getLabelModel(),n=Fw(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=kw(t);return{labels:X(e,function(e,i){return{formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}})}}(t)).labels;var t},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return function(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),n=kw(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(i)),h=Math.abs(u*Math.sin(i)),d=0,f=0;l<=o[1];l+=s){var p,g=Ni(n({value:l}),e.font,"center","top");p=1.3*g.height,d=Math.max(d,1.3*g.width,7),f=Math.max(f,p,7)}var m=d/c,v=f/h;isNaN(m)&&(m=1/0),isNaN(v)&&(v=1/0);var y=Math.max(0,Math.floor(Math.min(m,v))),_=Nw(t.model),b=t.getExtent(),w=_.lastAutoInterval,x=_.lastTickCount;return null!=w&&null!=x&&Math.abs(w-y)<=1&&Math.abs(x-a)<=1&&w>y&&_.axisExtent0===b[0]&&_.axisExtent1===b[1]?y=w:(_.lastTickCount=a,_.lastAutoInterval=y,_.axisExtent0=b[0],_.axisExtent1=b[1]),y}(this)},t}();function Yw(t){var e=md.extend(t);return md.registerClass(e),e}function qw(t){var e=qp.extend(t);return qp.registerClass(e),e}function Xw(t){var e=Wp.extend(t);return Wp.registerClass(e),e}function Zw(t){var e=ig.extend(t);return ig.registerClass(e),e}function Kw(){return!1}function $w(t,e,n){var i=j(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}var Qw=function(t){function e(e,n,i){var r,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||ei,"string"==typeof e?r=$w(e,n,i):at(e)&&(e=(r=e).id),o.id=e,o.dom=r;var a=r.style;return a&&(r.onselectstart=Kw,a.webkitUserSelect="none",a.userSelect="none",a.webkitTapHighlightColor="rgba(0,0,0,0)",a["-webkit-touch-callout"]="none",a.padding="0",a.margin="0",a.borderWidth="0"),o.domBack=null,o.ctxBack=null,o.painter=n,o.config=null,o.dpr=i,o}return Et(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=$w("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new Ei(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length)(e=new Ei(0,0,0,0)).copy(t),o.push(e);else{for(var e,n=!1,i=1/0,r=0,u=0;u=a)}}for(var c=this.__startIndex;c15)break}n.prevElClipPaths&&d.restore()};if(f)if(0===f.length)s=c.__endIndex;else for(var b=h.dpr,w=0;w0&&t>i[0]){for(s=0;st);s++);a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}else N("Layer of zlevel "+t+" is not valid")},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i0?ex:0),this._needsManuallyCompositing),u.__builtin__||N("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==r&&(u.__dirty=!0),u.__startIndex=r,u.__drawIndex=u.incremental?-1:r,e(r),o=u),1&s.__dirty&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=r))}e(r),this.eachBuiltinLayer(function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,q(this._layers,function(t){t.setUnpainted()})},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?V(n[t],e,!0):n[t]=e;for(var i=0;i-1e-4}function yx(t,e){e&&_x(t,"transform","matrix("+gx(e[0])+","+gx(e[1])+","+gx(e[2])+","+gx(e[3])+","+mx(e[4])+","+mx(e[5])+")")}function _x(t,e,n){(!n||"linear"!==n.type&&"radial"!==n.type)&&t.setAttribute(e,n)}function bx(t,e,n){var i=null==e.opacity?1:e.opacity;if(n instanceof _s)t.style.opacity=i+"";else{if(function(t){var e=t.fill;return null!=e&&e!==lx}(e)){var r=e.fill;_x(t,"fill",r="transparent"===r?lx:r),_x(t,"fill-opacity",(null!=e.fillOpacity?e.fillOpacity*i:i)+"")}else _x(t,"fill",lx);if(function(t){var e=t.stroke;return null!=e&&e!==lx}(e)){var o=e.stroke;_x(t,"stroke",o="transparent"===o?lx:o);var a=e.lineWidth,s=e.strokeNoScale?n.getLineScale():1;_x(t,"stroke-width",(s?a/s:0)+""),_x(t,"paint-order",e.strokeFirst?"stroke":"fill"),_x(t,"stroke-opacity",(null!=e.strokeOpacity?e.strokeOpacity*i:i)+"");var l=e.lineDash&&a>0&&Wm(e.lineDash,a);if(l){var u=e.lineDashOffset;s&&1!==s&&(l=X(l,function(t){return t/s}),u&&(u=ux(u/=s))),_x(t,"stroke-dasharray",l.join(",")),_x(t,"stroke-dashoffset",(u||0)+"")}else _x(t,"stroke-dasharray","");e.lineCap&&_x(t,"stroke-linecap",e.lineCap),e.lineJoin&&_x(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&_x(t,"stroke-miterlimit",e.miterLimit+"")}else _x(t,"stroke",lx)}}var xx=function(){function t(){}return t.prototype.reset=function(){this._d=[],this._str=""},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){this._add("C",t,e,n,i,r,o)},t.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},t.prototype.arc=function(t,e,n,i,r,o){this.ellipse(t,e,n,n,0,i,r,o)},t.prototype.ellipse=function(t,e,n,i,r,o,a,s){var l=0===this._d.length,u=a-o,c=!s,h=Math.abs(u),d=vx(h-fx)||(c?u>=fx:-u>=fx),f=u>0?u%fx:u%fx+fx,p=!1;p=!!d||!vx(h)&&f>=dx==!!c;var g=mx(t+n*hx(o)),m=mx(e+i*cx(o));d&&(u=c?fx-1e-4:1e-4-fx,p=!0,l&&this._d.push("M",g,m));var v=mx(t+n*hx(o+u)),y=mx(e+i*cx(o+u));if(isNaN(g)||isNaN(m)||isNaN(n)||isNaN(i)||isNaN(r)||isNaN(px)||isNaN(v)||isNaN(y))return"";this._d.push("A",mx(n),mx(i),ux(r*px),+p,+c,v,y)},t.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("L",t+n,e),this._add("L",t+n,e+i),this._add("L",t,e+i),this._add("L",t,e)},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,i,r,o,a,s,l){this._d.push(t);for(var u=1;u=0;--n)if(e[n]===t)return!0;return!1}),i}return null}return n[0]},t.prototype.doUpdate=function(t,e){if(t){var n=this.getDefs(!1);if(t[this._domName]&&n.contains(t[this._domName]))"function"==typeof e&&e(t);else{var i=this.add(t);i&&(t[this._domName]=i)}}},t.prototype.add=function(t){return null},t.prototype.addDom=function(t){var e=this.getDefs(!0);t.parentNode!==e&&e.appendChild(t)},t.prototype.removeDom=function(t){var e=this.getDefs(!1);e&&t[this._domName]&&(e.removeChild(t[this._domName]),t[this._domName]=null)},t.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var e=[];return q(this._tagNames,function(n){for(var i=t.getElementsByTagName(n),r=0;r-1){var s=un(a)[3],l=dn(a);o.setAttribute("stop-color","#"+l),o.setAttribute("stop-opacity",s+"")}else o.setAttribute("stop-color",n[i].color);e.appendChild(o)}t.__dom=e},e.prototype.markUsed=function(e){if(e.style){var n=e.style.fill;n&&n.__dom&&t.prototype.markDomUsed.call(this,n.__dom),(n=e.style.stroke)&&n.__dom&&t.prototype.markDomUsed.call(this,n.__dom)}},e}(Mx);function Ox(t){return t&&(!!t.image||!!t.svgElement)}var Px=new Pm,Rx=function(t){function e(e,n){return t.call(this,e,n,["pattern"],"__pattern_in_use__")||this}return Et(e,t),e.prototype.addWithoutUpdate=function(t,e){if(e&&e.style){var n=this;q(["fill","stroke"],function(i){var r=e.style[i];if(Ox(r)){var o=n.getDefs(!0),a=Px.get(r);a?o.contains(a)||n.addDom(a):a=n.add(r),n.markUsed(e);var s=a.getAttribute("id");t.setAttribute(i,"url(#"+s+")")}})}},e.prototype.add=function(t){if(Ox(t)){var e=this.createElement("pattern");return t.id=null==t.id?this.nextId++:t.id,e.setAttribute("id","zr"+this._zrId+"-pattern-"+t.id),e.setAttribute("x","0"),e.setAttribute("y","0"),e.setAttribute("patternUnits","userSpaceOnUse"),this.updateDom(t,e),this.addDom(e),e}},e.prototype.update=function(t){if(Ox(t)){var e=this;this.doUpdate(t,function(){var n=Px.get(t);e.updateDom(t,n)})}},e.prototype.updateDom=function(t,e){var n=t.svgElement;if(n instanceof SVGElement)n.parentNode!==e&&(e.innerHTML="",e.appendChild(n),e.setAttribute("width",t.svgWidth+""),e.setAttribute("height",t.svgHeight+""));else{var i=void 0,r=e.getElementsByTagName("image");if(r.length){if(!t.image)return void e.removeChild(r[0]);i=r[0]}else t.image&&(i=this.createElement("image"));if(i){var o=void 0,a=t.image;if("string"==typeof a?o=a:a instanceof HTMLImageElement?o=a.src:a instanceof HTMLCanvasElement&&(o=a.toDataURL()),o){i.setAttribute("href",o),i.setAttribute("x","0"),i.setAttribute("y","0");var s=_o(o,i,{dirty:function(){}},function(t){e.setAttribute("width",t.width+""),e.setAttribute("height",t.height+"")});s&&s.width&&s.height&&(e.setAttribute("width",s.width+""),e.setAttribute("height",s.height+"")),e.appendChild(i)}}}var l=(t.rotation||0)/Math.PI*180;e.setAttribute("patternTransform","translate("+(t.x||0)+", "+(t.y||0)+") rotate("+l+") scale("+(t.scaleX||1)+", "+(t.scaleY||1)+")"),Px.set(t,e)},e.prototype.markUsed=function(e){e.style&&(Ox(e.style.fill)&&t.prototype.markDomUsed.call(this,Px.get(e.style.fill)),Ox(e.style.stroke)&&t.prototype.markDomUsed.call(this,Px.get(e.style.stroke)))},e}(Mx);function Lx(t){var e=t.__clipPaths;return e&&e.length>0}var Nx=function(t){function e(e,n){var i=t.call(this,e,n,"clipPath","__clippath_in_use__")||this;return i._refGroups={},i._keyDuplicateCount={},i}return Et(e,t),e.prototype.markAllUnused=function(){for(var e in t.prototype.markAllUnused.call(this),this._refGroups)this.markDomUnused(this._refGroups[e]);this._keyDuplicateCount={}},e.prototype._getClipPathGroup=function(t,e){if(Lx(t)){var n=t.__clipPaths,i=this._keyDuplicateCount,r=function(t){var e=[];if(t)for(var n=0;n0){var n=this.getDefs(!0),i=e[0],r=void 0,o=void 0;i._dom?(o=i._dom.getAttribute("id"),n.contains(r=i._dom)||n.appendChild(r)):(o="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(r=this.createElement("clipPath")).setAttribute("id",o),n.appendChild(r),i._dom=r),this.getSvgProxy(i).brush(i);var a=this.getSvgElement(i);r.innerHTML="",r.appendChild(a),t.setAttribute("clip-path","url(#"+o+")"),e.length>1&&this.updateDom(r,e.slice(1))}else t&&t.setAttribute("clip-path","none")},e.prototype.markUsed=function(e){var n=this;e.__clipPaths&&q(e.__clipPaths,function(e){e._dom&&t.prototype.markDomUsed.call(n,e._dom)})},e.prototype.removeUnused=function(){t.prototype.removeUnused.call(this);var e={};for(var n in this._refGroups){var i=this._refGroups[n];this.isDomUnused(i)?i.parentNode&&i.parentNode.removeChild(i):e[n]=i}this._refGroups=e},e}(Mx),Fx=function(t){function e(e,n){var i=t.call(this,e,n,["filter"],"__filter_in_use__","_shadowDom")||this;return i._shadowDomMap={},i._shadowDomPool=[],i}return Et(e,t),e.prototype._getFromPool=function(){var t=this._shadowDomPool.pop();if(!t){(t=this.createElement("filter")).setAttribute("id","zr"+this._zrId+"-shadow-"+this.nextId++);var e=this.createElement("feDropShadow");t.appendChild(e),this.addDom(t)}return t},e.prototype.update=function(t,e){if((r=e.style)&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)){var n=function(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}(e),i=e._shadowDom=this._shadowDomMap[n];i||(i=this._getFromPool(),this._shadowDomMap[n]=i),this.updateDom(t,e,i)}else this.remove(t,e);var r},e.prototype.remove=function(t,e){null!=e._shadowDom&&(e._shadowDom=null,t.style.filter="")},e.prototype.updateDom=function(t,e,n){var i=n.children[0],r=e.style,o=e.getGlobalScale(),a=o[0],s=o[1];if(a&&s){var l=r.shadowOffsetY||0,u=r.shadowBlur,c=r.shadowColor;i.setAttribute("dx",(r.shadowOffsetX||0)/a+""),i.setAttribute("dy",l/s+""),i.setAttribute("flood-color",c),i.setAttribute("stdDeviation",u/2/a+" "+u/2/s),n.setAttribute("x","-100%"),n.setAttribute("y","-100%"),n.setAttribute("width","300%"),n.setAttribute("height","300%"),e._shadowDom=n;var h=n.getAttribute("id");t.style.filter="url(#"+h+")"}},e.prototype.removeUnused=function(){if(this.getDefs(!1)){var t=this._shadowDomPool;for(var e in this._shadowDomMap)t.push(this._shadowDomMap[e]);this._shadowDomMap={}}},e}(Mx);function Vx(t){return parseInt(t,10)}function zx(t){return t instanceof ds?kx:t instanceof _s?Sx:t instanceof gs?Ax:kx}function Bx(t,e){return e&&t&&e.parentNode!==t}function Hx(t,e,n){if(Bx(t,e)&&n){var i=n.nextSibling;i?t.insertBefore(e,i):t.appendChild(e)}}function jx(t,e){if(Bx(t,e)){var n=t.firstChild;n?t.insertBefore(e,n):t.appendChild(e)}}function Gx(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)}function Ux(t){return t.__svgEl}function Wx(t){return function(){N('In SVG mode painter not support method "'+t+'"')}}var Yx=function(){function t(t,e,n,i){this.type="svg",this.refreshHover=Wx("refreshHover"),this.pathToImage=Wx("pathToImage"),this.configLayer=Wx("configLayer"),this.root=t,this.storage=e,this._opts=n=B({},n||{});var r=rx("svg");r.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),r.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),r.setAttribute("version","1.1"),r.setAttribute("baseProfile","full"),r.style.cssText="user-select:none;position:absolute;left:0;top:0;";var o=rx("g");r.appendChild(o);var a=rx("g");r.appendChild(a),this._gradientManager=new Ex(i,a),this._patternManager=new Rx(i,a),this._clipPathManager=new Nx(i,a),this._shadowManager=new Fx(i,a);var s=document.createElement("div");s.style.cssText="overflow:hidden;position:relative",this._svgDom=r,this._svgRoot=a,this._backgroundRoot=o,this._viewport=s,t.appendChild(s),s.appendChild(r),this.resize(n.width,n.height),this._visibleList=[]}return t.prototype.getType=function(){return"svg"},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.getSvgRoot=function(){return this._svgRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},t.prototype.setBackgroundColor=function(t){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var e=rx("rect");e.setAttribute("width",this.getWidth()),e.setAttribute("height",this.getHeight()),e.setAttribute("x",0),e.setAttribute("y",0),e.setAttribute("id",0),e.style.fill=t,this._backgroundRoot.appendChild(e),this._backgroundNode=e},t.prototype.createSVGElement=function(t){return rx(t)},t.prototype.paintOne=function(t){var e=zx(t);return e&&e.brush(t),Ux(t)},t.prototype._paintList=function(t){var e=this._gradientManager,n=this._patternManager,i=this._clipPathManager,r=this._shadowManager;e.markAllUnused(),n.markAllUnused(),i.markAllUnused(),r.markAllUnused();for(var o=this._svgRoot,a=this._visibleList,s=t.length,l=[],u=0;u=i&&l+1>=r){for(var u=[],c=0;c=i&&h+1>=r)return sx(l.components);s[a]=l}else s[a]=void 0}var p;o++}for(;o<=a;){var d=h();if(d)return d}}(a,l,undefined);for(u=0;u\n\r<"))},t}(),qx=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return m(e,t),e.prototype.getInitialData=function(t){return bb(this.getSource(),this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new tr,n=jm("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,a=.8*t.itemHeight,s=jm(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);return e.add(s),s.setStyle(t.itemStyle),s.rotation=("inherit"===t.iconRotate?r:t.iconRotate||0)*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={zlevel:0,z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0,lineStyle:{width:"bolder"}},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0},e}(Wp);function Xx(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=qf(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a0?n=i[0]:i[1]<0&&(n=i[1]),n}(r,n),a=i.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,h=X(t.dimensions,function(t){return e.mapDimension(t)}),d=!1,f=e.getCalculationInfo("stackResultDimension");return yb(e,h[0])&&(d=!0,h[0]=f),yb(e,h[1])&&(d=!0,h[1]=f),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function ik(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var rk="undefined"!=typeof Float32Array,ok=rk?Float32Array:Array;function ak(t){return et(t)?rk?new Float32Array(t):t:new ok(t)}var sk=Math.min,lk=Math.max;function uk(t,e){return isNaN(t)||isNaN(e)}function ck(t,e,n,i,r,o,a,s,l){for(var u,c,h,d,f,p,g=n,m=0;m=r||g<0)break;if(uk(v,y)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](v,y),h=v,d=y;else{var _=v-u,b=y-c;if(_*_+b*b<.5){g+=o;continue}if(a>0){var w=g+o,x=e[2*w],k=e[2*w+1],S=m+1;if(l)for(;uk(x,k)&&S=i||uk(x,k))f=v,p=y;else{A=x-u,M=k-c;var D=v-u,E=x-v,O=y-c,P=k-y,R=void 0,L=void 0;"x"===s?(R=Math.abs(D),L=Math.abs(E),f=v-R*a,p=y,I=v+R*a,T=y):"y"===s?(R=Math.abs(O),L=Math.abs(P),f=v,p=y-R*a,I=v,T=y+R*a):(R=Math.sqrt(D*D+O*O),f=v-A*a*(1-(C=(L=Math.sqrt(E*E+P*P))/(L+R))),p=y-M*a*(1-C),T=y+M*a*C,I=sk(I=v+A*a*C,lk(x,v)),T=sk(T,lk(k,y)),I=lk(I,sk(x,v)),p=y-(M=(T=lk(T,sk(k,y)))-y)*R/L,f=sk(f=v-(A=I-v)*R/L,lk(u,v)),p=sk(p,lk(c,y)),I=v+(A=v-(f=lk(f,sk(u,v))))*L/R,T=y+(M=y-(p=lk(p,sk(c,y))))*L/R)}t.bezierCurveTo(h,d,f,p,v,y),h=I,d=T}else t.lineTo(v,y)}u=v,c=y,g+=o}return m}var hk=function(){this.smooth=0,this.smoothConstraint=!0},dk=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return m(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new hk},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&uk(n[2*r-2],n[2*r-1]);r--);for(;i=0){var m=a?(c-i)*g+i:(u-n)*g+n;return a?[t,m]:[m,t]}n=u,i=c;break;case o.C:u=r[l++],c=r[l++],h=r[l++],d=r[l++],f=r[l++],p=r[l++];var v=a?ea(n,u,h,f,t,s):ea(i,c,d,p,t,s);if(v>0)for(var y=0;y=0)return m=a?Jo(i,c,d,p,_):Jo(n,u,h,f,_),a?[t,m]:[m,t]}n=f,i=p}}},e}(ds),fk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e}(hk),pk=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return m(e,t),e.prototype.getDefaultShape=function(){return new fk},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&uk(n[2*o-2],n[2*o-1]);o--);for(;ri)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return q(o.getViewLabels(),function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}(t,a,r),k=this._data;k&&k.eachItemGraphicEl(function(t,e){t.__temp&&(o.remove(t),k.setItemGraphicEl(e,null))}),w||d.remove(),o.add(g);var S,C=!c&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(null!=(S=r.getArea()).width?(S.x-=.1,S.y-=.1,S.width+=.2,S.height+=.2):S.r0&&(S.r0-=.5,S.r+=.5)),this._clipShapeForSymbol=S;var A=function(t,e){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()&&"cartesian2d"===e.type){for(var i,r,o=n.length-1;o>=0;o--){var a=t.getDimensionInfo(t.dimensions[n[o].dimension]);if("x"===(i=a&&a.coordDim)||"y"===i){r=n[o];break}}if(r){var s=e.getAxis(i),l=X(r.stops,function(t){return{offset:0,coord:s.toGlobalCoord(s.dataToCoord(t.value,!0)),color:t.color}}),u=l.length,c=r.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),c.reverse());var h=l[0].coord-10,d=l[u-1].coord+10,f=d-h;if(f<.001)return"transparent";q(l,function(t){t.offset=(t.coord-h)/f}),l.push({offset:u?l[u-1].offset:.5,color:c[1]||"transparent"}),l.unshift({offset:u?l[0].offset:.5,color:c[0]||"transparent"});var p=new Wu(0,0,0,0,l,!0);return p[i]=h,p[i+"2"]=d,p}}}(a,r)||a.getVisual("style")[a.getVisual("drawType")];f&&h.type===r.type&&C===this._step?(v&&!p?p=this._newPolygon(u,b):p&&!v&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,ed(A)),g.setClipPath(Ck(this,r,!1,t)),w&&d.updateData(a,{isIgnore:x,clipShape:S,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),_k(this._stackedOnPoints,b)&&_k(this._points,u)||(m?this._doUpdateAnimation(a,b,r,n,C,y):(C&&(u=kk(u,r,C),b&&(b=kk(b,r,C))),f.setShape({points:u}),p&&p.setShape({points:u,stackedOnPoints:b})))):(w&&d.updateData(a,{isIgnore:x,clipShape:S,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),m&&this._initSymbolLabelAnimation(a,r,S),C&&(u=kk(u,r,C),b&&(b=kk(b,r,C))),f=this._newPolyline(u),v&&(p=this._newPolygon(u,b)),c||this._initOrUpdateEndLabel(t,r,ed(A)),g.setClipPath(Ck(this,r,!0,t)));var M=t.get(["emphasis","focus"]),I=t.get(["emphasis","blurScope"]);f.useStyle(H(s.getLineStyle(),{fill:"none",stroke:A,lineJoin:"bevel"})),Dl(f,t,"lineStyle"),f.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(f.getState("emphasis").style.lineWidth=+f.style.lineWidth+1),zs(f).seriesIndex=t.seriesIndex,Al(f,M,I);var T=xk(t.get("smooth")),D=t.get("smoothMonotone"),E=t.get("connectNulls");if(f.setShape({smooth:T,smoothMonotone:D,connectNulls:E}),p){var O=a.getCalculationInfo("stackedOnSeries"),P=0;p.useStyle(H(l.getAreaStyle(),{fill:A,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),O&&(P=xk(O.get("smooth"))),p.setShape({smooth:T,stackedOnSmooth:P,smoothMonotone:D,connectNulls:E}),Dl(p,t,"areaStyle"),zs(p).seriesIndex=t.seriesIndex,Al(p,M,I)}var R=function(t){i._changePolyState(t)};a.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=R)}),this._polyline.onHoverStateChange=R,this._data=a,this._coordSys=r,this._stackedOnPoints=b,this._points=u,this._step=C,this._valueOrigin=y},e.prototype.dispose=function(){},e.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=Yr(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel"),h=t.get("z");(s=new $x(r,o)).x=l,s.y=u,s.setZ(c,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else ig.prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=Yr(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else ig.prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;ll(this._polyline,t),e&&ll(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new dk({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new pk({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");"function"==typeof l&&(l=l(null));var u=s.get("animationDelay")||0,c="function"==typeof u?u(null):u;t.eachItemGraphicEl(function(t,o){var s=t;if(s){var h=void 0,d=void 0,f=void 0;if(n)if(r){var p=n,g=e.pointToCoord([t.x,t.y]);i?(h=p.startAngle,d=p.endAngle,f=-g[1]/180*Math.PI):(h=p.r0,d=p.r,f=g[0])}else i?(h=n.x,d=n.x+n.width,f=t.x):(h=n.y+n.height,d=n.y,f=t.y);var m=d===h?0:(f-h)/(d-h);a&&(m=1-m);var v="function"==typeof u?u(o):l*m+c,y=s.getSymbolPath(),_=y.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,delay:v}),_&&_.animateFrom({style:{opacity:0}},{duration:300,delay:v}),y.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(i.get("show")){var r=t.getData(),o=this._polyline,a=this._endLabel;a||((a=this._endLabel=new Vs({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var s=function(t){for(var e,n=t.length/2;n>0&&(e=t[2*n-1],isNaN(t[2*n-2])||isNaN(e));n--);return n-1}(r.getLayout("points"));s>=0&&(Fc(o,Vc(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:s,defaultText:function(t,e,n){return null!=n?Zx(r,n):Xx(r,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=o.get("precision"),f=o.get("distance")||0,p=a.getBaseAxis(),g=p.isHorizontal(),m=p.inverse,v=e.shape,y=m?g?v.x:v.y+v.height:g?v.x+v.width:v.y,_=(g?f:0)*(m?-1:1),b=(g?0:-f)*(m?-1:1),w=g?"x":"y",x=function(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u=e||i>=e&&r<=e){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}(u,y,w),k=x.range,S=k[1]-k[0],C=void 0;if(S>=1){if(S>1&&!h){var A=Sk(u,k[0]);s.attr({x:A[0]+_,y:A[1]+b}),r&&(C=c.getRawValue(k[0]))}else{(A=l.getPointOn(y,w))&&s.attr({x:A[0]+_,y:A[1]+b});var M=c.getRawValue(k[0]),I=c.getRawValue(k[1]);r&&(C=no(n,d,M,I,x.t))}i.lastFrameIndex=k[0]}else{var T=1===t||i.lastFrameIndex>0?k[0]:0;A=Sk(u,T),r&&(C=c.getRawValue(T)),s.attr({x:A[0]+_,y:A[1]+b})}r&&Yc(s).setLabelText(C)}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,o){var a=this._polyline,s=this._polygon,l=t.hostModel,u=function(t,e,n,i,r,o,a,s){for(var l=function(t,e){var n=[];return e.diff(t).add(function(t){n.push({cmd:"+",idx:t})}).update(function(t,e){n.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){n.push({cmd:"-",idx:t})}).execute(),n}(t,e),u=[],c=[],h=[],d=[],f=[],p=[],g=[],m=nk(r,e,a),v=t.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_3e3||s&&wk(h,f)>3e3)return a.setShape({points:d}),void(s&&s.setShape({points:d,stackedOnPoints:f}));a.shape.__points=u.current,a.shape.points=c;var p={shape:{points:d}};u.current!==c&&(p.shape.__points=u.next),a.stopAnimation(),mc(a,p,l),s&&(s.setShape({points:c,stackedOnPoints:h}),s.stopAnimation(),mc(s,{shape:{stackedOnPoints:f}},l),a.shape.points!==s.shape.points&&(s.shape.points=a.shape.points));for(var g=[],m=u.status,v=0;ve&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),d=Math.round(a/h);if(d>1){"lttb"===r&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/d));var f=void 0;"string"==typeof r?f=Ik[r]:"function"==typeof r&&(f=r),f&&t.setData(i.downSample(i.mapDimension(l.dim),1/d,f,Tk))}}}}}var Ek=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.getInitialData=function(t,e){return bb(this.getSource(),this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t){var e=this.coordinateSystem;if(e){var n=e.dataToPoint(e.clampData(t)),i=this.getData(),r=i.getLayout("offset"),o=i.getLayout("size");return n[e.getBaseAxis().isHorizontal()?0:1]+=r+o/2,n}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Wp);Wp.registerClass(Ek);var Ok=Ek,Pk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.getInitialData=function(){return bb(this.getSource(),this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=ch(Ok.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(Ok),Rk=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Lk=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return m(e,t),e.prototype.getDefaultShape=function(){return new Rk},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=Math.cos(l),d=Math.sin(l),f=Math.cos(u),p=Math.sin(u);(c?u-l<2*Math.PI:l-u<2*Math.PI)&&(t.moveTo(h*r+n,d*r+i),t.arc(h*s+n,d*s+i,a,-Math.PI+l,l,!c)),t.arc(n,i,o,l,u,!c),t.moveTo(f*o+n,p*o+i),t.arc(f*s+n,p*s+i,a,u-2*Math.PI,u-Math.PI,!c),0!==r&&(t.arc(n,i,r,u,l,c),t.moveTo(h*r+n,p*r+i)),t.closePath()},e}(ds),Nk=[0,0],Fk=Math.max,Vk=Math.min,zk=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return m(e,t),e.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var r=t.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._incrementalRenderLarge(t,e)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,i){var r,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?r=u.isHorizontal():"polar"===l.type&&(r="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,h=function(t,e){var n=t.get("realtimeSort",!0),i=e.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===e.type)return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}(t,l);h&&this._enableRealtimeSort(h,a,n);var d=t.get("clip",!0)||h,f=function(t,e){var n=t.getArea&&t.getArea();if(yk(t,"cartesian2d")){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}(l,a);o.removeClipPath();var p=t.get("roundCap",!0),g=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),v=m.get("borderRadius")||0,y=[],_=this._backgroundEls,b=i&&i.isInitSort,w=i&&"changeAxisOrder"===i.type;function x(t){var e=Gk[l.type](a,t),n=function(t,e,n){return new("polar"===t.type?_u:Ms)({shape:Zk(e,n,t),silent:!0,z2:0})}(l,r,e);return n.useStyle(m.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",v),y[t]=n,n}a.diff(s).add(function(e){var n=a.getItemModel(e),i=Gk[l.type](a,e,n);if(g&&x(e),a.hasValue(e)){var s=!1;d&&(s=Bk[l.type](f,i));var m=Hk[l.type](t,a,e,i,r,c,u.model,!1,p);Uk(m,a,e,n,i,t,r,"polar"===l.type),b?m.attr({shape:i}):h?jk(h,c,m,i,e,r,!1,!1):vc(m,{shape:i},t,e),a.setItemGraphicEl(e,m),o.add(m),m.ignore=s}}).update(function(e,n){var i=a.getItemModel(e),k=Gk[l.type](a,e,i);if(g){var S=void 0;0===_.length?S=x(n):((S=_[n]).useStyle(m.getItemStyle()),"cartesian2d"===l.type&&S.setShape("r",v),y[e]=S);var C=Gk[l.type](a,e);mc(S,{shape:Zk(r,C,l)},c,e)}var A=s.getItemGraphicEl(n);if(!a.hasValue(e))return o.remove(A),void(A=null);var M=!1;d&&(M=Bk[l.type](f,k))&&o.remove(A),A||(A=Hk[l.type](t,a,e,k,r,c,u.model,!!A,p)),w||Uk(A,a,e,i,k,t,r,"polar"===l.type),b?A.attr({shape:k}):h?jk(h,c,A,k,e,r,!0,w):mc(A,{shape:k},t,e,null),a.setItemGraphicEl(e,A),A.ignore=M,o.add(A)}).remove(function(e){var n=s.getItemGraphicEl(e);n&&bc(n,t,e)}).execute();var k=this._backgroundGroup||(this._backgroundGroup=new tr);k.removeAll();for(var S=0;So)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r,animation:{duration:0}})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(e){bc(e,t,zs(e).dataIndex)})):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(ig),Bk={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=Fk(e.x,t.x),s=Vk(e.x+e.width,r),l=Fk(e.y,t.y),u=Vk(e.y+e.height,o),c=sr?s:a,e.y=h&&l>o?u:l,e.width=c?0:s-a,e.height=h?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var r=Vk(e.r,t.r),o=Fk(e.r0,t.r0);e.r=r,e.r0=o;var a=r-o<0;return n<0&&(i=e.r,e.r=e.r0,e.r0=i),a}},Hk={cartesian2d:function(t,e,n,i,r,o,a,s,l){var u=new Ms({shape:B({},i),z2:1});return u.__dataIndex=n,u.name="item",o&&(u.shape[r?"height":"width"]=0),u},polar:function(t,e,n,i,r,o,a,s,l){var u=new(!r&&l?Lk:_u)({shape:H({clockwise:i.startAngle0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle}}};function Uk(t,e,n,i,r,o,a,s){var l=e.getItemVisual(n,"style");s||t.setShape("r",i.get(["itemStyle","borderRadius"])||0),t.useStyle(l);var u=i.getShallow("cursor");if(u&&t.attr("cursor",u),!s){var c=a?r.height>0?"bottom":"top":r.width>0?"left":"right",h=Vc(i);Fc(t,h,{labelFetcher:o,labelDataIndex:n,defaultText:Xx(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c}),qc(t.getTextContent(),h,o.getRawValue(n),function(t){return Zx(e,t)})}var d=i.getModel(["emphasis"]);Al(t,d.get("focus"),d.get("blurScope")),Dl(t,i),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(r)&&(t.style.fill="none",t.style.stroke="none",q(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}var Wk=function(){},Yk=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return m(e,t),e.prototype.getDefaultShape=function(){return new Wk},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.__startPoint,r=this.__baseDimIdx,o=0;o=h&&m<=d&&(l<=v?c>=l&&c<=v:c>=v&&c<=l))return a[f]}return-1}(this,t.offsetX,t.offsetY);zs(this).dataIndex=e>=0?e:null},30,!1);function Zk(t,e,n){if(yk(n,"cartesian2d")){var i=e,r=n.getArea();return{x:t?i.x:r.x,y:t?r.y:i.y,width:t?i.width:r.width,height:t?r.height:i.height}}return{cx:(r=n.getArea()).cx,cy:r.cy,r0:t?r.r0:e.r0,r:t?r.r:e.r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}}var Kk=zk,$k=2*Math.PI,Qk=Math.PI/180;function Jk(t,e,n){e.eachSeriesByType(t,function(t){var e=t.getData(),i=e.mapDimension("value"),r=function(t,e){return ld(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,n),o=t.get("center"),a=t.get("radius");et(a)||(a=[0,a]),et(o)||(o=[o,o]);var s=dr(r.width,n.getWidth()),l=dr(r.height,n.getHeight()),u=Math.min(s,l),c=dr(o[0],s)+r.x,h=dr(o[1],l)+r.y,d=dr(a[0],u/2),f=dr(a[1],u/2),p=-t.get("startAngle")*Qk,g=t.get("minAngle")*Qk,m=0;e.each(i,function(t){!isNaN(t)&&m++});var v=e.getSum(i),y=Math.PI/(v||m)*2,_=t.get("clockwise"),b=t.get("roseType"),w=t.get("stillShowZeroSum"),x=e.getDataExtent(i);x[0]=0;var k=$k,S=0,C=p,A=_?1:-1;if(e.setLayout({viewRect:r,r:f}),e.each(i,function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:c,cy:h,r0:d,r:b?NaN:f});else{(i="area"!==b?0===v&&w?y:t*y:$k/m)n?a:o,c=Math.abs(l.label.y-n);if(c>u.maxY){var h=l.label.x-e-l.len2*r,f=i+l.len,p=Math.abs(h)0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u0?"right":"left":D>0?"left":"right"}var z=m.get("rotate");if(O="number"==typeof z?z*(Math.PI/180):z?D<0?-T+Math.PI:-T:0,o=!!O,d.x=C,d.y=A,d.rotation=O,d.setStyle({verticalAlign:"middle"}),P){d.setStyle({align:I});var B=d.states.select;B&&(B.x+=d.x,B.y+=d.y)}else{var H=d.getBoundingRect().clone();H.applyTransform(d.getComputedTransform());var j=(d.style.margin||0)+2.1;H.y-=j/2,H.height+=j,r.push({label:d,labelLine:p,position:v,len:k,len2:S,minTurnAngle:x.get("minTurnAngle"),maxSurfaceAngle:x.get("maxSurfaceAngle"),surfaceNormal:new xi(D,E),linePoints:M,textAlign:I,labelDistance:y,labelAlignTo:_,edgeDistance:b,bleedMargin:w,rect:H})}s.setTextConfig({inside:P})}}),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,i,r,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d=n.r0}},e.type="pie",e}(ig);function sS(t,e,n){e=et(e)&&{coordDimensions:e}||B({},e);var i=t.getSource(),r=fb(i,e),o=new hb(r,t);return o.initData(i,n),o}var lS=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}(),uS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.useColorPaletteOnData=!0,e}return m(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new lS(J(this.getData,this),J(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return sS(this,{coordDimensions:["value"],encodeDefaulter:tt(Ed,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=[];return n.each(n.mapDimension("value"),function(t){r.push(t)}),i.percent=yr(r,e,n.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},e.prototype._defaultLabelLine=function(t){Fr(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={zlevel:0,z:2,legendHoverLink:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Wp),cS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return m(e,t),e.prototype.getInitialData=function(t,e){return bb(this.getSource(),this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}}},e}(Wp),hS=function(){},dS=function(t){function e(e){return t.call(this,e)||this}return m(e,t),e.prototype.getDefaultShape=function(){return new hS},e.prototype.buildPath=function(t,e){var n=e.points,i=e.size,r=this.symbolProxy,o=r.shape,a=t.getContext?t.getContext():t;if(a&&i[0]<4)this._ctx=a;else{this._ctx=null;for(var s=0;s=0;s--){var l=2*s,u=i[l]-o/2,c=i[l+1]-a/2;if(t>=u&&e>=c&&t<=u+o&&e<=c+a)return s}return-1},e}(ds),fS=function(){function t(){this.group=new tr}return t.prototype.isPersistent=function(){return!this._incremental},t.prototype.updateData=function(t,e){this.group.removeAll();var n=new dS({rectHover:!0,cursor:"default"});n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,!1,e),this.group.add(n),this._incremental=null},t.prototype.updateLayout=function(t){if(!this._incremental){var e=t.getLayout("points");this.group.eachChild(function(t){null!=t.startIndex&&(e=new Float32Array(e.buffer,4*t.startIndex*2,2*(t.endIndex-t.startIndex))),t.setShape("points",e)})}},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new Ju({silent:!0})),this.group.add(this._incremental)):this._incremental=null},t.prototype.incrementalUpdate=function(t,e,n){var i;this._incremental?(i=new dS,this._incremental.addDisplayable(i,!0)):((i=new dS({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end})).incremental=!0,this.group.add(i)),i.setShape({points:e.getLayout("points")}),this._setCommon(i,e,!!this._incremental,n)},t.prototype._setCommon=function(t,e,n,i){var r=e.hostModel;i=i||{};var o=e.getVisual("symbolSize");t.setShape("size",o instanceof Array?o:[o,o]),t.softClipShape=i.clipShape||null,t.symbolProxy=jm(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var a=t.shape.size[0]<4;t.useStyle(r.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),l=s&&s.fill;if(l&&t.setColor(l),!n){var u=zs(t);u.seriesIndex=r.seriesIndex,t.on("mousemove",function(e){u.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>=0&&(u.dataIndex=n+(t.startIndex||0))})}},t.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},t.prototype._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()},t}(),pS=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var r=Mk("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new fS:new ek,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(ig),gS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(md),mS=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",$r).models[0]},e.type="cartesian2dAxis",e}(md);W(mS,Tw);var vS={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},yS=V({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},vS),_S=V({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},vS),bS={category:yS,value:_S,time:V({scale:!0,splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},_S),log:H({scale:!0,logBase:10},_S)},wS={value:1,category:1,time:1,log:1};function xS(t,e,n,i){q(wS,function(r,o){var a=V(V({},bS[o],!0),i,!0),s=function(t){function n(){for(var n=[],i=0;ie[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Ww);function TS(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,c=i.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,p="x"===u?[h[2]-f,h[3]+f]:[h[0]-f,h[1]+f];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));p[d.onZero]=Math.max(Math.min(g,p[1]),p[0])}o.position=["y"===u?p[d[l]]:h[0],"x"===u?p[d[l]]:h[3]],o.rotation=Math.PI/2*("x"===u?0:1),o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?p[d[s]]-p[d.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),pt(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var m=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-m:m,o.z2=1,o}function DS(t){return"cartesian2d"===t.get("coordinateSystem")}function ES(t){var e={xAxisModel:null,yAxisModel:null};return q(e,function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,$r).models[0];e[i]=o}),e}function OS(t,e){return t.getCoordSysModel()===e}function PS(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)RS(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&RS(o[u])&&!i[c(o[u])]){r=o[u];break}r&&(i[c(r)]=!0)}function c(t){return t.dim+"_"+t.index}}function RS(t){return t&&"category"!==t.type&&"time"!==t.type&&function(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}(t)}var LS=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=CS,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model),q(n.x,function(t){ww(t.scale,t.model)}),q(n.y,function(t){ww(t.scale,t.model)});var i={};q(n.x,function(t){PS(n,"y",t,i)}),q(n.y,function(t){PS(n,"x",t,i)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),r=!n&&t.get("containLabel"),o=ld(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){q(a,function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e?o.x:o.y)})}s(),r&&(q(a,function(t){if(!t.model.get(["axisLabel","inside"])){var e=function(t){var e=t.scale;if(t.model.get(["axisLabel","show"])&&!e.isBlank()){var n,i,r=e.getExtent();i=e instanceof Ob?e.count():(n=e.getTicks()).length;var o,a=t.getLabelModel(),s=kw(t),l=1;i>40&&(l=Math.ceil(i/40));for(var u=0;u0?"top":"bottom",i="center"):xr(o-NS)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),VS={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0];a&&(te(s,s,a),te(l,l,a));var u=B({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Ru({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});c.anid="line",n.add(c);var h=e.get(["axisLine","symbol"]),d=e.get(["axisLine","symbolSize"]),f=e.get(["axisLine","symbolOffset"])||0;if("number"==typeof f&&(f=[f,f]),null!=h){"string"==typeof h&&(h=[h,h]),"string"!=typeof d&&"number"!=typeof d||(d=[d,d]);var p=d[0],g=d[1];q([{rotate:t.rotation+Math.PI/2,offset:f[0],r:0},{rotate:t.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(e,i){if("none"!==h[i]&&null!=h[i]){var r=jm(h[i],-p/2,-g/2,p,g,u.stroke,!0),o=e.r+e.offset;r.attr({rotation:e.rotate,x:s[0]+o*Math.cos(t.rotation),y:s[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}})}}},axisTickLabel:function(t,e,n,i){var r=function(t,e,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick")),a&&!r.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),u=jS(r.getTicksCoords(),e.transform,l,H(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;ch[1]?-1:1,f=["start"===s?h[0]-d*c:"end"===s?h[1]+d*c:(h[0]+h[1])/2,HS(s)?t.labelOffset+l*c:0],p=e.get("nameRotate");null!=p&&(p=p*NS/180),HS(s)?o=FS.innerTextLayout(t.rotation,null!=p?p:t.rotation,l):(o=function(t,e,n,i){var r,o,a=wr(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return xr(a-NS/2)?(o=l?"bottom":"top",r="center"):xr(a-1.5*NS)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*NS&&a>NS/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}(t.rotation,s,p||0,h),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),m=e.get("nameTruncate",!0)||{},v=m.ellipsis,y=pt(t.nameTruncateMaxWidth,m.maxWidth,a),_=new Vs({x:f[0],y:f[1],rotation:o.rotation,silent:FS.isLabelSilent(e),style:zc(u,{text:r,font:g,overflow:"truncate",width:y,ellipsis:v,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Pc({el:_,componentModel:e,itemName:r}),_.__fullText=r,_.anid="name",e.get("triggerEvent")){var b=FS.makeAxisEventDataBase(e);b.targetType="axisName",b.name=r,zs(_).eventData=b}i.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function zS(t){t&&(t.ignore=!0)}function BS(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=oi([]);return ui(r,r,-t.rotation),n.applyTransform(si([],r,t.getLocalTransform())),i.applyTransform(si([],r,e.getLocalTransform())),n.intersect(i)}}function HS(t){return"middle"===t||"center"===t}function jS(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l=0||t===e}function WS(t){var e=YS(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=qS(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var d=a;null!=h.color&&(d=H({color:h.color},a));var f=V(F(h),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:h.text,nameLocation:"end",nameGap:u,nameTextStyle:d,triggerEvent:c},!1);if(s||(f.name=""),"string"==typeof l){var p=f.name;f.name=l.replace("{value}",null!=p?p:"")}else"function"==typeof l&&(f.name=l(f.name,f));var g=new sh(f,null,this.ecModel);return W(g,Tw.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:V({lineStyle:{color:"#bbb"}},gC.axisLine),axisLabel:mC(gC.axisLabel,!1),axisTick:mC(gC.axisTick,!1),splitLine:mC(gC.splitLine,!0),splitArea:mC(gC.splitArea,!0),indicator:[]},e}(md),yC=["axisLine","axisTickLabel","axisName"],_C=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem;q(X(e.getIndicatorAxes(),function(t){return new GS(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(t){q(yC,t.add,t),this.group.add(t.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),r=t.getModel("splitLine"),o=t.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),u=o.get("show"),c=a.get("color"),h=s.get("color"),d=et(c)?c:[c],f=et(h)?h:[h],p=[],g=[];if("circle"===i)for(var m=n[0].getTicksCoords(),v=e.cx,y=e.cy,_=0;_n[0]&&isFinite(h)&&isFinite(n[0]))}else a.getTicks().length-1>r&&(u=o(u)),h=fr((c=Math.ceil(n[1]/u)*u)-u*r),a.setExtent(h,c),a.setInterval(u)})},t.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.create=function(e,n){var i=[];return e.eachComponent("radar",function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o}),e.eachSeriesByType("radar",function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])}),i},t.dimensions=[],t}();function xC(t){t.registerCoordinateSystem("radar",wC),t.registerComponentModel(vC),t.registerComponentView(_C),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(t){e.setItemVisual(t,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}var kC="\0_ec_interaction_mutex";function SC(t,e){return!!CC(t)[e]}function CC(t){return t[kC]||(t[kC]={})}function AC(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(be(i.event),MC(t,e,n,i,r))}function MC(t,e,n,i,r){r.isAvailableBehavior=J(IC,null,n,i),t.trigger(e,r)}function IC(t,e,n){var i=n[t];return!t||i&&(!it(i)||e.event[i+"Key"])}__({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){});var TC=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var i=J(n._mousedownHandler,n),r=J(n._mousemoveHandler,n),o=J(n._mouseupHandler,n),a=J(n._mousewheelHandler,n),s=J(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=H(F(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",i),e.on("mousemove",r),e.on("mouseup",o)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",a),e.on("pinch",s))},n.disable=function(){e.off("mousedown",i),e.off("mousemove",r),e.off("mouseup",o),e.off("mousewheel",a),e.off("pinch",s)},n}return m(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(we(t)||t.target&&t.target.draggable)){var e=t.offsetX,n=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,n)&&(this._x=e,this._y=n,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&IC("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!SC(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,i=this._x,r=this._y,o=e-i,a=n-r;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&be(t.event),MC(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:i,oldY:r,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){we(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=IC("zoomOnMouseWheel",t,this._opt),n=IC("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,r=Math.abs(i),o=t.offsetX,a=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1;AC(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(i);AC(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){SC(this._zr,"globalPan")||AC(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(oe);function DC(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function EC(t,e,n,i){var r=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0;a=Math.max(Math.min(o.max||1/0,a),s)}var l=a/t.zoom;t.zoom=a,r.x-=(n-r.x)*(l-1),r.y-=(i-r.y)*(l-1),r.scaleX*=l,r.scaleY*=l,r.dirty()}var OC={axisPointer:1,tooltip:1,brush:1};function PC(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!OC.hasOwnProperty(i.mainType)&&r&&r.model!==n}var RC=["rect","circle","line","ellipse","polygon","polyline","path"],LC=Ct(RC),NC=Ct(RC.concat(["g"])),FC=Ct(RC.concat(["g"])),VC=qr();function zC(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function BC(t,e,n,i){var r=i.getModel("itemStyle"),o=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=zC(r),u=zC(o),c=zC(s),h=zC(a),d=t.data;if(d){var f=d.getItemVisual(n,"style"),p=d.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&f.fill&&(l.fill=f.fill),p&&(l.decal=hv(p,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=h,cl(e)}function HC(t,e,n,i,r,o,a){var s=t.data,l=t.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var h=l?n:o,d=void 0;(!s||o>=0)&&(d=r);var f=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Fc(e,Vc(i),{labelFetcher:d,labelDataIndex:h,defaultText:n},f);var p=e.getTextContent();if(p&&(VC(p).ignore=p.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function jC(t,e,n,i,r,o){t.data?t.data.setItemGraphicEl(o,e):zs(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function GC(t,e,n,i,r){t.data||Pc({el:e,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function UC(t,e,n,i,r){e.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return Al(e,a,o.get("blurScope")),t.isGeo&&function(t,e,n){var i=zs(t);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=n}(e,r,n),a}var WC=function(){function t(t){var e=new tr;this.uid=uh("ec_map_draw"),this._controller=new TC(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new tr),e.add(this._svgGroup=new tr)}return t.prototype.draw=function(t,e,n,i,r){var o="geo"===t.mainType,a=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},function(e){a||e.getHostGeoModel()!==t||(a=e.getData())});var s=t.coordinateSystem,l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),h=c.raw,d=c.roam;!l.childAt(0)||r?(u.x=d.x,u.y=d.y,u.scaleX=d.scaleX,u.scaleY=d.scaleY,u.dirty()):mc(u,d,t);var f=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,p={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:f,isGeo:o,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(p):"geoSVG"===s.resourceType&&this._buildSVG(p),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,i)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=Ct(),n=Ct(),i=this._regionsGroup,r=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,s=function(t){return[t[0]*r.scaleX+r.x,t[1]*r.scaleY+r.y]};i.removeAll(),q(t.geo.regions,function(r){var l=r.name,u=e.get(l),c=n.get(l)||{},h=c.dataIdx,d=c.regionModel;u||(u=e.set(l,new tr),i.add(u),h=a?a.indexOfName(l):null,d=t.isGeo?o.getRegionModel(l):a?a.getItemModel(h):null,n.set(l,{dataIdx:h,regionModel:d}));var f=new Gu({segmentIgnoreThreshold:1,shape:{paths:[]}});u.add(f),q(r.geometries,function(t){if("polygon"===t.type){for(var e=[],n=0;n-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Wp);function XC(t){var e={};t.eachSeriesByType("map",function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)}),q(e,function(t,e){for(var n,i,r,o=(n=X(t,function(t){return t.getData()}),i=t[0].get("mapValueCalculation"),r={},q(n,function(t){t.each(t.mapDimension("value"),function(e,n){var i="ec-"+t.getName(n);r[i]=r[i]||[],isNaN(e)||r[i].push(e)})}),n[0].map(n[0].mapDimension("value"),function(t,e){for(var o="ec-"+n[0].getName(e),a=0,s=1/0,l=-1/0,u=r[o].length,c=0;c1?(s.width=a,s.height=a/f):(s.height=a,s.width=a*f),s.y=o[1]-s.height/2,s.x=o[0]-s.width/2;else{var g=t.getBoxLayoutParams();g.aspect=f,s=ld(g,{width:h,height:d})}this.setViewRect(s.x,s.y,s.width,s.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}var rA=new(function(){function t(){this.dimensions=nA.prototype.dimensions}return t.prototype.create=function(t,e){var n=[];t.eachComponent("geo",function(t,i){var r=t.get("map"),o=new nA(r+i,r,{nameMap:t.get("nameMap"),nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale")});o.zoomLimit=t.get("scaleLimit"),n.push(o),t.coordinateSystem=o,o.model=t,o.resize=iA,o.resize(t,e)}),t.eachSeries(function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}});var i={};return t.eachSeriesByType("map",function(t){if(!t.getHostGeoModel()){var e=t.getMapType();i[e]=i[e]||[],i[e].push(t)}}),q(i,function(t,i){var r=X(t,function(t){return t.get("nameMap")}),o=new nA(i,i,{nameMap:z(r),nameProperty:t[0].get("nameProperty"),aspectScale:t[0].get("aspectScale")});o.zoomLimit=pt.apply(null,X(t,function(t){return t.get("scaleLimit")})),n.push(o),o.resize=iA,o.resize(t[0],e),q(t,function(t){t.coordinateSystem=o,function(t,e){q(e.get("geoCoord"),function(e,n){t.addGeoCoord(n,e)})}(o,t)})}),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var r=(t||[]).slice(),o=Ct(),a=0;a=0;){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,i+=o.hierNode.shift+(r+=o.hierNode.change)}}(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=function(t,e,n,i){if(e){for(var r=t,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,h=s.hierNode.modifier;s=fA(s),o=pA(o),s&&o;){r=fA(r),a=pA(a),r.hierNode.ancestor=t;var d=s.hierNode.prelim+h-o.hierNode.prelim-u+i(s,o);d>0&&(mA(gA(s,t,n),t,d),u+=d,l+=d),h+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,c+=a.hierNode.modifier}s&&!fA(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=h-l),o&&!pA(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=t)}return n}(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function cA(t){t.setLayout({x:t.hierNode.prelim+t.parentNode.hierNode.modifier},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function hA(t){return arguments.length?t:vA}function dA(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function fA(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function pA(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function gA(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function mA(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function vA(t,e){return t.parentNode===e.parentNode?1:2}var yA=function(){this.parentPoint=[],this.childPoints=[]},_A=function(t){function e(e){return t.call(this,e)||this}return m(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new yA},e.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,o=n[0],a=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=dr(e.forkPosition,1),h=[];h[l]=r[l],h[u]=r[u]+(a[u]-r[u])*c,t.moveTo(r[0],r[1]),t.lineTo(h[0],h[1]),t.moveTo(o[0],o[1]),h[l]=o[l],t.lineTo(h[0],h[1]),h[l]=a[l],t.lineTo(h[0],h[1]),t.lineTo(a[0],a[1]);for(var d=1;dy.x)||(b-=Math.PI);var k=w?"left":"right",S=s.getModel("label"),C=S.get("rotate"),A=C*(Math.PI/180),M=m.getTextContent();M&&(m.setTextConfig({position:S.get("position")||k,rotation:null==C?-b:A,origin:"center"}),M.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),T="ancestor"===I?a.getAncestorsIndices():"descendant"===I?a.getDescendantIndices():null;T&&(zs(n).focus=T),function(t,e,n,i,r,o,a,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),h=t.getOrient(),d=t.get(["lineStyle","curveness"]),f=t.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&(g||(g=i.__edge=new zu({shape:kA(c,h,d,r,r)})),mc(g,{shape:kA(c,h,d,o,a)},t));else if("polyline"===u&&"orthogonal"===c&&e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var m=e.children,v=[],y=0;ye&&(e=i.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},t.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},t}(),LA=function(){function t(t){this.type="tree",this._nodes=[],this.hostModel=t}return t.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},t.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},t.prototype.getNodeById=function(t){return this.root.getNodeById(t)},t.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n=0){var i=n.getData().tree.root,r=t.targetNode;if("string"==typeof r&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function FA(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function VA(t,e){return G(FA(t),e)>=0}function zA(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}var BA=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return m(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=new sh(t.leaves||{},this,this.ecModel),i=LA.createTree(e,this,function(t){t.wrapMethod("getItemModel",function(t,e){var r=i.getNodeByDataIndex(e);return r&&r.children.length&&r.isExpand||(t.parentModel=n),t})}),r=0;i.eachNode("preorder",function(t){t.depth>r&&(r=t.depth)});var o=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:r;return i.root.eachNode("preorder",function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=o}),i.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,n){for(var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(t),a=o.getValue(),s=o.name;o&&o!==r;)s=o.parentNode.name+"."+s,o=o.parentNode;return Sp("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=zA(i,this),n},e.type="series.tree",e.layoutMode="box",e.defaultOption={zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Wp);function HA(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function jA(t,e){t.eachSeriesByType("tree",function(t){!function(t,e){var n=function(t,e){return ld(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=n;var i=t.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=hA(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(r=n.width,o=n.height,a=hA());var s=t.getData().tree.root,l=s.children[0];if(l){!function(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,i,r=[e];n=r.pop();)if(i=n.children,n.isExpand&&i.length)for(var o=i.length-1;o>=0;o--){var a=i[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(a)}}(s),function(t,e,n){for(var i,r=[t],o=[];i=r.pop();)if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;sc.getLayout().x&&(c=t),t.depth>h.depth&&(h=t)});var d=u===c?1:a(u,c)/2,f=d-u.getLayout().x,p=0,g=0,m=0,v=0;if("radial"===i)p=r/(c.getLayout().x+d+f),g=o/(h.depth-1||1),HA(l,function(t){var e=dA(m=(t.getLayout().x+f)*p,v=(t.depth-1)*g);t.setLayout({x:e.x,y:e.y,rawX:m,rawY:v},!0)});else{var y=t.getOrient();"RL"===y||"LR"===y?(g=o/(c.getLayout().x+d+f),p=r/(h.depth-1||1),HA(l,function(t){v=(t.getLayout().x+f)*g,t.setLayout({x:m="LR"===y?(t.depth-1)*p:r-(t.depth-1)*p,y:v},!0)})):"TB"!==y&&"BT"!==y||(p=r/(c.getLayout().x+d+f),g=o/(h.depth-1||1),HA(l,function(t){m=(t.getLayout().x+f)*p,t.setLayout({x:m,y:v="TB"===y?(t.depth-1)*g:o-(t.depth-1)*g},!0)}))}}}(t,e)})}function GA(t){t.eachSeriesByType("tree",function(t){var e=t.getData();e.tree.eachNode(function(t){var n=t.getModel().getModel("itemStyle").getItemStyle();B(e.ensureUniqueItemVisual(t.dataIndex,"style"),n)})})}var UA=function(){},WA=["treemapZoomToNode","treemapRender","treemapMove"];function YA(t){var e=t.getData(),n={};e.tree.eachNode(function(e){for(var i=e;i&&i.depth>1;)i=i.parentNode;var r=jd(t.ecModel,i.name||i.dataIndex+"",n);e.setVisual("decal",r)})}function qA(t){var e=0;q(t.children,function(t){qA(t);var n=t.value;et(n)&&(n=n[0]),e+=n});var n=t.value;et(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),et(t.value)?t.value[0]=n:t.value=n}var XA=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return m(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};qA(n);var i=t.levels||[],r=this.designatedVisualItemStyle={},o=new sh({itemStyle:r},this,e),a=X((i=t.levels=function(t,e){var n,i,r=Nr(e.get("color")),o=Nr(e.get(["aria","decal","decals"]));if(r){q(t=t||[],function(t){var e=new sh(t),r=e.get("color"),o=e.get("decal");(e.get(["itemStyle","color"])||r&&"none"!==r)&&(n=!0),(e.get(["itemStyle","decal"])||o&&"none"!==o)&&(i=!0)});var a=t[0]||(t[0]={});return n||(a.color=r.slice()),!i&&o&&(a.decal=o.slice()),t}}(i,e))||[],function(t){return new sh(t,o,e)},this),s=LA.createTree(n,this,function(t){t.wrapMethod("getItemModel",function(t,e){var n=s.getNodeByDataIndex(e);return t.parentModel=(n?a[n.depth]:null)||o,t})});return s.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t);return Sp("nameValue",{name:i.getName(t),value:r})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=zA(i,this),n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},B(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=Ct(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){YA(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25b6",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Wp);function ZA(t,e,n,i,r,o){var a=[[r?t:t-5,e],[t+n,e],[t+n,e+i],[r?t:t-5,e+i]];return!o&&a.splice(2,0,[t+n+5,e+i/2]),!r&&a.push([t,e+i/2]),a}function KA(t,e,n){zs(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&zA(n,e)}}var $A=function(){function t(t){this.group=new tr,t.add(this.group)}return t.prototype.render=function(t,e,n,i){var r=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=a.getModel("textStyle"),l={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,l,s),this._renderContent(t,l,a,s,i),ud(o,l.pos,l.box)}},t.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var r=Gr(i.getModel().get("name"),""),o=n.getTextRect(r),a=Math.max(o.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:i,text:r,width:a})}},t.prototype._renderContent=function(t,e,n,i,r){for(var o,a,s,l,u,c,h,d,f,p=0,g=e.emptyItemWidth,m=t.get(["breadcrumb","height"]),v=(u=(a=e.box).height,c=dr((o=e.pos).left,l=a.width),h=dr(o.top,u),d=dr(o.right,l),f=dr(o.bottom,u),(isNaN(c)||isNaN(parseFloat(o.left)))&&(c=0),(isNaN(d)||isNaN(parseFloat(o.right)))&&(d=l),(isNaN(h)||isNaN(parseFloat(o.top)))&&(h=0),(isNaN(f)||isNaN(parseFloat(o.bottom)))&&(f=u),s=Uh(s||0),{width:Math.max(d-c-s[1]-s[3],0),height:Math.max(f-h-s[0]-s[2],0)}),y=e.totalWidth,_=e.renderList,b=_.length-1;b>=0;b--){var w=_[b],x=w.node,k=w.width,S=w.text;y>v.width&&(y-=k-g,k=g,S=null);var C=new Mu({shape:{points:ZA(p,0,k,m,b===_.length-1,0===b)},style:H(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Vs({style:{text:S,fill:i.getTextColor(),font:i.getFont()}}),textConfig:{position:"inside"},z2:1e5,onclick:tt(r,x)});C.disableLabelAnimation=!0,this.group.add(C),KA(C,t,x),p+=k+8}},t.prototype.remove=function(){this.group.removeAll()},t}(),QA=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,i,r){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:r}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){--e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,r=this._storage.length;i3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new Ei(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo,s=[1,0,0,1,0,0];li(s,s,[-(e-=a.x),-(n-=a.y)]),ci(s,s,[t.scale,t.scale]),li(s,s,[e,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var i=e.findTarget(t.offsetX,t.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)e._rootToNode(i);else if("zoomToNode"===n)e._zoomToNode(i);else if("link"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&nd(a,s)}}}}},this)},e.prototype._renderBreadcrumb=function(t,e,n){var i=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new $A(this.group))).render(t,e,n.node,function(e){"animating"!==i._state&&(VA(t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}},this),n},e.type="treemap",e}(ig),sM=q,lM=at,uM=function(){function t(e){var n=e.mappingMethod,i=e.type,r=this.option=F(e);this.type=i,this.mappingMethod=n,this._normalizeData=_M[n];var o=t.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(cM(r),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,q(e,function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)})}(r)):"category"===n?r.categories?function(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(sM(e,function(t,e){n[t]=e}),!et(i)){var r=[];at(i)?sM(i,function(t,e){var i=n[e];r[null!=i?i:-1]=t}):r[-1]=i,i=yM(t,r)}for(var o=e.length-1;o>=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}(r):cM(r,!0):(_t("linear"!==n||r.dataExtent),cM(r))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return J(this._normalizeData,this)},t.listVisualTypes=function(){return Q(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){at(t)?q(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var r,o=et(e)?[]:at(e)?{}:(r=!0,null);return t.eachVisual(e,function(t,e){var a=n.call(i,t,e);r?o=a:o[e]=a}),o},t.retrieveVisuals=function(e){var n,i={};return e&&sM(t.visualHandlers,function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)}),n?i:null},t.prepareVisualTypes=function(t){if(et(t))t=t.slice();else{if(!lM(t))return[];var e=[];sM(t,function(t,n){e.push(n)}),t=e}return t.sort(function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1}),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var i,r=1/0,o=0,a=e.length;ou[1]&&(u[1]=l);var c=e.get("colorMappingBy"),h={type:a.name,dataExtent:u,visual:a.range};"color"!==h.type||"index"!==c&&"id"!==c?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new wM(h);return xM(d).drColorMappingBy=c,d}}}(0,r,o,0,u,f);q(f,function(t,e){if(t.depth>=n.length||t===n[t.depth]){var o=function(t,e,n,i,r,o){var a=B({},e);if(r){var s=r.type,l="color"===s&&xM(r).drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=r.mapValueToVisual(u)}return a}(r,u,t,e,p,i);SM(t,o,n,i)}})}else s=CM(u),c.fill=s}}function CM(t){var e=AM(t,"color");if(e){var n=AM(t,"colorAlpha"),i=AM(t,"colorSaturation");return i&&(e=vn(e,null,null,i)),n&&(e=yn(e,n)),e}}function AM(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function MM(t,e){var n=t.get(e);return et(n)&&n.length?{name:e,range:n}:null}var IM=Math.max,TM=Math.min,DM=pt,EM=q,OM=["itemStyle","borderWidth"],PM=["itemStyle","gapWidth"],RM=["upperLabel","show"],LM=["upperLabel","height"],NM={seriesType:"treemap",reset:function(t,e,n,i){var r=n.getWidth(),o=n.getHeight(),a=t.option,s=ld(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=dr(DM(s.width,l[0]),r),c=dr(DM(s.height,l[1]),o),h=i&&i.type,d=NA(i,["treemapZoomToNode","treemapRootToNode"],t),f="treemapRender"===h||"treemapMove"===h?i.rootRect:null,p=t.getViewRoot(),g=FA(p);if("treemapMove"!==h){var m="treemapZoomToNode"===h?function(t,e,n,i,r){var o,a=(e||{}).node,s=[i,r];if(!a||a===n)return s;for(var l=i*r,u=l*t.option.zoomToNodeRatio;o=a.parentNode;){for(var c=0,h=o.children,d=0,f=h.length;dbr&&(u=br),a=o}ua[1]&&(a[1]=e)})):a=[NaN,NaN],{sum:i,dataExtent:a}}(e,a,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=function(t,e,n,i,r){if(!i)return n;for(var o=t.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*ei&&(i=a));var l=t.area*t.area,u=e*e*n;return l?IM(u*i/l,l/(u*r)):1/0}function zM(t,e,n,i,r){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=e?t.area/e:0;(r||c>n[l[a]])&&(c=n[l[a]]);for(var h=0,d=t.length;hi&&(i=e);var o=i%2?i+2:i+3;r=[];for(var a=0;a0&&(y[0]=-y[0],y[1]=-y[1]);var b=v[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var w=-Math.atan2(v[1],v[0]);u[0].8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*p+l[0],i.y=-c[1]*g+l[1],h=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=p*b+l[0],i.y=l[1]+x,h=v[0]<0?"right":"left",i.originX=-p*b,i.originY=-x;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=_[0],i.y=_[1]+x,h="center",i.originY=-x;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-p*b+u[0],i.y=u[1]+x,h=v[0]>=0?"right":"left",i.originX=p*b,i.originY=-x}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||h})}}}function k(t,e){var n=t.__specifiedRotation;if(null==n){var i=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else t.attr("rotation",n)}},e}(tr);function kI(t){var e=t.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["emphasis","lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),labelStatesModels:Vc(e)}}function SI(t){return isNaN(t[0])||isNaN(t[1])}function CI(t){return!SI(t[0])&&!SI(t[1])}var AI=function(){function t(t){this.group=new tr,this._LineCtor=t||xI}return t.prototype.isPersistent=function(){return!0},t.prototype.updateData=function(t){var e=this,n=this,i=n.group,r=n._lineData;n._lineData=t,r||i.removeAll();var o=kI(t);t.diff(r).add(function(n){e._doAdd(t,n,o)}).update(function(n,i){e._doUpdate(r,t,i,n,o)}).remove(function(t){i.remove(r.getItemGraphicEl(t))}).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=kI(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||function(t){return t.animators&&t.animators.length>0}(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i=0?i+=u:i-=u:p>=0?i-=u:i+=u}return i}function RI(t,e){var n=[],i=ua,r=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge(function(t,s){var l=t.getLayout(),u=t.getVisual("fromSymbol"),c=t.getVisual("toSymbol");l.__original||(l.__original=[Rt(l[0]),Rt(l[1])],l[2]&&l.__original.push(Rt(l[2])));var h=l.__original;if(null!=l[2]){if(Pt(r[0],h[0]),Pt(r[1],h[2]),Pt(r[2],h[1]),u&&"none"!==u){var d=iI(t.node1),f=PI(r,h[0],d*e);i(r[0][0],r[1][0],r[2][0],f,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],f,n),r[0][1]=n[3],r[1][1]=n[4]}c&&"none"!==c&&(d=iI(t.node2),f=PI(r,h[1],d*e),i(r[0][0],r[1][0],r[2][0],f,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],f,n),r[1][1]=n[1],r[2][1]=n[2]),Pt(l[0],r[0]),Pt(l[1],r[2]),Pt(l[2],r[1])}else Pt(o[0],h[0]),Pt(o[1],h[1]),Vt(a,o[1],o[0]),qt(a,a),u&&"none"!==u&&(d=iI(t.node1),Ft(o[0],o[0],a,d*e)),c&&"none"!==c&&(d=iI(t.node2),Ft(o[1],o[1],a,-d*e)),Pt(l[0],o[0]),Pt(l[1],o[1])})}function LI(t){return"view"===t.type}var NI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(t,e){var n=new ek,i=new AI,r=this.group;this._controller=new TC(e.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(LI(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):mc(s,l,t)}RI(t.getGraph(),nI(t));var u=t.getData();o.updateData(u);var c=t.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var h=t.forceLayout,d=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,d),u.graph.eachNode(function(t){var e=t.dataIndex,n=t.getGraphicEl(),r=t.getModel();n.off("drag").off("dragend");var o=r.get("draggable");o&&n.on("drag",function(){h&&(h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,d),h.setFixed(e),u.setItemLayout(e,[n.x,n.y]))}).on("dragend",function(){h&&h.setUnfixed(e)}),n.setDraggable(o&&!!h),"adjacency"===r.get(["emphasis","focus"])&&(zs(n).focus=t.getAdjacentDataIndices())}),u.graph.eachEdge(function(t){var e=t.getGraphicEl();"adjacency"===t.getModel().get(["emphasis","focus"])&&(zs(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})});var f="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),p=u.getLayout("cx"),g=u.getLayout("cy");u.eachItemGraphicEl(function(t,e){var n=u.getItemModel(e).get(["label","rotate"])||0,i=t.getSymbolPath();if(f){var r=u.getItemLayout(e),o=Math.atan2(r[1]-g,r[0]-p);o<0&&(o=2*Math.PI+o);var a=r[0]=0&&t.call(e,n[r],r)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},t.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof zI||(e=this._nodesMap[FI(e)]),e){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o=0&&n.node2.dataIndex>=0}),r=0,o=i.length;r=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}W(zI,HI("hostGraph","data")),W(BI,HI("hostGraph","edgeData"));var jI=VI;function GI(t,e,n,i,r){for(var o=new jI(i),a=0;a "+d)),u++)}var f,p=n.get("coordinateSystem");if("cartesian2d"===p||"polar"===p)f=bb(t,n);else{var g=Qd.get(p),m=g&&g.dimensions||[];G(m,"value")<0&&m.concat(["value"]);var v=fb(t,{coordDimensions:m});(f=new hb(v,n)).initData(t)}var y=new hb(["value"],n);return y.initData(l,s),r&&r(f,y),PA({mainData:f,struct:o,structAttr:"graph",datas:{node:f,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var UI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return m(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new lS(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),Fr(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n,i=t.edges||t.links||[],r=t.data||t.nodes||[],o=this;if(r&&i){qM(n=this)&&(n.__curvenessList=[],n.__edgeMap={},XM(n));var a=GI(r,i,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t){var e=o._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t});var n=sh.prototype.getModel;function i(t,e){var i=n.call(this,t,e);return i.resolveParentPath=r,i}function r(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",function(t){return t.resolveParentPath=r,t.getModel=i,t})});return q(a.edges,function(t){!function(t,e,n,i){if(qM(n)){var r=ZM(t,e,n),o=n.__edgeMap,a=o[KM(r)];o[r]&&!a?o[r].isForward=!0:a&&o[r]&&(a.isForward=!0,o[r].isForward=!1),o[r]=o[r]||[],o[r].push(i)}}(t.node1,t.node2,this,t.dataIndex)},this),a.data}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),o=i.graph.getEdgeByIndex(t),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),Sp("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}return Rp({series:this,dataIndex:t,multipleSeries:e})},e.prototype._updateCategoriesData=function(){var t=X(this.option.categories||[],function(t){return null!=t.value?t:B({value:0},t)}),e=new hb(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Wp),WI={type:"graphRoam",event:"graphRoam",update:"none"},YI=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},qI=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return m(e,t),e.prototype.getDefaultShape=function(){return new YI},e.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)},e}(ds);function XI(t,e){var n=null==t?"":t+"";return e&&("string"==typeof e?n=e.replace("{value}",n):"function"==typeof e&&(n=e(t))),n}var ZI=2*Math.PI,KI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),r=function(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r);return{cx:dr(n[0],e.getWidth()),cy:dr(n[1],e.getHeight()),r:dr(t.get("radius"),o/2)}}(t,n);this._renderMain(t,e,n,i,r),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,i,r){for(var o=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),c=u.get("roundCap")?Lk:_u,h=u.get("show"),d=u.getModel("lineStyle"),f=d.get("width"),p=(l-s)%ZI||l===s?(l-s)%ZI:ZI,g=s,m=0;h&&m=t&&(0===e?0:i[e-1][0]).8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:R}),silent:!0}))}if(y.get("show")&&D!==b){O=(O=y.get("distance"))?O+l:l;for(var L=0;L<=w;L++){u=Math.cos(S),c=Math.sin(S);var N=new Ru({shape:{x1:u*(p-O)+d,y1:c*(p-O)+f,x2:u*(p-k-O)+d,y2:c*(p-k-O)+f},silent:!0,style:I});"auto"===I.stroke&&N.setStyle({stroke:i((D+L/w)/b)}),h.add(N),S+=A}S-=A}else S+=C}},e.prototype._renderPointer=function(t,e,n,i,r,o,a,s,l){var u=this.group,c=this._data,h=this._progressEls,d=[],f=t.get(["pointer","show"]),p=t.getModel("progress"),g=p.get("show"),m=t.getData(),v=m.mapDimension("value"),y=+t.get("min"),_=+t.get("max"),b=[y,_],w=[o,a];function x(e,n){var i,o=m.getItemModel(e).getModel("pointer"),a=dr(o.get("width"),r.r),s=dr(o.get("length"),r.r),l=t.get(["pointer","icon"]),u=o.get("offsetCenter"),c=dr(u[0],r.r),h=dr(u[1],r.r),d=o.get("keepAspect");return(i=l?jm(l,c-a/2,h-s,a,s,null,d):new qI({shape:{angle:-Math.PI/2,width:a,r:s,x:c,y:h}})).rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function k(t,e){var n=p.get("roundCap")?Lk:_u,i=p.get("overlap"),a=i?p.get("width"):l/m.count(),u=new n({shape:{startAngle:o,endAngle:e,cx:r.cx,cy:r.cy,clockwise:s,r0:i?r.r-a:r.r-(t+1)*a,r:i?r.r:r.r-t*a}});return i&&(u.z2=_-m.get(v,t)%_),u}(g||f)&&(m.diff(c).add(function(e){if(f){var n=x(e,o);vc(n,{rotation:-(hr(m.get(v,e),b,w,!0)+Math.PI/2)},t),u.add(n),m.setItemGraphicEl(e,n)}if(g){var i=k(e,o),r=p.get("clip");vc(i,{shape:{endAngle:hr(m.get(v,e),b,w,r)}},t),u.add(i),d[e]=i}}).update(function(e,n){if(f){var i=c.getItemGraphicEl(n),r=i?i.rotation:o,a=x(e,r);a.rotation=r,mc(a,{rotation:-(hr(m.get(v,e),b,w,!0)+Math.PI/2)},t),u.add(a),m.setItemGraphicEl(e,a)}if(g){var s=h[n],l=k(e,s?s.shape.endAngle:o),y=p.get("clip");mc(l,{shape:{endAngle:hr(m.get(v,e),b,w,y)}},t),u.add(l),d[e]=l}}).execute(),m.each(function(t){var e=m.getItemModel(t),n=e.getModel("emphasis");if(f){var r=m.getItemGraphicEl(t),o=m.getItemVisual(t,"style"),a=o.fill;if(r instanceof _s){var s=r.style;r.useStyle(B({image:s.image,x:s.x,y:s.y,width:s.width,height:s.height},o))}else r.useStyle(o),"pointer"!==r.type&&r.setColor(a);r.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===r.style.fill&&r.setStyle("fill",i(hr(m.get(v,t),b,[0,1],!0))),r.z2EmphasisLift=0,Dl(r,e),Al(r,n.get("focus"),n.get("blurScope"))}if(g){var l=d[t];l.useStyle(m.getItemVisual(t,"style")),l.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),l.z2EmphasisLift=0,Dl(l,e),Al(l,n.get("focus"),n.get("blurScope"))}}),this._progressEls=d)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor");if(n.get("show")){var i=n.get("size"),r=n.get("icon"),o=n.get("offsetCenter"),a=n.get("keepAspect"),s=jm(r,e.cx-i/2+dr(o[0],e.r),e.cy-i/2+dr(o[1],e.r),i,i,null,a);s.z2=n.get("showAbove")?1:0,s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},e.prototype._renderTitleAndDetail=function(t,e,n,i,r){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),c=new tr,h=[],d=[],f=t.isAnimationEnabled();a.diff(this._data).add(function(t){h[t]=new Vs({silent:!0}),d[t]=new Vs({silent:!0})}).update(function(t,e){h[t]=o._titleEls[e],d[t]=o._detailEls[e]}).execute(),a.each(function(e){var n=a.getItemModel(e),o=a.get(s,e),p=new tr,g=i(hr(o,[l,u],[0,1],!0)),m=n.getModel("title");if(m.get("show")){var v=m.get("offsetCenter"),y=r.cx+dr(v[0],r.r),_=r.cy+dr(v[1],r.r);(M=h[e]).attr({style:zc(m,{x:y,y:_,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:g})}),p.add(M)}var b=n.getModel("detail");if(b.get("show")){var w=b.get("offsetCenter"),x=r.cx+dr(w[0],r.r),k=r.cy+dr(w[1],r.r),S=dr(b.get("width"),r.r),C=dr(b.get("height"),r.r),A=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:g,M=d[e],I=b.get("formatter");M.attr({style:zc(b,{x:x,y:k,text:XI(o,I),width:isNaN(S)?null:S,height:isNaN(C)?null:C,align:"center",verticalAlign:"middle"},{inheritColor:A})}),qc(M,{normal:b},o,function(t){return XI(t,I)}),f&&Xc(M,e,a,t,{getFormattedLabel:function(t,e,n,i,r,a){return XI(a?a.interpolatedValue:o,I)}}),p.add(M)}c.add(p)}),this.group.add(c),this._titleEls=h,this._detailEls=d},e.type="gauge",e}(ig),$I=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n.useColorPaletteOnData=!0,n}return m(e,t),e.prototype.getInitialData=function(t,e){return sS(this,["value"])},e.type="series.gauge",e.defaultOption={zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12},pointer:{icon:null,offsetCenter:[0,0],show:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Wp),QI=["itemStyle","opacity"],JI=function(t){function e(e,n){var i=t.call(this)||this,r=i,o=new Du,a=new Vs;return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(e,n,!0),i}return m(e,t),e.prototype.updateData=function(t,e,n){var i=this,r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=o.getModel("emphasis"),l=o.get(QI);l=null==l?1:l,i.useStyle(t.getItemVisual(e,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,vc(i,{style:{opacity:l}},r,e)):mc(i,{style:{opacity:l},shape:{points:a.points}},r,e),Dl(i,o),this._updateLabel(t,e),Al(this,s.get("focus"),s.get("blurScope"))},e.prototype._updateLabel=function(t,e){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e).label,l=t.getItemVisual(e,"style"),u=l.fill;Fc(r,Vc(a),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:l.opacity,defaultText:t.getName(e)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}}),n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:u,outsideFill:u});var c=s.linePoints;i.setShape({points:c}),n.textGuideLineConfig={anchor:c?new xi(c[0][0],c[0][1]):null},mc(r,{style:{x:s.x,y:s.y}},o,e),r.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),mm(n,vm(a),{stroke:u})},e}(Mu),tT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return m(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._data,o=this.group;i.diff(r).add(function(t){var e=new JI(i,t);i.setItemGraphicEl(t,e),o.add(e)}).update(function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),o.add(n),i.setItemGraphicEl(t,n)}).remove(function(e){bc(r.getItemGraphicEl(e),t,e)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(ig),eT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.useColorPaletteOnData=!0,n}return m(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new lS(J(this.getData,this),J(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return sS(this,{coordDimensions:["value"],encodeDefaulter:tt(Ed,this)})},e.prototype._defaultLabelLine=function(t){Fr(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Wp);function nT(t,e){t.eachSeriesByType("funnel",function(t){var n=t.getData(),i=n.mapDimension("value"),r=t.get("sort"),o=function(t,e){return ld(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),a=t.get("orient"),s=o.width,l=o.height,u=function(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,function(t){return t}),r=[],o="ascending"===e,a=0,s=t.count();a5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&gT(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function gT(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var mT=fT,vT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){t&&V(this.option,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){q(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[];q(K(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(t){return(t.get("parallelIndex")||0)===this.componentIndex},this),function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(md),yT=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return m(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(Ww);function _T(t,e,n,i,r,o){t=t||0;var a=n[1]-n[0];if(null!=r&&(r=wT(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(e[1]-e[0]);s=wT(s,[0,a]),r=o=wT(s,[r,o]),i=0}e[0]=wT(e[0],n),e[1]=wT(e[1],n);var l=bT(e,i);e[i]+=t;var u,c=r||0,h=n.slice();return l.sign<0?h[0]+=c:h[1]-=c,e[i]=wT(e[i],h),u=bT(e,i),null!=r&&(u.sign!==l.sign||u.spano&&(e[1-i]=e[i]+u.sign*o),e}function bT(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function wT(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var xT=q,kT=Math.min,ST=Math.max,CT=Math.floor,AT=Math.ceil,MT=fr,IT=Math.PI;function TT(t,e){return kT(ST(t,e[0]),e[1])}function DT(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function ET(t,e){var n,i,r=e.axisExpandWidth,o=e.axisCollapseWidth,a=e.winInnerIndices,s=o,l=!1;return t=n&&o<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(n){if(t.contains(n,e)){var i=n.getData();xT(this.dimensions,function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),ww(e.scale,e.model)},this)}},this)},t.prototype.resize=function(t,e){this._rect=ld(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],u=this.dimensions.length,c=TT(e.get("axisExpandWidth"),l),h=TT(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,f=e.get("axisExpandWindow");f?(t=TT(f[1]-f[0],l),f[1]=f[0]+t):(t=TT(c*(h-1),l),(f=[c*(e.get("axisExpandCenter")||CT(u/2))-t/2])[1]=f[0]+t);var p=(s-t)/(u-h);p<3&&(p=0);var g=[CT(MT(f[0]/c,1))+1,AT(MT(f[1]/c,1))-1];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:p,axisExpandWindow:f,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:p/c*f[0]}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;e.each(function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])}),xT(n,function(e,n){var o=(i.axisExpandable?ET:DT)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s=[a[r].x+t.x,a[r].y+t.y],l={horizontal:IT/2,vertical:0}[r],u=[1,0,0,1,0,0];ui(u,u,l),li(u,u,s),this._axesLayout[e]={position:s,rotation:l,transform:u,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];q(o,function(e){a.push(t.mapDimension(e)),s.push(r.get(e).model)});for(var l=this.hasAxisBrushed(),u=n;ur*(1-c[0])?(l="jump",a=s-r*(1-c[2])):(a=s-r*c[1])>=0&&(a=s-r*(1-c[1]))<=0&&(a=0),(a*=e.axisExpandWidth/u)?_T(a,i,o,"all"):l="none";else{var d=i[1]-i[0];(i=[ST(0,o[1]*s/d-d/2)])[1]=kT(o[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:l}},t}(),PT={create:function(t,e){var n=[];return t.eachComponent("parallel",function(i,r){var o=new OT(i,t,e);o.name="parallel_"+r,o.resize(i,e),i.coordinateSystem=o,o.model=i,n.push(o)}),t.eachSeries(function(t){if("parallel"===t.get("coordinateSystem")){var e=t.getReferringComponents("parallel",$r).models[0];t.coordinateSystem=e.coordinateSystem}}),n}},RT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return m(e,t),e.prototype.getAreaSelectStyle=function(){return po([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=F(t);if(e)for(var n=e.length-1;n>=0;n--)pr(e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;i6}(t)||o){if(a&&!o){"single"===s.brushMode&&JT(t);var l=F(s);l.brushType=mD(l.brushType,a),l.panelId=a===NT?null:a.panelId,o=t._creatingCover=WT(t,l),t._covers.push(o)}if(o){var u=_D[mD(t._brushType,a)];o.__brushOption.range=u.getCreatingRange(dD(t,o,t._track)),i&&(YT(t,o),u.updateCommon(t,o)),qT(t,o),r={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&$T(t,e,n)&&JT(t)&&(r={isEnd:i,removeOnClick:!0});return r}function mD(t,e){return"auto"===t?e.defaultBrushType:t}var vD={mousedown:function(t){if(this._dragging)yD(this,t);else if(!t.target||!t.target.draggable){fD(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=$T(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);if(function(t,e,n){if(t._brushType&&!function(t,e,n){var i=t._zr;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}(t,e.offsetX,e.offsetY)){var i=t._zr,r=t._covers,o=$T(t,e,n);if(!t._dragging)for(var a=0;a=0&&(o[r[a].depth]=new sh(r[a],this,e));if(i&&n)return GI(i,n,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t,e){var n=t.parentModel,i=n.getData().getItemLayout(e);if(i){var r=n.levelModels[i.depth];r&&(t.parentModel=r)}return t}),e.wrapMethod("getItemModel",function(t,e){var n=t.parentModel,i=n.getGraph().getEdgeByIndex(e).node1.getLayout();if(i){var r=n.levelModels[i.depth];r&&(t.parentModel=r)}return t})}).data},e.prototype.setNodePosition=function(t,e){var n=this.option.data[t];n.localX=e[0],n.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}if("edge"===n){var r=this.getDataParams(t,n),o=r.data,a=r.value;return Sp("nameValue",{name:o.source+" -- "+o.target,value:a,noValue:i(a)})}var s=this.getGraph().getNodeByIndex(t).getLayout().value,l=this.getDataParams(t,n).data.name;return Sp("nameValue",{name:null!=l?l+"":null,value:s,noValue:i(s)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(e).getLayout().value;i.value=r}return i},e.type="series.sankey",e.defaultOption={zlevel:0,z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Wp);function LD(t,e){t.eachSeriesByType("sankey",function(t){var n=t.get("nodeWidth"),i=t.get("nodeGap"),r=function(t,e){return ld(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=r;var o=r.width,a=r.height,s=t.getGraph(),l=s.nodes,u=s.edges;!function(t){q(t,function(t){var e=WD(t.outEdges,UD),n=WD(t.inEdges,UD),i=t.getValue()||0,r=Math.max(e,n,i);t.setLayout({value:r},!0)})}(l),function(t,e,n,i,r,o,a,s,l){(function(t,e,n,i,r,o,a){for(var s=[],l=[],u=[],c=[],h=0,d=0;d=0;v&&m.depth>f&&(f=m.depth),g.setLayout({depth:v?m.depth:h},!0),g.setLayout("vertical"===o?{dy:n}:{dx:n},!0);for(var y=0;yh-1?f:h-1;a&&"left"!==a&&function(t,e,n,i){if("right"===e){for(var r=[],o=t,a=0;o.length;){for(var s=0;s0;o--)VD(s,l*=.99,a),FD(s,r,n,i,a),YD(s,l,a),FD(s,r,n,i,a)}(t,e,o,r,i,a,s),function(t,e){var n="vertical"===e?"x":"y";q(t,function(t){t.outEdges.sort(function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]}),t.inEdges.sort(function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]})}),q(t,function(t){var e=0,n=0;q(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy}),q(t.inEdges,function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy})})}(t,s)}(l,u,n,i,o,a,0!==K(l,function(t){return 0===t.getLayout().value}).length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))})}function ND(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function FD(t,e,n,i,r){var o="vertical"===r?"x":"y";q(t,function(t){var a,s,l;t.sort(function(t,e){return t.getLayout()[o]-e.getLayout()[o]});for(var u=0,c=t.length,h="vertical"===r?"dx":"dy",d=0;d0&&(a=s.getLayout()[o]+l,s.setLayout("vertical"===r?{x:a}:{y:a},!0)),u=s.getLayout()[o]+s.getLayout()[h]+e;if((l=u-e-("vertical"===r?i:n))>0)for(a=s.getLayout()[o]-l,s.setLayout("vertical"===r?{x:a}:{y:a},!0),u=a,d=c-2;d>=0;--d)(l=(s=t[d]).getLayout()[o]+s.getLayout()[h]+e-u)>0&&(a=s.getLayout()[o]-l,s.setLayout("vertical"===r?{x:a}:{y:a},!0)),u=s.getLayout()[o]})}function VD(t,e,n){q(t.slice().reverse(),function(t){q(t,function(t){if(t.outEdges.length){var i=WD(t.outEdges,zD,n)/WD(t.outEdges,UD);if(isNaN(i)){var r=t.outEdges.length;i=r?WD(t.outEdges,BD,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-GD(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-GD(t,n))*e;t.setLayout({y:a},!0)}}})})}function zD(t,e){return GD(t.node2,e)*t.getValue()}function BD(t,e){return GD(t.node2,e)}function HD(t,e){return GD(t.node1,e)*t.getValue()}function jD(t,e){return GD(t.node1,e)}function GD(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function UD(t){return t.getValue()}function WD(t,e,n){for(var i=0,r=t.length,o=-1;++oi&&(i=e)}),q(e,function(e){var r=new wM({type:"color",mappingMethod:"linear",dataExtent:[n,i],visual:t.get("color")}).mapValueToVisual(e.getLayout().value),o=e.getModel().get(["itemStyle","color"]);null!=o?(e.setVisual("color",o),e.setVisual("style",{fill:o})):(e.setVisual("color",r),e.setVisual("style",{fill:r}))})}})}var XD=function(){function t(){}return t.prototype.getInitialData=function(t,e){var n,i,r=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(t.layout="horizontal",n=r.getOrdinalMeta(),i=!0):"category"===s?(t.layout="vertical",n=o.getOrdinalMeta(),i=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u="horizontal"===t.layout?0:1,c=this._baseAxisDim=l[u],h=l[1-u],d=[r,o],f=d[u].get("type"),p=d[1-u].get("type"),g=t.data;if(g&&i){var m=[];q(g,function(t,e){var n;et(t)?(n=t.slice(),t.unshift(e)):et(t.value)?(n=t.value.slice(),t.value.unshift(e)):n=t,m.push(n)}),t.data=m}var v=this.defaultValueDimensions,y=[{name:c,type:z_(f),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:z_(p),dimsDef:v.slice()}];return sS(this,{coordDimensions:y,dimensionsCount:v.length+1,encodeDefaulter:tt(Dd,y,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),ZD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return m(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Wp);W(ZD,XD,!0);var KD=ZD,$D=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===t.get("layout")?1:0;i.diff(o).add(function(t){if(i.hasValue(t)){var e=tE(i.getItemLayout(t),i,t,a,!0);i.setItemGraphicEl(t,e),r.add(e)}}).update(function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?eE(s,n,i,t):n=tE(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)}).execute(),this._data=i},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(t){t&&e.remove(t)})},e.type="boxplot",e}(ig),QD=function(){},JD=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return m(e,t),e.prototype.getDefaultShape=function(){return new QD},e.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();ig)&&i.push([v,_])}}return{boxData:n,outliers:i}}(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}},lE=["color","borderColor"],uE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,i){this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,i=this.group,r=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),e.diff(n).add(function(n){if(e.hasValue(n)){var a=e.getItemLayout(n);if(o&&fE(s,a))return;var l=dE(a,0,!0);vc(l,{shape:{points:a.ends}},t,n),pE(l,e,n,r),i.add(l),e.setItemGraphicEl(n,l)}}).update(function(a,l){var u=n.getItemGraphicEl(l);if(e.hasValue(a)){var c=e.getItemLayout(a);o&&fE(s,c)?i.remove(u):(u?mc(u,{shape:{points:c.ends}},t,a):u=dE(c),pE(u,e,a,r),i.add(u),e.setItemGraphicEl(a,u))}else i.remove(u)}).remove(function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)}).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),yE(t,this.group);var e=t.get("clip",!0)?vk(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){for(var n,i=e.getData(),r=i.getLayout("isSimpleBox");null!=(n=t.next());){var o=dE(i.getItemLayout(n));pE(o,i,n,r),o.incremental=!0,this.group.add(o)}},e.prototype._incrementalRenderLarge=function(t,e){yE(e,this.group,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(ig),cE=function(){},hE=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return m(e,t),e.prototype.getDefaultShape=function(){return new cE},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(ds);function dE(t,e,n){var i=t.ends;return new hE({shape:{points:n?gE(i,t):i},z2:100})}function fE(t,e){for(var n=!0,i=0;i0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]),o=n.getModel("itemStyle").getItemStyle(lE);e.useStyle(o),e.style.fill=null,e.style.stroke=r}var bE=uE,wE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return m(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var i=e.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Wp);W(wE,XD,!0);var xE=wE;function kE(t){t&&et(t.series)&&q(t.series,function(t){at(t)&&"k"===t.type&&(t.type="candlestick")})}var SE=["itemStyle","borderColor"],CE=["itemStyle","borderColor0"],AE=["itemStyle","color"],ME=["itemStyle","color0"],IE={seriesType:"candlestick",plan:Xp(),performRawSeries:!0,reset:function(t,e){function n(t,e){return e.get(t>0?AE:ME)}function i(t,e){return e.get(t>0?SE:CE)}if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var r;null!=(r=t.next());){var o=e.getItemModel(r),a=e.getItemLayout(r).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=i(a,o)||s.fill,B(e.ensureUniqueItemVisual(r,"style"),s)}}}}},TE="undefined"!=typeof Float32Array?Float32Array:Array;function DE(t,e,n,i,r){return n>i?-1:n0?t.get(r,e-1)<=i?1:-1:1}var EE={seriesType:"candlestick",plan:Xp(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),i=function(t,e){var n,i=t.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=dr(gt(t.get("barMaxWidth"),r),r),a=dr(gt(t.get("barMinWidth"),1),r),s=t.get("barWidth");return null!=s?dr(s,r):Math.max(Math.min(r/2,o),a)}(t,n),r=["x","y"],o=n.mapDimension(r[0]),a=n.mapDimensionsAll(r[1]),s=a[0],l=a[1],u=a[2],c=a[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(null==o||a.length<4))return{progress:t.pipelineContext.large?function(t,n){for(var i,r,a=new TE(4*t.count),h=0,d=[],f=[];null!=(r=t.next());){var p=n.get(o,r),g=n.get(s,r),m=n.get(l,r),v=n.get(u,r),y=n.get(c,r);isNaN(p)||isNaN(v)||isNaN(y)?(a[h++]=NaN,h+=3):(a[h++]=DE(n,r,g,m,l),d[0]=p,d[1]=v,i=e.dataToPoint(d,null,f),a[h++]=i?i[0]:NaN,a[h++]=i?i[1]:NaN,d[1]=y,i=e.dataToPoint(d,null,f),a[h++]=i?i[1]:NaN)}n.setLayout("largePoints",a)}:function(t,n){for(var r;null!=(r=t.next());){var a=n.get(o,r),h=n.get(s,r),d=n.get(l,r),f=n.get(u,r),p=n.get(c,r),g=Math.min(h,d),m=Math.max(h,d),v=x(g,a),y=x(m,a),_=x(f,a),b=x(p,a),w=[];k(w,y,0),k(w,v,1),w.push(C(b),C(y),C(_),C(v)),n.setItemLayout(r,{sign:DE(n,r,h,d,l),initBaseline:h>d?y[1]:v[1],ends:w,brushRect:S(f,p,a)})}function x(t,n){var i=[];return i[0]=n,i[1]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function k(t,e,n){var r=e.slice(),o=e.slice();r[0]=pc(r[0]+i/2,1,!1),o[0]=pc(o[0]-i/2,1,!0),n?t.push(r,o):t.push(o,r)}function S(t,e,n){var r=x(t,n),o=x(e,n);return r[0]-=i/2,o[0]-=i/2,{x:r[0],y:r[1],width:i,height:o[1]-r[1]}}function C(t){return t[0]=pc(t[0],1),t}}}}};function OE(t,e){var n=e.rippleEffectColor||e.color;t.eachChild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})})}var PE=function(t){function e(e,n){var i=t.call(this)||this,r=new $x(e,n),o=new tr;return i.add(r),i.add(o),i.updateData(e,n),i}return m(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=this.childAt(1),r=0;r<3;r++){var o=jm(e,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var a=-r/3*t.period+t.effectOffset;o.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(a).start(),o.animateStyle(!0).when(t.period,{opacity:0}).delay(a).start(),i.add(o)}OE(i,t)},e.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale"],r=0;r0&&(a=this._getLineLength(i)/l*1e3),(a!==this._period||s!==this._loop)&&(i.stopAnimation(),a>0)){var c=void 0;c="function"==typeof u?u(n):u,i.__t>0&&(c=-a*i.__t),i.__t=0;var h=i.animate("",s).when(a,{__t:1}).delay(c).during(function(){r._updateSymbolPosition(i)});s||h.done(function(){r.remove(i)}),h.start()}this._period=a,this._loop=s}},e.prototype._getLineLength=function(t){return Zt(t.__p1,t.__cp1)+Zt(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t,o=[t.x,t.y],a=o.slice(),s=aa,l=sa;o[0]=s(e[0],i[0],n[0],r),o[1]=s(e[1],i[1],n[1],r);var u=l(e[0],i[0],n[0],r),c=l(e[1],i[1],n[1],r);t.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT=0&&!(i[o]<=e);o--);o=Math.min(o,r-2)}else{for(o=a;oe);o++);o=Math.min(o-1,r-2)}var s=(e-i[o])/(i[o+1]-i[o]),l=n[o],u=n[o+1];t.x=l[0]*(1-s)+s*u[0],t.y=l[1]*(1-s)+s*u[1],t.rotation=-Math.atan2(u[1]-l[1],u[0]-l[0])-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(NE),zE=function(){this.polyline=!1,this.curveness=0,this.segs=[]},BE=function(t){function e(e){return t.call(this,e)||this}return m(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new zE},e.prototype.buildPath=function(t,e){var n=e.segs,i=e.curveness;if(e.polyline)for(var r=0;r0){t.moveTo(n[r++],n[r++]);for(var a=1;a0?t.quadraticCurveTo((s+u)/2-(l-c)*i,(l+c)/2-(u-s)*i,u,c):t.lineTo(u,c)}},e.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s0)for(var u=i[s++],c=i[s++],h=1;h0){if(Za(u,c,(u+d)/2-(c-f)*r,(c+f)/2-(d-u)*r,d,f,o,t,e))return a}else if(qa(u,c,d,f,o,t,e))return a;a++}return-1},e}(ds),HE=function(){function t(){this.group=new tr}return t.prototype.isPersistent=function(){return!this._incremental},t.prototype.updateData=function(t){this.group.removeAll();var e=new BE({rectHover:!0,cursor:"default"});e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>5e5?(this._incremental||(this._incremental=new Ju({silent:!0})),this.group.add(this._incremental)):this._incremental=null},t.prototype.incrementalUpdate=function(t,e){var n=new BE;n.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(n,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=t.start,this.group.add(n))},t.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("style");if(r&&r.stroke&&t.setStyle("stroke",r.stroke),t.setStyle("fill",null),!n){var o=zs(t);o.seriesIndex=i.seriesIndex,t.on("mousemove",function(e){o.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>0&&(o.dataIndex=n+t.__startIndex)})}},t.prototype._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()},t}(),jE={seriesType:"lines",plan:Xp(),reset:function(t){var e=t.coordinateSystem,n=t.get("polyline"),i=t.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,c=r.start;c ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Wp);function XE(t){return t instanceof Array||(t=[t,t]),t}var ZE={seriesType:"lines",reset:function(t){var e=XE(t.get("symbol")),n=XE(t.get("symbolSize")),i=t.getData();return i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?function(t,e){var n=t.getItemModel(e),i=XE(n.getShallow("symbol",!0)),r=XE(n.getShallow("symbolSize",!0));i[0]&&t.setItemVisual(e,"fromSymbol",i[0]),i[1]&&t.setItemVisual(e,"toSymbol",i[1]),r[0]&&t.setItemVisual(e,"fromSymbolSize",r[0]),r[1]&&t.setItemVisual(e,"toSymbolSize",r[1])}:null}}},KE=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=j();this.canvas=t}return t.prototype.update=function(t,e,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),d=t.length;c.width=e,c.height=n;for(var f=0;f0){var C=o(v)?s:l;v>0&&(v=v*k+x),_[b++]=C[S],_[b++]=C[S+1],_[b++]=C[S+2],_[b++]=C[S+3]*v*256}else b+=4}return h.putImageData(y,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=j()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},t}();function $E(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var QE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i;e.eachComponent("visualMap",function(e){e.eachTargetSeries(function(n){n===t&&(i=e)})}),this.group.removeAll(),this._incrementalDisplayable=null;var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):$E(r)&&this._renderOnGeo(r,t,i,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,i){var r=e.coordinateSystem;r&&($E(r)?this.render(e,n,i):this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0))},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,r){var o,a,s,l,u=t.coordinateSystem;if(yk(u,"cartesian2d")){var c=u.getAxis("x"),h=u.getAxis("y");o=c.getBandWidth(),a=h.getBandWidth(),s=c.scale.getExtent(),l=h.scale.getExtent()}for(var d=this.group,f=t.getData(),p=t.getModel(["emphasis","itemStyle"]).getItemStyle(),g=t.getModel(["blur","itemStyle"]).getItemStyle(),m=t.getModel(["select","itemStyle"]).getItemStyle(),v=Vc(t),y=t.get(["emphasis","focus"]),_=t.get(["emphasis","blurScope"]),b=yk(u,"cartesian2d")?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],w=n;ws[1]||Cl[1])continue;var A=u.dataToPoint([S,C]);x=new Ms({shape:{x:Math.floor(Math.round(A[0])-o/2),y:Math.floor(Math.round(A[1])-a/2),width:Math.ceil(o),height:Math.ceil(a)},style:k})}else{if(isNaN(f.get(b[1],w)))continue;x=new Ms({z2:1,shape:u.dataToRect([f.get(b[0],w)]).contentShape,style:k})}var M=f.getItemModel(w);if(f.hasItemOption){var I=M.getModel("emphasis");p=I.getModel("itemStyle").getItemStyle(),g=M.getModel(["blur","itemStyle"]).getItemStyle(),m=M.getModel(["select","itemStyle"]).getItemStyle(),y=I.get("focus"),_=I.get("blurScope"),v=Vc(M)}var T=t.getRawValue(w),D="-";T&&null!=T[2]&&(D=T[2]+""),Fc(x,v,{labelFetcher:t,labelDataIndex:w,defaultOpacity:k.opacity,defaultText:D}),x.ensureState("emphasis").style=p,x.ensureState("blur").style=g,x.ensureState("select").style=m,Al(x,y,_),x.incremental=r,r&&(x.states.emphasis.hoverLayer=!0),d.add(x),f.setItemGraphicEl(w,x)}},e.prototype._renderOnGeo=function(t,e,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new KE;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),u=t.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),h=Math.max(l.y,0),d=Math.min(l.width+l.x,i.getWidth()),f=Math.min(l.height+l.y,i.getHeight()),p=d-c,g=f-h,m=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(m,function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=c,r[1]-=h,r.push(i),r}),y=n.getExtent(),_="visualMap.continuous"===n.type?function(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}(y,n.option.range):function(t,e,n){var i=t[1]-t[0],r=(e=X(e,function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}})).length,o=0;return function(t){var i;for(i=o;i=0;i--){var a;if((a=e[i].interval)[0]<=t&&t<=a[1]){o=i;break}}return i>=0&&i0?1:o<0?-1:0}(n,o,r,i,h),function(t,e,n,i,r,o,a,s,l,u){var c,h=l.valueDim,d=l.categoryDim,f=Math.abs(n[d.wh]),p=t.getItemVisual(e,"symbolSize");(c=et(p)?p.slice():null==p?["100%","100%"]:[p,p])[d.index]=dr(c[d.index],f),c[h.index]=dr(c[h.index],i?f:Math.abs(o)),u.symbolSize=c,(u.symbolScale=[c[0]/s,c[1]/s])[h.index]*=(l.isHorizontal?-1:1)*a}(t,e,r,o,0,h.boundingLength,h.pxSign,u,i,h),function(t,e,n,i,r){var o=t.get(tO)||0;o&&(nO.attr({scaleX:e[0],scaleY:e[1],rotation:n}),nO.updateTransform(),o/=nO.getLineScale(),o*=e[i.valueDim.index]),r.valueLineWidth=o}(n,h.symbolScale,l,i,h);var d=h.symbolSize,f=n.get("symbolOffset");return et(f)&&(f=[dr(f[0],d[0]),dr(f[1],d[1])]),function(t,e,n,i,r,o,a,s,l,u,c,h){var d=c.categoryDim,f=c.valueDim,p=h.pxSign,g=Math.max(e[f.index]+s,0),m=g;if(i){var v=Math.abs(l),y=pt(t.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1));var b=dr(y,e[f.index]),w=Math.max(g+2*b,0),x=_?0:2*b,k=Er(i),S=k?i:_O((v+x)/w);w=g+2*(b=(v-S*g)/2/(_?S:S-1)),x=_?0:2*b,k||"fixed"===i||(S=u?_O((Math.abs(u)+x)/w):0),m=S*w-x,h.repeatTimes=S,h.symbolMargin=b}var C=p*(m/2),A=h.pathPosition=[];A[d.index]=n[d.wh]/2,A[f.index]="start"===a?C:"end"===a?l-C:l/2,o&&(A[0]+=o[0],A[1]+=o[1]);var M=h.bundlePosition=[];M[d.index]=n[d.xy],M[f.index]=n[f.xy];var I=h.barRectShape=B({},n);I[f.wh]=p*Math.max(Math.abs(n[f.wh]),Math.abs(A[f.index]+C)),I[d.wh]=n[d.wh];var T=h.clipShape={};T[d.xy]=-n[d.xy],T[d.wh]=c.ecSize[d.wh],T[f.xy]=0,T[f.wh]=n[f.wh]}(n,d,r,o,0,f,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,i,h),h}function rO(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function oO(t){var e=t.symbolPatternSize,n=jm(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function aO(t,e,n,i){var r=t.__pictorialBundle,o=n.pathPosition,a=e.valueDim,s=n.repeatTimes||0,l=0,u=n.symbolSize[e.valueDim.index]+n.valueLineWidth+2*n.symbolMargin;for(mO(t,function(t){t.__pictorialAnimationIndex=l,t.__pictorialRepeatTimes=s,l0:i<0)&&(r=s-1-t),e[a.index]=u*(r-s/2+.5)+o[a.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function sO(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?vO(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=t.__pictorialMainPath=oO(n),r.add(o),vO(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function lO(t,e,n){var i=B({},e.barRectShape),r=t.__pictorialBarRect;r?vO(r,null,{shape:i},e,n):(r=t.__pictorialBarRect=new Ms({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(r))}function uO(t,e,n,i){if(n.symbolClip){var r=t.__pictorialClipPath,o=B({},n.clipShape),a=e.valueDim,s=n.animationModel,u=n.dataIndex;if(r)mc(r,{shape:o},s,u);else{o[a.wh]=0,r=new Ms({shape:o}),t.__pictorialBundle.setClipPath(r),t.__pictorialClipPath=r;var c={};c[a.wh]=n.clipShape[a.wh],l[i?"updateProps":"initProps"](r,{shape:c},s,u)}}}function cO(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=hO,n.isAnimationEnabled=dO,n}function hO(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function dO(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function fO(t,e,n,i){var r=new tr,o=new tr;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?aO(r,e,n):sO(r,0,n),lO(r,n,i),uO(r,e,n,i),r.__pictorialShapeStr=gO(t,n),r.__pictorialSymbolMeta=n,r}function pO(t,e,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];mO(i,function(t){o.push(t)}),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),q(o,function(t){yc(t,{scaleX:0,scaleY:0},n,e,function(){i.parent&&i.parent.remove(i)})}),t.setItemGraphicEl(e,null)}function gO(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function mO(t,e,n){q(t.__pictorialBundle.children(),function(i){i!==t.__pictorialBarRect&&e.call(n,i)})}function vO(t,e,n,i,r,o){e&&t.attr(e),i.symbolClip&&!r?n&&t.attr(n):n&&l[r?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,o)}function yO(t,e,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),c=o.get("focus"),h=o.get("blurScope"),d=o.get("scale");mO(t,function(t){if(t instanceof _s){var e=t.style;t.useStyle(B({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var i=t.ensureState("emphasis");i.style=a,d&&(i.scaleX=1.1*t.scaleX,i.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,u&&(t.cursor=u),t.z2=n.z2});var f=e.valueDim.posDesc[+(n.boundingLength>0)];Fc(t.__pictorialBarRect,Vc(r),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:Xx(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:f}),Al(t,c,h)}function _O(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var bO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i=this.group,r=t.getData(),o=this._data,a=t.coordinateSystem,s=a.getBaseAxis().isHorizontal(),l=a.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:eO[+s],categoryDim:eO[1-+s]};return r.diff(o).add(function(t){if(r.hasValue(t)){var e=cO(r,t),n=iO(r,t,e,u),o=fO(r,u,n);r.setItemGraphicEl(t,o),i.add(o),yO(o,u,n)}}).update(function(t,e){var n=o.getItemGraphicEl(e);if(r.hasValue(t)){var a=cO(r,t),s=iO(r,t,a,u),l=gO(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(t,null),n=null),n?function(t,e,n){mc(t.__pictorialBundle,{x:n.bundlePosition[0],y:n.bundlePosition[1]},n.animationModel,n.dataIndex),n.symbolRepeat?aO(t,e,n,!0):sO(t,0,n,!0),lO(t,n,!0),uO(t,e,n,!0)}(n,u,s):n=fO(r,u,s,!0),r.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,i.add(n),yO(n,u,s)}else i.remove(n)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&pO(o,t,e.__pictorialSymbolMeta.animationModel,e)}).execute(),this._data=r,this.group},e.prototype.remove=function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(e){pO(i,zs(e).dataIndex,t,e)}):n.removeAll()},e.type="pictorialBar",e}(ig),wO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return m(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=ch(Ok.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Ok),xO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return m(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this,o=this.group,a=t.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(t){return t.name}o.x=0,o.y=l.y+u[0];var h=new F_(this._layersSeries||[],a,c,c),d=[];function f(e,n,s){var l=r._layers;if("remove"!==e){for(var u,c,h=[],f=[],p=a[n].indices,g=0;go&&(o=s),i.push(s)}for(var u=0;uo&&(o=h)}return{y0:r,max:o}}(l),c=u.y0,h=n/u.max,d=o.length,f=o[0].indices.length,p=0;pMath.PI/2?"right":"left"):x&&"center"!==x?"left"===x?(v=r.r0+w,a>Math.PI/2&&(x="right")):"right"===x&&(v=r.r-w,a>Math.PI/2&&(x="left")):(v=(r.r+r.r0)/2,x="center"),f.style.align=x,f.style.verticalAlign=p(o,"verticalAlign")||"middle",f.x=v*s+r.cx,f.y=v*l+r.cy;var k=p(o,"rotate"),S=0;"radial"===k?(S=-a)<-Math.PI/2&&(S+=Math.PI):"tangential"===k?(S=Math.PI/2-a)>Math.PI/2?S-=Math.PI:S<-Math.PI/2&&(S+=Math.PI):"number"==typeof k&&(S=k*Math.PI/180),f.rotation=S}),c.dirtyStyle()},e}(_u),MO="sunburstRootToNode",IO="sunburstHighlight",TO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n,i){var r=this;this.seriesModel=t,this.api=n,this.ecModel=e;var o=t.getData(),a=o.tree.root,s=t.getViewRoot(),l=this.group,u=t.get("renderLabelForZeroData"),c=[];s.eachNode(function(t){c.push(t)}),function(i,r){function s(t){return t.getId()}function c(s,c){!function(i,r){if(u||!i||i.getValue()||(i=null),i!==a&&r!==a)if(r&&r.piece)i?(r.piece.updateData(!1,i,t,e,n),o.setItemGraphicEl(i.dataIndex,r.piece)):(c=r)&&c.piece&&(l.remove(c.piece),c.piece=null);else if(i){var s=new AO(i,t,e,n);l.add(s),o.setItemGraphicEl(i.dataIndex,s)}var c}(null==s?null:i[s],null==c?null:r[c])}0===i.length&&0===r.length||new F_(r,i,s,s).add(c).update(c).remove(tt(c,null)).execute()}(c,this._oldChildren||[]),function(i,o){o.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,t,e,n):(r.virtualPiece=new AO(i,t,e,n),l.add(r.virtualPiece)),o.piece.off("click"),r.virtualPiece.on("click",function(t){r._rootToNode(o.parentNode)})):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}(a,s),this._initEvents(),this._oldChildren=c},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(e){var n=!1;t.seriesModel.getViewRoot().eachNode(function(i){if(!n&&i.piece&&i.piece===e.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");a&&nd(a,o.get("target",!0)||"_blank")}n=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:MO,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},e.type="sunburst",e}(ig);function DO(t){var e=0;q(t.children,function(t){DO(t);var n=t.value;et(n)&&(n=n[0]),e+=n});var n=t.value;et(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),et(t.value)?t.value[0]=n:t.value=n}var EO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return m(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};DO(n);var i=X(t.levels||[],function(t){return new sh(t,this,e)},this),r=LA.createTree(n,this,function(t){t.wrapMethod("getItemModel",function(t,e){var n=r.getNodeByDataIndex(e),o=i[n.depth];return o&&(t.parentModel=o),t})});return r.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=zA(i,this),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){YA(this)},e.type="series.sunburst",e.defaultOption={zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],levels:[],sort:"desc"},e}(Wp),OO=Math.PI/180;function PO(t,e,n){e.eachSeriesByType(t,function(t){var e=t.get("center"),i=t.get("radius");et(i)||(i=[0,i]),et(e)||(e=[e,e]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=dr(e[0],r),l=dr(e[1],o),u=dr(i[0],a/2),c=dr(i[1],a/2),h=-t.get("startAngle")*OO,d=t.get("minAngle")*OO,f=t.getData().tree.root,p=t.getViewRoot(),g=p.depth,m=t.get("sort");null!=m&&RO(p,m);var v=0;q(p.children,function(t){!isNaN(t.getValue())&&v++});var y=p.getValue(),_=Math.PI/(y||v)*2,b=p.depth>0,w=(c-u)/(p.height-(b?-1:1)||1),x=t.get("clockwise"),k=t.get("stillShowZeroSum"),S=x?1:-1;if(b){var C=2*Math.PI;f.setLayout({angle:C,startAngle:h,endAngle:h+C,clockwise:x,cx:s,cy:l,r0:u,r:u+w})}!function t(e,n){if(e){var i=n;if(e!==f){var r=e.getValue(),o=0===y&&k?_:r*_;o1;)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",e);return t.depth>1&&"string"==typeof o&&(o=hn(o,(t.depth-1)/(i-1)*.5)),o}(r,t,i.root.height)),B(n.ensureUniqueItemVisual(r.dataIndex,"style"),o)})})}function NO(t,e){return e=e||[0,0],X(["x","y"],function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))},this)}function FO(t,e){return e=e||[0,0],X([0,1],function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])},this)}function VO(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function zO(t,e){return e=e||[0,0],X(["Radius","Angle"],function(n,i){var r=this["get"+n+"Axis"](),o=e[i],a=t[i]/2,s="category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a));return"Angle"===n&&(s=s*Math.PI/180),s},this)}function BO(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||It(t,"text")))}function HO(t,e,n){var i,r,o,a=t;if("text"===e)o=a;else{o={},It(a,"text")&&(o.text=a.text),It(a,"rich")&&(o.rich=a.rich),It(a,"textFill")&&(o.fill=a.textFill),It(a,"textStroke")&&(o.stroke=a.textStroke),r={type:"text",style:o,silent:!0},i={};var s=It(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),It(a,"textPosition")&&(i.position=a.textPosition),It(a,"textOffset")&&(i.offset=a.textOffset),It(a,"textRotation")&&(i.rotation=a.textRotation),It(a,"textDistance")&&(i.distance=a.textDistance)}return jO(o,t),q(o.rich,function(t){jO(t,t)}),{textConfig:i,textContent:r}}function jO(t,e){e&&(e.font=e.textFont||e.font,It(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),It(e,"textAlign")&&(t.align=e.textAlign),It(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),It(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),It(e,"textWidth")&&(t.width=e.textWidth),It(e,"textHeight")&&(t.height=e.textHeight),It(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),It(e,"textPadding")&&(t.padding=e.textPadding),It(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),It(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),It(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),It(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),It(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),It(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),It(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function GO(t,e,n){var i=t;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,o=t.fill||"#000";UO(i,e);var a=null==i.textFill;return r?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=t.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,q(e.rich,function(t){UO(t,t)}),i}function UO(t,e){e&&(It(e,"fill")&&(t.textFill=e.fill),It(e,"stroke")&&(t.textStroke=e.fill),It(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),It(e,"font")&&(t.font=e.font),It(e,"fontStyle")&&(t.fontStyle=e.fontStyle),It(e,"fontWeight")&&(t.fontWeight=e.fontWeight),It(e,"fontSize")&&(t.fontSize=e.fontSize),It(e,"fontFamily")&&(t.fontFamily=e.fontFamily),It(e,"align")&&(t.textAlign=e.align),It(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),It(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),It(e,"width")&&(t.textWidth=e.width),It(e,"height")&&(t.textHeight=e.height),It(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),It(e,"padding")&&(t.textPadding=e.padding),It(e,"borderColor")&&(t.textBorderColor=e.borderColor),It(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),It(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),It(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),It(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),It(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),It(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),It(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),It(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),It(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),It(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var WO=Ya.CMD,YO=2*Math.PI,qO=["x","y"],XO=["width","height"],ZO=[];function KO(t,e){return Math.abs(t-e)<1e-5}function $O(t){var e,n,i,r,o,a=t.data,s=t.len(),l=[],u=0,c=0,h=0,d=0;function f(t,n){e&&e.length>2&&l.push(e),e=[t,n]}function p(t,n,i,r){KO(t,i)&&KO(n,r)||e.push(t,n,i,r,i,r)}function g(t,n,i,r,o,a){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,u=nS:M2&&l.push(e),l}function QO(t,e){var n=t.length,i=e.length;if(n===i)return[t,e];for(var r=nh.width?1:0,r=XO[i],o=qO[i],a=h[r]/e,s=h[o],l=0;li[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:J(zO,t)}}},calendar:function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}},DP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return bb(this.getSource(),this)},e.prototype.getDataParams=function(e,n,i){var r=t.prototype.getDataParams.call(this,e,n);return i&&(r.info=mP(i).info),r},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,clip:!1},e}(Wp),EP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n,i){var r=this._data,o=t.getData(),a=this.group,s=$P(t,o,e,n);r||a.removeAll();var l=t.__transientTransitionOpt;if(!l||null!=l.from&&null!=l.to){var u=new dR(t,l),c=l?"multiple":"oneToOne";new F_(r?r.getIndices():[],o.getIndices(),OP(r,c,l&&l.from),OP(o,c,l&&l.to),null,c).add(function(e){JP(n,null,e,s(e,i),t,a,o,null)}).remove(function(e){lR(r.getItemGraphicEl(e),t,a)}).update(function(e,l){u.reset("oneToOne");var c=r.getItemGraphicEl(l);u.findAndAddFrom(c),u.hasFrom()&&(hR(c,a),c=null),JP(n,c,e,s(e,i),t,a,o,u),u.applyMorphing()}).updateManyToOne(function(e,l){u.reset("manyToOne");for(var c=0;c=0){!s&&(s=r[t]={});var f=Q(l);for(h=0;h=0){var d=t.getAnimationStyleProps(),f=d?d.style:null;if(f){!a&&(a=r.style={});var p=Q(i);for(c=0;c=d;f--)lR(e.childAt(f),r,e)}}(t,e,n,i,r,s),l>=0?o.replaceAt(e,l):o.add(e),e}function eR(t,e){var n,i=mP(t),r=e.type,o=e.shape,a=e.style;return null!=r&&r!==i.customGraphicType||"path"===r&&(n=o)&&(It(n,"pathData")||It(n,"d"))&&uR(o)!==i.customPathData||"image"===r&&It(a,"image")&&a.image!==i.customImagePath}function nR(t,e,n){var i=e?iR(t,e):t,r=e?rR(t,i,_P):t.style,o=t.type,a=i?i.textConfig:null,s=t.textContent,l=s?e?iR(s,e):s:null;if(r&&(n.isLegacy||BO(r,o,!!a,!!l))){n.isLegacy=!0;var u=HO(r,o,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}!e&&l&&!l.type&&(l.type="text");var c=e?n[e]:n.normal;c.cfg=a,c.conOpt=l}function iR(t,e){return e?t?t[e]:null:t}function rR(t,e,n){var i=e&&e.style;return null==i&&n===_P&&t&&(i=t.styleEmphasis),i}function oR(t,e){var n=t&&t.name;return null!=n?n:"e\0\0"+e}function aR(t,e){var n=this.context;tR(n.api,null!=e?n.oldChildren[e]:null,n.dataIndex,null!=t?n.newChildren[t]:null,n.seriesModel,n.group,0,n.morphPreparation)}function sR(t){var e=this.context;lR(e.oldChildren[t],e.seriesModel,e.group)}function lR(t,e,n){if(t){var i=mP(t).leaveToProps;i?mc(t,i,e,{cb:function(){n.remove(t)}}):n.remove(t)}}function uR(t){return t&&(t.pathData||t.d)}function cR(t){return t&&t instanceof ds}function hR(t,e){t&&e.remove(t)}var dR=function(){function t(t,e){this._fromList=[],this._toList=[],this._toElOptionList=[],this._allPropsFinalList=[],this._toDataIndices=[],this._morphConfigList=[],this._seriesModel=t,this._transOpt=e}return t.prototype.hasFrom=function(){return!!this._fromList.length},t.prototype.findAndAddFrom=function(t){if(t&&(mP(t).canMorph&&this._fromList.push(t),t.isGroup))for(var e=t.childrenRef(),n=0;n=n?null:o,i+1>=e?n-o:r);else if("oneToMany"===t)for(var a=Math.max(1,Math.floor(e/n)),s=0,l=0;s=e?e-s:a,l>=n?null:l)},t.prototype._oneToOneForSingleTo=function(t,e){var n,i=this._toList[t],r=this._toElOptionList[t],o=this._toDataIndices[t],a=this._allPropsFinalList[t],s=this._fromList[e],l=this._getOrCreateMorphConfig(o),u=l.duration;if(s&&sP(s)){if(LP(i,a,r.style),u){var c=lP([s],i,l,fR);this._processResultIndividuals(c,t,null)}}else{var h=u&&s&&(s!==i||aP(n=s)||sP(n))?s:null,d={};FP("shape",i,h,r,d,!1),FP("extra",i,h,r,d,!1),zP(i,h,r,d,!1),BP(i,h,r,r.style,d,!1),LP(i,a,r.style),h&&iP(h,i,l),NP(i,o,r,this._seriesModel,d,!1)}},t.prototype._manyToOneForSingleTo=function(t,e,n){var i=this._toList[t];LP(i,this._allPropsFinalList[t],this._toElOptionList[t].style);var r=this._getOrCreateMorphConfig(this._toDataIndices[t]);if(r.duration&&null!=e){for(var o=[],a=e;aa)return!0;if(o){var s=YS(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;if(r){var o=pR(t).pointerEl=new l[r.type](gR(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=pR(t).labelEl=new Vs(gR(e.label));t.add(r),_R(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=pR(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=pR(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),_R(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=Tc(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){be(t.event)},onmousedown:mR(this._onHandleDragMove,this,0,0),drift:mR(this._onHandleDragMove,this),ondragend:mR(this._onHandleDragEnd,this)}),i.add(r)),wR(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");et(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,lg(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){vR(this._axisPointerModel,!e&&this._moveAnimation,this._handle,bR(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(bR(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(bR(i)),pR(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}();function kR(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle()).fill=null:"shadow"===n&&((e=i.getAreaStyle()).stroke=null),e}function SR(t,e,n,i,r){var o=CR(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=Uh(a.get("padding")||0),l=a.getFont(),u=Ni(o,l),c=r.position,h=u.width+s[1]+s[3],d=u.height+s[0]+s[2],f=r.align;"right"===f&&(c[0]-=h),"center"===f&&(c[0]-=h/2);var p=r.verticalAlign;"bottom"===p&&(c[1]-=d),"middle"===p&&(c[1]-=d/2),function(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(c,h,d,i);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:zc(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function CR(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:Sw(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};q(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=e&&e.getDataParams(t.dataIndexInside);i&&s.seriesData.push(i)}),it(a)?o=a.replace("{value}",o):nt(a)&&(o=a(s))}return o}function AR(t,e,n){var i=[1,0,0,1,0,0];return ui(i,i,n.rotation),li(i,i,n.position),kc([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function MR(t,e,n,i,r,o){var a=GS.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),SR(e,i,r,o,{position:AR(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function IR(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function TR(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function DR(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var ER=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=OR(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=kR(i),h=PR[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}MR(e,t,TS(a.model,n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=TS(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=AR(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=OR(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];return h[l]=u[l],{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(xR);function OR(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var PR={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:IR([e,n[0]],[e,n[1]],RR(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth());return{type:"Rect",shape:TR([e-i/2,n[0]],[i,n[1]-n[0]],RR(t))}}};function RR(t){return"x"===t.dim?0:1}var LR=ER,NR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="axisPointer",e.defaultOption={show:"auto",zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(md),FR=qr(),VR=q;function zR(t,e,n){if(!w.node){var i=e.getZr();FR(i).records||(FR(i).records={}),function(t,e){function n(n,i){t.on(n,function(n){var r=function(t){var e={showTip:[],hideTip:[]};return{dispatchAction:function n(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))},pendings:e}}(e);VR(FR(t).records,function(t){t&&i(t,n,r.dispatchAction)}),function(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}(r.pendings,e)})}FR(t).initialized||(FR(t).initialized=!0,n("click",tt(HR,"click")),n("mousemove",tt(HR,"mousemove")),n("globalout",BR))}(i,e),(FR(i).records[t]||(FR(i).records[t]={})).handler=n}}function BR(t,e,n){t.handler("leave",null,n)}function HR(t,e,n,i){e.handler(t,n,i)}function jR(t,e){if(!w.node){var n=e.getZr();(FR(n).records||{})[t]&&(FR(n).records[t]=null)}}var GR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";zR("axisPointer",n,function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},e.prototype.remove=function(t,e){jR("axisPointer",e)},e.prototype.dispose=function(t,e){jR("axisPointer",e)},e.type="axisPointer",e}(qp);function UR(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=Yr(o,t);if(null==a||a<0||et(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,h="x"===c||"radius"===c?1:0,d=o.mapDimension(u.dim),f=[];f[h]=o.get(d,a),f[1-h]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(o.getValues(X(l.dimensions,function(t){return o.mapDimension(t)}),a))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),i=[p.x+p.width/2,p.y+p.height/2]}return{point:i,el:s}}var WR=qr();function YR(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||J(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){$R(r)&&(r=UR({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=$R(r),u=o.axesInfo,c=s.axesInfo,h="leave"===i||$R(r),d={},f={},p={list:[],map:{}},g={showPointer:tt(XR,f),showTooltip:tt(ZR,p)};q(s.coordSysMap,function(t,e){var n=l||t.containPoint(r);q(s.coordSysAxesInfo[e],function(t,e){var i=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(u,t);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&qR(t,a,g,!1,d)}})});var m={};return q(c,function(t,e){var n=t.linkGroup;n&&!f[e]&&q(n.axesInfo,function(e,i){var r=f[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,KR(e),KR(t)))),m[t.key]=o}})}),q(m,function(t,e){qR(c[e],t,g,!0,d)}),function(t,e,n){var i=n.axesInfo=[];q(e,function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})})}(f,c,d),function(t,e,n,i){if(!$R(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}(p,r,t,a),function(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=WR(i)[r]||{},a=WR(i)[r]={};q(t,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&q(n.seriesDataIndices,function(t){a[t.seriesIndex+" | "+t.dataIndex]=t})});var s=[],l=[];q(o,function(t,e){!a[e]&&l.push(t)}),q(a,function(t,e){!o[e]&&s.push(t)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(c,0,n),d}}function qR(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=function(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return q(e.seriesModels,function(e,l){var u,c,h=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(h,t,n);c=d.dataIndices,u=d.nestestValue}else{if(!(c=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null)).length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var f=t-u,p=Math.abs(f);p<=a&&((p=0&&s<0)&&(a=p,s=f,r=u,o.length=0),q(c,function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:o,snapToValue:r}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&B(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function XR(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function ZR(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=XS(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function KR(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function $R(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function QR(t){KS.registerAxisPointerClass("CartesianAxisPointer",LR),t.registerComponentModel(NR),t.registerComponentView(GR),t.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!et(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=function(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];q(n.getCoordinateSystems(),function(n){if(n.axisPointerEnabled){var s=XS(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model.getModel("tooltip",i);if(q(n.getAxes(),tt(f,!1,null)),n.getTooltipAxes&&i&&u.get("show")){var c="axis"===u.get("trigger"),h="cross"===u.get(["axisPointer","type"]),d=n.getTooltipAxes(u.get(["axisPointer","axis"]));(c||h)&&q(d.baseAxes,tt(f,!h||"cross",c)),h&&q(d.otherAxes,tt(f,"cross",!1))}}function f(i,s,c){var h=c.model.getModel("axisPointer",r),d=h.get("show");if(d&&("auto"!==d||i||qS(h))){null==s&&(s=h.get("triggerTooltip"));var f=(h=i?function(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s={};q(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=F(a.get(t))}),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===r){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var c=s.lineStyle=a.get("crossStyle");c&&H(l,c.textStyle)}}return t.model.getModel("axisPointer",new sh(s,n,i))}(c,u,r,e,i,s):h).get("snap"),p=XS(c.model),g=s||f||"category"===c.type,m=t.axesInfo[p]={key:p,axis:c,coordSys:n,axisPointerModel:h,triggerTooltip:s,involveSeries:g,snap:f,useHandle:qS(h),seriesModels:[],linkGroup:null};l[p]=m,t.seriesInvolved=t.seriesInvolved||g;var v=function(t,e){for(var n=e.model,i=e.dim,r=0;rm?"left":"right",c=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}(e,n,0,a,i.get(["label","margin"]));SR(t,n,i,r,d)},e}(xR),tL={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:IR(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var r=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:DR(e.cx,e.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:DR(e.cx,e.cy,n-r/2,n+r/2,0,2*Math.PI)}}},eL=JR,nL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"80%"},e}(md),iL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",$r).models[0]},e.type="polarAxis",e}(md);W(iL,Tw);var rL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="angleAxis",e}(iL),oL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="radiusAxis",e}(iL),aL=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return m(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(Ww);aL.prototype.dataToRadius=Ww.prototype.dataToCoord,aL.prototype.radiusToData=Ww.prototype.coordToData;var sL=aL,lL=qr(),uL=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return m(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),n=t.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],a=t.dataToCoord(o+1)-t.dataToCoord(o),s=Math.abs(a),l=Ni(null==o?"":o+"",e.getFont(),"center","top"),u=Math.max(l.height,7)/s;isNaN(u)&&(u=1/0);var c=Math.max(0,Math.floor(u)),h=lL(t.model),d=h.lastAutoInterval,f=h.lastTickCount;return null!=d&&null!=f&&Math.abs(d-c)<=1&&Math.abs(f-r)<=1&&d>c?c=d:(h.lastTickCount=r,h.lastAutoInterval=c),c},e}(Ww);uL.prototype.dataToAngle=Ww.prototype.dataToCoord,uL.prototype.angleToData=Ww.prototype.coordToData;var cL=uL;function hL(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var dL=function(){function t(t){this.dimensions=["radius","angle"],this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new sL,this._angleAxis=new cL,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){return this["_"+t+"Axis"]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=la;)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var n=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,r=n*n+i*i,o=this.r,a=this.r0;return r<=o*o&&r>=a*a}}},t.prototype.convertToPixel=function(t,e,n){return hL(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return hL(e)===this?this.pointToData(n):null},t}();function fL(t,e){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){if(t.coordinateSystem===n){var e=t.getData();q(Iw(e,"radius"),function(t){r.scale.unionExtentFromData(e,t)}),q(Iw(e,"angle"),function(t){i.scale.unionExtentFromData(e,t)})}}),ww(i.scale,i.model),ww(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function pL(t,e){if(t.type=e.get("type"),t.scale=xw(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),function(t){return"angleAxis"===t.mainType}(e)){t.inverse=t.inverse!==e.get("clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}var gL={dimensions:dL.prototype.dimensions,create:function(t,e){var n=[];return t.eachComponent("polar",function(t,i){var r=new dL(i+"");r.update=fL;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");pL(o,s),pL(a,l),function(t,e,n){var i=e.get("center"),r=n.getWidth(),o=n.getHeight();t.cx=dr(i[0],r),t.cy=dr(i[1],o);var a=t.getRadiusAxis(),s=Math.min(r,o)/2,l=e.get("radius");null==l?l=[0,"100%"]:et(l)||(l=[0,l]);var u=[dr(l[0],s),dr(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}(r,t,e),n.push(r),t.coordinateSystem=r,r.model=t}),t.eachSeries(function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",$r).models[0];t.coordinateSystem=e.coordinateSystem}}),n}},mL=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function vL(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function yL(t){return t.getRadiusAxis().inverse?0:1}function _L(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var bL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return m(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=X(n.getViewLabels(),function(t){t=F(t);var e=n.scale,i="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(i),t});_L(s),_L(o),q(mL,function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||wL[e](this.group,t,i,o,a,r,s)},this)}},e.type="angleAxis",e}(KS),wL={axisLine:function(t,e,n,i,r,o){var a,s=e.getModel(["axisLine","lineStyle"]),l=yL(n),u=l?0:1;(a=0===o[u]?new eu({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new xu({shape:{cx:n.cx,cy:n.cy,r:o[l],r0:o[u]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(a)},axisTick:function(t,e,n,i,r,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[yL(n)],u=X(i,function(t){return new Ru({shape:vL(n,[l,l+s],t.coord)})});t.add(cc(u,{style:H(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[yL(n)],c=[],h=0;hp?"left":"right",v=Math.abs(f[1]-g)/d<.3?"middle":f[1]>g?"top":"bottom";if(s&&s[h]){var y=s[h];at(y)&&y.textStyle&&(a=new sh(y.textStyle,l,l.ecModel))}var _=new Vs({silent:GS.isLabelSilent(e),style:zc(a,{x:f[0],y:f[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:m,verticalAlign:v})});if(t.add(_),c){var b=GS.makeAxisEventDataBase(e);b.targetType="axisLabel",b.value=i.rawLabel,zs(_).eventData=b}},this)},splitLine:function(t,e,n,i,r,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=0;c=0?"p":"n",A=b;y&&(i[s][S]||(i[s][S]={p:b,n:b}),A=i[s][S][C]);var M=void 0,I=void 0,T=void 0,D=void 0;if("radius"===h.dim){var E=h.dataToCoord(k)-b,O=o.dataToCoord(S);Math.abs(E)=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},t.prototype.convertToPixel=function(t,e,n){return GL(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return GL(e)===this?this.pointToData(n):null},t}(),WL={create:function(t,e){var n=[];return t.eachComponent("singleAxis",function(i,r){var o=new UL(i,t,e);o.name="single_"+r,o.resize(i,e),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",$r).models[0];t.coordinateSystem=e&&e.coordinateSystem}}),n},dimensions:UL.prototype.dimensions},YL=["x","y"],qL=["width","height"],XL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.coordinateSystem,s=$L(a,1-KL(o)),l=a.dataToPoint(e)[0],u=i.get("type");if(u&&"none"!==u){var c=kR(i),h=ZL[u](o,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}MR(e,t,RL(n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=RL(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=AR(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.coordinateSystem,a=KL(r),s=$L(o,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=$L(o,1-a),c=(u[1]+u[0])/2,h=[c,c];return h[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(xR),ZL={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:IR([e,n[0]],[e,n[1]],KL(t))}},shadow:function(t,e,n){var i=t.getBandWidth();return{type:"Rect",shape:TR([e-i/2,n[0]],[i,n[1]-n[0]],KL(t))}}};function KL(t){return t.isHorizontal()?0:1}function $L(t,e){var n=t.getRect();return[n[YL[e]],n[YL[e]]+n[qL[e]]]}var QL=XL,JL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="single",e}(qp);function tN(t,e){var n,i=t.cellSize;1===(n=et(i)?i:t.cellSize=[i,i]).length&&(n[1]=n[0]);var r=X([0,1],function(t){return function(t,e){return null!=t[od[e][0]]||null!=t[od[e][1]]&&null!=t[od[e][2]]}(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]});hd(t,e,{type:"box",ignoreSize:r})}var eN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(e,n,i){var r=dd(e);t.prototype.init.apply(this,arguments),tN(e,r)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),tN(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(md),nN={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"]},iN={EN:["S","M","T","W","T","F","S"],CN:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},rN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,a,i),this._renderWeekText(t,o,a,i)},e.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new Ms({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(u)}},e.prototype._renderLines=function(t,e,n,i){var r=this,o=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){d(u.formatedDate),0===c&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=o.getDateInfo(h)}function d(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}d(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},e.prototype._getEdgesPoints=function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},e.prototype._drawSplitline=function(t,e,n){var i=new Du({z2:20,shape:{points:t},style:e});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,r=i.getDateInfo(e),o=[],a=0;a<7;a++){var s=i.getNextNDay(r.time,a),l=i.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},e.prototype._formatterLabel=function(t,e){return"string"==typeof t&&t?(n=t,q(e,function(t,e){n=n.replace("{"+e+"}",t)}),n):"function"==typeof t?t(e):e.nameMap;var n},e.prototype._yearTextPositionControl=function(t,e,n,i,r){var o=e[0],a=e[1],s=["center","bottom"];"bottom"===i?(a+=r,s=["center","top"]):"left"===i?o-=r:"right"===i?(o+=r,s=["center","top"]):a-=r;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,i){var r=t.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,h={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var f=r.get("formatter"),p=this._formatterLabel(f,{start:e.start.y,end:e.end.y,nameMap:d}),g=new Vs({z2:30,style:zc(r,{text:p})});g.attr(this._yearTextPositionControl(g,h[a],n,a,o)),i.add(g)}},e.prototype._monthTextPositionControl=function(t,e,n,i,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(o="center"),"start"===i&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,n){var i=t.getModel("monthLabel");if(i.get("show")){var r=i.get("nameMap"),o=i.get("margin"),a=i.get("position"),s=i.get("align"),l=[this._tlpoints,this._blpoints];it(r)&&(r=nN[r.toUpperCase()]||[]);var u="start"===a?0:1,c="horizontal"===e?0:1;o="start"===a?-o:o;for(var h="center"===s,d=0;d=i.start.time&&n.timea.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var i=Math.floor(n[1].time/oN)-Math.floor(n[0].time/oN)+1,r=new Date(n[0].time),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a)for(var l=r.getTime()-n[1].time>0?1:-1;(s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0;)i-=l,r.setDate(s-l);var u=Math.floor((i+n[0].day+6)/7),c=e?1-u:u-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&ei.lweek)return null;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},t.create=function(e,n){var i=[];return e.eachComponent("calendar",function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o}),e.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])}),i},t.dimensions=["time","value"],t}(),lN=qr(),uN={path:null,compoundPath:null,group:tr,image:_s,text:Vs},cN=function(t){var e=t.graphic;et(e)?t.graphic=e[0]&&e[0].elements?[t.graphic[0]]:[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])},hN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return m(e,t),e.prototype.mergeOption=function(e,n){var i=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,e,n),this.option.elements=i},e.prototype.optionUpdated=function(t,e){var n=this.option,i=(e?n:t).elements,r=n.elements=e?[]:n.elements,o=[];this._flatten(i,o,null);var a=Br(r,o,"normalMerge"),s=this._elOptionsToUpdate=[];q(a,function(t,e){var n=t.newOption;n&&(s.push(n),function(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}(t,n),function(t,e,n){var i=B({},n),r=t[e],o=n.$action||"merge";"merge"===o?r?(V(r,i,!0),hd(r,i,{ignoreSize:!0}),fd(n,r)):t[e]=i:"replace"===o?t[e]=i:"remove"===o&&r&&(t[e]=null)}(r,e,n),function(t,e){if(t&&(t.hv=e.hv=[gN(e,["left","right"]),gN(e,["top","bottom"])],"group"===t.type)){var n=t,i=e;null==n.width&&(n.width=i.width=0),null==n.height&&(n.height=i.height=0)}}(r[e],n))},this);for(var l=r.length-1;l>=0;l--)null==r[l]?r.splice(l,1):delete r[l].$action},e.prototype._flatten=function(t,e,n){q(t,function(t){if(t){n&&(t.parentOption=n),e.push(t);var i=t.children;"group"===t.type&&i&&this._flatten(i,e,t),delete t.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(md),dN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(){this._elMap=Ct()},e.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,i=this.group;q(e,function(e){var r=Gr(e.id,null),o=null!=r?n.get(r):null,a=Gr(e.parentId,null),s=null!=a?n.get(a):i,l=e.type,u=e.style;"text"===l&&u&&e.hv&&e.hv[1]&&(u.textVerticalAlign=u.textBaseline=u.verticalAlign=u.align=null);var c=e.textContent,h=e.textConfig;if(u&&BO(u,l,!!h,!!c)){var d=HO(u,l,!0);!h&&d.textConfig&&(h=e.textConfig=d.textConfig),!c&&d.textContent&&(c=d.textContent)}var f=function(t){return t=B({},t),q(["id","parentId","$action","hv","bounding","textContent"].concat(rd),function(e){delete t[e]}),t}(e),p=e.$action||"merge";"merge"===p?o?o.attr(f):fN(r,s,f,n):"replace"===p?(pN(o,n),fN(r,s,f,n)):"remove"===p&&pN(o,n);var g=n.get(r);if(g&&c)if("merge"===p){var m=g.getTextContent();m?m.attr(c):g.setTextContent(new Vs(c))}else"replace"===p&&g.setTextContent(new Vs(c));if(g){var v=lN(g);v.__ecGraphicWidthOption=e.width,v.__ecGraphicHeightOption=e.height,function(t,e,n){var i=zs(t).eventData;t.silent||t.ignore||i||(i=zs(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=n.info)}(g,t,e),Pc({el:g,componentModel:t,itemName:g.name,itemTooltipOption:e.tooltip})}})}},e.prototype._relocate=function(t,e){for(var n=t.option.elements,i=this.group,r=this._elMap,o=e.getWidth(),a=e.getHeight(),s=0;s=0;s--){var h,d,f,p;(f=null!=(d=Gr((h=n[s]).id,null))?r.get(d):null)&&(c=lN(p=f.parent),ud(f,h,p===i?{width:o,height:a}:{width:c.__ecGraphicWidth,height:c.__ecGraphicHeight},null,{hv:h.hv,boundingMode:h.bounding}))}},e.prototype._clear=function(){var t=this._elMap;t.each(function(e){pN(e,t)}),this._elMap=Ct()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(qp);function fN(t,e,n,i){var r=n.type,o=new(It(uN,r)?uN[r]:ac(r))(n);e.add(o),i.set(t,o),lN(o).__ecGraphicId=t}function pN(t,e){var n=t&&t.parent;n&&("group"===t.type&&t.traverse(function(t){pN(t,e)}),e.removeKey(lN(t).__ecGraphicId),n.remove(t))}function gN(t,e){var n;return q(e,function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)}),n}var mN=["x","y","radius","angle","single"],vN=["cartesian2d","polar","singleAxis"];function yN(t){return t+"Axis"}function _N(t){var e=t.ecModel,n={infoList:[],infoMap:Ct()};return t.eachTargetAxis(function(t,i){var r=e.getComponent(yN(t),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(n.infoList.push(s={model:o,axisModels:[]}),n.infoMap.set(a,s)),s.axisModels.push(r)}}}),n}var bN=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}();function wN(t){var e={};return q(["start","end","startValue","endValue","throttle"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var xN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return m(e,t),e.prototype.init=function(t,e,n){var i=wN(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=wN(t);V(this.option,t,!0),V(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;q([["start","startValue"],["end","endValue"]],function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=Ct();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each(function(t){t.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return q(mN,function(n){var i=this.getReferringComponents(yN(n),Qr);if(i.specified){e=!0;var r=new bN;q(i.models,function(t){r.add(t.componentIndex)}),t.set(n,r)}},this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0;if(i){var r="vertical"===e?"y":"x";o(n.findComponents({mainType:r+"Axis"}),r)}function o(e,n){var r=e[0];if(r){var o=new bN;if(o.add(r.componentIndex),t.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",$r).models[0];a&&q(e,function(t){r.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",$r).models[0]&&o.add(t.componentIndex)})}}}i&&o(n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single"),i&&q(mN,function(e){if(i){var r=n.findComponents({mainType:yN(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var o=new bN;o.add(r[0].componentIndex),t.set(e,o),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(e){!t&&(t=e)},this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");q([["start","startValue"],["end","endValue"]],function(i,r){var o=null!=t[i[0]],a=null!=t[i[1]];o&&!a?e[r]="percent":!o&&a?e[r]="value":n?e[r]=n[r]:o&&(e[r]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(e,n){null==t&&(t=this.ecModel.getComponent(yN(e),n))},this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each(function(n,i){q(n.indexList,function(n){t.call(e,i,n)})})},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(yN(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;q([["start","startValue"],["end","endValue"]],function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;q(["start","startValue","end","endValue"],function(n){e[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i=0}(e)){var n=yN(this._dimName),i=e.getReferringComponents(n,$r).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}},this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return F(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,i=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];AN(["start","end"],function(l,u){var c=t[l],h=t[l+"Value"];"percent"===r[u]?(null==c&&(c=o[u]),h=i.parse(hr(c,o,n))):(e=!0,c=hr(h=null==h?n[u]:i.parse(h),n,o)),s[u]=h,a[u]=c}),MN(s),MN(a);var l=this._minMaxSpan;function u(t,e,n,r,o){var a=o?"Span":"ValueSpan";_T(0,t,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=hr(t[s],n,r,!0),o&&(e[s]=i.parse(e[s]))}return e?u(s,a,n,o,!1):u(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function(t,e,n){var i=[1/0,-1/0];AN(n,function(t){!function(t,e,n){e&&q(Iw(e,n),function(n){var i=e.getApproximateExtent(n);i[0]t[1]&&(t[1]=i[1])})}(i,t.getData(),e)});var r=t.getAxisModel(),o=yw(r.axis.scale,r,i).calculate();return[o.min,o.max]}(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._valueWindow;"none"!==r&&AN(i,function(t){var e=t.getData(),i=e.mapDimensionsAll(n);i.length&&("weakFilter"===r?e.filterSelf(function(t){for(var n,r,a,s=0;so[1];if(u&&!c&&!h)return!0;u&&(a=!0),c&&(n=!0),h&&(r=!0)}return a&&n&&r}):AN(i,function(n){if("empty"===r)t.setData(e=e.map(n,function(t){return function(t){return t>=o[0]&&t<=o[1]}(t)?t:NaN}));else{var i={};i[n]=o,e.selectRange(i)}}),AN(i,function(t){e.setApproximateExtent(o,t)}))})}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;AN(["min","max"],function(i){var r=e.get(i+"Span"),o=e.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=hr(n[0]+o,n,[0,100],!0):null!=r&&(o=hr(r,[0,100],n,!0)-n[0]),t[i+"Span"]=r,t[i+"ValueSpan"]=o},this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=vr(n,[0,500]);i=Math.min(i,20);var r=t.axis.scale.rawExtentInfo;0!==e[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==e[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},t}(),TN={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(i,r){var o=t.getComponent(yN(i),r);e(i,r,o,n)})})}e(function(t,e,n,i){n.__dzAxisProxy=null});var n=[];e(function(e,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new IN(e,i,o,t),n.push(r.__dzAxisProxy))});var i=Ct();return q(n,function(t){q(t.getTargetSeriesModels(),function(t){i.set(t.uid,t)})}),i},overallReset:function(t,e){t.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(e,n){t.getAxisProxy(e,n).reset(t)}),t.eachTargetAxis(function(n,i){t.getAxisProxy(n,i).filterData(t,e)})}),t.eachComponent("dataZoom",function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}},DN=!1;function EN(t){DN||(DN=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,TN),function(t){t.registerAction("dataZoom",function(t,e){q(function(t,e){var n,i=Ct(),r=[],o=Ct();t.eachComponent({mainType:"dataZoom",query:e},function(t){o.get(t.uid)||s(t)});do{n=!1,t.eachComponent("dataZoom",a)}while(n);function a(t){!o.get(t.uid)&&function(t){var e=!1;return t.eachTargetAxis(function(t,n){var r=i.get(t);r&&r[n]&&(e=!0)}),e}(t)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),r.push(t),t.eachTargetAxis(function(t,e){(i.get(t)||i.set(t,[]))[e]=!0})}return r}(e,t),function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function ON(t){t.registerComponentModel(kN),t.registerComponentView(CN),EN(t)}var PN=function(){},RN={};function LN(t,e){RN[t]=e}function NN(t){return RN[t]}var FN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;q(this.option.feature,function(t,n){var i=NN(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),V(t,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(md);function VN(t,e){var n=Uh(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),new Ms({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}var zN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.render=function(t,e,n,i){var r=this.group;if(r.removeAll(),t.get("show")){var o=+t.get("itemSize"),a=t.get("feature")||{},s=this._features||(this._features={}),l=[];q(a,function(t,e){l.push(e)}),new F_(this._featureNames||[],l).add(u).update(u).remove(tt(u,null)).execute(),this._featureNames=l,function(t,e,n){var i=e.getBoxLayoutParams(),r=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=ld(i,o,r);sd(e.get("orient"),t,e.get("itemGap"),a.width,a.height),ud(t,i,o,r)}(r,t,n),r.add(VN(r.getBoundingRect(),t)),r.eachChild(function(t){var e=t.__title,i=t.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=t.getTextContent(),l=s&&s.states.emphasis;if(l&&!nt(l)&&e){var u=l.style||(l.style={}),c=Ni(e,Vs.makeFont(u)),h=t.x+r.x,d=!1;t.y+r.y+o+c.height>n.getHeight()&&(a.position="top",d=!0);var f=d?-5-c.height:o+8;h+c.width/2>n.getWidth()?(a.position=["100%",f],u.align="right"):h-c.width/2<0&&(a.position=[0,f],u.align="left")}})}function u(u,c){var h,d=l[u],f=l[c],p=a[d],g=new sh(p,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===d&&(p.title=i.newTitle),d&&!f){if(function(t){return 0===t.indexOf("my")}(d))h={onclick:g.option.onclick,featureName:d};else{var m=NN(d);if(!m)return;h=new m}s[d]=h}else if(!(h=s[f]))return;h.uid=uh("toolbox-feature"),h.model=g,h.ecModel=e,h.api=n;var v=h instanceof PN;d||!f?!g.get("show")||v&&h.unusable?v&&h.remove&&h.remove(e,n):(function(i,a,s){var l,u,c=i.getModel("iconStyle"),h=i.getModel(["emphasis","iconStyle"]),d=a instanceof PN&&a.getIcons?a.getIcons():i.get("icon"),f=i.get("title")||{};"string"==typeof d?(l={})[s]=d:l=d,"string"==typeof f?(u={})[s]=f:u=f;var p=i.iconPaths={};q(l,function(s,l){var d=Tc(s,{},{x:-o/2,y:-o/2,width:o,height:o});d.setStyle(c.getItemStyle()),d.ensureState("emphasis").style=h.getItemStyle();var f=new Vs({style:{text:u[l],align:h.get("textAlign"),borderRadius:h.get("textBorderRadius"),padding:h.get("textPadding"),fill:null},ignore:!0});d.setTextContent(f),Pc({el:d,componentModel:t,itemName:l,formatterParamsExtra:{title:u[l]}}),d.__title=u[l],d.on("mouseover",function(){var e=h.getItemStyle(),n="vertical"===t.get("orient")?null==t.get("right")?"right":"left":null==t.get("bottom")?"bottom":"top";f.setStyle({fill:h.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:h.get("textBackgroundColor")}),d.setTextConfig({position:h.get("textPosition")||n}),f.ignore=!t.get("showTitle"),fl(this)}).on("mouseout",function(){"emphasis"!==i.get(["iconStatus",l])&&pl(this),f.hide()}),("emphasis"===i.get(["iconStatus",l])?fl:pl)(d),r.add(d),d.on("click",J(a.onclick,a,e,n,l)),p[l]=d})}(g,h,d),g.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?fl:pl)(i[t])},h instanceof PN&&h.render&&h.render(g,e,n,i)):v&&h.dispose&&h.dispose(e,n)}},e.prototype.updateView=function(t,e,n,i){q(this._features,function(t){t instanceof PN&&t.updateView&&t.updateView(t.model,e,n,i)})},e.prototype.remove=function(t,e){q(this._features,function(n){n instanceof PN&&n.remove&&n.remove(t,e)}),this.group.removeAll()},e.prototype.dispose=function(t,e){q(this._features,function(n){n instanceof PN&&n.dispose&&n.dispose(t,e)})},e.type="toolbox",e}(qp),BN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",r="svg"===e.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",a=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if("function"!=typeof MouseEvent||!w.browser.newEdge&&(w.browser.ie||w.browser.edge))if(window.navigator.msSaveOrOpenBlob||r){var s=a.split(","),l=s[0].indexOf("base64")>-1,u=r?decodeURIComponent(s[1]):s[1];l&&(u=window.atob(u));var c=i+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var h=u.length,d=new Uint8Array(h);h--;)d[h]=u.charCodeAt(h);var f=new Blob([d]);window.navigator.msSaveOrOpenBlob(f,c)}else{var p=document.createElement("iframe");document.body.appendChild(p);var g=p.contentWindow,m=g.document;m.open("image/svg+xml","replace"),m.write(u),m.close(),g.focus(),m.execCommand("SaveAs",!0,c),document.body.removeChild(p)}}else{var v=n.get("lang"),y='',_=window.open();_.document.write(y),_.document.title=i}else{var b=document.createElement("a");b.download=i+"."+o,b.target="_blank",b.href=a;var x=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});b.dispatchEvent(x)}},e.getDefaultOption=function(t){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocale(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocale(["toolbox","saveAsImage","lang"])}},e}(PN);BN.prototype.unusable=!w.canvasSupported;var HN=BN,jN="__ec_magicType_stack__",GN=[["line","bar"],["stack"]],UN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return q(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n},e.getDefaultOption=function(t){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocale(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},e.prototype.onclick=function(t,e,n){var i=this.model,r=i.get(["seriesIndex",n]);if(WN[n]){var o,a={series:[]};q(GN,function(t){G(t,n)>=0&&q(t,function(t){i.setIconStatus(t,"normal")})}),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},function(t){var e=WN[n](t.subType,t.id,t,i);e&&(H(e,t.option),a.series.push(e));var r=t.coordinateSystem;if(r&&"cartesian2d"===r.type&&("line"===n||"bar"===n)){var o=r.getAxesByScale("ordinal")[0];if(o){var s=o.dim+"Axis",l=t.getReferringComponents(s,$r).models[0].componentIndex;a[s]=a[s]||[];for(var u=0;u<=l;u++)a[s][l]=a[s][l]||{};a[s][l].boundaryGap="bar"===n}}});var s=n;"stack"===n&&(o=V({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(s="tiled")),e.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:o,featureName:"magicType"})}},e}(PN),WN={line:function(t,e,n,i){if("bar"===t)return V({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(t,e,n,i){if("line"===t)return V({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(t,e,n,i){var r=n.get("stack")===jN;if("line"===t||"bar"===t)return i.setIconStatus("stack",r?"normal":"emphasis"),V({id:e,stack:r?"":jN},i.get(["option","stack"])||{},!0)}};__({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});var YN=UN,qN=new Array(60).join("-"),XN="\t";function ZN(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var KN=new RegExp("[\t]+","g"),$N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.onclick=function(t,e){var n=e.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var r=document.createElement("div");r.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",r.style.backgroundColor=i.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=i.get("lang")||[];o.innerHTML=a[0]||i.get("title"),o.style.cssText="margin: 10px 20px;",o.style.color=i.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="display:block;width:100%;overflow:auto;";var u=i.get("optionToContent"),c=i.get("contentToOption"),h=function(t){var e,n,i,r=function(t){var e={},n=[],i=[];return t.eachRawSeries(function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(t);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}}),{seriesGroupByCategoryAxis:e,other:n,meta:i}}(t);return{value:K([(n=r.seriesGroupByCategoryAxis,i=[],q(n,function(t,e){var n=t.categoryAxis,r=t.valueAxis.dim,o=[" "].concat(X(t.series,function(t){return t.name})),a=[n.model.getCategories()];q(t.series,function(t){var e=t.getRawData();a.push(t.getRawData().mapArray(e.mapDimension(r),function(t){return t}))});for(var s=[o.join(XN)],l=0;l=0)return!0}(t)){var r=function(t){for(var e=t.split(/\n+/g),n=[],i=X(ZN(e.shift()).split(KN),function(t){return{name:t,data:[]}}),r=0;r=0)&&t(r,i._targetInfoList)})}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=dF[t.brushType](0,n,e);t.__rangeOffset={offset:pF[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}}),t},t.prototype.matchOutputRanges=function(t,e,n){q(t,function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&q(i.coordSyses,function(i){var r=dF[t.brushType](1,i,t.range,!0);n(t,r.values,i,e)})},this)},t.prototype.setInputRanges=function(t,e){q(t,function(t){var n,i,r,o,a=this.findTargetInfo(t,e);if(t.range=t.range||[],a&&!0!==a){t.panelId=a.panelId;var s=dF[t.brushType](0,a.coordSys,t.coordRange),l=t.__rangeOffset;t.range=l?pF[t.brushType](s.values,l.offset,(n=l.xyMinMax,i=mF(s.xyMinMax),r=mF(n),o=[i[0]/r[0],i[1]/r[1]],isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o)):s.values}},this)},t.prototype.makePanelOpts=function(t,e){return X(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:xD(i),isTargetByCursor:SD(i,t,n.coordSysModel),getLinearBrushOtherExtent:kD(i)}})},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&G(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=lF(e,t),r=0;rt[1]&&t.reverse(),t}function lF(t,e){return Zr(t,e,{includeMainTypes:oF})}var uF={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,r=t.gridModels,o=Ct(),a={},s={};(n||i||r)&&(q(n,function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0}),q(i,function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0}),q(r,function(t){o.set(t.id,t),a[t.id]=!0,s[t.id]=!0}),o.each(function(t){var r=[];q(t.coordinateSystem.getCartesians(),function(t,e){(G(n,t.getAxis("x").model)>=0||G(i,t.getAxis("y").model)>=0)&&r.push(t)}),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:r[0],coordSyses:r,getPanelRect:hF.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,e){q(t.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:hF.geo})})}},cF=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],hF={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(xc(t)),e}},dF={lineX:tt(fF,0),lineY:tt(fF,1),rect:function(t,e,n,i){var r=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),o=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),a=[sF([r[0],o[0]]),sF([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,i){var r=[[1/0,-1/0],[1/0,-1/0]];return{values:X(n,function(n){var o=t?e.pointToData(n,i):e.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o}),xyMinMax:r}}};function fF(t,e,n,i){var r=n.getAxis(["x","y"][t]),o=sF(X([0,1],function(t){return e?r.coordToData(r.toLocalCoord(i[t]),!0):r.toGlobalCoord(r.dataToCoord(i[t]))})),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var pF={lineX:tt(gF,0),lineY:tt(gF,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return X(t,function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]})}};function gF(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function mF(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var vF,yF=aF,_F=q,bF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new wD(n.getZr()),this._brushController.on("brush",J(this._onBrush,this)).mount()),function(t,e,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new yF(xF(t),e,{include:["grid"]}).makePanelOpts(r,function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(a).enableBrush(!(!o||!a.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}(t,e,this,i,n),function(t,e){t.setIconStatus("back",function(t){return nF(t).length}(e)>1?"emphasis":"normal")}(t,e)},e.prototype.onclick=function(t,e,n){wF[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},i=this.ecModel;this._brushController.updateCovers([]),new yF(xF(this.model),i,{include:["grid"]}).matchOutputRanges(e,i,function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(r("x",n,e[0]),r("y",n,e[1])):r({lineX:"x",lineY:"y"}[i],n,e)}}),function(t,e){var n=nF(t);tF(e,function(e,i){for(var r=n.length-1;r>=0&&!n[r][i];r--);if(r<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var a=o.getPercentRange();n[0][i]={dataZoomId:i,start:a[0],end:a[1]}}}}),n.push(e)}(i,n),this._dispatchZoomAction(n)}function r(t,e,r){var o=e.getAxis(t),a=o.model,s=function(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},function(n){n.getAxisModel(t,e.componentIndex)&&(i=n)}),i}(t,a,i),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(r=_T(0,r.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:r[0],endValue:r[1]})}},e.prototype._dispatchZoomAction=function(t){var e=[];_F(t,function(t,n){e.push(F(t))}),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocale(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},e}(PN),wF={zoom:function(){this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:!this._isZoomActive})},back:function(){this._dispatchZoomAction(function(t){var e=nF(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return tF(n,function(t,n){for(var r=e.length-1;r>=0;r--)if(t=e[r][n]){i[n]=t;break}}),i}(this.ecModel))}};function xF(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}vF=function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var i=e.getModel(n),r=[],o=Zr(t,xF(i));return _F(o.xAxisModels,function(t){return a(t,"xAxis","xAxisIndex")}),_F(o.yAxisModels,function(t){return a(t,"yAxis","yAxisIndex")}),r}function a(t,e,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:"\0_ec_\0toolbox-dataZoom_"+e+o};a[n]=o,r.push(a)}},_t(null==Vd.get("dataZoom")&&vF),Vd.set("dataZoom",vF);var kF=bF,SF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(md);function CF(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function AF(t){if(w.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n-1?(o+="top:50%",a+="translateY(-50%) rotate("+("left"===r?-225:-45)+"deg)"):(o+="left:50%",a+="translateX(-50%) rotate("+("top"===r?225:45)+"deg)");var s=e+" solid 1px;";return'
'}(n.get("backgroundColor"),i,r)),it(t))o.innerHTML=t;else if(t){o.innerHTML="",et(t)||(t=[t]);for(var a=0;a=0;o--){var a=t[o];a&&(a instanceof sh&&(a=a.get("tooltip",!0)),it(a)&&(a={formatter:a}),a&&(i=new sh(a,i,r)))}return i}function WF(t,e){return t.dispatchAction||J(e.dispatchAction,e)}function YF(t){return"center"===t||"middle"===t}var qF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(t,e){if(!w.node){var n,i=t.getComponent("tooltip"),r=i.get("renderMode");this._renderMode="auto"===(n=r)?w.domSupported?"html":"richText":n||"html",this._tooltipContent="richText"===this._renderMode?new zF(e):new LF(e.getDom(),e,{appendToBody:i.get("appendToBody",!0)})}},e.prototype.render=function(t,e,n){if(!w.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._alwaysShowContent=t.get("alwaysShowContent");var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");zR("itemTooltip",this._api,BF(function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!w.node){var r=WF(i,n);this._ticket="";var o=i.dataByCoordSys,a=function(t,e,n){var i=Kr(t).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o,a=Jr(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a)return n.getViewOfComponentModel(a).group.traverse(function(e){var n=zs(e).tooltipConfig;if(n&&n.name===t.name)return o=e,!0}),o?{componentMainType:r,componentIndex:a.componentIndex,el:o}:void 0}}(i,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=GF;l.x=i.x,l.y=i.y,l.update(),zs(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var u=UR(i,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){!this._alwaysShowContent&&this._tooltipModel&&this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(WF(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s&&"axis"===UF([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var r,o;this._lastDataByCoordSys=null,Em(n,function(t){return null!=zs(t).dataIndex?(r=t,!0):null!=zs(t).tooltipConfig?(o=t,!0):void 0},!0),r?this._showSeriesItemTooltip(t,r,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=J(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=[e.offsetX,e.offsetY],r=UF([e.tooltipOption],this._tooltipModel),o=this._renderMode,a=[],s=Sp("section",{blocks:[],noHeader:!0}),l=[],u=new Pp;HF(t,function(t){HF(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value;if(e&&null!=i){var r=CR(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),c=Sp("section",{header:r,noHeader:!bt(r),sortBlocks:!0,blocks:[]});s.blocks.push(c),q(t.seriesDataIndices,function(s){var h=n.getSeriesByIndex(s.seriesIndex),d=s.dataIndexInside,f=h.getDataParams(d);f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=Sw(e.axis,{value:i}),f.axisValueLabel=r,f.marker=u.makeTooltipMarker("item",ed(f.color),o);var p=Kf(h.formatTooltip(d,!0,null));p.markupFragment&&c.blocks.push(p.markupFragment),p.markupText&&l.push(p.markupText),a.push(f)})}})}),s.blocks.reverse(),l.reverse();var c=e.position,h=r.get("order"),d=Mp(s,u,o,h,n.get("useUTC"),r.get("textStyle"));d&&l.unshift(d);var f=l.join("richText"===o?"\n\n":"
");this._showOrMove(r,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(r,c,i[0],i[1],this._tooltipContent,a):this._showTooltipContent(r,f,a,Math.random()+"",i[0],i[1],c,null,u)})},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=zs(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,c=s.getData(u),h=this._renderMode,d=t.positionDefault,f=UF([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=f.get("trigger");if(null==p||"item"===p){var g=s.getDataParams(l,u),m=new Pp;g.marker=m.makeTooltipMarker("item",ed(g.color),h);var v=Kf(s.formatTooltip(l,!1,u)),y=f.get("order"),_=v.markupFragment?Mp(v.markupFragment,m,h,y,i.get("useUTC"),f.get("textStyle")):v.markupText,b="item_"+s.name+"_"+l;this._showOrMove(f,function(){this._showTooltipContent(f,_,g,b,t.offsetX,t.offsetY,t.position,t.target,m)}),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i=zs(e),r=i.tooltipConfig.option||{};it(r)&&(r={content:r,formatter:r});var o=[r],a=this._ecModel.getComponent(i.componentMainType,i.componentIndex);a&&o.push(a),o.push({formatter:r.content});var s=t.positionDefault,l=UF(o,this._tooltipModel,s?{position:s}:null),u=l.get("content"),c=Math.random()+"",h=new Pp;this._showOrMove(l,function(){var n=F(l.get("formatterParams")||{});this._showTooltipContent(l,u,n,c,t.offsetX,t.offsetY,t.position,e,h)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent,c=t.get("formatter");a=a||t.get("position");var h=e,d=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")).color;if(c&&it(c)){var f=t.ecModel.get("useUTC"),p=et(n)?n[0]:n;h=c,p&&p.axisType&&p.axisType.indexOf("time")>=0&&(h=Ch(p.axisValue,h,f)),h=$h(h,n,!0)}else if(nt(c)){var g=BF(function(e,i){e===this._ticket&&(u.setContent(i,l,t,d,a),this._updatePosition(t,a,r,o,u,n,s))},this);this._ticket=i,h=c(n,i,g)}u.setContent(h,l,t,d,a),u.show(t,d),this._updatePosition(t,a,r,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||et(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:et(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),c=t.get("align"),h=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),nt(e)&&(e=e([n,i],o,r.el,d,{viewSize:[s,l],contentSize:u.slice()})),et(e))n=jF(e[0],s),i=jF(e[1],l);else if(at(e)){var f=e;f.width=u[0],f.height=u[1];var p=ld(f,{width:s,height:l});n=p.x,i=p.y,c=null,h=null}else if(it(e)&&a){var g=function(t,e,n){var i=n[0],r=n[1],o=0,a=0,s=e.width,l=e.height;switch(t){case"inside":o=e.x+s/2-i/2,a=e.y+l/2-r/2;break;case"top":o=e.x+s/2-i/2,a=e.y-r-10;break;case"bottom":o=e.x+s/2-i/2,a=e.y+l+10;break;case"left":o=e.x-i-10-5,a=e.y+l/2-r/2;break;case"right":o=e.x+s+10+5,a=e.y+l/2-r/2}return[o,a]}(e,d,u);n=g[0],i=g[1]}else g=function(t,e,n,i,r,o,a){var s=n.getOuterSize(),l=s.width,u=s.height;return null!=o&&(t+l+o+2>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}(n,i,r,s,l,c?null:20,h?null:20),n=g[0],i=g[1];c&&(n-=YF(c)?u[0]/2:"right"===c?u[0]:0),h&&(i-=YF(h)?u[1]/2:"bottom"===h?u[1]:0),CF(t)&&(g=function(t,e,n,i,r){var o=n.getOuterSize(),a=o.width,s=o.height;return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,[t=Math.max(t,0),e=Math.max(e,0)]}(n,i,r,s,l),n=g[0],i=g[1]),r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t){var e=this._lastDataByCoordSys,n=!!e&&e.length===t.length;return n&&HF(e,function(e,i){var r=e.dataByAxis||[],o=(t[i]||{}).dataByAxis||[];(n=n&&r.length===o.length)&&HF(r,function(t,e){var i=o[e]||{},r=t.seriesDataIndices||[],a=i.seriesDataIndices||[];(n=n&&t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&r.length===a.length)&&HF(r,function(t,e){var i=a[e];n=n&&t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex})})}),this._lastDataByCoordSys=t,!!n},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){w.node||(this._tooltipContent.dispose(),jR("itemTooltip",e))},e.type="tooltip",e}(qp),XF=["rect","polygon","keep","clear"];function ZF(t,e){var n=Nr(t?t.brush:[]);if(n.length){var i=[];q(n,function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))});var r=t&&t.toolbox;et(r)&&(r=r[0]),r||(t.toolbox=[r={feature:{}}]);var o=r.feature||(r.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,i),function(t){var e={};q(t,function(t){e[t]=1}),t.length=0,q(e,function(e,n){t.push(n)})}(s),e&&!s.length&&s.push.apply(s,XF)}}var KF=q;function $F(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function QF(t,e,n){var i={};return KF(e,function(e){var r,o=i[e]=((r=function(){}).prototype.__hidden=r.prototype,new r);KF(t[e],function(t,i){if(wM.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),o[i]=new wM(r),"opacity"===i&&((r=F(r)).type="colorAlpha",o.__hidden.__alphaForOpacity=new wM(r))}})}),i}function JF(t,e,n){var i;q(n,function(t){e.hasOwnProperty(t)&&$F(e[t])&&(i=!0)}),i&&q(n,function(n){e.hasOwnProperty(n)&&$F(e[n])?t[n]=F(e[n]):delete t[n]})}var tV={lineX:eV(0),lineY:eV(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&Fv(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var r=t.x,o=t.y,a=t.width,s=t.height,l=i[0];return!!(Fv(i,r,o)||Fv(i,r+a,o)||Fv(i,r,o+s)||Fv(i,r+a,o+s)||Ei.create(t).contain(l[0],l[1])||Dc(r,o,r+a,o,i)||Dc(r,o,r,o+s,i)||Dc(r+a,o,r+a,o+s,i)||Dc(r,o+s,r+a,o+s,i))||void 0}}};function eV(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e)return nV(e[t],i.range)},rect:function(i,r,o){if(i){var a=o.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]e[0][1]&&(e[0][1]=o[0]),o[1]e[1][1]&&(e[1][1]=o[1])}return e&&cV(e)}};function cV(t){return new Ei(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var hV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,(this._brushController=new wD(e.getZr())).on("brush",J(this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},e.prototype.updateTransform=function(t,e,n,i){oV(e),this._updateController(t,e,n,i)},e.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},e.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},e.prototype._updateController=function(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:F(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:F(n),$from:e})},e.type="brush",e}(qp);function dV(t,e){return V({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new sh(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var fV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return m(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&JF(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=X(t,function(t){return dV(this.option,t)},this))},e.prototype.setBrushOption=function(t){this.brushOption=dV(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(md),pV=["rect","polygon","lineX","lineY","keep","clear"],gV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.render=function(t,e,n){var i,r,o;e.eachComponent({mainType:"brush"},function(t){i=t.brushType,r=t.brushOption.brushMode||"single",o=o||!!t.areas.length}),this._brushType=i,this._brushMode=r,q(t.get("type",!0),function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?o:e===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return q(t.get("type",!0),function(t){e[t]&&(n[t]=e[t])}),n},e.prototype.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},e.getDefaultOption=function(t){return{show:!0,type:pV.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocale(["toolbox","brush","title"])}},e}(PN),mV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return m(e,t),e.type="title",e.defaultOption={zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(md),vV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=gt(t.get("textBaseline"),t.get("textVerticalAlign")),l=new Vs({style:zc(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new Vs({style:zc(o,{text:c,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),f=t.get("sublink"),p=t.get("triggerEvent",!0);l.silent=!d&&!p,h.silent=!f&&!p,d&&l.on("click",function(){nd(d,"_"+t.get("target"))}),f&&h.on("click",function(){nd(f,"_"+t.get("subtarget"))}),zs(l).eventData=zs(h).eventData=p?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),c&&i.add(h);var g=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=g.width,m.height=g.height;var v=ld(m,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),i.x=v.x,i.y=v.y,i.markRedraw();var y={align:a,verticalAlign:s};l.setStyle(y),h.setStyle(y),g=i.getBoundingRect();var _=v.margin,b=t.getItemStyle(["color","opacity"]);b.fill=t.get("backgroundColor");var w=new Ms({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:t.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});i.add(w)}},e.type="title",e}(qp),yV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return m(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],i=e.axisType,r=this._names=[];"category"===i?(t=[],q(n,function(e,n){var i,o=Gr(zr(e),"");at(e)?(i=F(e)).value=n:i=n,t.push(i),r.push(o)})):t=n,(this._data=new hb([{name:"value",type:{category:"ordinal",time:"time",value:"number"}[i]||"number"}],this)).initData(t,r)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(md),_V=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="timeline.slider",e.defaultOption=ch(yV.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(yV);W(_V,Zf.prototype);var bV=_V,wV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="timeline",e}(qp),xV=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i)||this;return o.type=r||"value",o}return m(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(Ww),kV=Math.PI,SV=qr();function CV(t,e,n,i,r,o){var a=e.get("color");r?(r.setColor(a),n.add(r),o&&o.onUpdate(r)):((r=jm(t.get("symbol"),-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(r),o&&o.onCreate(r));var s=e.getItemStyle(["color"]);r.setStyle(s),i=V({rectHover:!0,z2:100},i,!0);var l=t.get("symbolSize");l=l instanceof Array?l.slice():[+l,+l],i.scaleX=l[0]/2,i.scaleY=l[1]/2;var u=t.get("symbolOffset");u&&(i.x=i.x||0,i.y=i.y||0,i.x+=dr(u[0],l[0]),i.y+=dr(u[1],l[1]));var c=t.get("symbolRotate");return i.rotation=(c||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function AV(t,e,n,i,r,o){if(!t.dragging){var a=r.getModel("checkpointStyle"),s=i.dataToCoord(r.getData().get("value",n));if(o||!a.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}var MV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,t);t.formatTooltip=function(t){return Sp("nameValue",{noName:!0,value:a.scale.getLabel({value:t})})},q(["AxisLine","AxisTick","Control","CurrentPointer"],function(e){this["_render"+e](i,r,a,t)},this),this._renderAxisLabel(i,o,a,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,i,r,o,a=t.get(["label","position"]),s=t.get("orient"),l=function(t,e){return ld(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e),u={horizontal:"center",vertical:(n=null==a||"auto"===a?"horizontal"===s?l.y+l.height/2=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:kV/2},d="vertical"===s?l.height:l.width,f=t.getModel("controlStyle"),p=f.get("show",!0),g=p?f.get("itemSize"):0,m=p?f.get("itemGap"):0,v=g+m,y=t.get(["label","rotate"])||0;y=y*kV/180;var _=f.get("position",!0),b=p&&f.get("showPlayBtn",!0),w=p&&f.get("showPrevBtn",!0),x=p&&f.get("showNextBtn",!0),k=0,S=d;"left"===_||"bottom"===_?(b&&(i=[0,0],k+=v),w&&(r=[k,0],k+=v),x&&(o=[S-g,0],S-=v)):(b&&(i=[S-g,0],S-=v),w&&(r=[0,0],k+=v),x&&(o=[S-g,0],S-=v));var C=[k,S];return t.get("inverse")&&C.reverse(),{viewRect:l,mainLength:d,orient:s,rotation:h[s],labelRotation:y,labelPosOpt:n,labelAlign:t.get(["label","align"])||u[s],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||c[s],playPosition:i,prevBtnPosition:r,nextBtnPosition:o,axisExtent:C,controlSize:g,controlGap:m}},e.prototype._position=function(t,e){var n=this._mainGroup,i=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var o=[1,0,0,1,0,0],a=r.x,s=r.y+r.height;li(o,o,[-a,-s]),ui(o,o,-kV/2),li(o,o,[a,s]),(r=r.clone()).applyTransform(o)}var l=m(r),u=m(n.getBoundingRect()),c=m(i.getBoundingRect()),h=[n.x,n.y],d=[i.x,i.y];d[0]=h[0]=l[0][0];var f,p=t.labelPosOpt;function g(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function m(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function v(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}null==p||it(p)?(v(h,u,l,1,f="+"===p?0:1),v(d,c,l,1,1-f)):(v(h,u,l,1,f=p>=0?0:1),d[1]=h[1]+p),n.setPosition(h),i.setPosition(d),n.rotation=i.rotation=t.rotation,g(n),g(i)},e.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType"),r=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Ob({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new iw({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new Lb}}(e,i);r.getTicks=function(){return n.mapArray(["value"],function(t){return{value:t}})};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.niceTicks();var a=new xV("value",r,t.axisExtent,i);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new tr;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new Ru({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:B({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new Ru({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:H({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],q(a,function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),h={x:a,y:0,onclick:J(r._changeTimeline,r,t.value)},d=CV(s,l,e,h);d.ensureState("emphasis").style=u.getItemStyle(),d.ensureState("progress").style=c.getItemStyle(),Al(d);var f=zs(d);s.get("tooltip")?(f.dataIndex=t.value,f.dataModel=i):f.dataIndex=f.dataModel=null,r._tickSymbols.push(d)})},e.prototype._renderAxisLabel=function(t,e,n,i){var r=this;if(n.getLabelModel().get("show")){var o=i.getData(),a=n.getViewLabels();this._tickLabels=[],q(a,function(i){var a=i.tickValue,s=o.getItemModel(a),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),h=n.dataToCoord(i.tickValue),d=new Vs({x:h,y:0,rotation:t.labelRotation-t.rotation,onclick:J(r._changeTimeline,r,a),silent:!1,style:zc(l,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});d.ensureState("emphasis").style=zc(u),d.ensureState("progress").style=zc(c),e.add(d),Al(d),SV(d).dataIndex=a,r._tickLabels.push(d)})}},e.prototype._renderControl=function(t,e,n,i){var r=t.controlSize,o=t.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function c(t,n,l,u){if(t){var c=Bi(gt(i.get(["controlStyle",n+"BtnSize"]),r),r),h=function(t,e,n,i){var r=i.style,o=Tc(t.get(["controlStyle",e]),i||{},new Ei(n[0],n[1],n[2],n[3]));return r&&o.setStyle(r),o}(i,n+"Icon",[0,-c/2,c,c],{x:t[0],y:t[1],originX:r/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});h.ensureState("emphasis").style=s,e.add(h),Al(h)}}c(t.nextBtnPosition,"next",J(this._changeTimeline,this,u?"-":"+")),c(t.prevBtnPosition,"prev",J(this._changeTimeline,this,u?"+":"-")),c(t.playPosition,l?"stop":"play",J(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this;this._currentPointer=CV(a,a,this._mainGroup,{},this._currentPointer,{onCreate:function(t){t.draggable=!0,t.drift=J(s._handlePointerDrag,s),t.ondragend=J(s._handlePointerDragend,s),AV(t,s._progressLine,o,n,i,!0)},onUpdate:function(t){AV(t,s._progressLine,o,n,i)}})},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],i=pr(this._axis.getExtent().slice());n>i[1]&&(n=i[1]),n=0&&(a[o]=+a[o].toFixed(h)),[a,c]}var VV={min:tt(FV,"min"),max:tt(FV,"max"),average:tt(FV,"average"),median:tt(FV,"median")};function zV(t,e){var n=t.getData(),i=t.coordinateSystem;if(e&&!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!et(e.coord)&&i){var r=i.dimensions,o=BV(e,n,i,t);if((e=F(e)).type&&VV[e.type]&&o.baseAxis&&o.valueAxis){var a=G(r,o.baseAxis.dim),s=G(r,o.valueAxis.dim),l=VV[e.type](n,o.baseDataDim,o.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else{for(var u=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],c=0;c<2;c++)VV[u[c]]&&(u[c]=GV(n,n.mapDimension(r[c]),u[c]));e.coord=u}}return e}function BV(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(function(t,e){var n=t.getData(),i=n.dimensions;e=n.getDimension(e);for(var r=0;r=0&&"number"==typeof l&&(l=+l.toFixed(Math.min(p,20))),d.coord[c]=f.coord[c]=l,r=[d,f,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var g=[zV(t,r[0]),zV(t,r[1]),B({},r[2])];return g[2].type=g[2].type||null,V(g[2],g[0]),V(g[2],g[1]),g};function $V(t){return!isNaN(t)&&!isFinite(t)}function QV(t,e,n,i){var r=1-t,o=i.dimensions[t];return $V(e[r])&&$V(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function JV(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(QV(1,n,i,t)||QV(0,n,i,t)))return!0}return HV(t,e[0])&&HV(t,e[1])}function tz(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=dr(s.get("x"),r.getWidth()),u=dr(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=t.get((d=a.dimensions)[0],e),h=t.get(d[1],e);o=a.dataToPoint([c,h])}if(yk(a,"cartesian2d")){var d,f=a.getAxis("x"),p=a.getAxis("y");$V(t.get((d=a.dimensions)[0],e))?o[0]=f.toGlobalCoord(f.getExtent()[n?0:1]):$V(t.get(d[1],e))&&(o[1]=p.toGlobalCoord(p.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}var ez=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=LV.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),r=ZV(e).from,o=ZV(e).to;r.each(function(e){tz(r,e,!0,t,n),tz(o,e,!1,t,n)}),i.each(function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap.get(t.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new AI);this.group.add(l.group);var u=function(t,e,n){var i;i=t?X(t&&t.dimensions,function(t){return H({name:t},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{})}):[{name:"value",type:"float"}];var r=new hb(i,n),o=new hb(i,n),a=new hb([],n),s=X(n.get("data"),tt(KV,e,t,n));t&&(s=K(s,tt(JV,t)));var l=t?jV:function(t){return t.value};return r.initData(X(s,function(t){return t[0]}),null,l),o.initData(X(s,function(t){return t[1]}),null,l),a.initData(X(s,function(t){return t[2]})),a.hasItemOption=!0,{from:r,to:o,line:a}}(r,t,e),c=u.from,h=u.to,d=u.line;ZV(e).from=c,ZV(e).to=h,e.setData(d);var f=e.get("symbol"),p=e.get("symbolSize"),g=e.get("symbolRotate"),m=e.get("symbolOffset");function v(e,n,r){var o=e.getItemModel(n);tz(e,n,r,t,i);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Yg(a,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:gt(o.get("symbolOffset"),m[r?0:1]),symbolRotate:gt(o.get("symbolRotate",!0),g[r?0:1]),symbolSize:gt(o.get("symbolSize"),p[r?0:1]),symbol:gt(o.get("symbol",!0),f[r?0:1]),style:s})}et(f)||(f=[f,f]),et(p)||(p=[p,p]),et(g)||(g=[g,g]),et(m)||(m=[m,m]),u.from.each(function(t){v(c,t,!0),v(h,t,!1)}),d.each(function(t){var e=d.getItemModel(t).getModel("lineStyle").getLineStyle();d.setItemLayout(t,[c.getItemLayout(t),h.getItemLayout(t)]),null==e.stroke&&(e.stroke=c.getItemVisual(t,"style").fill),d.setItemVisual(t,{fromSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(t,"symbolOffset"),fromSymbolRotate:c.getItemVisual(t,"symbolRotate"),fromSymbolSize:c.getItemVisual(t,"symbolSize"),fromSymbol:c.getItemVisual(t,"symbol"),toSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(t,"symbolOffset"),toSymbolRotate:h.getItemVisual(t,"symbolRotate"),toSymbolSize:h.getItemVisual(t,"symbolSize"),toSymbol:h.getItemVisual(t,"symbol"),style:e})}),l.updateData(d),u.line.eachItemGraphicEl(function(t,n){t.traverse(function(t){zs(t).dataModel=e})}),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(WV),nz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markArea",e.defaultOption={zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(LV),iz=qr(),rz=function(t,e,n,i){var r=zV(t,i[0]),o=zV(t,i[1]),a=r.coord,s=o.coord;a[0]=pt(a[0],-1/0),a[1]=pt(a[1],-1/0),s[0]=pt(s[0],1/0),s[1]=pt(s[1],1/0);var l=z([{},r,o]);return l.coord=[r.coord,o.coord],l.x0=r.x,l.y0=r.y,l.x1=o.x,l.y1=o.y,l};function oz(t){return!isNaN(t)&&!isFinite(t)}function az(t,e,n,i){var r=1-t;return oz(e[r])&&oz(n[r])}function sz(t,e){var n=e.coord[0],i=e.coord[1];return!!(yk(t,"cartesian2d")&&n&&i&&(az(1,n,i)||az(0,n,i)))||HV(t,{coord:n,x:e.x0,y:e.y0})||HV(t,{coord:i,x:e.x1,y:e.y1})}function lz(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=dr(s.get(n[0]),r.getWidth()),u=dr(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(n,e));else{var c=[f=t.get(n[0],e),p=t.get(n[1],e)];a.clampData&&a.clampData(c,c),o=a.dataToPoint(c,!0)}if(yk(a,"cartesian2d")){var h=a.getAxis("x"),d=a.getAxis("y"),f=t.get(n[0],e),p=t.get(n[1],e);oz(f)?o[0]=h.toGlobalCoord(h.getExtent()["x0"===n[0]?0:1]):oz(p)&&(o[1]=d.toGlobalCoord(d.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var uz=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],cz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=LV.getMarkerModelFromSeries(t,"markArea");if(e){var i=e.getData();i.each(function(e){var r=X(uz,function(r){return lz(i,e,r,t,n)});i.setItemLayout(e,r),i.getItemGraphicEl(e).setShape("points",r)})}},this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new tr});this.group.add(l.group),this.markKeep(l);var u=function(t,e,n){var i,r;t?(i=X(t&&t.dimensions,function(t){var n=e.getData();return H({name:t},n.getDimensionInfo(n.mapDimension(t))||{})}),r=new hb(X(["x0","y0","x1","y1"],function(t,e){return{name:t,type:i[e%2].type}}),n)):r=new hb(i=[{name:"value",type:"float"}],n);var o=X(n.get("data"),tt(rz,e,t,n));return t&&(o=K(o,tt(sz,t))),r.initData(o,null,t?function(t,e,n,i){return t.coord[Math.floor(i/2)][i%2]}:function(t){return t.value}),r.hasItemOption=!0,r}(r,t,e);e.setData(u),u.each(function(e){var n=X(uz,function(n){return lz(u,e,n,t,i)}),o=r.getAxis("x").scale,s=r.getAxis("y").scale,l=o.getExtent(),c=s.getExtent(),h=[o.parse(u.get("x0",e)),o.parse(u.get("x1",e))],d=[s.parse(u.get("y0",e)),s.parse(u.get("y1",e))];pr(h),pr(d),u.setItemLayout(e,{points:n,allClipped:!!(l[0]>h[1]||l[1]d[1]||c[1]=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",decal:"inherit",shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit",shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(md),dz=tt,fz=q,pz=tr;function gz(t,e,n,i){yz(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),vz(t,e,n,i)}function mz(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;i0?2:0:u[h]=g}var d=e.getModel("lineStyle"),f=th.concat([["inactiveColor"],["inactiveWidth"]]),p={};for(c=0;c0?2:0:p[h]=g}if("auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===p.stroke&&(p.stroke=r.fill),!a){var m=e.get("inactiveBorderWidth"),v=u[t.indexOf("empty")>-1?"fill":"stroke"];u.lineWidth="auto"===m?r.lineWidth>0&&v?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=n.get("inactiveColor"),p.lineWidth=n.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}(l=y||l||"roundRect",i,r.getModel("lineStyle"),a,s,f,m),b=new pz,w=i.getModel("textStyle");if("function"!=typeof t.getLegendIcon||y&&"inherit"!==y){var x="inherit"===y&&t.getData().getVisual("symbol")?"inherit"===v?t.getData().getVisual("symbolRotate"):v:0;b.add(((d=jm(h=(c={itemWidth:p,itemHeight:g,icon:l,iconRotate:x,itemStyle:_.itemStyle,lineStyle:_.lineStyle}).icon||"roundRect",0,0,c.itemWidth,c.itemHeight,c.itemStyle.fill)).setStyle(c.itemStyle),d.rotation=(c.iconRotate||0)*Math.PI/180,d.setOrigin([c.itemWidth/2,c.itemHeight/2]),h.indexOf("empty")>-1&&(d.style.stroke=d.style.fill,d.style.fill="#fff",d.style.lineWidth=2),d))}else b.add(t.getLegendIcon({itemWidth:p,itemHeight:g,icon:l,iconRotate:v,itemStyle:_.itemStyle,lineStyle:_.lineStyle}));var k="left"===o?p+5:-5,S=o,C=r.get("formatter"),A=e;"string"==typeof C&&C?A=C.replace("{name}",null!=e?e:""):"function"==typeof C&&(A=C(e));var M=i.get("inactiveColor");b.add(new Vs({style:zc(w,{text:A,x:k,y:g/2,fill:m?w.getTextColor():M,align:S,verticalAlign:"middle"})}));var I=new Ms({shape:b.getBoundingRect(),invisible:!0}),T=i.getModel("tooltip");return T.get("show")&&Pc({el:I,componentModel:r,itemName:e,itemTooltipOption:T.option}),b.add(I),b.eachChild(function(t){t.silent=!0}),I.silent=!u,this.getContentGroup().add(b),Al(b),b.__legendDataIndex=n,b},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();sd(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){sd("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),f=t.getOrient().index,p=0===f?"width":"height",g=0===f?"height":"width",m=0===f?"y":"x";"end"===o?h[f]+=l[p]+d:u[f]+=c[p]+d,h[1-f]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var v={x:0,y:0};return v[p]=l[p]+d+c[p],v[g]=Math.max(l[g],c[g]),v[m]=Math.min(0,c[m]+h[1-f]),v}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(qp);function bz(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var n=0;nn[r],p=[-h.x,-h.y];e||(p[i]=l[s]);var g=[0,0],m=[-d.x,-d.y],v=gt(t.get("pageButtonGap",!0),t.get("itemGap",!0));f&&("end"===t.get("pageButtonPosition",!0)?m[i]+=n[r]-d[r]:g[i]+=d[r]+v),m[1-i]+=h[o]/2-d[o]/2,l.setPosition(p),u.setPosition(g),c.setPosition(m);var y={x:0,y:0};if(y[r]=f?n[r]:h[r],y[o]=Math.max(h[o],d[o]),y[a]=Math.min(0,d[a]+m[1-i]),u.__rectSize=n[r],f){var _={x:0,y:0};_[r]=Math.max(n[r]-d[r]-v,0),_[o]=y[o],u.setClipPath(new Ms({shape:_})),u.__rectSize=_[r]}else c.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(t);return null!=b.pageIndex&&mc(l,{x:b.contentPosition[0],y:b.contentPosition[1]},f?t:null),this._updatePageInfoView(t,b),y},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;q(["pagePrev","pageNext"],function(i){var r=null!=e[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",t.get(r?"pageIconColor":"pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")});var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",it(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=Az[r],a=Mz[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var f=y(u);d.contentPosition[r]=-f.s;for(var p=s+1,g=f,m=f,v=null;p<=c;++p)(!(v=y(l[p]))&&m.e>g.s+i||v&&!_(v,g.s))&&(g=m.i>g.i?m:v)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),m=v;for(p=s-1,g=f,m=f,v=null;p>=-1;--p)(v=y(l[p]))&&_(m,v.s)||!(g.i=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild(function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)}),null!=e?e:n):0;var e,n},e.type="legend.scroll",e}(_z);function Tz(t){R_(xz),t.registerComponentModel(Sz),t.registerComponentView(Iz),function(t){t.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})})}(t)}var Dz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="dataZoom.inside",e.defaultOption=ch(xN.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(xN),Ez=qr();function Oz(t,e,n){Ez(t).coordSysRecordMap.each(function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)})}function Pz(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function Rz(t,e){t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function Lz(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}var Nz=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return m(e,t),e.prototype.render=function(e,n,i){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),Oz(i,e,{pan:J(Fz.pan,this),zoom:J(Fz.zoom,this),scrollMove:J(Fz.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var n=Ez(t).coordSysRecordMap,i=n.keys(),r=0;r0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return _T(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:Vz(function(t,e,n,i,r,o){var a=zz[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength}),scrollMove:Vz(function(t,e,n,i,r,o){return zz[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n).signal*(t[1]-t[0])*o.scrollDelta})};function Vz(t){return function(e,n,i,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s)return _T(t(a,s,e,n,i,r),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}var zz={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},Bz=Nz;function Hz(t){EN(t),t.registerComponentModel(Dz),t.registerComponentView(Bz),function(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=Ez(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=Ct());i.each(function(t){t.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(t){q(_N(t).infoList,function(n){var r=n.model.uid,o=i.get(r)||i.set(r,function(t,e){var n={model:e,containsPoint:tt(Lz,e),dispatchAction:tt(Rz,t),dataZoomInfoMap:null,controller:null},i=n.controller=new TC(t.getZr());return q(["pan","zoom","scrollMove"],function(t){i.on(t,function(e){var i=[];n.dataZoomInfoMap.each(function(r){if(e.isAvailableBehavior(r.model.option)){var o=(r.getRange||{})[t],a=o&&o(r.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!r.model.get("disabled",!0)&&a&&i.push({dataZoomId:r.model.id,start:a[0],end:a[1]})}}),i.length&&n.dispatchAction(i)})}),n}(e,n.model));(o.dataZoomInfoMap||(o.dataZoomInfoMap=Ct())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})})}),i.each(function(t){var e,n=t.controller,r=t.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(e=r.get(o))}if(e){var a=function(t){var e,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return t.each(function(t){var o=t.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");i[n+a]>i[n+e]&&(e=a),r=r&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}(r);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),lg(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else Pz(i,t)})})}(t)}var jz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=ch(xN.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(xN),Gz=Ms,Uz="horizontal",Wz="vertical",Yz=["line","bar","candlestick","scatter"],qz={easing:"cubicOut",duration:100};function Xz(t){return"vertical"===t?"ns-resize":"ew-resize"}var Zz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return m(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=J(this._onBrush,this),this._onBrushEnd=J(this._onBrushEnd,this)},e.prototype.render=function(e,n,i,r){if(t.prototype.render.apply(this,arguments),lg(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){var t;(t=this._dispatchZoomAction)&&t[rg]&&(this._dispatchZoomAction=t[rg]);var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new tr;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,i=this._findCoordRect(),r={width:e.getWidth(),height:e.getHeight()},o=this._orient===Uz?{right:r.width-i.x-i.width,top:r.height-30-7-n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},a=dd(t.option);q(["right","top","width","height"],function(t){"ph"===a[t]&&(a[t]=o[t])});var s=ld(a,r);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===Wz&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==Uz||r?n===Uz&&r?{scaleY:a?1:-1,scaleX:-1}:n!==Wz||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new Gz({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new Gz({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:J(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(r)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=t.series,i=n.getRawData(),r=n.getShadowDim?n.getShadowDim():t.otherDim;if(null!=r){var o=i.getDataExtent(r),a=.3*(o[1]-o[0]);o=[o[0]-a,o[1]+a];var s,l=[0,e[1]],u=[[e[0],0],[0,0]],c=[],h=e[0]/(i.count()-1),d=0,f=Math.round(i.count()/e[0]);i.each([r],function(t,e){if(f>0&&e%f)d+=h;else{var n=null==t||isNaN(t)||""===t,i=n?0:hr(t,o,l,!0);n&&!s&&e?(u.push([u[u.length-1][0],0]),c.push([c[c.length-1][0],0])):!n&&s&&(u.push([d,0]),c.push([d,0])),u.push([d,i]),c.push([d,i]),d+=h,s=n}});for(var p=this.dataZoomModel,g=0;g<3;g++){var m=v(1===g);this._displayables.sliderGroup.add(m),this._displayables.dataShadowSegs.push(m)}}}function v(t){var e=p.getModel(t?"selectedDataBackground":"dataBackground"),n=new tr,i=new Mu({shape:{points:u},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new Du({shape:{points:c},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,i=this.ecModel;return t.eachTargetAxis(function(r,o){q(t.getAxisProxy(r,o).getTargetSeriesModels(),function(t){if(!(n||!0!==e&&G(Yz,t.get("type"))<0)){var a,s=i.getComponent(yN(r),o).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[r],u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:r,otherDim:l,otherAxisInverse:a}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=e.filler=new Gz({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(c),r.add(new Gz({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),q([0,1],function(e){var o=a.get("handleIcon");!zm[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=jm(o,-1,0,2,2,null,!0);s.attr({cursor:Xz(this._orient),draggable:!0,drift:J(this._onDragMove,this,e),ondragend:J(this._onDragEnd,this),onmouseover:J(this._showDataInfo,this,!0),onmouseout:J(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=dr(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),Al(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),r.add(n[e]=s);var h=a.getModel("textStyle");t.add(i[e]=new Vs({silent:!0,invisible:!0,style:zc(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))},this);var h=c;if(u){var d=dr(a.get("moveHandleSize"),o[1]),f=e.moveHandle=new Ms({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:d}}),p=.8*d,g=e.moveHandleIcon=jm(a.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);g.silent=!0,g.y=o[1]+d/2-.5,f.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(o[1]/2,Math.max(d,10));(h=e.moveZone=new Ms({invisible:!0,shape:{y:o[1]-m,height:d+m}})).on("mouseover",function(){s.enterEmphasis(f)}).on("mouseout",function(){s.leaveEmphasis(f)}),r.add(f),r.add(g),r.add(h)}h.attr({draggable:!0,cursor:Xz(this._orient),drift:J(this._onDragMove,this,"all"),ondragstart:J(this._showDataInfo,this,!0),ondragend:J(this._onDragEnd,this),onmouseover:J(this._showDataInfo,this,!0),onmouseout:J(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[hr(t[0],[0,100],e,!0),hr(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];_T(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?hr(o.minSpan,a,r,!0):null,null!=o.maxSpan?hr(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=pr([hr(i[0],r,a,!0),hr(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=pr(n.slice()),r=this._size;q([0,1],function(t){var i=this._handleHeight;e.handles[t].attr({scaleX:i/2,scaleY:i/2,x:n[t]+(t?-1:1),y:r[1]/2-i/2})},this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;le[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=this._updateInterval("all",n[0]-(i[0]+i[1])/2);this._updateView(),r&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){this._brushStart=new xi(t.offsetX,t.offsetY),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),r=[0,100];this._range=pr([hr(n.x,i,r,!0),hr(n.x+n.width,i,r,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(be(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=n.brushRect;i||(i=n.brushRect=new Gz({silent:!0,style:this.dataZoomModel.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(i)),i.attr("ignore",!1);var r=this._brushStart,o=this._displayables.sliderGroup,a=o.transformCoordToLocal(t,e),s=o.transformCoordToLocal(r.x,r.y),l=this._size;a[0]=Math.max(Math.min(l[0],a[0]),0),i.setShape({x:s[0],y:0,width:a[0]-s[0],height:l[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?qz:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=_N(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),r=this.api.getHeight();t={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return t},e.type="dataZoom.slider",e}(SN);function Kz(t){t.registerComponentModel(jz),t.registerComponentView(Zz),EN(t)}var $z={get:function(t,e,n){var i=F((Qz[t]||{})[e]);return n&&et(i)?i[i.length-1]:i}},Qz={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},Jz=$z,tB=wM.mapVisual,eB=wM.eachVisual,nB=et,iB=q,rB=pr,oB=hr,aB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return m(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;w.canvasSupported||(n.realtime=!1),!e&&JF(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=J(t,this),this.controllerVisuals=QF(this.option.controller,e,t),this.targetVisuals=QF(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries(function(t,n){e.push(n)}):e=Nr(t),e},e.prototype.eachTargetSeries=function(t,e){q(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)},this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries(function(n){n===t&&(e=!0)}),e},e.prototype.formatValueText=function(t,e,n){var i,r=this.option,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],et(t)&&(t=t.slice(),i=!0);var l=e?t:i?[u(t[0]),u(t[1])]:u(t);return it(s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):nt(s)?i?s(t[0],t[1]):s(t):i?t[0]===a[0]?n[0]+" "+l[1]:t[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,e=rB([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimension=function(t){var e=this.option.dimension;if(null!=e||t.dimensions.length){if(null!=e)return t.getDimension(e);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var r=n[i];if(!t.getDimensionInfo(r).isCalculationCoord)return r}}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),r=e.controller||(e.controller={});V(i,n),V(r,n);var o=this.isCategory();function a(n){nB(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}a.call(this,i),a.call(this,r),(function(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},iB(i,function(t,e){if(wM.isValidType(e)){var n=Jz.get(e,"inactive",o);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}}))}).call(this,i,"inRange","outOfRange"),(function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol()||"roundRect";iB(this.stateList,function(a){var s=this.itemSize,l=t[a];l||(l=t[a]={color:o?i:[i]}),null==l.symbol&&(l.symbol=e&&F(e)||(o?r:[r])),null==l.symbolSize&&(l.symbolSize=n&&F(n)||(o?s[0]:[s[0],s[0]])),l.symbol=tB(l.symbol,function(t){return"none"===t?r:t});var u=l.symbolSize;if(null!=u){var c=-1/0;eB(u,function(t){t>c&&(c=t)}),l.symbolSize=tB(u,function(t){return oB(t,[0,c],[0,s[0]],!0)})}},this)}).call(this,r)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(md),sB=[20,140];function lB(t,e,n){if(n[0]===n[1])return n.slice();for(var i=(n[1]-n[0])/200,r=n[0],o=[],a=0;a<=200&&re[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),q(this.stateList,function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=pr((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries(function(n){var i=[],r=n.getData();r.each(this.getDataDimension(r),function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)},this),e.push({seriesId:n.id,dataIndex:i})},this),e},e.prototype.getVisualMeta=function(t){var e=lB(0,0,this.getExtent()),n=lB(0,0,this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;at[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:r/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new tr("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent();gB([0,1],function(l){var u=r[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var c=pB(t[l],[0,a[1]],s,!0),h=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=h/a[0],u.x=a[0]-h/2;var d=kc(n.handleLabelPoints[l],xc(u,this.group));o[l].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,e,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),h=this.getControllerVisual(t,"symbolSize"),d=pB(t,o,s,!0),f=a[0]-h/2,p={x:u.x,y:u.y};u.y=d,u.x=f;var g=kc(l.indicatorLabelPoint,xc(u,this.group)),m=l.indicatorLabel;m.attr("invisible",!1);var v=this._applyTransform("left",l.mainGroup),y="horizontal"===this._orient;m.setStyle({text:(n||"")+r.formatValueText(e),verticalAlign:y?v:"middle",align:y?"center":v});var _={x:f,y:d,style:{fill:c}},b={style:{x:g[0],y:g[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var w={duration:100,easing:"cubicInOut",additive:!0};u.x=p.x,u.y=p.y,u.animateTo(_,w),m.animateTo(b,w)}else u.attr(_),m.attr(b);this._firstShowIndicator=!1;var x=this._shapes.handleLabels;if(x)for(var k=0;ki[1]&&(l[1]=1/0),e&&(l[0]===-1/0?this._showIndicator(s,l[1],"< ",o):l[1]===1/0?this._showIndicator(s,l[0],"> ",o):this._showIndicator(s,s,"\u2248 ",o));var u=this._hoverLinkDataIndices,c=[];(e||_B(n))&&(c=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var h=function(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[o(n),o(i)];function r(t,e,n){for(var i=0,r=t.length;i0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"}),t.registerAction(xB,kB),q(SB,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(MB))}function EB(t){t.registerComponentModel(uB),t.registerComponentView(wB),DB(t)}var OB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return m(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],PB[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var r=this.option.categories;this.resetVisual(function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=F(r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=X(this._pieceList,function(t){return t=F(t),"inRange"!==e&&(t.visual=null),t}))})},e.prototype.completeVisualOption=function(){var e=this.option,n={},i=wM.listVisualTypes(),r=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}q(e.pieces,function(t){q(i,function(e){t.hasOwnProperty(e)&&(n[e]=1)})}),q(n,function(t,n){var i=!1;q(this.stateList,function(t){i=i||o(e,t,n)||o(e.target,t,n)},this),!i&&q(this.stateList,function(t){(e[t]||(e[t]={}))[n]=Jz.get(n,"inRange"===t?"active":"inactive",r)})},this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,r=(e?n:t).selected||{};if(n.selected=r,q(i,function(t,e){var n=this.getSelectedMapKey(t);r.hasOwnProperty(n)||(r[n]=!0)},this),"single"===n.selectedMode){var o=!1;q(i,function(t,e){var n=this.getSelectedMapKey(t);r[n]&&(o?r[n]=!1:o=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=F(t)},e.prototype.getValueState=function(t){var e=wM.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries(function(i){var r=[],o=i.getData();o.each(this.getDataDimension(o),function(e,i){wM.findPieceIndex(e,n)===t&&r.push(i)},this),e.push({seriesId:i.id,dataIndex:r})},this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),(o=r[r.length-1].interval[1])!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return q(r,function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],"outOfRange"),s(e.slice()),a=e[1])},this),{stops:e,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=t(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=ch(aB.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(aB),PB={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;for(var o=(i[1]-i[0])/r;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a","\u2265"][e[0]]])},this)}};function RB(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var LB=OB,NB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,c=pt(e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,c,a),q(l.viewPieceList,function(i){var l=i.piece,u=new tr;u.onclick=J(this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var h=e.getRepresentValue(l);if(this._createItemSymbol(u,h,[0,0,s[0],s[1]]),c){var d=this.visualMapModel.getValueState(h);u.add(new Vs({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===d?.5:1}}))}t.add(u)},this),u&&this._renderEndsText(t,u[1],s,c,a),sd(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:fB(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return dB(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,i,r){if(e){var o=new tr,a=this.visualMapModel.textStyleModel;o.add(new Vs({style:{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:e,font:a.getFont(),fill:a.getTextColor()}})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=X(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),n=t.get("text"),i=t.get("orient"),r=t.get("inverse");return("horizontal"===i?r:!r)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n){t.add(jm(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=F(n.selected),r=e.getSelectedMapKey(t);"single"===n.selectedMode?(i[r]=!0,q(i,function(t,e){i[e]=e===r})):i[r]=!i[r],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})},e.type="visualMap.piecewise",e}(cB);function FB(t){t.registerComponentModel(LB),t.registerComponentView(NB),DB(t)}var VB={label:{enabled:!0},decal:{show:!1}},zB=qr(),BB={};function HB(t,e){var n=t.getModel("aria");if(n.get("enabled")){var i=F(VB);V(i.label,t.getLocaleModel().get("aria"),!1),V(n.option,i,!1),function(){if(n.getModel("decal").get("show")){var e=Ct();t.eachSeries(function(t){if(t.useColorPaletteOnData){var n=e.get(t.type);n||e.set(t.type,n={}),zB(t).scope=n}}),t.eachRawSeries(function(e){if(!t.isSeriesFiltered(e))if("function"!=typeof e.enableAriaDecal){var n=e.getData();if(e.useColorPaletteOnData){var i=e.getRawData(),r={},o=zB(e).scope;n.each(function(t){var e=n.getRawIndex(t);r[e]=t});var a=i.count();i.each(function(t){var s=r[t],l=i.getName(t)||t+"",c=jd(e.ecModel,l,o,a),h=n.getItemVisual(s,"decal");n.setItemVisual(s,"decal",u(h,c))})}else{var s=jd(e.ecModel,e.name,BB,t.getSeriesCount()),l=n.getVisual("decal");n.setVisual("decal",u(l,s))}}else e.enableAriaDecal();function u(t,e){var n=t?B(B({},e),t):e;return n.dirty=!0,n}})}}(),function(){var i=t.getLocaleModel().get("aria"),o=n.getModel("label");if(o.option=H(o.option,i),o.get("enabled")){var a=e.getZr().dom;if(o.get("description"))a.setAttribute("aria-label",o.get("description"));else{var s,l=t.getSeriesCount(),u=o.get(["data","maxCount"])||10,c=o.get(["series","maxCount"])||10,h=Math.min(l,c);if(!(l<1)){var d=function(){var e=t.get("title");return e&&e.length&&(e=e[0]),e&&e.text}();s=d?r(o.get(["general","withTitle"]),{title:d}):o.get(["general","withoutTitle"]);var f=[];s+=r(o.get(l>1?["series","multiple","prefix"]:["series","single","prefix"]),{seriesCount:l}),t.eachSeries(function(e,n){if(n1?["series","multiple",a]:["series","single",a]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(_=e.subType,t.getLocaleModel().get(["series","typeNames"])[_]||"\u81ea\u5b9a\u4e49\u56fe")});var s=e.getData();s.count()>u?i+=r(o.get(["data","partialData"]),{displayCnt:u}):i+=o.get(["data","allData"]);for(var c=[],d=0;d":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},UB=function(){function t(t){null==(this._condVal=it(t)?new RegExp(t):dt(t)?t:null)&&tp("")}return t.prototype.evaluate=function(t){var e=typeof t;return"string"===e?this._condVal.test(t):"number"===e&&this._condVal.test(t+"")},t}(),WB=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),YB=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e=200&&e.status<=299}function r(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var o=e.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=e.saveAs||("object"!=typeof window||window!==e?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(t,o,a){var s=e.URL||e.webkitURL,l=document.createElement("a");l.download=o=o||t.name||"download",l.rel="noopener","string"==typeof t?(l.href=t,l.origin!==location.origin?i(l.href)?n(t,o,a):r(l,l.target="_blank"):r(l)):(l.href=s.createObjectURL(t),setTimeout(function(){s.revokeObjectURL(l.href)},4e4),setTimeout(function(){r(l)},0))}:"msSaveOrOpenBlob"in navigator?function(t,e,o){if(e=e||t.name||"download","string"==typeof t)if(i(t))n(t,e,o);else{var a=document.createElement("a");a.href=t,a.target="_blank",setTimeout(function(){r(a)})}else navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}(t,o),e)}:function(t,i,r,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof t)return n(t,i,r);var s="application/octet-stream"===t.type,l=/constructor/i.test(e.HTMLElement)||e.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||s&&l||o)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=t:location=t,a=null},c.readAsDataURL(t)}else{var h=e.URL||e.webkitURL,d=h.createObjectURL(t);a?a.location=d:location.href=d,a=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});e.saveAs=a.saveAs=a,t.exports=a},5579:function(t){var e=function(t){"use strict";var e,n=Object.prototype,i=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(E){l=function(t,e,n){return t[e]=n}}function u(t,e,n,i){var r=Object.create((e&&e.prototype instanceof m?e:m).prototype),o=new I(i||[]);return r._invoke=function(t,e,n){var i=h;return function(r,o){if(i===f)throw new Error("Generator is already running");if(i===p){if("throw"===r)throw o;return D()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=f;var l=c(t,e,n);if("normal"===l.type){if(i=n.done?p:d,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=p,n.method="throw",n.arg=l.arg)}}}(t,n,o),r}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(E){return{type:"throw",arg:E}}}t.wrap=u;var h="suspendedStart",d="suspendedYield",f="executing",p="completed",g={};function m(){}function v(){}function y(){}var _={};_[o]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(T([])));w&&w!==n&&i.call(w,o)&&(_=w);var x=y.prototype=m.prototype=Object.create(_);function k(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function S(t,e){function n(r,o,a,s){var l=c(t[r],t,o);if("throw"!==l.type){var u=l.arg,h=u.value;return h&&"object"==typeof h&&i.call(h,"__await")?e.resolve(h.__await).then(function(t){n("next",t,a,s)},function(t){n("throw",t,a,s)}):e.resolve(h).then(function(t){u.value=t,a(u)},function(t){return n("throw",t,a,s)})}s(l.arg)}var r;this._invoke=function(t,i){function o(){return new e(function(e,r){n(t,i,e,r)})}return r=r?r.then(o,o):o()}}function C(t,n){var i=t.iterator[n.method];if(i===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,C(t,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=c(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function A(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function M(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function T(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function n(){for(;++r=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),M(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;M(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:T(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}(t.exports);try{regeneratorRuntime=e}catch(n){Function("r","regeneratorRuntime = r")(e)}},6262:function(t,e,n){"use strict";function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function r(t,e,n){return(r="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=i(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function o(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);a=!0);}catch(l){s=!0,r=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(t,e)||m(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t){return function(t){if(Array.isArray(t))return g(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||m(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function w(t,e,n){return(w=c()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var r=new(Function.bind.apply(t,i));return n&&l(r,n.prototype),r}).apply(null,arguments)}function x(t){var e="function"==typeof Map?new Map:void 0;return(x=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return w(t,arguments,i(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,t)})(t)}var k=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}();function S(t){return null!==t&&"object"==typeof t}function C(t){return"function"==typeof t}var A=function(){function t(t){return Error.call(this),this.message=t?"".concat(t.length," errors occurred during unsubscription:\n").concat(t.map(function(t,e){return"".concat(e+1,") ").concat(t.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),M=function(){var t=function(){function t(e){s(this,t),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return a(t,[{key:"unsubscribe",value:function(){var e;if(!this.closed){var n=this._parentOrParents,i=this._ctorUnsubscribe,r=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var a=0;a2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof e?function(i){return i.pipe(st(function(n,i){return it(t(n,i)).pipe(q(function(t,r){return e(n,t,i,r)}))},n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new lt(t,n))})}var lt=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;s(this,t),this.project=e,this.concurrent=n}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new ut(t,this.project,this.concurrent))}}]),t}(),ut=function(t){u(n,t);var e=p(n);function n(t,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return s(this,n),(r=e.call(this,t)).project=i,r.concurrent=o,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return a(n,[{key:"_next",value:function(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(ot);function ct(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return st(F,t)}function ht(t,e){return e?nt(t,e):new z(K(t))}function dt(){for(var t=Number.POSITIVE_INFINITY,e=null,n=arguments.length,i=new Array(n),r=0;r1&&"number"==typeof i[i.length-1]&&(t=i.pop())):"number"==typeof o&&(t=i.pop()),null===e&&1===i.length&&i[0]instanceof z?i[0]:ct(t)(ht(i,e))}function ft(){return function(t){return t.lift(new pt(t))}}var pt=function(){function t(e){s(this,t),this.connectable=e}return a(t,[{key:"call",value:function(t,e){var n=this.connectable;n._refCount++;var i=new gt(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),t}(),gt=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t)).connectable=i,r}return a(n,[{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null}}]),n}(R),mt=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this)).source=t,r.subjectFactory=i,r._refCount=0,r._isComplete=!1,r}return a(n,[{key:"_subscribe",value:function(t){return this.getSubject().subscribe(t)}},{key:"getSubject",value:function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new M).add(this.source.subscribe(new yt(this.getSubject(),this))),t.closed&&(this._connection=null,t=M.EMPTY)),t}},{key:"refCount",value:function(){return ft()(this)}}]),n}(z),vt=function(){var t=mt.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}}}(),yt=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t)).connectable=i,r}return a(n,[{key:"_error",value:function(t){this._unsubscribe(),r(i(n.prototype),"_error",this).call(this,t)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),r(i(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}]),n}(G);function _t(){return new U}function bt(t){for(var e in t)if(t[e]===bt)return e;throw Error("Could not find renamed property on target object.")}function wt(t,e){for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function xt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(xt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function kt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}var St=bt({__forward_ref__:bt});function Ct(t){return t.__forward_ref__=Ct,t.toString=function(){return xt(this())},t}function At(t){return Mt(t)?t():t}function Mt(t){return"function"==typeof t&&t.hasOwnProperty(St)&&t.__forward_ref__===Ct}var It=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,function(t,e){var n=t?"NG0".concat(t,": "):"";return"".concat(n).concat(e)}(t,i))).code=t,r}return n}(x(Error));function Tt(t){return"string"==typeof t?t:null==t?"":String(t)}function Dt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Tt(t)}function Et(t,e){var n=e?" in ".concat(e):"";throw new It("201","No provider for ".concat(Dt(t)," found").concat(n))}function Ot(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Pt(t){return{providers:t.providers||[],imports:t.imports||[]}}function Rt(t){return Lt(t,Vt)||Lt(t,Bt)}function Lt(t,e){return t.hasOwnProperty(e)?t[e]:null}function Nt(t){return t&&(t.hasOwnProperty(zt)||t.hasOwnProperty(Ht))?t[zt]:null}var Ft,Vt=bt({"\u0275prov":bt}),zt=bt({"\u0275inj":bt}),Bt=bt({ngInjectableDef:bt}),Ht=bt({ngInjectorDef:bt}),jt=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 Gt(){return Ft}function Ut(t){var e=Ft;return Ft=t,e}function Wt(t,e,n){var i=Rt(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&jt.Optional?null:void 0!==e?e:void Et(xt(t),"Injector")}function Yt(t){return{toString:t}.toString()}var qt=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),Xt=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({}),Zt="undefined"!=typeof globalThis&&globalThis,Kt="undefined"!=typeof window&&window,$t="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Qt="undefined"!=typeof global&&global,Jt=Zt||Qt||Kt||$t,te={},ee=[],ne=bt({"\u0275cmp":bt}),ie=bt({"\u0275dir":bt}),re=bt({"\u0275pipe":bt}),oe=bt({"\u0275mod":bt}),ae=bt({"\u0275loc":bt}),se=bt({"\u0275fac":bt}),le=bt({__NG_ELEMENT_ID__:bt}),ue=0;function ce(t){return Yt(function(){var e={},n={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===qt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||ee,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Xt.Emulated,id:"c",styles:t.styles||ee,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,r=t.features,o=t.pipes;return n.id+=ue++,n.inputs=ge(t.inputs,e),n.outputs=ge(t.outputs),r&&r.forEach(function(t){return t(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(he)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(de)}:null,n})}function he(t){return ye(t)||function(t){return t[ie]||null}(t)}function de(t){return function(t){return t[re]||null}(t)}var fe={};function pe(t){return Yt(function(){var e={type:t.type,bootstrap:t.bootstrap||ee,declarations:t.declarations||ee,imports:t.imports||ee,exports:t.exports||ee,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(fe[t.id]=t.type),e})}function ge(t,e){if(null==t)return te;var n={};for(var i in t)if(t.hasOwnProperty(i)){var r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,e&&(e[r]=o)}return n}var me=ce;function ve(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function ye(t){return t[ne]||null}function _e(t,e){var n=t[oe]||null;if(!n&&!0===e)throw new Error("Type ".concat(xt(t)," does not have '\u0275mod' property."));return n}var be=20,we=10;function xe(t){return Array.isArray(t)&&"object"==typeof t[1]}function ke(t){return Array.isArray(t)&&!0===t[1]}function Se(t){return 0!=(8&t.flags)}function Ce(t){return 2==(2&t.flags)}function Ae(t){return 1==(1&t.flags)}function Me(t){return null!==t.template}function Ie(t,e){return t.hasOwnProperty(se)?t[se]:null}var Te=function(){function t(e,n,i){s(this,t),this.previousValue=e,this.currentValue=n,this.firstChange=i}return a(t,[{key:"isFirstChange",value:function(){return this.firstChange}}]),t}();function De(){return Ee}function Ee(t){return t.type.prototype.ngOnChanges&&(t.setInput=Pe),Oe}function Oe(){var t=Re(this),e=null==t?void 0:t.current;if(e){var n=t.previous;if(n===te)t.previous=e;else for(var i in e)n[i]=e[i];t.current=null,this.ngOnChanges(e)}}function Pe(t,e,n,i){var r=Re(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:te,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[n],l=a[s];o[s]=new Te(l&&l.currentValue,e,a===te),t[i]=e}function Re(t){return t.__ngSimpleChanges__||null}De.ngInherit=!0;var Le="http://www.w3.org/2000/svg",Ne=void 0;function Fe(){return void 0!==Ne?Ne:"undefined"!=typeof document?document:void 0}function Ve(t){return!!t.listen}var ze={createRenderer:function(t,e){return Fe()}};function Be(t){for(;Array.isArray(t);)t=t[0];return t}function He(t,e){return Be(e[t])}function je(t,e){return Be(e[t.index])}function Ge(t,e){return t.data[e]}function Ue(t,e){return t[e]}function We(t,e){var n=e[t];return xe(n)?n:n[0]}function Ye(t){return 4==(4&t[2])}function qe(t){return 128==(128&t[2])}function Xe(t,e){return null==e?null:t[e]}function Ze(t){t[18]=0}function Ke(t,e){t[5]+=e;for(var n=t,i=t[3];null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}var $e={lFrame:xn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Qe(){return $e.bindingsEnabled}function Je(){return $e.lFrame.lView}function tn(){return $e.lFrame.tView}function en(t){return $e.lFrame.contextLView=t,t[8]}function nn(){for(var t=rn();null!==t&&64===t.type;)t=t.parent;return t}function rn(){return $e.lFrame.currentTNode}function on(t,e){var n=$e.lFrame;n.currentTNode=t,n.isParent=e}function an(){return $e.lFrame.isParent}function sn(){$e.lFrame.isParent=!1}function ln(){return $e.isInCheckNoChangesMode}function un(t){$e.isInCheckNoChangesMode=t}function cn(){var t=$e.lFrame,e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function hn(){return $e.lFrame.bindingIndex}function dn(){return $e.lFrame.bindingIndex++}function fn(t){var e=$e.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function pn(t){$e.lFrame.currentDirectiveIndex=t}function gn(t){var e=$e.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function mn(){return $e.lFrame.currentQueryIndex}function vn(t){$e.lFrame.currentQueryIndex=t}function yn(t){var e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function _n(t,e,n){if(n&jt.SkipSelf){for(var i=e,r=t;!(null!==(i=i.parent)||n&jt.Host||null===(i=yn(r))||(r=r[15],10&i.type)););if(null===i)return!1;e=i,t=r}var o=$e.lFrame=wn();return o.currentTNode=e,o.lView=t,!0}function bn(t){var e=wn(),n=t[1];$e.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function wn(){var t=$e.lFrame,e=null===t?null:t.child;return null===e?xn(t):e}function xn(t){var e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function kn(){var t=$e.lFrame;return $e.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Sn=kn;function Cn(){var t=kn();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function An(t){return($e.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,$e.lFrame.contextLView))[8]}function Mn(){return $e.lFrame.selectedIndex}function In(t){$e.lFrame.selectedIndex=t}function Tn(){var t=$e.lFrame;return Ge(t.tView,t.selectedIndex)}function Dn(){$e.lFrame.currentNamespace=Le}function En(){$e.lFrame.currentNamespace=null}function On(t,e){for(var n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[s]<0&&(t[18]+=65536),(a>11>16&&(3&t[2])===e){t[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}var Vn=-1,zn=function t(e,n,i){s(this,t),this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function Bn(t,e,n){for(var i=Ve(t),r=0;re){a=o-1;break}}}for(;o>16,i=e;n>0;)i=i[15],n--;return i}var Xn=!0;function Zn(t){var e=Xn;return Xn=t,e}var Kn=0;function $n(t,e){var n=Jn(t,e);if(-1!==n)return n;var i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Qn(i.data,t),Qn(e,null),Qn(i.blueprint,null));var r=ti(t,e),o=t.injectorIndex;if(Wn(r))for(var a=Yn(r),s=qn(r,e),l=s[1].data,u=0;u<8;u++)e[o+u]=s[a+u]|l[a+u];return e[o+8]=r,o}function Qn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Jn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function ti(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=0,i=null,r=e;null!==r;){var o=r[1],a=o.type;if(null===(i=2===a?o.declTNode:1===a?r[6]:null))return Vn;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return Vn}function ei(t,e,n){!function(t,e,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(le)&&(i=n[le]),null==i&&(i=n[le]=Kn++);var r=255&i;e.data[t+(r>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:jt.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==t){var o=ci(n);if("function"==typeof o){if(!_n(e,t,i))return i&jt.Host?ni(r,n,i):ii(e,n,i,r);try{var a=o(i);if(null!=a||i&jt.Optional)return a;Et(n)}finally{Sn()}}else if("number"==typeof o){var s=null,l=Jn(t,e),u=Vn,c=i&jt.Host?e[16][6]:null;for((-1===l||i&jt.SkipSelf)&&((u=-1===l?ti(t,e):e[l+8])!==Vn&&di(i,!1)?(s=e[1],l=Yn(u),e=qn(u,e)):l=-1);-1!==l;){var h=e[1];if(hi(o,l,h.data)){var d=si(l,e,n,s,i,c);if(d!==oi)return d}(u=e[l+8])!==Vn&&di(i,e[1].data[l+8]===c)&&hi(o,l,e)?(s=h,l=Yn(u),e=qn(u,e)):l=-1}}}return ii(e,n,i,r)}var oi={};function ai(){return new fi(nn(),Je())}function si(t,e,n,i,r,o){var a=e[1],s=a.data[t+8],l=li(s,a,n,null==i?Ce(s)&&Xn:i!=a&&0!=(3&s.type),r&jt.Host&&o===s);return null!==l?ui(e,a,l,s):oi}function li(t,e,n,i,r){for(var o=t.providerIndexes,a=e.data,s=1048575&o,l=t.directiveStart,u=o>>20,c=r?s+u:t.directiveEnd,h=i?s:s+u;h=l&&d.type===n)return h}if(r){var f=a[l];if(f&&Me(f)&&f.type===n)return l}return null}function ui(t,e,n,i){var r=t[n],o=e.data;if(r instanceof zn){var a=r;a.resolving&&function(t,e){throw new It("200","Circular dependency in DI detected for ".concat(t).concat(""))}(Dt(o[n]));var s=Zn(a.canSeeViewProviders);a.resolving=!0;var l=a.injectImpl?Ut(a.injectImpl):null;_n(t,i,jt.Default);try{r=t[n]=a.factory(void 0,o,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){var i=e.type.prototype,r=i.ngOnInit,o=i.ngDoCheck;if(i.ngOnChanges){var a=Ee(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,a)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,r),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{null!==l&&Ut(l),Zn(s),a.resolving=!1,Sn()}}return r}function ci(t){if("string"==typeof t)return t.charCodeAt(0)||0;var e=t.hasOwnProperty(le)?t[le]:void 0;return"number"==typeof e?e>=0?255&e:ai:e}function hi(t,e,n){return!!(n[e+(t>>5)]&1<=t.length?t.push(n):t.splice(e,0,n)}function Ci(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Ai(t,e){for(var n=[],i=0;i=0?t[1|i]=n:function(t,e,n,i){var r=t.length;if(r==e)t.push(n,i);else if(1===r)t.push(i,t[0]),t[0]=n;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=n,t[e+1]=i}}(t,i=~i,e,n),i}function Ii(t,e){var n=Ti(t,e);if(n>=0)return t[1|n]}function Ti(t,e){return function(t,e,n){for(var i=0,r=t.length>>1;r!==i;){var o=i+(r-i>>1),a=t[o<<1];if(e===a)return o<<1;a>e?r=o:i=o+1}return~(r<<1)}(t,e)}var Di={},Ei=/\n/gm,Oi="__source",Pi=bt({provide:String,useValue:bt}),Ri=void 0;function Li(t){var e=Ri;return Ri=t,e}function Ni(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jt.Default;if(void 0===Ri)throw new Error("inject() must be called from an injection context");return null===Ri?Wt(t,void 0,e):Ri.get(t,e&jt.Optional?null:void 0,e)}function Fi(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jt.Default;return(Gt()||Ni)(At(t),e)}var Vi=Fi;function zi(t){for(var e=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:null;t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;var r=xt(e);if(Array.isArray(e))r=e.map(xt).join(" -> ");else if("object"==typeof e){var o=[];for(var a in e)if(e.hasOwnProperty(a)){var s=e[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):xt(s)))}r="{".concat(o.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(t.replace(Ei,"\n "))}("\n"+t.message,r,n,i),t.ngTokenPath=r,t.ngTempTokenPath=null,t}var ji,Gi,Ui=Bi(yi("Inject",function(t){return{token:t}}),-1),Wi=Bi(yi("Optional"),8),Yi=Bi(yi("SkipSelf"),4);function qi(t){var e;return(null===(e=function(){if(void 0===ji&&(ji=null,Jt.trustedTypes))try{ji=Jt.trustedTypes.createPolicy("angular",{createHTML:function(t){return t},createScript:function(t){return t},createScriptURL:function(t){return t}})}catch(e){}return ji}())||void 0===e?void 0:e.createHTML(t))||t}function Xi(t){var e;return(null===(e=function(){if(void 0===Gi&&(Gi=null,Jt.trustedTypes))try{Gi=Jt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(t){return t},createScript:function(t){return t},createScriptURL:function(t){return t}})}catch(e){}return Gi}())||void 0===e?void 0:e.createHTML(t))||t}var Zi=function(){function t(e){s(this,t),this.changingThisBreaksApplicationSecurity=e}return a(t,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),t}(),Ki=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(Zi),$i=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(Zi),Qi=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(Zi),Ji=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(Zi),tr=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(Zi);function er(t){return t instanceof Zi?t.changingThisBreaksApplicationSecurity:t}function nr(t,e){var n=ir(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error("Required a safe ".concat(e,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===e}function ir(t){return t instanceof Zi&&t.getTypeName()||null}var rr=function(){function t(e){s(this,t),this.inertDocumentHelper=e}return a(t,[{key:"getInertBodyElement",value:function(t){t=""+t;try{var e=(new window.DOMParser).parseFromString(qi(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(n){return null}}}]),t}(),or=function(){function t(e){if(s(this,t),this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var i=this.inertDocument.createElement("body");n.appendChild(i)}}return a(t,[{key:"getInertBodyElement",value:function(t){var e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=qi(t),e;var n=this.inertDocument.createElement("body");return n.innerHTML=qi(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(t){for(var e=t.attributes,n=e.length-1;0"),!0}},{key:"endElement",value:function(t){var e=t.nodeName.toLowerCase();mr.hasOwnProperty(e)&&!dr.hasOwnProperty(e)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(Sr(t))}},{key:"checkClobberedElement",value:function(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: ".concat(t.outerHTML));return e}}]),t}(),xr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,kr=/([^\#-~ |!])/g;function Sr(t){return t.replace(/&/g,"&").replace(xr,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(kr,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function Cr(t,e){var n=null;try{hr=hr||function(t){var e=new or(t);return function(){try{return!!(new window.DOMParser).parseFromString(qi(""),"text/html")}catch(t){return!1}}()?new rr(e):e}(t);var i=e?String(e):"";n=hr.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=hr.getInertBodyElement(i)}while(i!==o);return qi((new wr).sanitizeChildren(Ar(n)||n))}finally{if(n)for(var a=Ar(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function Ar(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Mr=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 Ir(t){var e=Dr();return e?Xi(e.sanitize(Mr.HTML,t)||""):nr(t,"HTML")?Xi(er(t)):Cr(Fe(),Tt(t))}function Tr(t){var e=Dr();return e?e.sanitize(Mr.URL,t)||"":nr(t,"URL")?er(t):lr(Tt(t))}function Dr(){var t=Je();return t&&t[12]}function Er(t,e){t.__ngContext__=e}function Or(t){var e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Pr(t){return t.ngDebugContext}function Rr(t){return t.ngOriginalError}function Lr(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i0&&(t[i-1][4]=r[4]);var a=Ci(t,we+e);fo(r[1],n=r,n[11],2,null,null),n[0]=null,n[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Qr(t,e){if(!(256&e[2])){var n=e[11];Ve(n)&&n.destroyNode&&fo(t,e,n,3,null,null),function(t){var e=t[13];if(!e)return Jr(t[1],t);for(;e;){var n=null;if(xe(e))n=e[13];else{var i=e[10];i&&(n=i)}if(!n){for(;e&&!e[4]&&e!==t;)xe(e)&&Jr(e[1],e),e=e[3];null===e&&(e=t),xe(e)&&Jr(e[1],e),n=e&&e[4]}e=n}}(e)}}function Jr(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){var n;if(null!=t&&null!=(n=t.destroyHooks))for(var i=0;i=0?i[r=u]():i[r=-u].unsubscribe(),o+=2}else{var c=i[r=n[o+1]];n[o].call(c)}if(null!==i){for(var h=r+1;ho?"":r[c+1].toLowerCase();var d=8&i?h:null;if(d&&-1!==yo(d,u,0)||2&i&&u!==h){if(So(i))return!1;a=!0}}}}else{if(!a&&!So(i)&&!So(l))return!1;if(a&&So(l))continue;a=!1,i=l|1&i}}return So(i)||a}function So(t){return 0==(1&t)}function Co(t,e,n,i){if(null===e)return-1;var r=0;if(i||!n){for(var o=!1;r-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],i=0;i0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""===r||So(a)||(e+=Io(o,r),r=""),i=a,o=o||!So(i);n++}return""!==r&&(e+=Io(o,r)),e}var Do={};function Eo(t){Oo(tn(),Je(),Mn()+t,ln())}function Oo(t,e,n,i){if(!i)if(3==(3&e[2])){var r=t.preOrderCheckHooks;null!==r&&Pn(e,r,n)}else{var o=t.preOrderHooks;null!==o&&Rn(e,o,0,n)}In(n)}function Po(t,e){return t<<17|e<<2}function Ro(t){return t>>17&32767}function Lo(t){return 2|t}function No(t){return(131068&t)>>2}function Fo(t,e){return-131069&t|e<<2}function Vo(t){return 1|t}function zo(t,e){var n=t.contentQueries;if(null!==n)for(var i=0;ibe&&Oo(t,e,be,ln()),n(i,r)}finally{In(o)}}function qo(t,e,n){if(Se(e))for(var i=e.directiveEnd,r=e.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:je,i=e.localNames;if(null!==i)for(var r=e.index+1,o=0;o0;){var n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(s)!=l&&s.push(l),s.push(i,r,a)}}function ia(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function ra(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function oa(t,e,n){if(n){if(e.exportAs)for(var i=0;i0&&fa(n)}}function fa(t){for(var e=Ur(t);null!==e;e=Wr(e))for(var n=we;n0&&fa(i)}var o=t[1].components;if(null!==o)for(var a=0;a0&&fa(s)}}function pa(t,e){var n=We(e,t),i=n[1];!function(t,e){for(var n=e.length;n1&&void 0!==arguments[1]?arguments[1]:Di;if(e===Di){var n=new Error("NullInjectorError: No provider for ".concat(xt(t),"!"));throw n.name="NullInjectorError",n}return e}}]),t}(),Da=new _i("Set Injector scope."),Ea={},Oa={},Pa=void 0;function Ra(){return void 0===Pa&&(Pa=new Ta),Pa}function La(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new Na(t,n,e||Ra(),i)}var Na=function(){function t(e,n,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;s(this,t),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&ki(n,function(t){return r.processProvider(t,e,n)}),ki([e],function(t){return r.processInjectorType(t,[],a)}),this.records.set(Ia,za(void 0,this));var l=this.records.get(Da);this.scope=null!=l?l.value:null,this.source=o||("object"==typeof e?null:xt(e))}return a(t,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Di,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:jt.Default;this.assertNotDestroyed();var i=Li(this);try{if(!(n&jt.SkipSelf)){var r=this.records.get(t);if(void 0===r){var o=ja(t)&&Rt(t);r=o&&this.injectableDefInScope(o)?za(Fa(t),Ea):null,this.records.set(t,r)}if(null!=r)return this.hydrate(t,r)}var a=n&jt.Self?Ra():this.parent;return a.get(t,e=n&jt.Optional&&e===Di?null:e)}catch(l){if("NullInjectorError"===l.name){var s=l.ngTempTokenPath=l.ngTempTokenPath||[];if(s.unshift(xt(t)),i)throw l;return Hi(l,t,"R3InjectorError",this.source)}throw l}finally{Li(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(e){return t.get(e)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(e,n){return t.push(xt(n))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(t,e,n){var i=this;if(!(t=At(t)))return!1;var r=Nt(t),o=null==r&&t.ngModule||void 0,a=void 0===o?t:o,s=-1!==n.indexOf(a);if(void 0!==o&&(r=Nt(o)),null==r)return!1;if(null!=r.imports&&!s){var l;n.push(a);try{ki(r.imports,function(t){i.processInjectorType(t,e,n)&&(void 0===l&&(l=[]),l.push(t))})}finally{}if(void 0!==l)for(var u=function(t){var e=l[t],n=e.ngModule,r=e.providers;ki(r,function(t){return i.processProvider(t,n,r||ee)})},c=0;c0){var n=Ai(e,"?");throw new Error("Can't resolve all parameters for ".concat(xt(t),": (").concat(n.join(", "),")."))}var i=function(t){var e=t&&(t[Vt]||t[Bt]);if(e){var n=function(t){if(t.hasOwnProperty("name"))return t.name;var e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(n,'" class.')),e}return null}(t);return null!==i?function(){return i.factory(t)}:function(){return new t}}(t);throw new Error("unreachable")}function Va(t,e,n){var i,r=void 0;if(Ha(t)){var o=At(t);return Ie(o)||Fa(o)}if(Ba(t))r=function(){return At(t.useValue)};else if((i=t)&&i.useFactory)r=function(){return t.useFactory.apply(t,b(zi(t.deps||[])))};else if(function(t){return!(!t||!t.useExisting)}(t))r=function(){return Fi(At(t.useExisting))};else{var a=At(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return Ie(a)||Fa(a);r=function(){return w(a,b(zi(t.deps)))}}return r}function za(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:t,value:e,multi:n?[]:void 0}}function Ba(t){return null!==t&&"object"==typeof t&&Pi in t}function Ha(t){return"function"==typeof t}function ja(t){return"function"==typeof t||"object"==typeof t&&t instanceof _i}var Ga=function(t,e,n){return function(t){var e=La(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0);return e._resolveInjectorDefTypes(),e}({name:n},e,t,n)},Ua=function(){var t=function(){function t(){s(this,t)}return a(t,null,[{key:"create",value:function(t,e){return Array.isArray(t)?Ga(t,e,""):Ga(t.providers,t.parent,t.name||"")}}]),t}();return t.THROW_IF_NOT_FOUND=Di,t.NULL=new Ta,t.\u0275prov=Ot({token:t,providedIn:"any",factory:function(){return Fi(Ia)}}),t.__NG_ELEMENT_ID__=-1,t}();function Wa(t,e){On(Or(t)[1],nn())}function Ya(t){for(var e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0,i=[t];e;){var r=void 0;if(Me(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(n){i.push(r);var o=t;o.inputs=qa(t.inputs),o.declaredInputs=qa(t.declaredInputs),o.outputs=qa(t.outputs);var a=r.hostBindings;a&&Ka(t,a);var s=r.viewQuery,l=r.contentQueries;if(s&&Xa(t,s),l&&Za(t,l),wt(t.inputs,r.inputs),wt(t.declaredInputs,r.declaredInputs),wt(t.outputs,r.outputs),Me(r)&&r.data.animation){var u=t.data;u.animation=(u.animation||[]).concat(r.data.animation)}}var c=r.features;if(c)for(var h=0;h=0;i--){var r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=Gn(r.hostAttrs,n=Gn(n,r.hostAttrs))}}(i)}function qa(t){return t===te?{}:t===ee?[]:t}function Xa(t,e){var n=t.viewQuery;t.viewQuery=n?function(t,i){e(t,i),n(t,i)}:e}function Za(t,e){var n=t.contentQueries;t.contentQueries=n?function(t,i,r){e(t,i,r),n(t,i,r)}:e}function Ka(t,e){var n=t.hostBindings;t.hostBindings=n?function(t,i){e(t,i),n(t,i)}:e}var $a=null;function Qa(){if(!$a){var t=Jt.Symbol;if(t&&t.iterator)$a=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:jt.Default,n=Je();if(null===n)return Fi(t,e);var i=nn();return ri(i,n,At(t),e)}function cs(t,e,n){var i=Je();return is(i,dn(),e)&&ta(tn(),Tn(),i,t,e,i[11],n,!1),cs}function hs(t,e,n,i,r){var o=r?"class":"style";Ca(t,n,e.inputs[o],o,i)}function ds(t,e,n,i){var r=Je(),o=tn(),a=be+t,s=r[11],l=r[a]=Zr(s,e,$e.lFrame.currentNamespace),u=o.firstCreatePass?function(t,e,n,i,r,o,a){var s=e.consts,l=Ho(e,t,2,r,Xe(s,o));return ea(e,n,l,Xe(s,a)),null!==l.attrs&&Ma(l,l.attrs,!1),null!==l.mergedAttrs&&Ma(l,l.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,l),l}(a,o,r,0,e,n,i):o.data[a];on(u,!0);var c=u.mergedAttrs;null!==c&&Bn(s,l,c);var h=u.classes;null!==h&&vo(s,l,h);var d=u.styles;null!==d&&mo(s,l,d),64!=(64&u.flags)&&so(o,r,l,u),0===$e.lFrame.elementDepthCount&&Er(l,r),$e.lFrame.elementDepthCount++,Ae(u)&&(Xo(o,r,u),qo(o,u,r)),null!==i&&Zo(r,u)}function fs(){var t=nn();an()?sn():on(t=t.parent,!1);var e=t;$e.lFrame.elementDepthCount--;var n=tn();n.firstCreatePass&&(On(n,t),Se(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&hs(n,e,Je(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&hs(n,e,Je(),e.stylesWithoutHost,!1)}function ps(t,e,n,i){ds(t,e,n,i),fs()}function gs(t,e,n){var i=Je(),r=tn(),o=t+be,a=r.firstCreatePass?function(t,e,n,i,r){var o=e.consts,a=Xe(o,i),s=Ho(e,t,8,"ng-container",a);return null!==a&&Ma(s,a,!0),ea(e,n,s,Xe(o,r)),null!==e.queries&&e.queries.elementStart(e,s),s}(o,r,i,e,n):r.data[o];on(a,!0);var s=i[o]=i[11].createComment("");so(r,i,s,a),Er(s,i),Ae(a)&&(Xo(r,i,a),qo(r,a,i)),null!=n&&Zo(i,a)}function ms(){var t=nn(),e=tn();an()?sn():on(t=t.parent,!1),e.firstCreatePass&&(On(e,t),Se(t)&&e.queries.elementEnd(t))}function vs(t,e,n){gs(t,e,n),ms()}function ys(){return Je()}function _s(t){return!!t&&"function"==typeof t.then}function bs(t){return!!t&&"function"==typeof t.subscribe}var ws=bs;function xs(t,e,n,i){var r=Je(),o=tn(),a=nn();return Ss(o,r,r[11],a,t,e,!!n,i),xs}function ks(t,e){var n=nn(),i=Je(),r=tn();return Ss(r,i,ka(gn(r.data),n,i),n,t,e,!1),ks}function Ss(t,e,n,i,r,o,a,s){var l=Ae(i),u=t.firstCreatePass&&xa(t),c=wa(e),h=!0;if(3&i.type||s){var d=je(i,e),f=s?s(d):d,p=c.length,g=s?function(t){return s(Be(t[i.index]))}:i.index;if(Ve(n)){var m=null;if(!s&&l&&(m=function(t,e,n,i){var r=t.cleanup;if(null!=r)for(var o=0;ol?s[l]:null}"string"==typeof a&&(o+=2)}return null}(t,e,r,i.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,h=!1;else{o=As(i,e,0,o,!1);var v=n.listen(f,r,o);c.push(o,v),u&&u.push(r,g,p,p+1)}}else o=As(i,e,0,o,!0),f.addEventListener(r,o,a),c.push(o),u&&u.push(r,g,p,a)}else o=As(i,e,0,o,!1);var y,_=i.outputs;if(h&&null!==_&&(y=_[r])){var b=y.length;if(b)for(var w=0;w0&&void 0!==arguments[0]?arguments[0]:1;return An(t)}function Is(t,e){for(var n=null,i=function(t){var e=t.attrs;if(null!=e){var n=e.indexOf(5);if(0==(1&n))return e[n+1]}return null}(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=Je(),r=tn(),o=Ho(r,be+t,16,null,n||null);null===o.projection&&(o.projection=e),sn(),64!=(64&o.flags)&&po(r,i,o)}function Es(t,e,n){return Os(t,"",e,"",n),Es}function Os(t,e,n,i,r){var o=Je(),a=as(o,e,n,i);return a!==Do&&ta(tn(),Tn(),o,t,a,o[11],r,!1),Os}function Ps(t,e,n,i,r){for(var o=t[n+1],a=null===e,s=i?Ro(o):No(o),l=!1;0!==s&&(!1===l||a);){var u=t[s+1];Rs(t[s],e)&&(l=!0,t[s+1]=i?Vo(u):Lo(u)),s=i?Ro(u):No(u)}l&&(t[n+1]=i?Lo(o):Vo(o))}function Rs(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&Ti(t,e)>=0}var Ls={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ns(t){return t.substring(Ls.key,Ls.keyEnd)}function Fs(t,e){var n=Ls.textEnd;return n===e?-1:(e=Ls.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,Ls.key=e,n),Vs(t,e,n))}function Vs(t,e,n){for(;e=0;n=Fs(e,n))Mi(t,Ns(e),!0)}function js(t,e,n,i){var r=Je(),o=tn(),a=fn(2);o.firstUpdatePass&&Us(o,t,a,i),e!==Do&&is(r,a,e)&&qs(o,o.data[Mn()],r,r[11],t,r[a+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=xt(er(t)))),t}(e,n),i,a)}function Gs(t,e){return e>=t.expandoStartIndex}function Us(t,e,n,i){var r=t.data;if(null===r[n+1]){var o=r[Mn()],a=Gs(t,n);Ks(o,i)&&null===e&&!a&&(e=!1),e=function(t,e,n,i){var r=gn(t),o=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=Ys(n=Ws(null,t,e,n,i),e.attrs,i),o=null);else{var a=e.directiveStylingLast;if(-1===a||t[a]!==r)if(n=Ws(r,t,e,n,i),null===o){var s=function(t,e,n){var i=n?e.classBindings:e.styleBindings;if(0!==No(i))return t[Ro(i)]}(t,e,i);void 0!==s&&Array.isArray(s)&&function(t,e,n,i){t[Ro(n?e.classBindings:e.styleBindings)]=i}(t,e,i,s=Ys(s=Ws(null,t,e,s[1],i),e.attrs,i))}else o=function(t,e,n){for(var i=void 0,r=e.directiveEnd,o=1+e.directiveStylingLast;o0)&&(c=!0):u=n,r)if(0!==l){var h=Ro(t[s+1]);t[i+1]=Po(h,s),0!==h&&(t[h+1]=Fo(t[h+1],i)),t[s+1]=131071&t[s+1]|i<<17}else t[i+1]=Po(s,0),0!==s&&(t[s+1]=Fo(t[s+1],i)),s=i;else t[i+1]=Po(l,0),0===s?s=i:t[l+1]=Fo(t[l+1],i),l=i;c&&(t[i+1]=Lo(t[i+1])),Ps(t,u,i,!0),Ps(t,u,i,!1),function(t,e,n,i,r){var o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&Ti(o,e)>=0&&(n[i+1]=Vo(n[i+1]))}(e,u,t,i,o),a=Po(s,l),o?e.classBindings=a:e.styleBindings=a}(r,o,e,n,a,i)}}function Ws(t,e,n,i,r){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var l=t[r],u=Array.isArray(l),c=u?l[1]:l,h=null===c,d=n[r+1];d===Do&&(d=h?ee:void 0);var f=h?Ii(d,i):c===i?d:void 0;if(u&&!Zs(f)&&(f=Ii(l,i)),Zs(f)&&(s=f,a))return s;var p=t[r+1];r=a?Ro(p):No(p)}if(null!==e){var g=o?e.residualClasses:e.residualStyles;null!=g&&(s=Ii(g,i))}return s}function Zs(t){return void 0!==t}function Ks(t,e){return 0!=(t.flags&(e?16:32))}function $s(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Je(),i=tn(),r=t+be,o=i.firstCreatePass?Ho(i,r,1,e,null):i.data[r],a=n[r]=Xr(n[11],e);so(i,n,a,o),on(o,!1)}function Qs(t){return Js("",t,""),Qs}function Js(t,e,n){var i=Je(),r=as(i,t,e,n);return r!==Do&&Aa(i,Mn(),r),Js}function tl(t,e,n,i,r){var o=Je(),a=function(t,e,n,i,r,o){var a=rs(t,hn(),n,r);return fn(2),a?e+Tt(n)+i+Tt(r)+o:Do}(o,t,e,n,i,r);return a!==Do&&Aa(o,Mn(),a),tl}function el(t,e,n){var i=Je();return is(i,dn(),e)&&ta(tn(),Tn(),i,t,e,i[11],n,!0),el}function nl(t,e,n){var i=Je();if(is(i,dn(),e)){var r=tn(),o=Tn();ta(r,o,i,t,e,ka(gn(r.data),o,i),n,!0)}return nl}var il=void 0,rl=["en",[["a","p"],["AM","PM"],il],[["AM","PM"],il,il],[["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"]],il,[["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"]],il,[["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}",il,"{1} 'at' {0}",il],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],ol={};function al(t){return t in ol||(ol[t]=Jt.ng&&Jt.ng.common&&Jt.ng.common.locales&&Jt.ng.common.locales[t]),ol[t]}var sl=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}({}),ll="en-US";function ul(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error("ASSERTION ERROR: ".concat(t)+" [Expected=> ".concat(null," ").concat("!="," ").concat(e," <=Actual]"))}(n,e),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}function cl(t,e,n){var i=tn();if(i.firstCreatePass){var r=Me(t);hl(n,i.data,i.blueprint,r,!0),hl(e,i.data,i.blueprint,r,!1)}}function hl(t,e,n,i,r){if(t=At(t),Array.isArray(t))for(var o=0;o>20;if(Ha(t)||!t.multi){var p=new zn(u,r,us),g=pl(l,e,r?h:h+f,d);-1===g?(ei($n(c,s),a,l),dl(a,t,e.length),e.push(l),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(p),s.push(p)):(n[g]=p,s[g]=p)}else{var m=pl(l,e,h+f,d),v=pl(l,e,h,h+f),y=v>=0&&n[v];if(r&&!y||!r&&!(m>=0&&n[m])){ei($n(c,s),a,l);var _=function(t,e,n,i,r){var o=new zn(t,n,us);return o.multi=[],o.index=e,o.componentProviders=0,fl(o,r,i&&!n),o}(r?ml:gl,n.length,r,i,u);!r&&y&&(n[v].providerFactory=_),dl(a,t,e.length,0),e.push(l),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(_),s.push(_)}else dl(a,t,m>-1?m:v,fl(n[r?v:m],u,!r&&i));!r&&i&&y&&n[v].componentProviders++}}}function dl(t,e,n,i){var r=Ha(e);if(r||e.useClass){var o=(e.useClass||e).prototype.ngOnDestroy;if(o){var a=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){var s=a.indexOf(n);-1===s?a.push(n,[i,o]):a[s+1].push(i,o)}else a.push(n,o)}}}function fl(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function pl(t,e,n,i){for(var r=n;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return cl(n,i?i(t):t,e)}}}var _l=function t(){s(this,t)},bl=function t(){s(this,t)},wl=function(){function t(){s(this,t)}return a(t,[{key:"resolveComponentFactory",value:function(t){throw function(t){var e=Error("No component factory found for ".concat(xt(t),". Did you add it to @NgModule.entryComponents?"));return e.ngComponent=t,e}(t)}}]),t}(),xl=function(){var t=function t(){s(this,t)};return t.NULL=new wl,t}();function kl(){}function Sl(t,e){return new Al(je(t,e))}var Cl=function(){return Sl(nn(),Je())},Al=function(){var t=function t(e){s(this,t),this.nativeElement=e};return t.__NG_ELEMENT_ID__=Cl,t}();function Ml(t){return t instanceof Al?t.nativeElement:t}var Il=function t(){s(this,t)},Tl=function(){var t=function t(){s(this,t)};return t.__NG_ELEMENT_ID__=function(){return Dl()},t}(),Dl=function(){var t=Je(),e=We(nn().index,t);return function(t){return t[11]}(xe(e)?e:t)},El=function(){var t=function t(){s(this,t)};return t.\u0275prov=Ot({token:t,providedIn:"root",factory:function(){return null}}),t}(),Ol=function t(e){s(this,t),this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")},Pl=new Ol("12.1.0"),Rl=function(){function t(){s(this,t)}return a(t,[{key:"supports",value:function(t){return ts(t)}},{key:"create",value:function(t){return new Nl(t)}}]),t}(),Ll=function(t,e){return e},Nl=function(){function t(e){s(this,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=e||Ll}return a(t,[{key:"forEachItem",value:function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)}},{key:"forEachOperation",value:function(t){for(var e=this._itHead,n=this._removalsHead,i=0,r=null;e||n;){var o=!n||e&&e.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==n;){var o=e[n.index];if(null!==o&&i.push(Be(o)),ke(o))for(var a=we;a-1&&($r(t,n),Ci(e,n))}this._attachedToViewContainer=!1}Qr(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){Qo(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){ma(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){va(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(t,e,n){un(!0);try{va(t,e,n)}finally{un(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var t;this._appRef=null,fo(this._lView[1],t=this._lView,t[11],2,null,null)}},{key:"attachToAppRef",value:function(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}]),t}(),Kl=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this,t))._view=t,i}return a(n,[{key:"detectChanges",value:function(){ya(this._view)}},{key:"checkNoChanges",value:function(){!function(t){un(!0);try{ya(t)}finally{un(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(Zl),$l=function(t){return function(t,e,n){if(Ce(t)&&!n){var i=We(t.index,e);return new Zl(i,i)}return 47&t.type?new Zl(e[16],e):null}(nn(),Je(),16==(16&t))},Ql=function(){var t=function t(){s(this,t)};return t.__NG_ELEMENT_ID__=$l,t}(),Jl=[new Hl],tu=new Wl([new Rl]),eu=new ql(Jl),nu=function(){return ou(nn(),Je())},iu=function(){var t=function t(){s(this,t)};return t.__NG_ELEMENT_ID__=nu,t}(),ru=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this))._declarationLView=t,o._declarationTContainer=i,o.elementRef=r,o}return a(n,[{key:"createEmbeddedView",value:function(t){var e=this._declarationTContainer.tViews,n=Bo(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),Go(e,n,t),new Zl(n)}}]),n}(iu);function ou(t,e){return 4&t.type?new ru(e,t,Sl(t,e)):null}var au=function t(){s(this,t)},su=function t(){s(this,t)},lu=function(){return fu(nn(),Je())},uu=function(){var t=function t(){s(this,t)};return t.__NG_ELEMENT_ID__=lu,t}(),cu=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this))._lContainer=t,o._hostTNode=i,o._hostLView=r,o}return a(n,[{key:"element",get:function(){return Sl(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new fi(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var t=ti(this._hostTNode,this._hostLView);if(Wn(t)){var e=qn(t,this._hostLView),n=Yn(t);return new fi(e[1].data[n+8],e)}return new fi(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(t){var e=hu(this._lContainer);return null!==e&&e[t]||null}},{key:"length",get:function(){return this._lContainer.length-we}},{key:"createEmbeddedView",value:function(t,e,n){var i=t.createEmbeddedView(e||{});return this.insert(i,n),i}},{key:"createComponent",value:function(t,e,n,i,r){var o=n||this.parentInjector;if(!r&&null==t.ngModule&&o){var a=o.get(au,null);a&&(r=a)}var s=t.create(o,i,void 0,r);return this.insert(s.hostView,e),s}},{key:"insert",value:function(t,e){var n=t._lView,i=n[1];if(ke(n[3])){var r=this.indexOf(t);if(-1!==r)this.detach(r);else{var o=n[3],a=new cu(o,o[6],o[3]);a.detach(a.indexOf(t))}}var s=this._adjustIndex(e),l=this._lContainer;!function(t,e,n,i){var r=we+i,o=n.length;i>0&&(n[r-1][4]=e),i1&&void 0!==arguments[1]?arguments[1]:0;return null==t?this.length+e:t}}]),n}(uu);function hu(t){return t[8]}function du(t){return t[8]||(t[8]=[])}function fu(t,e){var n,i=e[t.index];if(ke(i))n=i;else{var r;if(8&t.type)r=Be(i);else{var o=e[11];r=o.createComment("");var a=je(t,e);eo(o,ro(o,a),r,function(t,e){return Ve(t)?t.nextSibling(e):e.nextSibling}(o,a),!1)}e[t.index]=n=ha(i,e,r,t),ga(e,n)}return new cu(n,t,e)}var pu={},gu=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this)).ngModule=t,i}return a(n,[{key:"resolveComponentFactory",value:function(t){var e=ye(t);return new yu(e,this.ngModule)}}]),n}(xl);function mu(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var vu=new _i("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Fr}}),yu=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this)).componentDef=t,r.ngModule=i,r.componentType=t.type,r.selector=t.selectors.map(To).join(","),r.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],r.isBoundToModule=!!i,r}return a(n,[{key:"inputs",get:function(){return mu(this.componentDef.inputs)}},{key:"outputs",get:function(){return mu(this.componentDef.outputs)}},{key:"create",value:function(t,e,n,i){var r,o,a=(i=i||this.ngModule)?function(t,e){return{get:function(n,i,r){var o=t.get(n,pu,r);return o!==pu||i===pu?o:e.get(n,i,r)}}}(t,i.injector):t,s=a.get(Il,ze),l=a.get(El,null),u=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",h=n?function(t,e,n){if(Ve(t))return t.selectRootElement(e,n===Xt.ShadowDom);var i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(u,n,this.componentDef.encapsulation):Zr(s.createRenderer(null,this.componentDef),c,function(t){var e=t.toLowerCase();return"svg"===e?Le:"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),d=this.componentDef.onPush?576:528,f={components:[],scheduler:Fr,clean:ba,playerHandler:null,flags:0},p=$o(0,null,null,1,0,null,null,null,null,null),g=Bo(null,p,f,d,null,null,s,u,l,a);bn(g);try{var m=function(t,e,n,i,r,o){var a=n[1];n[20]=t;var s=Ho(a,20,2,"#host",null),l=s.mergedAttrs=e.hostAttrs;null!==l&&(Ma(s,l,!0),null!==t&&(Bn(r,t,l),null!==s.classes&&vo(r,t,s.classes),null!==s.styles&&mo(r,t,s.styles)));var u=i.createRenderer(t,e),c=Bo(n,Ko(e),null,e.onPush?64:16,n[20],s,i,u,null,null);return a.firstCreatePass&&(ei($n(s,n),a,e.type),ra(a,s),aa(s,n.length,1)),ga(n,c),n[20]=c}(h,this.componentDef,g,s,u);if(h)if(n)Bn(u,h,["ng-version",Pl.full]);else{var v=function(t){for(var e=[],n=[],i=1,r=2;i0&&vo(u,h,_.join(" "))}if(o=Ge(p,be),void 0!==e)for(var b=o.projection=[],w=0;w1&&void 0!==arguments[1]?arguments[1]:Ua.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:jt.Default;return t===Ua||t===au||t===Ia?this:this._r3Injector.get(t,e,n)}},{key:"destroy",value:function(){var t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null}},{key:"onDestroy",value:function(t){this.destroyCbs.push(t)}}]),n}(au),xu=function(t){u(n,t);var e=p(n);function n(t){var i,r,o;return s(this,n),(i=e.call(this)).moduleType=t,null!==_e(t)&&(r=t,o=new Set,function t(e){var n=_e(e,!0),i=n.id;null!==i&&(function(t,e,n){if(e&&e!==n)throw new Error("Duplicate module registered for ".concat(t," - ").concat(xt(e)," vs ").concat(xt(e.name)))}(i,bu.get(i),e),bu.set(i,e));var r,a=v(Br(n.imports));try{for(a.s();!(r=a.n()).done;){var s=r.value;o.has(s)||(o.add(s),t(s))}}catch(l){a.e(l)}finally{a.f()}}(r)),i}return a(n,[{key:"create",value:function(t){return new wu(this.moduleType,t)}}]),n}(su);function ku(t,e,n){var i=cn()+t,r=Je();return r[i]===Do?ns(r,i,n?e.call(n):e()):function(t,e){return t[e]}(r,i)}function Su(t,e,n,i){return Mu(Je(),cn(),t,e,n,i)}function Cu(t,e,n,i,r){return Iu(Je(),cn(),t,e,n,i,r)}function Au(t,e){var n=t[e];return n===Do?void 0:n}function Mu(t,e,n,i,r,o){var a=e+n;return is(t,a,r)?ns(t,a+1,o?i.call(o,r):i(r)):Au(t,a+1)}function Iu(t,e,n,i,r,o,a){var s=e+n;return rs(t,s,r,o)?ns(t,s+2,a?i.call(a,r,o):i(r,o)):Au(t,s+2)}function Tu(t,e){var n,i=tn(),r=t+be;i.firstCreatePass?(n=function(t,e){if(e)for(var n=e.length-1;n>=0;n--){var i=e[n];if(t===i.name)return i}throw new It("302","The pipe '".concat(t,"' could not be found!"))}(e,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var o=n.factory||(n.factory=Ie(n.type)),a=Ut(us);try{var s=Zn(!1),l=o();return Zn(s),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(i,Je(),r,l),l}finally{Ut(a)}}function Du(t,e,n){var i=t+be,r=Je(),o=Ue(r,i);return Pu(r,Ou(r,i)?Mu(r,cn(),e,o.transform,n,o):o.transform(n))}function Eu(t,e,n,i){var r=t+be,o=Je(),a=Ue(o,r);return Pu(o,Ou(o,r)?Iu(o,cn(),e,a.transform,n,i,a):a.transform(n,i))}function Ou(t,e){return t[1].data[e].pure}function Pu(t,e){return Ja.isWrapped(e)&&(e=Ja.unwrap(e),t[hn()]=Do),e}function Ru(t){return function(e){setTimeout(t,void 0,e)}}var Lu=function(t){u(n,t);var e=p(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return s(this,n),(t=e.call(this)).__isAsync=i,t}return a(n,[{key:"emit",value:function(t){r(i(n.prototype),"next",this).call(this,t)}},{key:"subscribe",value:function(t,e,o){var a,s,l,u=t,c=e||function(){return null},h=o;if(t&&"object"==typeof t){var d=t;u=null===(a=d.next)||void 0===a?void 0:a.bind(d),c=null===(s=d.error)||void 0===s?void 0:s.bind(d),h=null===(l=d.complete)||void 0===l?void 0:l.bind(d)}this.__isAsync&&(c=Ru(c),u&&(u=Ru(u)),h&&(h=Ru(h)));var f=r(i(n.prototype),"subscribe",this).call(this,{next:u,error:c,complete:h});return t instanceof M&&t.add(f),f}}]),n}(U);function Nu(){return this._results[Qa()]()}var Fu=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];s(this,t),this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=Qa(),i=t.prototype;i[n]||(i[n]=Nu)}return a(t,[{key:"changes",get:function(){return this._changes||(this._changes=new Lu)}},{key:"get",value:function(t){return this._results[t]}},{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,e){return this._results.reduce(t,e)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t,e){var n=this;n.dirty=!1;var i=xi(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:[];s(this,t),this.queries=e}return a(t,[{key:"createEmbeddedView",value:function(e){var n=e.queries;if(null!==n){for(var i=null!==e.contentQueries?e.contentQueries[0]:n.length,r=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:null;s(this,t),this.predicate=e,this.flags=n,this.read=i},Hu=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];s(this,t),this.queries=e}return a(t,[{key:"elementStart",value:function(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;s(this,t),this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return a(t,[{key:"elementStart",value:function(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,e){this.elementStart(t,e)}},{key:"embeddedTView",value:function(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new t(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var e=this._declarationNodeIndex,n=t.parent;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,e){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i0)i.push(a[s/2]);else{for(var u=o[s+1],c=e[-l],h=we;h0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(t){return t.timeoutId!==r}),t(i._didWork,i.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(t,e,n){return[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(xc))},t.\u0275prov=Ot({token:t,factory:t.\u0275fac}),t}(),Ec=function(){var t=function(){function t(){s(this,t),this._applications=new Map,Oc.addToWindow(this)}return a(t,[{key:"registerApplication",value:function(t,e){this._applications.set(t,e)}},{key:"unregisterApplication",value:function(t){this._applications.delete(t)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(t){return this._applications.get(t)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Oc.findTestabilityInTree(this,t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ot({token:t,factory:t.\u0275fac}),t}(),Oc=new(function(){function t(){s(this,t)}return a(t,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,e,n){return null}}]),t}()),Pc=!0,Rc=!1;function Lc(){return Rc=!0,Pc}var Nc=function(t,e,n){var i=new xu(n);return Promise.resolve(i)},Fc=new _i("AllowMultipleToken"),Vc=function t(e,n){s(this,t),this.name=e,this.token=n};function zc(t){if(Ic&&!Ic.destroyed&&!Ic.injector.get(Fc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ic=t.get(Gc);var e=t.get(ac,null);return e&&e.forEach(function(t){return t()}),Ic}function Bc(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(e),r=new _i(i);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=jc();if(!o||o.injector.get(Fc,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{var a=n.concat(e).concat({provide:r,useValue:!0},{provide:Da,useValue:"platform"});zc(Ua.create({providers:a,name:i}))}return Hc(r)}}function Hc(t){var e=jc();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}function jc(){return Ic&&!Ic.destroyed?Ic:null}var Gc=function(){var t=function(){function t(e){s(this,t),this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return a(t,[{key:"bootstrapModuleFactory",value:function(t,e){var n,i,r=this,o=(i={ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1},"noop"===(n=e?e.ngZone:void 0)?new Tc:("zone.js"===n?void 0:n)||new xc({enableLongStackTrace:Lc(),shouldCoalesceEventChangeDetection:!!(null==i?void 0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void 0:i.ngZoneRunCoalescing)})),a=[{provide:xc,useValue:o}];return o.run(function(){var e=Ua.create({providers:a,parent:r.injector,name:t.moduleType.name}),n=t.create(e),i=n.injector.get(Nr,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.runOutsideAngular(function(){var t=o.onError.subscribe({next:function(t){i.handleError(t)}});n.onDestroy(function(){Yc(r._modules,n),t.unsubscribe()})}),function(t,e,i){try{var o=((a=n.injector.get(nc)).runInitializers(),a.donePromise.then(function(){return ul(n.injector.get(cc,ll)||ll),r._moduleDoBootstrap(n),n}));return _s(o)?o.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):o}catch(s){throw e.runOutsideAngular(function(){return t.handleError(s)}),s}var a}(i,o)})}},{key:"bootstrapModule",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=Uc({},n);return Nc(0,0,t).then(function(t){return e.bootstrapModuleFactory(t,i)})}},{key:"_moduleDoBootstrap",value:function(t){var e=t.injector.get(Wc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module ".concat(xt(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)}},{key:"onDestroy",value:function(t){this._destroyListeners.push(t)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(Ua))},t.\u0275prov=Ot({token:t,factory:t.\u0275fac}),t}();function Uc(t,e){return Array.isArray(e)?e.reduce(Uc,t):Object.assign(Object.assign({},t),e)}var Wc=function(){var t=function(){function t(e,n,i,r,o){var a=this;s(this,t),this._zone=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run(function(){a.tick()})}});var l=new z(function(t){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular(function(){t.next(a._stable),t.complete()})}),u=new z(function(t){var e;a._zone.runOutsideAngular(function(){e=a._zone.onStable.subscribe(function(){xc.assertNotInAngularZone(),wc(function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,t.next(!0))})})});var n=a._zone.onUnstable.subscribe(function(){xc.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=dt(l,u.pipe(function(t){return ft()((e=_t,function(t){var n;n="function"==typeof e?e:function(){return e};var i=Object.create(t,vt);return i.source=t,i.subjectFactory=n,i})(t));var e}))}return a(t,[{key:"bootstrap",value:function(t,e){var n,i=this;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.");n=t instanceof bl?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(au),o=n.create(Ua.NULL,[],e||n.selector,r),a=o.location.nativeElement,s=o.injector.get(Dc,null),l=s&&o.injector.get(Ec);return s&&l&&l.registerApplication(a,s),o.onDestroy(function(){i.detachView(o.hostView),Yc(i.components,o),l&&l.unregisterApplication(a)}),this._loadComponent(o),o}},{key:"tick",value:function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var e,n=v(this._views);try{for(n.s();!(e=n.n()).done;)e.value.detectChanges()}catch(i){n.e(i)}finally{n.f()}}catch(r){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(r)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(t){var e=t;this._views.push(e),e.attachToAppRef(this)}},{key:"detachView",value:function(t){var e=t;Yc(this._views,e),e.detachFromAppRef()}},{key:"_loadComponent",value:function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(lc,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(t){return t.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(xc),Fi(Ua),Fi(Nr),Fi(xl),Fi(nc))},t.\u0275prov=Ot({token:t,factory:t.\u0275fac}),t}();function Yc(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var qc=function t(){s(this,t)},Xc=function t(){s(this,t)},Zc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Kc=function(){var t=function(){function t(e,n){s(this,t),this._compiler=e,this._config=n||Zc}return a(t,[{key:"load",value:function(t){return this.loadAndCompile(t)}},{key:"loadAndCompile",value:function(t){var e=this,i=y(t.split("#"),2),r=i[0],o=i[1];return void 0===o&&(o="default"),n(8255)(r).then(function(t){return t[o]}).then(function(t){return $c(t,r,o)}).then(function(t){return e._compiler.compileModuleAsync(t)})}},{key:"loadFactory",value:function(t){var e=y(t.split("#"),2),i=e[0],r=e[1],o="NgFactory";return void 0===r&&(r="default",o=""),n(8255)(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(t){return t[r+o]}).then(function(t){return $c(t,i,r)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(_c),Fi(Xc,8))},t.\u0275prov=Ot({token:t,factory:t.\u0275fac}),t}();function $c(t,e,n){if(!t)throw new Error("Cannot find '".concat(n,"' in '").concat(e,"'"));return t}var Qc=Bc(null,"core",[{provide:sc,useValue:"unknown"},{provide:Gc,deps:[Ua]},{provide:Ec,deps:[]},{provide:uc,deps:[]}]),Jc=[{provide:Wc,useClass:Wc,deps:[xc,Ua,Nr,xl,nc]},{provide:vu,deps:[xc],useFactory:function(t){var e=[];return t.onStable.subscribe(function(){for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:nc,useClass:nc,deps:[[new Wi,ec]]},{provide:_c,useClass:_c,deps:[]},rc,{provide:Wl,useFactory:function(){return tu},deps:[]},{provide:ql,useFactory:function(){return eu},deps:[]},{provide:cc,useFactory:function(t){return ul(t=t||"undefined"!=typeof $localize&&$localize.locale||ll),t},deps:[[new Ui(cc),new Wi,new Yi]]},{provide:hc,useValue:"USD"}],th=function(){var t=function t(e){s(this,t)};return t.\u0275fac=function(e){return new(e||t)(Fi(Wc))},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:Jc}),t}(),eh=null;function nh(){return eh}var ih=function t(){s(this,t)},rh=new _i("DocumentToken"),oh=function(){var t=function(){function t(){s(this,t)}return a(t,[{key:"historyGo",value:function(t){throw new Error("Not implemented")}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ot({factory:ah,token:t,providedIn:"platform"}),t}();function ah(){return Fi(lh)}var sh=new _i("Location Initialized"),lh=function(){var t=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this))._doc=t,i._init(),i}return a(n,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return nh().getBaseHref(this._doc)}},{key:"onPopState",value:function(t){var e=nh().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),function(){return e.removeEventListener("popstate",t)}}},{key:"onHashChange",value:function(t){var e=nh().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),function(){return e.removeEventListener("hashchange",t)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(t){this.location.pathname=t}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(t,e,n){uh()?this._history.pushState(t,e,n):this.location.hash=n}},{key:"replaceState",value:function(t,e,n){uh()?this._history.replaceState(t,e,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(t)}},{key:"getState",value:function(){return this._history.state}}]),n}(oh);return t.\u0275fac=function(e){return new(e||t)(Fi(rh))},t.\u0275prov=Ot({factory:ch,token:t,providedIn:"platform"}),t}();function uh(){return!!window.history.pushState}function ch(){return new lh(Fi(rh))}function hh(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function dh(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function fh(t){return t&&"?"!==t[0]?"?"+t:t}var ph=function(){var t=function(){function t(){s(this,t)}return a(t,[{key:"historyGo",value:function(t){throw new Error("Not implemented")}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ot({factory:gh,token:t,providedIn:"root"}),t}();function gh(t){var e=Fi(rh).location;return new vh(Fi(oh),e&&e.origin||"")}var mh=new _i("appBaseHref"),vh=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){var r;if(s(this,n),(r=e.call(this))._platformLocation=t,r._removeListenerFns=[],null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)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.");return r._baseHref=i,r}return a(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(t){return hh(this._baseHref,t)}},{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._platformLocation.pathname+fh(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?"".concat(e).concat(n):e}},{key:"pushState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+fh(i));this._platformLocation.pushState(t,e,r)}},{key:"replaceState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+fh(i));this._platformLocation.replaceState(t,e,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformLocation).historyGo)||void 0===e||e.call(t,n)}}]),n}(ph);return t.\u0275fac=function(e){return new(e||t)(Fi(oh),Fi(mh,8))},t.\u0275prov=Ot({token:t,factory:t.\u0275fac}),t}(),yh=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this))._platformLocation=t,r._baseHref="",r._removeListenerFns=[],null!=i&&(r._baseHref=i),r}return a(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}},{key:"prepareExternalUrl",value:function(t){var e=hh(this._baseHref,t);return e.length>0?"#"+e:e}},{key:"pushState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+fh(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}},{key:"replaceState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+fh(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformLocation).historyGo)||void 0===e||e.call(t,n)}}]),n}(ph);return t.\u0275fac=function(e){return new(e||t)(Fi(oh),Fi(mh,8))},t.\u0275prov=Ot({token:t,factory:t.\u0275fac}),t}(),_h=function(){var t=function(){function t(e,n){var i=this;s(this,t),this._subject=new Lu,this._urlChangeListeners=[],this._platformStrategy=e;var r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=dh(wh(r)),this._platformStrategy.onPopState(function(t){i._subject.emit({url:i.path(!0),pop:!0,state:t.state,type:t.type})})}return a(t,[{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(t))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(t+fh(e))}},{key:"normalize",value:function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,wh(e)))}},{key:"prepareExternalUrl",value:function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}},{key:"go",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+fh(e)),n)}},{key:"replaceState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+fh(e)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformStrategy).historyGo)||void 0===e||e.call(t,n)}},{key:"onUrlChange",value:function(t){var e=this;this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(t){e._notifyUrlChangeListeners(t.url,t.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(t,e)})}},{key:"subscribe",value:function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(ph),Fi(oh))},t.normalizeQueryParams=fh,t.joinWithSlash=hh,t.stripTrailingSlash=dh,t.\u0275prov=Ot({factory:bh,token:t,providedIn:"root"}),t}();function bh(){return new _h(Fi(ph),Fi(oh))}function wh(t){return t.replace(/\/index.html$/,"")}var xh=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}({}),kh=function t(){s(this,t)},Sh=function(){var t=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this)).locale=t,i}return a(n,[{key:"getPluralCategory",value:function(t,e){switch(function(t){return function(t){var e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t),n=al(e);if(n)return n;var i=e.split("-")[0];if(n=al(i))return n;if("en"===i)return rl;throw new Error('Missing locale data for the locale "'.concat(t,'".'))}(t)[sl.PluralCase]}(e||this.locale)(t)){case xh.Zero:return"zero";case xh.One:return"one";case xh.Two:return"two";case xh.Few:return"few";case xh.Many:return"many";default:return"other"}}}]),n}(kh);return t.\u0275fac=function(e){return new(e||t)(Fi(cc))},t.\u0275prov=Ot({token:t,factory:t.\u0275fac}),t}();function Ch(t,e){e=encodeURIComponent(e);var n,i=v(t.split(";"));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=r.indexOf("="),a=y(-1==o?[r,""]:[r.slice(0,o),r.slice(o+1)],2),s=a[1];if(a[0].trim()===e)return decodeURIComponent(s)}}catch(l){i.e(l)}finally{i.f()}return null}var Ah=function(){var t=function(){function t(e,n,i,r){s(this,t),this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return a(t,[{key:"klass",set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(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&&(ts(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}},{key:"_applyKeyValueChanges",value:function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})}},{key:"_applyIterableChanges",value:function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(xt(t.item)));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})}},{key:"_applyClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!0)}):Object.keys(t).forEach(function(n){return e._toggleClass(n,!!t[n])}))}},{key:"_removeClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!1)}):Object.keys(t).forEach(function(t){return e._toggleClass(t,!1)}))}},{key:"_toggleClass",value:function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Wl),us(ql),us(Al),us(Tl))},t.\u0275dir=me({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t}(),Mh=function(){function t(e,n,i,r){s(this,t),this.$implicit=e,this.ngForOf=n,this.index=i,this.count=r}return a(t,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),t}(),Ih=function(){var t=function(){function t(e,n,i){s(this,t),this._viewContainer=e,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return a(t,[{key:"ngForOf",set:function(t){this._ngForOf=t,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(t){this._trackByFn=t}},{key:"ngForTemplate",set:function(t){t&&(this._template=t)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(i){throw new Error("Cannot find a differ supporting object '".concat(t,"' of type '").concat((e=t).name||typeof e,"'. NgFor only supports binding to Iterables such as Arrays."))}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(t){var e=this,n=[];t.forEachOperation(function(t,i,r){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new Mh(null,e._ngForOf,-1,-1),null===r?void 0:r),a=new Th(t,o);n.push(a)}else if(null==r)e._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=e._viewContainer.get(i);e._viewContainer.move(s,r);var l=new Th(t,s);n.push(l)}});for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:Uh;if(!t||!(t instanceof Map)&&"object"!=typeof t)return null;this.differ||(this.differ=this.differs.find(t).create());var i=this.differ.diff(t);return i&&(this.keyValues=[],i.forEachItem(function(t){e.keyValues.push(jh(t.key,t.currentValue))}),this.keyValues.sort(n)),this.keyValues}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(ql,16))},t.\u0275pipe=ve({name:"keyvalue",type:t,pure:!1}),t}();function Uh(t,e){var n=t.key,i=e.key;if(n===i)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(null===n)return 1;if(null===i)return-1;if("string"==typeof n&&"string"==typeof i)return n1&&void 0!==arguments[1])||arguments[1],i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},Jt.getAllAngularTestabilities=function(){return t.getAllTestabilities()},Jt.getAllAngularRootElements=function(){return t.getAllRootElements()},Jt.frameworkStabilizers||(Jt.frameworkStabilizers=[]),Jt.frameworkStabilizers.push(function(t){var e=Jt.getAllAngularTestabilities(),n=e.length,i=!1,r=function(e){i=i||e,0==--n&&t(i)};e.forEach(function(t){t.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(t,e,n){if(null==e)return null;var i=t.getTestability(e);return null!=i?i:n?nh().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}],[{key:"init",value:function(){var e;e=new t,Oc=e}}]),t}(),nd=function(){var t=function(){function t(){s(this,t)}return a(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ot({token:t,factory:t.\u0275fac}),t}(),id=new _i("EventManagerPlugins"),rd=function(){var t=function(){function t(e,n){var i=this;s(this,t),this._zone=n,this._eventNameToPlugin=new Map,e.forEach(function(t){return t.manager=i}),this._plugins=e.slice().reverse()}return a(t,[{key:"addEventListener",value:function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}},{key:"addGlobalEventListener",value:function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,i=0;i-1&&(e.splice(n,1),o+=t+".")}),o+=r,0!=e.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a}},{key:"getEventFullKey",value:function(t){var e="",n=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&kd.hasOwnProperty(e)&&(e=kd[e]))}return xd[e]||e}(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),wd.forEach(function(i){i!=n&&(0,Sd[i])(t)&&(e+=i+".")}),e+=n}},{key:"eventCallback",value:function(t,e,i){return function(r){n.getEventFullKey(r)===t&&i.runGuarded(function(){return e(r)})}}},{key:"_normalizeKey",value:function(t){switch(t){case"esc":return"escape";default:return t}}}]),n}(od);return t.\u0275fac=function(e){return new(e||t)(Fi(rh))},t.\u0275prov=Ot({token:t,factory:t.\u0275fac}),t}(),Ad=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ot({factory:function(){return Fi(Id)},token:t,providedIn:"root"}),t}();function Md(t){return new Id(t.get(rh))}var Id=function(){var t=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this))._doc=t,i}return a(n,[{key:"sanitize",value:function(t,e){if(null==e)return null;switch(t){case Mr.NONE:return e;case Mr.HTML:return nr(e,"HTML")?er(e):Cr(this._doc,String(e)).toString();case Mr.STYLE:return nr(e,"Style")?er(e):e;case Mr.SCRIPT:if(nr(e,"Script"))return er(e);throw new Error("unsafe value used in a script context");case Mr.URL:return ir(e),nr(e,"URL")?er(e):lr(String(e));case Mr.RESOURCE_URL:if(nr(e,"ResourceURL"))return er(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(t," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(t){return new Ki(t)}},{key:"bypassSecurityTrustStyle",value:function(t){return new $i(t)}},{key:"bypassSecurityTrustScript",value:function(t){return new Qi(t)}},{key:"bypassSecurityTrustUrl",value:function(t){return new Ji(t)}},{key:"bypassSecurityTrustResourceUrl",value:function(t){return new tr(t)}}]),n}(Ad);return t.\u0275fac=function(e){return new(e||t)(Fi(rh))},t.\u0275prov=Ot({factory:function(){return Md(Fi(Ia))},token:t,providedIn:"root"}),t}(),Td=Bc(Qc,"browser",[{provide:sc,useValue:"browser"},{provide:ac,useValue:function(){$h.makeCurrent(),ed.init()},multi:!0},{provide:rh,useFactory:function(){return function(t){Ne=t}(document),document},deps:[]}]),Dd=[[],{provide:Da,useValue:"root"},{provide:Nr,useFactory:function(){return new Nr},deps:[]},{provide:id,useClass:bd,multi:!0,deps:[rh,xc,sc]},{provide:id,useClass:Cd,multi:!0,deps:[rh]},[],{provide:md,useClass:md,deps:[rd,sd,ic]},{provide:Il,useExisting:md},{provide:ad,useExisting:sd},{provide:sd,useClass:sd,deps:[rh]},{provide:Dc,useClass:Dc,deps:[xc]},{provide:rd,useClass:rd,deps:[id,xc]},{provide:Kh,useClass:nd,deps:[]},[]],Ed=function(){var t=function(){function t(e){if(s(this,t),e)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.")}return a(t,null,[{key:"withServerTransition",value:function(e){return{ngModule:t,providers:[{provide:ic,useValue:e.appId},{provide:Jh,useExisting:ic},td]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(t,12))},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:Dd,imports:[Wh,th]}),t}();function Od(){for(var t=arguments.length,e=new Array(t),n=0;n0){var i=t.slice(0,e),r=i.toLowerCase(),o=t.slice(e+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(o):n.headers.set(r,[o])}})}:function(){n.headers=new Map,Object.keys(e).forEach(function(t){var i=e[t],r=t.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(t,r))})}:this.headers=new Map}return a(t,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,e){return this.clone({name:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({name:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({name:t,value:e,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}},{key:"init",value:function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})}},{key:"clone",value:function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}},{key:"applyUpdate",value:function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var i=("a"===t.op?this.headers.get(e):void 0)||[];i.push.apply(i,b(n)),this.headers.set(e,i);break;case"d":var r=t.value;if(r){var o=this.headers.get(e);if(!o)return;0===(o=o.filter(function(t){return-1===r.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}},{key:"forEach",value:function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})}}]),t}(),Bd=function(){function t(){s(this,t)}return a(t,[{key:"encodeKey",value:function(t){return jd(t)}},{key:"encodeValue",value:function(t){return jd(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}();function Hd(t,e){var n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(function(t){var i=t.indexOf("="),r=y(-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],2),o=r[0],a=r[1],s=n.get(o)||[];s.push(a),n.set(o,s)}),n}function jd(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,"/")}function Gd(t){return"".concat(t)}var Ud=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(s(this,t),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Bd,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=Hd(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(function(t){var i=n.fromObject[t];e.map.set(t,Array.isArray(i)?i:[i])})):this.map=null}return a(t,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var e=this.map.get(t);return e?e[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,e){return this.clone({param:t,value:e,op:"a"})}},{key:"appendAll",value:function(t){var e=[];return Object.keys(t).forEach(function(n){var i=t[n];Array.isArray(i)?i.forEach(function(t){e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}},{key:"set",value:function(t,e){return this.clone({param:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({param:t,value:e,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).filter(function(t){return""!==t}).join("&")}},{key:"clone",value:function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}},{key:"init",value:function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(Gd(e.value)),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var i=t.map.get(e.param)||[],r=i.indexOf(Gd(e.value));-1!==r&&i.splice(r,1),i.length>0?t.map.set(e.param,i):t.map.delete(e.param)}}),this.cloneFrom=this.updates=null)}}]),t}(),Wd=function(){function t(){s(this,t),this.map=new Map}return a(t,[{key:"set",value:function(t,e){return this.map.set(t,e),this}},{key:"get",value:function(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}},{key:"delete",value:function(t){return this.map.delete(t),this}},{key:"keys",value:function(){return this.map.keys()}}]),t}();function Yd(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function qd(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Xd(t){return"undefined"!=typeof FormData&&t instanceof FormData}var Zd=function(){function t(e,n,i,r){var o;if(s(this,t),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new zd),this.context||(this.context=new Wd),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var l=n.indexOf("?");this.urlWithParams=n+(-1===l?"?":l0&&void 0!==arguments[0]?arguments[0]:{},i=n.method||this.method,r=n.url||this.url,o=n.responseType||this.responseType,a=void 0!==n.body?n.body:this.body,s=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,l=void 0!==n.reportProgress?n.reportProgress:this.reportProgress,u=n.headers||this.headers,c=n.params||this.params,h=null!==(e=n.context)&&void 0!==e?e:this.context;return void 0!==n.setHeaders&&(u=Object.keys(n.setHeaders).reduce(function(t,e){return t.set(e,n.setHeaders[e])},u)),n.setParams&&(c=Object.keys(n.setParams).reduce(function(t,e){return t.set(e,n.setParams[e])},c)),new t(i,r,a,{params:c,headers:u,context:h,reportProgress:l,responseType:o,withCredentials:s})}}]),t}(),Kd=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}({}),$d=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";s(this,t),this.headers=e.headers||new zd,this.status=void 0!==e.status?e.status:n,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300},Qd=function(t){u(n,t);var e=p(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,n),(t=e.call(this,i)).type=Kd.ResponseHeader,t}return a(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({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})}}]),n}($d),Jd=function(t){u(n,t);var e=p(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,n),(t=e.call(this,i)).type=Kd.Response,t.body=void 0!==i.body?i.body:null,t}return a(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({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})}}]),n}($d),tf=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this,t,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(t.url||"(unknown url)"):"Http failure response for ".concat(t.url||"(unknown url)",": ").concat(t.status," ").concat(t.statusText),i.error=t.error||null,i}return n}($d);function ef(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var nf=function(){var t=function(){function t(e){s(this,t),this.handler=e}return a(t,[{key:"request",value:function(t,e){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t instanceof Zd)n=t;else{var o=void 0;o=r.headers instanceof zd?r.headers:new zd(r.headers);var a=void 0;r.params&&(a=r.params instanceof Ud?r.params:new Ud({fromObject:r.params})),n=new Zd(t,e,void 0!==r.body?r.body:null,{headers:o,context:r.context,params:a,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}var s=Od(n).pipe(Pd(function(t){return i.handler.handle(t)}));if(t instanceof Zd||"events"===r.observe)return s;var l=s.pipe(Rd(function(t){return t instanceof Jd}));switch(r.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return l.pipe(q(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return l.pipe(q(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return l.pipe(q(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return l.pipe(q(function(t){return t.body}))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type ".concat(r.observe,"}"))}}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",t,e)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",t,e)}},{key:"head",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",t,e)}},{key:"jsonp",value:function(t,e){return this.request("JSONP",t,{params:(new Ud).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",t,e)}},{key:"patch",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",t,ef(n,e))}},{key:"post",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",t,ef(n,e))}},{key:"put",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",t,ef(n,e))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(Fd))},t.\u0275prov=Ot({token:t,factory:t.\u0275fac}),t}(),rf=function(){function t(e,n){s(this,t),this.next=e,this.interceptor=n}return a(t,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),t}(),of=new _i("HTTP_INTERCEPTORS"),af=function(){var t=function(){function t(){s(this,t)}return a(t,[{key:"intercept",value:function(t,e){return e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ot({token:t,factory:t.\u0275fac}),t}(),sf=/^\)\]\}',?\n/,lf=function(){var t=function(){function t(e){s(this,t),this.xhrFactory=e}return a(t,[{key:"handle",value:function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new z(function(n){var i=e.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach(function(t,e){return i.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var r=t.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(t.responseType){var o=t.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=t.serializeBody(),s=null,l=function(){if(null!==s)return s;var e=1223===i.status?204:i.status,n=i.statusText||"OK",r=new zd(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 s=new Qd({headers:r,status:e,statusText:n,url:o})},u=function(){var e=l(),r=e.headers,o=e.status,a=e.statusText,s=e.url,u=null;204!==o&&(u=void 0===i.response?i.responseText:i.response),0===o&&(o=u?200:0);var c=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof u){var h=u;u=u.replace(sf,"");try{u=""!==u?JSON.parse(u):null}catch(d){u=h,c&&(c=!1,u={error:d,text:u})}}c?(n.next(new Jd({body:u,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new tf({error:u,headers:r,status:o,statusText:a,url:s||void 0}))},c=function(t){var e=l(),r=new tf({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:e.url||void 0});n.error(r)},h=!1,d=function(e){h||(n.next(l()),h=!0);var r={type:Kd.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(r.total=e.total),"text"===t.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},f=function(t){var e={type:Kd.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return i.addEventListener("load",u),i.addEventListener("error",c),i.addEventListener("timeout",c),i.addEventListener("abort",c),t.reportProgress&&(i.addEventListener("progress",d),null!==a&&i.upload&&i.upload.addEventListener("progress",f)),i.send(a),n.next({type:Kd.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("abort",c),i.removeEventListener("load",u),i.removeEventListener("timeout",c),t.reportProgress&&(i.removeEventListener("progress",d),null!==a&&i.upload&&i.upload.removeEventListener("progress",f)),i.readyState!==i.DONE&&i.abort()}})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(Kh))},t.\u0275prov=Ot({token:t,factory:t.\u0275fac}),t}(),uf=new _i("XSRF_COOKIE_NAME"),cf=new _i("XSRF_HEADER_NAME"),hf=function t(){s(this,t)},df=function(){var t=function(){function t(e,n,i){s(this,t),this.doc=e,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return a(t,[{key:"getToken",value:function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ch(t,this.cookieName),this.lastCookieString=t),this.lastToken}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(rh),Fi(sc),Fi(uf))},t.\u0275prov=Ot({token:t,factory:t.\u0275fac}),t}(),ff=function(){var t=function(){function t(e,n){s(this,t),this.tokenService=e,this.headerName=n}return a(t,[{key:"intercept",value:function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(hf),Fi(cf))},t.\u0275prov=Ot({token:t,factory:t.\u0275fac}),t}(),pf=function(){var t=function(){function t(e,n){s(this,t),this.backend=e,this.injector=n,this.chain=null}return a(t,[{key:"handle",value:function(t){if(null===this.chain){var e=this.injector.get(of,[]);this.chain=e.reduceRight(function(t,e){return new rf(t,e)},this.backend)}return this.chain.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(Vd),Fi(Ua))},t.\u0275prov=Ot({token:t,factory:t.\u0275fac}),t}(),gf=function(){var t=function(){function t(){s(this,t)}return a(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:ff,useClass:af}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:uf,useValue:e.cookieName}:[],e.headerName?{provide:cf,useValue:e.headerName}:[]]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[ff,{provide:of,useExisting:ff,multi:!0},{provide:hf,useClass:df},{provide:uf,useValue:"XSRF-TOKEN"},{provide:cf,useValue:"X-XSRF-TOKEN"}]}),t}(),mf=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[nf,{provide:Fd,useClass:pf},lf,{provide:Vd,useExisting:lf}],imports:[[gf.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t}(),vf=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this))._value=t,i}return a(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(t){var e=r(i(n.prototype),"_subscribe",this).call(this,t);return e&&!e.closed&&t.next(this._value),e}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new H;return this._value}},{key:"next",value:function(t){r(i(n.prototype),"next",this).call(this,this._value=t)}}]),n}(U),yf=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"notifyNext",value:function(t,e,n,i,r){this.destination.next(e)}},{key:"notifyError",value:function(t,e){this.destination.error(t)}},{key:"notifyComplete",value:function(t){this.destination.complete()}}]),n}(R),_f=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this)).parent=t,o.outerValue=i,o.outerIndex=r,o.index=0,o}return a(n,[{key:"_next",value:function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}},{key:"_error",value:function(t){this.parent.notifyError(t,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(R);function bf(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new _f(t,n,i);if(!r.closed)return e instanceof z?e.subscribe(r):et(e)(r)}var wf={};function xf(){for(var t=arguments.length,e=new Array(t),n=0;n=2&&(n=!0),function(i){return i.lift(new Bf(t,e,n))}}var Bf=function(){function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s(this,t),this.accumulator=e,this.seed=n,this.hasSeed=i}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new Hf(t,this.accumulator,this.seed,this.hasSeed))}}]),t}(),Hf=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this,t)).accumulator=i,a._seed=r,a.hasSeed=o,a.index=0,a}return a(n,[{key:"seed",get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t}},{key:"_next",value:function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}},{key:"_tryNext",value:function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(i){this.destination.error(i)}this.seed=e,this.destination.next(e)}}]),n}(R);function jf(t){return function(e){var n=new Gf(t),i=e.lift(n);return n.caught=i}}var Gf=function(){function t(e){s(this,t),this.selector=e}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new Uf(t,this.selector,this.caught))}}]),t}(),Uf=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,t)).selector=i,o.caught=r,o}return a(n,[{key:"error",value:function(t){if(!this.isStopped){var e;try{e=this.selector(t,this.caught)}catch(s){return void r(i(n.prototype),"error",this).call(this,s)}this._unsubscribeAndRecycle();var o=new rt(this);this.add(o);var a=at(e,o);a!==o&&this.add(a)}}}]),n}(ot);function Wf(t){return function(e){return 0===t?Tf():e.lift(new Yf(t))}}var Yf=function(){function t(e){if(s(this,t),this.total=e,this.total<0)throw new Rf}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new qf(t,this.total))}}]),t}(),qf=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t)).total=i,r.ring=new Array,r.count=0,r}return a(n,[{key:"_next",value:function(t){var e=this.ring,n=this.total,i=this.count++;e.length0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r0&&void 0!==arguments[0]?arguments[0]:$f;return function(e){return e.lift(new Zf(t))}}var Zf=function(){function t(e){s(this,t),this.errorFactory=e}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new Kf(t,this.errorFactory))}}]),t}(),Kf=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t)).errorFactory=i,r.hasValue=!1,r}return a(n,[{key:"_next",value:function(t){this.hasValue=!0,this.destination.next(t)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}]),n}(R);function $f(){return new Cf}function Qf(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new Jf(t))}}var Jf=function(){function t(e){s(this,t),this.defaultValue=e}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new tp(t,this.defaultValue))}}]),t}(),tp=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t)).defaultValue=i,r.isEmpty=!0,r}return a(n,[{key:"_next",value:function(t){this.isEmpty=!1,this.destination.next(t)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(R);function ep(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?Rd(function(e,n){return t(e,n,i)}):F,Lf(1),n?Qf(e):Xf(function(){return new Cf}))}}function np(){}function ip(t,e,n){return function(i){return i.lift(new rp(t,e,n))}}var rp=function(){function t(e,n,i){s(this,t),this.nextOrObserver=e,this.error=n,this.complete=i}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new op(t,this.nextOrObserver,this.error,this.complete))}}]),t}(),op=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this,t))._tapNext=np,a._tapError=np,a._tapComplete=np,a._tapError=r||np,a._tapComplete=o||np,C(i)?(a._context=d(a),a._tapNext=i):i&&(a._context=i,a._tapNext=i.next||np,a._tapError=i.error||np,a._tapComplete=i.complete||np),a}return a(n,[{key:"_next",value:function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}},{key:"_error",value:function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}]),n}(R),ap=function(){function t(e){s(this,t),this.callback=e}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new sp(t,this.callback))}}]),t}(),sp=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t)).add(new M(i)),r}return n}(R),lp=function t(e,n){s(this,t),this.id=e,this.url=n},up=function(t){u(n,t);var e=p(n);function n(t,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return s(this,n),(r=e.call(this,t,i)).navigationTrigger=o,r.restoredState=a,r}return a(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(lp),cp=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,t,i)).urlAfterRedirects=r,o}return a(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(lp),hp=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,t,i)).reason=r,o}return a(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(lp),dp=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,t,i)).error=r,o}return a(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(lp),fp=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this,t,i)).urlAfterRedirects=r,a.state=o,a}return a(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(lp),pp=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this,t,i)).urlAfterRedirects=r,a.state=o,a}return a(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(lp),gp=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a){var l;return s(this,n),(l=e.call(this,t,i)).urlAfterRedirects=r,l.state=o,l.shouldActivate=a,l}return a(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(lp),mp=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this,t,i)).urlAfterRedirects=r,a.state=o,a}return a(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(lp),vp=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this,t,i)).urlAfterRedirects=r,a.state=o,a}return a(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(lp),yp=function(){function t(e){s(this,t),this.route=e}return a(t,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),t}(),_p=function(){function t(e){s(this,t),this.route=e}return a(t,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),t}(),bp=function(){function t(e){s(this,t),this.snapshot=e}return a(t,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),wp=function(){function t(e){s(this,t),this.snapshot=e}return a(t,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),xp=function(){function t(e){s(this,t),this.snapshot=e}return a(t,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),kp=function(){function t(e){s(this,t),this.snapshot=e}return a(t,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),Sp=function(){function t(e,n,i){s(this,t),this.routerEvent=e,this.position=n,this.anchor=i}return a(t,[{key:"toString",value:function(){var t=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(t,"')")}}]),t}(),Cp="primary",Ap=function(){function t(e){s(this,t),this.params=e||{}}return a(t,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null}},{key:"getAll",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),t}();function Mp(t){return new Ap(t)}function Ip(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Tp(t,e,n){var i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.length0?t[t.length-1]:null}function Rp(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Lp(t){return ws(t)?t:_s(t)?it(Promise.resolve(t)):Od(t)}var Np={exact:function t(e,n,i){if(!Wp(e.segments,n.segments))return!1;if(!Hp(e.segments,n.segments,i))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r],i))return!1}return!0},subset:zp},Fp={exact:function(t,e){return Dp(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return Ep(t[n],e[n])})},ignored:function(){return!0}};function Vp(t,e,n){return Np[n.paths](t.root,e.root,n.matrixParams)&&Fp[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function zp(t,e,n){return Bp(t,e,e.segments,n)}function Bp(t,e,n,i){if(t.segments.length>n.length){var r=t.segments.slice(0,n.length);return!!Wp(r,n)&&!e.hasChildren()&&!!Hp(r,n,i)}if(t.segments.length===n.length){if(!Wp(t.segments,n))return!1;if(!Hp(t.segments,n,i))return!1;for(var o in e.children){if(!t.children[o])return!1;if(!zp(t.children[o],e.children[o],i))return!1}return!0}var a=n.slice(0,t.segments.length),s=n.slice(t.segments.length);return!!Wp(t.segments,a)&&!!Hp(t.segments,a,i)&&!!t.children.primary&&Bp(t.children.primary,e,s,i)}function Hp(t,e,n){return e.every(function(e,i){return Fp[n](t[i].parameters,e.parameters)})}var jp=function(){function t(e,n,i){s(this,t),this.root=e,this.queryParams=n,this.fragment=i}return a(t,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Mp(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Xp.serialize(this)}}]),t}(),Gp=function(){function t(e,n){var i=this;s(this,t),this.segments=e,this.children=n,this.parent=null,Rp(n,function(t,e){return t.parent=i})}return a(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return Zp(this)}}]),t}(),Up=function(){function t(e,n){s(this,t),this.path=e,this.parameters=n}return a(t,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Mp(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return ng(this)}}]),t}();function Wp(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}var Yp=function t(){s(this,t)},qp=function(){function t(){s(this,t)}return a(t,[{key:"parse",value:function(t){var e=new sg(t);return new jp(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){var e,n,i="/".concat(Kp(t.root,!0)),r=(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return"".concat(Qp(t),"=").concat(Qp(e))}).join("&"):"".concat(Qp(t),"=").concat(Qp(n))}).filter(function(t){return!!t})).length?"?".concat(n.join("&")):""),o="string"==typeof t.fragment?"#".concat(encodeURI(t.fragment)):"";return"".concat(i).concat(r).concat(o)}}]),t}(),Xp=new qp;function Zp(t){return t.segments.map(function(t){return ng(t)}).join("/")}function Kp(t,e){if(!t.hasChildren())return Zp(t);if(e){var n=t.children.primary?Kp(t.children.primary,!1):"",i=[];return Rp(t.children,function(t,e){e!==Cp&&i.push("".concat(e,":").concat(Kp(t,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=function(t,e){var n=[];return Rp(t.children,function(t,i){i===Cp&&(n=n.concat(e(t,i)))}),Rp(t.children,function(t,i){i!==Cp&&(n=n.concat(e(t,i)))}),n}(t,function(e,n){return n===Cp?[Kp(t.children.primary,!1)]:["".concat(n,":").concat(Kp(e,!1))]});return 1===Object.keys(t.children).length&&null!=t.children.primary?"".concat(Zp(t),"/").concat(r[0]):"".concat(Zp(t),"/(").concat(r.join("//"),")")}function $p(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Qp(t){return $p(t).replace(/%3B/gi,";")}function Jp(t){return $p(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function tg(t){return decodeURIComponent(t)}function eg(t){return tg(t.replace(/\+/g,"%20"))}function ng(t){return"".concat(Jp(t.path)).concat((e=t.parameters,Object.keys(e).map(function(t){return";".concat(Jp(t),"=").concat(Jp(e[t]))}).join("")));var e}var ig=/^[^\/()?;=#]+/;function rg(t){var e=t.match(ig);return e?e[0]:""}var og=/^[^=?&#]+/,ag=/^[^?&#]+/,sg=function(){function t(e){s(this,t),this.url=e,this.remaining=e}return a(t,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Gp([],{}):new Gp([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new Gp(t,e)),n}},{key:"parseSegment",value:function(){var t=rg(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new Up(tg(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=rg(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var i=rg(this.remaining);i&&this.capture(n=i)}t[tg(e)]=tg(n)}}},{key:"parseQueryParam",value:function(t){var e=function(t){var e=t.match(og);return e?e[0]:""}(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var i=function(t){var e=t.match(ag);return e?e[0]:""}(this.remaining);i&&this.capture(n=i)}var r=eg(e),o=eg(n);if(t.hasOwnProperty(r)){var a=t[r];Array.isArray(a)||(t[r]=a=[a]),a.push(o)}else t[r]=o}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=rg(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r=Cp);var o=this.parseChildren();e[r]=1===Object.keys(o).length?o.primary:new Gp([],o),this.consumeOptional("//")}return e}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),t}(),lg=function(){function t(e){s(this,t),this._root=e}return a(t,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}},{key:"children",value:function(t){var e=ug(t,this._root);return e?e.children.map(function(t){return t.value}):[]}},{key:"firstChild",value:function(t){var e=ug(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=cg(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})}},{key:"pathFromRoot",value:function(t){return cg(t,this._root).map(function(t){return t.value})}}]),t}();function ug(t,e){if(t===e.value)return e;var n,i=v(e.children);try{for(i.s();!(n=i.n()).done;){var r=ug(t,n.value);if(r)return r}}catch(o){i.e(o)}finally{i.f()}return null}function cg(t,e){if(t===e.value)return[e];var n,i=v(e.children);try{for(i.s();!(n=i.n()).done;){var r=cg(t,n.value);if(r.length)return r.unshift(e),r}}catch(o){i.e(o)}finally{i.f()}return[]}var hg=function(){function t(e,n){s(this,t),this.value=e,this.children=n}return a(t,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),t}();function dg(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var fg=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t)).snapshot=i,bg(d(r),t),r}return a(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(lg);function pg(t,e){var n=function(t,e){var n=new yg([],{},{},"",{},Cp,e,null,t.root,-1,{});return new _g("",new hg(n,[]))}(t,e),i=new vf([new Up("",{})]),r=new vf({}),o=new vf({}),a=new vf({}),s=new vf(""),l=new gg(i,r,a,s,o,Cp,e,n.root);return l.snapshot=n.root,new fg(new hg(l,[]),n)}var gg=function(){function t(e,n,i,r,o,a,l,u){s(this,t),this.url=e,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=l,this._futureSnapshot=u}return a(t,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(q(function(t){return Mp(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(q(function(t){return Mp(t)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),t}();function mg(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=t.pathFromRoot,i=0;if("always"!==e)for(i=n.length-1;i>=1;){var r=n[i],o=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return vg(n.slice(i))}function vg(t){return t.reduce(function(t,e){return{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:{}})}var yg=function(){function t(e,n,i,r,o,a,l,u,c,h,d){s(this,t),this.url=e,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=l,this.routeConfig=u,this._urlSegment=c,this._lastPathIndex=h,this._resolve=d}return a(t,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=Mp(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Mp(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){var t=this.url.map(function(t){return t.toString()}).join("/"),e=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(t,"', path:'").concat(e,"')")}}]),t}(),_g=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,i)).url=t,bg(d(r),i),r}return a(n,[{key:"toString",value:function(){return wg(this._root)}}]),n}(lg);function bg(t,e){e.value._routerState=t,e.children.forEach(function(e){return bg(t,e)})}function wg(t){var e=t.children.length>0?" { ".concat(t.children.map(wg).join(", ")," } "):"";return"".concat(t.value).concat(e)}function xg(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Dp(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Dp(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;nr;){if(o-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new Og(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(o,e,t),s=a.processChildren?Rg(a.segmentGroup,a.index,o.commands):Pg(a.segmentGroup,a.index,o.commands);return Tg(a.segmentGroup,s,e,i,r)}function Mg(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Ig(t){return"object"==typeof t&&null!=t&&t.outlets}function Tg(t,e,n,i,r){var o={};return i&&Rp(i,function(t,e){o[e]=Array.isArray(t)?t.map(function(t){return"".concat(t)}):"".concat(t)}),new jp(n.root===t?e:Dg(n.root,t,e),o,r)}function Dg(t,e,n){var i={};return Rp(t.children,function(t,r){i[r]=t===e?n:Dg(t,e,n)}),new Gp(t.segments,i)}var Eg=function(){function t(e,n,i){if(s(this,t),this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=i,e&&i.length>0&&Mg(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(Ig);if(r&&r!==Pp(i))throw new Error("{outlets:{}} has to be the last command")}return a(t,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),t}(),Og=function t(e,n,i){s(this,t),this.segmentGroup=e,this.processChildren=n,this.index=i};function Pg(t,e,n){if(t||(t=new Gp([],{})),0===t.segments.length&&t.hasChildren())return Rg(t,e,n);var i=function(t,e,n){for(var i=0,r=e,o={match:!1,pathIndex:0,commandIndex:0};r=n.length)return o;var a=t.segments[r],s=n[i];if(Ig(s))break;var l="".concat(s),u=i0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!Vg(l,u,a))return o;i+=2}else{if(!Vg(l,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0)?Object.assign({},Jg):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(e.matcher||Tp)(n,t,e);if(!r)return Object.assign({},Jg);var o={};Rp(r.posParams,function(t,e){o[e]=t.path});var a=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function em(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&rm(t,n,i)){var o=new Gp(e,im(t,e,i,new Gp(n,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&om(t,n,i)){var a=new Gp(t.segments,nm(t,e,n,i,t.children,r));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:n}}var s=new Gp(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function nm(t,e,n,i,r,o){var a,s={},l=v(i);try{for(l.s();!(a=l.n()).done;){var u=a.value;if(am(t,n,u)&&!r[$g(u)]){var c=new Gp([],{});c._sourceSegment=t,c._segmentIndexShift="legacy"===o?t.segments.length:e.length,s[$g(u)]=c}}}catch(h){l.e(h)}finally{l.f()}return Object.assign(Object.assign({},r),s)}function im(t,e,n,i){var r={};r.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;var o,a=v(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&$g(s)!==Cp){var l=new Gp([],{});l._sourceSegment=t,l._segmentIndexShift=e.length,r[$g(s)]=l}}}catch(u){a.e(u)}finally{a.f()}return r}function rm(t,e,n){return n.some(function(n){return am(t,e,n)&&$g(n)!==Cp})}function om(t,e,n){return n.some(function(n){return am(t,e,n)})}function am(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function sm(t,e,n,i){return!!($g(t)===i||i!==Cp&&am(e,n,t))&&("**"===t.path||tm(e,t,n).matched)}function lm(t,e,n){return 0===e.length&&!t.children[n]}var um=function t(e){s(this,t),this.segmentGroup=e||null},cm=function t(e){s(this,t),this.urlTree=e};function hm(t){return new z(function(e){return e.error(new um(t))})}function dm(t){return new z(function(e){return e.error(new cm(t))})}function fm(t){return new z(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(t,"'")))})}var pm=function(){function t(e,n,i,r,o){s(this,t),this.configLoader=n,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=e.get(au)}return a(t,[{key:"apply",value:function(){var t=this,e=em(this.urlTree.root,[],[],this.config).segmentGroup,n=new Gp(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,n,Cp).pipe(q(function(e){return t.createUrlTree(gm(e),t.urlTree.queryParams,t.urlTree.fragment)})).pipe(jf(function(e){if(e instanceof cm)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof um)throw t.noMatchError(e);throw e}))}},{key:"match",value:function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,Cp).pipe(q(function(n){return e.createUrlTree(gm(n),t.queryParams,t.fragment)})).pipe(jf(function(t){if(t instanceof um)throw e.noMatchError(t);throw t}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,e,n){var i=t.segments.length>0?new Gp([],_({},Cp,t)):t;return new jp(i,e,n)}},{key:"expandSegmentGroup",value:function(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(q(function(t){return new Gp([],t)})):this.expandSegment(t,n,e,n.segments,i,!0)}},{key:"expandChildren",value:function(t,e,n){for(var i=this,r=[],o=0,a=Object.keys(n.children);o=2;return function(i){return i.pipe(t?Rd(function(e,n){return t(e,n,i)}):F,Wf(1),n?Qf(e):Xf(function(){return new Cf}))}}())}},{key:"expandSegment",value:function(t,e,n,i,r,o){var a=this;return it(n).pipe(Pd(function(s){return a.expandSegmentAgainstRoute(t,e,n,s,i,r,o).pipe(jf(function(t){if(t instanceof um)return Od(null);throw t}))}),ep(function(t){return!!t}),jf(function(t,n){if(t instanceof Cf||"EmptyError"===t.name){if(lm(e,i,r))return Od(new Gp([],{}));throw new um(e)}throw t}))}},{key:"expandSegmentAgainstRoute",value:function(t,e,n,i,r,o,a){return sm(i,e,r,o)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o):hm(e):hm(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,n,i){var r=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?dm(o):this.lineralizeSegments(n,o).pipe(st(function(n){var o=new Gp(n,{});return r.expandSegment(t,o,e,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,n,i,r,o){var a=this,s=tm(e,i,r),l=s.consumedSegments,u=s.lastChild,c=s.positionalParamSegments;if(!s.matched)return hm(e);var h=this.applyRedirectCommands(l,i.redirectTo,c);return i.redirectTo.startsWith("/")?dm(h):this.lineralizeSegments(i,h).pipe(st(function(i){return a.expandSegment(t,e,n,i.concat(r.slice(u)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,e,n,i,r){var o=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?Od(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe(q(function(t){return n._loadedConfig=t,new Gp(i,{})})):Od(new Gp(i,{}));var a=tm(e,n,i),s=a.consumedSegments,l=a.lastChild;if(!a.matched)return hm(e);var u=i.slice(l);return this.getChildConfig(t,n,i).pipe(st(function(t){var i=t.module,a=t.routes,l=em(e,s,u,a),c=l.segmentGroup,h=l.slicedSegments,d=new Gp(c.segments,c.children);if(0===h.length&&d.hasChildren())return o.expandChildren(i,a,d).pipe(q(function(t){return new Gp(s,t)}));if(0===a.length&&0===h.length)return Od(new Gp(s,{}));var f=$g(n)===r;return o.expandSegment(i,d,a,h,f?Cp:r,!0).pipe(q(function(t){return new Gp(s.concat(t.segments),t.children)}))}))}},{key:"getChildConfig",value:function(t,e,n){var i=this;return e.children?Od(new Hg(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Od(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(st(function(n){return n?i.configLoader.load(t.injector,e).pipe(q(function(t){return e._loadedConfig=t,t})):function(t){return new z(function(e){return e.error(Ip("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))})}(e)})):Od(new Hg([],t))}},{key:"runCanLoadGuards",value:function(t,e,n){var i=this,r=e.canLoad;return r&&0!==r.length?Od(r.map(function(i){var r,o=t.get(i);if(function(t){return t&&jg(t.canLoad)}(o))r=o.canLoad(e,n);else{if(!jg(o))throw new Error("Invalid CanLoad guard");r=o(e,n)}return Lp(r)})).pipe(Wg(),ip(function(t){if(Gg(t)){var e=Ip('Redirecting to "'.concat(i.urlSerializer.serialize(t),'"'));throw e.url=t,e}}),q(function(t){return!0===t})):Od(!0)}},{key:"lineralizeSegments",value:function(t,e){for(var n=[],i=e.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Od(n);if(i.numberOfChildren>1||!i.children.primary)return fm(t.redirectTo);i=i.children.primary}}},{key:"applyRedirectCommands",value:function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,n,i){var r=this.createSegmentGroup(t,e.root,n,i);return new jp(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var n={};return Rp(t,function(t,i){if("string"==typeof t&&t.startsWith(":")){var r=t.substring(1);n[i]=e[r]}else n[i]=t}),n}},{key:"createSegmentGroup",value:function(t,e,n,i){var r=this,o=this.createSegments(t,e.segments,n,i),a={};return Rp(e.children,function(e,o){a[o]=r.createSegmentGroup(t,e,n,i)}),new Gp(o,a)}},{key:"createSegments",value:function(t,e,n,i){var r=this;return e.map(function(e){return e.path.startsWith(":")?r.findPosParam(t,e,i):r.findOrReturn(e,n)})}},{key:"findPosParam",value:function(t,e,n){var i=n[e.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return i}},{key:"findOrReturn",value:function(t,e){var n,i=0,r=v(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.path===t.path)return e.splice(i),o;i++}}catch(a){r.e(a)}finally{r.f()}return t}}]),t}();function gm(t){for(var e={},n=0,i=Object.keys(t.children);n0||o.hasChildren())&&(e[r]=o)}return function(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new Gp(t.segments.concat(e.segments),e.children)}return t}(new Gp(t.segments,e))}var mm=function t(e){s(this,t),this.path=e,this.route=this.path[this.path.length-1]},vm=function t(e,n){s(this,t),this.component=e,this.route=n};function ym(t,e,n){var i=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function _m(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=dg(e);return t.children.forEach(function(t){bm(t,o[t.value.outlet],n,i.concat([t.value]),r),delete o[t.value.outlet]}),Rp(o,function(t,e){return xm(t,n.getContext(e),r)}),r}function bm(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=t.value,a=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var l=wm(a,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new mm(i)):(o.data=a.data,o._resolvedData=a._resolvedData),_m(t,e,o.component?s?s.children:null:n,i,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new vm(s.outlet.component,a))}else a&&xm(e,s,r),r.canActivateChecks.push(new mm(i)),_m(t,null,o.component?s?s.children:null:n,i,r);return r}function wm(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Wp(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Wp(t.url,e.url)||!Dp(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!kg(t,e)||!Dp(t.queryParams,e.queryParams);case"paramsChange":default:return!kg(t,e)}}function xm(t,e,n){var i=dg(t),r=t.value;Rp(i,function(t,i){xm(t,r.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new vm(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}var km=function t(){s(this,t)};function Sm(t){return new z(function(e){return e.error(t)})}var Cm=function(){function t(e,n,i,r,o,a){s(this,t),this.rootComponentType=e,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return a(t,[{key:"recognize",value:function(){var t=em(this.urlTree.root,[],[],this.config.filter(function(t){return void 0===t.redirectTo}),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Cp);if(null===e)return null;var n=new yg([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Cp,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new hg(n,e),r=new _g(this.url,i);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(t){var e=this,n=t.value,i=mg(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})}},{key:"processSegmentGroup",value:function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}},{key:"processChildren",value:function(t,e){for(var n=[],i=0,r=Object.keys(e.children);i0?Pp(n).parameters:{};r=new yg(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Tm(t),$g(t),t.component,t,Mm(e),Im(e)+n.length,Dm(t))}else{var l=tm(e,t,n);if(!l.matched)return null;o=l.consumedSegments,a=n.slice(l.lastChild),r=new yg(o,l.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Tm(t),$g(t),t.component,t,Mm(e),Im(e)+o.length,Dm(t))}var u=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),c=em(e,o,a,u.filter(function(t){return void 0===t.redirectTo}),this.relativeLinkResolution),h=c.segmentGroup,d=c.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(u,h);return null===f?null:[new hg(r,f)]}if(0===u.length&&0===d.length)return[new hg(r,[])];var p=$g(t)===i,g=this.processSegment(u,h,d,p?Cp:i);return null===g?null:[new hg(r,g)]}}]),t}();function Am(t){var e,n=[],i=new Set,r=v(t);try{var o=function(){var t=e.value;if(!function(t){var e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}(t))return n.push(t),"continue";var r,o=n.find(function(e){return t.value.routeConfig===e.value.routeConfig});void 0!==o?((r=o.children).push.apply(r,b(t.children)),i.add(o)):n.push(t)};for(r.s();!(e=r.n()).done;)o()}catch(c){r.e(c)}finally{r.f()}var a,s=v(i);try{for(s.s();!(a=s.n()).done;){var l=a.value,u=Am(l.children);n.push(new hg(l.value,u))}}catch(c){s.e(c)}finally{s.f()}return n.filter(function(t){return!i.has(t)})}function Mm(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Im(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Tm(t){return t.data||{}}function Dm(t){return t.resolve||{}}function Em(t){return Ef(function(e){var n=t(e);return n?it(n).pipe(q(function(){return e})):Od(e)})}var Om=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return n}(function(){function t(){s(this,t)}return a(t,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,e){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,e){return t.routeConfig===e.routeConfig}}]),t}()),Pm=new _i("ROUTES"),Rm=function(){function t(e,n,i,r){s(this,t),this.loader=e,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return a(t,[{key:"load",value:function(t,e){var n=this;if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);var i=this.loadModuleFactory(e.loadChildren).pipe(q(function(i){n.onLoadEndListener&&n.onLoadEndListener(e);var r=i.create(t);return new Hg(Op(r.injector.get(Pm,void 0,jt.Self|jt.Optional)).map(Kg),r)}),jf(function(t){throw e._loader$=void 0,t}));return e._loader$=new mt(i,function(){return new U}).pipe(ft()),e._loader$}},{key:"loadModuleFactory",value:function(t){var e=this;return"string"==typeof t?it(this.loader.load(t)):Lp(t()).pipe(st(function(t){return t instanceof su?Od(t):it(e.compiler.compileModuleAsync(t))}))}}]),t}(),Lm=function t(){s(this,t),this.outlet=null,this.route=null,this.resolver=null,this.children=new Nm,this.attachRef=null},Nm=function(){function t(){s(this,t),this.contexts=new Map}return a(t,[{key:"onChildOutletCreated",value:function(t,e){var n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}},{key:"onChildOutletDestroyed",value:function(t){var e=this.getContext(t);e&&(e.outlet=null)}},{key:"onOutletDeactivated",value:function(){var t=this.contexts;return this.contexts=new Map,t}},{key:"onOutletReAttached",value:function(t){this.contexts=t}},{key:"getOrCreateContext",value:function(t){var e=this.getContext(t);return e||(e=new Lm,this.contexts.set(t,e)),e}},{key:"getContext",value:function(t){return this.contexts.get(t)||null}}]),t}(),Fm=function(){function t(){s(this,t)}return a(t,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,e){return t}}]),t}();function Vm(t){throw t}function zm(t,e,n){return e.parse("/")}function Bm(t,e){return Od(null)}var Hm={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},jm={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Gm=function(){var t=function(){function t(e,n,i,r,o,a,l,u){var c=this;s(this,t),this.rootComponentType=e,this.urlSerializer=n,this.rootContexts=i,this.location=r,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new U,this.errorHandler=Vm,this.malformedUriErrorHandler=zm,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Bm,afterPreactivation:Bm},this.urlHandlingStrategy=new Fm,this.routeReuseStrategy=new Om,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(au),this.console=o.get(uc);var h=o.get(xc);this.isNgZoneEnabled=h instanceof xc&&xc.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=new jp(new Gp([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Rm(a,l,function(t){return c.triggerEvent(new yp(t))},function(t){return c.triggerEvent(new _p(t))}),this.routerState=pg(this.currentUrlTree,this.rootComponentType),this.transitions=new vf({id:0,targetPageId: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()}return a(t,[{key:"setupNavigations",value:function(t){var e=this,n=this.events;return t.pipe(Rd(function(t){return 0!==t.id}),q(function(t){return Object.assign(Object.assign({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),Ef(function(t){var i,r,o,a,s=!1,l=!1;return Od(t).pipe(ip(function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object.assign(Object.assign({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Ef(function(t){var i=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||i)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Od(t).pipe(Ef(function(t){var i=e.transitions.getValue();return n.next(new up(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==e.transitions.getValue()?If:Promise.resolve(t)}),function(t,e,n,i){return Ef(function(r){return function(t,e,n,i,r){return new pm(t,e,n,i,r).apply()}(t,e,n,r.extractedUrl,i).pipe(q(function(t){return Object.assign(Object.assign({},r),{urlAfterRedirects:t})}))})}(e.ngModule.injector,e.configLoader,e.urlSerializer,e.config),ip(function(t){e.currentNavigation=Object.assign(Object.assign({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,n,i,r,o){return st(function(i){return function(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var a=new Cm(t,e,n,i,r,o).recognize();return null===a?Sm(new km):Od(a)}catch(s){return Sm(s)}}(t,n,i.urlAfterRedirects,(a=i.urlAfterRedirects,e.serializeUrl(a)),r,o).pipe(q(function(t){return Object.assign(Object.assign({},i),{targetSnapshot:t})}));var a})}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),ip(function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,t),e.browserUrlTree=t.urlAfterRedirects);var i=new fp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(i)}));if(i&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var r=t.extractedUrl,o=t.source,a=t.restoredState,s=t.extras,l=new up(t.id,e.serializeUrl(r),o,a);n.next(l);var u=pg(r,e.rootComponentType).snapshot;return Od(Object.assign(Object.assign({},t),{targetSnapshot:u,urlAfterRedirects:r,extras:Object.assign(Object.assign({},s),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),If}),Em(function(t){var n=t.extras;return e.hooks.beforePreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),ip(function(t){var n=new pp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),q(function(t){return Object.assign(Object.assign({},t),{guards:(n=t.targetSnapshot,i=t.currentSnapshot,r=e.rootContexts,o=n._root,_m(o,i?i._root:null,r,[o.value]))});var n,i,r,o}),function(t,e){return st(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?Od(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return it(t).pipe(st(function(t){return function(t,e,n,i,r){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?Od(o.map(function(o){var a,s=ym(o,e,r);if(function(t){return t&&jg(t.canDeactivate)}(s))a=Lp(s.canDeactivate(t,e,n,i));else{if(!jg(s))throw new Error("Invalid CanDeactivate guard");a=Lp(s(t,e,n,i))}return a.pipe(ep())})).pipe(Wg()):Od(!0)}(t.component,t.route,n,e,i)}),ep(function(t){return!0!==t},!0))}(s,i,r,t).pipe(st(function(n){return n&&"boolean"==typeof n?function(t,e,n,i){return it(e).pipe(Pd(function(e){return Mf(function(t,e){return null!==t&&e&&e(new bp(t)),Od(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new xp(t)),Od(!0)}(e.route,i),function(t,e,n){var i=e[e.length-1],r=e.slice(0,e.length-1).reverse().map(function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)}).filter(function(t){return null!==t}).map(function(e){return Df(function(){return Od(e.guards.map(function(r){var o,a=ym(r,e.node,n);if(function(t){return t&&jg(t.canActivateChild)}(a))o=Lp(a.canActivateChild(i,t));else{if(!jg(a))throw new Error("Invalid CanActivateChild guard");o=Lp(a(i,t))}return o.pipe(ep())})).pipe(Wg())})});return Od(r).pipe(Wg())}(t,e.path,n),function(t,e,n){var i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?Od(i.map(function(i){return Df(function(){var r,o=ym(i,e,n);if(function(t){return t&&jg(t.canActivate)}(o))r=Lp(o.canActivate(e,t));else{if(!jg(o))throw new Error("Invalid CanActivate guard");r=Lp(o(e,t))}return r.pipe(ep())})})).pipe(Wg()):Od(!0)}(t,e.route,n))}),ep(function(t){return!0!==t},!0))}(i,a,t,e):Od(n)}),q(function(t){return Object.assign(Object.assign({},n),{guardsResult:t})}))})}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),ip(function(t){if(Gg(t.guardsResult)){var n=Ip('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw n.url=t.guardsResult,n}var i=new gp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(i)}),Rd(function(t){return!!t.guardsResult||(e.cancelNavigationTransition(t,""),!1)}),Em(function(t){if(t.guards.canActivateChecks.length)return Od(t).pipe(ip(function(t){var n=new mp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),Ef(function(t){var n,i,r=!1;return Od(t).pipe((n=e.paramsInheritanceStrategy,i=e.ngModule.injector,st(function(t){var e=t.targetSnapshot,r=t.guards.canActivateChecks;if(!r.length)return Od(t);var o=0;return it(r).pipe(Pd(function(t){return function(t,e,n,i){return function(t,e,n,i){var r=Object.keys(t);if(0===r.length)return Od({});var o={};return it(r).pipe(st(function(r){return function(t,e,n,i){var r=ym(t,e,i);return Lp(r.resolve?r.resolve(e,n):r(e,n))}(t[r],e,n,i).pipe(ip(function(t){o[r]=t}))}),Wf(1),st(function(){return Object.keys(o).length===r.length?Od(o):If}))}(t._resolve,t,e,i).pipe(q(function(e){return t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),mg(t,n).resolve),null}))}(t.route,e,n,i)}),ip(function(){return o++}),Wf(1),st(function(e){return o===r.length?Od(t):If}))})),ip({next:function(){return r=!0},complete:function(){r||e.cancelNavigationTransition(t,"At least one route resolver didn't emit any value.")}}))}),ip(function(t){var n=new vp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}))}),Em(function(t){var n=t.extras;return e.hooks.afterPreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),q(function(t){var n,i,r,o=(r=Sg(e.routeReuseStrategy,(n=t.targetSnapshot)._root,(i=t.currentRouterState)?i._root:void 0),new fg(r,n));return Object.assign(Object.assign({},t),{targetRouterState:o})}),ip(function(t){e.currentUrlTree=t.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(e.currentUrlTree,t.rawUrl),e.routerState=t.targetRouterState,"deferred"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,t),e.browserUrlTree=t.urlAfterRedirects)}),(r=e.rootContexts,o=e.routeReuseStrategy,a=function(t){return e.triggerEvent(t)},q(function(t){return new zg(o,t.targetRouterState,t.currentRouterState,a).activate(r),t})),ip({next:function(){s=!0},complete:function(){s=!0}}),(i=function(){s||l||e.cancelNavigationTransition(t,"Navigation ID ".concat(t.id," is not equal to the current navigation id ").concat(e.navigationId)),e.currentNavigation=null},function(t){return t.lift(new ap(i))}),jf(function(i){if(l=!0,(s=i)&&s.ngNavigationCancelingError){var r=Gg(i.url);r||(e.navigated=!0,e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));var o=new hp(t.id,e.serializeUrl(t.extractedUrl),i.message);n.next(o),r?setTimeout(function(){var n=e.urlHandlingStrategy.merge(i.url,e.rawUrlTree);e.scheduleNavigation(n,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);var a=new dp(t.id,e.serializeUrl(t.extractedUrl),i);n.next(a);try{t.resolve(e.errorHandler(i))}catch(u){t.reject(u)}}var s;return If}))}))}},{key:"resetRootComponentType",value:function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}},{key:"setTransition",value:function(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var n=t.extractLocationChangeInfoFromEvent(e);t.shouldScheduleNavigation(t.lastLocationChangeInfo,n)&&setTimeout(function(){var e=n.source,i=n.state,r=n.urlTree,o={replaceUrl:!0};if(i){var a=Object.assign({},i);delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(o.state=a)}t.scheduleNavigation(r,e,i,o)},0),t.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(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}}},{key:"shouldScheduleNavigation",value:function(t,e){if(!t)return!0;var n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(t){this.events.next(t)}},{key:"resetConfig",value:function(t){qg(t),this.config=t.map(Kg),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.relativeTo,i=e.queryParams,r=e.fragment,o=e.queryParamsHandling,a=e.preserveFragment,s=n||this.routerState.root,l=a?this.currentUrlTree.fragment:r,u=null;switch(o){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}return null!==u&&(u=this.removeEmptyProps(u)),Ag(s,this.currentUrlTree,t,u,null!=l?l:null)}},{key:"navigateByUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=Gg(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree),r=null;if("computed"===this.canceledNavigationResolution){var o=0===this.currentPageId;(o||e.skipLocationChange||e.replaceUrl)&&(r=this.location.getState())}return this.scheduleNavigation(i,"imperative",r,e)}},{key:"navigate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return Um(t),this.navigateByUrl(this.createUrlTree(t,e),e)}},{key:"serializeUrl",value:function(t){return this.urlSerializer.serialize(t)}},{key:"parseUrl",value:function(t){var e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}},{key:"isActive",value:function(t,e){var n;if(n=!0===e?Object.assign({},Hm):!1===e?Object.assign({},jm):e,Gg(t))return Vp(this.currentUrlTree,t,n);var i=this.parseUrl(t);return Vp(this.currentUrlTree,i,n)}},{key:"removeEmptyProps",value:function(t){return Object.keys(t).reduce(function(e,n){var i=t[n];return null!=i&&(e[n]=i),e},{})}},{key:"processNavigations",value:function(){var t=this;this.navigations.subscribe(function(e){t.navigated=!0,t.lastSuccessfulId=e.id,t.currentPageId=e.targetPageId,t.events.next(new cp(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(t.currentUrlTree))),t.lastSuccessfulNavigation=t.currentNavigation,e.resolve(!0)},function(e){t.console.warn("Unhandled Navigation Error: ")})}},{key:"scheduleNavigation",value:function(t,e,n,i,r){if(this.disposed)return Promise.resolve(!1);var o,a,s,l=this.getTransition(),u="imperative"!==e&&"imperative"===(null==l?void 0:l.source),c=(this.lastSuccessfulId===l.id||this.currentNavigation?l.rawUrl:l.urlAfterRedirects).toString()===t.toString();if(u&&c)return Promise.resolve(!0);r?(o=r.resolve,a=r.reject,s=r.promise):s=new Promise(function(t,e){o=t,a=e});var h=++this.navigationId;return this.setTransition({id:h,targetPageId:"computed"===this.canceledNavigationResolution?n&&n.\u0275routerPageId?n.\u0275routerPageId:this.currentPageId+1:0,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:o,reject:a,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch(function(t){return Promise.reject(t)})}},{key:"setBrowserUrl",value:function(t,e){var n=this.urlSerializer.serialize(t),i=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(n)||e.extras.replaceUrl?this.location.replaceState(n,"",i):this.location.go(n,"",i)}},{key:"resetStateAndUrl",value:function(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(t,e){"computed"===this.canceledNavigationResolution?"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy||this.location.historyGo(this.currentPageId-t.targetPageId):this.resetUrlToCurrentUrlTree();var n=new hp(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(n),t.resolve(!1)}},{key:"generateNgRouterState",value:function(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(wi),Fi(Yp),Fi(Nm),Fi(_h),Fi(Ua),Fi(qc),Fi(_c),Fi(void 0))},t.\u0275prov=Ot({token:t,factory:t.\u0275fac}),t}();function Um(t){for(var e=0;e2&&void 0!==arguments[2]?arguments[2]:{};s(this,t),this.router=e,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return a(t,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof up?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof cp&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof Sp&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(t,e){this.router.triggerEvent(new Sp(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(Gm),Fi(Yh),Fi(void 0))},t.\u0275prov=Ot({token:t,factory:t.\u0275fac}),t}(),ev=new _i("ROUTER_CONFIGURATION"),nv=new _i("ROUTER_FORROOT_GUARD"),iv=[_h,{provide:Yp,useClass:qp},{provide:Gm,useFactory:function(t,e,n,i,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9?arguments[9]:void 0,c=new Gm(null,t,e,n,i,r,o,Op(a));return l&&(c.urlHandlingStrategy=l),u&&(c.routeReuseStrategy=u),cv(s,c),s.enableTracing&&c.events.subscribe(function(t){var e,n;null===(e=console.group)||void 0===e||e.call(console,"Router Event: ".concat(t.constructor.name)),console.log(t.toString()),console.log(t),null===(n=console.groupEnd)||void 0===n||n.call(console)}),c},deps:[Yp,Nm,_h,Ua,qc,_c,Pm,ev,[function t(){s(this,t)},new Wi],[function t(){s(this,t)},new Wi]]},Nm,{provide:gg,useFactory:function(t){return t.routerState.root},deps:[Gm]},{provide:qc,useClass:Kc},Jm,Qm,$m,{provide:ev,useValue:{enableTracing:!1}}];function rv(){return new Vc("Router",Gm)}var ov=function(){var t=function(){function t(e,n){s(this,t)}return a(t,null,[{key:"forRoot",value:function(e,n){return{ngModule:t,providers:[iv,uv(e),{provide:nv,useFactory:lv,deps:[[Gm,new Wi,new Yi]]},{provide:ev,useValue:n||{}},{provide:ph,useFactory:sv,deps:[oh,[new Ui(mh),new Wi],ev]},{provide:tv,useFactory:av,deps:[Gm,Yh,ev]},{provide:Km,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Qm},{provide:Vc,multi:!0,useFactory:rv},[hv,{provide:ec,multi:!0,useFactory:dv,deps:[hv]},{provide:pv,useFactory:fv,deps:[hv]},{provide:lc,multi:!0,useExisting:pv}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[uv(e)]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(nv,8),Fi(Gm,8))},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({}),t}();function av(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new tv(t,e,n)}function sv(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new yh(t,e):new vh(t,e)}function lv(t){return"guarded"}function uv(t){return[{provide:bi,multi:!0,useValue:t},{provide:Pm,multi:!0,useValue:t}]}function cv(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}var hv=function(){var t=function(){function t(e){s(this,t),this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new U}return a(t,[{key:"appInitializer",value:function(){var t=this;return this.injector.get(sh,Promise.resolve(null)).then(function(){if(t.destroyed)return Promise.resolve(!0);var e=null,n=new Promise(function(t){return e=t}),i=t.injector.get(Gm),r=t.injector.get(ev);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),e(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return t.initNavigation?Od(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},i.initialNavigation()):e(!0),n})}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(ev),n=this.injector.get(Jm),i=this.injector.get(tv),r=this.injector.get(Gm),o=this.injector.get(Wc);t===o.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(Ua))},t.\u0275prov=Ot({token:t,factory:t.\u0275fac}),t}();function dv(t){return t.appInitializer.bind(t)}function fv(t){return t.bootstrapListener.bind(t)}var pv=new _i("Router Initializer"),gv=function(){function t(t){this.user=t.user,this.role=t.role,this.admin=t.admin}return Object.defineProperty(t.prototype,"isStaff",{get:function(){return"staff"===this.role||"admin"===this.role},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAdmin",{get:function(){return"admin"===this.role},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLogged",{get:function(){return null!=this.user},enumerable:!1,configurable:!0}),t}();function mv(t){return null!=t&&"false"!=="".concat(t)}function vv(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return yv(t)?Number(t):e}function yv(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function _v(t){return Array.isArray(t)?t:[t]}function bv(t){return null==t?"":"string"==typeof t?t:"".concat(t,"px")}function wv(t){return t instanceof Al?t.nativeElement:t}function xv(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,n=[];if(null!=t){var i,r=Array.isArray(t)?t:"".concat(t).split(e),o=v(r);try{for(o.s();!(i=o.n()).done;){var a=i.value,s="".concat(a).trim();s&&n.push(s)}}catch(l){o.e(l)}finally{o.f()}}return n}function kv(t,e,n,i){return C(n)&&(i=n,n=void 0),i?kv(t,e,n).pipe(q(function(t){return k(t)?i.apply(void 0,b(t)):i(t)})):new z(function(i){Sv(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function Sv(t,e,n,i,r){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){var a=t;t.addEventListener(e,n,r),o=function(){return a.removeEventListener(e,n,r)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){var s=t;t.on(e,n),o=function(){return s.off(e,n)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){var l=t;t.addListener(e,n),o=function(){return l.removeListener(e,n)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var u=0,c=t.length;u1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=t;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}},{key:"requestAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(t.flush.bind(t,this),n)}},{key:"recycleAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}},{key:"execute",value:function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(t,e){var n=!1,i=void 0;try{this.work(t)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}},{key:"_unsubscribe",value:function(){var t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}]),n}(function(t){u(n,t);var e=p(n);function n(t,i){return s(this,n),e.call(this)}return a(n,[{key:"schedule",value:function(t){return this}}]),n}(M)),Av=function(){var t=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.now;s(this,t),this.SchedulerAction=e,this.now=n}return a(t,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,t).schedule(n,e)}}]),t}();return t.now=function(){return Date.now()},t}(),Mv=function(t){u(n,t);var e=p(n);function n(t){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Av.now;return s(this,n),(i=e.call(this,t,function(){return n.delegate&&n.delegate!==d(i)?n.delegate.now():r()})).actions=[],i.active=!1,i.scheduled=void 0,i}return a(n,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(t,e,o):r(i(n.prototype),"schedule",this).call(this,t,e,o)}},{key:"flush",value:function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}}]),n}(Av),Iv=1,Tv=function(){return Promise.resolve()}(),Dv={};function Ev(t){return t in Dv&&(delete Dv[t],!0)}var Ov=function(t){var e=Iv++;return Dv[e]=!0,Tv.then(function(){return Ev(e)&&t()}),e},Pv=function(t){Ev(t)},Rv=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t,i)).scheduler=t,r.work=i,r}return a(n,[{key:"requestAsyncId",value:function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==o&&o>0?r(i(n.prototype),"requestAsyncId",this).call(this,t,e,o):(t.actions.push(this),t.scheduled||(t.scheduled=Ov(t.flush.bind(t,null))))}},{key:"recycleAsyncId",value:function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==o&&o>0||null===o&&this.delay>0)return r(i(n.prototype),"recycleAsyncId",this).call(this,t,e,o);0===t.actions.length&&(Pv(e),t.scheduled=void 0)}}]),n}(Cv),Lv=new(function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,i=-1,r=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++i=0}function Uv(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return Gv(e)?i=Number(e)<1?1:Number(e):Y(e)&&(n=e),Y(n)||(n=zv),new z(function(e){var r=Gv(t)?t:+t-n.now();return n.schedule(Wv,r,{index:0,period:i,subscriber:e})})}function Wv(t){var e=t.index,n=t.period,i=t.subscriber;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function Yv(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zv;return Bv(function(){return Uv(t,e)})}function qv(t){return function(e){return e.lift(new Xv(t))}}var Xv=function(){function t(e){s(this,t),this.notifier=e}return a(t,[{key:"call",value:function(t,e){var n=new Zv(t),i=at(this.notifier,new rt(n));return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}]),t}(),Zv=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this,t)).seenValue=!1,i}return a(n,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(ot);function Kv(t,e){return new z(e?function(n){return e.schedule($v,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function $v(t){t.subscriber.error(t.error)}var Qv,Jv=function(){var t=function(){function t(e,n,i){s(this,t),this.kind=e,this.value=n,this.error=i,this.hasValue="N"===e}return a(t,[{key:"observe",value:function(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()}}},{key:"do",value:function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}},{key:"accept",value:function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Od(this.value);case"E":return Kv(this.error);case"C":return Tf()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}},{key:"createError",value:function(e){return new t("E",void 0,e)}},{key:"createComplete",value:function(){return t.completeNotification}}]),t}();return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();try{Qv="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(gH){Qv=!1}var ty,ey,ny,iy,ry=function(){var t=function t(e){s(this,t),this._platformId=e,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&&!Qv)&&"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)(Fi(sc))},t.\u0275prov=Ot({factory:function(){return new t(Fi(sc))},token:t,providedIn:"root"}),t}(),oy=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({}),t}(),ay=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function sy(){if(ty)return ty;if("object"!=typeof document||!document)return ty=new Set(ay);var t=document.createElement("input");return ty=new Set(ay.filter(function(e){return t.setAttribute("type",e),t.type===e}))}function ly(t){return function(){if(null==ey&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return ey=!0}}))}finally{ey=ey||!1}return ey}()?t:!!t.capture}function uy(){if(null==ny){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return ny=!1;if("scrollBehavior"in document.documentElement.style)ny=!0;else{var t=Element.prototype.scrollTo;ny=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return ny}function cy(t){if(function(){if(null==iy){var t="undefined"!=typeof document?document.head:null;iy=!(!t||!t.createShadowRoot&&!t.attachShadow)}return iy}()){var e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function hy(){for(var t="undefined"!=typeof document&&document?document.activeElement:null;t&&t.shadowRoot;){var e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var dy=new _i("cdk-dir-doc",{providedIn:"root",factory:function(){return Vi(rh)}}),fy=function(){var t=function(){function t(e){if(s(this,t),this.value="ltr",this.change=new Lu,e){var n=(e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null);this.value="ltr"===n||"rtl"===n?n:"ltr"}}return a(t,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(dy,8))},t.\u0275prov=Ot({factory:function(){return new t(Fi(dy,8))},token:t,providedIn:"root"}),t}(),py=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({}),t}(),gy=function t(){s(this,t)};function my(t){return t&&"function"==typeof t.connect}var vy=function(){function t(){s(this,t)}return a(t,[{key:"applyChanges",value:function(t,e,n,i,r){t.forEachOperation(function(t,i,o){var a,s;if(null==t.previousIndex){var l=n(t,i,o);a=e.createEmbeddedView(l.templateRef,l.context,l.index),s=1}else null==o?(e.remove(i),s=3):(a=e.get(i),e.move(a,o),s=2);r&&r({context:null==a?void 0:a.context,operation:s,record:t})})}},{key:"detach",value:function(){}}]),t}(),yy=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];s(this,t),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new U,i&&i.length&&(n?i.forEach(function(t){return e._markSelected(t)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return a(t,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new z(function(n){t._globalSubscription||t._addGlobalListener();var i=e>0?t._scrolled.pipe(Yv(e)).subscribe(n):t._scrolled.subscribe(n);return t._scrolledCount++,function(){i.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}}):Od()}},{key:"ngOnDestroy",value:function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(e,n){return t.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Rd(function(t){return!t||n.indexOf(t)>-1}))}},{key:"getAncestorScrollContainers",value:function(t){var e=this,n=[];return this.scrollContainers.forEach(function(i,r){e._scrollableContainsElement(r,t)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(t,e){var n=wv(e),i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return kv(t._getWindow().document,"scroll").subscribe(function(){return t._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(xc),Fi(ry),Fi(rh,8))},t.\u0275prov=Ot({factory:function(){return new t(Fi(xc),Fi(ry),Fi(rh,8))},token:t,providedIn:"root"}),t}(),wy=function(){var t=function(){function t(e,n,i){var r=this;s(this,t),this._platform=e,this._change=new U,this._changeListener=function(t){r._change.next(t)},this._document=i,n.runOutsideAngular(function(){if(e.isBrowser){var t=r._getWindow();t.addEventListener("resize",r._changeListener),t.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._updateViewportSize()})})}return a(t,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}},{key:"getViewportRect",value:function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),n=e.width,i=e.height;return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=this._document,e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return t>0?this._change.pipe(Yv(t)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(ry),Fi(xc),Fi(rh,8))},t.\u0275prov=Ot({factory:function(){return new t(Fi(ry),Fi(xc),Fi(rh,8))},token:t,providedIn:"root"}),t}(),xy=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({}),t}(),ky=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[py,oy,xy],py,xy]}),t}(),Sy=function(){function t(){s(this,t)}return a(t,[{key:"attach",value:function(t){return this._attachedHost=t,t.attach(this)}},{key:"detach",value:function(){var t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}}]),t}(),Cy=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this)).component=t,a.viewContainerRef=i,a.injector=r,a.componentFactoryResolver=o,a}return n}(Sy),Ay=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this)).templateRef=t,o.viewContainerRef=i,o.context=r,o}return a(n,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=e,r(i(n.prototype),"attach",this).call(this,t)}},{key:"detach",value:function(){return this.context=void 0,r(i(n.prototype),"detach",this).call(this)}}]),n}(Sy),My=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this)).element=t instanceof Al?t.nativeElement:t,i}return n}(Sy),Iy=function(){function t(){s(this,t),this._isDisposed=!1,this.attachDomPortal=null}return a(t,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t instanceof Cy?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Ay?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof My?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),t}(),Ty=function(t){u(n,t);var e=p(n);function n(t,o,a,l,u){var c,h;return s(this,n),(h=e.call(this)).outletElement=t,h._componentFactoryResolver=o,h._appRef=a,h._defaultInjector=l,h.attachDomPortal=function(t){var e=t.element,o=h._document.createComment("dom-portal");e.parentNode.insertBefore(o,e),h.outletElement.appendChild(e),h._attachedPortal=t,r((c=d(h),i(n.prototype)),"setDisposeFn",c).call(c,function(){o.parentNode&&o.parentNode.replaceChild(e,o)})},h._document=u,h}return a(n,[{key:"attachComponentPortal",value:function(t){var e,n=this,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(function(){return e.destroy()})):(e=i.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn(function(){n._appRef.detachView(e.hostView),e.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=t,e}},{key:"attachTemplatePortal",value:function(t){var e=this,n=t.viewContainerRef,i=n.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(function(t){return e.outletElement.appendChild(t)}),i.detectChanges(),this.setDisposeFn(function(){var t=n.indexOf(i);-1!==t&&n.remove(t)}),this._attachedPortal=t,i}},{key:"dispose",value:function(){r(i(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(t){return t.hostView.rootNodes[0]}}]),n}(Iy),Dy=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){return s(this,n),e.call(this,t,i)}return n}(Ay);return t.\u0275fac=function(e){return new(e||t)(us(iu),us(uu))},t.\u0275dir=me({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[Ya]}),t}(),Ey=function(){var t=function(t){u(n,t);var e=p(n);function n(t,o,a){var l,u;return s(this,n),(u=e.call(this))._componentFactoryResolver=t,u._viewContainerRef=o,u._isInitialized=!1,u.attached=new Lu,u.attachDomPortal=function(t){var e=t.element,o=u._document.createComment("dom-portal");t.setAttachedHost(d(u)),e.parentNode.insertBefore(o,e),u._getRootNode().appendChild(e),u._attachedPortal=t,r((l=d(u),i(n.prototype)),"setDisposeFn",l).call(l,function(){o.parentNode&&o.parentNode.replaceChild(e,o)})},u._document=a,u}return a(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&r(i(n.prototype),"detach",this).call(this),t&&r(i(n.prototype),"attach",this).call(this,t),this._attachedPortal=t)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){r(i(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(t){t.setAttachedHost(this);var e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,o=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),a=e.createComponent(o,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),r(i(n.prototype),"setDisposeFn",this).call(this,function(){return a.destroy()}),this._attachedPortal=t,this._attachedRef=a,this.attached.emit(a),a}},{key:"attachTemplatePortal",value:function(t){var e=this;t.setAttachedHost(this);var o=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return r(i(n.prototype),"setDisposeFn",this).call(this,function(){return e._viewContainerRef.clear()}),this._attachedPortal=t,this._attachedRef=o,this.attached.emit(o),o}},{key:"_getRootNode",value:function(){var t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}]),n}(Iy);return t.\u0275fac=function(e){return new(e||t)(us(xl),us(uu),us(rh))},t.\u0275dir=me({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Ya]}),t}(),Oy=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({}),t}(),Py=function(){function t(e,n){s(this,t),this.predicate=e,this.inclusive=n}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new Ry(t,this.predicate,this.inclusive))}}]),t}(),Ry=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,t)).predicate=i,o.inclusive=r,o.index=0,o}return a(n,[{key:"_next",value:function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(i){return void n.error(i)}this.nextOrComplete(t,e)}},{key:"nextOrComplete",value:function(t,e){var n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}]),n}(R),Ly=13,Ny=27,Fy=32,Vy=35,zy=36,By=37,Hy=38,jy=39,Gy=40;function Uy(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;ie.height||t.scrollWidth>e.width}}]),t}(),qy=function(){function t(e,n,i,r){var o=this;s(this,t),this._scrollDispatcher=e,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return a(t,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),Xy=function(){function t(){s(this,t)}return a(t,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),t}();function Zy(t,e){return e.some(function(e){return t.bottome.bottom||t.righte.right})}function Ky(t,e){return e.some(function(e){return t.tope.bottom||t.lefte.right})}var $y=function(){function t(e,n,i,r){s(this,t),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return a(t,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),n=t._viewportRuler.getViewportSize(),i=n.width,r=n.height;Zy(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),Qy=function(){var t=function t(e,n,i,r){var o=this;s(this,t),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new Xy},this.close=function(t){return new qy(o._scrollDispatcher,o._ngZone,o._viewportRuler,t)},this.block=function(){return new Yy(o._viewportRuler,o._document)},this.reposition=function(t){return new $y(o._scrollDispatcher,o._viewportRuler,o._ngZone,t)},this._document=r};return t.\u0275fac=function(e){return new(e||t)(Fi(by),Fi(wy),Fi(xc),Fi(rh))},t.\u0275prov=Ot({factory:function(){return new t(Fi(by),Fi(wy),Fi(xc),Fi(rh))},token:t,providedIn:"root"}),t}(),Jy=function t(e){if(s(this,t),this.scrollStrategy=new Xy,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e)for(var n=0,i=Object.keys(e);n-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(rh))},t.\u0275prov=Ot({factory:function(){return new t(Fi(rh))},token:t,providedIn:"root"}),t}(),i_=function(){var t=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this,t))._keydownListener=function(t){for(var e=i._attachedOverlays,n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}},i}return a(n,[{key:"add",value:function(t){r(i(n.prototype),"add",this).call(this,t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(n_);return t.\u0275fac=function(e){return new(e||t)(Fi(rh))},t.\u0275prov=Ot({factory:function(){return new t(Fi(rh))},token:t,providedIn:"root"}),t}(),r_=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(t){for(var e=t.composedPath?t.composedPath()[0]:t.target,n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var o=n[i];if(!(o._outsidePointerEvents.observers.length<1)&&o.hasAttached()){if(o.overlayElement.contains(e))break;o._outsidePointerEvents.next(t)}}},r}return a(n,[{key:"add",value:function(t){if(r(i(n.prototype),"add",this).call(this,t),!this._isAttached){var e=this._document.body;e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=e.style.cursor,e.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}]),n}(n_);return t.\u0275fac=function(e){return new(e||t)(Fi(rh),Fi(ry))},t.\u0275prov=Ot({factory:function(){return new t(Fi(rh),Fi(ry))},token:t,providedIn:"root"}),t}(),o_="undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha,a_=function(){var t=function(){function t(e,n){s(this,t),this._platform=n,this._document=e}return a(t,[{key:"ngOnDestroy",value:function(){var t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var t="cdk-overlay-container";if(this._platform.isBrowser||o_)for(var e=this._document.querySelectorAll(".".concat(t,'[platform="server"], ')+".".concat(t,'[platform="test"]')),n=0;nf&&(f=m,d=g)}}catch(y){p.e(y)}finally{p.f()}return this._isPushed=!1,void this._applyPosition(d.position,d.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(t.position,t.originPoint);this._applyPosition(t.position,t.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&h_(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(l_),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}},{key:"withScrollableContainers",value:function(t){return this._scrollables=t,this}},{key:"withPositions",value:function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(t){return this._viewportMargin=t,this}},{key:"withFlexibleDimensions",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=t,this}},{key:"withGrowAfterOpen",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=t,this}},{key:"withPush",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=t,this}},{key:"withLockedPosition",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=t,this}},{key:"setOrigin",value:function(t){return this._origin=t,this}},{key:"withDefaultOffsetX",value:function(t){return this._offsetX=t,this}},{key:"withDefaultOffsetY",value:function(t){return this._offsetY=t,this}},{key:"withTransformOriginOn",value:function(t){return this._transformOriginSelector=t,this}},{key:"_getOriginPoint",value:function(t,e){var n;if("center"==e.originX)n=t.left+t.width/2;else{var i=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;n="start"==e.originX?i:r}return{x:n,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}}},{key:"_getOverlayPoint",value:function(t,e,n){var i;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,{x:t.x+i,y:t.y+("center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height)}}},{key:"_getOverlayFit",value:function(t,e,n,i){var r=f_(e),o=t.x,a=t.y,s=this._getOffset(i,"x"),l=this._getOffset(i,"y");s&&(o+=s),l&&(a+=l);var u=0-a,c=a+r.height-n.height,h=this._subtractOverflows(r.width,0-o,o+r.width-n.width),d=this._subtractOverflows(r.height,u,c),f=h*d;return{visibleArea:f,isCompletelyWithinViewport:r.width*r.height===f,fitsInViewportVertically:d===r.height,fitsInViewportHorizontally:h==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,e,n){if(this._hasFlexibleDimensions){var i=n.bottom-e.y,r=n.right-e.x,o=d_(this._overlayRef.getConfig().minHeight),a=d_(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=o&&o<=i)&&(t.fitsInViewportHorizontally||null!=a&&a<=r)}return!1}},{key:"_pushOverlayOnScreen",value:function(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var i,r,o=f_(e),a=this._viewportRect,s=Math.max(t.x+o.width-a.width,0),l=Math.max(t.y+o.height-a.height,0),u=Math.max(a.top-n.top-t.y,0),c=Math.max(a.left-n.left-t.x,0);return this._previousPushAmount={x:i=o.width<=a.width?c||-s:t.xh&&!this._isInitialRender&&!this._growAfterOpen&&(i=t.y-h/2)}if("end"===e.overlayX&&!u||"start"===e.overlayX&&u)s=l.width-t.x+this._viewportMargin,o=t.x-this._viewportMargin;else if("start"===e.overlayX&&!u||"end"===e.overlayX&&u)a=t.x,o=l.right-t.x;else{var d=Math.min(l.right-t.x+l.left,t.x),f=this._lastBoundingBoxSize.width;a=t.x-d,(o=2*d)>f&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.x-f/2)}return{top:i,left:a,bottom:r,right:s,width:o,height:n}}},{key:"_setBoundingBoxStyles",value:function(t,e){var n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=bv(n.height),i.top=bv(n.top),i.bottom=bv(n.bottom),i.width=bv(n.width),i.left=bv(n.left),i.right=bv(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=bv(r)),o&&(i.maxWidth=bv(o))}this._lastBoundingBoxSize=n,h_(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){h_(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){h_(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,e){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();h_(n,this._getExactOverlayY(e,t,a)),h_(n,this._getExactOverlayX(e,t,a))}else n.position="static";var s="",l=this._getOffset(e,"x"),u=this._getOffset(e,"y");l&&(s+="translateX(".concat(l,"px) ")),u&&(s+="translateY(".concat(u,"px)")),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=bv(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=bv(o.maxWidth):r&&(n.maxWidth="")),h_(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(t,e,n){var i={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===t.overlayY?i.bottom="".concat(this._document.documentElement.clientHeight-(r.y+this._overlayRect.height),"px"):i.top=bv(r.y),i}},{key:"_getExactOverlayX",value:function(t,e,n){var i={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?i.right="".concat(this._document.documentElement.clientWidth-(r.x+this._overlayRect.width),"px"):i.left=bv(r.x),i}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(t){return t.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:Ky(t,n),isOriginOutsideView:Zy(t,n),isOverlayClipped:Ky(e,n),isOverlayOutsideView:Zy(e,n)}}},{key:"_subtractOverflows",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}},{key:"left",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}},{key:"right",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}},{key:"width",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}},{key:"height",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}},{key:"centerHorizontally",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(t),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(t),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),l=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=s?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,s?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}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(g_),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}}]),t}(),v_=function(){var t=function(){function t(e,n,i,r){s(this,t),this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=r}return a(t,[{key:"global",value:function(){return new m_}},{key:"connectedTo",value:function(t,e,n){return new p_(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(t){return new c_(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(wy),Fi(rh),Fi(ry),Fi(a_))},t.\u0275prov=Ot({factory:function(){return new t(Fi(wy),Fi(rh),Fi(ry),Fi(a_))},token:t,providedIn:"root"}),t}(),y_=0,__=function(){var t=function(){function t(e,n,i,r,o,a,l,u,c,h,d){s(this,t),this.scrollStrategies=e,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=l,this._document=u,this._directionality=c,this._location=h,this._outsideClickDispatcher=d}return a(t,[{key:"create",value:function(t){var e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),r=new Jy(t);return r.direction=r.direction||this._directionality.value,new s_(i,e,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(t){var e=this._document.createElement("div");return e.id="cdk-overlay-".concat(y_++),e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}},{key:"_createHostElement",value:function(){var t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}},{key:"_createPortalOutlet",value:function(t){return this._appRef||(this._appRef=this._injector.get(Wc)),new Ty(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(Qy),Fi(a_),Fi(xl),Fi(v_),Fi(i_),Fi(Ua),Fi(xc),Fi(rh),Fi(fy),Fi(_h),Fi(r_))},t.\u0275prov=Ot({token:t,factory:t.\u0275fac}),t}(),b_=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],w_=new _i("cdk-connected-overlay-scroll-strategy"),x_=function(){var t=function t(e){s(this,t),this.elementRef=e};return t.\u0275fac=function(e){return new(e||t)(us(Al))},t.\u0275dir=me({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t}(),k_=function(){var t=function(){function t(e,n,i,r,o){s(this,t),this._overlay=e,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=M.EMPTY,this._attachSubscription=M.EMPTY,this._detachSubscription=M.EMPTY,this._positionSubscription=M.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Lu,this.positionChange=new Lu,this.attach=new Lu,this.detach=new Lu,this.overlayKeydown=new Lu,this.overlayOutsideClick=new Lu,this._templatePortal=new Ay(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return a(t,[{key:"offsetX",get:function(){return this._offsetX},set:function(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=mv(t)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(t){this._lockPosition=mv(t)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(t){this._flexibleDimensions=mv(t)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(t){this._growAfterOpen=mv(t)}},{key:"push",get:function(){return this._push},set:function(t){this._push=mv(t)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var t=this;this.positions&&this.positions.length||(this.positions=b_);var e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(function(){return t.attach.emit()}),this._detachSubscription=e.detachments().subscribe(function(){return t.detach.emit()}),e.keydownEvents().subscribe(function(e){t.overlayKeydown.next(e),e.keyCode!==Ny||t.disableClose||Uy(e)||(e.preventDefault(),t._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(e){t.overlayOutsideClick.next(e)})}},{key:"_buildConfig",value:function(){var t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new Jy({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}},{key:"_updatePositionStrategy",value:function(t){var e=this,n=this.positions.map(function(t){return{originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||e.offsetX,offsetY:t.offsetY||e.offsetY,panelClass:t.panelClass||void 0}});return t.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}},{key:"_attachOverlay",value:function(){var t=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(e){t.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new Py(t,e))}}(function(){return t.positionChange.observers.length>0})).subscribe(function(e){t.positionChange.emit(e),0===t.positionChange.observers.length&&t._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(__),us(iu),us(uu),us(w_),us(fy,8))},t.\u0275dir=me({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[De]}),t}(),S_={provide:w_,deps:[__],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},C_=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[__,S_],imports:[[py,Oy,ky],ky]}),t}();function A_(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zv;return function(n){return n.lift(new M_(t,e))}}var M_=function(){function t(e,n){s(this,t),this.dueTime=e,this.scheduler=n}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new I_(t,this.dueTime,this.scheduler))}}]),t}(),I_=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,t)).dueTime=i,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return a(n,[{key:"_next",value:function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(T_,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}},{key:"clearDebounce",value:function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}]),n}(R);function T_(t){t.debouncedNext()}function D_(t){return function(e){return e.lift(new E_(t))}}var E_=function(){function t(e){s(this,t),this.total=e}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new O_(t,this.total))}}]),t}(),O_=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t)).total=i,r.count=0,r}return a(n,[{key:"_next",value:function(t){++this.count>this.total&&this.destination.next(t)}}]),n}(R),P_=function(){var t=function(){function t(){s(this,t)}return a(t,[{key:"create",value:function(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ot({factory:function(){return new t},token:t,providedIn:"root"}),t}(),R_=function(){var t=function(){function t(e){s(this,t),this._mutationObserverFactory=e,this._observedElements=new Map}return a(t,[{key:"ngOnDestroy",value:function(){var t=this;this._observedElements.forEach(function(e,n){return t._cleanupObserver(n)})}},{key:"observe",value:function(t){var e=this,n=wv(t);return new z(function(t){var i=e._observeElement(n).subscribe(t);return function(){i.unsubscribe(),e._unobserveElement(n)}})}},{key:"_observeElement",value:function(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{var e=new U,n=this._mutationObserverFactory.create(function(t){return e.next(t)});n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}},{key:"_unobserveElement",value:function(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}},{key:"_cleanupObserver",value:function(t){if(this._observedElements.has(t)){var e=this._observedElements.get(t),n=e.observer,i=e.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(t)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(P_))},t.\u0275prov=Ot({factory:function(){return new t(Fi(P_))},token:t,providedIn:"root"}),t}(),L_=function(){var t=function(){function t(e,n,i){s(this,t),this._contentObserver=e,this._elementRef=n,this._ngZone=i,this.event=new Lu,this._disabled=!1,this._currentSubscription=null}return a(t,[{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=mv(t),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(t){this._debounce=vv(t),this._subscribe()}},{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var t=this;this._unsubscribe();var e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){t._currentSubscription=(t.debounce?e.pipe(A_(t.debounce)):e).subscribe(t.event)})}},{key:"_unsubscribe",value:function(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(R_),us(Al),us(xc))},t.\u0275dir=me({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t}(),N_=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[P_]}),t}();function F_(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}var V_="cdk-describedby-message-container",z_="cdk-describedby-message",B_="cdk-describedby-host",H_=0,j_=new Map,G_=null,U_=function(){var t=function(){function t(e){s(this,t),this._document=e}return a(t,[{key:"describe",value:function(t,e,n){if(this._canBeDescribed(t,e)){var i=W_(e,n);"string"!=typeof e?(Y_(e),j_.set(i,{messageElement:e,referenceCount:0})):j_.has(i)||this._createMessageElement(e,n),this._isElementDescribedByMessage(t,i)||this._addMessageReference(t,i)}}},{key:"removeDescription",value:function(t,e,n){if(e&&this._isElementNode(t)){var i=W_(e,n);if(this._isElementDescribedByMessage(t,i)&&this._removeMessageReference(t,i),"string"==typeof e){var r=j_.get(i);r&&0===r.referenceCount&&this._deleteMessageElement(i)}G_&&0===G_.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var t=this._document.querySelectorAll("[".concat(B_,"]")),e=0;e-1&&e!==n._activeItemIndex&&(n._activeItemIndex=e)}})}return a(t,[{key:"skipPredicate",value:function(t){return this._skipPredicateFn=t,this}},{key:"withWrap",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=t,this}},{key:"withVerticalOrientation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=t,this}},{key:"withHorizontalOrientation",value:function(t){return this._horizontal=t,this}},{key:"withAllowedModifierKeys",value:function(t){return this._allowedModifierKeys=t,this}},{key:"withTypeAhead",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(ip(function(e){return t._pressedLetters.push(e)}),A_(e),Rd(function(){return t._pressedLetters.length>0}),q(function(){return t._pressedLetters.join("")})).subscribe(function(e){for(var n=t._getItemsArray(),i=1;i0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=t,this}},{key:"setActiveItem",value:function(t){var e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(t){var e=this,n=t.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!t[n]||e._allowedModifierKeys.indexOf(n)>-1});switch(n){case 9:return void this.tabOut.next();case Gy:if(this._vertical&&i){this.setNextItemActive();break}return;case Hy:if(this._vertical&&i){this.setPreviousItemActive();break}return;case jy:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case By:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case zy:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case Vy:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||Uy(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],t.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(t){var e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}},{key:"_setActiveInWrapMode",value:function(t){for(var e=this._getItemsArray(),n=1;n<=e.length;n++){var i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}},{key:"_setActiveItemByIndex",value:function(t,e){var n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}},{key:"_getItemsArray",value:function(){return this._items instanceof Fu?this._items.toArray():this._items}}]),t}(),X_=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"setActiveItem",value:function(t){this.activeItem&&this.activeItem.setInactiveStyles(),r(i(n.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(q_),Z_=function(t){u(n,t);var e=p(n);function n(){var t;return s(this,n),(t=e.apply(this,arguments))._origin="program",t}return a(n,[{key:"setFocusOrigin",value:function(t){return this._origin=t,this}},{key:"setActiveItem",value:function(t){r(i(n.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(q_),K_=function(){var t=function(){function t(e){s(this,t),this._platform=e}return a(t,[{key:"isDisabled",value:function(t){return t.hasAttribute("disabled")}},{key:"isVisible",value:function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}},{key:"isTabbable",value:function(t){if(!this._platform.isBrowser)return!1;var e,n=function(t){try{return t.frameElement}catch(gH){return null}}((e=t).ownerDocument&&e.ownerDocument.defaultView||window);if(n){if(-1===Q_(n))return!1;if(!this.isVisible(n))return!1}var i=t.nodeName.toLowerCase(),r=Q_(t);return t.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){var e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===i?!!t.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}},{key:"isFocusable",value:function(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||$_(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(ry))},t.\u0275prov=Ot({factory:function(){return new t(Fi(ry))},token:t,providedIn:"root"}),t}();function $_(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function Q_(t){if(!$_(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var J_=function(){function t(e,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];s(this,t),this._element=e,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return a(t,[{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"destroy",value:function(){var t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(t){var e=this;return new Promise(function(n){e._executeOnStable(function(){return n(e.focusInitialElement(t))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(t){var e=this;return new Promise(function(n){e._executeOnStable(function(){return n(e.focusFirstTabbableElement(t))})})}},{key:"focusLastTabbableElementWhenReady",value:function(t){var e=this;return new Promise(function(n){e._executeOnStable(function(){return n(e.focusLastTabbableElement(t))})})}},{key:"_getRegionBoundary",value:function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], ")+"[cdkFocusRegion".concat(t,"], ")+"[cdk-focus-".concat(t,"]")),n=0;n=0;n--){var i=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}},{key:"_toggleAnchorTabIndex",value:function(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Lf(1)).subscribe(t)}}]),t}(),tb=function(){var t=function(){function t(e,n,i){s(this,t),this._checker=e,this._ngZone=n,this._document=i}return a(t,[{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new J_(t,this._checker,this._ngZone,this._document,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(K_),Fi(xc),Fi(rh))},t.\u0275prov=Ot({factory:function(){return new t(Fi(K_),Fi(xc),Fi(rh))},token:t,providedIn:"root"}),t}(),eb=function(){var t=function(){function t(e,n,i){s(this,t),this._elementRef=e,this._focusTrapFactory=n,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return a(t,[{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(t){this.focusTrap.enabled=mv(t)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(t){this._autoCapture=mv(t)}},{key:"ngOnDestroy",value:function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}},{key:"ngAfterContentInit",value:function(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}},{key:"ngDoCheck",value:function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}},{key:"ngOnChanges",value:function(t){var e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}},{key:"_captureFocus",value:function(){this._previouslyFocusedElement=hy(),this.focusTrap.focusInitialElementWhenReady()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Al),us(tb),us(rh))},t.\u0275dir=me({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[De]}),t}();function nb(t){return 0===t.buttons}function ib(t){var e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}"undefined"!=typeof Element&∈var rb=new _i("cdk-input-modality-detector-options"),ob={ignoreKeys:[18,17,224,91,16]},ab=ly({passive:!0,capture:!0}),sb=function(){var t=function(){function t(e,n,i,r){var o=this;s(this,t),this._platform=e,this._mostRecentTarget=null,this._modality=new vf(null),this._lastTouchMs=0,this._onKeydown=function(t){var e,n;(null===(n=null===(e=o._options)||void 0===e?void 0:e.ignoreKeys)||void 0===n?void 0:n.some(function(e){return e===t.keyCode}))||(o._modality.next("keyboard"),o._mostRecentTarget=lb(t))},this._onMousedown=function(t){Date.now()-o._lastTouchMs<650||(o._modality.next(nb(t)?"keyboard":"mouse"),o._mostRecentTarget=lb(t))},this._onTouchstart=function(t){ib(t)?o._modality.next("keyboard"):(o._lastTouchMs=Date.now(),o._modality.next("touch"),o._mostRecentTarget=lb(t))},this._options=Object.assign(Object.assign({},ob),r),this.modalityDetected=this._modality.pipe(D_(1)),this.modalityChanged=this.modalityDetected.pipe(Nv()),e.isBrowser&&n.runOutsideAngular(function(){i.addEventListener("keydown",o._onKeydown,ab),i.addEventListener("mousedown",o._onMousedown,ab),i.addEventListener("touchstart",o._onTouchstart,ab)})}return a(t,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,ab),document.removeEventListener("mousedown",this._onMousedown,ab),document.removeEventListener("touchstart",this._onTouchstart,ab))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(ry),Fi(xc),Fi(rh),Fi(rb,8))},t.\u0275prov=Ot({factory:function(){return new t(Fi(ry),Fi(xc),Fi(rh),Fi(rb,8))},token:t,providedIn:"root"}),t}();function lb(t){return t.composedPath?t.composedPath()[0]:t.target}var ub=new _i("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),cb=new _i("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),hb=function(){var t=function(){function t(e,n,i,r){s(this,t),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=e||this._createLiveElement()}return a(t,[{key:"announce",value:function(t){for(var e,n,i=this,r=this._defaultOptions,o=arguments.length,a=new Array(o>1?o-1:0),s=1;s1&&void 0!==arguments[1]&&arguments[1],n=wv(t);if(!this._platform.isBrowser||1!==n.nodeType)return Od(null);var i=cy(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return e&&(r.checkChildren=!0),r.subject;var o={checkChildren:e,subject:new U,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}},{key:"stopMonitoring",value:function(t){var e=wv(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(t,e,n){var i=this,r=wv(t);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(function(t){var n=y(t,2);return i._originChanged(n[0],e,n[1])}):(this._setOrigin(e),"function"==typeof r.focus&&r.focus(n))}},{key:"ngOnDestroy",value:function(){var t=this;this._elementInfo.forEach(function(e,n){return t.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(t,e,n){n?t.classList.add(e):t.classList.remove(e)}},{key:"_getFocusOrigin",value:function(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(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)}},{key:"_setOrigin",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){e._origin=t,e._originFromTouchInteraction="touch"===t&&n,0===e._detectionMode&&(clearTimeout(e._originTimeoutId),e._originTimeoutId=setTimeout(function(){return e._origin=null},e._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(t,e){var n=this._elementInfo.get(e),i=lb(t);n&&(n.checkChildren||e===i)&&this._originChanged(e,this._getFocusOrigin(i),n)}},{key:"_onBlur",value:function(t,e){var n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(t,e){this._ngZone.run(function(){return t.next(e)})}},{key:"_registerGlobalListeners",value:function(t){var e=this;if(this._platform.isBrowser){var n=t.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",e._rootNodeFocusAndBlurListener,pb),n.addEventListener("blur",e._rootNodeFocusAndBlurListener,pb)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){e._getWindow().addEventListener("focus",e._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(qv(this._stopInputModalityDetector)).subscribe(function(t){e._setOrigin(t,!0)}))}}},{key:"_removeGlobalListeners",value:function(t){var e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){var n=this._rootNodeFocusListenerCount.get(e);n>1?this._rootNodeFocusListenerCount.set(e,n-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,pb),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,pb),this._rootNodeFocusListenerCount.delete(e))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}},{key:"_getClosestElementsInfo",value:function(t){var e=[];return this._elementInfo.forEach(function(n,i){(i===t||n.checkChildren&&i.contains(t))&&e.push([i,n])}),e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(xc),Fi(ry),Fi(sb),Fi(rh,8),Fi(fb,8))},t.\u0275prov=Ot({factory:function(){return new t(Fi(xc),Fi(ry),Fi(sb),Fi(rh,8),Fi(fb,8))},token:t,providedIn:"root"}),t}(),mb=function(){var t=function(){function t(e,n){s(this,t),this._elementRef=e,this._focusMonitor=n,this.cdkFocusChange=new Lu}return a(t,[{key:"ngAfterViewInit",value:function(){var t=this,e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(e){return t.cdkFocusChange.emit(e)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Al),us(gb))},t.\u0275dir=me({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t}(),vb="cdk-high-contrast-black-on-white",yb="cdk-high-contrast-white-on-black",_b="cdk-high-contrast-active",bb=function(){var t=function(){function t(e,n){s(this,t),this._platform=e,this._document=n}return a(t,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);var e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var t=this._document.body.classList;t.remove(_b),t.remove(vb),t.remove(yb),this._hasCheckedHighContrastMode=!0;var e=this.getHighContrastMode();1===e?(t.add(_b),t.add(vb)):2===e&&(t.add(_b),t.add(yb))}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(ry),Fi(rh))},t.\u0275prov=Ot({factory:function(){return new t(Fi(ry),Fi(rh))},token:t,providedIn:"root"}),t}(),wb=function(){var t=function t(e){s(this,t),e._applyBodyHighContrastModeCssClasses()};return t.\u0275fac=function(e){return new(e||t)(Fi(bb))},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[oy,N_]]}),t}(),xb=new Ol("12.1.0"),kb=function t(){s(this,t)},Sb=function t(){s(this,t)},Cb="*";function Ab(t,e){return{type:7,name:t,definitions:e,options:{}}}function Mb(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:e,timings:t}}function Ib(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:t,options:e}}function Tb(t){return{type:6,styles:t,offset:null}}function Db(t,e,n){return{type:0,name:t,styles:e,options:n}}function Eb(t){return{type:5,steps:t}}function Ob(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:t,animation:e,options:n}}function Pb(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:t}}function Rb(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:t,animation:e,options:n}}function Lb(t){Promise.resolve(null).then(t)}var Nb=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;s(this,t),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+n}return a(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var t=this;Lb(function(){return t._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(t){this._position=this.totalTime?t*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),Fb=function(){function t(e){var n=this;s(this,t),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var i=0,r=0,o=0,a=this.players.length;0==a?Lb(function(){return n._onFinish()}):this.players.forEach(function(t){t.onDone(function(){++i==a&&n._onFinish()}),t.onDestroy(function(){++r==a&&n._onDestroy()}),t.onStart(function(){++o==a&&n._onStart()})}),this.totalTime=this.players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)}return a(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(t){return t.init()})}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})}},{key:"pause",value:function(){this.players.forEach(function(t){return t.pause()})}},{key:"restart",value:function(){this.players.forEach(function(t){return t.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var e=t*this.totalTime;this.players.forEach(function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}},{key:"getPosition",value:function(){var t=this.players.reduce(function(t,e){return null===t||e.totalTime>t.totalTime?e:t},null);return null!=t?t.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),Vb="!";function zb(){return"undefined"!=typeof window&&void 0!==window.document}function Bb(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Hb(t){switch(t.length){case 0:return new Nb;case 1:return t[0];default:return new Fb(t)}}function jb(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],l=-1,u=null;if(i.forEach(function(t){var n=t.offset,i=n==l,c=i&&u||{};Object.keys(t).forEach(function(n){var i=n,s=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,a),s){case Vb:s=r[n];break;case Cb:s=o[n];break;default:s=e.normalizeStyleValue(n,i,s,a)}c[i]=s}),i||s.push(c),u=c,l=n}),a.length){var c="\n - ";throw new Error("Unable to animate due to the following errors:".concat(c).concat(a.join(c)))}return s}function Gb(t,e,n,i){switch(e){case"start":t.onStart(function(){return i(n&&Ub(n,"start",t))});break;case"done":t.onDone(function(){return i(n&&Ub(n,"done",t))});break;case"destroy":t.onDestroy(function(){return i(n&&Ub(n,"destroy",t))})}}function Ub(t,e,n){var i=n.totalTime,r=Wb(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),o=t._data;return null!=o&&(r._data=o),r}function Wb(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function Yb(t,e,n){var i;return t instanceof Map?(i=t.get(e))||t.set(e,i=n):(i=t[e])||(i=t[e]=n),i}function qb(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var Xb=function(t,e){return!1},Zb=function(t,e){return!1},Kb=function(t,e,n){return[]},$b=Bb();($b||"undefined"!=typeof Element)&&(Xb=zb()?function(t,e){for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:function(t,e){return t.contains(e)},Zb=function(){if($b||Element.prototype.matches)return function(t,e){return t.matches(e)};var t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?function(t,n){return e.apply(t,[n])}:Zb}(),Kb=function(t,e,n){var i=[];if(n)for(var r=t.querySelectorAll(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach(function(n){e[n]=t[n]}),e}function vw(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)for(var i in t)n[i]=t[i];else mw(t,n);return n}function yw(t,e,n){return n?e+":"+n+";":""}function _w(t){for(var e="",n=0;n *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}var r=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(t,'" is not supported')),e;var o=r[1],a=r[2],s=r[3];e.push(Nw(o,s)),"<"!=a[0]||o==Pw&&s==Pw||e.push(Nw(s,o))}(t,r,i)}):r.push(n),r),animation:o,queryCount:e.queryCount,depCount:e.depCount,options:Gw(t.options)}}},{key:"visitSequence",value:function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return Ew(n,t,e)}),options:Gw(t.options)}}},{key:"visitGroup",value:function(t,e){var n=this,i=e.currentTime,r=0,o=t.steps.map(function(t){e.currentTime=i;var o=Ew(n,t,e);return r=Math.max(r,e.currentTime),o});return e.currentTime=r,{type:3,steps:o,options:Gw(t.options)}}},{key:"visitAnimate",value:function(t,e){var n,i=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return Uw(gw(t,e).duration,0,"");var i=t;if(i.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var r=Uw(0,0,"");return r.dynamic=!0,r.strValue=i,r}return Uw((n=n||gw(i,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;var r=t.styles?t.styles:Tb({});if(5==r.type)n=this.visitKeyframes(r,e);else{var o=t.styles,a=!1;if(!o){a=!0;var s={};i.easing&&(s.easing=i.easing),o=Tb(s)}e.currentTime+=i.duration+i.delay;var l=this.visitStyle(o,e);l.isEmptyStep=a,n=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}},{key:"_makeStyleAst",value:function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==Cb?n.push(t):e.errors.push("The provided style string value ".concat(t," is not allowed.")):n.push(t)}):n.push(t.styles);var i=!1,r=null;return n.forEach(function(t){if(jw(t)){var e=t,n=e.easing;if(n&&(r=n,delete e.easing),!i)for(var o in e)if(e[o].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:t.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(t,e){var n=this,i=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(i){if(n._driver.validateStyleProperty(i)){var a=e.collectedStyles[e.currentQuerySelector],s=a[i],l=!0;s&&(o!=r&&o>=s.startTime&&r<=s.endTime&&(e.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(s.startTime,'ms" and "').concat(s.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),l=!1),o=s.startTime),l&&(a[i]={startTime:o,endTime:r}),e.options&&(u=e.errors,c=e.options.params||{},(h=Sw(t[i])).length&&h.forEach(function(t){c.hasOwnProperty(t)||u.push("Unable to resolve the local animation param ".concat(t," in the given list of values"))}))}else e.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'));var u,c,h})})}},{key:"visitKeyframes",value:function(t,e){var n=this,i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],a=!1,s=!1,l=0,u=t.steps.map(function(t){var i=n._makeStyleAst(t,e),u=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(jw(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(jw(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(i.styles),c=0;return null!=u&&(r++,c=i.offset=u),s=s||c<0||c>1,a=a||c0&&r0?r==d?1:h*r:o[r],s=a*g;e.currentTime=f+p.delay+s,p.duration=s,n._validateStyleAst(t,e),t.offset=a,i.styles.push(t)}),i}},{key:"visitReference",value:function(t,e){return{type:8,animation:Ew(this,xw(t.animation),e),options:Gw(t.options)}}},{key:"visitAnimateChild",value:function(t,e){return e.depCount++,{type:9,options:Gw(t.options)}}},{key:"visitAnimateRef",value:function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Gw(t.options)}}},{key:"visitQuery",value:function(t,e){var n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;var r=y(function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return t==Fw});return e&&(t=t.replace(Vw,"")),[t=t.replace(/@\*/g,cw).replace(/@\w+/g,function(t){return".ng-trigger-"+t.substr(1)}).replace(/:animating/g,dw),e]}(t.selector),2),o=r[0],a=r[1];e.currentQuerySelector=n.length?n+" "+o:o,Yb(e.collectedStyles,e.currentQuerySelector,{});var s=Ew(this,xw(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:s,originalSelector:t.selector,options:Gw(t.options)}}},{key:"visitStagger",value:function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:gw(t.timings,e.errors,!0);return{type:12,animation:Ew(this,xw(t.animation),e),timings:n,options:null}}}]),t}(),Hw=function t(e){s(this,t),this.errors=e,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 jw(t){return!Array.isArray(t)&&"object"==typeof t}function Gw(t){var e;return t?(t=mw(t)).params&&(t.params=(e=t.params)?mw(e):null):t={},t}function Uw(t,e,n){return{duration:t,delay:e,easing:n}}function Ww(t,e,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var Yw=function(){function t(){s(this,t),this._map=new Map}return a(t,[{key:"consume",value:function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e}},{key:"append",value:function(t,e){var n,i=this._map.get(t);i||this._map.set(t,i=[]),(n=i).push.apply(n,b(e))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),t}(),qw=new RegExp(":enter","g"),Xw=new RegExp(":leave","g");function Zw(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new Kw).buildKeyframes(t,e,n,i,r,o,a,s,l,u)}var Kw=function(){function t(){s(this,t)}return a(t,[{key:"buildKeyframes",value:function(t,e,n,i,r,o,a,s,l){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];l=l||new Yw;var c=new Qw(t,e,l,i,r,u,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),Ew(this,n,c);var h=c.timelines.filter(function(t){return t.containsAnimation()});if(h.length&&Object.keys(a).length){var d=h[h.length-1];d.allowOnlyTimelineStyles()||d.setStyles([a],null,c.errors,s)}return h.length?h.map(function(t){return t.buildKeyframes()}):[Ww(e,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,e){}},{key:"visitState",value:function(t,e){}},{key:"visitTransition",value:function(t,e){}},{key:"visitAnimateChild",value:function(t,e){var n=e.subInstructions.consume(e.element);if(n){var i=e.createSubContext(t.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}},{key:"visitAnimateRef",value:function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}},{key:"_visitSubInstructions",value:function(t,e,n){var i=e.currentTimeline.currentTime,r=null!=n.duration?fw(n.duration):null,o=null!=n.delay?fw(n.delay):null;return 0!==r&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,r,o);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(t,e){e.updateOptions(t.options,!0),Ew(this,t.animation,e),e.previousNode=t}},{key:"visitSequence",value:function(t,e){var n=this,i=e.subContextCount,r=e,o=t.options;if(o&&(o.params||o.delay)&&((r=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=$w);var a=fw(o.delay);r.delayNextStep(a)}t.steps.length&&(t.steps.forEach(function(t){return Ew(n,t,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}},{key:"visitGroup",value:function(t,e){var n=this,i=[],r=e.currentTimeline.currentTime,o=t.options&&t.options.delay?fw(t.options.delay):0;t.steps.forEach(function(a){var s=e.createSubContext(t.options);o&&s.delayNextStep(o),Ew(n,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(r),e.previousNode=t}},{key:"_visitTiming",value:function(t,e){if(t.dynamic){var n=t.strValue;return gw(e.params?Cw(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());var r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}},{key:"visitStyle",value:function(t,e){var n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}},{key:"visitKeyframes",value:function(t,e){var n=e.currentAnimateTimings,i=e.currentTimeline.duration,r=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach(function(t){o.forwardTime((t.offset||0)*r),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(i+r),e.previousNode=t}},{key:"visitQuery",value:function(t,e){var n=this,i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?fw(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=$w);var a=i,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;var l=null;s.forEach(function(i,r){e.currentQueryIndex=r;var s=e.createSubContext(t.options,i);o&&s.delayNextStep(o),i===e.element&&(l=s.currentTimeline),Ew(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}},{key:"visitStagger",value:function(t,e){var n=e.parentContext,i=e.currentTimeline,r=t.timings,o=Math.abs(r.duration),a=o*(e.currentQueryTotal-1),s=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var l=e.currentTimeline;s&&l.delayNextStep(s);var u=l.currentTime;Ew(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)}}]),t}(),$w={},Qw=function(){function t(e,n,i,r,o,a,l,u){s(this,t),this._driver=e,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=$w,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new Jw(this._driver,n,0),l.push(this.currentTimeline)}return a(t,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(t,e){var n=this;if(t){var i=t,r=this.options;null!=i.duration&&(r.duration=fw(i.duration)),null!=i.delay&&(r.delay=fw(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(t){e&&a.hasOwnProperty(t)||(a[t]=Cw(o[t],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(t){n[t]=e[t]})}}return t}},{key:"createSubContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,o=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=$w,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,e,n){var i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},r=new tx(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,e,n,i,r,o){var a=[];if(i&&a.push(this.element),t.length>0){t=(t=t.replace(qw,"."+this._enterClassName)).replace(Xw,"."+this._leaveClassName);var s=this._driver.query(this.element,t,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,b(s))}return r||0!=a.length||o.push('`query("'.concat(e,'")` returned zero elements. (Use `query("').concat(e,'", { optional: true })` if you wish to allow this.)')),a}}]),t}(),Jw=function(){function t(e,n,i,r){s(this,t),this._driver=e,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,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(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return a(t,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}},{key:"fork",value:function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){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))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||Cb,e._currentKeyframe[t]=Cb}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,e,n,i){var r=this;e&&(this._previousKeyframe.easing=e);var o=i&&i.params||{},a=function(t,e){var n,i={};return t.forEach(function(t){"*"===t?(n=n||Object.keys(e)).forEach(function(t){i[t]=Cb}):vw(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(a).forEach(function(t){var e=Cw(a[t],o,n);r._pendingStyles[t]=e,r._localTimelineStyles.hasOwnProperty(t)||(r._backFill[t]=r._globalTimelineStyles.hasOwnProperty(t)?r._globalTimelineStyles[t]:Cb),r._updateStyle(t,e)})}},{key:"applyStylesToKeyframe",value:function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){t._currentKeyframe[n]=e[n]}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t}},{key:"mergeTimelineCollectedStyles",value:function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var i=e._styleSummary[n],r=t._styleSummary[n];(!i||r.time>i.time)&&e._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(o,a){var s=vw(o,!0);Object.keys(s).forEach(function(t){var i=s[t];i==Vb?e.add(t):i==Cb&&n.add(t)}),i||(s.offset=a/t.duration),r.push(s)});var o=e.size?Aw(e.values()):[],a=n.size?Aw(n.values()):[];if(i){var s=r[0],l=mw(s);s.offset=0,l.offset=1,r=[s,l]}return Ww(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}]),t}(),tx=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l){var u,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return s(this,n),(u=e.call(this,t,i,l.delay)).element=i,u.keyframes=r,u.preStyleProps=o,u.postStyleProps=a,u._stretchStartingKeyframe=c,u.timings={duration:l.duration,delay:l.delay,easing:l.easing},u}return a(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var t=this.keyframes,e=this.timings,n=e.delay,i=e.duration,r=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=i+n,s=n/a,l=vw(t[0],!1);l.offset=0,o.push(l);var u=vw(t[0],!1);u.offset=ex(s),o.push(u);for(var c=t.length-1,h=1;h<=c;h++){var d=vw(t[h],!1);d.offset=ex((n+d.offset*i)/a),o.push(d)}i=a,n=0,r="",t=o}return Ww(this.element,t,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(Jw);function ex(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,e-1);return Math.round(t*n)/n}var nx=function t(){s(this,t)},ix=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"normalizePropertyName",value:function(t,e){return Iw(t)}},{key:"normalizeStyleValue",value:function(t,e,n,i){var r="",o=n.toString().trim();if(rx[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for ".concat(t,":").concat(n))}return o+r}}]),n}(nx),rx=function(){return function(t){var e={};return t.forEach(function(t){return 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 ox(t,e,n,i,r,o,a,s,l,u,c,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:h,errors:d}}var ax={},sx=function(){function t(e,n,i){s(this,t),this._triggerName=e,this.ast=n,this._stateStyles=i}return a(t,[{key:"match",value:function(t,e,n,i){return function(t,e,n,i,r){return t.some(function(t){return t(e,n,i,r)})}(this.ast.matchers,t,e,n,i)}},{key:"buildStyles",value:function(t,e,n){var i=this._stateStyles["*"],r=this._stateStyles[t],o=i?i.buildStyles(e,n):{};return r?r.buildStyles(e,n):o}},{key:"build",value:function(t,e,n,i,r,o,a,s,l,u){var c=[],h=this.ast.options&&this.ast.options.params||ax,d=this.buildStyles(n,a&&a.params||ax,c),f=s&&s.params||ax,p=this.buildStyles(i,f,c),g=new Set,m=new Map,v=new Map,y="void"===i,_={params:Object.assign(Object.assign({},h),f)},b=u?[]:Zw(t,e,this.ast.animation,r,o,d,p,_,l,c),w=0;if(b.forEach(function(t){w=Math.max(t.duration+t.delay,w)}),c.length)return ox(e,this._triggerName,n,i,y,d,p,[],[],m,v,w,c);b.forEach(function(t){var n=t.element,i=Yb(m,n,{});t.preStyleProps.forEach(function(t){return i[t]=!0});var r=Yb(v,n,{});t.postStyleProps.forEach(function(t){return r[t]=!0}),n!==e&&g.add(n)});var x=Aw(g.values());return ox(e,this._triggerName,n,i,y,d,p,b,x,m,v,w)}}]),t}(),lx=function(){function t(e,n){s(this,t),this.styles=e,this.defaultParams=n}return a(t,[{key:"buildStyles",value:function(t,e){var n={},i=mw(this.defaultParams);return Object.keys(t).forEach(function(e){var n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var r=t;Object.keys(r).forEach(function(t){var o=r[t];o.length>1&&(o=Cw(o,i,e)),n[t]=o})}}),n}}]),t}(),ux=function(){function t(e,n){var i=this;s(this,t),this.name=e,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(t){i.states[t.name]=new lx(t.style,t.options&&t.options.params||{})}),cx(this.states,"true","1"),cx(this.states,"false","0"),n.transitions.forEach(function(t){i.transitionFactories.push(new sx(e,t,i.states))}),this.fallbackTransition=new sx(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return a(t,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(t,e,n,i){return this.transitionFactories.find(function(r){return r.match(t,e,n,i)})||null}},{key:"matchStyles",value:function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}]),t}();function cx(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var hx=new Yw,dx=function(){function t(e,n,i){s(this,t),this.bodyNode=e,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return a(t,[{key:"register",value:function(t,e){var n=[],i=zw(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[t]=i}},{key:"_buildPlayer",value:function(t,e,n){var i=t.element,r=jb(this._driver,this._normalizer,i,t.keyframes,e,n);return this._driver.animate(i,r,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,e){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[t],s=new Map;if(a?(n=Zw(this._driver,e,a,sw,lw,{},{},r,hx,o)).forEach(function(t){var e=Yb(s,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: ".concat(o.join("\n")));s.forEach(function(t,e){Object.keys(t).forEach(function(n){t[n]=i._driver.computeStyle(e,n,Cb)})});var l=n.map(function(t){var e=s.get(t.element);return i._buildPlayer(t,{},e)}),u=Hb(l);return this._playersById[t]=u,u.onDestroy(function(){return i.destroy(t)}),this.players.push(u),u}},{key:"destroy",value:function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by ".concat(t));return e}},{key:"listen",value:function(t,e,n,i){var r=Wb(e,"","","");return Gb(this._getPlayer(t),n,r,i),function(){}}},{key:"command",value:function(t,e,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(t);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,i[0]||{});else this.register(t,i[0])}}]),t}(),fx="ng-animate-queued",px="ng-animate-disabled",gx=".ng-animate-disabled",mx="ng-star-inserted",vx=[],yx={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},_x={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},bx=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";s(this,t),this.namespaceId=n;var i=e&&e.hasOwnProperty("value"),r=i?e.value:e;if(this.value=Ax(r),i){var o=mw(e);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return a(t,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(t){null==n[t]&&(n[t]=e[t])})}}}]),t}(),wx="void",xx=new bx(wx),kx=function(){function t(e,n,i){s(this,t),this.id=e,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Ex(n,this._hostClassName)}return a(t,[{key:"listen",value:function(t,e,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(e,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(e,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(e,'" is not supported!'));var a=Yb(this._elementListeners,t,[]),s={name:e,phase:n,callback:i};a.push(s);var l=Yb(this._engine.statesByElement,t,{});return l.hasOwnProperty(e)||(Ex(t,uw),Ex(t,"ng-trigger-"+e),l[e]=xx),function(){o._engine.afterFlush(function(){var t=a.indexOf(s);t>=0&&a.splice(t,1),o._triggers[e]||delete l[e]})}}},{key:"register",value:function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}},{key:"_getTrigger",value:function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'.concat(t,'" has not been registered!'));return e}},{key:"trigger",value:function(t,e,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(e),a=new Cx(this.id,e,t),s=this._engine.statesByElement.get(t);s||(Ex(t,uw),Ex(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var l=s[e],u=new bx(n,this.id),c=n&&n.hasOwnProperty("value");!c&&l&&u.absorbOptions(l.options),s[e]=u,l||(l=xx);var h=u.value===wx;if(h||l.value!==u.value){var d=Yb(this._engine.playersByElement,t,[]);d.forEach(function(t){t.namespaceId==i.id&&t.triggerName==e&&t.queued&&t.destroy()});var f=o.matchTransition(l.value,u.value,t,u.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:l,toState:u,player:a,isFallbackTransition:p}),p||(Ex(t,fx),a.onStart(function(){Ox(t,fx)})),a.onDone(function(){var e=i.players.indexOf(a);e>=0&&i.players.splice(e,1);var n=i._engine.playersByElement.get(t);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),d.push(a),a}if(!Lx(l.params,u.params)){var g=[],m=o.matchStyles(l.value,l.params,g),v=o.matchStyles(u.value,u.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(function(){ww(t,m),bw(t,v)})}}},{key:"deregister",value:function(t){var e=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(e,n){delete e[t]}),this._elementListeners.forEach(function(n,i){e._elementListeners.set(i,n.filter(function(e){return e.name!=t}))})}},{key:"clearElementCache",value:function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var e=this._engine.playersByElement.get(t);e&&(e.forEach(function(t){return t.destroy()}),this._engine.playersByElement.delete(t))}},{key:"_signalRemovalForInnerTriggers",value:function(t,e){var n=this,i=this._engine.driver.query(t,cw,!0);i.forEach(function(t){if(!t.__ng_removed){var i=n._engine.fetchNamespacesByElement(t);i.size?i.forEach(function(n){return n.triggerLeaveAnimation(t,e,!1,!0)}):n.clearElementCache(t)}}),this._engine.afterFlushAnimationsDone(function(){return i.forEach(function(t){return n.clearElementCache(t)})})}},{key:"triggerLeaveAnimation",value:function(t,e,n,i){var r=this,o=this._engine.statesByElement.get(t);if(o){var a=[];if(Object.keys(o).forEach(function(e){if(r._triggers[e]){var n=r.trigger(t,e,wx,i);n&&a.push(n)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&Hb(a).onDone(function(){return r._engine.processLeaveNode(t)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(t){var e=this,n=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(n&&i){var r=new Set;n.forEach(function(n){var o=n.name;if(!r.has(o)){r.add(o);var a=e._triggers[o].fallbackTransition,s=i[o]||xx,l=new bx(wx),u=new Cx(e.id,o,t);e._engine.totalQueuedPlayers++,e._queue.push({element:t,triggerName:o,transition:a,fromState:s,toState:l,player:u,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(t,e){var n=this,i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),!this.triggerLeaveAnimation(t,e,!0)){var r=!1;if(i.totalAnimations){var o=i.players.length?i.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else for(var a=t;a=a.parentNode;)if(i.statesByElement.get(a)){r=!0;break}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{var s=t.__ng_removed;s&&s!==yx||(i.afterFlush(function(){return n.clearElementCache(t)}),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}}},{key:"insertNode",value:function(t,e){Ex(t,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(t){var e=this,n=[];return this._queue.forEach(function(i){var r=i.player;if(!r.destroyed){var o=i.element,a=e._elementListeners.get(o);a&&a.forEach(function(e){if(e.name==i.triggerName){var n=Wb(o,i.triggerName,i.fromState.value,i.toState.value);n._data=t,Gb(i.player,e.phase,n,e.callback)}}),r.markedForDestroy?e._engine.afterFlush(function(){r.destroy()}):n.push(i)}}),this._queue=[],n.sort(function(t,n){var i=t.transition.ast.depCount,r=n.transition.ast.depCount;return 0==i||0==r?i-r:e._engine.driver.containsElement(t.element,n.element)?1:-1})}},{key:"destroy",value:function(t){this.players.forEach(function(t){return t.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,t)}},{key:"elementContainsData",value:function(t){var e=!1;return this._elementListeners.has(t)&&(e=!0),!!this._queue.find(function(e){return e.element===t})||e}}]),t}(),Sx=function(){function t(e,n,i){s(this,t),this.bodyNode=e,this.driver=n,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=function(t,e){}}return a(t,[{key:"_onRemovalComplete",value:function(t,e){this.onRemovalComplete(t,e)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach(function(e){e.players.forEach(function(e){e.queued&&t.push(e)})}),t}},{key:"createNamespace",value:function(t,e){var n=new kx(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}},{key:"_balanceNamespaceList",value:function(t,e){var n=this._namespaceList.length-1;if(n>=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}},{key:"register",value:function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}},{key:"registerTrigger",value:function(t,e,n){var i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}},{key:"destroy",value:function(t,e){var n=this;if(t){var i=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(i);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(e)})}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var i=Object.keys(n),r=0;r=0&&this.collectedLeaveElements.splice(o,1)}if(t){var a=this._fetchNamespace(t);a&&a.insertNode(e,n)}i&&this.collectEnterElement(e)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Ex(t,px)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Ox(t,px))}},{key:"removeNode",value:function(t,e,n,i){if(Mx(e)){var r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){var o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,i)}}else this._onRemovalComplete(e,i)}},{key:"markElementAsRemoved",value:function(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(t,e,n,i,r){return Mx(e)?this._fetchNamespace(t).listen(e,n,i,r):function(){}}},{key:"_buildInstruction",value:function(t,e,n,i,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,r)}},{key:"destroyInnerAnimations",value:function(t){var e=this,n=this.driver.query(t,cw,!0);n.forEach(function(t){return e.destroyActiveAnimationsForElement(t)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,dw,!0)).forEach(function(t){return e.finishActiveQueriedAnimationOnElement(t)})}},{key:"destroyActiveAnimationsForElement",value:function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(t){return t.finish()})}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise(function(e){if(t.players.length)return Hb(t.players).onDone(function(){return e()});e()})}},{key:"processLeaveNode",value:function(t){var e=this,n=t.__ng_removed;if(n&&n.setForRemoval){if(t.__ng_removed=yx,n.namespaceId){this.destroyInnerAnimations(t);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,gx)&&this.markElementAsDisabled(t,!1),this.driver.query(t,gx,!0).forEach(function(t){e.markElementAsDisabled(t,!1)})}},{key:"flush",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(e,n){return t._balanceNamespaceList(e,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;M--)this._namespaceList[M].drainQueuedTransitions(e).forEach(function(t){var e=t.player,o=t.element;if(C.push(e),n.collectedEnterElements.length){var c=o.__ng_removed;if(c&&c.setForMove)return void e.destroy()}var d=!h||!n.driver.containsElement(h,o),f=k.get(o),g=p.get(o),m=n._buildInstruction(t,i,g,f,d);if(m.errors&&m.errors.length)A.push(m);else{if(d)return e.onStart(function(){return ww(o,m.fromStyles)}),e.onDestroy(function(){return bw(o,m.toStyles)}),void r.push(e);if(t.isFallbackTransition)return e.onStart(function(){return ww(o,m.fromStyles)}),e.onDestroy(function(){return bw(o,m.toStyles)}),void r.push(e);m.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),i.append(o,m.timelines),a.push({instruction:m,player:e,element:o}),m.queriedElements.forEach(function(t){return Yb(s,t,[]).push(e)}),m.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var i=l.get(e);i||l.set(e,i=new Set),n.forEach(function(t){return i.add(t)})}}),m.postStyleProps.forEach(function(t,e){var n=Object.keys(t),i=u.get(e);i||u.set(e,i=new Set),n.forEach(function(t){return i.add(t)})})}});if(A.length){var I=[];A.forEach(function(t){I.push("@".concat(t.triggerName," has failed due to:\n")),t.errors.forEach(function(t){return I.push("- ".concat(t,"\n"))})}),C.forEach(function(t){return t.destroy()}),this.reportError(I)}var T=new Map,D=new Map;a.forEach(function(t){var e=t.element;i.has(e)&&(D.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,T))}),r.forEach(function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){Yb(T,e,[]).push(t),t.destroy()})});var E=m.filter(function(t){return Nx(t,l,u)}),O=new Map;Tx(O,this.driver,y,u,Cb).forEach(function(t){Nx(t,l,u)&&E.push(t)});var P=new Map;f.forEach(function(t,e){Tx(P,n.driver,new Set(t),l,Vb)}),E.forEach(function(t){var e=O.get(t),n=P.get(t);O.set(t,Object.assign(Object.assign({},e),n))});var R=[],L=[],N={};a.forEach(function(t){var e=t.element,a=t.player,s=t.instruction;if(i.has(e)){if(c.has(e))return a.onDestroy(function(){return bw(e,s.toStyles)}),a.disabled=!0,a.overrideTotalTime(s.totalTime),void r.push(a);var l=N;if(D.size>1){for(var u=e,h=[];u=u.parentNode;){var d=D.get(u);if(d){l=d;break}h.push(u)}h.forEach(function(t){return D.set(t,l)})}var f=n._buildAnimation(a.namespaceId,s,T,o,P,O);if(a.setRealPlayer(f),l===N)R.push(a);else{var p=n.playersByElement.get(l);p&&p.length&&(a.parentPlayer=Hb(p)),r.push(a)}}else ww(e,s.fromStyles),a.onDestroy(function(){return bw(e,s.toStyles)}),L.push(a),c.has(e)&&r.push(a)}),L.forEach(function(t){var e=o.get(t.element);if(e&&e.length){var n=Hb(e);t.setRealPlayer(n)}}),r.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var F=0;F0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Nb(t.duration,t.delay)}}]),t}(),Cx=function(){function t(e,n,i){s(this,t),this.namespaceId=e,this.triggerName=n,this.element=i,this._player=new Nb,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return a(t,[{key:"setRealPlayer",value:function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(e){return Gb(t,n,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart(function(){return n.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})}},{key:"_queueEvent",value:function(t,e){Yb(this._queuedCallbacks,t,[]).push(e)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)}}]),t}();function Ax(t){return null!=t?t:null}function Mx(t){return t&&1===t.nodeType}function Ix(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function Tx(t,e,n,i,r){var o=[];n.forEach(function(t){return o.push(Ix(t))});var a=[];i.forEach(function(n,i){var o={};n.forEach(function(t){var n=o[t]=e.computeStyle(i,t,r);n&&0!=n.length||(i.__ng_removed=_x,a.push(i))}),t.set(i,o)});var s=0;return n.forEach(function(t){return Ix(t,o[s++])}),a}function Dx(t,e){var n=new Map;if(t.forEach(function(t){return n.set(t,[])}),0==e.length)return n;var i=new Set(e),r=new Map;function o(t){if(!t)return 1;var e=r.get(t);if(e)return e;var a=t.parentNode;return e=n.has(a)?a:i.has(a)?1:o(a),r.set(t,e),e}return e.forEach(function(t){var e=o(t);1!==e&&n.get(e).push(t)}),n}function Ex(t,e){if(t.classList)t.classList.add(e);else{var n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Ox(t,e){if(t.classList)t.classList.remove(e);else{var n=t.$$classes;n&&delete n[e]}}function Px(t,e,n){Hb(n).onDone(function(){return t.processLeaveNode(e)})}function Rx(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),t}();function Vx(t,e){var n=null,i=null;return Array.isArray(e)&&e.length?(n=Bx(e[0]),e.length>1&&(i=Bx(e[e.length-1]))):e&&(n=Bx(e)),n||i?new zx(t,n,i):null}var zx=function(){var t=function(){function t(e,n,i){s(this,t),this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;var r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}return a(t,[{key:"start",value:function(){this._state<1&&(this._startStyles&&bw(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(bw(this._element,this._initialStyles),this._endStyles&&(bw(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(ww(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ww(this._element,this._endStyles),this._endStyles=null),bw(this._element,this._initialStyles),this._state=3)}}]),t}();return t.initialStylesByElement=new WeakMap,t}();function Bx(t){for(var e=null,n=Object.keys(t),i=0;i=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),Xx(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var t,e,n,i;this._destroyed||(this._destroyed=!0,this.finish(),e=this._name,(i=qx(n=Kx(t=this._element,"").split(","),e))>=0&&(n.splice(i,1),Zx(t,"",n.join(","))))}}]),t}();function Wx(t,e,n){Zx(t,"PlayState",n,Yx(t,e))}function Yx(t,e){var n=Kx(t,"");return n.indexOf(",")>0?qx(n.split(","),e):qx([n],e)}function qx(t,e){for(var n=0;n=0)return n;return-1}function Xx(t,e,n){n?t.removeEventListener(Gx,e):t.addEventListener(Gx,e)}function Zx(t,e,n,i){var r=jx+e;if(null!=i){var o=t.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}t.style[r]=n}function Kx(t,e){return t.style[jx+e]||""}var $x=function(){function t(e,n,i,r,o,a,l,u){s(this,t),this.element=e,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=o,this._finalStyles=l,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=r+o,this._buildStyler()}return a(t,[{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(t){this._styler.setPosition(t)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var t=this;this._styler=new Ux(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}},{key:"beforeDestroy",value:function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(e[i]=n?t._finalStyles[i]:Ow(t.element,i))})}this.currentSnapshot=e}}]),t}(),Qx=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this)).element=t,r._startingStyles={},r.__initialized=!1,r._styles=rw(i),r}return a(n,[{key:"init",value:function(){var t=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(e){t._startingStyles[e]=t.element.style[e]}),r(i(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var t=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(e){return t.element.style.setProperty(e,t._styles[e])}),r(i(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var t=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(e){var n=t._startingStyles[e];n?t.element.style.setProperty(e,n):t.element.style.removeProperty(e)}),this._startingStyles=null,r(i(n.prototype),"destroy",this).call(this))}}]),n}(Nb),Jx="gen_css_kf_",tk=function(){function t(){s(this,t),this._count=0}return a(t,[{key:"validateStyleProperty",value:function(t){return tw(t)}},{key:"matchesElement",value:function(t,e){return ew(t,e)}},{key:"containsElement",value:function(t,e){return nw(t,e)}},{key:"query",value:function(t,e,n){return iw(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"buildKeyframeElement",value:function(t,e,n){n=n.map(function(t){return rw(t)});var i="@keyframes ".concat(e," {\n"),r="";n.forEach(function(t){r=" ";var e=parseFloat(t.offset);i+="".concat(r).concat(100*e,"% {\n"),r+=" ",Object.keys(t).forEach(function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(e,": ").concat(n,";\n"))}}),i+="".concat(r,"}\n")}),i+="}\n";var o=document.createElement("style");return o.textContent=i,o}},{key:"animate",value:function(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=o.filter(function(t){return t instanceof $x}),s={};Tw(n,i)&&a.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return s[t]=e[t]})});var l=nk(e=Dw(t,e,s));if(0==n)return new Qx(t,l);var u="".concat(Jx).concat(this._count++),c=this.buildKeyframeElement(t,u,e),h=ek(t);h.appendChild(c);var d=Vx(t,e),f=new $x(t,e,u,n,i,r,l,d);return f.onDestroy(function(){return ik(c)}),f}}]),t}();function ek(t){var e,n=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head}function nk(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach(function(t){Object.keys(t).forEach(function(n){"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}function ik(t){t.parentNode.removeChild(t)}var rk=function(){function t(e,n,i,r){s(this,t),this.element=e,this.keyframes=n,this.options=i,this._specialStyles=r,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}return a(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(t,e,n){return t.animate(e,n)}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:Ow(t.element,n))}),this.currentSnapshot=e}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),ok=function(){function t(){s(this,t),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(ak().toString()),this._cssKeyframesDriver=new tk}return a(t,[{key:"validateStyleProperty",value:function(t){return tw(t)}},{key:"matchesElement",value:function(t,e){return ew(t,e)}},{key:"containsElement",value:function(t,e){return nw(t,e)}},{key:"query",value:function(t,e,n){return iw(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"overrideWebAnimationsSupport",value:function(t){this._isNativeImpl=t}},{key:"animate",value:function(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0,s=!a&&!this._isNativeImpl;if(s)return this._cssKeyframesDriver.animate(t,e,n,i,r,o);var l=0==i?"both":"forwards",u={duration:n,delay:i,fill:l};r&&(u.easing=r);var c={},h=o.filter(function(t){return t instanceof rk});Tw(n,i)&&h.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return c[t]=e[t]})});var d=Vx(t,e=Dw(t,e=e.map(function(t){return vw(t,!1)}),c));return new rk(t,e,u,d)}}]),t}();function ak(){return zb()&&Element.prototype.animate||{}}var sk=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this))._nextAnimationId=0,r._renderer=t.createRenderer(i.body,{id:"0",encapsulation:Xt.None,styles:[],data:{animation:[]}}),r}return a(n,[{key:"build",value:function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?Ib(t):t;return ck(this._renderer,null,e,"register",[n]),new lk(e,this._renderer)}}]),n}(kb);return t.\u0275fac=function(e){return new(e||t)(Fi(Il),Fi(rh))},t.\u0275prov=Ot({token:t,factory:t.\u0275fac}),t}(),lk=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this))._id=t,r._renderer=i,r}return a(n,[{key:"create",value:function(t,e){return new uk(this._id,t,e||{},this._renderer)}}]),n}(Sb),uk=function(){function t(e,n,i,r){s(this,t),this.id=e,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return a(t,[{key:"_listen",value:function(t,e){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),e)}},{key:"_command",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i=0&&t3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}},{key:"removeChild",value:function(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}},{key:"selectRootElement",value:function(t,e){return this.delegate.selectRootElement(t,e)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}},{key:"removeAttribute",value:function(t,e,n){this.delegate.removeAttribute(t,e,n)}},{key:"addClass",value:function(t,e){this.delegate.addClass(t,e)}},{key:"removeClass",value:function(t,e){this.delegate.removeClass(t,e)}},{key:"setStyle",value:function(t,e,n,i){this.delegate.setStyle(t,e,n,i)}},{key:"removeStyle",value:function(t,e,n){this.delegate.removeStyle(t,e,n)}},{key:"setProperty",value:function(t,e,n){e.charAt(0)==hk&&e==dk?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}},{key:"setValue",value:function(t,e){this.delegate.setValue(t,e)}},{key:"listen",value:function(t,e,n){return this.delegate.listen(t,e,n)}},{key:"disableAnimations",value:function(t,e){this.engine.disableAnimations(t,e)}}]),t}(),gk=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this,i,r,o)).factory=t,a.namespaceId=i,a}return a(n,[{key:"setProperty",value:function(t,e,n){e.charAt(0)==hk?"."==e.charAt(1)&&e==dk?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}},{key:"listen",value:function(t,e,n){var i,r,o=this;if(e.charAt(0)==hk){var a=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t),s=e.substr(1),l="";if(s.charAt(0)!=hk){var u=y((r=(i=s).indexOf("."),[i.substring(0,r),i.substr(r+1)]),2);s=u[0],l=u[1]}return this.engine.listen(this.namespaceId,a,s,l,function(t){o.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}]),n}(pk),mk=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r){return s(this,n),e.call(this,t.body,i,r)}return a(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(Fx);return t.\u0275fac=function(e){return new(e||t)(Fi(rh),Fi(aw),Fi(nx))},t.\u0275prov=Ot({token:t,factory:t.\u0275fac}),t}(),vk=new _i("AnimationModuleType"),yk=[{provide:kb,useClass:sk},{provide:nx,useFactory:function(){return new ix}},{provide:Fx,useClass:mk},{provide:Il,useFactory:function(t,e,n){return new fk(t,e,n)},deps:[md,Fx,xc]}],_k=[{provide:aw,useFactory:function(){return"function"==typeof ak()?new ok:new tk}},{provide:vk,useValue:"BrowserAnimations"}].concat(yk),bk=[{provide:aw,useClass:ow},{provide:vk,useValue:"NoopAnimations"}].concat(yk),wk=function(){var t=function(){function t(){s(this,t)}return a(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:e.disableAnimations?bk:_k}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:_k,imports:[Ed]}),t}();function xk(t,e){if(1&t&&ps(0,"mat-pseudo-checkbox",4),2&t){var n=Ms();cs("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}function kk(t,e){if(1&t&&(ds(0,"span",5),$s(1),fs()),2&t){var n=Ms();Eo(1),Js("(",n.group.label,")")}}var Sk=["*"],Ck=function(){var t=function t(){s(this,t)};return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t}(),Ak=function(){var t=function t(){s(this,t)};return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t}(),Mk=new Ol("12.1.0"),Ik=new _i("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),Tk=function(){var t=function(){function t(e,n,i){s(this,t),this._hasDoneGlobalChecks=!1,this._document=i,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return a(t,[{key:"_getWindow",value:function(){var t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}},{key:"_checksAreEnabled",value:function(){return Lc()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var t=this._getWindow();return t&&(t.__karma__||t.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);var e=getComputedStyle(t);e&&"none"!==e.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"),this._document.body.removeChild(t)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&Mk.full!==xb.full&&console.warn("The Angular Material version ("+Mk.full+") does not match the Angular CDK version ("+xb.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(bb),Fi(Ik,8),Fi(rh))},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[py],py]}),t}();function Dk(t){return function(t){u(n,t);var e=p(n);function n(){var t;s(this,n);for(var i=arguments.length,r=new Array(i),o=0;o1&&void 0!==arguments[1]?arguments[1]:0;return function(t){u(i,t);var n=p(i);function i(){var t;s(this,i);for(var r=arguments.length,o=new Array(r),a=0;a0?n:t}}]),t}(),zk=new _i("mat-date-formats");try{Nk="undefined"!=typeof Intl}catch(gH){Nk=!1}var Bk={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},Hk=Uk(31,function(t){return String(t+1)}),jk={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},Gk=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Uk(t,e){for(var n=Array(t),i=0;i9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});var n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(n,t))}return this._stripDirectionalityCharacters(t.toDateString())}},{key:"addCalendarYears",value:function(t,e){return this.addCalendarMonths(t,12*e)}},{key:"addCalendarMonths",value:function(t,e){var n=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(n)!=((this.getMonth(t)+e)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}},{key:"addCalendarDays",value:function(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}},{key:"toIso8601",value:function(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}},{key:"deserialize",value:function(t){if("string"==typeof t){if(!t)return null;if(Gk.test(t)){var e=new Date(t);if(this.isValid(e))return e}}return r(i(n.prototype),"deserialize",this).call(this,t)}},{key:"isDateInstance",value:function(t){return t instanceof Date}},{key:"isValid",value:function(t){return!isNaN(t.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(t,e,n){var i=new Date;return i.setFullYear(t,e,n),i.setHours(0,0,0,0),i}},{key:"_2digit",value:function(t){return("00"+t).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(t){return t.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(t,e){var n=new Date;return n.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(n)}}]),n}(Vk);return t.\u0275fac=function(e){return new(e||t)(Fi(Fk,8),Fi(ry))},t.\u0275prov=Ot({token:t,factory:t.\u0275fac}),t}(),Yk=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[{provide:Vk,useClass:Wk}],imports:[[oy]]}),t}(),qk={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},Xk=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[{provide:zk,useValue:qk}],imports:[[Yk]]}),t}(),Zk=function(){var t=function(){function t(){s(this,t)}return a(t,[{key:"isErrorState",value:function(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ot({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Kk=function(){function t(e,n,i){s(this,t),this._renderer=e,this.element=n,this.config=i,this.state=3}return a(t,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),t}(),$k={enterDuration:450,exitDuration:400},Qk=ly({passive:!0}),Jk=["mousedown","touchstart"],tS=["mouseup","mouseleave","touchend","touchcancel"],eS=function(){function t(e,n,i,r){s(this,t),this._target=e,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=wv(i))}return a(t,[{key:"fadeInRipple",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},$k),i.animation);i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);var a=i.radius||iS(t,e,r),s=t-r.left,l=e-r.top,u=o.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left="".concat(s-a,"px"),c.style.top="".concat(l-a,"px"),c.style.height="".concat(2*a,"px"),c.style.width="".concat(2*a,"px"),null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration="".concat(u,"ms"),this._containerElement.appendChild(c),nS(c),c.style.transform="scale(1)";var h=new Kk(this,c,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var t=h===n._mostRecentTransientRipple;h.state=1,i.persistent||t&&n._isPointerDown||h.fadeOut()},u),h}},{key:"fadeOutRipple",value:function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var n=t.element,i=Object.assign(Object.assign({},$k),t.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(function(){t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(t){return t.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(t){t.config.persistent||t.fadeOut()})}},{key:"setupTriggerEvents",value:function(t){var e=wv(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(Jk))}},{key:"handleEvent",value:function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(tS),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(t){var e=nb(t),n=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(t,e)})}},{key:"_registerEvents",value:function(t){var e=this;this._ngZone.runOutsideAngular(function(){t.forEach(function(t){e._triggerElement.addEventListener(t,e,Qk)})})}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&(Jk.forEach(function(e){t._triggerElement.removeEventListener(e,t,Qk)}),this._pointerUpEventsRegistered&&tS.forEach(function(e){t._triggerElement.removeEventListener(e,t,Qk)}))}}]),t}();function nS(t){window.getComputedStyle(t).getPropertyValue("opacity")}function iS(t,e,n){var i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),r=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+r*r)}var rS=new _i("mat-ripple-global-options"),oS=function(){var t=function(){function t(e,n,i,r,o){s(this,t),this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new eS(this,n,e,i)}return a(t,[{key:"disabled",get:function(){return this._disabled},set:function(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){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}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Al),us(xc),us(ry),us(rS,8),us(vk,8))},t.\u0275dir=me({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&Bs("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}(),aS=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[Tk,oy],Tk]}),t}(),sS=function(){var t=function t(e){s(this,t),this._animationMode=e,this.state="unchecked",this.disabled=!1};return t.\u0275fac=function(e){return new(e||t)(us(vk,8))},t.\u0275cmp=ce({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&Bs("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}(),lS=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[Tk]]}),t}(),uS=new _i("MAT_OPTION_PARENT_COMPONENT"),cS=Dk(function(){return function t(){s(this,t)}}()),hS=0,dS=function(){var t=function(t){u(n,t);var e=p(n);function n(t){var i,r;return s(this,n),(i=e.call(this))._labelId="mat-optgroup-label-".concat(hS++),i._inert=null!==(r=null==t?void 0:t.inertGroups)&&void 0!==r&&r,i}return n}(cS);return t.\u0275fac=function(e){return new(e||t)(us(uS,8))},t.\u0275dir=me({type:t,inputs:{label:"label"},features:[Ya]}),t}(),fS=new _i("MatOptgroup"),pS=0,gS=function t(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s(this,t),this.source=e,this.isUserInput=n},mS=function(){var t=function(){function t(e,n,i,r){s(this,t),this._element=e,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(pS++),this.onSelectionChange=new Lu,this._stateChanges=new U}return a(t,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(t){this._disabled=mv(t)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(t,e){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(t){t.keyCode!==Ly&&t.keyCode!==Fy||Uy(t)||(this._selectViaInteraction(),t.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new gS(this,t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Al),us(Ql),us(void 0),us(dS))},t.\u0275dir=me({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t}(),vS=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o){return s(this,n),e.call(this,t,i,r,o)}return n}(mS);return t.\u0275fac=function(e){return new(e||t)(us(Al),us(Ql),us(uS,8),us(fS,8))},t.\u0275cmp=ce({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&xs("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(el("id",e.id),os("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),Bs("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[Ya],ngContentSelectors:Sk,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,e){1&t&&(Ts(),ss(0,xk,1,2,"mat-pseudo-checkbox",0),ds(1,"span",1),Ds(2),fs(),ss(3,kk,2,1,"span",2),ps(4,"div",3)),2&t&&(cs("ngIf",e.multiple),Eo(3),cs("ngIf",e.group&&e.group._inert),Eo(1),cs("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[Dh,oS,sS],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}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.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}.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}();function yS(t,e,n){if(n.length){for(var i=e.toArray(),r=n.toArray(),o=0,a=0;an+i?Math.max(0,t-i+e):n}var bS=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[aS,Wh,Tk,lS]]}),t}();function wS(t,e){}var xS=function t(){s(this,t),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},kS={dialogContainer:Ab("dialogContainer",[Db("void, exit",Tb({opacity:0,transform:"scale(0.7)"})),Db("enter",Tb({transform:"none"})),Ob("* => enter",Mb("150ms cubic-bezier(0, 0, 0.2, 1)",Tb({transform:"none",opacity:1}))),Ob("* => void, * => exit",Mb("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Tb({opacity:0})))])},SS=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l){var u;return s(this,n),(u=e.call(this))._elementRef=t,u._focusTrapFactory=i,u._changeDetectorRef=r,u._config=a,u._focusMonitor=l,u._animationStateChanged=new Lu,u._elementFocusedBeforeDialogWasOpened=null,u._closeInteractionType=null,u.attachDomPortal=function(t){return u._portalOutlet.hasAttached(),u._portalOutlet.attachDomPortal(t)},u._ariaLabelledBy=a.ariaLabelledBy||null,u._document=o,u}return a(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){var e=hy(),n=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==n&&!n.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=hy())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var t=this._elementRef.nativeElement,e=hy();return t===e||t.contains(e)}}]),n}(Iy);return t.\u0275fac=function(e){return new(e||t)(us(Al),us(tb),us(Ql),us(rh,8),us(xS),us(gb))},t.\u0275dir=me({type:t,viewQuery:function(t,e){var n;1&t&&Xu(Ey,7),2&t&&qu(n=Ku())&&(e._portalOutlet=n.first)},features:[Ya]}),t}(),CS=function(){var t=function(t){u(n,t);var e=p(n);function n(){var t;return s(this,n),(t=e.apply(this,arguments))._state="enter",t}return a(n,[{key:"_onAnimationDone",value:function(t){var e=t.toState,n=t.totalTime;"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(t){var e=t.toState,n=t.totalTime;"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:n}):"exit"!==e&&"void"!==e||this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(SS);return t.\u0275fac=function(){var e;return function(n){return(e||(e=pi(t)))(n||t)}}(),t.\u0275cmp=ce({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&ks("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(el("id",e._id),os("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),nl("@dialogContainer",e._state))},features:[Ya],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&ss(0,wS,0,0,"ng-template",0)},directives:[Ey],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[kS.dialogContainer]}}),t}(),AS=0,MS=function(){function t(e,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(AS++);s(this,t),this._overlayRef=e,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new U,this._afterClosed=new U,this._beforeClosed=new U,this._state=0,n._id=r,n._animationStateChanged.pipe(Rd(function(t){return"opened"===t.state}),Lf(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe(Rd(function(t){return"closed"===t.state}),Lf(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),e.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),e.keydownEvents().pipe(Rd(function(t){return t.keyCode===Ny&&!i.disableClose&&!Uy(t)})).subscribe(function(t){t.preventDefault(),IS(i,"keyboard")}),e.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():IS(i,"mouse")})}return a(t,[{key:"close",value:function(t){var e=this;this._result=t,this._containerInstance._animationStateChanged.pipe(Rd(function(t){return"closing"===t.state}),Lf(1)).subscribe(function(n){e._beforeClosed.next(t),e._beforeClosed.complete(),e._overlayRef.detachBackdrop(),e._closeFallbackTimeout=setTimeout(function(){return e._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(t){var e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(t){return this._overlayRef.addPanelClass(t),this}},{key:"removePanelClass",value:function(t){return this._overlayRef.removePanelClass(t),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),t}();function IS(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}var TS=new _i("MatDialogData"),DS=new _i("mat-dialog-default-options"),ES=new _i("mat-dialog-scroll-strategy"),OS={provide:ES,deps:[__],useFactory:function(t){return function(){return t.scrollStrategies.block()}}},PS=function(){var t=function(){function t(e,n,i,r,o,a,l,u,c){var h=this;s(this,t),this._overlay=e,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=o,this._dialogRefConstructor=l,this._dialogContainerType=u,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new U,this._afterOpenedAtThisLevel=new U,this._ariaHiddenElements=new Map,this.afterAllClosed=Df(function(){return h.openDialogs.length?h._getAfterAllClosed():h._getAfterAllClosed().pipe(Vf(void 0))}),this._scrollStrategy=a}return a(t,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(t,e){var n=this;(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new xS)).id&&this.getDialogById(e.id);var i=this._createOverlay(e),r=this._attachDialogContainer(i,e),o=this._attachDialogContent(t,r,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(function(){return n._removeOpenDialog(o)}),this.afterOpened.next(o),r._initializeWithAttachedContent(),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(t){return this.openDialogs.find(function(e){return e.id===t})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(t){var e=this._getOverlayConfig(t);return this._overlay.create(e)}},{key:"_getOverlayConfig",value:function(t){var e=new Jy({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}},{key:"_attachDialogContainer",value:function(t,e){var n=Ua.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:xS,useValue:e}]}),i=new Cy(this._dialogContainerType,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}},{key:"_attachDialogContent",value:function(t,e,n,i){var r=new this._dialogRefConstructor(n,e,i.id);if(t instanceof iu)e.attachTemplatePortal(new Ay(t,null,{$implicit:i.data,dialogRef:r}));else{var o=this._createInjector(i,r,e),a=e.attachComponentPortal(new Cy(t,i.viewContainerRef,o));r.componentInstance=a.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}},{key:"_createInjector",value:function(t,e,n){var i=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||i&&i.get(fy,null,jt.Optional)||r.push({provide:fy,useValue:{value:t.direction,change:Od()}}),Ua.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(t){var e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var t=this._overlayContainer.getContainerElement();if(t.parentElement)for(var e=t.parentElement.children,n=e.length-1;n>-1;n--){var i=e[n];i===t||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(t){for(var e=t.length;e--;)t[e].close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(__),us(Ua),us(void 0),us(void 0),us(a_),us(void 0),us(wi),us(wi),us(_i))},t.\u0275dir=me({type:t}),t}(),RS=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l,u){return s(this,n),e.call(this,t,i,o,l,u,a,MS,CS,TS)}return n}(PS);return t.\u0275fac=function(e){return new(e||t)(Fi(__),Fi(Ua),Fi(_h,8),Fi(DS,8),Fi(ES),Fi(t,12),Fi(a_))},t.\u0275prov=Ot({token:t,factory:t.\u0275fac}),t}(),LS=0,NS=function(){var t=function(){function t(e,n,i){s(this,t),this.dialogRef=e,this._elementRef=n,this._dialog=i,this.type="button"}return a(t,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=BS(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(t){var e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}},{key:"_onButtonClick",value:function(t){IS(this.dialogRef,0===t.screenX&&0===t.screenY?"keyboard":"mouse",this.dialogResult)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(MS,8),us(Al),us(RS))},t.\u0275dir=me({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&xs("click",function(t){return e._onButtonClick(t)}),2&t&&os("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[De]}),t}(),FS=function(){var t=function(){function t(e,n,i){s(this,t),this._dialogRef=e,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-".concat(LS++)}return a(t,[{key:"ngOnInit",value:function(){var t=this;this._dialogRef||(this._dialogRef=BS(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var e=t._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=t.id)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(MS,8),us(Al),us(RS))},t.\u0275dir=me({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&el("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t}(),VS=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t}(),zS=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t}();function BS(t,e){for(var n=t.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find(function(t){return t.id===n.id}):null}var HS=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[RS,OS],imports:[[C_,Oy,Tk],Tk]}),t}();function jS(t){var e=t.subscriber,n=t.counter,i=t.period;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}var GS=["mat-button",""],US=["*"],WS=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",YS=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],qS=Ek(Dk(Ok(function(){return function t(e){s(this,t),this._elementRef=e}}()))),XS=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;s(this,n),(o=e.call(this,t))._focusMonitor=i,o._animationMode=r,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var a,l=v(YS);try{for(l.s();!(a=l.n()).done;){var u=a.value;o._hasHostAttributes(u)&&o._getHostElement().classList.add(u)}}catch(c){l.e(c)}finally{l.f()}return t.nativeElement.classList.add("mat-button-base"),o.isRoundButton&&(o.color="accent"),o}return a(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i0&&(this.dialogRef.afterClosed().subscribe(function(e){t.closed()}),this.setExtra(this.data.autoclose),this.subscription=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zv;return(!Gv(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=zv),new z(function(n){return n.add(e.schedule(jS,t,{subscriber:n,counter:0,period:t})),n})}(1e3).subscribe(function(e){var n=t.data.autoclose-1e3*(e+1);t.setExtra(n),n<=0&&t.close()}))},t.prototype.initYesNo=function(){},t.prototype.ngOnInit=function(){!0===this.data.warnOnYes&&(this.yesColor="warn",this.noColor="primary"),this.data.type===nC.yesno?this.initYesNo():this.initAlert()},t.\u0275fac=function(e){return new(e||t)(us(MS),us(TS))},t.\u0275cmp=ce({type:t,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"color","click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"],["mat-raised-button","","mat-dialog-close","",3,"color","click"]],template:function(t,e){1&t&&(ps(0,"h4",0),Tu(1,"safeHtml"),ps(2,"mat-dialog-content",1),Tu(3,"safeHtml"),ds(4,"mat-dialog-actions"),ss(5,JS,4,1,"button",2),ss(6,tC,3,1,"button",3),ss(7,eC,3,1,"button",3),fs()),2&t&&(cs("innerHtml",Du(1,5,e.data.title),Ir),Eo(2),cs("innerHTML",Du(3,7,e.data.body),Ir),Eo(3),cs("ngIf",0==e.data.type),Eo(1),cs("ngIf",1==e.data.type),Eo(1),cs("ngIf",1==e.data.type))},directives:[FS,VS,zS,Dh,XS,NS,$S],pipes:[QS],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}(),rC=function(t){return t.TEXT="text",t.TEXTBOX="textbox",t.NUMERIC="numeric",t.PASSWORD="password",t.HIDDEN="hidden",t.CHOICE="choice",t.MULTI_CHOICE="multichoice",t.EDITLIST="editlist",t.CHECKBOX="checkbox",t.IMAGECHOICE="imgchoice",t.DATE="date",t.DATETIME="datetime",t.TAGLIST="taglist",t}({}),oC=function(){function t(){}return t.locateChoice=function(t,e){var n=e.gui.values.find(function(e){return e.id===t});if(void 0===n)try{n=e.gui.values[0]}catch(i){n={id:"",img:"",text:""}}return n},t}();function aC(t,e){return new z(function(n){var i=t.length;if(0!==i)for(var r=new Array(i),o=0,a=0,s=function(s){var l=it(t[s]),u=!1;n.add(l.subscribe({next:function(t){u||(u=!0,a++),r[s]=t},error:function(t){return n.error(t)},complete:function(){++o!==i&&u||(a===i&&n.next(e?e.reduce(function(t,e,n){return t[e]=r[n],t},{}):r),n.complete())}}))},l=0;le?{max:{max:e,actual:t.value}}:null};var e}},{key:"required",value:function(t){return _C(t)}},{key:"requiredTrue",value:function(t){return bC(t)}},{key:"email",value:function(t){return function(t){return fC(t.value)||vC.test(t.value)?null:{email:!0}}(t)}},{key:"minLength",value:function(t){return e=t,function(t){return fC(t.value)||!pC(t.value)?null:t.value.lengtht?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}}function xC(t){return null}function kC(t){return null!=t}function SC(t){var e=_s(t)?it(t):t;return ws(e),e}function CC(t){var e={};return t.forEach(function(t){e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function AC(t,e){return e.map(function(e){return e(t)})}function MC(t){return t.map(function(t){return function(t){return!t.validate}(t)?t:function(e){return t.validate(e)}})}function IC(t){if(!t)return null;var e=t.filter(kC);return 0==e.length?null:function(t){return CC(AC(t,e))}}function TC(t){return null!=t?IC(MC(t)):null}function DC(t){if(!t)return null;var e=t.filter(kC);return 0==e.length?null:function(t){return function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,e){return!!this.control&&this.control.hasError(t,e)}},{key:"getError",value:function(t,e){return this.control?this.control.getError(t,e):null}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t}),t}(),NC=function(){var t=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(LC);return t.\u0275fac=function(){var e;return function(n){return(e||(e=pi(t)))(n||t)}}(),t.\u0275dir=me({type:t,features:[Ya]}),t}(),FC=function(t){u(n,t);var e=p(n);function n(){var t;return s(this,n),(t=e.apply(this,arguments))._parent=null,t.name=null,t.valueAccessor=null,t}return n}(LC),VC=function(){function t(e){s(this,t),this._cd=e}return a(t,[{key:"is",value:function(t){var e,n,i;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(i=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===i?void 0:i[t])}}]),t}(),zC=function(){var t=function(t){u(n,t);var e=p(n);function n(t){return s(this,n),e.call(this,t)}return n}(VC);return t.\u0275fac=function(e){return new(e||t)(us(FC,2))},t.\u0275dir=me({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&Bs("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[Ya]}),t}(),BC=function(){var t=function(t){u(n,t);var e=p(n);function n(t){return s(this,n),e.call(this,t)}return n}(VC);return t.\u0275fac=function(e){return new(e||t)(us(NC,10))},t.\u0275dir=me({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,e){2&t&&Bs("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))("ng-submitted",e.is("submitted"))},features:[Ya]}),t}();function HC(t,e){UC(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&YC(t,e)})}(t,e),function(t,e){var n=function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(function(){t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&YC(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){var n=function(t){e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(function(){t._unregisterOnDisabledChange(n)})}}(t,e)}function jC(t,e){var n=function(){};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),WC(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(function(){}))}function GC(t,e){t.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function UC(t,e){var n=PC(t);null!==e.validator?t.setValidators(OC(n,e.validator)):"function"==typeof n&&t.setValidators([n]);var i=RC(t);null!==e.asyncValidator?t.setAsyncValidators(OC(i,e.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);var r=function(){return t.updateValueAndValidity()};GC(e._rawValidators,r),GC(e._rawAsyncValidators,r)}function WC(t,e){var n=!1;if(null!==t){if(null!==e.validator){var i=PC(t);if(Array.isArray(i)&&i.length>0){var r=i.filter(function(t){return t!==e.validator});r.length!==i.length&&(n=!0,t.setValidators(r))}}if(null!==e.asyncValidator){var o=RC(t);if(Array.isArray(o)&&o.length>0){var a=o.filter(function(t){return t!==e.asyncValidator});a.length!==o.length&&(n=!0,t.setAsyncValidators(a))}}}var s=function(){};return GC(e._rawValidators,s),GC(e._rawAsyncValidators,s),n}function YC(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function qC(t,e){UC(t,e)}function XC(t,e){t._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function ZC(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var KC="VALID",$C="INVALID",QC="PENDING",JC="DISABLED";function tA(t){return(rA(t)?t.validators:t)||null}function eA(t){return Array.isArray(t)?TC(t):t||null}function nA(t,e){return(rA(e)?e.asyncValidators:t)||null}function iA(t){return Array.isArray(t)?EC(t):t||null}function rA(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var oA=function(){function t(e,n){s(this,t),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=n,this._composedValidatorFn=eA(this._rawValidators),this._composedAsyncValidatorFn=iA(this._rawAsyncValidators)}return a(t,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===KC}},{key:"invalid",get:function(){return this.status===$C}},{key:"pending",get:function(){return this.status==QC}},{key:"disabled",get:function(){return this.status===JC}},{key:"enabled",get:function(){return this.status!==JC}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=eA(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=iA(t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=QC,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status=JC,this.errors=null,this._forEachChild(function(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(function(t){return t(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status=KC,this._forEachChild(function(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(function(t){return t(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==KC&&this.status!==QC||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)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?JC:KC}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status=QC,this._hasOwnPendingAsyncValidator=!0;var n=SC(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){e._hasOwnPendingAsyncValidator=!1,e.setErrors(n,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value:function(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;var i=t;return e.forEach(function(t){i=i instanceof sA?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof lA&&i.at(t)||null}),i}(this,t)}},{key:"getError",value:function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new Lu,this.statusChanges=new Lu}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?JC:this.errors?$C:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(QC)?QC:this._anyControlsHaveStatus($C)?$C:KC}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(e){return e.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){rA(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),t}(),aA=function(t){u(n,t);var e=p(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return s(this,n),(t=e.call(this,tA(r),nA(o,r)))._onChange=[],t._applyFormState(i),t._setUpdateStrategy(r),t._initObservables(),t.updateValueAndValidity({onlySelf:!0,emitEvent:!!t.asyncValidator}),t}return a(n,[{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(t){return t(e.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(t,e)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(t){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(t){this._onChange.push(t)}},{key:"_unregisterOnChange",value:function(t){ZC(this._onChange,t)}},{key:"registerOnDisabledChange",value:function(t){this._onDisabledChange.push(t)}},{key:"_unregisterOnDisabledChange",value:function(t){ZC(this._onDisabledChange,t)}},{key:"_forEachChild",value:function(t){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(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}}]),n}(oA),sA=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,tA(i),nA(r,i))).controls=t,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return a(n,[{key:"registerControl",value:function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}},{key:"addControl",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),Object.keys(t).forEach(function(i){e._throwIfControlMissing(i),e.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=t&&(Object.keys(t).forEach(function(i){e.controls[i]&&e.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof aA?e.value:e.getRawValue(),t})}},{key:"_syncPendingControls",value:function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(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: ".concat(t,"."))}},{key:"_forEachChild",value:function(t){var e=this;Object.keys(this.controls).forEach(function(n){var i=e.controls[n];i&&t(i,n)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(t){for(var e=0,n=Object.keys(this.controls);e0||this.disabled}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(oA),lA=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,tA(i),nA(r,i))).controls=t,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return a(n,[{key:"at",value:function(t){return this.controls[t]}},{key:"push",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}},{key:"removeAt",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}},{key:"setControl",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),t.forEach(function(t,i){e._throwIfControlMissing(i),e.at(i).setValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=t&&(t.forEach(function(t,i){e.at(i)&&e.at(i).patchValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this.controls.map(function(t){return t instanceof aA?t.value:t.getRawValue()})}},{key:"clear",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(t){return t._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}},{key:"_syncPendingControls",value:function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(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 ".concat(t))}},{key:"_forEachChild",value:function(t){this.controls.forEach(function(e,n){t(e,n)})}},{key:"_updateValue",value:function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})}},{key:"_anyControls",value:function(t){return this.controls.some(function(e){return e.enabled&&t(e)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var t,e=v(this.controls);try{for(e.s();!(t=e.n()).done;)if(t.value.enabled)return!1}catch(n){e.e(n)}finally{e.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}]),n}(oA),uA={provide:NC,useExisting:Ct(function(){return hA})},cA=function(){return Promise.resolve(null)}(),hA=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new Lu,r.form=new sA({},TC(t),EC(i)),r}return a(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(t){var e=this;cA.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),HC(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){var e=this;cA.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),ZC(e._directives,t)})}},{key:"addFormGroup",value:function(t){var e=this;cA.then(function(){var n=e._findContainer(t.path),i=new sA({});qC(i,t),n.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(t){var e=this;cA.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){var n=this;cA.then(function(){n.form.get(t.path).setValue(e)})}},{key:"setValue",value:function(t){this.control.setValue(t)}},{key:"onSubmit",value:function(t){return this.submitted=!0,XC(this.form,this._directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(t),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(t){return t.pop(),t.length?this.form.get(t):this.form}}]),n}(NC);return t.\u0275fac=function(e){return new(e||t)(us(gC,10),us(mC,10))},t.\u0275dir=me({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&xs("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[yl([uA]),Ya]}),t}(),dA={provide:FC,useExisting:Ct(function(){return pA})},fA=function(){return Promise.resolve(null)}(),pA=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this)).control=new aA,a._registered=!1,a.update=new Lu,a._parent=t,a._setValidators(i),a._setAsyncValidators(r),a.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e);var n=void 0,i=void 0,r=void 0;return e.forEach(function(t){t.constructor===dC?n=t:Object.getPrototypeOf(t.constructor)===lC?i=t:r=t}),r||i||n||null}(d(a),o),a}return a(n,[{key:"ngOnChanges",value:function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?(t=this.name,[].concat(b(this._parent.path),[t])):[this.name];var t}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){HC(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(t){var e=this;fA.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(t){var e=this,n=t.isDisabled.currentValue,i=""===n||n&&"false"!==n;fA.then(function(){i&&!e.control.disabled?e.control.disable():!i&&e.control.disabled&&e.control.enable()})}}]),n}(FC);return t.\u0275fac=function(e){return new(e||t)(us(NC,9),us(gC,10),us(mC,10),us(uC,10))},t.\u0275dir=me({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:[yl([dA]),Ya,De]}),t}(),gA=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t}(),mA={provide:uC,useExisting:Ct(function(){return vA}),multi:!0},vA=function(){var t=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"writeValue",value:function(t){this.setProperty("value",null==t?"":t)}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}}]),n}(lC);return t.\u0275fac=function(){var e;return function(n){return(e||(e=pi(t)))(n||t)}}(),t.\u0275dir=me({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&xs("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[yl([mA]),Ya]}),t}(),yA=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({}),t}(),_A=new _i("NgModelWithFormControlWarning"),bA={provide:NC,useExisting:Ct(function(){return wA})},wA=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this)).validators=t,r.asyncValidators=i,r.submitted=!1,r._onCollectionChange=function(){return r._updateDomValue()},r.directives=[],r.form=null,r.ngSubmit=new Lu,r._setValidators(t),r._setAsyncValidators(i),r}return a(n,[{key:"ngOnChanges",value:function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(WC(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(t){var e=this.form.get(t.path);return HC(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){jC(t.control||null,t),ZC(this.directives,t)}},{key:"addFormGroup",value:function(t){this._setUpFormContainer(t)}},{key:"removeFormGroup",value:function(t){this._cleanUpFormContainer(t)}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"addFormArray",value:function(t){this._setUpFormContainer(t)}},{key:"removeFormArray",value:function(t){this._cleanUpFormContainer(t)}},{key:"getFormArray",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){this.form.get(t.path).setValue(e)}},{key:"onSubmit",value:function(t){return this.submitted=!0,XC(this.form,this.directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(t),this.submitted=!1}},{key:"_updateDomValue",value:function(){var t=this;this.directives.forEach(function(e){var n=e.control,i=t.form.get(e.path);n!==i&&(jC(n||null,e),i instanceof aA&&(HC(i,e),e.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(t){var e=this.form.get(t.path);qC(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(t){if(this.form){var e=this.form.get(t.path);e&&function(t,e){return WC(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){UC(this.form,this),this._oldForm&&WC(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),n}(NC);return t.\u0275fac=function(e){return new(e||t)(us(gC,10),us(mC,10))},t.\u0275dir=me({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&xs("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[yl([bA]),Ya,De]}),t}(),xA={provide:gC,useExisting:Ct(function(){return SA}),multi:!0},kA={provide:gC,useExisting:Ct(function(){return CA}),multi:!0},SA=function(){var t=function(){function t(){s(this,t),this._required=!1}return a(t,[{key:"required",get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&"false"!=="".concat(t),this._onChange&&this._onChange()}},{key:"validate",value:function(t){return this.required?_C(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&os("required",e.required?"":null)},inputs:{required:"required"},features:[yl([xA])]}),t}(),CA=function(){var t=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"validate",value:function(t){return this.required?bC(t):null}}]),n}(SA);return t.\u0275fac=function(){var e;return function(n){return(e||(e=pi(t)))(n||t)}}(),t.\u0275dir=me({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&os("required",e.required?"":null)},features:[yl([kA]),Ya]}),t}(),AA={provide:gC,useExisting:Ct(function(){return MA}),multi:!0},MA=function(){var t=function(){function t(){s(this,t),this._validator=xC}return a(t,[{key:"ngOnChanges",value:function(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(t){return null!=this.maxlength?this._validator(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"_createValidator",value:function(){this._validator=wC("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&os("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[yl([AA]),De]}),t}(),IA=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[yA]]}),t}(),TA=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[IA]}),t}(),DA=function(){var t=function(){function t(){s(this,t)}return a(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:[{provide:_A,useValue:e.warnOnNgModelWithFormControl}]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[IA]}),t}();function EA(t,e){1&t&&Ds(0)}var OA=["*"];function PA(t,e){}var RA=function(t){return{animationDuration:t}},LA=function(t,e){return{value:t,params:e}},NA=["tabBodyWrapper"],FA=["tabHeader"];function VA(t,e){}function zA(t,e){1&t&&ss(0,VA,0,0,"ng-template",9),2&t&&cs("cdkPortalOutlet",Ms().$implicit.templateLabel)}function BA(t,e){1&t&&$s(0),2&t&&Qs(Ms().$implicit.textLabel)}function HA(t,e){if(1&t){var n=ys();ds(0,"div",6),xs("click",function(){var t=en(n),e=t.$implicit,i=t.index,r=Ms(),o=ls(1);return r._handleClick(e,o,i)})("cdkFocusChange",function(t){var e=en(n).index;return Ms()._tabFocusChanged(t,e)}),ds(1,"div",7),ss(2,zA,1,1,"ng-template",8),ss(3,BA,1,1,"ng-template",8),fs(),fs()}if(2&t){var i=e.$implicit,r=e.index,o=Ms();Bs("mat-tab-label-active",o.selectedIndex==r),cs("id",o._getTabLabelId(r))("disabled",i.disabled)("matRippleDisabled",i.disabled||o.disableRipple),os("tabIndex",o._getTabIndex(i,r))("aria-posinset",r+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(r))("aria-selected",o.selectedIndex==r)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),Eo(2),cs("ngIf",i.templateLabel),Eo(1),cs("ngIf",!i.templateLabel)}}function jA(t,e){if(1&t){var n=ys();ds(0,"mat-tab-body",10),xs("_onCentered",function(){return en(n),Ms()._removeTabBodyWrapperHeight()})("_onCentering",function(t){return en(n),Ms()._setTabBodyWrapperHeight(t)}),fs()}if(2&t){var i=e.$implicit,r=e.index,o=Ms();Bs("mat-tab-body-active",o.selectedIndex===r),cs("id",o._getTabContentId(r))("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",o.animationDuration),os("tabindex",null!=o.contentTabIndex&&o.selectedIndex===r?o.contentTabIndex:null)("aria-labelledby",o._getTabLabelId(r))}}var GA=["tabListContainer"],UA=["tabList"],WA=["nextPaginator"],YA=["previousPaginator"],qA=new _i("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(t){return{left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"}}}}),XA=function(){var t=function(){function t(e,n,i,r){s(this,t),this._elementRef=e,this._ngZone=n,this._inkBarPositioner=i,this._animationMode=r}return a(t,[{key:"alignToElement",value:function(t){var e=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e._setStyles(t)})}):this._setStyles(t)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(t){var e=this._inkBarPositioner(t),n=this._elementRef.nativeElement;n.style.left=e.left,n.style.width=e.width}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Al),us(xc),us(qA),us(vk,8))},t.\u0275dir=me({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&Bs("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t}(),ZA=new _i("MatTabContent"),KA=new _i("MatTabLabel"),$A=function(){var t=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return n}(Dy);return t.\u0275fac=function(){var e;return function(n){return(e||(e=pi(t)))(n||t)}}(),t.\u0275dir=me({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[yl([{provide:KA,useExisting:t}]),Ya]}),t}(),QA=Dk(function(){return function t(){s(this,t)}}()),JA=new _i("MAT_TAB_GROUP"),tM=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this))._viewContainerRef=t,r._closestTabGroup=i,r.textLabel="",r._contentPortal=null,r._stateChanges=new U,r.position=null,r.origin=null,r.isActive=!1,r}return a(n,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(t){this._setTemplateLabelInput(t)}},{key:"content",get:function(){return this._contentPortal}},{key:"ngOnChanges",value:function(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new Ay(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(t){t&&(this._templateLabel=t)}}]),n}(QA);return t.\u0275fac=function(e){return new(e||t)(us(uu),us(JA,8))},t.\u0275cmp=ce({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,n){var i;1&t&&(Zu(n,KA,5),Zu(n,ZA,7,iu)),2&t&&(qu(i=Ku())&&(e.templateLabel=i.first),qu(i=Ku())&&(e._explicitContent=i.first))},viewQuery:function(t,e){var n;1&t&&Xu(iu,7),2&t&&qu(n=Ku())&&(e._implicitContent=n.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[Ya,De],ngContentSelectors:OA,decls:1,vars:0,template:function(t,e){1&t&&(Ts(),ss(0,EA,1,0,"ng-template"))},encapsulation:2}),t}(),eM={translateTab:Ab("translateTab",[Db("center, void, left-origin-center, right-origin-center",Tb({transform:"none"})),Db("left",Tb({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Db("right",Tb({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Ob("* => left, * => right, left => center, right => center",Mb("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Ob("void => left-origin-center",[Tb({transform:"translate3d(-100%, 0, 0)"}),Mb("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Ob("void => right-origin-center",[Tb({transform:"translate3d(100%, 0, 0)"}),Mb("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},nM=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this,t,i,o))._host=r,a._centeringSub=M.EMPTY,a._leavingSub=M.EMPTY,a}return a(n,[{key:"ngOnInit",value:function(){var t=this;r(i(n.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe(Vf(this._host._isCenterPosition(this._host._position))).subscribe(function(e){e&&!t.hasAttached()&&t.attach(t._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){t.detach()})}},{key:"ngOnDestroy",value:function(){r(i(n.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),n}(Ey);return t.\u0275fac=function(e){return new(e||t)(us(xl),us(uu),us(Ct(function(){return rM})),us(rh))},t.\u0275dir=me({type:t,selectors:[["","matTabBodyHost",""]],features:[Ya]}),t}(),iM=function(){var t=function(){function t(e,n,i){var r=this;s(this,t),this._elementRef=e,this._dir=n,this._dirChangeSubscription=M.EMPTY,this._translateTabComplete=new U,this._onCentering=new Lu,this._beforeCentering=new Lu,this._afterLeavingCenter=new Lu,this._onCentered=new Lu(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe(function(t){r._computePositionAnimationState(t),i.markForCheck()})),this._translateTabComplete.pipe(Nv(function(t,e){return t.fromState===e.fromState&&t.toState===e.toState})).subscribe(function(t){r._isCenterPosition(t.toState)&&r._isCenterPosition(r._position)&&r._onCentered.emit(),r._isCenterPosition(t.fromState)&&!r._isCenterPosition(r._position)&&r._afterLeavingCenter.emit()})}return a(t,[{key:"position",set:function(t){this._positionIndex=t,this._computePositionAnimationState()}},{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(t){var e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}},{key:"_computePositionAnimationState",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(t){var e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Al),us(fy,8),us(Ql))},t.\u0275dir=me({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t}(),rM=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r){return s(this,n),e.call(this,t,i,r)}return n}(iM);return t.\u0275fac=function(e){return new(e||t)(us(Al),us(fy,8),us(Ql))},t.\u0275cmp=ce({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var n;1&t&&Xu(Ey,5),2&t&&qu(n=Ku())&&(e._portalHost=n.first)},hostAttrs:[1,"mat-tab-body"],features:[Ya],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(ds(0,"div",0,1),xs("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),ss(2,PA,0,0,"ng-template",2),fs()),2&t&&cs("@translateTab",Cu(3,LA,e._position,Su(1,RA,e.animationDuration)))},directives:[nM],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:[eM.translateTab]}}),t}(),oM=new _i("MAT_TABS_CONFIG"),aM=0,sM=function t(){s(this,t)},lM=Ek(Ok(function(){return function t(e){s(this,t),this._elementRef=e}}()),"primary"),uM=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a,l;return s(this,n),(a=e.call(this,t))._changeDetectorRef=i,a._animationMode=o,a._tabs=new Fu,a._indexToSelect=0,a._tabBodyWrapperHeight=0,a._tabsSubscription=M.EMPTY,a._tabLabelSubscription=M.EMPTY,a._selectedIndex=null,a.headerPosition="above",a.selectedIndexChange=new Lu,a.focusChange=new Lu,a.animationDone=new Lu,a.selectedTabChange=new Lu(!0),a._groupId=aM++,a.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",a.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,a.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,a.contentTabIndex=null!==(l=null==r?void 0:r.contentTabIndex)&&void 0!==l?l:null,a}return a(n,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(t){this._dynamicHeight=mv(t)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){this._indexToSelect=vv(t,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}},{key:"contentTabIndex",get:function(){return this._contentTabIndex},set:function(t){this._contentTabIndex=vv(t,null)}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(t){var e=this._elementRef.nativeElement;e.classList.remove("mat-background-".concat(this.backgroundColor)),t&&e.classList.add("mat-background-".concat(t)),this._backgroundColor=t}},{key:"ngAfterContentChecked",value:function(){var t=this,e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){var n=null==this._selectedIndex;if(!n){this.selectedTabChange.emit(this._createChangeEvent(e));var i=this._tabBodyWrapper.nativeElement;i.style.minHeight=i.clientHeight+"px"}Promise.resolve().then(function(){t._tabs.forEach(function(t,n){return t.isActive=n===e}),n||(t.selectedIndexChange.emit(e),t._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(n,i){n.position=i-e,null==t._selectedIndex||0!=n.position||n.origin||(n.origin=e-t._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var t=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(t._clampTabIndex(t._indexToSelect)===t._selectedIndex)for(var e=t._tabs.toArray(),n=0;n.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;outline:0;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}(),hM=Dk(function(){return function t(){s(this,t)}}()),dM=function(){var t=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this)).elementRef=t,i}return a(n,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),n}(hM);return t.\u0275fac=function(e){return new(e||t)(us(Al))},t.\u0275dir=me({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(os("aria-disabled",!!e.disabled),Bs("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[Ya]}),t}(),fM=ly({passive:!0}),pM=function(){var t=function(){function t(e,n,i,r,o,a,l){var u=this;s(this,t),this._elementRef=e,this._changeDetectorRef=n,this._viewportRuler=i,this._dir=r,this._ngZone=o,this._platform=a,this._animationMode=l,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new U,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new U,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Lu,this.indexFocused=new Lu,o.runOutsideAngular(function(){kv(e.nativeElement,"mouseleave").pipe(qv(u._destroyed)).subscribe(function(){u._stopInterval()})})}return a(t,[{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){t=vv(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}},{key:"ngAfterViewInit",value:function(){var t=this;kv(this._previousPaginator.nativeElement,"touchstart",fM).pipe(qv(this._destroyed)).subscribe(function(){t._handlePaginatorPress("before")}),kv(this._nextPaginator.nativeElement,"touchstart",fM).pipe(qv(this._destroyed)).subscribe(function(){t._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var t=this,e=this._dir?this._dir.change:Od("ltr"),n=this._viewportRuler.change(150),i=function(){t.updatePagination(),t._alignInkBarToSelectedTab()};this._keyManager=new Z_(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),dt(e,n,this._items.changes).pipe(qv(this._destroyed)).subscribe(function(){t._ngZone.run(function(){return Promise.resolve().then(i)}),t._keyManager.withHorizontalOrientation(t._getLayoutDirection())}),this._keyManager.change.pipe(qv(this._destroyed)).subscribe(function(e){t.indexFocused.emit(e),t._setTabFocus(e)})}},{key:"ngAfterContentChecked",value:function(){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())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(t){if(!Uy(t))switch(t.keyCode){case Ly:case Fy:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}},{key:"_onContentChanges",value:function(){var t=this,e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(function(){t.updatePagination(),t._alignInkBarToSelectedTab(),t._changeDetectorRef.markForCheck()}))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}},{key:"_isValidIndex",value:function(t){if(!this._items)return!0;var e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}},{key:"_setTabFocus",value:function(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();var e=this._tabListContainer.nativeElement,n=this._getLayoutDirection();e.scrollLeft="ltr"==n?0:e.scrollWidth-e.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(e),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(t){this._scrollTo(t)}},{key:"_scrollHeader",value:function(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(t){this._stopInterval(),this._scrollHeader(t)}},{key:"_scrollToLabel",value:function(t){if(!this.disablePagination){var e=this._items?this._items.toArray()[t]:null;if(e){var n,i,r=this._tabListContainer.nativeElement.offsetWidth,o=e.elementRef.nativeElement,a=o.offsetLeft,s=o.offsetWidth;"ltr"==this._getLayoutDirection()?i=(n=a)+s:n=(i=this._tabList.nativeElement.offsetWidth-a)-s;var l=this.scrollDistance,u=this.scrollDistance+r;nu&&(this.scrollDistance+=i-u+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var 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()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(t,e){var n=this;e&&null!=e.button&&0!==e.button||(this._stopInterval(),Uv(650,100).pipe(qv(dt(this._stopScrolling,this._destroyed))).subscribe(function(){var e=n._scrollHeader(t),i=e.distance;(0===i||i>=e.maxScrollDistance)&&n._stopInterval()}))}},{key:"_scrollTo",value:function(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Al),us(Ql),us(wy),us(fy,8),us(xc),us(ry),us(vk,8))},t.\u0275dir=me({type:t,inputs:{disablePagination:"disablePagination"}}),t}(),gM=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l,u){var c;return s(this,n),(c=e.call(this,t,i,r,o,a,l,u))._disableRipple=!1,c}return a(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(t){this._disableRipple=mv(t)}},{key:"_itemSelected",value:function(t){t.preventDefault()}}]),n}(pM);return t.\u0275fac=function(e){return new(e||t)(us(Al),us(Ql),us(wy),us(fy,8),us(xc),us(ry),us(vk,8))},t.\u0275dir=me({type:t,inputs:{disableRipple:"disableRipple"},features:[Ya]}),t}(),mM=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l,u){return s(this,n),e.call(this,t,i,r,o,a,l,u)}return n}(gM);return t.\u0275fac=function(e){return new(e||t)(us(Al),us(Ql),us(wy),us(fy,8),us(xc),us(ry),us(vk,8))},t.\u0275cmp=ce({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,n){var i;1&t&&Zu(n,dM,4),2&t&&qu(i=Ku())&&(e._items=i)},viewQuery:function(t,e){var n;1&t&&(Xu(XA,7),Xu(GA,7),Xu(UA,7),Xu(WA,5),Xu(YA,5)),2&t&&(qu(n=Ku())&&(e._inkBar=n.first),qu(n=Ku())&&(e._tabListContainer=n.first),qu(n=Ku())&&(e._tabList=n.first),qu(n=Ku())&&(e._nextPaginator=n.first),qu(n=Ku())&&(e._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&Bs("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[Ya],ngContentSelectors:OA,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&&(Ts(),ds(0,"div",0,1),xs("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),ps(2,"div",2),fs(),ds(3,"div",3,4),xs("keydown",function(t){return e._handleKeydown(t)}),ds(5,"div",5,6),xs("cdkObserveContent",function(){return e._onContentChanges()}),ds(7,"div",7),Ds(8),fs(),ps(9,"mat-ink-bar"),fs(),fs(),ds(10,"div",8,9),xs("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),ps(12,"div",2),fs()),2&t&&(Bs("mat-tab-header-pagination-disabled",e._disableScrollBefore),cs("matRippleDisabled",e._disableScrollBefore||e.disableRipple),Eo(5),Bs("_mat-animation-noopable","NoopAnimations"===e._animationMode),Eo(5),Bs("mat-tab-header-pagination-disabled",e._disableScrollAfter),cs("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[oS,L_,XA],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}(),vM=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[Wh,Tk,Oy,aS,N_,wb],Tk]}),t}();function yM(t,e){if(1&t){var n=ys();ds(0,"uds-field-text",2),xs("changed",function(t){return en(n),Ms().changed.emit(t)}),fs()}2&t&&cs("field",Ms().field)}function _M(t,e){if(1&t){var n=ys();ds(0,"uds-field-textbox",2),xs("changed",function(t){return en(n),Ms().changed.emit(t)}),fs()}2&t&&cs("field",Ms().field)}function bM(t,e){if(1&t){var n=ys();ds(0,"uds-field-numeric",2),xs("changed",function(t){return en(n),Ms().changed.emit(t)}),fs()}2&t&&cs("field",Ms().field)}function wM(t,e){if(1&t){var n=ys();ds(0,"uds-field-password",2),xs("changed",function(t){return en(n),Ms().changed.emit(t)}),fs()}2&t&&cs("field",Ms().field)}function xM(t,e){if(1&t){var n=ys();ds(0,"uds-field-hidden",2),xs("changed",function(t){return en(n),Ms().changed.emit(t)}),fs()}2&t&&cs("field",Ms().field)}function kM(t,e){if(1&t){var n=ys();ds(0,"uds-field-choice",2),xs("changed",function(t){return en(n),Ms().changed.emit(t)}),fs()}2&t&&cs("field",Ms().field)}function SM(t,e){if(1&t){var n=ys();ds(0,"uds-field-multichoice",2),xs("changed",function(t){return en(n),Ms().changed.emit(t)}),fs()}2&t&&cs("field",Ms().field)}function CM(t,e){if(1&t){var n=ys();ds(0,"uds-field-editlist",2),xs("changed",function(t){return en(n),Ms().changed.emit(t)}),fs()}2&t&&cs("field",Ms().field)}function AM(t,e){if(1&t){var n=ys();ds(0,"uds-field-checkbox",2),xs("changed",function(t){return en(n),Ms().changed.emit(t)}),fs()}2&t&&cs("field",Ms().field)}function MM(t,e){if(1&t){var n=ys();ds(0,"uds-field-imgchoice",2),xs("changed",function(t){return en(n),Ms().changed.emit(t)}),fs()}2&t&&cs("field",Ms().field)}function IM(t,e){if(1&t){var n=ys();ds(0,"uds-field-date",2),xs("changed",function(t){return en(n),Ms().changed.emit(t)}),fs()}2&t&&cs("field",Ms().field)}function TM(t,e){if(1&t){var n=ys();ds(0,"uds-field-tags",2),xs("changed",function(t){return en(n),Ms().changed.emit(t)}),fs()}2&t&&cs("field",Ms().field)}var DM=function(){function t(){this.changed=new Lu,this.udsGuiFieldType=rC}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:13,vars:14,consts:[["matTooltipShowDelay","1000",1,"field",3,"ngSwitch","matTooltip"],[3,"field","changed",4,"ngSwitchCase"],[3,"field","changed"]],template:function(t,e){1&t&&(ds(0,"div",0),ss(1,yM,1,1,"uds-field-text",1),ss(2,_M,1,1,"uds-field-textbox",1),ss(3,bM,1,1,"uds-field-numeric",1),ss(4,wM,1,1,"uds-field-password",1),ss(5,xM,1,1,"uds-field-hidden",1),ss(6,kM,1,1,"uds-field-choice",1),ss(7,SM,1,1,"uds-field-multichoice",1),ss(8,CM,1,1,"uds-field-editlist",1),ss(9,AM,1,1,"uds-field-checkbox",1),ss(10,MM,1,1,"uds-field-imgchoice",1),ss(11,IM,1,1,"uds-field-date",1),ss(12,TM,1,1,"uds-field-tags",1),fs()),2&t&&(cs("ngSwitch",e.field.gui.type)("matTooltip",e.field.gui.tooltip),Eo(1),cs("ngSwitchCase",e.udsGuiFieldType.TEXT),Eo(1),cs("ngSwitchCase",e.udsGuiFieldType.TEXTBOX),Eo(1),cs("ngSwitchCase",e.udsGuiFieldType.NUMERIC),Eo(1),cs("ngSwitchCase",e.udsGuiFieldType.PASSWORD),Eo(1),cs("ngSwitchCase",e.udsGuiFieldType.HIDDEN),Eo(1),cs("ngSwitchCase",e.udsGuiFieldType.CHOICE),Eo(1),cs("ngSwitchCase",e.udsGuiFieldType.MULTI_CHOICE),Eo(1),cs("ngSwitchCase",e.udsGuiFieldType.EDITLIST),Eo(1),cs("ngSwitchCase",e.udsGuiFieldType.CHECKBOX),Eo(1),cs("ngSwitchCase",e.udsGuiFieldType.IMAGECHOICE),Eo(1),cs("ngSwitchCase",e.udsGuiFieldType.DATE),Eo(1),cs("ngSwitchCase",e.udsGuiFieldType.TAGLIST))},styles:["uds-field[_ngcontent-%COMP%]{flex:1 50%} .mat-form-field{width:calc(100% - 1px)} .mat-form-field-flex{padding-top:0!important} .mat-tooltip{font-size:.9rem!important;margin:0!important;max-width:26em!important}"]}),t}();function EM(t,e){1&t&&$s(0),2&t&&Js(" ",Ms().$implicit," ")}function OM(t,e){if(1&t){var n=ys();ds(0,"uds-field",7),xs("changed",function(t){return en(n),Ms(3).changed.emit(t)}),fs()}2&t&&cs("field",e.$implicit)}function PM(t,e){if(1&t&&(ds(0,"mat-tab"),ss(1,EM,1,1,"ng-template",4),ds(2,"div",5),ss(3,OM,1,1,"uds-field",6),fs(),fs()),2&t){var n=e.$implicit,i=Ms(2);Eo(3),cs("ngForOf",i.fieldsByTab[n])}}function RM(t,e){if(1&t&&(ds(0,"mat-tab-group",2),ss(1,PM,4,1,"mat-tab",3),fs()),2&t){var n=Ms();cs("disableRipple",!0)("@.disabled",!0),Eo(1),cs("ngForOf",n.tabs)}}function LM(t,e){if(1&t&&(ds(0,"div"),ps(1,"uds-field",8),fs()),2&t){var n=e.$implicit;Eo(1),cs("field",n)}}function NM(t,e){1&t&&ss(0,LM,2,1,"div",3),2&t&&cs("ngForOf",Ms().fields)}var FM=django.gettext("Main"),VM=function(){function t(){this.changed=new Lu}return t.prototype.ngOnInit=function(){var t=this;this.tabs=new Array,this.fieldsByTab={},this.fields.forEach(function(e){var n=void 0===e.gui.tab?FM:e.gui.tab;t.tabs.includes(n)||(t.tabs.push(n),t.fieldsByTab[n]=new Array),t.fieldsByTab[n].push(e)})},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-form"]],inputs:{fields:"fields"},outputs:{changed:"changed"},decls:3,vars:2,consts:[[3,"disableRipple",4,"ngIf","ngIfElse"],["onlyone",""],[3,"disableRipple"],[4,"ngFor","ngForOf"],["mat-tab-label",""],[1,"content"],[3,"field","changed",4,"ngFor","ngForOf"],[3,"field","changed"],[3,"field"]],template:function(t,e){if(1&t&&(ss(0,RM,2,3,"mat-tab-group",0),ss(1,NM,1,1,"ng-template",null,1,tc)),2&t){var n=ls(2);cs("ngIf",e.tabs.length>1)("ngIfElse",n)}},directives:[Dh,cM,Ih,tM,$A,DM],styles:[".content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap} .mat-form-field-wrapper{padding-bottom:1em} .mat-tab-label{height:32px!important}"]}),t}();function zM(t,e){if(1&t){var n=ys();ds(0,"button",10),xs("click",function(){return en(n),Ms().customButtonClicked()}),$s(1),fs()}if(2&t){var i=Ms();Eo(1),Qs(i.data.customButton)}}var BM,HM=function(){function t(t,e){this.dialogRef=t,this.data=e,this.onEvent=new Lu(!0),this.saving=!1}return t.prototype.ngOnInit=function(){this.onEvent.emit({type:"init",data:null,dialog:this.dialogRef})},t.prototype.changed=function(t){this.onEvent.emit({type:"changed",data:t,dialog:this.dialogRef})},t.prototype.getFields=function(){var t={},e=[];return this.data.guiFields.forEach(function(n){var i=void 0!==n.values?n.values:n.value;n.gui.required&&0!==i&&(!i||i instanceof Array&&0===i.length)&&e.push(n.gui.label),"number"==typeof i&&(i=i.toString()),t[n.name]=i}),{data:t,errors:e}},t.prototype.save=function(){var t=this.getFields();t.errors.length>0?this.data.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+t.errors.join(", ")):this.onEvent.emit({data:t.data,type:"save",dialog:this.dialogRef})},t.prototype.customButtonClicked=function(){var t=this.getFields();this.onEvent.emit({data:t.data,type:this.data.customButton,errors:t.errors,dialog:this.dialogRef})},t.\u0275fac=function(e){return new(e||t)(us(MS),us(TS))},t.\u0275cmp=ce({type:t,selectors:[["uds-modal-form"]],decls:17,vars:7,consts:[["mat-dialog-title","",3,"innerHtml"],["vc",""],["autocomplete","off"],[3,"fields","changed"],[1,"buttons"],[1,"group1"],["ngClass","custom","mat-raised-button","",3,"click",4,"ngIf"],[1,"group2"],["mat-raised-button","",3,"disabled","click"],["mat-raised-button","","color","primary",3,"disabled","click"],["ngClass","custom","mat-raised-button","",3,"click"]],template:function(t,e){1&t&&(ps(0,"h4",0),Tu(1,"safeHtml"),ds(2,"mat-dialog-content",null,1),ds(4,"form",2),ds(5,"uds-form",3),xs("changed",function(t){return e.changed(t)}),fs(),fs(),fs(),ds(6,"mat-dialog-actions"),ds(7,"div",4),ds(8,"div",5),ss(9,zM,2,1,"button",6),fs(),ds(10,"div",7),ds(11,"button",8),xs("click",function(){return e.dialogRef.close()}),ds(12,"uds-translate"),$s(13,"Discard & close"),fs(),fs(),ds(14,"button",9),xs("click",function(){return e.save()}),ds(15,"uds-translate"),$s(16,"Save"),fs(),fs(),fs(),fs(),fs()),2&t&&(cs("innerHtml",Du(1,5,e.data.title),Ir),Eo(5),cs("fields",e.data.guiFields),Eo(4),cs("ngIf",void 0!==e.data.customButton),Eo(2),cs("disabled",e.saving),Eo(3),cs("disabled",e.saving))},directives:[FS,VS,gA,BC,hA,VM,zS,Dh,XS,$S,Ah],pipes:[QS],styles:["h4[_ngcontent-%COMP%]{margin-bottom:0}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%} uds-field{flex:1 100%}button.custom[_ngcontent-%COMP%]{background-color:#4682b4;color:#fff}"]}),t}(),jM=function(){function t(t){this.gui=t}return t.prototype.modalForm=function(t,e,n,i){void 0===n&&(n=null),e.sort(function(t,e){return t.gui.order>e.gui.order?1:-1});var r=null!=n;n=r?n:{},e.forEach(function(t){!1!==r&&void 0!==t.gui.rdonly||(t.gui.rdonly=!1),t.gui.type===rC.TEXT&&t.gui.multiline&&(t.gui.type=rC.TEXTBOX);var e=n[t.name];void 0!==e&&(e instanceof Array?(t.values=new Array,e.forEach(function(e){return t.values.push(e)})):t.value=e)});var o=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(HM,{position:{top:"64px"},width:o,data:{title:t,guiFields:e,customButton:i,gui:this.gui},disableClose:!0}).componentInstance.onEvent},t.prototype.typedForm=function(t,e,n,i,r,o,a){var s=this;a=a||{};var l=new Lu,u=n?django.gettext("Test"):void 0,c={},h={},d=function(e){h.hasOwnProperty(e.name)&&""!==e.value&&void 0!==e.value&&s.executeCallback(t,e,c)};return a.snack||(a.snack=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss"))),t.table.rest.gui(o).subscribe(function(n){a.snack.dismiss(),void 0!==i&&i.forEach(function(t){n.push(t)}),n.forEach(function(t){c[t.name]=t,void 0!==t.gui.fills&&(h[t.name]=t.gui.fills)}),s.modalForm(e,n,r,u).subscribe(function(e){switch(e.data&&(e.data.data_type=o),e.type){case u:if(e.errors.length>0)return void s.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+e.errors.join(", "));s.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),t.table.rest.test(o,e.data).subscribe(function(t){"ok"!==t?s.gui.snackbar.open(django.gettext("Test failed:")+" "+t,django.gettext("dismiss")):s.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})});break;case"changed":case"init":if(null===e.data)for(var i=0,h=n;i"+i.join(", ")+"";this.gui.yesno(e,o,!0).subscribe(function(e){if(e){var i=r.length,o=function(){n.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()};r.forEach(function(e){t.table.rest.delete(e).subscribe(function(t){0==--i&&o()},function(t){0==--i&&o()})})}})},t.prototype.executeCallback=function(t,e,n,i){var r=this;void 0===i&&(i={});var o=new Array;e.gui.fills.parameters.forEach(function(t){o.push(t+"="+encodeURIComponent(n[t].value))}),t.table.rest.callback(e.gui.fills.callbackName,o.join("&")).subscribe(function(e){var o=new Array;e.forEach(function(t){var e=n[t.name];void 0!==e&&(void 0!==e.gui.fills&&o.push(e),e.gui.values.length=0,t.values.forEach(function(t){return e.gui.values.push(t)}),e.value||(e.value=t.values.length>0?t.values[0].id:""))}),o.forEach(function(e){void 0===i[e.name]&&(i[e.name]=!0,r.executeCallback(t,e,n,i))})})},t}(),GM=function(){function t(t,e){this.dialog=t,this.snackbar=e,this.forms=new jM(this)}return t.prototype.alert=function(t,e,n,i){void 0===n&&(n=0);var r=i||(window.innerWidth<800?"80%":"40%");return this.dialog.open(iC,{width:r,data:{title:t,body:e,autoclose:n,type:nC.alert},disableClose:!0}).componentInstance.yesno},t.prototype.yesno=function(t,e,n){void 0===n&&(n=!1);var i=window.innerWidth<800?"80%":"40%";return this.dialog.open(iC,{width:i,data:{title:t,body:e,type:nC.yesno,warnOnYes:n},disableClose:!0}).componentInstance.yesno},t.prototype.icon=function(t,e){return void 0===e&&(e="24px"),''},t}(),UM=function(t){return t.NUMERIC="numeric",t.ALPHANUMERIC="alphanumeric",t.DATETIME="datetime",t.DATETIMESEC="datetimesec",t.DATE="date",t.TIME="time",t.ICON="iconType",t.CALLBACK="callback",t.DICTIONARY="dict",t.IMAGE="image",t}({}),WM=function(t){return t[t.ALWAYS=0]="ALWAYS",t[t.SINGLE_SELECT=1]="SINGLE_SELECT",t[t.MULTI_SELECT=2]="MULTI_SELECT",t[t.ONLY_MENU=3]="ONLY_MENU",t[t.ACCELERATOR=4]="ACCELERATOR",t}({}),YM="provider",qM="service",XM="pool",ZM="user",KM="group",$M="transport",QM="osmanager",JM="calendar",tI="poolgroup",eI={provider:django.gettext("provider"),service:django.gettext("service"),pool:django.gettext("service pool"),authenticator:django.gettext("authenticator"),user:django.gettext("user"),group:django.gettext("group"),transport:django.gettext("transport"),osmanager:django.gettext("OS manager"),calendar:django.gettext("calendar"),poolgroup:django.gettext("pool group")},nI=function(){function t(t){this.router=t}return t.getGotoButton=function(t,e,n){return{id:t,html:'link'+django.gettext("Go to")+" "+eI[t]+"",type:WM.ACCELERATOR,acceleratorProperties:[e,n]}},t.prototype.gotoProvider=function(t){this.router.navigate(void 0!==t?["providers",t]:["providers"])},t.prototype.gotoService=function(t,e){this.router.navigate(void 0!==e?["providers",t,"detail",e]:["providers",t,"detail"])},t.prototype.gotoServicePool=function(t){this.router.navigate(["pools","service-pools",t])},t.prototype.gotoServicePoolDetail=function(t){this.router.navigate(["pools","service-pools",t,"detail"])},t.prototype.gotoMetapool=function(t){this.router.navigate(["pools","meta-pools",t])},t.prototype.gotoMetapoolDetail=function(t){this.router.navigate(["pools","meta-pools",t,"detail"])},t.prototype.gotoCalendar=function(t){this.router.navigate(["pools","calendars",t])},t.prototype.gotoCalendarDetail=function(t){this.router.navigate(["pools","calendars",t,"detail"])},t.prototype.gotoAccount=function(t){this.router.navigate(["pools","accounts",t])},t.prototype.gotoAccountDetail=function(t){this.router.navigate(["pools","accounts",t,"detail"])},t.prototype.gotoPoolGroup=function(t){this.router.navigate(["pools","pool-groups",t=t||""])},t.prototype.gotoAuthenticator=function(t){this.router.navigate(["authenticators",t])},t.prototype.gotoAuthenticatorDetail=function(t){this.router.navigate(["authenticators",t,"detail"])},t.prototype.gotoUser=function(t,e){this.router.navigate(["authenticators",t,"detail","users",e])},t.prototype.gotoGroup=function(t,e){this.router.navigate(["authenticators",t,"detail","groups",e])},t.prototype.gotoTransport=function(t){this.router.navigate(["transports",t])},t.prototype.gotoOSManager=function(t){this.router.navigate(["osmanagers",t])},t.prototype.goto=function(t,e,n){var i=function(t){var i=e;if(n[t].split(".").forEach(function(t){return i=i[t]}),!i)throw new Error("not going :)");return i};try{switch(t){case YM:this.gotoProvider(i(0));break;case qM:this.gotoService(i(0),i(1));break;case XM:this.gotoServicePool(i(0));break;case"authenticator":this.gotoAuthenticator(i(0));break;case ZM:this.gotoUser(i(0),i(1));break;case KM:this.gotoGroup(i(0),i(1));break;case $M:this.gotoTransport(i(0));break;case QM:this.gotoOSManager(i(0));break;case JM:this.gotoCalendar(i(0));break;case tI:this.gotoPoolGroup(i(0))}}catch(r){}},t}(),iI=new Set,rI=function(){var t=function(){function t(e){s(this,t),this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):oI}return a(t,[{key:"matchMedia",value:function(t){return this._platform.WEBKIT&&function(t){if(!iI.has(t))try{BM||((BM=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(BM)),BM.sheet&&(BM.sheet.insertRule("@media ".concat(t," {.fx-query-test{ }}"),0),iI.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(ry))},t.\u0275prov=Ot({factory:function(){return new t(Fi(ry))},token:t,providedIn:"root"}),t}();function oI(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var aI=function(){var t=function(){function t(e,n){s(this,t),this._mediaMatcher=e,this._zone=n,this._queries=new Map,this._destroySubject=new U}return a(t,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(t){var e=this;return sI(_v(t)).some(function(t){return e._registerQuery(t).mql.matches})}},{key:"observe",value:function(t){var e=this,n=xf(sI(_v(t)).map(function(t){return e._registerQuery(t).observable}));return(n=Mf(n.pipe(Lf(1)),n.pipe(D_(1),A_(0)))).pipe(q(function(t){var e={matches:!1,breakpoints:{}};return t.forEach(function(t){var n=t.matches,i=t.query;e.matches=e.matches||n,e.breakpoints[i]=n}),e}))}},{key:"_registerQuery",value:function(t){var e=this;if(this._queries.has(t))return this._queries.get(t);var n=this._mediaMatcher.matchMedia(t),i={observable:new z(function(t){var i=function(n){return e._zone.run(function(){return t.next(n)})};return n.addListener(i),function(){n.removeListener(i)}}).pipe(Vf(n),q(function(e){return{query:t,matches:e.matches}}),qv(this._destroySubject)),mql:n};return this._queries.set(t,i),i}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(rI),Fi(xc))},t.\u0275prov=Ot({factory:function(){return new t(Fi(rI),Fi(xc))},token:t,providedIn:"root"}),t}();function sI(t){return t.map(function(t){return t.split(",")}).reduce(function(t,e){return t.concat(e)}).map(function(t){return t.trim()})}function lI(t,e){if(1&t){var n=ys();ds(0,"div",1),ds(1,"button",2),xs("click",function(){return en(n),Ms().action()}),$s(2),fs(),fs()}if(2&t){var i=Ms();Eo(2),Qs(i.data.action)}}function uI(t,e){}var cI=new _i("MatSnackBarData"),hI=function t(){s(this,t),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},dI=Math.pow(2,31)-1,fI=function(){function t(e,n){var i=this;s(this,t),this._overlayRef=n,this._afterDismissed=new U,this._afterOpened=new U,this._onAction=new U,this._dismissedByAction=!1,this.containerInstance=e,this.onAction().subscribe(function(){return i.dismiss()}),e._onExit.subscribe(function(){return i._finishDismiss()})}return a(t,[{key:"dismiss",value:function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}},{key:"dismissWithAction",value:function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete()),clearTimeout(this._durationTimeoutId)}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(t){var e=this;this._durationTimeoutId=setTimeout(function(){return e.dismiss()},Math.min(t,dI))}},{key:"_open",value:function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}},{key:"_finishDismiss",value:function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}},{key:"afterDismissed",value:function(){return this._afterDismissed}},{key:"afterOpened",value:function(){return this.containerInstance._onEnter}},{key:"onAction",value:function(){return this._onAction}}]),t}(),pI=function(){var t=function(){function t(e,n){s(this,t),this.snackBarRef=e,this.data=n}return a(t,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(fI),us(cI))},t.\u0275cmp=ce({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,e){1&t&&(ds(0,"span"),$s(1),fs(),ss(2,lI,3,1,"div",0)),2&t&&(Eo(1),Qs(e.data.message),Eo(1),cs("ngIf",e.hasAction))},directives:[Dh,XS],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),t}(),gI={snackBarState:Ab("state",[Db("void, hidden",Tb({transform:"scale(0.8)",opacity:0})),Db("visible",Tb({transform:"scale(1)",opacity:1})),Ob("* => visible",Mb("150ms cubic-bezier(0, 0, 0.2, 1)")),Ob("* => void, * => hidden",Mb("75ms cubic-bezier(0.4, 0.0, 1, 1)",Tb({opacity:0})))])},mI=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a){var l;return s(this,n),(l=e.call(this))._ngZone=t,l._elementRef=i,l._changeDetectorRef=r,l._platform=o,l.snackBarConfig=a,l._announceDelay=150,l._destroyed=!1,l._onAnnounce=new U,l._onExit=new U,l._onEnter=new U,l._animationState="void",l.attachDomPortal=function(t){return l._assertNotAttached(),l._applySnackBarClasses(),l._portalOutlet.attachDomPortal(t)},l._live="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?"off":"polite":"assertive",l._platform.FIREFOX&&("polite"===l._live&&(l._role="status"),"assertive"===l._live&&(l._role="alert")),l}return a(n,[{key:"attachComponentPortal",value:function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}},{key:"onAnimationEnd",value:function(t){var e=t.toState;if(("void"===e&&"void"!==t.fromState||"hidden"===e)&&this._completeExit(),"visible"===e){var n=this._onEnter;this._ngZone.run(function(){n.next(),n.complete()})}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var t=this;this._ngZone.onMicrotaskEmpty.pipe(Lf(1)).subscribe(function(){t._onExit.next(),t._onExit.complete()})}},{key:"_applySnackBarClasses",value:function(){var t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(function(e){return t.classList.add(e)}):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_screenReaderAnnounce",value:function(){var t=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){t._announceTimeoutId=setTimeout(function(){var e=t._elementRef.nativeElement.querySelector("[aria-hidden]"),n=t._elementRef.nativeElement.querySelector("[aria-live]");if(e&&n){var i=null;t._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(i=document.activeElement),e.removeAttribute("aria-hidden"),n.appendChild(e),null==i||i.focus(),t._onAnnounce.next(),t._onAnnounce.complete()}},t._announceDelay)})}}]),n}(Iy);return t.\u0275fac=function(e){return new(e||t)(us(xc),us(Al),us(Ql),us(ry),us(hI))},t.\u0275cmp=ce({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var n;1&t&&Xu(Ey,7),2&t&&qu(n=Ku())&&(e._portalOutlet=n.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,e){1&t&&ks("@state.done",function(t){return e.onAnimationEnd(t)}),2&t&&nl("@state",e._animationState)},features:[Ya],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,e){1&t&&(ds(0,"div",0),ss(1,uI,0,0,"ng-template",1),fs(),ps(2,"div")),2&t&&(Eo(2),os("aria-live",e._live)("role",e._role))},directives:[Ey],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[gI.snackBarState]}}),t}(),vI=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[C_,Oy,Wh,KS,Tk],Tk]}),t}(),yI=new _i("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new hI}}),_I=function(){var t=function(){function t(e,n,i,r,o,a){s(this,t),this._overlay=e,this._live=n,this._injector=i,this._breakpointObserver=r,this._parentSnackBar=o,this._defaultConfig=a,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=pI,this.snackBarContainerComponent=mI,this.handsetCssClass="mat-snack-bar-handset"}return a(t,[{key:"_openedSnackBarRef",get:function(){var t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}},{key:"openFromComponent",value:function(t,e){return this._attach(t,e)}},{key:"openFromTemplate",value:function(t,e){return this._attach(t,e)}},{key:"open",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=Object.assign(Object.assign({},this._defaultConfig),n);return i.data={message:t,action:e},i.announcementMessage===t&&(i.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,i)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(t,e){var n=Ua.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:hI,useValue:e}]}),i=new Cy(this.snackBarContainerComponent,e.viewContainerRef,n),r=t.attach(i);return r.instance.snackBarConfig=e,r.instance}},{key:"_attach",value:function(t,e){var n=this,i=Object.assign(Object.assign(Object.assign({},new hI),this._defaultConfig),e),r=this._createOverlay(i),o=this._attachSnackBarContainer(r,i),a=new fI(o,r);if(t instanceof iu){var s=new Ay(t,null,{$implicit:i.data,snackBarRef:a});a.instance=o.attachTemplatePortal(s)}else{var l=this._createInjector(i,a),u=new Cy(t,void 0,l),c=o.attachComponentPortal(u);a.instance=c.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(qv(r.detachments())).subscribe(function(t){var e=r.overlayElement.classList;t.matches?e.add(n.handsetCssClass):e.remove(n.handsetCssClass)}),i.announcementMessage&&o._onAnnounce.subscribe(function(){n._live.announce(i.announcementMessage,i.politeness)}),this._animateSnackBar(a,i),this._openedSnackBarRef=a,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(t,e){var n=this;t.afterDismissed().subscribe(function(){n._openedSnackBarRef==t&&(n._openedSnackBarRef=null),e.announcementMessage&&n._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe(function(){return t._dismissAfter(e.duration)})}},{key:"_createOverlay",value:function(t){var e=new Jy;e.direction=t.direction;var n=this._overlay.position().global(),i="rtl"===t.direction,r="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!i||"end"===t.horizontalPosition&&i,o=!r&&"center"!==t.horizontalPosition;return r?n.left("0"):o?n.right("0"):n.centerHorizontally(),"top"===t.verticalPosition?n.top("0"):n.bottom("0"),e.positionStrategy=n,this._overlay.create(e)}},{key:"_createInjector",value:function(t,e){return Ua.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:fI,useValue:e},{provide:cI,useValue:t.data}]})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(__),Fi(hb),Fi(Ua),Fi(aI),Fi(t,12),Fi(yI))},t.\u0275prov=Ot({factory:function(){return new t(Fi(__),Fi(hb),Fi(Ia),Fi(aI),Fi(t,12),Fi(yI))},token:t,providedIn:vI}),t}(),bI=function(){function t(t,e,n,i,r,o){this.http=t,this.router=e,this.dialog=n,this.snackbar=i,this.sanitizer=r,this.dateAdapter=o,this.user=new gv(udsData.profile),this.navigation=new nI(this.router),this.gui=new GM(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language)}return Object.defineProperty(t.prototype,"config",{get:function(){return udsData.config},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"notices",{get:function(){return udsData.errors},enumerable:!1,configurable:!0}),t.prototype.restPath=function(t){return this.config.urls.rest+t},t.prototype.staticURL=function(t){return this.config.urls.static+t},t.prototype.logout=function(){window.location.href=this.config.urls.logout},t.prototype.gotoUser=function(){window.location.href=this.config.urls.user},t.prototype.putOnStorage=function(t,e){void 0!==typeof Storage&&sessionStorage.setItem(t,e)},t.prototype.getFromStorage=function(t){return void 0!==typeof Storage?sessionStorage.getItem(t):null},t.prototype.safeString=function(t){return this.sanitizer.bypassSecurityTrustHtml(t)},t.prototype.yesno=function(t){return t?django.gettext("yes"):django.gettext("no")},t.\u0275prov=Ot({token:t,factory:t.\u0275fac=function(e){return new(e||t)(Fi(nf),Fi(Gm),Fi(RS),Fi(_I),Fi(Ad),Fi(Vk))},providedIn:"root"}),t}(),wI=function(){function t(t){this.api=t}return t.prototype.canActivate=function(t,e){return!!this.api.user.isStaff||(window.location.href=this.api.config.urls.user,!1)},t.\u0275prov=Ot({token:t,factory:t.\u0275fac=function(e){return new(e||t)(Fi(bI))},providedIn:"root"}),t}(),xI=function(t,e){return(xI=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function kI(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}xI(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function SI(t,e,n,i){return new(n||(n=Promise))(function(r,o){function a(t){try{l(i.next(t))}catch(e){o(e)}}function s(t){try{l(i.throw(t))}catch(e){o(e)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}l((i=i.apply(t,e||[])).next())})}var CI=function(t){return t[t.NONE=0]="NONE",t[t.READ=32]="READ",t[t.MANAGEMENT=64]="MANAGEMENT",t[t.ALL=96]="ALL",t}({}),AI=function(){function t(t,e,n){this.api=t,void 0===n&&(n={}),void 0===n.base&&(n.base=e);var i=function(t,e){return void 0===t?e:t};this.id=e,this.paths={base:n.base,get:i(n.get,n.base),log:i(n.log,n.base),put:i(n.put,n.base),test:i(n.test,n.base+"/test"),delete:i(n.delete,n.base),types:i(n.types,n.base+"/types"),gui:i(n.gui,n.base+"/gui"),tableInfo:i(n.tableInfo,n.base+"/tableinfo")},this.headers=(new zd).set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}return t.prototype.get=function(t){return this.doGet(this.getPath(this.paths.get,t))},t.prototype.getLogs=function(t){return this.doGet(this.getPath(this.paths.log,t)+"/log")},t.prototype.overview=function(t){return this.get("overview"+(void 0!==t?"?filter="+t:""))},t.prototype.summary=function(t){return this.get("overview?summarize"+(void 0!==t?"&filter="+t:""))},t.prototype.put=function(t,e){var n=this;return this.api.http.put(this.getPath(this.paths.put,e),t,{headers:this.headers}).pipe(jf(function(t){return n.handleError(t,!0)}))},t.prototype.create=function(t){return this.put(t)},t.prototype.save=function(t,e){return this.put(t,e=void 0!==e?e:t.id)},t.prototype.test=function(t,e){var n=this;return this.api.http.post(this.getPath(this.paths.test,t),e,{headers:this.headers}).pipe(jf(function(t){return n.handleError(t)}))},t.prototype.delete=function(t){var e=this;return this.api.http.delete(this.getPath(this.paths.delete,t),{headers:this.headers}).pipe(jf(function(t){return e.handleError(t)}))},t.prototype.permision=function(){return this.api.user.isAdmin?CI.ALL:CI.NONE},t.prototype.getPermissions=function(t){return this.doGet(this.getPath("permissions/"+this.paths.base+"/"+t))},t.prototype.addPermission=function(t,e,n,i){var r=this,o=this.getPath("permissions/"+this.paths.base+"/"+t+"/"+e+"/add/"+n);return this.api.http.put(o,{perm:i},{headers:this.headers}).pipe(jf(function(t){return r.handleError(t)}))},t.prototype.revokePermission=function(t){var e=this,n=this.getPath("permissions/revoke");return this.api.http.put(n,{items:t},{headers:this.headers}).pipe(jf(function(t){return e.handleError(t)}))},t.prototype.types=function(){return this.doGet(this.getPath(this.paths.types))},t.prototype.gui=function(t){var e=this.getPath(this.paths.gui+(void 0!==t?"/"+t:""));return this.doGet(e)},t.prototype.callback=function(t,e){var n=this.getPath("gui/callback/"+t+"?"+e);return this.doGet(n)},t.prototype.tableInfo=function(){return this.doGet(this.getPath(this.paths.tableInfo))},t.prototype.detail=function(t,e){return new MI(this,t,e)},t.prototype.invoke=function(t,e){var n=t;return e&&(n=n+"?"+e),this.get(n)},t.prototype.getPath=function(t,e){return this.api.restPath(t+(void 0!==e?"/"+e:""))},t.prototype.doGet=function(t){var e=this;return this.api.http.get(t,{headers:this.headers}).pipe(jf(function(t){return e.handleError(t)}))},t.prototype.handleError=function(t,e){var n;return void 0===e&&(e=!1),n=t.error instanceof ErrorEvent?t.error.message:e?django.gettext("Error saving: ")+t.error:"Error "+t.status+": "+t.error,this.api.gui.alert(e?django.gettext("Error saving element"):django.gettext("Error handling your request"),n),Kv(n)},t}(),MI=function(t){function e(e,n,i,r){var o=t.call(this,e.api,[e.paths.base,n,i].join("/"))||this;return o.parentModel=e,o.parentId=n,o.model=i,o.perm=r,o}return kI(e,t),e.prototype.permision=function(){return this.perm||CI.ALL},e}(AI),II=function(t){function e(e){var n=t.call(this,e,"providers")||this;return n.api=e,n}return kI(e,t),e.prototype.allServices=function(){return this.get("allservices")},e.prototype.service=function(t){return this.get("service/"+t)},e.prototype.maintenance=function(t){return this.get(t+"/maintenance")},e}(AI),TI=function(t){function e(e){var n=t.call(this,e,"authenticators")||this;return n.api=e,n}return kI(e,t),e.prototype.search=function(t,e,n,i){return void 0===i&&(i=12),this.get(t+"/search?type="+encodeURIComponent(e)+"&term="+encodeURIComponent(n)+"&limit="+i)},e}(AI),DI=function(t){function e(e){var n=t.call(this,e,"osmanagers")||this;return n.api=e,n}return kI(e,t),e}(AI),EI=function(t){function e(e){var n=t.call(this,e,"transports")||this;return n.api=e,n}return kI(e,t),e}(AI),OI=function(t){function e(e){var n=t.call(this,e,"networks")||this;return n.api=e,n}return kI(e,t),e}(AI),PI=function(t){function e(e){var n=t.call(this,e,"servicespools")||this;return n.api=e,n}return kI(e,t),e.prototype.setFallbackAccess=function(t,e){return this.get(t+"/setFallbackAccess?fallbackAccess="+e)},e.prototype.getFallbackAccess=function(t){return this.get(t+"/getFallbackAccess")},e.prototype.actionsList=function(t){return this.get(t+"/actionsList")},e.prototype.listAssignables=function(t){return this.get(t+"/listAssignables")},e.prototype.createFromAssignable=function(t,e,n){return this.get(t+"/createFromAssignable?user_id="+encodeURIComponent(e)+"&assignable_id="+encodeURIComponent(n))},e}(AI),RI=function(t){function e(e){var n=t.call(this,e,"metapools")||this;return n.api=e,n}return kI(e,t),e.prototype.setFallbackAccess=function(t,e){return this.get(t+"/setFallbackAccess?fallbackAccess="+e)},e.prototype.getFallbackAccess=function(t){return this.get(t+"/getFallbackAccess")},e}(AI),LI=function(t){function e(e){var n=t.call(this,e,"config")||this;return n.api=e,n}return kI(e,t),e}(AI),NI=function(t){function e(e){var n=t.call(this,e,"gallery/images")||this;return n.api=e,n}return kI(e,t),e}(AI),FI=function(t){function e(e){var n=t.call(this,e,"gallery/servicespoolgroups")||this;return n.api=e,n}return kI(e,t),e}(AI),VI=function(t){function e(e){var n=t.call(this,e,"system")||this;return n.api=e,n}return kI(e,t),e.prototype.information=function(){return this.get("overview")},e.prototype.stats=function(t,e){var n="stats/"+t;return e&&(n+="/"+e),this.get(n)},e.prototype.flushCache=function(){return this.doGet(this.getPath("cache","flush"))},e}(AI),zI=function(t){function e(e){var n=t.call(this,e,"reports")||this;return n.api=e,n}return kI(e,t),e.prototype.types=function(){return Od([])},e}(AI),BI=function(t){function e(e){var n=t.call(this,e,"calendars")||this;return n.api=e,n}return kI(e,t),e}(AI),HI=function(t){function e(e){var n=t.call(this,e,"accounts")||this;return n.api=e,n}return kI(e,t),e.prototype.timemark=function(t){return this.get(t+"/timemark")},e}(AI),jI=function(t){function e(e){var n=t.call(this,e,"proxies")||this;return n.api=e,n}return kI(e,t),e}(AI),GI=function(t){function e(e){var n=t.call(this,e,"actortokens")||this;return n.api=e,n}return kI(e,t),e}(AI),UI=function(t){function e(e){var n=t.call(this,e,"tunneltokens")||this;return n.api=e,n}return kI(e,t),e}(AI),WI=function(){function t(t){this.api=t,this.providers=new II(t),this.authenticators=new TI(t),this.osManagers=new DI(t),this.transports=new EI(t),this.networks=new OI(t),this.servicesPools=new PI(t),this.metaPools=new RI(t),this.gallery=new NI(t),this.servicesPoolGroups=new FI(t),this.calendars=new BI(t),this.accounts=new HI(t),this.proxy=new jI(t),this.system=new VI(t),this.configuration=new LI(t),this.actorToken=new GI(t),this.tunnelToken=new UI(t),this.reports=new zI(t)}return t.\u0275prov=Ot({token:t,factory:t.\u0275fac=function(e){return new(e||t)(Fi(bI))},providedIn:"root"}),t}(),YI=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],qI=[django.gettext("January"),django.gettext("February"),django.gettext("March"),django.gettext("April"),django.gettext("May"),django.gettext("June"),django.gettext("July"),django.gettext("August"),django.gettext("September"),django.gettext("October"),django.gettext("November"),django.gettext("December")],XI=function(t){var e=[];return t.forEach(function(t){e.push(t.substr(0,3))}),e},ZI=function(t,e,n){return KI(t,e,n)},KI=function(t,e,n,i){i=i||{},e=e||new Date,(n=n||oT).formats=n.formats||{};var r=e.getTime();return(i.utc||"number"==typeof i.timezone)&&(e=$I(e)),"number"==typeof i.timezone&&(e=new Date(e.getTime()+6e4*i.timezone)),t.replace(/%([-_0]?.)/g,function(t,o){var a,s,l,u,c,h,d,f;if(l=null,c=null,2===o.length){if("-"===(l=o[0]))c="";else if("_"===l)c=" ";else{if("0"!==l)return t;c="0"}o=o[1]}switch(o){case"A":return n.days[e.getDay()];case"a":return n.shortDays[e.getDay()];case"B":return n.months[e.getMonth()];case"b":return n.shortMonths[e.getMonth()];case"C":return QI(Math.floor(e.getFullYear()/100),c);case"D":return KI(n.formats.D||"%m/%d/%y",e,n);case"d":return QI(e.getDate(),c);case"e":return e.getDate();case"F":return KI(n.formats.F||"%Y-%m-%d",e,n);case"H":return QI(e.getHours(),c);case"h":return n.shortMonths[e.getMonth()];case"I":return QI(JI(e),c);case"j":return d=new Date(e.getFullYear(),0,1),a=Math.ceil((e.getTime()-d.getTime())/864e5),QI(a,3);case"k":return QI(e.getHours(),void 0===c?" ":c);case"L":return QI(Math.floor(r%1e3),3);case"l":return QI(JI(e),void 0===c?" ":c);case"M":return QI(e.getMinutes(),c);case"m":return QI(e.getMonth()+1,c);case"n":return"\n";case"o":return String(e.getDate())+tT(e.getDate());case"P":case"p":return"";case"R":return KI(n.formats.R||"%H:%M",e,n);case"r":return KI(n.formats.r||"%I:%M:%S %p",e,n);case"S":return QI(e.getSeconds(),c);case"s":return Math.floor(r/1e3);case"T":return KI(n.formats.T||"%H:%M:%S",e,n);case"t":return"\t";case"U":return QI(eT(e,"sunday"),c);case"u":return 0===(s=e.getDay())?7:s;case"v":return KI(n.formats.v||"%e-%b-%Y",e,n);case"W":return QI(eT(e,"monday"),c);case"w":return e.getDay();case"Y":return e.getFullYear();case"y":return(f=String(e.getFullYear())).slice(f.length-2);case"Z":return i.utc?"GMT":(h=e.toString().match(/\((\w+)\)/))&&h[1]||"";case"z":return i.utc?"+0000":((u="number"==typeof i.timezone?i.timezone:-e.getTimezoneOffset())<0?"-":"+")+QI(Math.abs(u/60))+QI(u%60);default:return o}})},$I=function(t){var e=6e4*(t.getTimezoneOffset()||0);return new Date(t.getTime()+e)},QI=function(t,e,n){"number"==typeof e&&(n=e,e="0"),e=null==e?"0":e,n=null==n?2:n;var i=String(t);if(e)for(;i.length12&&(e-=12),e},tT=function(t){var e=t%10,n=t%100;if(n>=11&&n<=13||0===e||e>=4)return"th";switch(e){case 1:return"st";case 2:return"nd";case 3:return"rd"}},eT=function(t,e){e=e||"sunday";var n=t.getDay();"monday"===e&&(0===n?n=6:n--);var i=new Date(t.getFullYear(),0,1),r=Math.floor((t.getTime()-i.getTime())/864e5);return Math.floor((r+7-n)/7)},nT=function(t){return t.replace(/./g,function(t){switch(t){case"a":case"A":return"%p";case"b":case"d":case"m":case"w":case"W":case"y":case"Y":return"%"+t;case"c":return"%FT%TZ";case"D":return"%a";case"e":return"%z";case"f":return"%I:%M";case"F":return"%F";case"h":case"g":return"%I";case"H":case"G":return"%H";case"i":return"%M";case"I":return"";case"j":return"%d";case"l":return"%A";case"L":return"";case"M":return"%b";case"n":return"%m";case"N":return"%b";case"o":return"%W";case"O":return"%z";case"P":return"%R %p";case"r":return"%a, %d %b %Y %T %z";case"s":return"%S";case"S":case"t":return"";case"T":return"%Z";case"u":return"0";case"U":return"";case"z":return"%j";case"Z":return"z";default:return t}})},iT=function(t,e,n){var i;if(void 0===n&&(n=null),"None"===e||null==e)e=7226578800,i=django.gettext("Never");else{var r=django.get_format(t);n&&(r+=n),i=ZI(nT(r),new Date(1e3*e))}return i},rT=function(t){return"yes"===t||!0===t||"true"===t||1===t},oT={days:YI,shortDays:XI(YI),months:qI,shortMonths:XI(qI),AM:"AM",PM:"PM",am:"am",pm:"pm"},aT=n(8774),sT=n.n(aT),lT=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some(function(t,i){return t[0]===e&&(n=i,!0)}),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),i=this.__entries__[n];return i&&i[1]},e.prototype.set=function(e,n){var i=t(this.__entries__,e);~i?this.__entries__[i][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,i=t(n,e);~i&&n.splice(i,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,i=this.__entries__;n0},t.prototype.connect_=function(){uT&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),fT?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){uT&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;dT.some(function(t){return!!~n.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),gT=function(t,e){for(var n=0,i=Object.keys(e);n0},t}(),CT="undefined"!=typeof WeakMap?new WeakMap:new lT,AT=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=pT.getInstance(),i=new ST(e,n,this);CT.set(this,i)};["observe","unobserve","disconnect"].forEach(function(t){AT.prototype[t]=function(){var e;return(e=CT.get(this))[t].apply(e,arguments)}});var MT=void 0!==cT.ResizeObserver?cT.ResizeObserver:AT,IT=function(){function t(e){s(this,t),this.changes=e}return a(t,[{key:"notEmpty",value:function(t){if(this.changes[t]){var e=this.changes[t].currentValue;if(null!=e)return Od(e)}return If}},{key:"has",value:function(t){return this.changes[t]?Od(this.changes[t].currentValue):If}},{key:"notFirst",value:function(t){return this.changes[t]&&!this.changes[t].isFirstChange()?Od(this.changes[t].currentValue):If}},{key:"notFirstAndEmpty",value:function(t){if(this.changes[t]&&!this.changes[t].isFirstChange()){var e=this.changes[t].currentValue;if(null!=e)return Od(e)}return If}}],[{key:"of",value:function(e){return new t(e)}}]),t}(),TT=new _i("NGX_ECHARTS_CONFIG"),DT=function(){var t=function(){function t(e,n,i){s(this,t),this.el=n,this.ngZone=i,this.autoResize=!0,this.loadingType="default",this.chartInit=new Lu,this.optionsError=new Lu,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartPieSelectChanged=this.createLazyEvent("pieselectchanged"),this.chartPieSelected=this.createLazyEvent("pieselected"),this.chartPieUnselected=this.createLazyEvent("pieunselected"),this.chartMapSelectChanged=this.createLazyEvent("mapselectchanged"),this.chartMapSelected=this.createLazyEvent("mapselected"),this.chartMapUnselected=this.createLazyEvent("mapunselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartFocusNodeAdjacency=this.createLazyEvent("focusnodeadjacency"),this.chartUnfocusNodeAdjacency=this.createLazyEvent("unfocusnodeadjacency"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.echarts=e.echarts}return a(t,[{key:"ngOnChanges",value:function(t){var e=this,n=IT.of(t);n.notFirstAndEmpty("options").subscribe(function(t){return e.onOptionsChange(t)}),n.notFirstAndEmpty("merge").subscribe(function(t){return e.setOption(t)}),n.has("loading").subscribe(function(t){return e.toggleLoading(!!t)}),n.notFirst("theme").subscribe(function(){return e.refreshChart()})}},{key:"ngOnInit",value:function(){var t=this;this.autoResize&&(this.resizeSub=new MT(function(){t.animationFrameID=window.requestAnimationFrame(function(){return t.resize()})}),this.resizeSub.observe(this.el.nativeElement))}},{key:"ngOnDestroy",value:function(){this.resizeSub&&(this.resizeSub.unobserve(this.el.nativeElement),window.cancelAnimationFrame(this.animationFrameID)),this.dispose()}},{key:"ngAfterViewInit",value:function(){var t=this;setTimeout(function(){return t.initChart()})}},{key:"dispose",value:function(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}},{key:"resize",value:function(){this.chart&&this.chart.resize()}},{key:"toggleLoading",value:function(t){this.chart&&(t?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading())}},{key:"setOption",value:function(t,e){if(this.chart)try{this.chart.setOption(t,e)}catch(n){console.error(n),this.optionsError.emit(n)}}},{key:"refreshChart",value:function(){return SI(this,void 0,void 0,sT().mark(function t(){return sT().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.dispose(),t.next=3,this.initChart();case 3:case"end":return t.stop()}},t,this)}))}},{key:"createChart",value:function(){var t=this,e=this.el.nativeElement;if(window&&window.getComputedStyle){var n=window.getComputedStyle(e,null).getPropertyValue("height");n&&"0px"!==n||e.style.height&&"0px"!==e.style.height||(e.style.height="400px")}return this.ngZone.runOutsideAngular(function(){return("function"==typeof t.echarts?t.echarts:function(){return Promise.resolve(t.echarts)})().then(function(n){return(0,n.init)(e,t.theme,t.initOpts)})})}},{key:"initChart",value:function(){return SI(this,void 0,void 0,sT().mark(function t(){return sT().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.onOptionsChange(this.options);case 2:this.merge&&this.chart&&this.setOption(this.merge);case 3:case"end":return t.stop()}},t,this)}))}},{key:"onOptionsChange",value:function(t){return SI(this,void 0,void 0,sT().mark(function e(){return sT().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if(!this.chart){e.next=6;break}this.setOption(this.options,!0),e.next=11;break;case 6:return e.next=8,this.createChart();case 8:this.chart=e.sent,this.chartInit.emit(this.chart),this.setOption(this.options,!0);case 11:case"end":return e.stop()}},e,this)}))}},{key:"createLazyEvent",value:function(t){var e=this;return this.chartInit.pipe(Ef(function(n){return new z(function(i){return n.on(t,function(t){return e.ngZone.run(function(){return i.next(t)})}),function(){e.chart&&(e.chart.isDisposed()||n.off(t))}})}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(TT),us(Al),us(xc))},t.\u0275dir=me({type:t,selectors:[["echarts"],["","echarts",""]],inputs:{autoResize:"autoResize",loadingType:"loadingType",options:"options",theme:"theme",loading:"loading",initOpts:"initOpts",merge:"merge",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartPieSelectChanged:"chartPieSelectChanged",chartPieSelected:"chartPieSelected",chartPieUnselected:"chartPieUnselected",chartMapSelectChanged:"chartMapSelectChanged",chartMapSelected:"chartMapSelected",chartMapUnselected:"chartMapUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartFocusNodeAdjacency:"chartFocusNodeAdjacency",chartUnfocusNodeAdjacency:"chartUnfocusNodeAdjacency",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],features:[De]}),t}(),ET=function(){var t=function(){function t(){s(this,t)}return a(t,null,[{key:"forRoot",value:function(e){return{ngModule:t,providers:[{provide:TT,useValue:e}]}}},{key:"forChild",value:function(){return{ngModule:t}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[]]}),t}();function OT(t,e){if(1&t&&(ds(0,"div",21),ds(1,"div",11),ps(2,"img",3),ds(3,"div",12),$s(4),fs(),fs(),ds(5,"div",13),ds(6,"a",15),ds(7,"uds-translate"),$s(8,"View service pools"),fs(),fs(),fs(),fs()),2&t){var n=Ms(2);Eo(2),cs("src",n.api.staticURL("admin/img/icons/logs.png"),Tr),Eo(2),Js(" ",n.data.restrained," ")}}function PT(t,e){if(1&t){var n=ys();ds(0,"div"),ds(1,"div",8),ds(2,"div",9),ds(3,"div",10),ds(4,"div",11),ps(5,"img",3),ds(6,"div",12),$s(7),fs(),fs(),ds(8,"div",13),ds(9,"a",14),ds(10,"uds-translate"),$s(11,"View authenticators"),fs(),fs(),fs(),fs(),ds(12,"div",10),ds(13,"div",11),ps(14,"img",3),ds(15,"div",12),$s(16),fs(),fs(),ds(17,"div",13),ds(18,"a",15),ds(19,"uds-translate"),$s(20,"View service pools"),fs(),fs(),fs(),fs(),ds(21,"div",10),ds(22,"div",11),ps(23,"img",3),ds(24,"div",12),$s(25),fs(),fs(),ds(26,"div",13),ds(27,"a",15),ds(28,"uds-translate"),$s(29,"View service pools"),fs(),fs(),fs(),fs(),ss(30,OT,9,2,"div",16),fs(),ds(31,"div",17),ds(32,"div",18),ds(33,"div",19),ds(34,"uds-translate"),$s(35,"Assigned services chart"),fs(),fs(),ds(36,"div",20),xs("chartInit",function(t){return en(n),Ms().chartInit("assigned",t)}),fs(),fs(),ds(37,"div",18),ds(38,"div",19),ds(39,"uds-translate"),$s(40,"In use services chart"),fs(),fs(),ds(41,"div",20),xs("chartInit",function(t){return en(n),Ms().chartInit("inuse",t)}),fs(),fs(),fs(),fs(),fs()}if(2&t){var i=Ms();Eo(5),cs("src",i.api.staticURL("admin/img/icons/authenticators.png"),Tr),Eo(2),Js(" ",i.data.users," "),Eo(7),cs("src",i.api.staticURL("admin/img/icons/pools.png"),Tr),Eo(2),Js(" ",i.data.pools," "),Eo(7),cs("src",i.api.staticURL("admin/img/icons/services.png"),Tr),Eo(2),Js(" ",i.data.user_services," "),Eo(5),cs("ngIf",i.data.restrained),Eo(6),cs("options",i.assignedChartOpts),Eo(5),cs("options",i.inuseChartOpts)}}function RT(t,e){1&t&&(ds(0,"div",22),ds(1,"div",23),ds(2,"div",24),ds(3,"uds-translate"),$s(4,"UDS Administration"),fs(),fs(),ds(5,"div",25),ds(6,"p"),ds(7,"uds-translate"),$s(8,"You are accessing UDS Administration as staff member."),fs(),fs(),ds(9,"p"),ds(10,"uds-translate"),$s(11,"This means that you have restricted access to elements."),fs(),fs(),ds(12,"p"),ds(13,"uds-translate"),$s(14,"In order to increase your access privileges, please contact your local UDS administrator. "),fs(),fs(),ps(15,"br"),ds(16,"p"),ds(17,"uds-translate"),$s(18,"Thank you."),fs(),fs(),fs(),fs(),fs())}var LT=function(){function t(t,e){this.api=t,this.rest=e,this.data={},this.assignedChartInstance=null,this.assignedChartOpts={},this.inuseChartOpts={},this.inuseChartInstance=null}return t.prototype.onResize=function(t){this.assignedChartInstance&&this.assignedChartInstance.resize(),this.inuseChartInstance&&this.inuseChartInstance.resize()},t.prototype.ngOnInit=function(){var t=this;if(this.api.user.isAdmin){this.rest.system.information().subscribe(function(e){t.data={users:django.gettext("#USR_NUMBER# users, #GRP_NUMBER# groups").replace("#USR_NUMBER#",e.users).replace("#GRP_NUMBER#",e.groups),pools:django.gettext("#POOLS_NUMBER# service pools").replace("#POOLS_NUMBER#",e.service_pools),user_services:django.gettext("#SERVICES_NUMBER# user services").replace("#SERVICES_NUMBER#",e.user_services)},e.restrained_services_pools>0&&(t.data.restrained=django.gettext("#RESTRAINED_NUMBER# restrained services!").replace("#RESTRAINED_NUMBER#",e.restrained_services_pools))});for(var e=function(e){n.rest.system.stats(e).subscribe(function(n){var i={tooltip:{trigger:"axis"},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:n.map(function(t){return iT("SHORT_DATE_FORMAT",new Date(t.stamp))}),boundaryGap:!1},yAxis:{type:"value",boundaryGap:!1},series:[{name:"assigned"===e?django.gettext("Assigned services"):django.gettext("Services in use"),type:"line",smooth:!0,areaStyle:{},data:n.map(function(t){return t.value})}]};"assigned"===e?t.assignedChartOpts=i:t.inuseChartOpts=i})},n=this,i=0,r=["assigned","inuse"];i enter",[Tb({opacity:0,transform:"translateY(-5px)"}),Mb("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},eD=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t}),t}(),nD=new _i("MatHint"),iD=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["mat-label"]]}),t}(),rD=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["mat-placeholder"]]}),t}(),oD=new _i("MatPrefix"),aD=new _i("MatSuffix"),sD=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["","matSuffix",""]],features:[yl([{provide:aD,useExisting:t}])]}),t}(),lD=0,uD=Ek(function(){return function t(e){s(this,t),this._elementRef=e}}(),"primary"),cD=new _i("MAT_FORM_FIELD_DEFAULT_OPTIONS"),hD=new _i("MatFormField"),dD=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l,u,c){var h;return s(this,n),(h=e.call(this,t))._elementRef=t,h._changeDetectorRef=i,h._dir=o,h._defaults=a,h._platform=l,h._ngZone=u,h._outlineGapCalculationNeededImmediately=!1,h._outlineGapCalculationNeededOnStable=!1,h._destroyed=new U,h._showAlwaysAnimate=!1,h._subscriptAnimationState="",h._hintLabel="",h._hintLabelId="mat-hint-".concat(lD++),h._labelId="mat-form-field-label-".concat(lD++),h.floatLabel=h._getDefaultFloatLabelState(),h._animationsEnabled="NoopAnimations"!==c,h.appearance=a&&a.appearance?a.appearance:"legacy",h._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,h}return a(n,[{key:"appearance",get:function(){return this._appearance},set:function(t){var e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(t){this._hideRequiredMarker=mv(t)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(t){this._hintLabel=t,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(t){this._explicitFormFieldControl=t}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var t=this;this._validateControlChild();var e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(e.controlType)),e.stateChanges.pipe(Vf(null)).subscribe(function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(qv(this._destroyed)).subscribe(function(){return t._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.pipe(qv(t._destroyed)).subscribe(function(){t._outlineGapCalculationNeededOnStable&&t.updateOutlineGap()})}),dt(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){t._outlineGapCalculationNeededOnStable=!0,t._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Vf(null)).subscribe(function(){t._processHints(),t._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Vf(null)).subscribe(function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(qv(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?t._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return t.updateOutlineGap()})}):t.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(t){var e=this._control?this._control.ngControl:null;return e&&e[t]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,kv(this._label.nativeElement,"transitionend").pipe(Lf(1)).subscribe(function(){t._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push.apply(t,b(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find(function(t){return"start"===t.align}):null,n=this._hintChildren?this._hintChildren.find(function(t){return"end"===t.align}):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&t.push.apply(t,b(this._errorChildren.map(function(t){return t.id})));this._control.setDescribedByIds(t)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var t=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var e=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=i.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),l=t.children,u=this._getStartEnd(l[0].getBoundingClientRect()),c=0,h=0;h0?.75*c+10:0}for(var d=0;d void",Rb("@transformPanel",[Pb()],{optional:!0}))]),transformPanel:Ab("transformPanel",[Db("void",Tb({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Db("showing",Tb({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Db("showing-multiple",Tb({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Ob("void => *",Mb("120ms cubic-bezier(0, 0, 0.2, 1)")),Ob("* => void",Mb("100ms 25ms linear",Tb({opacity:0})))])},SD=0,CD=256,AD=new _i("mat-select-scroll-strategy"),MD=new _i("MAT_SELECT_CONFIG"),ID={provide:AD,deps:[__],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},TD=function t(e,n){s(this,t),this.source=e,this.value=n},DD=Ok(Pk(Dk(Rk(function(){return function t(e,n,i,r,o){s(this,t),this._elementRef=e,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=o}}())))),ED=new _i("MatSelectTrigger"),OD=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["mat-select-trigger"]],features:[yl([{provide:ED,useExisting:t}])]}),t}(),PD=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l,u,c,h,f,p,g,m,v){var y,_,w,x;return s(this,n),(y=e.call(this,a,o,u,c,f))._viewportRuler=t,y._changeDetectorRef=i,y._ngZone=r,y._dir=l,y._parentFormField=h,y.ngControl=f,y._liveAnnouncer=m,y._defaultOptions=v,y._panelOpen=!1,y._compareWith=function(t,e){return t===e},y._uid="mat-select-".concat(SD++),y._triggerAriaLabelledBy=null,y._destroy=new U,y._onChange=function(){},y._onTouched=function(){},y._valueId="mat-select-value-".concat(SD++),y._panelDoneAnimatingStream=new U,y._overlayPanelClass=(null===(_=y._defaultOptions)||void 0===_?void 0:_.overlayPanelClass)||"",y._focused=!1,y.controlType="mat-select",y._required=!1,y._multiple=!1,y._disableOptionCentering=null!==(x=null===(w=y._defaultOptions)||void 0===w?void 0:w.disableOptionCentering)&&void 0!==x&&x,y.ariaLabel="",y.optionSelectionChanges=Df(function(){var t=y.options;return t?t.changes.pipe(Vf(t),Ef(function(){return dt.apply(void 0,b(t.map(function(t){return t.onSelectionChange})))})):y._ngZone.onStable.pipe(Lf(1),Ef(function(){return y.optionSelectionChanges}))}),y.openedChange=new Lu,y._openedStream=y.openedChange.pipe(Rd(function(t){return t}),q(function(){})),y._closedStream=y.openedChange.pipe(Rd(function(t){return!t}),q(function(){})),y.selectionChange=new Lu,y.valueChange=new Lu,y.ngControl&&(y.ngControl.valueAccessor=d(y)),null!=(null==v?void 0:v.typeaheadDebounceInterval)&&(y._typeaheadDebounceInterval=v.typeaheadDebounceInterval),y._scrollStrategyFactory=g,y._scrollStrategy=y._scrollStrategyFactory(),y.tabIndex=parseInt(p)||0,y.id=y.id,y}return a(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(t){this._required=mv(t),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(t){this._multiple=mv(t)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(t){this._disableOptionCentering=mv(t)}},{key:"compareWith",get:function(){return this._compareWith},set:function(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(t){this._typeaheadDebounceInterval=vv(t)}},{key:"id",get:function(){return this._id},set:function(t){this._id=t||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var t=this;this._selectionModel=new yy(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Nv(),qv(this._destroy)).subscribe(function(){return t._panelDoneAnimating(t.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var t=this;this._initKeyManager(),this._selectionModel.changed.pipe(qv(this._destroy)).subscribe(function(t){t.added.forEach(function(t){return t.select()}),t.removed.forEach(function(t){return t.deselect()})}),this.options.changes.pipe(Vf(null),qv(this._destroy)).subscribe(function(){t._resetOptions(),t._initializeSelection()})}},{key:"ngDoCheck",value:function(){var t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){var e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(t){this.value=t}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var t=this._selectionModel.selected.map(function(t){return t.viewValue});return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}},{key:"_handleClosedKeydown",value:function(t){var e=t.keyCode,n=e===Gy||e===Hy||e===By||e===jy,i=e===Ly||e===Fy,r=this._keyManager;if(!r.isTyping()&&i&&!Uy(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;r.onKeydown(t);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(t){var e=this._keyManager,n=t.keyCode,i=n===Gy||n===Hy,r=e.isTyping();if(i&&t.altKey)t.preventDefault(),this.close();else if(r||n!==Ly&&n!==Fy||!e.activeItem||Uy(t))if(!r&&this._multiple&&65===n&&t.ctrlKey){t.preventDefault();var o=this.options.some(function(t){return!t.disabled&&!t.selected});this.options.forEach(function(t){t.disabled||(o?t.select():t.deselect())})}else{var a=e.activeItemIndex;e.onKeydown(t),this._multiple&&i&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==a&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var t=this;this._overlayDir.positionChange.pipe(Lf(1)).subscribe(function(){t._changeDetectorRef.detectChanges(),t._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var t=this;Promise.resolve().then(function(){t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value),t.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(t){var e=this;if(this._selectionModel.selected.forEach(function(t){return t.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(function(t){return e._selectValue(t)}),this._sortValues();else{var n=this._selectValue(t);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(t){var e=this,n=this.options.find(function(n){if(e._selectionModel.isSelected(n))return!1;try{return null!=n.value&&e._compareWith(n.value,t)}catch(i){return!1}});return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var t=this;this._keyManager=new X_(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(qv(this._destroy)).subscribe(function(){t.panelOpen&&(!t.multiple&&t._keyManager.activeItem&&t._keyManager.activeItem._selectViaInteraction(),t.focus(),t.close())}),this._keyManager.change.pipe(qv(this._destroy)).subscribe(function(){t._panelOpen&&t.panel?t._scrollOptionIntoView(t._keyManager.activeItemIndex||0):t._panelOpen||t.multiple||!t._keyManager.activeItem||t._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var t=this,e=dt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(qv(e)).subscribe(function(e){t._onSelect(e.source,e.isUserInput),e.isUserInput&&!t.multiple&&t._panelOpen&&(t.close(),t.focus())}),dt.apply(void 0,b(this.options.map(function(t){return t._stateChanges}))).pipe(qv(e)).subscribe(function(){t._changeDetectorRef.markForCheck(),t.stateChanges.next()})}},{key:"_onSelect",value:function(t,e){var n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var t=this;if(this.multiple){var e=this.options.toArray();this._selectionModel.sort(function(n,i){return t.sortComparator?t.sortComparator(n,i,e):e.indexOf(n)-e.indexOf(i)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(t){var e;e=this.multiple?this.selected.map(function(t){return t.value}):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}},{key:"focus",value:function(t){this._elementRef.nativeElement.focus(t)}},{key:"_getPanelAriaLabelledby",value:function(){var t;if(this.ariaLabel)return null;var e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var t;if(this.ariaLabel)return null;var e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId(),n=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}},{key:"_panelDoneAnimating",value:function(t){this.openedChange.emit(t)}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(DD);return t.\u0275fac=function(e){return new(e||t)(us(wy),us(Ql),us(xc),us(Zk),us(Al),us(fy,8),us(hA,8),us(wA,8),us(hD,8),us(FC,10),mi("tabindex"),us(AD),us(hb),us(MD,8))},t.\u0275dir=me({type:t,viewQuery:function(t,e){var n;1&t&&(Xu(pD,5),Xu(gD,5),Xu(k_,5)),2&t&&(qu(n=Ku())&&(e.trigger=n.first),qu(n=Ku())&&(e.panel=n.first),qu(n=Ku())&&(e._overlayDir=n.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[Ya,De]}),t}(),RD=function(){var t=function(t){u(n,t);var e=p(n);function n(){var t;return s(this,n),(t=e.apply(this,arguments))._scrollTop=0,t._triggerFontSize=0,t._transformOrigin="top",t._offsetY=0,t._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],t}return a(n,[{key:"_calculateOverlayScroll",value:function(t,e,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}},{key:"ngOnInit",value:function(){var t=this;r(i(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(qv(this._destroy)).subscribe(function(){t.panelOpen&&(t._triggerRect=t.trigger.nativeElement.getBoundingClientRect(),t._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var t=this;r(i(n.prototype),"_canOpen",this).call(this)&&(r(i(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Lf(1)).subscribe(function(){t._triggerFontSize&&t._overlayDir.overlayRef&&t._overlayDir.overlayRef.overlayElement&&(t._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(t._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(t){var e=yS(t,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=_S((t+e)*n,n,this.panel.nativeElement.scrollTop,CD)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),r(i(n.prototype),"_panelDoneAnimating",this).call(this,t)}},{key:"_getChangeEvent",value:function(t){return new TD(this,t)}},{key:"_calculateOverlayOffsetX",value:function(){var t,e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)t=40;else if(this.disableOptionCentering)t=16;else{var o=this._selectionModel.selected[0]||this.options.first;t=o&&o.group?32:16}i||(t*=-1);var a=0-(e.left+t-(i?r:0)),s=e.right+t-n.width+(i?0:r);a>0?t+=a+8:s>0&&(t-=s+8),this._overlayDir.offsetX=Math.round(t),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(t,e,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(CD/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?t*r:this._scrollTop===n?(t-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-CD)%r):e-r/2,Math.round(-1*i-o))}},{key:"_checkOverlayWithinViewport",value:function(t){var e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*e,CD)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,t):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(t,e){var n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(t,e,n){var i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var t,e=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*e,CD),r=n*e-i;t=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),t+=yS(t,this.options,this.optionGroups);var o=i/2;this._scrollTop=this._calculateOverlayScroll(t,o,r),this._offsetY=this._calculateOverlayOffsetY(t,o,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var t=this._getItemHeight(),e=(t-this._triggerRect.height)/2,n=Math.abs(this._offsetY)-e+t/2;return"50% ".concat(n,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(PD);return t.\u0275fac=function(){var e;return function(n){return(e||(e=pi(t)))(n||t)}}(),t.\u0275cmp=ce({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){var i;1&t&&(Zu(n,ED,5),Zu(n,vS,5),Zu(n,fS,5)),2&t&&(qu(i=Ku())&&(e.customTrigger=i.first),qu(i=Ku())&&(e.options=i),qu(i=Ku())&&(e.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&xs("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(os("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),Bs("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[yl([{provide:eD,useExisting:t},{provide:uS,useExisting:t}]),Ya],ngContentSelectors:xD,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(Ts(wD),ds(0,"div",0,1),xs("click",function(){return e.toggle()}),ds(3,"div",2),ss(4,mD,2,1,"span",3),ss(5,_D,3,2,"span",4),fs(),ds(6,"div",5),ps(7,"div",6),fs(),fs(),ss(8,bD,4,14,"ng-template",7),xs("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){var n=ls(1);os("aria-owns",e.panelOpen?e.id+"-panel":null),Eo(3),cs("ngSwitch",e.empty),os("id",e._valueId),Eo(1),cs("ngSwitchCase",!0),Eo(1),cs("ngSwitchCase",!1),Eo(3),cs("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[x_,Rh,Lh,k_,Nh,Ah],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[kD.transformPanelWrap,kD.transformPanel]},changeDetection:0}),t}(),LD=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[ID],imports:[[Wh,C_,bS,Tk],xy,fD,bS,Tk]}),t}(),ND={tooltipState:Ab("state",[Db("initial, void, hidden",Tb({opacity:0,transform:"scale(0)"})),Db("visible",Tb({transform:"scale(1)"})),Ob("* => visible",Mb("200ms cubic-bezier(0, 0, 0.2, 1)",Eb([Tb({opacity:0,transform:"scale(0)",offset:0}),Tb({opacity:.5,transform:"scale(0.99)",offset:.5}),Tb({opacity:1,transform:"scale(1)",offset:1})]))),Ob("* => hidden",Mb("100ms cubic-bezier(0, 0, 0.2, 1)",Tb({opacity:0})))])},FD="tooltip-panel",VD=ly({passive:!0}),zD=new _i("mat-tooltip-scroll-strategy"),BD={provide:zD,deps:[__],useFactory:function(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},HD=new _i("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),jD=function(){var t=function(){function t(e,n,i,r,o,a,l,u,c,h,d,f){var p=this;s(this,t),this._overlay=e,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=l,this._focusMonitor=u,this._dir=h,this._defaultOptions=d,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new U,this._handleKeydown=function(t){p._isTooltipVisible()&&t.keyCode===Ny&&!Uy(t)&&(t.preventDefault(),t.stopPropagation(),p._ngZone.run(function(){return p.hide(0)}))},this._scrollStrategy=c,this._document=f,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),h.change.pipe(qv(this._destroyed)).subscribe(function(){p._overlayRef&&p._updatePosition(p._overlayRef)}),o.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",p._handleKeydown)})}return a(t,[{key:"position",get:function(){return this._position},set:function(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=mv(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(t){var e=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){e._ariaDescriber.describe(e._elementRef.nativeElement,e.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var t=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(qv(this._destroyed)).subscribe(function(e){e?"keyboard"===e&&t._ngZone.run(function(){return t.show()}):t._ngZone.run(function(){return t.hide(0)})})}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(e){var n=y(e,2);t.removeEventListener(n[0],n[1],VD)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}},{key:"show",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new Cy(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(qv(this._destroyed)).subscribe(function(){return t._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}}},{key:"hide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(t)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var t=this;if(this._overlayRef)return this._overlayRef;var e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return n.positionChanges.pipe(qv(this._destroyed)).subscribe(function(e){t._updateCurrentPositionClass(e.connectionPair),t._tooltipInstance&&e.scrollableViewProperties.isOverlayClipped&&t._tooltipInstance.isVisible()&&t._ngZone.run(function(){return t.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"".concat(this._cssClassPrefix,"-").concat(FD),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(qv(this._destroyed)).subscribe(function(){return t._detach()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(t){var e=t.getConfig().positionStrategy,n=this._getOrigin(),i=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},n.main),i.main)),this._addOffset(Object.assign(Object.assign({},n.fallback),i.fallback))])}},{key:"_addOffset",value:function(t){return t}},{key:"_getOrigin",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?t={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&e||"right"==n&&!e?t={originX:"start",originY:"center"}:("after"==n||"right"==n&&e||"left"==n&&!e)&&(t={originX:"end",originY:"center"});var i=this._invertPosition(t.originX,t.originY);return{main:t,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?t={overlayX:"center",overlayY:"bottom"}:"below"==n?t={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&e||"right"==n&&!e?t={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&e||"left"==n&&!e)&&(t={overlayX:"start",overlayY:"center"});var i=this._invertPosition(t.overlayX,t.overlayY);return{main:t,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var t=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Lf(1),qv(this._destroyed)).subscribe(function(){t._tooltipInstance&&t._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}},{key:"_updateCurrentPositionClass",value:function(t){var e,n=t.overlayY,i=t.originX;if((e="center"===n?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===n&&"top"===t.originY?"above":"below")!==this._currentPosition){var r=this._overlayRef;if(r){var o="".concat(this._cssClassPrefix,"-").concat(FD,"-");r.removePanelClass(o+this._currentPosition),r.addPanelClass(o+e)}this._currentPosition=e}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var t=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){t._setupPointerExitEventsIfNeeded(),t.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){t._setupPointerExitEventsIfNeeded(),clearTimeout(t._touchstartTimeout),t._touchstartTimeout=setTimeout(function(){return t.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var t,e=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return e.hide()}],["wheel",function(t){return e._wheelListener(t)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(e._touchstartTimeout),e.hide(e._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(t=this._passiveListeners).push.apply(t,n)}}},{key:"_addListeners",value:function(t){var e=this;t.forEach(function(t){var n=y(t,2);e._elementRef.nativeElement.addEventListener(n[0],n[1],VD)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(t){if(this._isTooltipVisible()){var e=this._document.elementFromPoint(t.clientX,t.clientY),n=this._elementRef.nativeElement;e===n||n.contains(e)||this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var t=this.touchGestures;if("off"!==t){var e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==t&&e.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(__),us(Al),us(by),us(uu),us(xc),us(ry),us(U_),us(gb),us(void 0),us(fy),us(void 0),us(rh))},t.\u0275dir=me({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t}(),GD=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l,u,c,h,d,f,p){var g;return s(this,n),(g=e.call(this,t,i,r,o,a,l,u,c,h,d,f,p))._tooltipComponent=WD,g}return n}(jD);return t.\u0275fac=function(e){return new(e||t)(us(__),us(Al),us(by),us(uu),us(xc),us(ry),us(U_),us(gb),us(zD),us(fy,8),us(HD,8),us(rh))},t.\u0275dir=me({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[Ya]}),t}(),UD=function(){var t=function(){function t(e){s(this,t),this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new U}return a(t,[{key:"show",value:function(t){var e=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){e._visibility="visible",e._showTimeoutId=void 0,e._onShow(),e._markForCheck()},t)}},{key:"hide",value:function(t){var e=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){e._visibility="hidden",e._hideTimeoutId=void 0,e._markForCheck()},t)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(t){var e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_onShow",value:function(){}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Ql))},t.\u0275dir=me({type:t}),t}(),WD=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t))._breakpointObserver=i,r._isHandset=r._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),r}return n}(UD);return t.\u0275fac=function(e){return new(e||t)(us(Ql),us(aI))},t.\u0275cmp=ce({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&xs("click",function(){return e._handleBodyInteraction()},!1,zr)("auxclick",function(){return e._handleBodyInteraction()},!1,zr),2&t&&zs("zoom","visible"===e._visibility?1:null)},features:[Ya],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var n;1&t&&(ds(0,"div",0),xs("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),Tu(1,"async"),$s(2),fs()),2&t&&(Bs("mat-tooltip-handset",null==(n=Du(1,5,e._isHandset))?null:n.matches),cs("ngClass",e.tooltipClass)("@state",e._visibility),Eo(2),Qs(e.message))},directives:[Ah],pipes:[Hh],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[ND.tooltipState]},changeDetection:0}),t}(),YD=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[BD],imports:[[wb,Wh,C_,Tk],Tk,xy]}),t}();function qD(t,e){if(1&t&&(ds(0,"mat-option",19),$s(1),fs()),2&t){var n=e.$implicit;cs("value",n),Eo(1),Js(" ",n," ")}}function XD(t,e){if(1&t){var n=ys();ds(0,"mat-form-field",16),ds(1,"mat-select",17),xs("selectionChange",function(t){return en(n),Ms(2)._changePageSize(t.value)}),ss(2,qD,2,2,"mat-option",18),fs(),fs()}if(2&t){var i=Ms(2);cs("appearance",i._formFieldAppearance)("color",i.color),Eo(1),cs("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),Eo(1),cs("ngForOf",i._displayedPageSizeOptions)}}function ZD(t,e){if(1&t&&(ds(0,"div",20),$s(1),fs()),2&t){var n=Ms(2);Eo(1),Qs(n.pageSize)}}function KD(t,e){if(1&t&&(ds(0,"div",12),ds(1,"div",13),$s(2),fs(),ss(3,XD,3,6,"mat-form-field",14),ss(4,ZD,2,1,"div",15),fs()),2&t){var n=Ms();Eo(2),Js(" ",n._intl.itemsPerPageLabel," "),Eo(1),cs("ngIf",n._displayedPageSizeOptions.length>1),Eo(1),cs("ngIf",n._displayedPageSizeOptions.length<=1)}}function $D(t,e){if(1&t){var n=ys();ds(0,"button",21),xs("click",function(){return en(n),Ms().firstPage()}),Dn(),ds(1,"svg",7),ps(2,"path",22),fs(),fs()}if(2&t){var i=Ms();cs("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),os("aria-label",i._intl.firstPageLabel)}}function QD(t,e){if(1&t){var n=ys();Dn(),En(),ds(0,"button",23),xs("click",function(){return en(n),Ms().lastPage()}),Dn(),ds(1,"svg",7),ps(2,"path",24),fs(),fs()}if(2&t){var i=Ms();cs("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),os("aria-label",i._intl.lastPageLabel)}}var JD=function(){var t=function t(){s(this,t),this.changes=new U,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(t,e,n){if(0==n||0==e)return"0 of ".concat(n);var i=t*e,r=i<(n=Math.max(n,0))?Math.min(i+e,n):i+e;return"".concat(i+1," \u2013 ").concat(r," of ").concat(n)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ot({factory:function(){return new t},token:t,providedIn:"root"}),t}(),tE={provide:JD,deps:[[new Wi,new Yi,JD]],useFactory:function(t){return t||new JD}},eE=new _i("MAT_PAGINATOR_DEFAULT_OPTIONS"),nE=Dk(Lk(function(){return function t(){s(this,t)}}())),iE=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;if(s(this,n),(o=e.call(this))._intl=t,o._changeDetectorRef=i,o._pageIndex=0,o._length=0,o._pageSizeOptions=[],o._hidePageSize=!1,o._showFirstLastButtons=!1,o.page=new Lu,o._intlChanges=t.changes.subscribe(function(){return o._changeDetectorRef.markForCheck()}),r){var a=r.pageSize,l=r.pageSizeOptions,u=r.hidePageSize,c=r.showFirstLastButtons;null!=a&&(o._pageSize=a),null!=l&&(o._pageSizeOptions=l),null!=u&&(o._hidePageSize=u),null!=c&&(o._showFirstLastButtons=c)}return o}return a(n,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(t){this._pageIndex=Math.max(vv(t),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(t){this._length=vv(t),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(t){this._pageSize=Math.max(vv(t),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(t){this._pageSizeOptions=(t||[]).map(function(t){return vv(t)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(t){this._hidePageSize=mv(t)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(t){this._showFirstLastButtons=mv(t)}},{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var t=this.getNumberOfPages()-1;return this.pageIndex=o.length&&(a=0),o[a]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(cE);return t.\u0275fac=function(e){return new(e||t)(us(uE,8))},t.\u0275dir=me({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Ya,De]}),t}(),dE=Ak.ENTERING+" "+Ck.STANDARD_CURVE,fE={indicator:Ab("indicator",[Db("active-asc, asc",Tb({transform:"translateY(0px)"})),Db("active-desc, desc",Tb({transform:"translateY(10px)"})),Ob("active-asc <=> active-desc",Mb(dE))]),leftPointer:Ab("leftPointer",[Db("active-asc, asc",Tb({transform:"rotate(-45deg)"})),Db("active-desc, desc",Tb({transform:"rotate(45deg)"})),Ob("active-asc <=> active-desc",Mb(dE))]),rightPointer:Ab("rightPointer",[Db("active-asc, asc",Tb({transform:"rotate(45deg)"})),Db("active-desc, desc",Tb({transform:"rotate(-45deg)"})),Ob("active-asc <=> active-desc",Mb(dE))]),arrowOpacity:Ab("arrowOpacity",[Db("desc-to-active, asc-to-active, active",Tb({opacity:1})),Db("desc-to-hint, asc-to-hint, hint",Tb({opacity:.54})),Db("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Tb({opacity:0})),Ob("* => asc, * => desc, * => active, * => hint, * => void",Mb("0ms")),Ob("* <=> *",Mb(dE))]),arrowPosition:Ab("arrowPosition",[Ob("* => desc-to-hint, * => desc-to-active",Mb(dE,Eb([Tb({transform:"translateY(-25%)"}),Tb({transform:"translateY(0)"})]))),Ob("* => hint-to-desc, * => active-to-desc",Mb(dE,Eb([Tb({transform:"translateY(0)"}),Tb({transform:"translateY(25%)"})]))),Ob("* => asc-to-hint, * => asc-to-active",Mb(dE,Eb([Tb({transform:"translateY(25%)"}),Tb({transform:"translateY(0)"})]))),Ob("* => hint-to-asc, * => active-to-asc",Mb(dE,Eb([Tb({transform:"translateY(0)"}),Tb({transform:"translateY(-25%)"})]))),Db("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Tb({transform:"translateY(0)"})),Db("hint-to-desc, active-to-desc, desc",Tb({transform:"translateY(-25%)"})),Db("hint-to-asc, active-to-asc, asc",Tb({transform:"translateY(25%)"}))]),allowChildren:Ab("allowChildren",[Ob("* <=> *",[Rb("@*",Pb(),{optional:!0})])])},pE=function(){var t=function t(){s(this,t),this.changes=new U};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ot({factory:function(){return new t},token:t,providedIn:"root"}),t}(),gE={provide:pE,deps:[[new Wi,new Yi,pE]],useFactory:function(t){return t||new pE}},mE=Dk(function(){return function t(){s(this,t)}}()),vE=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l){var u;return s(this,n),(u=e.call(this))._intl=t,u._changeDetectorRef=i,u._sort=r,u._columnDef=o,u._focusMonitor=a,u._elementRef=l,u._showIndicatorHint=!1,u._viewState={},u._arrowDirection="",u._disableViewStateAnimation=!1,u.arrowPosition="after",u._handleStateChanges(),u}return a(n,[{key:"disableClear",get:function(){return this._disableClear},set:function(t){this._disableClear=mv(t)}},{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(e){var n=!!e;n!==t._showIndicatorHint&&(t._setIndicatorHintVisible(n),t._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(t){this._isDisabled()||t.keyCode!==Fy&&t.keyCode!==Ly||(t.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var t=this._viewState.fromState;return(t?"".concat(t,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"_handleStateChanges",value:function(){var t=this;this._rerenderSubscription=dt(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){t._isSorted()&&(t._updateArrowDirection(),"hint"!==t._viewState.toState&&"active"!==t._viewState.toState||(t._disableViewStateAnimation=!0),t._setAnimationTransitionState({fromState:t._arrowDirection,toState:"active"}),t._showIndicatorHint=!1),!t._isSorted()&&t._viewState&&"active"===t._viewState.toState&&(t._disableViewStateAnimation=!1,t._setAnimationTransitionState({fromState:"active",toState:t._arrowDirection})),t._changeDetectorRef.markForCheck()})}}]),n}(mE);return t.\u0275fac=function(e){return new(e||t)(us(pE),us(Ql),us(hE,8),us("MAT_SORT_HEADER_COLUMN_DEF",8),us(gb),us(Al))},t.\u0275cmp=ce({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&xs("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(os("aria-sort",e._getAriaSortAttribute()),Bs("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[Ya],attrs:aE,ngContentSelectors:lE,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(Ts(),ds(0,"div",0),ds(1,"div",1),Ds(2),fs(),ss(3,sE,6,6,"div",2),fs()),2&t&&(Bs("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),os("tabindex",e._isDisabled()?null:0),Eo(3),cs("ngIf",e._renderArrow()))},directives:[Dh],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[fE.indicator,fE.leftPointer,fE.rightPointer,fE.arrowOpacity,fE.arrowPosition,fE.allowChildren]},changeDetection:0}),t}(),yE=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[gE],imports:[[Wh,Tk]]}),t}(),_E=[[["caption"]],[["colgroup"],["col"]]],bE=["caption","colgroup, col"];function wE(t){return function(t){u(n,t);var e=p(n);function n(){var t;s(this,n);for(var i=arguments.length,r=new Array(i),o=0;o4&&void 0!==arguments[4])||arguments[4],a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],l=arguments.length>6?arguments[6]:void 0;s(this,t),this._isNativeHtmlTable=e,this._stickCellCss=n,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._positionListener=l,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(n,"-border-elem-top"),bottom:"".concat(n,"-border-elem-bottom"),left:"".concat(n,"-border-elem-left"),right:"".concat(n,"-border-elem-right")}}return a(t,[{key:"clearStickyPositioning",value:function(t,e){var n,i=this,r=[],o=v(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(a.nodeType===a.ELEMENT_NODE){r.push(a);for(var s=0;s3&&void 0!==arguments[3])||arguments[3];if(t.length&&this._isBrowser&&(e.some(function(t){return t})||n.some(function(t){return t}))){var o=t[0],a=o.children.length,s=this._getCellWidths(o,r),l=this._getStickyStartColumnPositions(s,e),u=this._getStickyEndColumnPositions(s,n),c=e.lastIndexOf(!0),h=n.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var r,o="rtl"===i.direction,d=o?"right":"left",f=o?"left":"right",p=v(t);try{for(p.s();!(r=p.n()).done;)for(var g=r.value,m=0;m1&&void 0!==arguments[1])||arguments[1];if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var n=[],i=t.children,r=0;r0;r--)e[r]&&(n[r]=i,i+=t[r]);return n}}]),t}(),YE=new _i("CDK_SPL"),qE=function(){var t=function t(e,n){s(this,t),this.viewContainer=e,this.elementRef=n};return t.\u0275fac=function(e){return new(e||t)(us(uu),us(Al))},t.\u0275dir=me({type:t,selectors:[["","rowOutlet",""]]}),t}(),XE=function(){var t=function t(e,n){s(this,t),this.viewContainer=e,this.elementRef=n};return t.\u0275fac=function(e){return new(e||t)(us(uu),us(Al))},t.\u0275dir=me({type:t,selectors:[["","headerRowOutlet",""]]}),t}(),ZE=function(){var t=function t(e,n){s(this,t),this.viewContainer=e,this.elementRef=n};return t.\u0275fac=function(e){return new(e||t)(us(uu),us(Al))},t.\u0275dir=me({type:t,selectors:[["","footerRowOutlet",""]]}),t}(),KE=function(){var t=function t(e,n){s(this,t),this.viewContainer=e,this.elementRef=n};return t.\u0275fac=function(e){return new(e||t)(us(uu),us(Al))},t.\u0275dir=me({type:t,selectors:[["","noDataRowOutlet",""]]}),t}(),$E=function(){var t=function(){function t(e,n,i,r,o,a,l,u,c,h,d){s(this,t),this._differs=e,this._changeDetectorRef=n,this._elementRef=i,this._dir=o,this._platform=l,this._viewRepeater=u,this._coalescedStyleScheduler=c,this._viewportRuler=h,this._stickyPositioningListener=d,this._onDestroy=new U,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.viewChange=new vf({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return a(t,[{key:"trackBy",get:function(){return this._trackByFn},set:function(t){this._trackByFn=t}},{key:"dataSource",get:function(){return this._dataSource},set:function(t){this._dataSource!==t&&this._switchDataSource(t)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(t){this._multiTemplateDataRows=mv(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(t){this._fixedLayout=mv(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var t=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(e,n){return t.trackBy?t.trackBy(n.dataIndex,n.data):n}),this._viewportRuler.change().pipe(qv(this._onDestroy)).subscribe(function(){t._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),my(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var t=this;this._renderRows=this._getAllRenderRows();var e=this._dataDiffer.diff(this._renderRows);if(e){var n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,n,function(e,n,i){return t._getEmbeddedViewArgs(e.item,i)},function(t){return t.item.data},function(e){1===e.operation&&e.context&&t._renderCellTemplateForItem(e.record.item.rowDef,e.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(function(t){n.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}else this._updateNoDataRow()}},{key:"addColumnDef",value:function(t){this._customColumnDefs.add(t)}},{key:"removeColumnDef",value:function(t){this._customColumnDefs.delete(t)}},{key:"addRowDef",value:function(t){this._customRowDefs.add(t)}},{key:"removeRowDef",value:function(t){this._customRowDefs.delete(t)}},{key:"addHeaderRowDef",value:function(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(t){this._customNoDataRow=t}},{key:"updateStickyHeaderRowStyles",value:function(){var t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");var n=this._headerRowDefs.map(function(t){return t.sticky});this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,n,"top"),this._headerRowDefs.forEach(function(t){return t.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");var n=this._footerRowDefs.map(function(t){return t.sticky});this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(function(t){return t.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var t=this,e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(b(e),b(n),b(i)),["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach(function(e,n){t._addStickyColumnStyles([e],t._headerRowDefs[n])}),this._rowDefs.forEach(function(e){for(var i=[],r=0;r0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(e,n){return t._renderRow(t._headerRowOutlet,e,n)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var t=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(e,n){return t._renderRow(t._footerRowOutlet,e,n)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(t,e){var n=this,i=Array.from(e.columns||[]).map(function(t){return n._columnDefsByName.get(t)}),r=i.map(function(t){return t.sticky}),o=i.map(function(t){return t.stickyEnd});this._stickyStyler.updateStickyColumns(t,r,o,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(t){for(var e=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:{},r=t.viewContainer.createEmbeddedView(e.template,i,n);return this._renderCellTemplateForItem(e,i),r}},{key:"_renderCellTemplateForItem",value:function(t,e){var n,i=v(this._getCellTemplates(t));try{for(i.s();!(n=i.n()).done;)BE.mostRecentCellOutlet&&BE.mostRecentCellOutlet._viewContainer.createEmbeddedView(n.value,e)}catch(r){i.e(r)}finally{i.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var t=this._rowOutlet.viewContainer,e=0,n=t.length;e0&&void 0!==arguments[0]?arguments[0]:[];return s(this,n),(t=e.call(this))._renderData=new vf([]),t._filter=new vf(""),t._internalPageChanges=new U,t._renderChangesSubscription=null,t.sortingDataAccessor=function(t,e){var n=t[e];if(yv(n)){var i=Number(n);return ia?u=1:o0)){var i=Math.ceil(n.length/n.pageSize)-1||0,r=Math.min(n.pageIndex,i);r!==n.pageIndex&&(n.pageIndex=r,e._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}}]),n}(gy));function gO(t){return t instanceof Date&&!isNaN(+t)}function mO(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zv,n=gO(t),i=n?+t-e.now():Math.abs(t);return function(t){return t.lift(new vO(i,e))}}var vO=function(){function t(e,n){s(this,t),this.delay=e,this.scheduler=n}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new yO(t,this.delay,this.scheduler))}}]),t}(),yO=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,t)).delay=i,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return a(n,[{key:"_schedule",value:function(t){this.active=!0,this.destination.add(t.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}},{key:"scheduleNotification",value:function(t){if(!0!==this.errored){var e=this.scheduler,n=new _O(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}}},{key:"_next",value:function(t){this.scheduleNotification(Jv.createNext(t))}},{key:"_error",value:function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(Jv.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){for(var e=t.source,n=e.queue,i=t.scheduler,r=t.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1}}]),n}(R),_O=function t(e,n){s(this,t),this.time=e,this.notification=n},bO=ly({passive:!0}),wO=function(){var t=function(){function t(e,n){s(this,t),this._platform=e,this._ngZone=n,this._monitoredElements=new Map}return a(t,[{key:"monitor",value:function(t){var e=this;if(!this._platform.isBrowser)return If;var n=wv(t),i=this._monitoredElements.get(n);if(i)return i.subject;var r=new U,o="cdk-text-field-autofilled",a=function(t){"cdk-text-field-autofill-start"!==t.animationName||n.classList.contains(o)?"cdk-text-field-autofill-end"===t.animationName&&n.classList.contains(o)&&(n.classList.remove(o),e._ngZone.run(function(){return r.next({target:t.target,isAutofilled:!1})})):(n.classList.add(o),e._ngZone.run(function(){return r.next({target:t.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){n.addEventListener("animationstart",a,bO),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:r,unlisten:function(){n.removeEventListener("animationstart",a,bO)}}),r}},{key:"stopMonitoring",value:function(t){var e=wv(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}},{key:"ngOnDestroy",value:function(){var t=this;this._monitoredElements.forEach(function(e,n){return t.stopMonitoring(n)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(ry),Fi(xc))},t.\u0275prov=Ot({factory:function(){return new t(Fi(ry),Fi(xc))},token:t,providedIn:"root"}),t}(),xO=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[oy]]}),t}(),kO=new _i("MAT_INPUT_VALUE_ACCESSOR"),SO=["button","checkbox","file","hidden","image","radio","range","reset","submit"],CO=0,AO=Rk(function(){return function t(e,n,i,r){s(this,t),this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}}()),MO=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l,u,c,h,d){var f;s(this,n),(f=e.call(this,l,o,a,r))._elementRef=t,f._platform=i,f.ngControl=r,f._autofillMonitor=c,f._formField=d,f._uid="mat-input-".concat(CO++),f.focused=!1,f.stateChanges=new U,f.controlType="mat-input",f.autofilled=!1,f._disabled=!1,f._required=!1,f._type="text",f._readonly=!1,f._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(t){return sy().has(t)});var p=f._elementRef.nativeElement,g=p.nodeName.toLowerCase();return f._inputValueAccessor=u||p,f._previousNativeValue=f.value,f.id=f.id,i.IOS&&h.runOutsideAngular(function(){t.nativeElement.addEventListener("keyup",function(t){var e=t.target;e.value||0!==e.selectionStart||0!==e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),f._isServer=!f._platform.isBrowser,f._isNativeSelect="select"===g,f._isTextarea="textarea"===g,f._isInFormField=!!d,f._isNativeSelect&&(f.controlType=p.multiple?"mat-native-select-multiple":"mat-native-select"),f}return a(n,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(t){this._disabled=mv(t),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(t){this._id=t||this._uid}},{key:"required",get:function(){return this._required},set:function(t){this._required=mv(t)}},{key:"type",get:function(){return this._type},set:function(t){this._type=t||"text",this._validateType(),!this._isTextarea&&sy().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(t){this._readonly=mv(t)}},{key:"ngAfterViewInit",value:function(){var t=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(e){t.autofilled=e.isAutofilled,t.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(t){this._elementRef.nativeElement.focus(t)}},{key:"_focusChanged",value:function(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var t,e,n=(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(n!==this._previousPlaceholder){var i=this._elementRef.nativeElement;this._previousPlaceholder=n,n?i.setAttribute("placeholder",n):i.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}},{key:"_validateType",value:function(){SO.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var 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}},{key:"setDescribedByIds",value:function(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),n}(AO);return t.\u0275fac=function(e){return new(e||t)(us(Al),us(ry),us(FC,10),us(hA,8),us(wA,8),us(Zk),us(kO,10),us(wO),us(xc),us(hD,8))},t.\u0275dir=me({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&&xs("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(el("disabled",e.disabled)("required",e.required),os("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),Bs("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:[yl([{provide:eD,useExisting:t}]),Ya,De]}),t}(),IO=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[Zk],imports:[[xO,fD,Tk],xO,fD]}),t}(),TO=["searchSelectInput"],DO=["innerSelectSearch"];function EO(t,e){if(1&t){var n=ys();ds(0,"button",6),xs("click",function(){return en(n),Ms()._reset(!0)}),ds(1,"i",7),$s(2,"close"),fs(),fs()}}var OO=function(t){return{"mat-select-search-inner-multiple":t}},PO=function(){function t(t,e){this.matSelect=t,this.changeDetectorRef=e,this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.clearSearchInput=!0,this.disableInitialFocus=!1,this.changed=new Lu,this.overlayClassSet=!1,this.change=new Lu,this._onDestroy=new U}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){var t=this,e="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(e):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,e]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[e]=!0):this.matSelect.panelClass=e,this.matSelect.openedChange.pipe(mO(1),qv(this._onDestroy)).subscribe(function(e){e?(t.getWidth(),t.disableInitialFocus||t._focus()):t.clearSearchInput&&t._reset()}),this.matSelect.openedChange.pipe(Lf(1)).pipe(qv(this._onDestroy)).subscribe(function(){t._options=t.matSelect.options,t._options.changes.pipe(qv(t._onDestroy)).subscribe(function(){var e=t.matSelect._keyManager;e&&t.matSelect.panelOpen&&setTimeout(function(){e.setFirstItemActive(),t.getWidth()},1)})}),this.change.pipe(qv(this._onDestroy)).subscribe(function(){t.changeDetectorRef.detectChanges()}),this.initMultipleHandling()},t.prototype.ngOnDestroy=function(){this._onDestroy.next(),this._onDestroy.complete()},t.prototype.ngAfterViewInit=function(){var t=this;setTimeout(function(){t.setOverlayClass()}),this.matSelect.openedChange.pipe(Lf(1),qv(this._onDestroy)).subscribe(function(){t.matSelect.options.changes.pipe(qv(t._onDestroy)).subscribe(function(){t.changeDetectorRef.markForCheck()})})},t.prototype._handleKeydown=function(t){(t.key&&1===t.key.length||t.keyCode>=65&&t.keyCode<=90||t.keyCode>=48&&t.keyCode<=57||t.keyCode===Fy)&&t.stopPropagation()},t.prototype.writeValue=function(t){t!==this._value&&(this._value=t,this.change.emit(t))},t.prototype.onInputChange=function(t){t.value!==this._value&&(this.initMultiSelectedValues(),this._value=t.value,this.changed.emit(t.value),this.change.emit(t.value))},t.prototype.onBlur=function(t){this.writeValue(t.value)},t.prototype._focus=function(){if(this.searchSelectInput&&this.matSelect.panel){var t=this.matSelect.panel.nativeElement,e=t.scrollTop;this.searchSelectInput.nativeElement.focus(),t.scrollTop=e}},t.prototype._reset=function(t){this.searchSelectInput&&(this.searchSelectInput.nativeElement.value="",this.onInputChange(""),t&&this._focus())},t.prototype.initMultiSelectedValues=function(){this.matSelect.multiple&&!this._value&&(this.previousSelectedValues=this.matSelect.options.filter(function(t){return t.selected}).map(function(t){return t.value}))},t.prototype.setOverlayClass=function(){var t=this;this.overlayClassSet||(this.matSelect.openedChange.pipe(qv(this._onDestroy)).subscribe(function(e){if(e){for(var n=t.searchSelectInput.nativeElement,i=void 0;n=n.parentElement;)if(n.classList.contains("cdk-overlay-pane")){i=n;break}i&&i.classList.add("cdk-overlay-pane-select-search")}}),this.overlayClassSet=!0)},t.prototype.initMultipleHandling=function(){var t=this;this.matSelect.valueChange.pipe(qv(this._onDestroy)).subscribe(function(e){if(t.matSelect.multiple){var n=!1;if(t._value&&t._value.length&&t.previousSelectedValues&&Array.isArray(t.previousSelectedValues)){e&&Array.isArray(e)||(e=[]);var i=t.matSelect.options.map(function(t){return t.value});t.previousSelectedValues.forEach(function(t){-1===e.indexOf(t)&&-1===i.indexOf(t)&&(e.push(t),n=!0)})}n&&t.matSelect._onChange(e),t.previousSelectedValues=e}})},t.prototype.getWidth=function(){if(this.innerSelectSearch&&this.innerSelectSearch.nativeElement){for(var t,e=this.innerSelectSearch.nativeElement;e=e.parentElement;)if(e.classList.contains("mat-select-panel")){t=e;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}},t.\u0275fac=function(e){return new(e||t)(us(RD),us(Ql))},t.\u0275cmp=ce({type:t,selectors:[["uds-mat-select-search"]],viewQuery:function(t,e){if(1&t&&(Xu(TO,7,Al),Xu(DO,7,Al)),2&t){var n=void 0;qu(n=Ku())&&(e.searchSelectInput=n.first),qu(n=Ku())&&(e.innerSelectSearch=n.first)}},inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",disableInitialFocus:"disableInitialFocus"},outputs:{changed:"changed"},features:[yl([{provide:uC,useExisting:Ct(function(){return t}),multi:!0}])],decls:6,vars:5,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["matInput","","autocomplete","off",1,"mat-select-search-input",3,"placeholder","keydown","input","blur"],["searchSelectInput",""],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[1,"material-icons"]],template:function(t,e){1&t&&(ps(0,"input",0),ds(1,"div",1,2),ds(3,"input",3,4),xs("keydown",function(t){return e._handleKeydown(t)})("input",function(t){return e.onInputChange(t.target)})("blur",function(t){return e.onBlur(t.target)}),fs(),ss(5,EO,3,0,"button",5),fs()),2&t&&(Eo(1),cs("ngClass",Su(3,OO,e.matSelect.multiple)),Eo(2),cs("placeholder",e.placeholderLabel),Eo(2),cs("ngIf",e.value))},directives:[MO,Ah,Dh,XS],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:0}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 36px 16px 16px;box-sizing:border-box}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px} .cdk-overlay-pane-select-search{margin-top:-50px}"],changeDetection:0}),t}();function RO(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"New user permission for"),fs())}function LO(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"New group permission for"),fs())}function NO(t,e){if(1&t&&(ds(0,"mat-option",11),$s(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Eo(1),Qs(n.text)}}function FO(t,e){if(1&t){var n=ys();ds(0,"uds-mat-select-search",12),xs("changed",function(t){return en(n),Ms().filterUser=t}),fs()}}function VO(t,e){if(1&t&&(ds(0,"mat-option",11),$s(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Eo(1),Qs(n.text)}}function zO(t,e){if(1&t&&(ds(0,"mat-option",11),$s(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Eo(1),Qs(n.text)}}var BO=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.data=i,this.filterUser="",this.authenticators=[],this.entities=[],this.permissions=[{id:"1",text:django.gettext("Read only")},{id:"2",text:django.gettext("Full Access")}],this.authenticator="",this.entity="",this.permission="1",this.onSave=new Lu(!0)}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"50%";return e.gui.dialog.open(t,{width:r,data:{type:n,item:i},disableClose:!0}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.summary().subscribe(function(e){e.forEach(function(e){t.authenticators.push({id:e.id,text:e.name})})})},t.prototype.changeAuth=function(t){var e=this;this.entities.length=0,this.entity="",this.rest.authenticators.detail(t,this.data.type+"s").summary().subscribe(function(t){t.forEach(function(t){e.entities.push({id:t.id,text:t.name})})})},t.prototype.save=function(){this.onSave.emit({authenticator:this.authenticator,entity:this.entity,permissision:this.permission}),this.dialogRef.close()},t.prototype.filteredEntities=function(){var t=this,e=new Array;return this.entities.forEach(function(n){t.filterUser&&!n.text.toLocaleLowerCase().includes(t.filterUser.toLocaleLowerCase())||e.push(n)}),e},t.prototype.getFieldLabel=function(t){return"user"===t?django.gettext("User"):"group"===t?django.gettext("Group"):"auth"===t?django.gettext("Authenticator"):django.gettext("Permission")},t.\u0275fac=function(e){return new(e||t)(us(bI),us(WI),us(MS),us(TS))},t.\u0275cmp=ce({type:t,selectors:[["uds-new-permission"]],decls:24,vars:13,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],[3,"innerHTML"],["titleGroup",""],[1,"container"],[3,"placeholder","ngModel","valueChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"placeholder","ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"]],template:function(t,e){if(1&t&&(ds(0,"h4",0),ss(1,RO,2,0,"uds-translate",1),ps(2,"b",2),ss(3,LO,2,0,"ng-template",null,3,tc),fs(),ds(5,"mat-dialog-content"),ds(6,"div",4),ds(7,"mat-form-field"),ds(8,"mat-select",5),xs("valueChange",function(t){return e.changeAuth(t)})("ngModelChange",function(t){return e.authenticator=t}),ss(9,NO,2,2,"mat-option",6),fs(),fs(),ds(10,"mat-form-field"),ds(11,"mat-select",7),xs("ngModelChange",function(t){return e.entity=t}),ss(12,FO,1,0,"uds-mat-select-search",8),ss(13,VO,2,2,"mat-option",6),fs(),fs(),ds(14,"mat-form-field"),ds(15,"mat-select",7),xs("ngModelChange",function(t){return e.permission=t}),ss(16,zO,2,2,"mat-option",6),fs(),fs(),fs(),fs(),ds(17,"mat-dialog-actions"),ds(18,"button",9),ds(19,"uds-translate"),$s(20,"Cancel"),fs(),fs(),ds(21,"button",10),xs("click",function(){return e.save()}),ds(22,"uds-translate"),$s(23,"Ok"),fs(),fs(),fs()),2&t){var n=ls(4);Eo(1),cs("ngIf","user"===e.data.type)("ngIfElse",n),Eo(1),cs("innerHTML",e.data.item.name,Ir),Eo(6),cs("placeholder",e.getFieldLabel("auth"))("ngModel",e.authenticator),Eo(1),cs("ngForOf",e.authenticators),Eo(2),cs("placeholder",e.getFieldLabel(e.data.type))("ngModel",e.entity),Eo(1),cs("ngIf",e.entities.length>10),Eo(1),cs("ngForOf",e.filteredEntities()),Eo(2),cs("placeholder",e.getFieldLabel("perm"))("ngModel",e.permission),Eo(1),cs("ngForOf",e.permissions)}},directives:[FS,Dh,VS,dD,RD,zC,pA,Ih,zS,XS,NS,$S,vS,PO],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function HO(t,e){if(1&t){var n=ys();ds(0,"div",11),ds(1,"div",12),$s(2),fs(),ds(3,"div",13),$s(4),ds(5,"a",14),xs("click",function(){var t=en(n).$implicit;return Ms(2).revokePermission(t)}),ds(6,"i",15),$s(7,"close"),fs(),fs(),fs(),fs()}if(2&t){var i=e.$implicit;Eo(2),tl(" ",i.entity_name,"@",i.auth_name," "),Eo(2),Js(" ",i.perm_name," \xa0")}}function jO(t,e){if(1&t){var n=ys();ds(0,"div",7),ds(1,"div",8),ds(2,"div",9),xs("click",function(t){var e=en(n).$implicit;return Ms().newPermission(e),t.preventDefault()}),ds(3,"uds-translate"),$s(4,"New permission..."),fs(),fs(),ss(5,HO,8,3,"div",10),fs(),fs()}if(2&t){var i=e.$implicit;Eo(5),cs("ngForOf",i)}}var GO=function(t,e){return[t,e]},UO=function(){function t(t,e,n){this.api=t,this.dialogRef=e,this.data=n,this.userPermissions=[],this.groupPermissions=[]}return t.launch=function(e,n,i){var r=window.innerWidth<800?"90%":"60%";e.gui.dialog.open(t,{width:r,data:{rest:n,item:i},disableClose:!1})},t.prototype.ngOnInit=function(){this.reload()},t.prototype.reload=function(){var t=this;this.data.rest.getPermissions(this.data.item.id).subscribe(function(e){t.updatePermissions(e)})},t.prototype.updatePermissions=function(t){var e=this;this.userPermissions.length=0,this.groupPermissions.length=0,t.forEach(function(t){"user"===t.type?e.userPermissions.push(t):e.groupPermissions.push(t)})},t.prototype.revokePermission=function(t){var e=this;this.api.gui.yesno(django.gettext("Remove"),django.gettext("Confirm revokation of permission")+" "+t.entity_name+"@"+t.auth_name+" "+t.perm_name+"").subscribe(function(n){n&&e.data.rest.revokePermission([t.id]).subscribe(function(t){e.reload()})})},t.prototype.newPermission=function(t){var e=this,n=t===this.userPermissions?"user":"group";BO.launch(this.api,n,this.data.item).subscribe(function(t){e.data.rest.addPermission(e.data.item.id,n+"s",t.entity,t.permissision).subscribe(function(t){e.reload()})})},t.\u0275fac=function(e){return new(e||t)(us(bI),us(MS),us(TS))},t.\u0275cmp=ce({type:t,selectors:[["uds-permissions-form"]],decls:17,vars:5,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"titles"],[1,"title"],[1,"permissions"],["class","content",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","primary"],[1,"content"],[1,"perms"],[1,"perm","new",3,"click"],["class","perm",4,"ngFor","ngForOf"],[1,"perm"],[1,"owner"],[1,"permission"],[3,"click"],[1,"material-icons"]],template:function(t,e){1&t&&(ds(0,"h4",0),ds(1,"uds-translate"),$s(2,"Permissions for"),fs(),$s(3,"\xa0"),ps(4,"b",1),fs(),ds(5,"mat-dialog-content"),ds(6,"div",2),ds(7,"uds-translate",3),$s(8,"Users"),fs(),ds(9,"uds-translate",3),$s(10,"Groups"),fs(),fs(),ds(11,"div",4),ss(12,jO,6,1,"div",5),fs(),fs(),ds(13,"mat-dialog-actions"),ds(14,"button",6),ds(15,"uds-translate"),$s(16,"Ok"),fs(),fs(),fs()),2&t&&(Eo(4),cs("innerHTML",e.data.item.name,Ir),Eo(8),cs("ngForOf",Cu(2,GO,e.userPermissions,e.groupPermissions)))},directives:[FS,$S,VS,Ih,zS,XS,NS],styles:[".titles[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;margin-bottom:.4rem}.title[_ngcontent-%COMP%]{font-size:1.4rem}.permissions[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start}.perms[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:0 1px 4px 0 rgba(0,0,0,.14);margin-bottom:1rem;margin-right:1rem;padding:.5rem}.perm[_ngcontent-%COMP%]{font-family:Courier New,Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.perm[_ngcontent-%COMP%]:hover:not(.new){background-color:#333;color:#fff;cursor:default}.owner[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.new[_ngcontent-%COMP%]{color:blue;justify-content:center}.new[_ngcontent-%COMP%]:hover{color:#fff;background-color:blue;cursor:pointer}.content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}(),WO=n(9595),YO=function(t){return void 0!==t.changingThisBreaksApplicationSecurity&&(t=t.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),'"'+(t=""+t).replace('"','""')+'"'},qO=function(t){var e="";t.columns.forEach(function(t){e+=YO(t.title)+","}),e=e.slice(0,-1)+"\r\n",t.dataSource.data.forEach(function(n){t.columns.forEach(function(t){var i=n[t.name];switch(t.type){case UM.DATE:i=iT("SHORT_DATE_FORMAT",i);break;case UM.DATETIME:i=iT("SHORT_DATETIME_FORMAT",i);break;case UM.DATETIMESEC:i=iT("SHORT_DATE_FORMAT",i," H:i:s");break;case UM.TIME:i=iT("TIME_FORMAT",i)}e+=YO(i)+","}),e=e.slice(0,-1)+"\r\n"});var n=new Blob([e],{type:"text/csv"});setTimeout(function(){(0,WO.saveAs)(n,t.title+".csv")},100)},XO=function(){function t(e,n){s(this,t),this._document=n;var i=this._textarea=this._document.createElement("textarea"),r=i.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",i.setAttribute("aria-hidden","true"),i.value=e,this._document.body.appendChild(i)}return a(t,[{key:"copy",value:function(){var t=this._textarea,e=!1;try{if(t){var n=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch(gH){}return e}},{key:"destroy",value:function(){var t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}]),t}(),ZO=function(){var t=function(){function t(e){s(this,t),this._document=e}return a(t,[{key:"copy",value:function(t){var e=this.beginCopy(t),n=e.copy();return e.destroy(),n}},{key:"beginCopy",value:function(t){return new XO(t,this._document)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(rh))},t.\u0275prov=Ot({factory:function(){return new t(Fi(rh))},token:t,providedIn:"root"}),t}(),KO=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({}),t}();function $O(t,e){if(1&t&&(Dn(),ps(0,"circle",3)),2&t){var n=Ms();zs("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),os("r",n._getCircleRadius())}}function QO(t,e){if(1&t&&(Dn(),ps(0,"circle",3)),2&t){var n=Ms();zs("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),os("r",n._getCircleRadius())}}var JO=Ek(function(){return function t(e){s(this,t),this._elementRef=e}}(),"primary"),tP=new _i("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),eP=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a){var l;s(this,n),(l=e.call(this,t))._elementRef=t,l._document=r,l._diameter=100,l._value=0,l._fallbackAnimation=!1,l.mode="determinate";var u=n._diameters;return l._spinnerAnimationLabel=l._getSpinnerAnimationLabel(),u.has(r.head)||u.set(r.head,new Set([100])),l._fallbackAnimation=i.EDGE||i.TRIDENT,l._noopAnimations="NoopAnimations"===o&&!!a&&!a._forceAnimations,a&&(a.diameter&&(l.diameter=a.diameter),a.strokeWidth&&(l.strokeWidth=a.strokeWidth)),l}return a(n,[{key:"diameter",get:function(){return this._diameter},set:function(t){this._diameter=vv(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(t){this._strokeWidth=vv(t)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(t){this._value=Math.max(0,Math.min(100,vv(t)))}},{key:"ngOnInit",value:function(){var t=this._elementRef.nativeElement;this._styleRoot=cy(t)||this._document.head,this._attachStyleNode();var e="mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation");t.classList.add(e)}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var t=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(t," ").concat(t)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_attachStyleNode",value:function(){var t=this._styleRoot,e=this._diameter,i=n._diameters,r=i.get(t);if(!r||!r.has(e)){var o=this._document.createElement("style");o.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),o.textContent=this._getAnimationText(),t.appendChild(o),r||(r=new Set,i.set(t,r)),r.add(e)}}},{key:"_getAnimationText",value:function(){var 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,"".concat(.95*t)).replace(/END_VALUE/g,"".concat(.2*t)).replace(/DIAMETER/g,"".concat(this._spinnerAnimationLabel))}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}}]),n}(JO);return t.\u0275fac=function(e){return new(e||t)(us(Al),us(ry),us(rh,8),us(vk,8),us(tP))},t.\u0275cmp=ce({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(os("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),zs("width",e.diameter,"px")("height",e.diameter,"px"),Bs("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[Ya],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",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&&(Dn(),ds(0,"svg",0),ss(1,$O,1,9,"circle",1),ss(2,QO,1,7,"circle",2),fs()),2&t&&(zs("width",e.diameter,"px")("height",e.diameter,"px"),cs("ngSwitch","indeterminate"===e.mode),os("viewBox",e._getViewBox()),Eo(1),cs("ngSwitchCase",!0),Eo(1),cs("ngSwitchCase",!1))},directives:[Rh,Lh],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.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;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{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] svg{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] svg{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"],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t}(),nP=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[Tk,Wh],Tk]}),t}(),iP=["mat-menu-item",""],rP=["*"];function oP(t,e){if(1&t){var n=ys();ds(0,"div",0),xs("keydown",function(t){return en(n),Ms()._handleKeydown(t)})("click",function(){return en(n),Ms().closed.emit("click")})("@transformMenu.start",function(t){return en(n),Ms()._onAnimationStart(t)})("@transformMenu.done",function(t){return en(n),Ms()._onAnimationDone(t)}),ds(1,"div",1),Ds(2),fs(),fs()}if(2&t){var i=Ms();cs("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),os("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var aP={transformMenu:Ab("transformMenu",[Db("void",Tb({opacity:0,transform:"scale(0.8)"})),Ob("void => enter",Mb("120ms cubic-bezier(0, 0, 0.2, 1)",Tb({opacity:1,transform:"scale(1)"}))),Ob("* => void",Mb("100ms 25ms linear",Tb({opacity:0})))]),fadeInItems:Ab("fadeInItems",[Db("showing",Tb({opacity:1})),Ob("void => *",[Tb({opacity:0}),Mb("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},sP=new _i("MatMenuContent"),lP=function(){var t=function(){function t(e,n,i,r,o,a,l){s(this,t),this._template=e,this._componentFactoryResolver=n,this._appRef=i,this._injector=r,this._viewContainerRef=o,this._document=a,this._changeDetectorRef=l,this._attached=new U}return a(t,[{key:"attach",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._portal||(this._portal=new Ay(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Ty(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));var e=this._template.elementRef.nativeElement;e.parentNode.insertBefore(this._outlet.outletElement,e),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,t),this._attached.next()}},{key:"detach",value:function(){this._portal.isAttached&&this._portal.detach()}},{key:"ngOnDestroy",value:function(){this._outlet&&this._outlet.dispose()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(iu),us(xl),us(Wc),us(Ua),us(uu),us(rh),us(Ql))},t.\u0275dir=me({type:t,selectors:[["ng-template","matMenuContent",""]],features:[yl([{provide:sP,useExisting:t}])]}),t}(),uP=new _i("MAT_MENU_PANEL"),cP=Ok(Dk(function(){return function t(){s(this,t)}}())),hP=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this))._elementRef=t,a._focusMonitor=r,a._parentMenu=o,a.role="menuitem",a._hovered=new U,a._focused=new U,a._highlighted=!1,a._triggersSubmenu=!1,o&&o.addItem&&o.addItem(d(a)),a}return a(n,[{key:"focus",value:function(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var t,e,n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons"),r=0;r0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe(Lf(1)).subscribe(function(){return t._focusFirstItem(e)}):this._focusFirstItem(e)}},{key:"_focusFirstItem",value:function(t){var e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(t){var e=this,n=Math.min(this._baseElevation+t,24),i="".concat(this._elevationPrefix).concat(n),r=Object.keys(this._classList).find(function(t){return t.startsWith(e._elevationPrefix)});r&&r!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[i]=!0,this._previousElevation=i)}},{key:"setPositionClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(t){this._animationDone.next(t),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var t=this;this._allItems.changes.pipe(Vf(this._allItems)).subscribe(function(e){t._directDescendantItems.reset(e.filter(function(e){return e._parentMenu===t})),t._directDescendantItems.notifyOnChanges()})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Al),us(xc),us(dP))},t.\u0275dir=me({type:t,contentQueries:function(t,e,n){var i;1&t&&(Zu(n,sP,5),Zu(n,hP,5),Zu(n,hP,4)),2&t&&(qu(i=Ku())&&(e.lazyContent=i.first),qu(i=Ku())&&(e._allItems=i),qu(i=Ku())&&(e.items=i))},viewQuery:function(t,e){var n;1&t&&Xu(iu,5),2&t&&qu(n=Ku())&&(e.templateRef=n.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t}(),gP=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,t,i,r))._elevationPrefix="mat-elevation-z",o._baseElevation=4,o}return n}(pP);return t.\u0275fac=function(e){return new(e||t)(us(Al),us(xc),us(dP))},t.\u0275cmp=ce({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&os("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[yl([{provide:uP,useExisting:t}]),Ya],ngContentSelectors:rP,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(Ts(),ss(0,oP,3,6,"ng-template"))},directives:[Ah],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[aP.transformMenu,aP.fadeInItems]},changeDetection:0}),t}(),mP=new _i("mat-menu-scroll-strategy"),vP={provide:mP,deps:[__],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},yP=ly({passive:!0}),_P=function(){var t=function(){function t(e,n,i,r,o,a,l,u){var c=this;s(this,t),this._overlay=e,this._element=n,this._viewContainerRef=i,this._menuItemInstance=a,this._dir=l,this._focusMonitor=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=M.EMPTY,this._hoverSubscription=M.EMPTY,this._menuCloseSubscription=M.EMPTY,this._handleTouchStart=function(t){ib(t)||(c._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Lu,this.onMenuOpen=this.menuOpened,this.menuClosed=new Lu,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=o instanceof pP?o:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,yP),a&&(a._triggersSubmenu=this.triggersSubmenu())}return a(t,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(t){this.menu=t}},{key:"menu",get:function(){return this._menu},set:function(t){var e=this;t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(function(t){e._destroyMenu(t),"click"!==t&&"tab"!==t||!e._parentMaterialMenu||e._parentMaterialMenu.closed.emit(t)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,yP),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var t=this;if(!this._menuOpen){this._checkMenu();var e=this._createOverlay(),n=e.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return t.closeMenu()}),this._initMenu(),this.menu instanceof pP&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}},{key:"updatePosition",value:function(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}},{key:"_destroyMenu",value:function(t){var e=this;if(this._overlayRef&&this.menuOpen){var n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,n instanceof pP?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(Rd(function(t){return"void"===t.toState}),Lf(1),qv(n.lazyContent._attached)).subscribe({next:function(){return n.lazyContent.detach()},complete:function(){return e._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n.lazyContent&&n.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var t=0,e=this.menu.parentMenu;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}},{key:"_setIsMenuOpen",value:function(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new Jy({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(t){var e=this;this.menu.setPositionClasses&&t.positionChanges.subscribe(function(t){e.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(t){var e=y("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=e[0],i=e[1],r=y("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),o=r[0],a=r[1],s=o,l=a,u=n,c=i,h=0;this.triggersSubmenu()?(c=n="before"===this.menu.xPosition?"start":"end",i=u="end"===n?"start":"end",h="bottom"===o?8:-8):this.menu.overlapTrigger||(s="top"===o?"bottom":"top",l="top"===a?"bottom":"top"),t.withPositions([{originX:n,originY:s,overlayX:u,overlayY:o,offsetY:h},{originX:i,originY:s,overlayX:c,overlayY:o,offsetY:h},{originX:n,originY:l,overlayX:u,overlayY:a,offsetY:-h},{originX:i,originY:l,overlayX:c,overlayY:a,offsetY:-h}])}},{key:"_menuClosingActions",value:function(){var t=this,e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return dt(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:Od(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Rd(function(e){return e!==t._menuItemInstance}),Rd(function(){return t._menuOpen})):Od(),n)}},{key:"_handleMousedown",value:function(t){nb(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;e!==Ly&&e!==Fy||(this._openedBy="keyboard"),this.triggersSubmenu()&&(e===jy&&"ltr"===this.dir||e===By&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var t=this;this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Rd(function(e){return e===t._menuItemInstance&&!e.disabled}),mO(0,Lv)).subscribe(function(){t._openedBy="mouse",t.menu instanceof pP&&t.menu._isAnimating?t.menu._animationDone.pipe(Lf(1),mO(0,Lv),qv(t._parentMaterialMenu._hovered())).subscribe(function(){return t.openMenu()}):t.openMenu()}))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new Ay(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(__),us(Al),us(uu),us(mP),us(uP,8),us(hP,10),us(fy,8),us(gb))},t.\u0275dir=me({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&xs("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&os("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t}(),bP=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[vP],imports:[Tk]}),t}(),wP=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[vP],imports:[[Wh,Tk,aS,C_,bP],xy,Tk,bP]}),t}(),xP=function(){var t=function(){function t(){s(this,t),this._vertical=!1,this._inset=!1}return a(t,[{key:"vertical",get:function(){return this._vertical},set:function(t){this._vertical=mv(t)}},{key:"inset",get:function(){return this._inset},set:function(t){this._inset=mv(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(os("aria-orientation",e.vertical?"vertical":"horizontal"),Bs("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),t}(),kP=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[Tk],Tk]}),t}(),SP=function(){function t(){}return t.prototype.transform=function(t,e){return t.sort(void 0===e?function(t,e){return t>e?1:-1}:function(t,n){return t[e]>n[e]?1:-1})},t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ve({name:"sort",type:t,pure:!0}),t}(),CP=["trigger"];function AP(t,e){1&t&&ps(0,"img",36),2&t&&cs("src",Ms().icon,Tr)}function MP(t,e){if(1&t){var n=ys();ds(0,"button",46),xs("click",function(){var t=en(n).$implicit,e=Ms(5);return e.newAction.emit({param:t,table:e})}),fs()}if(2&t){var i=e.$implicit,r=Ms(5);cs("innerHTML",r.api.safeString(r.api.gui.icon(i.icon)+i.name),Ir)}}function IP(t,e){if(1&t&&(gs(0),ds(1,"button",42),$s(2),fs(),ds(3,"mat-menu",43,44),ss(5,MP,1,1,"button",45),Tu(6,"sort"),fs(),ms()),2&t){var n=e.$implicit,i=ls(4);Eo(1),cs("matMenuTriggerFor",i),Eo(1),Qs(n.key),Eo(1),cs("overlapTrigger",!1),Eo(2),cs("ngForOf",Eu(6,4,n.value,"name"))}}function TP(t,e){if(1&t&&(gs(0),ds(1,"mat-menu",37,38),ss(3,IP,7,7,"ng-container",39),Tu(4,"keyvalue"),fs(),ds(5,"a",40),ds(6,"i",17),$s(7,"insert_drive_file"),fs(),ds(8,"span",41),ds(9,"uds-translate"),$s(10,"New"),fs(),fs(),ds(11,"i",17),$s(12,"arrow_drop_down"),fs(),fs(),ms()),2&t){var n=ls(2),i=Ms(3);Eo(1),cs("overlapTrigger",!1),Eo(2),cs("ngForOf",Du(4,3,i.grpTypes)),Eo(2),cs("matMenuTriggerFor",n)}}function DP(t,e){if(1&t){var n=ys();ds(0,"button",46),xs("click",function(){var t=en(n).$implicit,e=Ms(4);return e.newAction.emit({param:t,table:e})}),fs()}if(2&t){var i=e.$implicit,r=Ms(4);cs("innerHTML",r.api.safeString(r.api.gui.icon(i.icon)+i.name),Ir)}}function EP(t,e){if(1&t&&(gs(0),ds(1,"mat-menu",37,38),ss(3,DP,1,1,"button",45),Tu(4,"sort"),fs(),ds(5,"a",40),ds(6,"i",17),$s(7,"insert_drive_file"),fs(),ds(8,"span",41),ds(9,"uds-translate"),$s(10,"New"),fs(),fs(),ds(11,"i",17),$s(12,"arrow_drop_down"),fs(),fs(),ms()),2&t){var n=ls(2),i=Ms(3);Eo(1),cs("overlapTrigger",!1),Eo(2),cs("ngForOf",Eu(4,3,i.oTypes,"name")),Eo(2),cs("matMenuTriggerFor",n)}}function OP(t,e){if(1&t&&(gs(0),ss(1,TP,13,5,"ng-container",8),ss(2,EP,13,6,"ng-container",8),ms()),2&t){var n=Ms(2);Eo(1),cs("ngIf",n.newGrouped),Eo(1),cs("ngIf",!n.newGrouped)}}function PP(t,e){if(1&t){var n=ys();gs(0),ds(1,"a",47),xs("click",function(){en(n);var t=Ms(2);return t.newAction.emit({param:void 0,table:t})}),ds(2,"i",17),$s(3,"insert_drive_file"),fs(),ds(4,"span",41),ds(5,"uds-translate"),$s(6,"New"),fs(),fs(),fs(),ms()}}function RP(t,e){if(1&t&&(gs(0),ss(1,OP,3,2,"ng-container",8),ss(2,PP,7,0,"ng-container",8),ms()),2&t){var n=Ms();Eo(1),cs("ngIf",void 0!==n.oTypes&&0!==n.oTypes.length),Eo(1),cs("ngIf",void 0!==n.oTypes&&0===n.oTypes.length)}}function LP(t,e){if(1&t){var n=ys();gs(0),ds(1,"a",48),xs("click",function(){en(n);var t=Ms();return t.emitIfSelection(t.editAction)}),ds(2,"i",17),$s(3,"edit"),fs(),ds(4,"span",41),ds(5,"uds-translate"),$s(6,"Edit"),fs(),fs(),fs(),ms()}if(2&t){var i=Ms();Eo(1),cs("disabled",1!==i.selection.selected.length)}}function NP(t,e){if(1&t){var n=ys();gs(0),ds(1,"a",48),xs("click",function(){return en(n),Ms().permissions()}),ds(2,"i",17),$s(3,"perm_identity"),fs(),ds(4,"span",41),ds(5,"uds-translate"),$s(6,"Permissions"),fs(),fs(),fs(),ms()}if(2&t){var i=Ms();Eo(1),cs("disabled",1!==i.selection.selected.length)}}function FP(t,e){if(1&t){var n=ys();ds(0,"a",50),xs("click",function(){var t=en(n).$implicit;return Ms(2).emitCustom(t)}),fs()}if(2&t){var i=e.$implicit;cs("disabled",Ms(2).isCustomDisabled(i))("innerHTML",i.html,Ir)}}function VP(t,e){if(1&t&&(gs(0),ss(1,FP,1,2,"a",49),ms()),2&t){var n=Ms();Eo(1),cs("ngForOf",n.getcustomButtons())}}function zP(t,e){if(1&t){var n=ys();gs(0),ds(1,"a",51),xs("click",function(){return en(n),Ms().export()}),ds(2,"i",17),$s(3,"import_export"),fs(),ds(4,"span",41),ds(5,"uds-translate"),$s(6,"Export"),fs(),fs(),fs(),ms()}}function BP(t,e){if(1&t){var n=ys();gs(0),ds(1,"a",52),xs("click",function(){en(n);var t=Ms();return t.emitIfSelection(t.deleteAction,!0)}),ds(2,"i",17),$s(3,"delete_forever"),fs(),ds(4,"span",41),ds(5,"uds-translate"),$s(6,"Delete"),fs(),fs(),fs(),ms()}if(2&t){var i=Ms();Eo(1),cs("disabled",i.selection.isEmpty())}}function HP(t,e){if(1&t){var n=ys();ds(0,"button",53),xs("click",function(){en(n);var t=Ms();return t.filterText="",t.applyFilter()}),ds(1,"i",17),$s(2,"close"),fs(),fs()}}function jP(t,e){1&t&&ps(0,"mat-header-cell")}function GP(t,e){1&t&&(ds(0,"i",17),$s(1,"check_box"),fs())}function UP(t,e){1&t&&(ds(0,"i",17),$s(1,"check_box_outline_blank"),fs())}function WP(t,e){if(1&t){var n=ys();ds(0,"mat-cell",56),xs("click",function(t){var e=en(n).$implicit;return Ms(2).clickRow(e,t)}),ss(1,GP,2,0,"i",57),ss(2,UP,2,0,"ng-template",null,58,tc),fs()}if(2&t){var i=e.$implicit,r=ls(3),o=Ms(2);Eo(1),cs("ngIf",o.selection.isSelected(i))("ngIfElse",r)}}function YP(t,e){1&t&&(gs(0,54),ss(1,jP,1,0,"mat-header-cell",22),ss(2,WP,4,2,"mat-cell",55),ms())}function qP(t,e){1&t&&ps(0,"mat-header-cell")}function XP(t,e){if(1&t){var n=ys();ds(0,"mat-cell"),ds(1,"div",59),xs("click",function(t){var e=en(n).$implicit,i=Ms();return i.detailAction.emit({param:e,table:i}),t.stopPropagation()}),ds(2,"i",17),$s(3,"subdirectory_arrow_right"),fs(),fs(),fs()}}function ZP(t,e){if(1&t&&(ds(0,"mat-header-cell",63),$s(1),fs()),2&t){var n=Ms().$implicit;Eo(1),Qs(n.title)}}function KP(t,e){if(1&t){var n=ys();ds(0,"mat-cell",64),xs("click",function(t){var e=en(n).$implicit;return Ms(2).clickRow(e,t)})("contextmenu",function(t){var e=en(n).$implicit,i=Ms().$implicit;return Ms().onContextMenu(e,i,t)}),ps(1,"div",65),fs()}if(2&t){var i=e.$implicit,r=Ms().$implicit,o=Ms();Eo(1),cs("innerHtml",o.getRowColumn(i,r),Ir)}}function $P(t,e){1&t&&(gs(0,60),ss(1,ZP,2,1,"mat-header-cell",61),ss(2,KP,2,1,"mat-cell",62),ms()),2&t&&Es("matColumnDef",e.$implicit.name)}function QP(t,e){1&t&&ps(0,"mat-header-row")}function JP(t,e){if(1&t&&ps(0,"mat-row",66),2&t){var n=e.$implicit;cs("ngClass",Ms().rowClass(n))}}function tR(t,e){if(1&t&&(ds(0,"div",67),$s(1),ds(2,"uds-translate"),$s(3,"Selected items"),fs(),fs()),2&t){var n=Ms();Eo(1),Js(" ",n.selection.selected.length," ")}}function eR(t,e){if(1&t){var n=ys();ds(0,"button",71),xs("click",function(){return en(n),Ms(2).copyToClipboard()}),ds(1,"i",72),$s(2,"content_copy"),fs(),ds(3,"uds-translate"),$s(4,"Copy"),fs(),fs()}}function nR(t,e){if(1&t){var n=ys();ds(0,"button",71),xs("click",function(){en(n);var t=Ms().item,e=Ms();return e.detailAction.emit({param:t,table:e})}),ds(1,"i",72),$s(2,"subdirectory_arrow_right"),fs(),ds(3,"uds-translate"),$s(4,"Detail"),fs(),fs()}}function iR(t,e){if(1&t){var n=ys();ds(0,"button",71),xs("click",function(){en(n);var t=Ms(2);return t.emitIfSelection(t.editAction)}),ds(1,"i",72),$s(2,"edit"),fs(),ds(3,"uds-translate"),$s(4,"Edit"),fs(),fs()}}function rR(t,e){if(1&t){var n=ys();ds(0,"button",71),xs("click",function(){return en(n),Ms(2).permissions()}),ds(1,"i",72),$s(2,"perm_identity"),fs(),ds(3,"uds-translate"),$s(4,"Permissions"),fs(),fs()}}function oR(t,e){if(1&t){var n=ys();ds(0,"button",73),xs("click",function(){var t=en(n).$implicit;return Ms(2).emitCustom(t)}),fs()}if(2&t){var i=e.$implicit;cs("disabled",Ms(2).isCustomDisabled(i))("innerHTML",i.html,Ir)}}function aR(t,e){if(1&t){var n=ys();ds(0,"button",74),xs("click",function(){en(n);var t=Ms(2);return t.emitIfSelection(t.deleteAction)}),ds(1,"i",72),$s(2,"delete_forever"),fs(),ds(3,"uds-translate"),$s(4,"Delete"),fs(),fs()}}function sR(t,e){if(1&t){var n=ys();ds(0,"button",73),xs("click",function(){var t=en(n).$implicit;return Ms(3).emitCustom(t)}),fs()}if(2&t){var i=e.$implicit;cs("disabled",Ms(3).isCustomDisabled(i))("innerHTML",i.html,Ir)}}function lR(t,e){if(1&t&&(gs(0),ps(1,"mat-divider"),ss(2,sR,1,2,"button",69),ms()),2&t){var n=Ms(2);Eo(2),cs("ngForOf",n.getCustomAccelerators())}}function uR(t,e){if(1&t&&(ss(0,eR,5,0,"button",68),ss(1,nR,5,0,"button",68),ss(2,iR,5,0,"button",68),ss(3,rR,5,0,"button",68),ss(4,oR,1,2,"button",69),ss(5,aR,5,0,"button",70),ss(6,lR,3,1,"ng-container",8)),2&t){var n=Ms();cs("ngIf",!0===n.allowCopy),Eo(1),cs("ngIf",n.detailAction.observers.length>0),Eo(1),cs("ngIf",n.editAction.observers.length>0),Eo(1),cs("ngIf",!0===n.hasPermissions),Eo(1),cs("ngForOf",n.getCustomMenu()),Eo(1),cs("ngIf",n.deleteAction.observers.length>0),Eo(1),cs("ngIf",n.hasAccelerators)}}var cR=function(){return[5,10,25,100,1e3]},hR=function(){function t(t,e){this.api=t,this.clipboard=e,this.pageSize=10,this.newGrouped=!1,this.allowCopy=!0,this.loaded=new Lu,this.rowSelected=new Lu,this.newAction=new Lu,this.editAction=new Lu,this.deleteAction=new Lu,this.customButtonAction=new Lu,this.detailAction=new Lu,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.rowStyleInfo=null,this.dataSource=new pO([]),this.firstLoad=!0,this.loading=!1,this.lastClickInfo={time:0,x:-1e4,y:-1e4},this.clipValue="",this.contextMenuPosition={x:"0px",y:"0px"},this.filterText=""}return t.prototype.ngOnInit=function(){var t=this;this.hasCustomButtons=void 0!==this.customButtons&&0!==this.customButtons.length&&0!==this.customButtonAction.observers.length&&this.getcustomButtons().length>0,this.hasAccelerators=this.getCustomAccelerators().length>0,this.hasButtons=this.hasCustomButtons||0!==this.detailAction.observers.length||0!==this.editAction.observers.length||this.hasPermissions||0!==this.deleteAction.observers.length,this.hasActions=this.hasButtons||void 0!==this.customButtons&&this.customButtons.length>0,this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sortingDataAccessor=function(t,e){if(!(e in t))return"";var n=t[e];return"number"==typeof n?n:"string"==typeof n?n.toLocaleLowerCase():(null===n&&(n=7226578800),n.changingThisBreaksApplicationSecurity&&(n=n.changingThisBreaksApplicationSecurity),(""+n).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase())},this.dataSource.filterPredicate=function(e,n){try{t.columns.forEach(function(t){if((""+e[t.name]).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase().includes(n))throw Error()})}catch(i){return!0}return!1},this.dataSource.sort.active=this.api.getFromStorage(this.tableId+"sort-column")||"name",this.dataSource.sort.direction=this.api.getFromStorage(this.tableId+"sort-direction")||"asc",this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.selection=new yy(!0===this.multiSelect,[]);var e=this.rest.permision();0==(e&CI.MANAGEMENT)&&(this.newAction.observers.length=0,this.editAction.observers.length=0,this.deleteAction.observers.length=0,this.customButtonAction.observers.length=0),e!==CI.ALL&&(this.hasPermissions=!1),void 0!==this.icon&&(this.icon=this.api.staticURL("admin/img/icons/"+this.icon+".png")),this.rest.types().subscribe(function(e){t.rest.tableInfo().subscribe(function(n){t.initialize(n,e)})})},t.prototype.initialize=function(t,e){var n=this;this.oTypes=e,this.types=new Map,this.grpTypes=new Map,e.forEach(function(t){n.types.set(t.type,t),void 0!==t.group&&(n.grpTypes.has(t.group)||n.grpTypes.set(t.group,[]),n.grpTypes.get(t.group).push(t))}),this.rowStyleInfo=void 0!==t["row-style"]&&void 0!==t["row-style"].field?t["row-style"]:null,this.title=t.title,this.subtitle=t.subtitle||"",this.hasButtons&&this.displayedColumns.push("selection-column");var i=[];t.fields.forEach(function(t){for(var e in t)if(t.hasOwnProperty(e)){var r=t[e];i.push({name:e,title:r.title,type:void 0===r.type?UM.ALPHANUMERIC:r.type,dict:r.dict}),(void 0===r.visible||r.visible)&&n.displayedColumns.push(e)}}),this.columns=i,this.detailAction.observers.length>0&&this.displayedColumns.push("detail-column"),this.overview()},t.prototype.overview=function(){var t=this;this.loading||(this.selection.clear(),this.dataSource.data=[],this.loading=!0,this.rest.overview().subscribe(function(e){t.loading=!1,void 0!==t.onItem&&e.forEach(function(e){t.onItem(e)}),t.dataSource.data=e,t.loaded.emit({param:t.firstLoad,table:t}),t.firstLoad=!1},function(e){t.loading=!1}))},t.prototype.getcustomButtons=function(){return this.customButtons?this.customButtons.filter(function(t){return t.type!==WM.ONLY_MENU&&t.type!==WM.ACCELERATOR}):[]},t.prototype.getCustomMenu=function(){return this.customButtons?this.customButtons.filter(function(t){return t.type!==WM.ACCELERATOR}):[]},t.prototype.getCustomAccelerators=function(){return this.customButtons?this.customButtons.filter(function(t){return t.type===WM.ACCELERATOR}):[]},t.prototype.getRowColumn=function(t,e){var n=t[e.name];switch(e.type){case UM.IMAGE:return this.api.safeString(this.api.gui.icon(n,"48px"));case UM.DATE:n=iT("SHORT_DATE_FORMAT",n);break;case UM.DATETIME:n=iT("SHORT_DATETIME_FORMAT",n);break;case UM.TIME:n=iT("TIME_FORMAT",n);break;case UM.DATETIMESEC:n=iT("SHORT_DATE_FORMAT",n," H:i:s");break;case UM.ICON:try{n=this.api.gui.icon(this.types.get(t.type).icon)+n}catch(i){}return this.api.safeString(n);case UM.CALLBACK:break;case UM.DICTIONARY:try{n=e.dict[n]}catch(i){n=""}}return n},t.prototype.applyFilter=function(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()},t.prototype.sortChanged=function(t){this.api.putOnStorage(this.tableId+"sort-column",t.active),this.api.putOnStorage(this.tableId+"sort-direction",t.direction)},t.prototype.copyToClipboard=function(){this.clipboard.copy(this.clipValue||"")},t.prototype.rowClass=function(t){var e=[];return this.selection.isSelected(t)&&e.push("selected"),null!==this.rowStyleInfo&&e.push(this.rowStyleInfo.prefix+t[this.rowStyleInfo.field]),e},t.prototype.emitIfSelection=function(t,e){void 0===e&&(e=!1);var n=this.selection.selected.length;n>0&&(!0!==e&&1!==n||t.emit({table:this,param:n}))},t.prototype.isCustomDisabled=function(t){switch(t.type){case void 0:case WM.SINGLE_SELECT:return 1!==this.selection.selected.length||!0===t.disabled;case WM.MULTI_SELECT:return this.selection.isEmpty()||!0===t.disabled;default:return!1}},t.prototype.emitCustom=function(t){(this.selection.selected.length||t.type===WM.ALWAYS)&&(t.type===WM.ACCELERATOR?this.api.navigation.goto(t.id,this.selection.selected[0],t.acceleratorProperties):this.customButtonAction.emit({param:t,table:this}))},t.prototype.clickRow=function(t,e){var n=(new Date).getTime();if((this.detailAction.observers.length||this.editAction.observers.length)&&Math.abs(this.lastClickInfo.x-e.x)<16&&Math.abs(this.lastClickInfo.y-e.y)<16&&n-this.lastClickInfo.time<250)return this.selection.clear(),this.selection.select(t),void(this.detailAction.observers.length?this.detailAction.emit({param:t,table:this}):this.emitIfSelection(this.editAction,!1));this.lastClickInfo={time:n,x:e.x,y:e.y},this.doSelect(t,e)},t.prototype.doSelect=function(t,e){if(e.ctrlKey)this.lastSel=t,this.selection.toggle(t);else if(e.shiftKey){if(this.selection.isEmpty())this.selection.toggle(t);else if(this.selection.clear(),this.lastSel!==t)for(var n=!1,i=0,r=this.dataSource.sortData(this.dataSource.data,this.dataSource.sort);i/,"")),this.clipValue=""+i,this.hasActions&&(this.selection.clear(),this.selection.select(t),this.contextMenuPosition.x=n.clientX+"px",this.contextMenuPosition.y=n.clientY+"px",this.contextMenu.menuData={item:t},this.contextMenu.openMenu())},t.prototype.selectElement=function(t,e){var n=this;this.dataSource.sortData(this.dataSource.data,this.dataSource.sort).forEach(function(i,r){if(i[t]===e){var o=Math.floor(r/n.paginator.pageSize);n.selection.select(i),n.paginator.pageIndex=o,n.paginator.page.next({pageIndex:o,pageSize:n.paginator.pageSize,length:n.paginator.length})}})},t.prototype.export=function(){qO(this)},t.prototype.permissions=function(){this.selection.selected.length&&UO.launch(this.api,this.rest,this.selection.selected[0])},t.prototype.keyDown=function(t){switch(t.keyCode){case zy:this.paginator.firstPage(),t.preventDefault();break;case Vy:this.paginator.lastPage(),t.preventDefault();break;case jy:this.paginator.nextPage(),t.preventDefault();break;case By:this.paginator.previousPage(),t.preventDefault()}},t.\u0275fac=function(e){return new(e||t)(us(bI),us(ZO))},t.\u0275cmp=ce({type:t,selectors:[["uds-table"]],viewQuery:function(t,e){if(1&t&&(Xu(CP,7),Xu(rE,7),Xu(hE,7)),2&t){var n=void 0;qu(n=Ku())&&(e.contextMenu=n.first),qu(n=Ku())&&(e.paginator=n.first),qu(n=Ku())&&(e.sort=n.first)}},inputs:{rest:"rest",onItem:"onItem",icon:"icon",multiSelect:"multiSelect",allowExport:"allowExport",hasPermissions:"hasPermissions",customButtons:"customButtons",tableId:"tableId",pageSize:"pageSize",newGrouped:"newGrouped",allowCopy:"allowCopy"},outputs:{loaded:"loaded",rowSelected:"rowSelected",newAction:"newAction",editAction:"editAction",deleteAction:"deleteAction",customButtonAction:"customButtonAction",detailAction:"detailAction"},decls:50,vars:28,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src",4,"ngIf"],[1,"card-subtitle"],[1,"card-content"],[1,"header"],[1,"buttons"],[4,"ngIf"],[1,"navigation"],[1,"filter"],["matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],[1,"material-icons"],["tabindex","0",1,"table",3,"keydown"],["matSort","",3,"dataSource","matSortChange"],["matColumnDef","selection-column",4,"ngIf"],["matColumnDef","detail-column"],[4,"matHeaderCellDef"],[4,"matCellDef"],[3,"matColumnDef",4,"ngFor","ngForOf"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[3,"hidden"],[1,"loading"],["mode","indeterminate"],[1,"footer"],["class","selection",4,"ngIf"],[2,"position","fixed",3,"matMenuTriggerFor"],["trigger","matMenuTrigger"],["contextMenu","matMenu"],["matMenuContent",""],[3,"src"],[1,"wide-menu",3,"overlapTrigger"],["newMenu","matMenu"],[4,"ngFor","ngForOf"],["mat-raised-button","","color","primary",3,"matMenuTriggerFor"],[1,"button-text"],["mat-menu-item","",3,"matMenuTriggerFor"],[3,"overlapTrigger"],["sub_menu","matMenu"],["mat-menu-item","",3,"innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"innerHTML","click"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","",3,"disabled","click"],["mat-raised-button","",3,"disabled","innerHTML","click",4,"ngFor","ngForOf"],["mat-raised-button","",3,"disabled","innerHTML","click"],["mat-raised-button","",3,"click"],["mat-raised-button","","color","warn",3,"disabled","click"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["matColumnDef","selection-column"],[3,"click",4,"matCellDef"],[3,"click"],["class","material-icons",4,"ngIf","ngIfElse"],["uncheck",""],[1,"detail-launcher",3,"click"],[3,"matColumnDef"],["mat-sort-header","",4,"matHeaderCellDef"],[3,"click","contextmenu",4,"matCellDef"],["mat-sort-header",""],[3,"click","contextmenu"],[3,"innerHtml"],[3,"ngClass"],[1,"selection"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"disabled","innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","","class","menu-warn",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","spaced"],["mat-menu-item","",3,"disabled","innerHTML","click"],["mat-menu-item","",1,"menu-warn",3,"click"]],template:function(t,e){if(1&t&&(ds(0,"div",0),ds(1,"div",1),ds(2,"div",2),ss(3,AP,1,1,"img",3),$s(4),fs(),ds(5,"div",4),$s(6),fs(),fs(),ds(7,"div",5),ds(8,"div",6),ds(9,"div",7),ss(10,RP,3,2,"ng-container",8),ss(11,LP,7,1,"ng-container",8),ss(12,NP,7,1,"ng-container",8),ss(13,VP,2,1,"ng-container",8),ss(14,zP,7,0,"ng-container",8),ss(15,BP,7,1,"ng-container",8),fs(),ds(16,"div",9),ds(17,"div",10),ds(18,"uds-translate"),$s(19,"Filter"),fs(),$s(20,"\xa0 "),ds(21,"mat-form-field"),ds(22,"input",11),xs("keyup",function(){return e.applyFilter()})("ngModelChange",function(t){return e.filterText=t}),fs(),ss(23,HP,3,0,"button",12),fs(),fs(),ds(24,"div",13),ps(25,"mat-paginator",14),fs(),ds(26,"div",15),ds(27,"a",16),xs("click",function(){return e.overview()}),ds(28,"i",17),$s(29,"autorenew"),fs(),fs(),fs(),fs(),fs(),ds(30,"div",18),xs("keydown",function(t){return e.keyDown(t)}),ds(31,"mat-table",19),xs("matSortChange",function(t){return e.sortChanged(t)}),ss(32,YP,3,0,"ng-container",20),gs(33,21),ss(34,qP,1,0,"mat-header-cell",22),ss(35,XP,4,0,"mat-cell",23),ms(),ss(36,$P,3,1,"ng-container",24),ss(37,QP,1,0,"mat-header-row",25),ss(38,JP,1,1,"mat-row",26),fs(),ds(39,"div",27),ds(40,"div",28),ps(41,"mat-progress-spinner",29),fs(),fs(),fs(),ds(42,"div",30),$s(43," \xa0 "),ss(44,tR,4,1,"div",31),fs(),fs(),ps(45,"div",32,33),ds(47,"mat-menu",null,34),ss(49,uR,7,7,"ng-template",35),fs(),fs()),2&t){var n=ls(48);Eo(3),cs("ngIf",void 0!==e.icon),Eo(1),Js(" ",e.title," "),Eo(2),Js(" ",e.subtitle," "),Eo(4),cs("ngIf",e.newAction.observers.length>0),Eo(1),cs("ngIf",e.editAction.observers.length>0),Eo(1),cs("ngIf",!0===e.hasPermissions),Eo(1),cs("ngIf",e.hasCustomButtons),Eo(1),cs("ngIf",!0===e.allowExport),Eo(1),cs("ngIf",e.deleteAction.observers.length>0),Eo(7),cs("ngModel",e.filterText),Eo(1),cs("ngIf",e.filterText),Eo(2),cs("pageSize",e.pageSize)("hidePageSize",!0)("pageSizeOptions",ku(27,cR))("showFirstLastButtons",!0),Eo(6),cs("dataSource",e.dataSource),Eo(1),cs("ngIf",e.hasButtons),Eo(4),cs("ngForOf",e.columns),Eo(1),cs("matHeaderRowDef",e.displayedColumns),Eo(1),cs("matRowDefColumns",e.displayedColumns),Eo(1),cs("hidden",!e.loading),Eo(5),cs("ngIf",e.hasButtons&&e.selection.selected.length>0),Eo(1),zs("left",e.contextMenuPosition.x)("top",e.contextMenuPosition.y),cs("matMenuTriggerFor",n)}},directives:[Dh,$S,dD,MO,dC,zC,pA,rE,ZS,nO,hE,oO,rO,iO,Ih,lO,uO,eP,_P,gP,lP,hP,XS,sD,aO,sO,vE,cO,hO,Ah,xP],pipes:[Gh,SP],styles:[".header[_ngcontent-%COMP%]{justify-content:space-between;margin:1rem 1rem 0}.buttons[_ngcontent-%COMP%], .header[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.buttons[_ngcontent-%COMP%]{flex-direction:row;align-items:center}.buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:1em;margin-bottom:1em}.buttons[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin-right:.4rem}.buttons[_ngcontent-%COMP%] .mat-raised-button[_ngcontent-%COMP%]:hover:not([disabled]){background-color:#000;color:#fff}button.mat-menu-item[_ngcontent-%COMP%]{height:32px;line-height:32px}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0 1rem;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.footer[_ngcontent-%COMP%]{margin:1em;display:flex;justify-content:flex-end}mat-cell[_ngcontent-%COMP%]:first-of-type, mat-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:.5rem}mat-row[_ngcontent-%COMP%]:hover{background-color:#a0b0d0;cursor:pointer}mat-table[_ngcontent-%COMP%]{width:100%;font-weight:300}.mat-column-detail-column[_ngcontent-%COMP%]{max-width:1.5rem;justify-content:center;color:#000!important;padding-right:.5rem}.detail-launcher[_ngcontent-%COMP%]{display:none}.mat-row[_ngcontent-%COMP%]:hover .detail-launcher[_ngcontent-%COMP%]{display:block}.mat-column-selection-column[_ngcontent-%COMP%]{max-width:2rem;justify-content:center;color:#000!important}.menu-warn[_ngcontent-%COMP%]{color:red}.menu-link[_ngcontent-%COMP%]{color:blue}.loading[_ngcontent-%COMP%]{margin-top:2rem;margin-bottom:2rem;display:flex;justify-content:center} .mat-menu-panel{min-height:48px} .mat-paginator-range-label{min-width:6em}"]}),t}(),dR='pause'+django.gettext("Maintenance")+"",fR='pause'+django.gettext("Exit maintenance mode")+"",pR='pause'+django.gettext("Enter maintenance mode")+"",gR=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.cButtons=[{id:"maintenance",html:dR,type:WM.SINGLE_SELECT}]}return t.prototype.ngOnInit=function(){},Object.defineProperty(t.prototype,"customButtons",{get:function(){return this.api.user.isAdmin?this.cButtons:[]},enumerable:!1,configurable:!0}),t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New provider"),!0)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit provider"),!0)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete provider"))},t.prototype.onMaintenance=function(t){var e=this,n=t.table.selection.selected[0],i=n.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.yesno(django.gettext("Maintenance mode for")+" "+n.name,i).subscribe(function(i){i&&e.rest.providers.maintenance(n.id).subscribe(function(){t.table.overview()})})},t.prototype.onRowSelect=function(t){var e=t.table;this.customButtons[0].html=e.selection.selected.length>1||0===e.selection.selected.length?dR:e.selection.selected[0].maintenance_mode?fR:pR},t.prototype.onDetail=function(t){this.api.navigation.gotoService(t.param.id)},t.prototype.processElement=function(t){t.maintenance_state=t.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("provider"))},t.\u0275fac=function(e){return new(e||t)(us(gg),us(WI),us(bI))},t.\u0275cmp=ce({type:t,selectors:[["uds-services"]],decls:1,vars:7,consts:[["tableId","service-providers","icon","providers",3,"rest","onItem","multiSelect","allowExport","hasPermissions","customButtons","pageSize","customButtonAction","newAction","editAction","deleteAction","rowSelected","detailAction","loaded"]],template:function(t,e){1&t&&(ds(0,"uds-table",0),xs("customButtonAction",function(t){return e.onMaintenance(t)})("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("rowSelected",function(t){return e.onRowSelect(t)})("detailAction",function(t){return e.onDetail(t)})("loaded",function(t){return e.onLoad(t)}),fs()),2&t&&cs("rest",e.rest.providers)("onItem",e.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)},directives:[hR],styles:[".row-maintenance-true>mat-cell{color:orange!important} .mat-column-maintenance_state, .mat-column-services_count, .mat-column-user_services_count{max-width:7rem;justify-content:center}"]}),t}(),mR=function(){function t(t,e,n,i){this.title=t,this.data=e,this.columns=n,this.id=i,this.columnsDefinition=Array.from(n,function(t){var e={};return e[t.field]={visible:!0,title:t.title,type:void 0===t.type?UM.ALPHANUMERIC:t.type},e})}return t.prototype.get=function(t){return If},t.prototype.getLogs=function(t){return If},t.prototype.overview=function(t){return"function"==typeof this.data?this.data():Od([])},t.prototype.summary=function(t){return this.overview()},t.prototype.put=function(t,e){return If},t.prototype.create=function(t){return If},t.prototype.save=function(t,e){return If},t.prototype.test=function(t,e){return If},t.prototype.delete=function(t){return If},t.prototype.permision=function(){return CI.ALL},t.prototype.getPermissions=function(t){return If},t.prototype.addPermission=function(t,e,n,i){return If},t.prototype.revokePermission=function(t){return If},t.prototype.types=function(){return Od([])},t.prototype.gui=function(t){return If},t.prototype.callback=function(t,e){return If},t.prototype.tableInfo=function(){return Od({fields:this.columnsDefinition,title:this.title})},t.prototype.detail=function(t,e){return null},t.prototype.invoke=function(t,e){return If},t}();function vR(t,e){if(1&t){var n=ys();ds(0,"button",24),xs("click",function(){en(n);var t=Ms();return t.filterText="",t.applyFilter()}),ds(1,"i",8),$s(2,"close"),fs(),fs()}}function yR(t,e){if(1&t&&(ds(0,"mat-header-cell",28),$s(1),fs()),2&t){var n=Ms().$implicit;Eo(1),Qs(n)}}function _R(t,e){if(1&t&&(ds(0,"mat-cell"),ps(1,"div",29),fs()),2&t){var n=e.$implicit,i=Ms().$implicit,r=Ms();Eo(1),cs("innerHtml",r.getRowColumn(n,i),Ir)}}function bR(t,e){1&t&&(gs(0,25),ss(1,yR,2,1,"mat-header-cell",26),ss(2,_R,2,1,"mat-cell",27),ms()),2&t&&cs("matColumnDef",e.$implicit)}function wR(t,e){1&t&&ps(0,"mat-header-row")}function xR(t,e){if(1&t&&ps(0,"mat-row",30),2&t){var n=e.$implicit;cs("ngClass",Ms().rowClass(n))}}var kR=function(){return[5,10,25,100,1e3]},SR=function(){function t(t){this.api=t,this.pageSize=10,this.filterText="",this.title="Logs",this.displayedColumns=["date","level","source","message"],this.columns=[],this.dataSource=new pO([]),this.selection=new yy}return t.prototype.ngOnInit=function(){var t=this;this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sort.active=this.api.getFromStorage("logs-sort-column")||"date",this.dataSource.sort.direction=this.api.getFromStorage("logs-sort-direction")||"desc",this.displayedColumns.forEach(function(e){t.columns.push({name:e,title:e,type:"date"===e?UM.DATETIMESEC:UM.ALPHANUMERIC})}),this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.overview()},t.prototype.overview=function(){var t=this;this.rest.getLogs(this.itemId).subscribe(function(e){t.dataSource.data=e})},t.prototype.selectElement=function(t,e){},t.prototype.getRowColumn=function(t,e){var n=t[e];return"date"===e?n=iT("SHORT_DATE_FORMAT",n," H:i:s"):"level"===e&&(n={1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"}[n]||"OTHER"),n},t.prototype.rowClass=function(t){return["level-"+t.level]},t.prototype.applyFilter=function(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()},t.prototype.sortChanged=function(t){this.api.putOnStorage("logs-sort-column",t.active),this.api.putOnStorage("logs-sort-direction",t.direction)},t.prototype.export=function(){qO(this)},t.prototype.keyDown=function(t){switch(t.keyCode){case zy:this.paginator.firstPage(),t.preventDefault();break;case Vy:this.paginator.lastPage(),t.preventDefault();break;case jy:this.paginator.nextPage(),t.preventDefault();break;case By:this.paginator.previousPage(),t.preventDefault()}},t.\u0275fac=function(e){return new(e||t)(us(bI))},t.\u0275cmp=ce({type:t,selectors:[["uds-logs-table"]],viewQuery:function(t,e){if(1&t&&(Xu(rE,7),Xu(hE,7)),2&t){var n=void 0;qu(n=Ku())&&(e.paginator=n.first),qu(n=Ku())&&(e.sort=n.first)}},inputs:{rest:"rest",itemId:"itemId",tableId:"tableId",pageSize:"pageSize"},decls:36,vars:12,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src"],[1,"card-content"],[1,"header"],[1,"buttons"],["mat-raised-button","",3,"click"],[1,"material-icons"],[1,"button-text"],[1,"navigation"],[1,"filter"],["matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],["tabindex","0",1,"table",3,"keydown"],["matSort","",3,"dataSource","matSortChange"],[3,"matColumnDef",4,"ngFor","ngForOf"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[1,"footer"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[3,"matColumnDef"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["mat-sort-header",""],[3,"innerHtml"],[3,"ngClass"]],template:function(t,e){1&t&&(ds(0,"div",0),ds(1,"div",1),ds(2,"div",2),ps(3,"img",3),$s(4," \xa0"),ds(5,"uds-translate"),$s(6,"Logs"),fs(),fs(),fs(),ds(7,"div",4),ds(8,"div",5),ds(9,"div",6),ds(10,"a",7),xs("click",function(){return e.export()}),ds(11,"i",8),$s(12,"import_export"),fs(),ds(13,"span",9),ds(14,"uds-translate"),$s(15,"Export"),fs(),fs(),fs(),fs(),ds(16,"div",10),ds(17,"div",11),ds(18,"uds-translate"),$s(19,"Filter"),fs(),$s(20,"\xa0 "),ds(21,"mat-form-field"),ds(22,"input",12),xs("keyup",function(){return e.applyFilter()})("ngModelChange",function(t){return e.filterText=t}),fs(),ss(23,vR,3,0,"button",13),fs(),fs(),ds(24,"div",14),ps(25,"mat-paginator",15),fs(),ds(26,"div",16),ds(27,"a",17),xs("click",function(){return e.overview()}),ds(28,"i",8),$s(29,"autorenew"),fs(),fs(),fs(),fs(),fs(),ds(30,"div",18),xs("keydown",function(t){return e.keyDown(t)}),ds(31,"mat-table",19),xs("matSortChange",function(t){return e.sortChanged(t)}),ss(32,bR,3,1,"ng-container",20),ss(33,wR,1,0,"mat-header-row",21),ss(34,xR,1,1,"mat-row",22),fs(),fs(),ps(35,"div",23),fs(),fs()),2&t&&(Eo(3),cs("src",e.api.staticURL("admin/img/icons/logs.png"),Tr),Eo(19),cs("ngModel",e.filterText),Eo(1),cs("ngIf",e.filterText),Eo(2),cs("pageSize",e.pageSize)("hidePageSize",!0)("pageSizeOptions",ku(11,kR))("showFirstLastButtons",!0),Eo(6),cs("dataSource",e.dataSource),Eo(1),cs("ngForOf",e.displayedColumns),Eo(1),cs("matHeaderRowDef",e.displayedColumns),Eo(1),cs("matRowDefColumns",e.displayedColumns))},directives:[$S,ZS,dD,MO,dC,zC,pA,Dh,rE,nO,hE,Ih,lO,uO,XS,sD,oO,rO,iO,aO,vE,sO,cO,hO,Ah],styles:[".header[_ngcontent-%COMP%]{justify-content:space-between;margin:1rem 1rem 0}.header[_ngcontent-%COMP%], .navigation[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.navigation[_ngcontent-%COMP%]{justify-content:flex-start}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0 1rem;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.mat-column-date[_ngcontent-%COMP%]{max-width:160px}.mat-column-level[_ngcontent-%COMP%]{max-width:96px;text-align:center}.mat-column-source[_ngcontent-%COMP%]{max-width:128px} .level-60000>.mat-cell{color:#ff1e1e!important} .level-50000>.mat-cell{color:#ff1e1e!important} .level-40000>.mat-cell{color:#d65014!important}"]}),t}();function CR(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Services pools"),fs())}function AR(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Logs"),fs())}var MR=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],IR=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.customButtons=[nI.getGotoButton(XM,"id")],this.services=i.services,this.service=i.service}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{service:i,services:n},disableClose:!1})},t.prototype.ngOnInit=function(){var t=this;this.servicePools=new mR(django.gettext("Service pools"),function(){return t.services.invoke(t.service.id+"/servicesPools")},MR,this.service.id+"infopsls")},t.\u0275fac=function(e){return new(e||t)(us(bI),us(WI),us(MS),us(TS))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-information"]],decls:17,vars:8,consts:[["mat-dialog-title",""],["mat-tab-label",""],[3,"rest","customButtons","pageSize"],[1,"content"],[3,"rest","itemId","tableId","pageSize"],["mat-raised-button","","mat-dialog-close","","color","primary"]],template:function(t,e){1&t&&(ds(0,"h4",0),ds(1,"uds-translate"),$s(2,"Information for"),fs(),$s(3),fs(),ds(4,"mat-dialog-content"),ds(5,"mat-tab-group"),ds(6,"mat-tab"),ss(7,CR,2,0,"ng-template",1),ps(8,"uds-table",2),fs(),ds(9,"mat-tab"),ss(10,AR,2,0,"ng-template",1),ds(11,"div",3),ps(12,"uds-logs-table",4),fs(),fs(),fs(),fs(),ds(13,"mat-dialog-actions"),ds(14,"button",5),ds(15,"uds-translate"),$s(16,"Ok"),fs(),fs(),fs()),2&t&&(Eo(3),Js(" ",e.service.name,"\n"),Eo(5),cs("rest",e.servicePools)("customButtons",e.customButtons)("pageSize",6),Eo(4),cs("rest",e.services)("itemId",e.service.id)("tableId","serviceInfo-d-log"+e.service.id)("pageSize",5))},directives:[FS,$S,VS,cM,tM,$A,hR,SR,zS,XS,NS],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.mat-column-count[_ngcontent-%COMP%], .mat-column-image[_ngcontent-%COMP%], .mat-column-state[_ngcontent-%COMP%]{max-width:7rem;justify-content:center}.navigation[_ngcontent-%COMP%]{margin-top:1rem;display:flex;justify-content:flex-end;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}"]}),t}();function TR(t,e){if(1&t&&(ds(0,"div",3),ps(1,"div",4),ps(2,"div",5),fs()),2&t){var n=e.$implicit;Eo(1),cs("innerHTML",n.gui.label,Ir),Eo(1),cs("innerHTML",n.value,Ir)}}var DR=function(){function t(t){this.api=t,this.displayables=null}return t.prototype.ngOnInit=function(){this.processFields()},t.prototype.processFields=function(){var t=this;if(!this.gui||!this.value)return[];var e=this.gui.filter(function(t){return t.gui.type!==rC.HIDDEN});e.forEach(function(e){var n=t.value[e.name];switch(e.gui.type){case rC.CHECKBOX:e.value=n?django.gettext("Yes"):django.gettext("No");break;case rC.PASSWORD:e.value=django.gettext("(hidden)");break;case rC.CHOICE:var i=oC.locateChoice(n,e);e.value=i.text;break;case rC.MULTI_CHOICE:e.value=django.gettext("Selected items :")+n.length;break;case rC.IMAGECHOICE:i=oC.locateChoice(n,e),e.value=t.api.safeString(t.api.gui.icon(i.img)+" "+i.text);break;default:e.value=n}""!==e.value&&null!=e.value||(e.value="(empty)")}),this.displayables=e},t.\u0275fac=function(e){return new(e||t)(us(bI))},t.\u0275cmp=ce({type:t,selectors:[["uds-information"]],inputs:{value:"value",gui:"gui"},decls:4,vars:1,consts:[[1,"card"],[1,"card-content"],["class","item",4,"ngFor","ngForOf"],[1,"item"],[1,"label",3,"innerHTML"],[1,"value",3,"innerHTML"]],template:function(t,e){1&t&&(ds(0,"div",0),ds(1,"div",1),ss(2,TR,3,2,"div",2),fs(),ps(3,"div"),fs()),2&t&&(Eo(2),cs("ngForOf",e.displayables))},directives:[Ih],styles:[".card-content[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column}.item[_ngcontent-%COMP%]{padding-bottom:.5rem;display:flex}.label[_ngcontent-%COMP%]{font-weight:700;width:32rem;overflow-x:hidden;text-overflow:ellipsis;text-align:end;margin-right:1rem;align-self:center}"]}),t}();function ER(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Summary"),fs())}function OR(t,e){if(1&t&&ps(0,"uds-information",15),2&t){var n=Ms(2);cs("value",n.provider)("gui",n.gui)}}function PR(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Services"),fs())}function RR(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Usage"),fs())}function LR(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Logs"),fs())}function NR(t,e){if(1&t){var n=ys();ds(0,"div",6),ds(1,"div",7),ds(2,"mat-tab-group",8),xs("selectedIndexChange",function(t){return en(n),Ms().selectedTab=t}),ds(3,"mat-tab"),ss(4,ER,2,0,"ng-template",9),ds(5,"div",10),ss(6,OR,1,2,"uds-information",11),fs(),fs(),ds(7,"mat-tab"),ss(8,PR,2,0,"ng-template",9),ds(9,"div",10),ds(10,"uds-table",12),xs("newAction",function(t){return en(n),Ms().onNewService(t)})("editAction",function(t){return en(n),Ms().onEditService(t)})("deleteAction",function(t){return en(n),Ms().onDeleteService(t)})("customButtonAction",function(t){return en(n),Ms().onInformation(t)})("loaded",function(t){return en(n),Ms().onLoad(t)}),fs(),fs(),fs(),ds(11,"mat-tab"),ss(12,RR,2,0,"ng-template",9),ds(13,"div",10),ds(14,"uds-table",13),xs("deleteAction",function(t){return en(n),Ms().onDeleteUsage(t)}),fs(),fs(),fs(),ds(15,"mat-tab"),ss(16,LR,2,0,"ng-template",9),ds(17,"div",10),ps(18,"uds-logs-table",14),fs(),fs(),fs(),fs(),fs()}if(2&t){var i=Ms();Eo(2),cs("selectedIndex",i.selectedTab)("@.disabled",!0),Eo(4),cs("ngIf",i.provider&&i.gui),Eo(4),cs("rest",i.services)("multiSelect",!0)("allowExport",!0)("customButtons",i.customButtons)("pageSize",i.api.config.admin.page_size)("tableId","providers-d-services"+i.provider.id),Eo(4),cs("rest",i.usage)("multiSelect",!0)("allowExport",!0)("pageSize",i.api.config.admin.page_size)("tableId","providers-d-usage"+i.provider.id),Eo(4),cs("rest",i.services.parentModel)("itemId",i.provider.id)("tableId","providers-d-log"+i.provider.id)}}var FR=function(t){return["/providers",t]},VR=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:WM.ONLY_MENU}],this.provider=null,this.selectedTab=1}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("provider");this.services=this.rest.providers.detail(e,"services"),this.usage=this.rest.providers.detail(e,"usage"),this.services.parentModel.get(e).subscribe(function(e){t.provider=e,t.services.parentModel.gui(e.type).subscribe(function(e){t.gui=e})})},t.prototype.onInformation=function(t){IR.launch(this.api,this.services,t.table.selection.selected[0])},t.prototype.onNewService=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New service"),!1)},t.prototype.onEditService=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit service"),!1)},t.prototype.onDeleteService=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete service"))},t.prototype.onDeleteUsage=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete user service"))},t.prototype.onLoad=function(t){if(!0===t.param){var e=this.route.snapshot.paramMap.get("service");if(void 0!==e){this.selectedTab=1;var n=t.table;n.dataSource.data.forEach(function(t){t.id===e&&n.selection.select(t)})}}},t.\u0275fac=function(e){return new(e||t)(us(gg),us(WI),us(bI))},t.\u0275cmp=ce({type:t,selectors:[["uds-services-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","providers",3,"rest","multiSelect","allowExport","customButtons","pageSize","tableId","newAction","editAction","deleteAction","customButtonAction","loaded"],["icon","usage",3,"rest","multiSelect","allowExport","pageSize","tableId","deleteAction"],[3,"rest","itemId","tableId"],[3,"value","gui"]],template:function(t,e){1&t&&(ds(0,"div",0),ds(1,"div",1),ds(2,"a",2),ds(3,"i",3),$s(4,"arrow_back"),fs(),fs(),$s(5," \xa0"),ps(6,"img",4),$s(7),fs(),ss(8,NR,19,17,"div",5),fs()),2&t&&(Eo(2),cs("routerLink",Su(4,FR,e.services.parentId)),Eo(4),cs("src",e.api.staticURL("admin/img/icons/services.png"),Tr),Eo(1),Js(" \xa0",null==e.provider?null:e.provider.name," "),Eo(1),cs("ngIf",null!==e.provider))},directives:[Ym,Dh,cM,tM,$A,hR,SR,$S,DR],styles:[""]}),t}(),zR=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("authenticator")},t.prototype.onDetail=function(t){this.api.navigation.gotoAuthenticatorDetail(t.param.id)},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Authenticator"),!0)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Authenticator"),!0)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Authenticator"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("authenticator"))},t.prototype.processElement=function(t){t.visible=this.api.yesno(t.visible)},t.\u0275fac=function(e){return new(e||t)(us(bI),us(gg),us(WI))},t.\u0275cmp=ce({type:t,selectors:[["uds-authenticators"]],decls:2,vars:6,consts:[["icon","authenticators",3,"rest","multiSelect","allowExport","hasPermissions","onItem","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(ds(0,"div"),ds(1,"uds-table",0),xs("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("detailAction",function(t){return e.onDetail(t)})("loaded",function(t){return e.onLoad(t)}),fs(),fs()),2&t&&(Eo(1),cs("rest",e.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",e.processElement)("pageSize",e.api.config.admin.page_size))},directives:[hR],styles:[""]}),t}(),BR=["panel"];function HR(t,e){if(1&t&&(ds(0,"div",0,1),Ds(2),fs()),2&t){var n=e.id,i=Ms();cs("id",i.id)("ngClass",i._classList),os("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(n))}}var jR=["*"],GR=0,UR=function t(e,n){s(this,t),this.source=e,this.option=n},WR=Ok(function(){return function t(){s(this,t)}}()),YR=new _i("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),qR=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this))._changeDetectorRef=t,a._elementRef=i,a._activeOptionChanges=M.EMPTY,a.showPanel=!1,a._isOpen=!1,a.displayWith=null,a.optionSelected=new Lu,a.opened=new Lu,a.closed=new Lu,a.optionActivated=new Lu,a._classList={},a.id="mat-autocomplete-".concat(GR++),a.inertGroups=(null==o?void 0:o.SAFARI)||!1,a._autoActiveFirstOption=!!r.autoActiveFirstOption,a}return a(n,[{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(t){this._autoActiveFirstOption=mv(t)}},{key:"classList",set:function(t){this._classList=t&&t.length?xv(t).reduce(function(t,e){return t[e]=!0,t},{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}},{key:"ngAfterContentInit",value:function(){var t=this;this._keyManager=new X_(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(function(e){t.optionActivated.emit({source:t,option:t.options.toArray()[e]||null})}),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(t){var e=new UR(this,t);this.optionSelected.emit(e)}},{key:"_getPanelAriaLabelledby",value:function(t){return this.ariaLabel?null:this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}},{key:"_setVisibilityClasses",value:function(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}]),n}(WR);return t.\u0275fac=function(e){return new(e||t)(us(Ql),us(Al),us(YR),us(ry))},t.\u0275dir=me({type:t,viewQuery:function(t,e){var n;1&t&&(Xu(iu,7),Xu(BR,5)),2&t&&(qu(n=Ku())&&(e.template=n.first),qu(n=Ku())&&(e.panel=n.first))},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[Ya]}),t}(),XR=function(){var t=function(t){u(n,t);var e=p(n);function n(){var t;return s(this,n),(t=e.apply(this,arguments))._visibleClass="mat-autocomplete-visible",t._hiddenClass="mat-autocomplete-hidden",t}return n}(qR);return t.\u0275fac=function(){var e;return function(n){return(e||(e=pi(t)))(n||t)}}(),t.\u0275cmp=ce({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,n){var i;1&t&&(Zu(n,fS,5),Zu(n,vS,5)),2&t&&(qu(i=Ku())&&(e.optionGroups=i),qu(i=Ku())&&(e.options=i))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[yl([{provide:uS,useExisting:t}]),Ya],ngContentSelectors:jR,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(Ts(),ss(0,HR,3,4,"ng-template"))},directives:[Ah],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}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),t}(),ZR=new _i("mat-autocomplete-scroll-strategy"),KR={provide:ZR,deps:[__],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},$R={provide:uC,useExisting:Ct(function(){return JR}),multi:!0},QR=function(){var t=function(){function t(e,n,i,r,o,a,l,u,c,h,d){var f=this;s(this,t),this._element=e,this._overlay=n,this._viewContainerRef=i,this._zone=r,this._changeDetectorRef=o,this._dir=l,this._formField=u,this._document=c,this._viewportRuler=h,this._defaults=d,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=M.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new U,this._windowBlurHandler=function(){f._canOpenOnNextFocus=f._document.activeElement!==f._element.nativeElement||f.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Df(function(){return f.autocomplete&&f.autocomplete.options?dt.apply(void 0,b(f.autocomplete.options.map(function(t){return t.onSelectionChange}))):f._zone.onStable.pipe(Lf(1),Ef(function(){return f.optionSelections}))}),this._scrollStrategy=a}return a(t,[{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(t){this._autocompleteDisabled=mv(t)}},{key:"ngAfterViewInit",value:function(){var t=this,e=this._getWindow();void 0!==e&&this._zone.runOutsideAngular(function(){return e.addEventListener("blur",t._windowBlurHandler)})}},{key:"ngOnChanges",value:function(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){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())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"panelClosingActions",get:function(){var t=this;return dt(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Rd(function(){return t._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Rd(function(){return t._overlayAttached})):Od()).pipe(q(function(t){return t instanceof gS?t:null}))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}},{key:"_getOutsideClickStream",value:function(){var t=this;return dt(kv(this._document,"click"),kv(this._document,"auxclick"),kv(this._document,"touchend")).pipe(Rd(function(e){var n=t._isInsideShadowRoot&&e.composedPath?e.composedPath()[0]:e.target,i=t._formField?t._formField._elementRef.nativeElement:null,r=t.connectedTo?t.connectedTo.elementRef.nativeElement:null;return t._overlayAttached&&n!==t._element.nativeElement&&(!i||!i.contains(n))&&(!r||!r.contains(n))&&!!t._overlayRef&&!t._overlayRef.overlayElement.contains(n)}))}},{key:"writeValue",value:function(t){var e=this;Promise.resolve(null).then(function(){return e._setTriggerValue(t)})}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this._element.nativeElement.disabled=t}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;if(e!==Ny||Uy(t)||t.preventDefault(),this.activeOption&&e===Ly&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){var n=this.autocomplete._keyManager.activeItem,i=e===Hy||e===Gy;this.panelOpen||9===e?this.autocomplete._keyManager.onKeydown(t):i&&this._canOpen()&&this.openPanel(),(i||this.autocomplete._keyManager.activeItem!==n)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}},{key:"_handleInput",value:function(t){var e=t.target,n=e.value;"number"===e.type&&(n=""==n?null:parseFloat(n)),this._previousValue!==n&&(this._previousValue=n,this._onChange(n),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_floatLabel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_subscribeToClosingActions",value:function(){var t=this;return dt(this._zone.onStable.pipe(Lf(1)),this.autocomplete.options.changes.pipe(ip(function(){return t._positionStrategy.reapplyLastPosition()}),mO(0))).pipe(Ef(function(){var e=t.panelOpen;return t._resetActiveItem(),t.autocomplete._setVisibility(),t.panelOpen&&(t._overlayRef.updatePosition(),e!==t.panelOpen&&t.autocomplete.opened.emit()),t.panelClosingActions}),Lf(1)).subscribe(function(e){return t._setValueAndClose(e)})}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(t){var e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,n=null!=e?e:"";this._formField?this._formField._control.value=n:this._element.nativeElement.value=n,this._previousValue=n}},{key:"_setValueAndClose",value:function(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()}},{key:"_clearPreviousSelectedOption",value:function(t){this.autocomplete.options.forEach(function(e){e!==t&&e.selected&&e.deselect()})}},{key:"_attachOverlay",value:function(){var t,e=this;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!cy(this._element.nativeElement));var n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new Ay(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t.getLabelId()}),n=this._overlay.create(this._getOverlayConfig()),this._overlayRef=n,n.keydownEvents().subscribe(function(t){(t.keyCode===Ny&&!Uy(t)||t.keyCode===Hy&&Uy(t,"altKey"))&&(e._resetActiveItem(),e._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(function(){e.panelOpen&&n&&n.updateSize({width:e._getPanelWidth()})})),n&&!n.hasAttached()&&(n.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){var t;return new Jy({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}},{key:"_getOverlayPosition",value:function(){var t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}},{key:"_setStrategyPositions",value:function(t){var e,n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:i},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:i}];e="above"===this.position?r:"below"===this.position?n:[].concat(n,r),t.withPositions(e)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){var t=this.autocomplete;t.autoActiveFirstOption?t._keyManager.setFirstItemActive():t._keyManager.setActiveItem(-1)}},{key:"_canOpen",value:function(){var t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}},{key:"_scrollToOption",value:function(t){var e=this.autocomplete,n=yS(t,e.options,e.optionGroups);if(0===t&&1===n)e._setScrollTop(0);else if(e.panel){var i=e.options.toArray()[t];if(i){var r=i._getHostElement(),o=_S(r.offsetTop,r.offsetHeight,e._getScrollTop(),e.panel.nativeElement.offsetHeight);e._setScrollTop(o)}}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Al),us(__),us(uu),us(xc),us(Ql),us(ZR),us(fy,8),us(hD,9),us(rh,8),us(wy),us(YR,8))},t.\u0275dir=me({type:t,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[De]}),t}(),JR=function(){var t=function(t){u(n,t);var e=p(n);function n(){var t;return s(this,n),(t=e.apply(this,arguments))._aboveClass="mat-autocomplete-panel-above",t}return n}(QR);return t.\u0275fac=function(){var e;return function(n){return(e||(e=pi(t)))(n||t)}}(),t.\u0275dir=me({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&xs("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&&os("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:[yl([$R]),Ya]}),t}(),tL=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[KR],imports:[[C_,bS,Tk,Wh],xy,bS,Tk]}),t}();function eL(t,e){if(1&t&&(ds(0,"div"),ds(1,"uds-translate"),$s(2,"Edit user"),fs(),$s(3),fs()),2&t){var n=Ms();Eo(3),Js(" ",n.user.name," ")}}function nL(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"New user"),fs())}function iL(t,e){if(1&t){var n=ys();ds(0,"mat-form-field"),ds(1,"mat-label"),$s(2),fs(),ds(3,"input",19),xs("ngModelChange",function(t){return en(n),Ms().user.name=t}),fs(),fs()}if(2&t){var i=Ms();Eo(2),Js(" ",i.authenticator.type_info.userNameLabel," "),Eo(1),cs("ngModel",i.user.name)("disabled",i.user.id)}}function rL(t,e){if(1&t&&(ds(0,"mat-option",22),$s(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Eo(1),tl(" ",n.id," (",n.name,") ")}}function oL(t,e){if(1&t){var n=ys();ds(0,"mat-form-field"),ds(1,"mat-label"),$s(2),fs(),ds(3,"input",20),xs("ngModelChange",function(t){return en(n),Ms().user.name=t})("input",function(t){return en(n),Ms().filterUser(t)}),fs(),ds(4,"mat-autocomplete",null,21),ss(6,rL,2,3,"mat-option",16),fs(),fs()}if(2&t){var i=ls(5),r=Ms();Eo(2),Js(" ",r.authenticator.type_info.userNameLabel," "),Eo(1),cs("ngModel",r.user.name)("matAutocomplete",i),Eo(3),cs("ngForOf",r.users)}}function aL(t,e){if(1&t){var n=ys();ds(0,"mat-form-field"),ds(1,"mat-label"),$s(2),fs(),ds(3,"input",23),xs("ngModelChange",function(t){return en(n),Ms().user.password=t}),fs(),fs()}if(2&t){var i=Ms();Eo(2),Js(" ",i.authenticator.type_info.passwordLabel," "),Eo(1),cs("ngModel",i.user.password)}}function sL(t,e){if(1&t&&(ds(0,"mat-option",22),$s(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Eo(1),Js(" ",n.name," ")}}var lL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Lu(!0),this.users=[],this.authenticator=i.authenticator,this.user={id:void 0,name:"",real_name:"",comments:"",state:"A",is_admin:!1,staff_member:!1,password:"",role:"user",groups:[]},void 0!==i.user&&(this.user.id=i.user.id,this.user.name=i.user.name)}return t.launch=function(e,n,i){var r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,user:i},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.detail(this.authenticator.id,"groups").overview().subscribe(function(e){t.groups=e}),this.user.id&&this.rest.authenticators.detail(this.authenticator.id,"users").get(this.user.id).subscribe(function(e){t.user=e,t.user.role=e.is_admin?"admin":e.staff_member?"staff":"user"},function(e){t.dialogRef.close()})},t.prototype.roleChanged=function(t){this.user.is_admin="admin"===t,this.user.staff_member="admin"===t||"staff"===t},t.prototype.filterUser=function(t){var e=this;this.rest.authenticators.search(this.authenticator.id,"user",t.target.value,100).subscribe(function(t){e.users.length=0,t.forEach(function(t){e.users.push(t)})})},t.prototype.save=function(){var t=this;this.rest.authenticators.detail(this.authenticator.id,"users").save(this.user).subscribe(function(e){t.dialogRef.close(),t.onSave.emit(!0)})},t.\u0275fac=function(e){return new(e||t)(us(bI),us(WI),us(MS),us(TS))},t.\u0275cmp=ce({type:t,selectors:[["uds-new-user"]],decls:60,vars:11,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["nousertitle",""],[1,"content"],[4,"ngIf"],["type","text","matInput","","autocomplete","new-real_name",3,"ngModel","ngModelChange"],["type","text","matInput","","autocomplete","new-comments",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["value","A"],["value","I"],["value","B"],[3,"ngModel","ngModelChange","valueChange"],["value","admin"],["value","staff"],["value","user"],["multiple","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["type","text","matInput","","autocomplete","new-username",3,"ngModel","disabled","ngModelChange"],["type","text","aria-label","Number","matInput","",3,"ngModel","matAutocomplete","ngModelChange","input"],["auto","matAutocomplete"],[3,"value"],["type","password","matInput","","autocomplete","new-password",3,"ngModel","ngModelChange"]],template:function(t,e){if(1&t&&(ds(0,"h4",0),ss(1,eL,4,1,"div",1),ss(2,nL,2,0,"ng-template",null,2,tc),fs(),ds(4,"mat-dialog-content"),ds(5,"div",3),ss(6,iL,4,3,"mat-form-field",4),ss(7,oL,7,4,"mat-form-field",4),ds(8,"mat-form-field"),ds(9,"mat-label"),ds(10,"uds-translate"),$s(11,"Real name"),fs(),fs(),ds(12,"input",5),xs("ngModelChange",function(t){return e.user.real_name=t}),fs(),fs(),ds(13,"mat-form-field"),ds(14,"mat-label"),ds(15,"uds-translate"),$s(16,"Comments"),fs(),fs(),ds(17,"input",6),xs("ngModelChange",function(t){return e.user.comments=t}),fs(),fs(),ds(18,"mat-form-field"),ds(19,"mat-label"),ds(20,"uds-translate"),$s(21,"State"),fs(),fs(),ds(22,"mat-select",7),xs("ngModelChange",function(t){return e.user.state=t}),ds(23,"mat-option",8),ds(24,"uds-translate"),$s(25,"Enabled"),fs(),fs(),ds(26,"mat-option",9),ds(27,"uds-translate"),$s(28,"Disabled"),fs(),fs(),ds(29,"mat-option",10),ds(30,"uds-translate"),$s(31,"Blocked"),fs(),fs(),fs(),fs(),ds(32,"mat-form-field"),ds(33,"mat-label"),ds(34,"uds-translate"),$s(35,"Role"),fs(),fs(),ds(36,"mat-select",11),xs("ngModelChange",function(t){return e.user.role=t})("valueChange",function(t){return e.roleChanged(t)}),ds(37,"mat-option",12),ds(38,"uds-translate"),$s(39,"Admin"),fs(),fs(),ds(40,"mat-option",13),ds(41,"uds-translate"),$s(42,"Staff member"),fs(),fs(),ds(43,"mat-option",14),ds(44,"uds-translate"),$s(45,"User"),fs(),fs(),fs(),fs(),ss(46,aL,4,2,"mat-form-field",4),ds(47,"mat-form-field"),ds(48,"mat-label"),ds(49,"uds-translate"),$s(50,"Groups"),fs(),fs(),ds(51,"mat-select",15),xs("ngModelChange",function(t){return e.user.groups=t}),ss(52,sL,2,2,"mat-option",16),fs(),fs(),fs(),fs(),ds(53,"mat-dialog-actions"),ds(54,"button",17),ds(55,"uds-translate"),$s(56,"Cancel"),fs(),fs(),ds(57,"button",18),xs("click",function(){return e.save()}),ds(58,"uds-translate"),$s(59,"Ok"),fs(),fs(),fs()),2&t){var n=ls(3);Eo(1),cs("ngIf",e.user.id)("ngIfElse",n),Eo(5),cs("ngIf",!1===e.authenticator.type_info.canSearchUsers||e.user.id),Eo(1),cs("ngIf",!0===e.authenticator.type_info.canSearchUsers&&!e.user.id),Eo(5),cs("ngModel",e.user.real_name),Eo(5),cs("ngModel",e.user.comments),Eo(5),cs("ngModel",e.user.state),Eo(14),cs("ngModel",e.user.role),Eo(10),cs("ngIf",e.authenticator.type_info.needsPassword),Eo(5),cs("ngModel",e.user.groups),Eo(1),cs("ngForOf",e.groups)}},directives:[FS,Dh,VS,dD,iD,$S,MO,dC,zC,pA,RD,vS,Ih,zS,XS,NS,JR,XR],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}(),uL=["thumbContainer"],cL=["toggleBar"],hL=["input"],dL=function(t){return{enterDuration:t}},fL=["*"],pL=new _i("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),gL=0,mL={provide:uC,useExisting:Ct(function(){return _L}),multi:!0},vL=function t(e,n){s(this,t),this.source=e,this.checked=n},yL=Pk(Ek(Ok(Dk(function(){return function t(e){s(this,t),this._elementRef=e}}())))),_L=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l){var u;return s(this,n),(u=e.call(this,t))._focusMonitor=i,u._changeDetectorRef=r,u.defaults=a,u._onChange=function(t){},u._onTouched=function(){},u._uniqueId="mat-slide-toggle-".concat(++gL),u._required=!1,u._checked=!1,u.name=null,u.id=u._uniqueId,u.labelPosition="after",u.ariaLabel=null,u.ariaLabelledby=null,u.change=new Lu,u.toggleChange=new Lu,u.tabIndex=parseInt(o)||0,u.color=u.defaultColor=a.color||"accent",u._noopAnimations="NoopAnimations"===l,u}return a(n,[{key:"required",get:function(){return this._required},set:function(t){this._required=mv(t)}},{key:"checked",get:function(){return this._checked},set:function(t){this._checked=mv(t),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"ngAfterContentInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(e){"keyboard"===e||"program"===e?t._inputElement.nativeElement.focus():e||Promise.resolve().then(function(){return t._onTouched()})})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_onChangeEvent",value:function(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}},{key:"_onInputClick",value:function(t){t.stopPropagation()}},{key:"writeValue",value:function(t){this.checked=!!t}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetectorRef.markForCheck()}},{key:"focus",value:function(t,e){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(new vL(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}}]),n}(yL);return t.\u0275fac=function(e){return new(e||t)(us(Al),us(gb),us(Ql),mi("tabindex"),us(pL),us(vk,8))},t.\u0275cmp=ce({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var n;1&t&&(Xu(uL,5),Xu(cL,5),Xu(hL,5)),2&t&&(qu(n=Ku())&&(e._thumbEl=n.first),qu(n=Ku())&&(e._thumbBarEl=n.first),qu(n=Ku())&&(e._inputElement=n.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(el("id",e.id),os("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),Bs("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable",e._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[yl([mL]),Ya],ngContentSelectors:fL,decls:16,vars:19,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,e){if(1&t&&(Ts(),ds(0,"label",0,1),ds(2,"div",2,3),ds(4,"input",4,5),xs("change",function(t){return e._onChangeEvent(t)})("click",function(t){return e._onInputClick(t)}),fs(),ds(6,"div",6,7),ps(8,"div",8),ds(9,"div",9),ps(10,"div",10),fs(),fs(),fs(),ds(11,"span",11,12),xs("cdkObserveContent",function(){return e._onLabelTextChange()}),ds(13,"span",13),$s(14,"\xa0"),fs(),Ds(15),fs(),fs()),2&t){var n=ls(1),i=ls(12);os("for",e.inputId),Eo(2),Bs("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),Eo(2),cs("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),os("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),Eo(5),cs("matRippleTrigger",n)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Su(17,dL,e._noopAnimations?0:150))}},directives:[oS,L_],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),t}(),bL={provide:gC,useExisting:Ct(function(){return wL}),multi:!0},wL=function(){var t=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return n}(CA);return t.\u0275fac=function(){var e;return function(n){return(e||(e=pi(t)))(n||t)}}(),t.\u0275dir=me({type:t,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[yl([bL]),Ya]}),t}(),xL=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({}),t}(),kL=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[xL,aS,Tk,N_],xL,Tk]}),t}();function SL(t,e){if(1&t&&(ds(0,"div"),ds(1,"uds-translate"),$s(2,"Edit group"),fs(),$s(3),fs()),2&t){var n=Ms();Eo(3),Js(" ",n.group.name," ")}}function CL(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"New group"),fs())}function AL(t,e){if(1&t){var n=ys();ds(0,"mat-form-field"),ds(1,"mat-label"),$s(2),fs(),ds(3,"input",13),xs("ngModelChange",function(t){return en(n),Ms(2).group.name=t}),fs(),fs()}if(2&t){var i=Ms(2);Eo(2),Js(" ",i.authenticator.type_info.groupNameLabel," "),Eo(1),cs("ngModel",i.group.name)("disabled",i.group.id)}}function ML(t,e){if(1&t&&(ds(0,"mat-option",17),$s(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Eo(1),tl(" ",n.id," (",n.name,") ")}}function IL(t,e){if(1&t){var n=ys();ds(0,"mat-form-field"),ds(1,"mat-label"),$s(2),fs(),ds(3,"input",14),xs("ngModelChange",function(t){return en(n),Ms(2).group.name=t})("input",function(t){return en(n),Ms(2).filterGroup(t)}),fs(),ds(4,"mat-autocomplete",null,15),ss(6,ML,2,3,"mat-option",16),fs(),fs()}if(2&t){var i=ls(5),r=Ms(2);Eo(2),Js(" ",r.authenticator.type_info.groupNameLabel," "),Eo(1),cs("ngModel",r.group.name)("matAutocomplete",i),Eo(3),cs("ngForOf",r.fltrGroup)}}function TL(t,e){if(1&t&&(gs(0),ss(1,AL,4,3,"mat-form-field",12),ss(2,IL,7,4,"mat-form-field",12),ms()),2&t){var n=Ms();Eo(1),cs("ngIf",!1===n.authenticator.type_info.canSearchGroups||n.group.id),Eo(1),cs("ngIf",!0===n.authenticator.type_info.canSearchGroups&&!n.group.id)}}function DL(t,e){if(1&t){var n=ys();ds(0,"mat-form-field"),ds(1,"mat-label"),ds(2,"uds-translate"),$s(3,"Meta group name"),fs(),fs(),ds(4,"input",13),xs("ngModelChange",function(t){return en(n),Ms().group.name=t}),fs(),fs()}if(2&t){var i=Ms();Eo(4),cs("ngModel",i.group.name)("disabled",i.group.id)}}function EL(t,e){if(1&t&&(ds(0,"mat-option",17),$s(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Eo(1),Js(" ",n.name," ")}}function OL(t,e){if(1&t){var n=ys();gs(0),ds(1,"mat-form-field"),ds(2,"mat-label"),ds(3,"uds-translate"),$s(4,"Service Pools"),fs(),fs(),ds(5,"mat-select",18),xs("ngModelChange",function(t){return en(n),Ms().group.pools=t}),ss(6,EL,2,2,"mat-option",16),fs(),fs(),ms()}if(2&t){var i=Ms();Eo(5),cs("ngModel",i.group.pools),Eo(1),cs("ngForOf",i.servicePools)}}function PL(t,e){if(1&t&&(ds(0,"mat-option",17),$s(1),fs()),2&t){var n=Ms().$implicit;cs("value",n.id),Eo(1),Js(" ",n.name," ")}}function RL(t,e){if(1&t&&(gs(0),ss(1,PL,2,2,"mat-option",22),ms()),2&t){var n=e.$implicit;Eo(1),cs("ngIf","group"===n.type)}}function LL(t,e){if(1&t){var n=ys();ds(0,"div",19),ds(1,"span",20),ds(2,"uds-translate"),$s(3,"Match mode"),fs(),fs(),ds(4,"mat-slide-toggle",6),xs("ngModelChange",function(t){return en(n),Ms().group.meta_if_any=t}),$s(5),fs(),fs(),ds(6,"mat-form-field"),ds(7,"mat-label"),ds(8,"uds-translate"),$s(9,"Selected Groups"),fs(),fs(),ds(10,"mat-select",18),xs("ngModelChange",function(t){return en(n),Ms().group.groups=t}),ss(11,RL,2,1,"ng-container",21),fs(),fs()}if(2&t){var i=Ms();Eo(4),cs("ngModel",i.group.meta_if_any),Eo(1),Js(" ",i.getMatchValue()," "),Eo(5),cs("ngModel",i.group.groups),Eo(1),cs("ngForOf",i.groups)}}var NL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Lu(!0),this.fltrGroup=[],this.authenticator=i.authenticator,this.group={id:void 0,type:i.groupType,name:"",comments:"",meta_if_any:!1,state:"A",groups:[],pools:[]},void 0!==i.group&&(this.group.id=i.group.id,this.group.type=i.group.type,this.group.name=i.group.name)}return t.launch=function(e,n,i,r){var o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,groupType:i,group:r},disableClose:!0}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this,e=this.rest.authenticators.detail(this.authenticator.id,"groups");void 0!==this.group.id&&e.get(this.group.id).subscribe(function(e){t.group=e},function(e){t.dialogRef.close()}),"meta"===this.group.type?e.summary().subscribe(function(e){return t.groups=e}):this.rest.servicesPools.summary().subscribe(function(e){return t.servicePools=e})},t.prototype.filterGroup=function(t){var e=this;this.rest.authenticators.search(this.authenticator.id,"group",t.target.value,100).subscribe(function(t){e.fltrGroup.length=0,t.forEach(function(t){e.fltrGroup.push(t)})})},t.prototype.getMatchValue=function(){return this.group.meta_if_any?django.gettext("Any"):django.gettext("All")},t.prototype.save=function(){var t=this;this.rest.authenticators.detail(this.authenticator.id,"groups").save(this.group).subscribe(function(e){t.dialogRef.close(),t.onSave.emit(!0)})},t.\u0275fac=function(e){return new(e||t)(us(bI),us(WI),us(MS),us(TS))},t.\u0275cmp=ce({type:t,selectors:[["uds-new-group"]],decls:35,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["nousertitle",""],[1,"content"],["metafirst",""],["type","text","matInput","",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["value","A"],["value","I"],["metasecond",""],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[4,"ngIf"],["type","text","matInput","",3,"ngModel","disabled","ngModelChange"],["type","text","aria-label","Number","matInput","",3,"ngModel","matAutocomplete","ngModelChange","input"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["multiple","",3,"ngModel","ngModelChange"],[1,"mat-form-field-infix"],[1,"label-match"],[4,"ngFor","ngForOf"],[3,"value",4,"ngIf"]],template:function(t,e){if(1&t&&(ds(0,"h4",0),ss(1,SL,4,1,"div",1),ss(2,CL,2,0,"ng-template",null,2,tc),fs(),ds(4,"mat-dialog-content"),ds(5,"div",3),ss(6,TL,3,2,"ng-container",1),ss(7,DL,5,2,"ng-template",null,4,tc),ds(9,"mat-form-field"),ds(10,"mat-label"),ds(11,"uds-translate"),$s(12,"Comments"),fs(),fs(),ds(13,"input",5),xs("ngModelChange",function(t){return e.group.comments=t}),fs(),fs(),ds(14,"mat-form-field"),ds(15,"mat-label"),ds(16,"uds-translate"),$s(17,"State"),fs(),fs(),ds(18,"mat-select",6),xs("ngModelChange",function(t){return e.group.state=t}),ds(19,"mat-option",7),ds(20,"uds-translate"),$s(21,"Enabled"),fs(),fs(),ds(22,"mat-option",8),ds(23,"uds-translate"),$s(24,"Disabled"),fs(),fs(),fs(),fs(),ss(25,OL,7,2,"ng-container",1),ss(26,LL,12,4,"ng-template",null,9,tc),fs(),fs(),ds(28,"mat-dialog-actions"),ds(29,"button",10),ds(30,"uds-translate"),$s(31,"Cancel"),fs(),fs(),ds(32,"button",11),xs("click",function(){return e.save()}),ds(33,"uds-translate"),$s(34,"Ok"),fs(),fs(),fs()),2&t){var n=ls(3),i=ls(8),r=ls(27);Eo(1),cs("ngIf",e.group.id)("ngIfElse",n),Eo(5),cs("ngIf","group"===e.group.type)("ngIfElse",i),Eo(7),cs("ngModel",e.group.comments),Eo(5),cs("ngModel",e.group.state),Eo(7),cs("ngIf","group"===e.group.type)("ngIfElse",r)}},directives:[FS,Dh,VS,dD,iD,$S,MO,dC,zC,pA,RD,vS,zS,XS,NS,JR,XR,Ih,_L],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}.label-match[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}"]}),t}();function FL(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Groups"),fs())}function VL(t,e){if(1&t&&(ds(0,"mat-tab"),ss(1,FL,2,0,"ng-template",3),ps(2,"uds-table",4),fs()),2&t){var n=Ms();Eo(2),cs("rest",n.group)("pageSize",6)}}function zL(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Services Pools"),fs())}function BL(t,e){if(1&t&&(ds(0,"mat-tab"),ss(1,zL,2,0,"ng-template",3),ps(2,"uds-table",4),fs()),2&t){var n=Ms();Eo(2),cs("rest",n.servicesPools)("pageSize",6)}}function HL(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Assigned Services"),fs())}function jL(t,e){if(1&t&&(ds(0,"mat-tab"),ss(1,HL,2,0,"ng-template",3),ps(2,"uds-table",4),fs()),2&t){var n=Ms();Eo(2),cs("rest",n.userServices)("pageSize",6)}}var GL=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],UL=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],WL=[{field:"unique_id",title:django.gettext("Unique ID")},{field:"friendly_name",title:django.gettext("Friendly Name")},{field:"in_use",title:django.gettext("In Use")},{field:"ip",title:django.gettext("IP")},{field:"pool",title:django.gettext("Services Pool")}],YL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.users=i.users,this.user=i.user}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{users:n,user:i},disableClose:!1})},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.detail(this.users.parentId,"users").get(this.user.id).subscribe(function(e){t.group=new mR(django.gettext("Groups"),function(){return t.rest.authenticators.detail(t.users.parentId,"groups").overview().pipe(q(function(t){return t.filter(function(t){return e.groups.includes(t.id)})}))},GL,t.user.id+"infogrp"),t.servicesPools=new mR(django.gettext("Services Pools"),function(){return t.users.invoke(t.user.id+"/servicesPools")},UL,t.user.id+"infopool"),t.userServices=new mR(django.gettext("Assigned services"),function(){return t.users.invoke(t.user.id+"/userServices").pipe(q(function(e){return e.map(function(e){return e.in_use=t.api.yesno(e.in_use),e})}))},WL,t.user.id+"userservpool")})},t.\u0275fac=function(e){return new(e||t)(us(bI),us(WI),us(MS),us(TS))},t.\u0275cmp=ce({type:t,selectors:[["uds-user-information"]],decls:13,vars:4,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],[3,"rest","pageSize"]],template:function(t,e){1&t&&(ds(0,"h4",0),ds(1,"uds-translate"),$s(2,"Information for"),fs(),$s(3),fs(),ds(4,"mat-dialog-content"),ds(5,"mat-tab-group"),ss(6,VL,3,2,"mat-tab",1),ss(7,BL,3,2,"mat-tab",1),ss(8,jL,3,2,"mat-tab",1),fs(),fs(),ds(9,"mat-dialog-actions"),ds(10,"button",2),ds(11,"uds-translate"),$s(12,"Ok"),fs(),fs(),fs()),2&t&&(Eo(3),Js(" ",e.user.name,"\n"),Eo(3),cs("ngIf",e.group),Eo(1),cs("ngIf",e.servicesPools),Eo(1),cs("ngIf",e.userServices))},directives:[FS,$S,VS,cM,Dh,zS,XS,NS,tM,$A,hR],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function qL(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Services Pools"),fs())}function XL(t,e){if(1&t&&(ds(0,"mat-tab"),ss(1,qL,2,0,"ng-template",3),ps(2,"uds-table",4),fs()),2&t){var n=Ms();Eo(2),cs("rest",n.servicesPools)("pageSize",6)}}function ZL(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Users"),fs())}function KL(t,e){if(1&t&&(ds(0,"mat-tab"),ss(1,ZL,2,0,"ng-template",3),ps(2,"uds-table",4),fs()),2&t){var n=Ms();Eo(2),cs("rest",n.users)("pageSize",6)}}function $L(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Groups"),fs())}function QL(t,e){if(1&t&&(ds(0,"mat-tab"),ss(1,$L,2,0,"ng-template",3),ps(2,"uds-table",4),fs()),2&t){var n=Ms();Eo(2),cs("rest",n.groups)("pageSize",6)}}var JL=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],tN=[{field:"name",title:django.gettext("Name")},{field:"real_name",title:django.gettext("Real Name")},{field:"state",title:django.gettext("state")},{field:"last_access",title:django.gettext("Last access"),type:UM.DATETIME}],eN=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],nN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.data=i}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{group:i,groups:n},disableClose:!1})},t.prototype.ngOnInit=function(){var t=this,e=this.rest.authenticators.detail(this.data.groups.parentId,"groups");this.servicesPools=new mR(django.gettext("Service pools"),function(){return e.invoke(t.data.group.id+"/servicesPools")},JL,this.data.group.id+"infopls"),this.users=new mR(django.gettext("Users"),function(){return e.invoke(t.data.group.id+"/users").pipe(q(function(t){return t.map(function(t){return t.state="A"===t.state?django.gettext("Enabled"):"I"===t.state?django.gettext("Disabled"):django.gettext("Blocked"),t})}))},tN,this.data.group.id+"infousr"),"meta"===this.data.group.type&&(this.groups=new mR(django.gettext("Groups"),function(){return e.overview().pipe(q(function(e){return e.filter(function(e){return t.data.group.groups.includes(e.id)})}))},eN,this.data.group.id+"infogrps"))},t.\u0275fac=function(e){return new(e||t)(us(bI),us(WI),us(MS),us(TS))},t.\u0275cmp=ce({type:t,selectors:[["uds-group-information"]],decls:12,vars:3,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],[3,"rest","pageSize"]],template:function(t,e){1&t&&(ds(0,"h4",0),ds(1,"uds-translate"),$s(2,"Information for"),fs(),fs(),ds(3,"mat-dialog-content"),ds(4,"mat-tab-group"),ss(5,XL,3,2,"mat-tab",1),ss(6,KL,3,2,"mat-tab",1),ss(7,QL,3,2,"mat-tab",1),fs(),fs(),ds(8,"mat-dialog-actions"),ds(9,"button",2),ds(10,"uds-translate"),$s(11,"Ok"),fs(),fs(),fs()),2&t&&(Eo(5),cs("ngIf",e.servicesPools),Eo(1),cs("ngIf",e.users),Eo(1),cs("ngIf",e.groups))},directives:[FS,$S,VS,cM,Dh,zS,XS,NS,tM,$A,hR],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function iN(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Summary"),fs())}function rN(t,e){if(1&t&&ps(0,"uds-information",16),2&t){var n=Ms(2);cs("value",n.authenticator)("gui",n.gui)}}function oN(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Users"),fs())}function aN(t,e){if(1&t){var n=ys();ds(0,"uds-table",17),xs("loaded",function(t){return en(n),Ms(2).onLoad(t)})("newAction",function(t){return en(n),Ms(2).onNewUser(t)})("editAction",function(t){return en(n),Ms(2).onEditUser(t)})("deleteAction",function(t){return en(n),Ms(2).onDeleteUser(t)})("customButtonAction",function(t){return en(n),Ms(2).onUserInformation(t)}),fs()}if(2&t){var i=Ms(2);cs("rest",i.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+i.authenticator.id)("customButtons",i.customButtons)("pageSize",i.api.config.admin.page_size)}}function sN(t,e){if(1&t){var n=ys();ds(0,"uds-table",18),xs("loaded",function(t){return en(n),Ms(2).onLoad(t)})("editAction",function(t){return en(n),Ms(2).onEditUser(t)})("deleteAction",function(t){return en(n),Ms(2).onDeleteUser(t)})("customButtonAction",function(t){return en(n),Ms(2).onUserInformation(t)}),fs()}if(2&t){var i=Ms(2);cs("rest",i.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+i.authenticator.id)("customButtons",i.customButtons)("pageSize",i.api.config.admin.page_size)}}function lN(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Groups"),fs())}function uN(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Logs"),fs())}function cN(t,e){if(1&t){var n=ys();ds(0,"div",6),ds(1,"div",7),ds(2,"mat-tab-group",8),xs("selectedIndexChange",function(t){return en(n),Ms().selectedTab=t}),ds(3,"mat-tab"),ss(4,iN,2,0,"ng-template",9),ds(5,"div",10),ss(6,rN,1,2,"uds-information",11),fs(),fs(),ds(7,"mat-tab"),ss(8,oN,2,0,"ng-template",9),ds(9,"div",10),ss(10,aN,1,6,"uds-table",12),ss(11,sN,1,6,"uds-table",13),fs(),fs(),ds(12,"mat-tab"),ss(13,lN,2,0,"ng-template",9),ds(14,"div",10),ds(15,"uds-table",14),xs("loaded",function(t){return en(n),Ms().onLoad(t)})("newAction",function(t){return en(n),Ms().onNewGroup(t)})("editAction",function(t){return en(n),Ms().onEditGroup(t)})("deleteAction",function(t){return en(n),Ms().onDeleteGroup(t)})("customButtonAction",function(t){return en(n),Ms().onGroupInformation(t)}),fs(),fs(),fs(),ds(16,"mat-tab"),ss(17,uN,2,0,"ng-template",9),ds(18,"div",10),ps(19,"uds-logs-table",15),fs(),fs(),fs(),fs(),fs()}if(2&t){var i=Ms();Eo(2),cs("selectedIndex",i.selectedTab)("@.disabled",!0),Eo(4),cs("ngIf",i.authenticator&&i.gui),Eo(4),cs("ngIf",i.authenticator.type_info.canCreateUsers),Eo(1),cs("ngIf",!i.authenticator.type_info.canCreateUsers),Eo(4),cs("rest",i.groups)("multiSelect",!0)("allowExport",!0)("customButtons",i.customButtons)("tableId","authenticators-d-groups"+i.authenticator.id)("pageSize",i.api.config.admin.page_size),Eo(4),cs("rest",i.rest.authenticators)("itemId",i.authenticator.id)("tableId","authenticators-d-log"+i.authenticator.id)}}var hN=function(t){return["/authenticators",t]},dN=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:WM.ONLY_MENU}],this.authenticator=null,this.selectedTab=1,this.selectedTab=this.route.snapshot.paramMap.get("group")?2:1}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("authenticator");this.users=this.rest.authenticators.detail(e,"users"),this.groups=this.rest.authenticators.detail(e,"groups"),this.rest.authenticators.get(e).subscribe(function(e){t.authenticator=e,t.rest.authenticators.gui(e.type).subscribe(function(e){t.gui=e})})},t.prototype.onLoad=function(t){if(!0===t.param){var e=this.route.snapshot.paramMap.get("user"),n=this.route.snapshot.paramMap.get("group");t.table.selectElement("id",e||n)}},t.prototype.processElement=function(t){t.maintenance_state=t.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")},t.prototype.onNewUser=function(t){lL.launch(this.api,this.authenticator).subscribe(function(e){return t.table.overview()})},t.prototype.onEditUser=function(t){lL.launch(this.api,this.authenticator,t.table.selection.selected[0]).subscribe(function(e){return t.table.overview()})},t.prototype.onDeleteUser=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete user"))},t.prototype.onNewGroup=function(t){NL.launch(this.api,this.authenticator,t.param.type).subscribe(function(e){return t.table.overview()})},t.prototype.onEditGroup=function(t){NL.launch(this.api,this.authenticator,t.param.type,t.table.selection.selected[0]).subscribe(function(e){return t.table.overview()})},t.prototype.onDeleteGroup=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete group"))},t.prototype.onUserInformation=function(t){YL.launch(this.api,this.users,t.table.selection.selected[0])},t.prototype.onGroupInformation=function(t){nN.launch(this.api,this.groups,t.table.selection.selected[0])},t.\u0275fac=function(e){return new(e||t)(us(gg),us(WI),us(bI))},t.\u0275cmp=ce({type:t,selectors:[["uds-authenticators-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction"],[3,"rest","itemId","tableId"],[3,"value","gui"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","editAction","deleteAction","customButtonAction"]],template:function(t,e){1&t&&(ds(0,"div",0),ds(1,"div",1),ds(2,"a",2),ds(3,"i",3),$s(4,"arrow_back"),fs(),fs(),$s(5," \xa0"),ps(6,"img",4),$s(7),fs(),ss(8,cN,20,14,"div",5),fs()),2&t&&(Eo(2),cs("routerLink",Su(4,hN,e.authenticator?e.authenticator.id:"")),Eo(4),cs("src",e.api.staticURL("admin/img/icons/services.png"),Tr),Eo(1),Js(" \xa0",null==e.authenticator?null:e.authenticator.name," "),Eo(1),cs("ngIf",e.authenticator))},directives:[Ym,Dh,cM,tM,$A,hR,SR,$S,DR],styles:[""]}),t}(),fN=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("osmanager")},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New OS Manager"),!1)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit OS Manager"),!1)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete OS Manager"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("osmanager"))},t.\u0275fac=function(e){return new(e||t)(us(bI),us(gg),us(WI))},t.\u0275cmp=ce({type:t,selectors:[["uds-osmanagers"]],decls:2,vars:5,consts:[["icon","osmanagers",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(ds(0,"div"),ds(1,"uds-table",0),xs("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("loaded",function(t){return e.onLoad(t)}),fs(),fs()),2&t&&(Eo(1),cs("rest",e.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",e.api.config.admin.page_size))},directives:[hR],styles:[""]}),t}(),pN=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("transport")},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Transport"))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Transport"))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Transport"))},t.prototype.processElement=function(t){try{t.allowed_oss=t.allowed_oss.map(function(t){return t.id}).join(", ")}catch(e){t.allowed_oss=""}},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("transport"))},t.\u0275fac=function(e){return new(e||t)(us(bI),us(gg),us(WI))},t.\u0275cmp=ce({type:t,selectors:[["uds-transports"]],decls:2,vars:7,consts:[["icon","transports",3,"rest","multiSelect","allowExport","hasPermissions","newGrouped","onItem","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(ds(0,"div"),ds(1,"uds-table",0),xs("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("loaded",function(t){return e.onLoad(t)}),fs(),fs()),2&t&&(Eo(1),cs("rest",e.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",e.processElement)("pageSize",e.api.config.admin.page_size))},directives:[hR],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]}),t}(),gN=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("network")},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Network"),!1)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Network"),!1)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Network"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("network"))},t.\u0275fac=function(e){return new(e||t)(us(bI),us(gg),us(WI))},t.\u0275cmp=ce({type:t,selectors:[["uds-networks"]],decls:2,vars:5,consts:[["icon","networks",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(ds(0,"div"),ds(1,"uds-table",0),xs("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("loaded",function(t){return e.onLoad(t)}),fs(),fs()),2&t&&(Eo(1),cs("rest",e.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",e.api.config.admin.page_size))},directives:[hR],styles:[""]}),t}(),mN=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("proxy")},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Proxy"),!0)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Proxy"),!0)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Proxy"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("proxy"))},t.\u0275fac=function(e){return new(e||t)(us(bI),us(gg),us(WI))},t.\u0275cmp=ce({type:t,selectors:[["uds-proxies"]],decls:2,vars:5,consts:[["icon","proxy",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(ds(0,"div"),ds(1,"uds-table",0),xs("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("loaded",function(t){return e.onLoad(t)}),fs(),fs()),2&t&&(Eo(1),cs("rest",e.rest.proxy)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",e.api.config.admin.page_size))},directives:[hR],styles:[""]}),t}(),vN=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[nI.getGotoButton(YM,"provider_id"),nI.getGotoButton(qM,"provider_id","service_id"),nI.getGotoButton(QM,"osmanager_id"),nI.getGotoButton(tI,"pool_group_id")],this.editing=!1}return t.prototype.ngOnInit=function(){},t.prototype.onChange=function(t){var e=this,n=["initial_srvs","cache_l1_srvs","max_srvs"];if(null===t.on||"service_id"===t.on.field.name){if(""===t.all.service_id.value)return t.all.osmanager_id.gui.values.length=0,void n.forEach(function(e){return t.all[e].gui.rdonly=!0});this.rest.providers.service(t.all.service_id.value).subscribe(function(i){t.all.allow_users_reset.gui.rdonly=!i.info.can_reset,t.all.osmanager_id.gui.values.length=0,e.editing||(t.all.osmanager_id.gui.rdonly=!i.info.needs_manager),!0===i.info.needs_manager?e.rest.osManagers.overview().subscribe(function(e){e.forEach(function(e){e.servicesTypes.forEach(function(n){i.info.servicesTypeProvided.includes(n)&&t.all.osmanager_id.gui.values.push({id:e.id,text:e.name})})}),t.all.osmanager_id.value=t.all.osmanager_id.gui.values.length>0?t.all.osmanager_id.value||t.all.osmanager_id.gui.values[0].id:""}):(t.all.osmanager_id.gui.values.push({id:"",text:django.gettext("(This service does not requires an OS Manager)")}),t.all.osmanager_id.value=""),n.forEach(function(e){return t.all[e].gui.rdonly=!i.info.uses_cache}),t.all.cache_l2_srvs.gui.rdonly=!1===i.info.uses_cache||!1===i.info.uses_cache_l2,t.all.publish_on_save&&(t.all.publish_on_save.gui.rdonly=!i.info.needs_publication)}),n.forEach(function(e){t.all[e].gui.rdonly=!0})}},t.prototype.onNew=function(t){var e=this;this.editing=!1,this.api.gui.forms.typedNewForm(t,django.gettext("New service Pool"),!1,[{name:"publish_on_save",value:!0,gui:{label:django.gettext("Publish on creation"),tooltip:django.gettext("If selected, will initiate the publication inmediatly after creation"),type:rC.CHECKBOX,order:150,defvalue:"true"}}]).subscribe(function(t){return e.onChange(t)})},t.prototype.onEdit=function(t){var e=this;this.editing=!0,this.api.gui.forms.typedEditForm(t,django.gettext("Edit Service Pool"),!1).subscribe(function(t){return e.onChange(t)})},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete service pool"))},t.prototype.processElement=function(t){t.visible=this.api.yesno(t.visible),t.show_transports=this.api.yesno(t.show_transports),t.restrained?(t.name='warning '+this.api.gui.icon(t.info.icon)+t.name,t.state="T"):(t.name=this.api.gui.icon(t.info.icon)+t.name,t.meta_member.length>0&&(t.state="V")),t.name=this.api.safeString(t.name),t.pool_group_name=this.api.safeString(this.api.gui.icon(t.pool_group_thumb)+t.pool_group_name)},t.prototype.onDetail=function(t){this.api.navigation.gotoServicePoolDetail(t.param.id)},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("pool"))},t.\u0275fac=function(e){return new(e||t)(us(gg),us(WI),us(bI))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-pools"]],decls:1,vars:7,consts:[["icon","pools",3,"rest","multiSelect","allowExport","hasPermissions","onItem","customButtons","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(ds(0,"uds-table",0),xs("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("detailAction",function(t){return e.onDetail(t)})("loaded",function(t){return e.onLoad(t)}),fs()),2&t&&cs("rest",e.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",e.processElement)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)},directives:[hR],styles:[".mat-column-state, .mat-column-usage, .mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible{max-width:7rem;justify-content:center} .mat-column-show_transports{max-width:10rem;justify-content:center} .mat-column-pool_group_name{max-width:12rem} .row-state-T>.mat-cell{color:#d65014!important}"]}),t}();function yN(t,e){if(1&t&&(ds(0,"mat-option",8),$s(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Eo(1),Js(" ",n.name," ")}}function _N(t,e){if(1&t){var n=ys();ds(0,"uds-mat-select-search",9),xs("changed",function(t){return en(n),Ms().userFilter=t}),fs()}}function bN(t,e){if(1&t&&(ds(0,"mat-option",8),$s(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Eo(1),Js(" ",n.name," ")}}var wN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Lu(!0),this.auths=[],this.users=[],this.userFilter="",this.userService=i.userService,this.userServices=i.userServices}return t.launch=function(e,n,i){var r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,userServices:i},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.authId=this.userService.owner_info.auth_id||"",this.userId=this.userService.owner_info.user_id||"",this.rest.authenticators.summary().subscribe(function(e){t.auths=e,t.authChanged()})},t.prototype.changeAuth=function(t){this.userId="",this.authChanged()},t.prototype.filteredUsers=function(){var t=this;if(!this.userFilter)return this.users;var e=new Array;return this.users.forEach(function(n){(""===t.userFilter||n.name.toLocaleLowerCase().includes(t.userFilter.toLocaleLowerCase()))&&e.push(n)}),e},t.prototype.save=function(){var t=this;""!==this.userId&&""!==this.authId?this.userServices.save({id:this.userService.id,auth_id:this.authId,user_id:this.userId}).subscribe(function(){t.dialogRef.close(),t.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))},t.prototype.authChanged=function(){var t=this;this.rest.authenticators.detail(this.authId,"users").summary().subscribe(function(e){t.users=e})},t.\u0275fac=function(e){return new(e||t)(us(bI),us(WI),us(MS),us(TS))},t.\u0275cmp=ce({type:t,selectors:[["uds-change-assigned-service-owner"]],decls:25,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"]],template:function(t,e){1&t&&(ds(0,"h4",0),ds(1,"uds-translate"),$s(2,"Change owner of assigned service"),fs(),fs(),ds(3,"mat-dialog-content"),ds(4,"div",1),ds(5,"mat-form-field"),ds(6,"mat-label"),ds(7,"uds-translate"),$s(8,"Authenticator"),fs(),fs(),ds(9,"mat-select",2),xs("ngModelChange",function(t){return e.authId=t})("selectionChange",function(t){return e.changeAuth(t)}),ss(10,yN,2,2,"mat-option",3),fs(),fs(),ds(11,"mat-form-field"),ds(12,"mat-label"),ds(13,"uds-translate"),$s(14,"User"),fs(),fs(),ds(15,"mat-select",4),xs("ngModelChange",function(t){return e.userId=t}),ss(16,_N,1,0,"uds-mat-select-search",5),ss(17,bN,2,2,"mat-option",3),fs(),fs(),fs(),fs(),ds(18,"mat-dialog-actions"),ds(19,"button",6),ds(20,"uds-translate"),$s(21,"Cancel"),fs(),fs(),ds(22,"button",7),xs("click",function(){return e.save()}),ds(23,"uds-translate"),$s(24,"Ok"),fs(),fs(),fs()),2&t&&(Eo(9),cs("ngModel",e.authId),Eo(1),cs("ngForOf",e.auths),Eo(5),cs("ngModel",e.userId),Eo(1),cs("ngIf",e.users.length>10),Eo(1),cs("ngForOf",e.filteredUsers()))},directives:[FS,$S,VS,dD,iD,RD,zC,pA,Ih,Dh,zS,XS,NS,vS,PO],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}();function xN(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"New access rule for"),fs())}function kN(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Edit access rule for"),fs())}function SN(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Default fallback access for"),fs())}function CN(t,e){if(1&t){var n=ys();ds(0,"uds-mat-select-search",11),xs("changed",function(t){return en(n),Ms(2).calendarsFilter=t}),fs()}}function AN(t,e){if(1&t&&(ds(0,"mat-option",12),$s(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Eo(1),Js(" ",n.name," ")}}function MN(t,e){if(1&t){var n=ys();gs(0),ds(1,"mat-form-field"),ds(2,"mat-label"),ds(3,"uds-translate"),$s(4,"Priority"),fs(),fs(),ds(5,"input",8),xs("ngModelChange",function(t){return en(n),Ms().accessRule.priority=t}),fs(),fs(),ds(6,"mat-form-field"),ds(7,"mat-label"),ds(8,"uds-translate"),$s(9,"Calendar"),fs(),fs(),ds(10,"mat-select",3),xs("ngModelChange",function(t){return en(n),Ms().accessRule.calendarId=t}),ss(11,CN,1,0,"uds-mat-select-search",9),ss(12,AN,2,2,"mat-option",10),fs(),fs(),ms()}if(2&t){var i=Ms();Eo(5),cs("ngModel",i.accessRule.priority),Eo(5),cs("ngModel",i.accessRule.calendarId),Eo(1),cs("ngIf",i.calendars.length>10),Eo(1),cs("ngForOf",i.filtered(i.calendars,i.calendarsFilter))}}var IN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Lu(!0),this.calendars=[],this.calendarsFilter="",this.pool=i.pool,this.model=i.model,this.accessRule={id:void 0,priority:0,access:"ALLOW",calendarId:""},i.accessRule&&(this.accessRule.id=i.accessRule.id)}return t.launch=function(e,n,i,r){var o=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:i,accessRule:r},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.calendars.summary().subscribe(function(e){t.calendars=e}),void 0!==this.accessRule.id&&-1!==this.accessRule.id?this.model.get(this.accessRule.id).subscribe(function(e){t.accessRule=e}):-1===this.accessRule.id&&this.model.parentModel.getFallbackAccess(this.pool.id).subscribe(function(e){return t.accessRule.access=e})},t.prototype.filtered=function(t,e){return e?t.filter(function(t){return t.name.toLocaleLowerCase().includes(e.toLocaleLowerCase())}):t},t.prototype.save=function(){var t=this,e=function(){t.dialogRef.close(),t.onSave.emit(!0)};-1!==this.accessRule.id?this.model.save(this.accessRule).subscribe(e):this.model.parentModel.setFallbackAccess(this.pool.id,this.accessRule.access).subscribe(e)},t.\u0275fac=function(e){return new(e||t)(us(bI),us(WI),us(MS),us(TS))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-pools-access-calendars"]],decls:24,vars:6,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],[3,"ngModel","ngModelChange"],["value","ALLOW"],["value","DENY"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(ds(0,"h4",0),ss(1,xN,2,0,"uds-translate",1),ss(2,kN,2,0,"uds-translate",1),ss(3,SN,2,0,"uds-translate",1),$s(4),fs(),ds(5,"mat-dialog-content"),ds(6,"div",2),ss(7,MN,13,4,"ng-container",1),ds(8,"mat-form-field"),ds(9,"mat-label"),ds(10,"uds-translate"),$s(11,"Action"),fs(),fs(),ds(12,"mat-select",3),xs("ngModelChange",function(t){return e.accessRule.access=t}),ds(13,"mat-option",4),$s(14," ALLOW "),fs(),ds(15,"mat-option",5),$s(16," DENY "),fs(),fs(),fs(),fs(),fs(),ds(17,"mat-dialog-actions"),ds(18,"button",6),ds(19,"uds-translate"),$s(20,"Cancel"),fs(),fs(),ds(21,"button",7),xs("click",function(){return e.save()}),ds(22,"uds-translate"),$s(23,"Ok"),fs(),fs(),fs()),2&t&&(Eo(1),cs("ngIf",void 0===e.accessRule.id),Eo(1),cs("ngIf",void 0!==e.accessRule.id&&-1!==e.accessRule.id),Eo(1),cs("ngIf",-1===e.accessRule.id),Eo(1),Js(" ",e.pool.name,"\n"),Eo(3),cs("ngIf",-1!==e.accessRule.id),Eo(5),cs("ngModel",e.accessRule.access))},directives:[FS,Dh,VS,dD,iD,$S,RD,zC,pA,vS,zS,XS,NS,MO,vA,dC,Ih,PO],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}();function TN(t,e){if(1&t&&(ds(0,"mat-option",8),$s(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Eo(1),Js(" ",n.name," ")}}function DN(t,e){if(1&t){var n=ys();ds(0,"uds-mat-select-search",9),xs("changed",function(t){return en(n),Ms().groupFilter=t}),fs()}}function EN(t,e){if(1&t&&(gs(0),$s(1),ms()),2&t){var n=Ms().$implicit;Eo(1),Js(" (",n.comments,")")}}function ON(t,e){if(1&t&&(ds(0,"mat-option",8),$s(1),ss(2,EN,2,1,"ng-container",10),fs()),2&t){var n=e.$implicit;cs("value",n.id),Eo(1),Js(" ",n.name,""),Eo(1),cs("ngIf",n.comments)}}var PN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Lu(!0),this.model=null,this.auths=[],this.groups=[],this.groupFilter="",this.authId="",this.groupId="",this.pool=i.pool,this.model=i.model}return t.launch=function(e,n,i){var r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:i},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.summary().subscribe(function(e){t.auths=e,t.authChanged()})},t.prototype.changeAuth=function(t){this.groupId="",this.authChanged()},t.prototype.filteredGroups=function(){var t=this;return!this.groupFilter||this.groupFilter.length<3?this.groups:this.groups.filter(function(e){return e.name.toLocaleLowerCase().includes(t.groupFilter.toLocaleLowerCase())})},t.prototype.save=function(){var t=this;""!==this.groupId&&""!==this.authId?this.model.create({id:this.groupId}).subscribe(function(){t.dialogRef.close(),t.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid group"))},t.prototype.authChanged=function(){var t=this;""!==this.authId&&this.rest.authenticators.detail(this.authId,"groups").summary().subscribe(function(e){t.groups=e})},t.\u0275fac=function(e){return new(e||t)(us(bI),us(WI),us(MS),us(TS))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-pools-add-group"]],decls:26,vars:6,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"],[4,"ngIf"]],template:function(t,e){1&t&&(ds(0,"h4",0),ds(1,"uds-translate"),$s(2,"New group for"),fs(),$s(3),fs(),ds(4,"mat-dialog-content"),ds(5,"div",1),ds(6,"mat-form-field"),ds(7,"mat-label"),ds(8,"uds-translate"),$s(9,"Authenticator"),fs(),fs(),ds(10,"mat-select",2),xs("ngModelChange",function(t){return e.authId=t})("selectionChange",function(t){return e.changeAuth(t)}),ss(11,TN,2,2,"mat-option",3),fs(),fs(),ds(12,"mat-form-field"),ds(13,"mat-label"),ds(14,"uds-translate"),$s(15,"Group"),fs(),fs(),ds(16,"mat-select",4),xs("ngModelChange",function(t){return e.groupId=t}),ss(17,DN,1,0,"uds-mat-select-search",5),ss(18,ON,3,3,"mat-option",3),fs(),fs(),fs(),fs(),ds(19,"mat-dialog-actions"),ds(20,"button",6),ds(21,"uds-translate"),$s(22,"Cancel"),fs(),fs(),ds(23,"button",7),xs("click",function(){return e.save()}),ds(24,"uds-translate"),$s(25,"Ok"),fs(),fs(),fs()),2&t&&(Eo(3),Js(" ",e.pool.name,"\n"),Eo(7),cs("ngModel",e.authId),Eo(1),cs("ngForOf",e.auths),Eo(5),cs("ngModel",e.groupId),Eo(1),cs("ngIf",e.groups.length>10),Eo(1),cs("ngForOf",e.filteredGroups()))},directives:[FS,$S,VS,dD,iD,RD,zC,pA,Ih,Dh,zS,XS,NS,vS,PO],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}();function RN(t,e){if(1&t){var n=ys();ds(0,"uds-mat-select-search",7),xs("changed",function(t){return en(n),Ms().transportsFilter=t}),fs()}}function LN(t,e){if(1&t&&(gs(0),$s(1),ms()),2&t){var n=Ms().$implicit;Eo(1),Js(" (",n.comments,")")}}function NN(t,e){if(1&t&&(ds(0,"mat-option",8),$s(1),ss(2,LN,2,1,"ng-container",9),fs()),2&t){var n=e.$implicit;cs("value",n.id),Eo(1),Js(" ",n.name,""),Eo(1),cs("ngIf",n.comments)}}var FN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Lu(!0),this.transports=[],this.transportsFilter="",this.transportId="",this.servicePool=i.servicePool}return t.launch=function(e,n){var i=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.transports.summary().subscribe(function(e){t.transports=e.filter(function(e){return t.servicePool.info.allowedProtocols.includes(e.protocol)})})},t.prototype.filteredTransports=function(){var t=this;return this.transportsFilter?this.transports.filter(function(e){return e.name.toLocaleLowerCase().includes(t.transportsFilter.toLocaleLowerCase())}):this.transports},t.prototype.save=function(){var t=this;""!==this.transportId?this.rest.servicesPools.detail(this.servicePool.id,"transports").create({id:this.transportId}).subscribe(function(){t.dialogRef.close(),t.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid transport"))},t.\u0275fac=function(e){return new(e||t)(us(bI),us(WI),us(MS),us(TS))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-pools-add-transport"]],decls:20,vars:4,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"],[4,"ngIf"]],template:function(t,e){1&t&&(ds(0,"h4",0),ds(1,"uds-translate"),$s(2,"New transport for"),fs(),$s(3),fs(),ds(4,"mat-dialog-content"),ds(5,"div",1),ds(6,"mat-form-field"),ds(7,"mat-label"),ds(8,"uds-translate"),$s(9,"Transport"),fs(),fs(),ds(10,"mat-select",2),xs("ngModelChange",function(t){return e.transportId=t}),ss(11,RN,1,0,"uds-mat-select-search",3),ss(12,NN,3,3,"mat-option",4),fs(),fs(),fs(),fs(),ds(13,"mat-dialog-actions"),ds(14,"button",5),ds(15,"uds-translate"),$s(16,"Cancel"),fs(),fs(),ds(17,"button",6),xs("click",function(){return e.save()}),ds(18,"uds-translate"),$s(19,"Ok"),fs(),fs(),fs()),2&t&&(Eo(3),Js(" ",e.servicePool.name,"\n"),Eo(7),cs("ngModel",e.transportId),Eo(1),cs("ngIf",e.transports.length>10),Eo(1),cs("ngForOf",e.filteredTransports()))},directives:[FS,$S,VS,dD,iD,RD,zC,pA,Dh,Ih,zS,XS,NS,PO,vS],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}(),VN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Lu(!0),this.reason="",this.servicePool=i.servicePool}return t.launch=function(e,n){var i=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){},t.prototype.save=function(){var t=this;this.rest.servicesPools.detail(this.servicePool.id,"publications").invoke("publish","changelog="+encodeURIComponent(this.reason)).subscribe(function(){t.dialogRef.close(),t.onSave.emit(!0)})},t.\u0275fac=function(e){return new(e||t)(us(bI),us(WI),us(MS),us(TS))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-pools-new-publication"]],decls:18,vars:2,consts:[["mat-dialog-title",""],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,e){1&t&&(ds(0,"h4",0),ds(1,"uds-translate"),$s(2,"New publication for"),fs(),$s(3),fs(),ds(4,"mat-dialog-content"),ds(5,"div",1),ds(6,"mat-form-field"),ds(7,"mat-label"),ds(8,"uds-translate"),$s(9,"Comments"),fs(),fs(),ds(10,"input",2),xs("ngModelChange",function(t){return e.reason=t}),fs(),fs(),fs(),fs(),ds(11,"mat-dialog-actions"),ds(12,"button",3),ds(13,"uds-translate"),$s(14,"Cancel"),fs(),fs(),ds(15,"button",4),xs("click",function(){return e.save()}),ds(16,"uds-translate"),$s(17,"Ok"),fs(),fs(),fs()),2&t&&(Eo(3),Js(" ",e.servicePool.name,"\n"),Eo(7),cs("ngModel",e.reason))},directives:[FS,$S,VS,dD,iD,MO,dC,zC,pA,zS,XS,NS],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}(),zN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Lu(!0),this.servicePool=i.servicePool}return t.launch=function(e,n){var i=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1})},t.prototype.ngOnInit=function(){this.changeLogPubs=this.rest.servicesPools.detail(this.servicePool.id,"changelog")},t.\u0275fac=function(e){return new(e||t)(us(bI),us(WI),us(MS),us(TS))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-pools-publications-changelog"]],decls:11,vars:4,consts:[["mat-dialog-title",""],["icon","publications",3,"rest","allowExport","tableId"],["changeLog",""],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(t,e){1&t&&(ds(0,"h4",0),ds(1,"uds-translate"),$s(2,"Changelog of"),fs(),$s(3),fs(),ds(4,"mat-dialog-content"),ps(5,"uds-table",1,2),fs(),ds(7,"mat-dialog-actions"),ds(8,"button",3),ds(9,"uds-translate"),$s(10,"Ok"),fs(),fs(),fs()),2&t&&(Eo(3),Js(" ",e.servicePool.name,"\n"),Eo(2),cs("rest",e.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+e.servicePool.id))},directives:[FS,$S,VS,hR,zS,XS,NS],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function BN(t,e){1&t&&(gs(0),ds(1,"uds-translate"),$s(2,"Edit action for"),fs(),ms())}function HN(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"New action for"),fs())}function jN(t,e){if(1&t){var n=ys();ds(0,"uds-mat-select-search",14),xs("changed",function(t){return en(n),Ms().calendarsFilter=t}),fs()}}function GN(t,e){if(1&t&&(ds(0,"mat-option",15),$s(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Eo(1),Js(" ",n.name," ")}}function UN(t,e){if(1&t&&(ds(0,"mat-option",15),$s(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Eo(1),Js(" ",n.description," ")}}function WN(t,e){if(1&t){var n=ys();ds(0,"uds-mat-select-search",14),xs("changed",function(t){return en(n),Ms(2).transportsFilter=t}),fs()}}function YN(t,e){if(1&t&&(ds(0,"mat-option",15),$s(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Eo(1),Js(" ",n.name," ")}}function qN(t,e){if(1&t){var n=ys();gs(0),ds(1,"mat-form-field"),ds(2,"mat-label"),ds(3,"uds-translate"),$s(4,"Transport"),fs(),fs(),ds(5,"mat-select",4),xs("ngModelChange",function(t){return en(n),Ms().paramValue=t}),ss(6,WN,1,0,"uds-mat-select-search",5),ss(7,YN,2,2,"mat-option",6),fs(),fs(),ms()}if(2&t){var i=Ms();Eo(5),cs("ngModel",i.paramValue),Eo(1),cs("ngIf",i.transports.length>10),Eo(1),cs("ngForOf",i.filtered(i.transports,i.transportsFilter))}}function XN(t,e){if(1&t&&(ds(0,"mat-option",15),$s(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Eo(1),Js(" ",n.name," ")}}function ZN(t,e){if(1&t){var n=ys();ds(0,"uds-mat-select-search",14),xs("changed",function(t){return en(n),Ms(2).groupsFilter=t}),fs()}}function KN(t,e){if(1&t&&(ds(0,"mat-option",15),$s(1),fs()),2&t){var n=e.$implicit;cs("value",Ms(2).authenticator+"@"+n.id),Eo(1),Js(" ",n.name," ")}}function $N(t,e){if(1&t){var n=ys();gs(0),ds(1,"mat-form-field"),ds(2,"mat-label"),ds(3,"uds-translate"),$s(4,"Authenticator"),fs(),fs(),ds(5,"mat-select",10),xs("ngModelChange",function(t){return en(n),Ms().authenticator=t})("valueChange",function(t){return en(n),Ms().changedAuthenticator(t)}),ss(6,XN,2,2,"mat-option",6),fs(),fs(),ds(7,"mat-form-field"),ds(8,"mat-label"),ds(9,"uds-translate"),$s(10,"Group"),fs(),fs(),ds(11,"mat-select",4),xs("ngModelChange",function(t){return en(n),Ms().paramValue=t}),ss(12,ZN,1,0,"uds-mat-select-search",5),ss(13,KN,2,2,"mat-option",6),fs(),fs(),ms()}if(2&t){var i=Ms();Eo(5),cs("ngModel",i.authenticator),Eo(1),cs("ngForOf",i.authenticators),Eo(5),cs("ngModel",i.paramValue),Eo(1),cs("ngIf",i.groups.length>10),Eo(1),cs("ngForOf",i.filtered(i.groups,i.groupsFilter))}}function QN(t,e){if(1&t){var n=ys();gs(0),ds(1,"div",8),ds(2,"span",16),$s(3),fs(),$s(4,"\xa0 "),ds(5,"mat-slide-toggle",4),xs("ngModelChange",function(t){return en(n),Ms().paramValue=t}),fs(),fs(),ms()}if(2&t){var i=Ms();Eo(3),Qs(i.parameter.description),Eo(2),cs("ngModel",i.paramValue)}}function JN(t,e){if(1&t){var n=ys();gs(0),ds(1,"mat-form-field"),ds(2,"mat-label"),$s(3),fs(),ds(4,"input",17),xs("ngModelChange",function(t){return en(n),Ms().paramValue=t}),fs(),fs(),ms()}if(2&t){var i=Ms();Eo(3),Js(" ",i.parameter.description," "),Eo(1),cs("type",i.parameter.type)("ngModel",i.paramValue)}}var tF=function(){return["transport","group","bool"]},eF=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Lu(!0),this.calendars=[],this.actionList=[],this.authenticators=[],this.transports=[],this.groups=[],this.paramsDict={},this.calendarsFilter="",this.groupsFilter="",this.transportsFilter="",this.authenticator="",this.parameter={},this.paramValue="",this.servicePool=i.servicePool,this.scheduledAction={id:void 0,action:"",calendar:"",calendarId:"",atStart:!0,eventsOffset:0,params:{}},void 0!==i.scheduledAction&&(this.scheduledAction.id=i.scheduledAction.id)}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n,scheduledAction:i},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.summary().subscribe(function(e){return t.authenticators=e}),this.rest.transports.summary().subscribe(function(e){return t.transports=e}),this.rest.calendars.summary().subscribe(function(e){return t.calendars=e}),this.rest.servicesPools.actionsList(this.servicePool.id).subscribe(function(e){t.actionList=e,t.actionList.forEach(function(e){t.paramsDict[e.id]=e.params[0]}),void 0!==t.scheduledAction.id&&t.rest.servicesPools.detail(t.servicePool.id,"actions").get(t.scheduledAction.id).subscribe(function(e){t.scheduledAction=e,t.changedAction(t.scheduledAction.action)})})},t.prototype.filtered=function(t,e){return e?t.filter(function(t){return t.name.toLocaleLowerCase().includes(e.toLocaleLowerCase())}):t},t.prototype.changedAction=function(t){if(this.parameter=this.paramsDict[t],void 0!==this.parameter&&(this.paramValue=this.scheduledAction.params[this.parameter.name],void 0===this.paramValue&&(this.paramValue=!1!==this.parameter.default&&(this.parameter.default||"")),"group"===this.parameter.type)){var e=this.paramValue.split("@");2!==e.length&&(e=["",""]),this.authenticator=e[0],this.changedAuthenticator(this.authenticator)}},t.prototype.changedAuthenticator=function(t){var e=this;t&&this.rest.authenticators.detail(t,"groups").summary().subscribe(function(t){return e.groups=t})},t.prototype.save=function(){var t=this;this.scheduledAction.params={},this.parameter&&(this.scheduledAction.params[this.parameter.name]=this.paramValue),this.rest.servicesPools.detail(this.servicePool.id,"actions").save(this.scheduledAction).subscribe(function(){t.dialogRef.close(),t.onSave.emit(!0)})},t.\u0275fac=function(e){return new(e||t)(us(bI),us(WI),us(MS),us(TS))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-pools-scheduled-action"]],decls:42,vars:16,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["editTitle",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number",3,"ngModel","ngModelChange"],[1,"mat-form-field-infix"],[1,"label-atstart"],[3,"ngModel","ngModelChange","valueChange"],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"],[1,"label"],["matInput","",3,"type","ngModel","ngModelChange"]],template:function(t,e){if(1&t&&(ds(0,"h4",0),ss(1,BN,3,0,"ng-container",1),ss(2,HN,2,0,"ng-template",null,2,tc),$s(4),fs(),ds(5,"mat-dialog-content"),ds(6,"div",3),ds(7,"mat-form-field"),ds(8,"mat-label"),ds(9,"uds-translate"),$s(10,"Calendar"),fs(),fs(),ds(11,"mat-select",4),xs("ngModelChange",function(t){return e.scheduledAction.calendarId=t}),ss(12,jN,1,0,"uds-mat-select-search",5),ss(13,GN,2,2,"mat-option",6),fs(),fs(),ds(14,"mat-form-field"),ds(15,"mat-label"),ds(16,"uds-translate"),$s(17,"Events offset (minutes)"),fs(),fs(),ds(18,"input",7),xs("ngModelChange",function(t){return e.scheduledAction.eventsOffset=t}),fs(),fs(),ds(19,"div",8),ds(20,"span",9),ds(21,"uds-translate"),$s(22,"At the beginning of the interval?"),fs(),fs(),ds(23,"mat-slide-toggle",4),xs("ngModelChange",function(t){return e.scheduledAction.atStart=t}),$s(24),fs(),fs(),ds(25,"mat-form-field"),ds(26,"mat-label"),ds(27,"uds-translate"),$s(28,"Action"),fs(),fs(),ds(29,"mat-select",10),xs("ngModelChange",function(t){return e.scheduledAction.action=t})("valueChange",function(t){return e.changedAction(t)}),ss(30,UN,2,2,"mat-option",6),fs(),fs(),ss(31,qN,8,3,"ng-container",11),ss(32,$N,14,5,"ng-container",11),ss(33,QN,6,2,"ng-container",11),ss(34,JN,5,3,"ng-container",11),fs(),fs(),ds(35,"mat-dialog-actions"),ds(36,"button",12),ds(37,"uds-translate"),$s(38,"Cancel"),fs(),fs(),ds(39,"button",13),xs("click",function(){return e.save()}),ds(40,"uds-translate"),$s(41,"Ok"),fs(),fs(),fs()),2&t){var n=ls(3);Eo(1),cs("ngIf",void 0!==e.scheduledAction.id)("ngIfElse",n),Eo(3),Js(" ",e.servicePool.name,"\n"),Eo(7),cs("ngModel",e.scheduledAction.calendarId),Eo(1),cs("ngIf",e.calendars.length>10),Eo(1),cs("ngForOf",e.filtered(e.calendars,e.calendarsFilter)),Eo(5),cs("ngModel",e.scheduledAction.eventsOffset),Eo(5),cs("ngModel",e.scheduledAction.atStart),Eo(1),Js(" ",e.api.yesno(e.scheduledAction.atStart)," "),Eo(5),cs("ngModel",e.scheduledAction.action),Eo(1),cs("ngForOf",e.actionList),Eo(1),cs("ngIf","transport"===(null==e.parameter?null:e.parameter.type)),Eo(1),cs("ngIf","group"===(null==e.parameter?null:e.parameter.type)),Eo(1),cs("ngIf","bool"===(null==e.parameter?null:e.parameter.type)),Eo(1),cs("ngIf",(null==e.parameter?null:e.parameter.type)&&!ku(15,tF).includes(e.parameter.type))}},directives:[FS,Dh,VS,dD,iD,$S,RD,zC,pA,Ih,MO,vA,dC,_L,zS,XS,NS,PO,vS],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}.label-atstart[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}"]}),t}(),nF=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Lu(!0),this.userService=i.userService,this.model=i.model}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,model:i},disableClose:!1})},t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)(us(bI),us(WI),us(MS),us(TS))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-pools-userservices-log"]],decls:10,vars:4,consts:[["mat-dialog-title",""],[3,"rest","itemId","tableId"],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(t,e){1&t&&(ds(0,"h4",0),ds(1,"uds-translate"),$s(2,"Logs of"),fs(),$s(3),fs(),ds(4,"mat-dialog-content"),ps(5,"uds-logs-table",1),fs(),ds(6,"mat-dialog-actions"),ds(7,"button",2),ds(8,"uds-translate"),$s(9,"Ok"),fs(),fs(),fs()),2&t&&(Eo(3),Js(" ",e.userService.name,"\n"),Eo(2),cs("rest",e.model)("itemId",e.userService.id)("tableId","servicePools-d-uslog"+e.userService.id))},directives:[FS,$S,VS,SR,zS,XS,NS],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function iF(t,e){if(1&t){var n=ys();ds(0,"uds-mat-select-search",8),xs("changed",function(t){return en(n),Ms().assignablesServicesFilter=t}),fs()}}function rF(t,e){if(1&t&&(ds(0,"mat-option",9),$s(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Eo(1),Js(" ",n.text," ")}}function oF(t,e){if(1&t&&(ds(0,"mat-option",9),$s(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Eo(1),Js(" ",n.name," ")}}function aF(t,e){if(1&t){var n=ys();ds(0,"uds-mat-select-search",8),xs("changed",function(t){return en(n),Ms().userFilter=t}),fs()}}function sF(t,e){if(1&t&&(ds(0,"mat-option",9),$s(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Eo(1),Js(" ",n.name," ")}}var lF=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Lu(!0),this.auths=[],this.assignablesServices=[],this.assignablesServicesFilter="",this.users=[],this.userFilter="",this.servicePool=i.servicePool}return t.launch=function(e,n){var i=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.authId="",this.userId="",this.rest.authenticators.summary().subscribe(function(e){t.auths=e,t.authChanged()}),this.rest.servicesPools.listAssignables(this.servicePool.id).subscribe(function(e){t.assignablesServices=e})},t.prototype.changeAuth=function(t){this.userId="",this.authChanged()},t.prototype.filteredUsers=function(){var t=this;if(!this.userFilter)return this.users;var e=new Array;return this.users.forEach(function(n){n.name.toLocaleLowerCase().includes(t.userFilter.toLocaleLowerCase())&&e.push(n)}),e},t.prototype.filteredAssignables=function(){var t=this;if(!this.assignablesServicesFilter)return this.assignablesServices;var e=new Array;return this.assignablesServices.forEach(function(n){n.text.toLocaleLowerCase().includes(t.assignablesServicesFilter.toLocaleLowerCase())&&e.push(n)}),e},t.prototype.save=function(){var t=this;""!==this.userId&&""!==this.authId?this.rest.servicesPools.createFromAssignable(this.servicePool.id,this.userId,this.serviceId).subscribe(function(e){t.dialogRef.close(),t.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))},t.prototype.authChanged=function(){var t=this;this.authId&&this.rest.authenticators.detail(this.authId,"users").summary().subscribe(function(e){t.users=e})},t.\u0275fac=function(e){return new(e||t)(us(bI),us(WI),us(MS),us(TS))},t.\u0275cmp=ce({type:t,selectors:[["uds-assign-service-to-owner"]],decls:32,vars:8,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange","selectionChange"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(ds(0,"h4",0),ds(1,"uds-translate"),$s(2,"Assign service to user manually"),fs(),fs(),ds(3,"mat-dialog-content"),ds(4,"div",1),ds(5,"mat-form-field"),ds(6,"mat-label"),ds(7,"uds-translate"),$s(8,"Service"),fs(),fs(),ds(9,"mat-select",2),xs("ngModelChange",function(t){return e.serviceId=t}),ss(10,iF,1,0,"uds-mat-select-search",3),ss(11,rF,2,2,"mat-option",4),fs(),fs(),ds(12,"mat-form-field"),ds(13,"mat-label"),ds(14,"uds-translate"),$s(15,"Authenticator"),fs(),fs(),ds(16,"mat-select",5),xs("ngModelChange",function(t){return e.authId=t})("selectionChange",function(t){return e.changeAuth(t)}),ss(17,oF,2,2,"mat-option",4),fs(),fs(),ds(18,"mat-form-field"),ds(19,"mat-label"),ds(20,"uds-translate"),$s(21,"User"),fs(),fs(),ds(22,"mat-select",2),xs("ngModelChange",function(t){return e.userId=t}),ss(23,aF,1,0,"uds-mat-select-search",3),ss(24,sF,2,2,"mat-option",4),fs(),fs(),fs(),fs(),ds(25,"mat-dialog-actions"),ds(26,"button",6),ds(27,"uds-translate"),$s(28,"Cancel"),fs(),fs(),ds(29,"button",7),xs("click",function(){return e.save()}),ds(30,"uds-translate"),$s(31,"Ok"),fs(),fs(),fs()),2&t&&(Eo(9),cs("ngModel",e.serviceId),Eo(1),cs("ngIf",e.assignablesServices.length>10),Eo(1),cs("ngForOf",e.filteredAssignables()),Eo(5),cs("ngModel",e.authId),Eo(1),cs("ngForOf",e.auths),Eo(5),cs("ngModel",e.userId),Eo(1),cs("ngIf",e.users.length>10),Eo(1),cs("ngForOf",e.filteredUsers()))},directives:[FS,$S,VS,dD,iD,RD,zC,pA,Dh,Ih,zS,XS,NS,PO,vS],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}(),uF=function(){function t(t){this.rest=t,this.chart=null}return t.prototype.onResize=function(t){this.chart&&this.chart.resize()},t.prototype.ngOnInit=function(){var t=this;this.rest.system.stats("complete",this.poolUuid).subscribe(function(e){t.options={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:e.assigned.map(function(t){return iT("SHORT_DATETIME_FORMAT",new Date(t.stamp))}),boundaryGap:!1},yAxis:{type:"value",boundaryGap:!1},series:[{name:django.gettext("Assigned"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:e.assigned.map(function(t){return t.value})},{name:django.gettext("Cached"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:e.cached.map(function(t){return t.value})},{name:django.gettext("In use"),type:"line",smooth:!0,data:e.inuse.map(function(t){return t.value})}]}})},t.prototype.chartInit=function(t){this.chart=t},t.\u0275fac=function(e){return new(e||t)(us(WI))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-pools-charts"]],hostBindings:function(t,e){1&t&&xs("resize",function(t){return e.onResize(t)},!1,Vr)},inputs:{poolUuid:"poolUuid"},decls:2,vars:1,consts:[[1,"statistics-chart"],["echarts","","theme","dark-digerati",3,"options","chartInit"]],template:function(t,e){1&t&&(ds(0,"div",0),ds(1,"div",1),xs("chartInit",function(t){return e.chartInit(t)}),fs(),fs()),2&t&&(Eo(1),cs("options",e.options))},directives:[DT],styles:[""]}),t}();function cF(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Summary"),fs())}function hF(t,e){if(1&t&&ps(0,"uds-information",21),2&t){var n=Ms(2);cs("value",n.servicePool)("gui",n.gui)}}function dF(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Assigned services"),fs())}function fF(t,e){if(1&t){var n=ys();ds(0,"uds-table",22),xs("customButtonAction",function(t){return en(n),Ms(2).onCustomAssigned(t)})("deleteAction",function(t){return en(n),Ms(2).onDeleteAssigned(t)}),fs()}if(2&t){var i=Ms(2);cs("rest",i.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",i.processsAssignedElement)("tableId","servicePools-d-services"+i.servicePool.id)("customButtons",i.customButtonsAssignedServices)("pageSize",i.api.config.admin.page_size)}}function pF(t,e){if(1&t){var n=ys();ds(0,"uds-table",23),xs("customButtonAction",function(t){return en(n),Ms(2).onCustomAssigned(t)})("newAction",function(t){return en(n),Ms(2).onNewAssigned(t)})("deleteAction",function(t){return en(n),Ms(2).onDeleteAssigned(t)}),fs()}if(2&t){var i=Ms(2);cs("rest",i.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",i.processsAssignedElement)("tableId","servicePools-d-services"+i.servicePool.id)("customButtons",i.customButtonsAssignedServices)("pageSize",i.api.config.admin.page_size)}}function gF(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Cache"),fs())}function mF(t,e){if(1&t){var n=ys();ds(0,"mat-tab"),ss(1,gF,2,0,"ng-template",9),ds(2,"div",10),ds(3,"uds-table",24),xs("customButtonAction",function(t){return en(n),Ms(2).onCustomCached(t)})("deleteAction",function(t){return en(n),Ms(2).onDeleteCache(t)}),fs(),fs(),fs()}if(2&t){var i=Ms(2);Eo(3),cs("rest",i.cache)("multiSelect",!0)("allowExport",!0)("onItem",i.processsCacheElement)("tableId","servicePools-d-cache"+i.servicePool.id)("customButtons",i.customButtonsCachedServices)("pageSize",i.api.config.admin.page_size)}}function vF(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Groups"),fs())}function yF(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Transports"),fs())}function _F(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Publications"),fs())}function bF(t,e){if(1&t){var n=ys();ds(0,"mat-tab"),ss(1,_F,2,0,"ng-template",9),ds(2,"div",10),ds(3,"uds-table",25),xs("customButtonAction",function(t){return en(n),Ms(2).onCustomPublication(t)})("newAction",function(t){return en(n),Ms(2).onNewPublication(t)})("rowSelected",function(t){return en(n),Ms(2).onPublicationRowSelect(t)}),fs(),fs(),fs()}if(2&t){var i=Ms(2);Eo(3),cs("rest",i.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+i.servicePool.id)("customButtons",i.customButtonsPublication)("pageSize",i.api.config.admin.page_size)}}function wF(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Scheduled actions"),fs())}function xF(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Access calendars"),fs())}function kF(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Charts"),fs())}function SF(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Logs"),fs())}function CF(t,e){if(1&t){var n=ys();ds(0,"div",6),ds(1,"div",7),ds(2,"mat-tab-group",8),xs("selectedIndexChange",function(t){return en(n),Ms().selectedTab=t}),ds(3,"mat-tab"),ss(4,cF,2,0,"ng-template",9),ds(5,"div",10),ss(6,hF,1,2,"uds-information",11),fs(),fs(),ds(7,"mat-tab"),ss(8,dF,2,0,"ng-template",9),ds(9,"div",10),ss(10,fF,1,7,"uds-table",12),ss(11,pF,1,7,"ng-template",null,13,tc),fs(),fs(),ss(13,mF,4,7,"mat-tab",14),ds(14,"mat-tab"),ss(15,vF,2,0,"ng-template",9),ds(16,"div",10),ds(17,"uds-table",15),xs("newAction",function(t){return en(n),Ms().onNewGroup(t)})("deleteAction",function(t){return en(n),Ms().onDeleteGroup(t)}),fs(),fs(),fs(),ds(18,"mat-tab"),ss(19,yF,2,0,"ng-template",9),ds(20,"div",10),ds(21,"uds-table",16),xs("newAction",function(t){return en(n),Ms().onNewTransport(t)})("deleteAction",function(t){return en(n),Ms().onDeleteTransport(t)}),fs(),fs(),fs(),ss(22,bF,4,6,"mat-tab",14),ds(23,"mat-tab"),ss(24,wF,2,0,"ng-template",9),ds(25,"div",10),ds(26,"uds-table",17),xs("customButtonAction",function(t){return en(n),Ms().onCustomScheduleAction(t)})("newAction",function(t){return en(n),Ms().onNewScheduledAction(t)})("editAction",function(t){return en(n),Ms().onEditScheduledAction(t)})("deleteAction",function(t){return en(n),Ms().onDeleteScheduledAction(t)}),fs(),fs(),fs(),ds(27,"mat-tab"),ss(28,xF,2,0,"ng-template",9),ds(29,"div",10),ds(30,"uds-table",18),xs("newAction",function(t){return en(n),Ms().onNewAccessCalendar(t)})("editAction",function(t){return en(n),Ms().onEditAccessCalendar(t)})("deleteAction",function(t){return en(n),Ms().onDeleteAccessCalendar(t)})("loaded",function(t){return en(n),Ms().onAccessCalendarLoad(t)}),fs(),fs(),fs(),ds(31,"mat-tab"),ss(32,kF,2,0,"ng-template",9),ds(33,"div",10),ps(34,"uds-service-pools-charts",19),fs(),fs(),ds(35,"mat-tab"),ss(36,SF,2,0,"ng-template",9),ds(37,"div",10),ps(38,"uds-logs-table",20),fs(),fs(),fs(),fs(),fs()}if(2&t){var i=ls(12),r=Ms();Eo(2),cs("selectedIndex",r.selectedTab)("@.disabled",!0),Eo(4),cs("ngIf",r.servicePool&&r.gui),Eo(4),cs("ngIf",!1===r.servicePool.info.must_assign_manually)("ngIfElse",i),Eo(3),cs("ngIf",r.cache),Eo(4),cs("rest",r.groups)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonsGroups)("tableId","servicePools-d-groups"+r.servicePool.id)("pageSize",r.api.config.admin.page_size),Eo(4),cs("rest",r.transports)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonsTransports)("tableId","servicePools-d-transports"+r.servicePool.id)("pageSize",r.api.config.admin.page_size),Eo(1),cs("ngIf",r.publications),Eo(4),cs("rest",r.scheduledActions)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-actions"+r.servicePool.id)("customButtons",r.customButtonsScheduledAction)("onItem",r.processsCalendarOrScheduledElement)("pageSize",r.api.config.admin.page_size),Eo(4),cs("rest",r.accessCalendars)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonAccessCalendars)("tableId","servicePools-d-access"+r.servicePool.id)("onItem",r.processsCalendarOrScheduledElement)("pageSize",r.api.config.admin.page_size),Eo(4),cs("poolUuid",r.servicePool.id),Eo(4),cs("rest",r.rest.servicesPools)("itemId",r.servicePool.id)("tableId","servicePools-d-log"+r.servicePool.id)("pageSize",r.api.config.admin.page_size)}}var AF=function(t){return["/pools","service-pools",t]},MF='event'+django.gettext("Logs")+"",IF='computer'+django.gettext("VNC")+"",TF='schedule'+django.gettext("Launch now")+"",DF='perm_identity'+django.gettext("Change owner")+"",EF='perm_identity'+django.gettext("Assign service")+"",OF='cancel'+django.gettext("Cancel")+"",PF='event'+django.gettext("Changelog")+"",RF=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtonsScheduledAction=[{id:"launch-action",html:TF,type:WM.SINGLE_SELECT},nI.getGotoButton(JM,"calendarId")],this.customButtonAccessCalendars=[nI.getGotoButton(JM,"calendarId")],this.customButtonsAssignedServices=[{id:"change-owner",html:DF,type:WM.SINGLE_SELECT},{id:"log",html:MF,type:WM.SINGLE_SELECT},{id:"vnc",html:IF,type:WM.ONLY_MENU},nI.getGotoButton(ZM,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:MF,type:WM.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:OF,type:WM.SINGLE_SELECT},{id:"changelog",html:PF,type:WM.ALWAYS}],this.customButtonsGroups=[nI.getGotoButton(KM,"auth_id","id")],this.customButtonsTransports=[nI.getGotoButton($M,"id")],this.servicePool=null,this.gui=null,this.selectedTab=1}return t.cleanInvalidSelections=function(t){return t.table.selection.selected.filter(function(t){return["E","R","M","S","C"].includes(t.state)}).forEach(function(e){return t.table.selection.deselect(e)}),t.table.selection.isEmpty()},t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("pool");this.assignedServices=this.rest.servicesPools.detail(e,"services"),this.groups=this.rest.servicesPools.detail(e,"groups"),this.transports=this.rest.servicesPools.detail(e,"transports"),this.scheduledActions=this.rest.servicesPools.detail(e,"actions"),this.accessCalendars=this.rest.servicesPools.detail(e,"access"),this.rest.servicesPools.get(e).subscribe(function(n){t.servicePool=n,t.cache=t.servicePool.info.uses_cache?t.rest.servicesPools.detail(e,"cache"):null,t.publications=t.servicePool.info.needs_publication?t.rest.servicesPools.detail(e,"publications"):null,t.servicePool.info.can_list_assignables&&t.customButtonsAssignedServices.push({id:"assign-service",html:EF,type:WM.ALWAYS}),t.rest.servicesPools.gui().subscribe(function(e){t.gui=e.filter(function(e){return!(!1===t.servicePool.info.uses_cache&&["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"].includes(e.name)||!1===t.servicePool.info.uses_cache_l2&&"cache_l2_srvs"===e.name||!1===t.servicePool.info.needs_manager&&"osmanager_id"===e.name)})})})},t.prototype.onNewAssigned=function(t){},t.prototype.vnc=function(t){var e=new Blob(["[connection]\nhost="+t.ip+"\nport=5900\n"],{type:"application/extension-vnc"});setTimeout(function(){(0,WO.saveAs)(e,t.ip+".vnc")},100)},t.prototype.onCustomAssigned=function(t){var e=t.table.selection.selected[0];if("change-owner"===t.param.id){if(["E","R","M","S","C"].includes(e.state))return;wN.launch(this.api,e,this.assignedServices).subscribe(function(e){return t.table.overview()})}else"log"===t.param.id?nF.launch(this.api,e,this.assignedServices):"assign-service"===t.param.id?lF.launch(this.api,this.servicePool).subscribe(function(e){return t.table.overview()}):"vnc"===t.param.id&&this.vnc(e)},t.prototype.onCustomCached=function(t){"log"===t.param.id&&nF.launch(this.api,t.table.selection.selected[0],this.cache)},t.prototype.processsAssignedElement=function(t){t.in_use=this.api.yesno(t.in_use),t.origState=t.state,"U"===t.state&&(t.state=""!==t.os_state&&"U"!==t.os_state?"Z":"U")},t.prototype.onDeleteAssigned=function(e){t.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned service"))},t.prototype.onDeleteCache=function(e){t.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete cached service"))},t.prototype.processsCacheElement=function(t){t.origState=t.state,"U"===t.state&&(t.state=""!==t.os_state&&"U"!==t.os_state?"Z":"U")},t.prototype.onNewGroup=function(t){PN.launch(this.api,this.servicePool,this.groups).subscribe(function(e){return t.table.overview()})},t.prototype.onDeleteGroup=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned group"))},t.prototype.onNewTransport=function(t){FN.launch(this.api,this.servicePool).subscribe(function(e){return t.table.overview()})},t.prototype.onDeleteTransport=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned transport"))},t.prototype.onNewPublication=function(t){VN.launch(this.api,this.servicePool).subscribe(function(e){t.table.overview()})},t.prototype.onPublicationRowSelect=function(t){1===t.table.selection.selected.length&&(this.customButtonsPublication[0].disabled=!["P","W","L","K"].includes(t.table.selection.selected[0].state))},t.prototype.onCustomPublication=function(t){var e=this;"cancel-publication"===t.param.id?this.api.gui.yesno(django.gettext("Publication"),django.gettext("Cancel publication?"),!0).subscribe(function(n){n&&e.publications.invoke(t.table.selection.selected[0].id+"/cancel").subscribe(function(n){e.api.gui.snackbar.open(django.gettext("Publication canceled"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()})}):"changelog"===t.param.id&&zN.launch(this.api,this.servicePool)},t.prototype.onNewScheduledAction=function(t){eF.launch(this.api,this.servicePool).subscribe(function(e){return t.table.overview()})},t.prototype.onEditScheduledAction=function(t){eF.launch(this.api,this.servicePool,t.table.selection.selected[0]).subscribe(function(e){return t.table.overview()})},t.prototype.onDeleteScheduledAction=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete scheduled action"))},t.prototype.onCustomScheduleAction=function(t){var e=this;this.api.gui.yesno(django.gettext("Execute scheduled action"),django.gettext("Execute scheduled action right now?")).subscribe(function(n){n&&e.scheduledActions.invoke(t.table.selection.selected[0].id+"/execute").subscribe(function(){e.api.gui.snackbar.open(django.gettext("Scheduled action executed"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()})})},t.prototype.onNewAccessCalendar=function(t){IN.launch(this.api,this.servicePool,this.accessCalendars).subscribe(function(e){return t.table.overview()})},t.prototype.onEditAccessCalendar=function(t){IN.launch(this.api,this.servicePool,this.accessCalendars,t.table.selection.selected[0]).subscribe(function(e){return t.table.overview()})},t.prototype.onDeleteAccessCalendar=function(t){-1!==t.table.selection.selected[0].id?this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(t)},t.prototype.onAccessCalendarLoad=function(t){var e=this;this.rest.servicesPools.getFallbackAccess(this.servicePool.id).subscribe(function(n){var i=t.table.dataSource.data.filter(function(t){return!0});i.push({id:-1,calendar:"-",priority:e.api.safeString('10000000FallBack'),access:n}),t.table.dataSource.data=i})},t.prototype.processsCalendarOrScheduledElement=function(t){t.name=t.calendar,t.atStart=this.api.yesno(t.atStart)},t.\u0275fac=function(e){return new(e||t)(us(gg),us(WI),us(bI))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction",4,"ngIf","ngIfElse"],["manually_assigned",""],[4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","newAction","deleteAction"],["icon","transports",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","customButtons","onItem","pageSize","customButtonAction","newAction","editAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","customButtons","tableId","onItem","pageSize","newAction","editAction","deleteAction","loaded"],[3,"poolUuid"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","newAction","deleteAction"],["icon","cached",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","publications",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","customButtonAction","newAction","rowSelected"]],template:function(t,e){1&t&&(ds(0,"div",0),ds(1,"div",1),ds(2,"a",2),ds(3,"i",3),$s(4,"arrow_back"),fs(),fs(),$s(5," \xa0"),ps(6,"img",4),$s(7),fs(),ss(8,CF,39,38,"div",5),fs()),2&t&&(Eo(2),cs("routerLink",Su(4,AF,e.servicePool?e.servicePool.id:"")),Eo(4),cs("src",e.api.staticURL("admin/img/icons/pools.png"),Tr),Eo(1),Js(" \xa0",null==e.servicePool?null:e.servicePool.name," "),Eo(1),cs("ngIf",null!==e.servicePool))},directives:[Ym,Dh,cM,tM,$A,hR,uF,SR,$S,DR],styles:[".mat-column-state{max-width:10rem;justify-content:center} .mat-column-cache_level, .mat-column-in_use, .mat-column-priority, .mat-column-revision{max-width:7rem;justify-content:center} .mat-column-access, .mat-column-creation_date, .mat-column-publish_date, .mat-column-state_date, .mat-column-trans_type{max-width:9rem} .mat-column-owner{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-all;word-break:break-word} .row-state-S>.mat-cell{color:gray!important} .row-state-C>.mat-cell{color:gray!important} .row-state-E>.mat-cell{color:red!important} .row-state-R>.mat-cell{color:orange!important}"]}),t}(),LF=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New meta pool"))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit meta pool"))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete meta pool"))},t.prototype.onDetail=function(t){this.api.navigation.gotoMetapoolDetail(t.param.id)},t.prototype.processElement=function(t){t.visible=this.api.yesno(t.visible),t.name=this.api.safeString(this.api.gui.icon(t.thumb)+t.name),t.pool_group_name=this.api.safeString(this.api.gui.icon(t.pool_group_thumb)+t.pool_group_name)},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("metapool"))},t.\u0275fac=function(e){return new(e||t)(us(bI),us(gg),us(WI))},t.\u0275cmp=ce({type:t,selectors:[["uds-meta-pools"]],decls:2,vars:6,consts:[["icon","metas",3,"rest","multiSelect","allowExport","onItem","hasPermissions","pageSize","detailAction","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(ds(0,"div"),ds(1,"uds-table",0),xs("detailAction",function(t){return e.onDetail(t)})("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("loaded",function(t){return e.onLoad(t)}),fs(),fs()),2&t&&(Eo(1),cs("rest",e.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("hasPermissions",!0)("pageSize",e.api.config.admin.page_size))},directives:[hR],styles:[".mat-column-pool_group_name, .mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible{max-width:7rem;justify-content:center}"]}),t}();function NF(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"New member pool"),fs())}function FF(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Edit member pool"),fs())}function VF(t,e){if(1&t){var n=ys();ds(0,"uds-mat-select-search",11),xs("changed",function(t){return en(n),Ms().servicePoolsFilter=t}),fs()}}function zF(t,e){if(1&t&&(ds(0,"mat-option",12),$s(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Eo(1),Js(" ",n.name," ")}}var BF=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Lu(!0),this.servicePools=[],this.servicePoolsFilter="",this.model=i.model,this.memberPool={id:void 0,priority:0,pool_id:"",enabled:!0},i.memberPool&&(this.memberPool.id=i.memberPool.id)}return t.launch=function(e,n,i){var r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{memberPool:i,model:n},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.servicesPools.summary().subscribe(function(e){return t.servicePools=e}),this.memberPool.id&&this.model.get(this.memberPool.id).subscribe(function(e){return t.memberPool=e})},t.prototype.filtered=function(t,e){return e?t.filter(function(t){return t.name.toLocaleLowerCase().includes(e.toLocaleLowerCase())}):t},t.prototype.save=function(){var t=this;this.memberPool.pool_id?this.model.save(this.memberPool).subscribe(function(){t.dialogRef.close(),t.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid service pool"))},t.\u0275fac=function(e){return new(e||t)(us(bI),us(WI),us(MS),us(TS))},t.\u0275cmp=ce({type:t,selectors:[["uds-meta-pools-service-pools"]],decls:30,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[1,"mat-form-field-infix"],[1,"label-enabled"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(ds(0,"h4",0),ss(1,NF,2,0,"uds-translate",1),ss(2,FF,2,0,"uds-translate",1),fs(),ds(3,"mat-dialog-content"),ds(4,"div",2),ds(5,"mat-form-field"),ds(6,"mat-label"),ds(7,"uds-translate"),$s(8,"Priority"),fs(),fs(),ds(9,"input",3),xs("ngModelChange",function(t){return e.memberPool.priority=t}),fs(),fs(),ds(10,"mat-form-field"),ds(11,"mat-label"),ds(12,"uds-translate"),$s(13,"Service pool"),fs(),fs(),ds(14,"mat-select",4),xs("ngModelChange",function(t){return e.memberPool.pool_id=t}),ss(15,VF,1,0,"uds-mat-select-search",5),ss(16,zF,2,2,"mat-option",6),fs(),fs(),ds(17,"div",7),ds(18,"span",8),ds(19,"uds-translate"),$s(20,"Enabled?"),fs(),fs(),ds(21,"mat-slide-toggle",4),xs("ngModelChange",function(t){return e.memberPool.enabled=t}),$s(22),fs(),fs(),fs(),fs(),ds(23,"mat-dialog-actions"),ds(24,"button",9),ds(25,"uds-translate"),$s(26,"Cancel"),fs(),fs(),ds(27,"button",10),xs("click",function(){return e.save()}),ds(28,"uds-translate"),$s(29,"Ok"),fs(),fs(),fs()),2&t&&(Eo(1),cs("ngIf",!(null!=e.memberPool&&e.memberPool.id)),Eo(1),cs("ngIf",null==e.memberPool?null:e.memberPool.id),Eo(7),cs("ngModel",e.memberPool.priority),Eo(5),cs("ngModel",e.memberPool.pool_id),Eo(1),cs("ngIf",e.servicePools.length>10),Eo(1),cs("ngForOf",e.filtered(e.servicePools,e.servicePoolsFilter)),Eo(5),cs("ngModel",e.memberPool.enabled),Eo(1),Js(" ",e.api.yesno(e.memberPool.enabled)," "))},directives:[FS,Dh,VS,dD,iD,$S,MO,vA,dC,zC,pA,RD,Ih,_L,zS,XS,NS,PO,vS],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}.label-enabled[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}"]}),t}();function HF(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Summary"),fs())}function jF(t,e){if(1&t&&ps(0,"uds-information",17),2&t){var n=Ms(2);cs("value",n.metaPool)("gui",n.gui)}}function GF(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Service pools"),fs())}function UF(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Assigned services"),fs())}function WF(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Groups"),fs())}function YF(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Access calendars"),fs())}function qF(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Logs"),fs())}function XF(t,e){if(1&t){var n=ys();ds(0,"div",6),ds(1,"div",7),ds(2,"mat-tab-group",8),xs("selectedIndexChange",function(t){return en(n),Ms().selectedTab=t}),ds(3,"mat-tab"),ss(4,HF,2,0,"ng-template",9),ds(5,"div",10),ss(6,jF,1,2,"uds-information",11),fs(),fs(),ds(7,"mat-tab"),ss(8,GF,2,0,"ng-template",9),ds(9,"div",10),ds(10,"uds-table",12),xs("newAction",function(t){return en(n),Ms().onNewMemberPool(t)})("editAction",function(t){return en(n),Ms().onEditMemberPool(t)})("deleteAction",function(t){return en(n),Ms().onDeleteMemberPool(t)}),fs(),fs(),fs(),ds(11,"mat-tab"),ss(12,UF,2,0,"ng-template",9),ds(13,"div",10),ds(14,"uds-table",13),xs("customButtonAction",function(t){return en(n),Ms().onCustomAssigned(t)})("deleteAction",function(t){return en(n),Ms().onDeleteAssigned(t)}),fs(),fs(),fs(),ds(15,"mat-tab"),ss(16,WF,2,0,"ng-template",9),ds(17,"div",10),ds(18,"uds-table",14),xs("newAction",function(t){return en(n),Ms().onNewGroup(t)})("deleteAction",function(t){return en(n),Ms().onDeleteGroup(t)}),fs(),fs(),fs(),ds(19,"mat-tab"),ss(20,YF,2,0,"ng-template",9),ds(21,"div",10),ds(22,"uds-table",15),xs("newAction",function(t){return en(n),Ms().onNewAccessCalendar(t)})("editAction",function(t){return en(n),Ms().onEditAccessCalendar(t)})("deleteAction",function(t){return en(n),Ms().onDeleteAccessCalendar(t)})("loaded",function(t){return en(n),Ms().onAccessCalendarLoad(t)}),fs(),fs(),fs(),ds(23,"mat-tab"),ss(24,qF,2,0,"ng-template",9),ds(25,"div",10),ps(26,"uds-logs-table",16),fs(),fs(),fs(),fs(),fs()}if(2&t){var i=Ms();Eo(2),cs("selectedIndex",i.selectedTab)("@.disabled",!0),Eo(4),cs("ngIf",i.metaPool&&i.gui),Eo(4),cs("rest",i.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",i.processElement)("customButtons",i.customButtons)("tableId","metaPools-d-members"+i.metaPool.id)("pageSize",i.api.config.admin.page_size),Eo(4),cs("rest",i.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+i.metaPool.id)("customButtons",i.customButtonsAssignedServices)("pageSize",i.api.config.admin.page_size),Eo(4),cs("rest",i.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+i.metaPool.id)("pageSize",i.api.config.admin.page_size),Eo(4),cs("rest",i.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+i.metaPool.id)("pageSize",i.api.config.admin.page_size)("onItem",i.processsCalendarItem),Eo(4),cs("rest",i.rest.metaPools)("itemId",i.metaPool.id)("tableId","metaPools-d-log"+i.metaPool.id)("pageSize",i.api.config.admin.page_size)}}var ZF=function(t){return["/pools","meta-pools",t]},KF=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[nI.getGotoButton(XM,"pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:DF,type:WM.SINGLE_SELECT},{id:"log",html:MF,type:WM.SINGLE_SELECT},nI.getGotoButton(ZM,"owner_info.auth_id","owner_info.user_id")],this.metaPool=null,this.gui=null,this.selectedTab=1}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("metapool");this.rest.metaPools.get(e).subscribe(function(n){t.metaPool=n,t.rest.metaPools.gui().subscribe(function(e){t.gui=e}),t.memberPools=t.rest.metaPools.detail(e,"pools"),t.memberUserServices=t.rest.metaPools.detail(e,"services"),t.groups=t.rest.metaPools.detail(e,"groups"),t.accessCalendars=t.rest.metaPools.detail(e,"access")})},t.prototype.onNewMemberPool=function(t){BF.launch(this.api,this.memberPools).subscribe(function(){return t.table.overview()})},t.prototype.onEditMemberPool=function(t){BF.launch(this.api,this.memberPools,t.table.selection.selected[0]).subscribe(function(){return t.table.overview()})},t.prototype.onDeleteMemberPool=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Remove member pool"))},t.prototype.onCustomAssigned=function(t){var e=t.table.selection.selected[0];if("change-owner"===t.param.id){if(["E","R","M","S","C"].includes(e.state))return;wN.launch(this.api,e,this.memberUserServices).subscribe(function(e){return t.table.overview()})}else"log"===t.param.id&&nF.launch(this.api,e,this.memberUserServices)},t.prototype.onDeleteAssigned=function(t){RF.cleanInvalidSelections(t)||this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned service"))},t.prototype.onNewGroup=function(t){PN.launch(this.api,this.metaPool.id,this.groups).subscribe(function(e){return t.table.overview()})},t.prototype.onDeleteGroup=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned group"))},t.prototype.onNewAccessCalendar=function(t){IN.launch(this.api,this.metaPool,this.accessCalendars).subscribe(function(e){return t.table.overview()})},t.prototype.onEditAccessCalendar=function(t){IN.launch(this.api,this.metaPool,this.accessCalendars,t.table.selection.selected[0]).subscribe(function(e){return t.table.overview()})},t.prototype.onDeleteAccessCalendar=function(t){console.log("ID",t.table.selection.selected[0].id),-1!==t.table.selection.selected[0].id?this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(t)},t.prototype.onAccessCalendarLoad=function(t){var e=this;this.rest.metaPools.getFallbackAccess(this.metaPool.id).subscribe(function(n){var i=t.table.dataSource.data.filter(function(t){return!0});i.push({id:-1,calendar:"-",priority:e.api.safeString('10000000FallBack'),access:n}),t.table.dataSource.data=i})},t.prototype.processElement=function(t){t.enabled=this.api.yesno(t.enabled)},t.prototype.processsCalendarItem=function(t){t.name=t.calendar,t.atStart=this.api.yesno(t.atStart)},t.\u0275fac=function(e){return new(e||t)(us(gg),us(WI),us(bI))},t.\u0275cmp=ce({type:t,selectors:[["uds-meta-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","customButtons","tableId","pageSize","newAction","editAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","groups",3,"rest","multiSelect","allowExport","tableId","pageSize","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","pageSize","onItem","newAction","editAction","deleteAction","loaded"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"]],template:function(t,e){1&t&&(ds(0,"div",0),ds(1,"div",1),ds(2,"a",2),ds(3,"i",3),$s(4,"arrow_back"),fs(),fs(),$s(5," \xa0"),ps(6,"img",4),$s(7),fs(),ss(8,XF,27,31,"div",5),fs()),2&t&&(Eo(2),cs("routerLink",Su(4,ZF,e.metaPool?e.metaPool.id:"")),Eo(4),cs("src",e.api.staticURL("admin/img/icons/metas.png"),Tr),Eo(1),Js(" ",null==e.metaPool?null:e.metaPool.name," "),Eo(1),cs("ngIf",e.metaPool))},directives:[Ym,Dh,cM,tM,$A,hR,SR,$S,DR],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]}),t}(),$F=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New pool group"),!1).subscribe(function(e){return t.table.overview()})},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit pool group"),!1).subscribe(function(e){return t.table.overview()})},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete pool group"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("poolgroup"))},t.\u0275fac=function(e){return new(e||t)(us(gg),us(WI),us(bI))},t.\u0275cmp=ce({type:t,selectors:[["uds-pool-groups"]],decls:1,vars:5,consts:[["icon","spool-group",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(ds(0,"uds-table",0),xs("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("loaded",function(t){return e.onLoad(t)}),fs()),2&t&&cs("rest",e.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",e.api.config.admin.page_size)},directives:[hR],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]}),t}(),QF=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New calendar"))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit calendar"))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar"))},t.prototype.onDetail=function(t){this.api.navigation.gotoCalendarDetail(t.param.id)},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("calendar"))},t.\u0275fac=function(e){return new(e||t)(us(gg),us(WI),us(bI))},t.\u0275cmp=ce({type:t,selectors:[["uds-calendars"]],decls:1,vars:5,consts:[["icon","calendars",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(ds(0,"uds-table",0),xs("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("detailAction",function(t){return e.onDetail(t)})("loaded",function(t){return e.onLoad(t)}),fs()),2&t&&cs("rest",e.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",e.api.config.admin.page_size)},directives:[hR],styles:[""]}),t}(),JF=["mat-calendar-body",""];function tV(t,e){if(1&t&&(ds(0,"tr",2),ds(1,"td",3),$s(2),fs(),fs()),2&t){var n=Ms();Eo(1),zs("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),os("colspan",n.numCols),Eo(1),Js(" ",n.label," ")}}function eV(t,e){if(1&t&&(ds(0,"td",7),$s(1),fs()),2&t){var n=Ms(2);zs("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),os("colspan",n._firstRowOffset),Eo(1),Js(" ",n._firstRowOffset>=n.labelMinRequiredCells?n.label:""," ")}}function nV(t,e){if(1&t){var n=ys();ds(0,"td",8),xs("click",function(t){var e=en(n).$implicit;return Ms(2)._cellClicked(e,t)}),ds(1,"div",9),$s(2),fs(),ps(3,"div",10),fs()}if(2&t){var i=e.$implicit,r=e.index,o=Ms().index,a=Ms();zs("width",a._cellWidth)("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),Bs("mat-calendar-body-disabled",!i.enabled)("mat-calendar-body-active",a._isActiveCell(o,r))("mat-calendar-body-range-start",a._isRangeStart(i.compareValue))("mat-calendar-body-range-end",a._isRangeEnd(i.compareValue))("mat-calendar-body-in-range",a._isInRange(i.compareValue))("mat-calendar-body-comparison-bridge-start",a._isComparisonBridgeStart(i.compareValue,o,r))("mat-calendar-body-comparison-bridge-end",a._isComparisonBridgeEnd(i.compareValue,o,r))("mat-calendar-body-comparison-start",a._isComparisonStart(i.compareValue))("mat-calendar-body-comparison-end",a._isComparisonEnd(i.compareValue))("mat-calendar-body-in-comparison-range",a._isInComparisonRange(i.compareValue))("mat-calendar-body-preview-start",a._isPreviewStart(i.compareValue))("mat-calendar-body-preview-end",a._isPreviewEnd(i.compareValue))("mat-calendar-body-in-preview",a._isInPreview(i.compareValue)),cs("ngClass",i.cssClasses)("tabindex",a._isActiveCell(o,r)?0:-1),os("data-mat-row",o)("data-mat-col",r)("aria-label",i.ariaLabel)("aria-disabled",!i.enabled||null)("aria-selected",a._isSelected(i.compareValue)),Eo(1),Bs("mat-calendar-body-selected",a._isSelected(i.compareValue))("mat-calendar-body-comparison-identical",a._isComparisonIdentical(i.compareValue))("mat-calendar-body-today",a.todayValue===i.compareValue),Eo(1),Js(" ",i.displayValue," ")}}function iV(t,e){if(1&t&&(ds(0,"tr",4),ss(1,eV,2,6,"td",5),ss(2,nV,4,46,"td",6),fs()),2&t){var n=e.$implicit,i=e.index,r=Ms();Eo(1),cs("ngIf",0===i&&r._firstRowOffset),Eo(1),cs("ngForOf",n)}}function rV(t,e){if(1&t&&(ds(0,"th",5),ds(1,"abbr",6),$s(2),fs(),fs()),2&t){var n=e.$implicit;os("aria-label",n.long),Eo(1),os("title",n.long),Eo(1),Qs(n.narrow)}}var oV=["*"];function aV(t,e){}function sV(t,e){if(1&t){var n=ys();ds(0,"mat-month-view",5),xs("activeDateChange",function(t){return en(n),Ms().activeDate=t})("_userSelection",function(t){return en(n),Ms()._dateSelected(t)}),fs()}if(2&t){var i=Ms();cs("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)("dateClass",i.dateClass)("comparisonStart",i.comparisonStart)("comparisonEnd",i.comparisonEnd)}}function lV(t,e){if(1&t){var n=ys();ds(0,"mat-year-view",6),xs("activeDateChange",function(t){return en(n),Ms().activeDate=t})("monthSelected",function(t){return en(n),Ms()._monthSelectedInYearView(t)})("selectedChange",function(t){return en(n),Ms()._goToDateInView(t,"month")}),fs()}if(2&t){var i=Ms();cs("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)("dateClass",i.dateClass)}}function uV(t,e){if(1&t){var n=ys();ds(0,"mat-multi-year-view",7),xs("activeDateChange",function(t){return en(n),Ms().activeDate=t})("yearSelected",function(t){return en(n),Ms()._yearSelectedInMultiYearView(t)})("selectedChange",function(t){return en(n),Ms()._goToDateInView(t,"year")}),fs()}if(2&t){var i=Ms();cs("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)("dateClass",i.dateClass)}}function cV(t,e){}var hV=["button"];function dV(t,e){1&t&&(Dn(),ds(0,"svg",3),ps(1,"path",4),fs())}var fV=[[["","matDatepickerToggleIcon",""]]],pV=["[matDatepickerToggleIcon]"],gV=function(){var t=function(){function t(){s(this,t),this.changes=new U,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}return a(t,[{key:"formatYearRange",value:function(t,e){return"".concat(t," \u2013 ").concat(e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Ot({factory:function(){return new t},token:t,providedIn:"root"}),t}(),mV=function t(e,n,i,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,l=arguments.length>6?arguments[6]:void 0;s(this,t),this.value=e,this.displayValue=n,this.ariaLabel=i,this.enabled=r,this.cssClasses=o,this.compareValue=a,this.rawValue=l},vV=function(){var t=function(){function t(e,n){var i=this;s(this,t),this._elementRef=e,this._ngZone=n,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new Lu,this.previewChange=new Lu,this._enterHandler=function(t){if(i._skipNextFocus&&"focus"===t.type)i._skipNextFocus=!1;else if(t.target&&i.isRange){var e=i._getCellFromElement(t.target);e&&i._ngZone.run(function(){return i.previewChange.emit({value:e.enabled?e:null,event:t})})}},this._leaveHandler=function(t){null!==i.previewEnd&&i.isRange&&t.target&&yV(t.target)&&i._ngZone.run(function(){return i.previewChange.emit({value:null,event:t})})},n.runOutsideAngular(function(){var t=e.nativeElement;t.addEventListener("mouseenter",i._enterHandler,!0),t.addEventListener("focus",i._enterHandler,!0),t.addEventListener("mouseleave",i._leaveHandler,!0),t.addEventListener("blur",i._leaveHandler,!0)})}return a(t,[{key:"_cellClicked",value:function(t,e){t.enabled&&this.selectedValueChange.emit({value:t.value,event:e})}},{key:"_isSelected",value:function(t){return this.startValue===t||this.endValue===t}},{key:"ngOnChanges",value:function(t){var e=t.numCols,n=this.rows,i=this.numCols;(t.rows||e)&&(this._firstRowOffset=n&&n.length&&n[0].length?i-n[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding="".concat(50*this.cellAspectRatio/i,"%")),!e&&this._cellWidth||(this._cellWidth="".concat(100/i,"%"))}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;t.removeEventListener("mouseenter",this._enterHandler,!0),t.removeEventListener("focus",this._enterHandler,!0),t.removeEventListener("mouseleave",this._leaveHandler,!0),t.removeEventListener("blur",this._leaveHandler,!0)}},{key:"_isActiveCell",value:function(t,e){var n=t*this.numCols+e;return t&&(n-=this._firstRowOffset),n==this.activeCell}},{key:"_focusActiveCell",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.pipe(Lf(1)).subscribe(function(){var n=t._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(e||(t._skipNextFocus=!0),n.focus())})})}},{key:"_isRangeStart",value:function(t){return _V(t,this.startValue,this.endValue)}},{key:"_isRangeEnd",value:function(t){return bV(t,this.startValue,this.endValue)}},{key:"_isInRange",value:function(t){return wV(t,this.startValue,this.endValue,this.isRange)}},{key:"_isComparisonStart",value:function(t){return _V(t,this.comparisonStart,this.comparisonEnd)}},{key:"_isComparisonBridgeStart",value:function(t,e,n){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;var i=this.rows[e][n-1];if(!i){var r=this.rows[e-1];i=r&&r[r.length-1]}return i&&!this._isRangeEnd(i.compareValue)}},{key:"_isComparisonBridgeEnd",value:function(t,e,n){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;var i=this.rows[e][n+1];if(!i){var r=this.rows[e+1];i=r&&r[0]}return i&&!this._isRangeStart(i.compareValue)}},{key:"_isComparisonEnd",value:function(t){return bV(t,this.comparisonStart,this.comparisonEnd)}},{key:"_isInComparisonRange",value:function(t){return wV(t,this.comparisonStart,this.comparisonEnd,this.isRange)}},{key:"_isComparisonIdentical",value:function(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}},{key:"_isPreviewStart",value:function(t){return _V(t,this.previewStart,this.previewEnd)}},{key:"_isPreviewEnd",value:function(t){return bV(t,this.previewStart,this.previewEnd)}},{key:"_isInPreview",value:function(t){return wV(t,this.previewStart,this.previewEnd,this.isRange)}},{key:"_getCellFromElement",value:function(t){var e;if(yV(t)?e=t:yV(t.parentNode)&&(e=t.parentNode),e){var n=e.getAttribute("data-mat-row"),i=e.getAttribute("data-mat-col");if(n&&i)return this.rows[parseInt(n)][parseInt(i)]}return null}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Al),us(xc))},t.\u0275cmp=ce({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[De],attrs:JF,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,e){1&t&&(ss(0,tV,3,6,"tr",0),ss(1,iV,3,2,"tr",1)),2&t&&(cs("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),t}();function yV(t){return"TD"===t.nodeName}function _V(t,e,n){return null!==n&&e!==n&&t=e&&t===n}function wV(t,e,n,i){return i&&null!==e&&null!==n&&e!==n&&t>=e&&t<=n}var xV=function t(e,n){s(this,t),this.start=e,this.end=n},kV=function(){var t=function(){function t(e,n){s(this,t),this.selection=e,this._adapter=n,this._selectionChanged=new U,this.selectionChanged=this._selectionChanged,this.selection=e}return a(t,[{key:"updateSelection",value:function(t,e){var n=this.selection;this.selection=t,this._selectionChanged.next({selection:t,source:e,oldValue:n})}},{key:"ngOnDestroy",value:function(){this._selectionChanged.complete()}},{key:"_isValidDateInstance",value:function(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(void 0),Fi(Vk))},t.\u0275prov=Ot({token:t,factory:t.\u0275fac}),t}(),SV=function(){var t=function(t){u(n,t);var e=p(n);function n(t){return s(this,n),e.call(this,null,t)}return a(n,[{key:"add",value:function(t){r(i(n.prototype),"updateSelection",this).call(this,t,this)}},{key:"isValid",value:function(){return null!=this.selection&&this._isValidDateInstance(this.selection)}},{key:"isComplete",value:function(){return null!=this.selection}},{key:"clone",value:function(){var t=new n(this._adapter);return t.updateSelection(this.selection,this),t}}]),n}(kV);return t.\u0275fac=function(e){return new(e||t)(Fi(Vk))},t.\u0275prov=Ot({token:t,factory:t.\u0275fac}),t}(),CV={provide:kV,deps:[[new Wi,new Yi,kV],Vk],useFactory:function(t,e){return t||new SV(e)}},AV=new _i("MAT_DATE_RANGE_SELECTION_STRATEGY"),MV=function(){var t=function(){function t(e,n,i,r,o){s(this,t),this._changeDetectorRef=e,this._dateFormats=n,this._dateAdapter=i,this._dir=r,this._rangeStrategy=o,this._rerenderSubscription=M.EMPTY,this.selectedChange=new Lu,this._userSelection=new Lu,this.activeDateChange=new Lu,this._activeDate=this._dateAdapter.today()}return a(t,[{key:"activeDate",get:function(){return this._activeDate},set:function(t){var e=this._activeDate,n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(t){this._selected=t instanceof xV?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}},{key:"minDate",get:function(){return this._minDate},set:function(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"maxDate",get:function(){return this._maxDate},set:function(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"ngAfterContentInit",value:function(){var t=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Vf(null)).subscribe(function(){return t._init()})}},{key:"ngOnChanges",value:function(t){var e=t.comparisonStart||t.comparisonEnd;e&&!e.firstChange&&this._setRanges(this.selected)}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_dateSelected",value:function(t){var e,n,i=t.value,r=this._dateAdapter.getYear(this.activeDate),o=this._dateAdapter.getMonth(this.activeDate),a=this._dateAdapter.createDate(r,o,i);this._selected instanceof xV?(e=this._getDateInCurrentMonth(this._selected.start),n=this._getDateInCurrentMonth(this._selected.end)):e=n=this._getDateInCurrentMonth(this._selected),e===i&&n===i||this.selectedChange.emit(a),this._userSelection.emit({value:a,event:t.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}},{key:"_handleCalendarBodyKeydown",value:function(t){var e=this._activeDate,n=this._isRtl();switch(t.keyCode){case By:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?1:-1);break;case jy:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?-1:1);break;case Hy:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case Gy:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case zy:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case Vy:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case Ly:case Fy:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),t.preventDefault()));case Ny:return void(null==this._previewEnd||Uy(t)||(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t}),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}},{key:"_init",value:function(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();var t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}},{key:"_focusActiveCell",value:function(t){this._matCalendarBody._focusActiveCell(t)}},{key:"_previewChanged",value:function(t){var e=t.value;if(this._rangeStrategy){var n=this._rangeStrategy.createPreview(e?e.rawValue:null,this.selected,t.event);this._previewStart=this._getCellCompareValue(n.start),this._previewEnd=this._getCellCompareValue(n.end),this._changeDetectorRef.detectChanges()}}},{key:"_initWeekdays",value:function(){var t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow"),n=this._dateAdapter.getDayOfWeekNames("long").map(function(t,n){return{long:t,narrow:e[n]}});this._weekdays=n.slice(t).concat(n.slice(0,t))}},{key:"_createWeekCells",value:function(){var t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(var n=0,i=this._firstWeekOffset;n=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}},{key:"_getDateInCurrentMonth",value:function(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}},{key:"_hasSameMonthAndYear",value:function(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}},{key:"_getCellCompareValue",value:function(t){if(t){var e=this._dateAdapter.getYear(t),n=this._dateAdapter.getMonth(t),i=this._dateAdapter.getDate(t);return new Date(e,n,i).getTime()}return null}},{key:"_isRtl",value:function(){return this._dir&&"rtl"===this._dir.value}},{key:"_setRanges",value:function(t){t instanceof xV?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Ql),us(zk,8),us(Vk,8),us(fy,8),us(AV,8))},t.\u0275cmp=ce({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){var n;1&t&&Xu(vV,5),2&t&&qu(n=Ku())&&(e._matCalendarBody=n.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[De],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"],[1,"mat-calendar-abbr"]],template:function(t,e){1&t&&(ds(0,"table",0),ds(1,"thead",1),ds(2,"tr"),ss(3,rV,3,3,"th",2),fs(),ds(4,"tr"),ps(5,"th",3),fs(),fs(),ds(6,"tbody",4),xs("selectedValueChange",function(t){return e._dateSelected(t)})("previewChange",function(t){return e._previewChanged(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),fs(),fs()),2&t&&(Eo(3),cs("ngForOf",e._weekdays),Eo(3),cs("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("startValue",e._rangeStart)("endValue",e._rangeEnd)("comparisonStart",e._comparisonRangeStart)("comparisonEnd",e._comparisonRangeEnd)("previewStart",e._previewStart)("previewEnd",e._previewEnd)("isRange",e._isRange)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[Ih,vV],encapsulation:2,changeDetection:0}),t}(),IV=24,TV=function(){var t=function(){function t(e,n,i){s(this,t),this._changeDetectorRef=e,this._dateAdapter=n,this._dir=i,this._rerenderSubscription=M.EMPTY,this.selectedChange=new Lu,this.yearSelected=new Lu,this.activeDateChange=new Lu,this._activeDate=this._dateAdapter.today()}return a(t,[{key:"activeDate",get:function(){return this._activeDate},set:function(t){var e=this._activeDate,n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),DV(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(t){this._selected=t instanceof xV?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}},{key:"minDate",get:function(){return this._minDate},set:function(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"maxDate",get:function(){return this._maxDate},set:function(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"ngAfterContentInit",value:function(){var t=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Vf(null)).subscribe(function(){return t._init()})}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_init",value:function(){var t=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var e=this._dateAdapter.getYear(this._activeDate)-EV(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var n=0,i=[];nthis._dateAdapter.getYear(this.maxDate)||this.minDate&&tn||t===n&&e>i}return!1}},{key:"_isYearAndMonthBeforeMinDate",value:function(t,e){if(this.minDate){var n=this._dateAdapter.getYear(this.minDate),i=this._dateAdapter.getMonth(this.minDate);return t enter-dropdown",Mb("120ms cubic-bezier(0, 0, 0.2, 1)",Eb([Tb({opacity:0,transform:"scale(1, 0.8)"}),Tb({opacity:1,transform:"scale(1, 1)"})]))),Ob("void => enter-dialog",Mb("150ms cubic-bezier(0, 0, 0.2, 1)",Eb([Tb({opacity:0,transform:"scale(0.7)"}),Tb({transform:"none",opacity:1})]))),Ob("* => void",Mb("100ms linear",Tb({opacity:0})))]),fadeInCalendar:Ab("fadeInCalendar",[Db("void",Tb({opacity:0})),Db("enter",Tb({opacity:1})),Ob("void => *",Mb("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},VV=0,zV=new _i("mat-datepicker-scroll-strategy"),BV={provide:zV,deps:[__],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},HV=Ek(function(){return function t(e){s(this,t),this._elementRef=e}}()),jV=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l){var u;return s(this,n),(u=e.call(this,t))._changeDetectorRef=i,u._globalModel=r,u._dateAdapter=o,u._rangeSelectionStrategy=a,u._subscriptions=new M,u._animationDone=new U,u._actionsPortal=null,u._closeButtonText=l.closeCalendarLabel,u}return a(n,[{key:"ngOnInit",value:function(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}},{key:"ngAfterViewInit",value:function(){var t=this;this._subscriptions.add(this.datepicker.stateChanges.subscribe(function(){t._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}},{key:"ngOnDestroy",value:function(){this._subscriptions.unsubscribe(),this._animationDone.complete()}},{key:"_handleUserSelection",value:function(t){var e=this._model.selection,n=t.value,i=e instanceof xV;if(i&&this._rangeSelectionStrategy){var r=this._rangeSelectionStrategy.selectionFinished(n,e,t.event);this._model.updateSelection(r,this)}else!n||!i&&this._dateAdapter.sameDate(n,e)||this._model.add(n);this._model&&!this._model.isComplete()||this._actionsPortal||this.datepicker.close()}},{key:"_startExitAnimation",value:function(){this._animationState="void",this._changeDetectorRef.markForCheck()}},{key:"_getSelected",value:function(){return this._model.selection}},{key:"_applyPendingSelection",value:function(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}]),n}(HV);return t.\u0275fac=function(e){return new(e||t)(us(Al),us(Ql),us(kV),us(Vk),us(AV,8),us(gV))},t.\u0275cmp=ce({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){var n;1&t&&Xu(NV,5),2&t&&qu(n=Ku())&&(e._calendar=n.first)},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&ks("@transformPanel.done",function(){return e._animationDone.next()}),2&t&&(nl("@transformPanel",e._animationState),Bs("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[Ya],decls:5,vars:20,consts:[["cdkTrapFocus","",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(t,e){1&t&&(ds(0,"div",0),ds(1,"mat-calendar",1),xs("yearSelected",function(t){return e.datepicker._selectYear(t)})("monthSelected",function(t){return e.datepicker._selectMonth(t)})("viewChanged",function(t){return e.datepicker._viewChanged(t)})("_userSelection",function(t){return e._handleUserSelection(t)}),fs(),ss(2,cV,0,0,"ng-template",2),ds(3,"button",3),xs("focus",function(){return e._closeButtonFocused=!0})("blur",function(){return e._closeButtonFocused=!1})("click",function(){return e.datepicker.close()}),$s(4),fs(),fs()),2&t&&(Bs("mat-datepicker-content-container-with-actions",e._actionsPortal),Eo(1),cs("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._getMinDate())("maxDate",e.datepicker._getMaxDate())("dateFilter",e.datepicker._getDateFilter())("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e._getSelected())("dateClass",e.datepicker.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("@fadeInCalendar","enter"),Eo(1),cs("cdkPortalOutlet",e._actionsPortal),Eo(1),Bs("cdk-visually-hidden",!e._closeButtonFocused),cs("color",e.color||"primary"),Eo(1),Qs(e._closeButtonText))},directives:[eb,NV,Ah,Ey,XS],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[FV.transformPanel,FV.fadeInCalendar]},changeDetection:0}),t}(),GV=function(){var t=function(){function t(e,n,i,r,o,a,l,u,c){s(this,t),this._overlay=n,this._ngZone=i,this._viewContainerRef=r,this._dateAdapter=a,this._dir=l,this._model=c,this._inputStateChanges=M.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new Lu,this.monthSelected=new Lu,this.viewChanged=new Lu(!0),this.openedStream=new Lu,this.closedStream=new Lu,this._opened=!1,this.id="mat-datepicker-".concat(VV++),this._focusedElementBeforeOpen=null,this._backdropHarnessClass="".concat(this.id,"-backdrop"),this.stateChanges=new U,this._scrollStrategy=o}return a(t,[{key:"startAt",get:function(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)},set:function(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"color",get:function(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)},set:function(t){this._color=t}},{key:"touchUi",get:function(){return this._touchUi},set:function(t){this._touchUi=mv(t)}},{key:"disabled",get:function(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled},set:function(t){var e=mv(t);e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}},{key:"restoreFocus",get:function(){return this._restoreFocus},set:function(t){this._restoreFocus=mv(t)}},{key:"panelClass",get:function(){return this._panelClass},set:function(t){this._panelClass=xv(t)}},{key:"opened",get:function(){return this._opened},set:function(t){mv(t)?this.open():this.close()}},{key:"_getMinDate",value:function(){return this.datepickerInput&&this.datepickerInput.min}},{key:"_getMaxDate",value:function(){return this.datepickerInput&&this.datepickerInput.max}},{key:"_getDateFilter",value:function(){return this.datepickerInput&&this.datepickerInput.dateFilter}},{key:"ngOnChanges",value:function(t){var e=t.xPosition||t.yPosition;if(e&&!e.firstChange&&this._overlayRef){var n=this._overlayRef.getConfig().positionStrategy;n instanceof c_&&(this._setConnectedPositions(n),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}},{key:"ngOnDestroy",value:function(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}},{key:"select",value:function(t){this._model.add(t)}},{key:"_selectYear",value:function(t){this.yearSelected.emit(t)}},{key:"_selectMonth",value:function(t){this.monthSelected.emit(t)}},{key:"_viewChanged",value:function(t){this.viewChanged.emit(t)}},{key:"registerInput",value:function(t){var e=this;return this._inputStateChanges.unsubscribe(),this.datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(function(){return e.stateChanges.next(void 0)}),this._model}},{key:"registerActions",value:function(t){this._actionsPortal=t}},{key:"removeActions",value:function(t){t===this._actionsPortal&&(this._actionsPortal=null)}},{key:"open",value:function(){this._opened||this.disabled||(this._focusedElementBeforeOpen=hy(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}},{key:"close",value:function(){var t=this;if(this._opened){if(this._componentRef){var e=this._componentRef.instance;e._startExitAnimation(),e._animationDone.pipe(Lf(1)).subscribe(function(){return t._destroyOverlay()})}var n=function(){t._opened&&(t._opened=!1,t.closedStream.emit(),t._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(n)):n()}}},{key:"_applyPendingSelection",value:function(){var t,e;null===(e=null===(t=this._componentRef)||void 0===t?void 0:t.instance)||void 0===e||e._applyPendingSelection()}},{key:"_forwardContentValues",value:function(t){t.datepicker=this,t.color=this.color,t._actionsPortal=this._actionsPortal}},{key:"_openOverlay",value:function(){var t=this;this._destroyOverlay();var e=this.touchUi,n=this.datepickerInput.getOverlayLabelId(),i=new Cy(jV,this._viewContainerRef),r=this._overlayRef=this._overlay.create(new Jy({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-".concat(e?"dialog":"popup")})),o=r.overlayElement;o.setAttribute("role","dialog"),n&&o.setAttribute("aria-labelledby",n),e&&o.setAttribute("aria-modal","true"),this._getCloseStream(r).subscribe(function(e){e&&e.preventDefault(),t.close()}),this._componentRef=r.attach(i),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe(Lf(1)).subscribe(function(){return r.updatePosition()})}},{key:"_destroyOverlay",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}},{key:"_getDialogStrategy",value:function(){return this._overlay.position().global().centerHorizontally().centerVertically()}},{key:"_getDropdownStrategy",value:function(){var t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(t)}},{key:"_setConnectedPositions",value:function(t){var e="end"===this.xPosition?"end":"start",n="start"===e?"end":"start",i="above"===this.yPosition?"bottom":"top",r="top"===i?"bottom":"top";return t.withPositions([{originX:e,originY:r,overlayX:e,overlayY:i},{originX:e,originY:i,overlayX:e,overlayY:r},{originX:n,originY:r,overlayX:n,overlayY:i},{originX:n,originY:i,overlayX:n,overlayY:r}])}},{key:"_getCloseStream",value:function(t){var e=this;return dt(t.backdropClick(),t.detachments(),t.keydownEvents().pipe(Rd(function(t){return t.keyCode===Ny&&!Uy(t)||e.datepickerInput&&Uy(t,"altKey")&&t.keyCode===Hy})))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Al),us(__),us(xc),us(uu),us(zV),us(Vk,8),us(fy,8),us(rh,8),us(kV))},t.\u0275dir=me({type:t,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",restoreFocus:"restoreFocus",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[De]}),t}(),UV=function(){var t=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return n}(GV);return t.\u0275fac=function(){var e;return function(n){return(e||(e=pi(t)))(n||t)}}(),t.\u0275cmp=ce({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[yl([CV,{provide:GV,useExisting:t}]),Ya],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t}(),WV=function t(e,n){s(this,t),this.target=e,this.targetElement=n,this.value=this.target.value},YV=function(){var t=function(){function t(e,n,i){var r=this;s(this,t),this._elementRef=e,this._dateAdapter=n,this._dateFormats=i,this.dateChange=new Lu,this.dateInput=new Lu,this.stateChanges=new U,this._onTouched=function(){},this._validatorOnChange=function(){},this._cvaOnChange=function(){},this._valueChangesSubscription=M.EMPTY,this._localeSubscription=M.EMPTY,this._parseValidator=function(){return r._lastValueValid?null:{matDatepickerParse:{text:r._elementRef.nativeElement.value}}},this._filterValidator=function(t){var e=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(t.value));return!e||r._matchesFilter(e)?null:{matDatepickerFilter:!0}},this._minValidator=function(t){var e=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(t.value)),n=r._getMinDate();return!n||!e||r._dateAdapter.compareDate(n,e)<=0?null:{matDatepickerMin:{min:n,actual:e}}},this._maxValidator=function(t){var e=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(t.value)),n=r._getMaxDate();return!n||!e||r._dateAdapter.compareDate(n,e)>=0?null:{matDatepickerMax:{max:n,actual:e}}},this._lastValueValid=!1,this._localeSubscription=n.localeChanges.subscribe(function(){r._assignValueProgrammatically(r.value)})}return a(t,[{key:"value",get:function(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue},set:function(t){this._assignValueProgrammatically(t)}},{key:"disabled",get:function(){return!!this._disabled||this._parentDisabled()},set:function(t){var e=mv(t),n=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this.stateChanges.next(void 0)),e&&this._isInitialized&&n.blur&&n.blur()}},{key:"_getValidators",value:function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}},{key:"_registerModel",value:function(t){var e=this;this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(function(t){if(e._shouldHandleChangeEvent(t)){var n=e._getValueFromModel(t.selection);e._lastValueValid=e._isValidValue(n),e._cvaOnChange(n),e._onTouched(),e._formatValue(n),e.dateInput.emit(new WV(e,e._elementRef.nativeElement)),e.dateChange.emit(new WV(e,e._elementRef.nativeElement))}})}},{key:"ngAfterViewInit",value:function(){this._isInitialized=!0}},{key:"ngOnChanges",value:function(t){(function(t,e){for(var n=0,i=Object.keys(t);n2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.multiple||!this.selected||t.checked||(this.selected.checked=!1),this._selectionModel?e?this._selectionModel.select(t):this._selectionModel.deselect(t):r=!0,r?Promise.resolve().then(function(){return n._updateModelValue(i)}):this._updateModelValue(i)}},{key:"_isSelected",value:function(t){return this._selectionModel&&this._selectionModel.isSelected(t)}},{key:"_isPrechecked",value:function(t){return void 0!==this._rawValue&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(function(e){return null!=t.value&&e===t.value}):t.value===this._rawValue)}},{key:"_setSelectionByValue",value:function(t){var e=this;this._rawValue=t,this._buttonToggles&&(this.multiple&&t?(Array.isArray(t),this._clearSelection(),t.forEach(function(t){return e._selectValue(t)})):(this._clearSelection(),this._selectValue(t)))}},{key:"_clearSelection",value:function(){this._selectionModel.clear(),this._buttonToggles.forEach(function(t){return t.checked=!1})}},{key:"_selectValue",value:function(t){var e=this._buttonToggles.find(function(e){return null!=e.value&&e.value===t});e&&(e.checked=!0,this._selectionModel.select(e))}},{key:"_updateModelValue",value:function(t){t&&this._emitChangeEvent(),this.valueChange.emit(this.value)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Ql),us(ez,8))},t.\u0275dir=me({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,e,n){var i;1&t&&Zu(n,lz,5),2&t&&qu(i=Ku())&&(e._buttonToggles=i)},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(t,e){2&t&&(os("aria-disabled",e.disabled),Bs("mat-button-toggle-vertical",e.vertical)("mat-button-toggle-group-appearance-standard","standard"===e.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[yl([iz,{provide:nz,useExisting:t}])]}),t}(),sz=Ok(function(){return function t(){s(this,t)}}()),lz=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l){var u;s(this,n),(u=e.call(this))._changeDetectorRef=i,u._elementRef=r,u._focusMonitor=o,u._isSingleSelector=!1,u._checked=!1,u.ariaLabelledby=null,u._disabled=!1,u.change=new Lu;var c=Number(a);return u.tabIndex=c||0===c?c:null,u.buttonToggleGroup=t,u.appearance=l&&l.appearance?l.appearance:"standard",u}return a(n,[{key:"buttonId",get:function(){return"".concat(this.id,"-button")}},{key:"appearance",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance},set:function(t){this._appearance=t}},{key:"checked",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked},set:function(t){var e=mv(t);e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled},set:function(t){this._disabled=mv(t)}},{key:"ngOnInit",value:function(){var t=this.buttonToggleGroup;this._isSingleSelector=t&&!t.multiple,this.id=this.id||"mat-button-toggle-".concat(rz++),this._isSingleSelector&&(this.name=t.name),t&&(t._isPrechecked(this)?this.checked=!0:t._isSelected(this)!==this._checked&&t._syncButtonToggle(this,this._checked))}},{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){var t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}},{key:"focus",value:function(t){this._buttonElement.nativeElement.focus(t)}},{key:"_onButtonClick",value:function(){var t=!!this._isSingleSelector||!this._checked;t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new oz(this,this.value))}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),n}(sz);return t.\u0275fac=function(e){return new(e||t)(us(nz,8),us(Ql),us(Al),us(gb),mi("tabindex"),us(ez,8))},t.\u0275cmp=ce({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(t,e){var n;1&t&&Xu(JV,5),2&t&&qu(n=Ku())&&(e._buttonElement=n.first)},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(t,e){1&t&&xs("focus",function(){return e.focus()}),2&t&&(os("aria-label",null)("aria-labelledby",null)("id",e.id)("name",null),Bs("mat-button-toggle-standalone",!e.buttonToggleGroup)("mat-button-toggle-checked",e.checked)("mat-button-toggle-disabled",e.disabled)("mat-button-toggle-appearance-standard","standard"===e.appearance))},inputs:{disableRipple:"disableRipple",ariaLabelledby:["aria-labelledby","ariaLabelledby"],tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled",id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],value:"value"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[Ya],ngContentSelectors:tz,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,e){if(1&t&&(Ts(),ds(0,"button",0,1),xs("click",function(){return e._onButtonClick()}),ds(2,"span",2),Ds(3),fs(),fs(),ps(4,"span",3),ps(5,"span",4)),2&t){var n=ls(1);cs("id",e.buttonId)("disabled",e.disabled||null),os("tabindex",e.disabled?-1:e.tabIndex)("aria-pressed",e.checked)("name",e.name||null)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),Eo(5),cs("matRippleTrigger",n)("matRippleDisabled",e.disableRipple||e.disabled)}},directives:[oS],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.cdk-high-contrast-active .mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:.5}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}.cdk-high-contrast-active .mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.5}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{border-radius:inherit;pointer-events:none;opacity:0;top:0;left:0;right:0;bottom:0;position:absolute}.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}\n"],encapsulation:2,changeDetection:0}),t}(),uz=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[Tk,aS],Tk]}),t}();function cz(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Edit rule"),fs())}function hz(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"New rule"),fs())}function dz(t,e){if(1&t&&(ds(0,"mat-option",22),$s(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Eo(1),Js(" ",n.value," ")}}function fz(t,e){if(1&t&&(ds(0,"mat-option",22),$s(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Eo(1),Js(" ",n.value," ")}}function pz(t,e){if(1&t&&(ds(0,"mat-button-toggle",22),$s(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Eo(1),Js(" ",n.value," ")}}function gz(t,e){if(1&t){var n=ys();ds(0,"div",23),ds(1,"span",24),ds(2,"uds-translate"),$s(3,"Weekdays"),fs(),fs(),ds(4,"mat-button-toggle-group",25),xs("ngModelChange",function(t){return en(n),Ms().wDays=t}),ss(5,pz,2,2,"mat-button-toggle",8),fs(),fs()}if(2&t){var i=Ms();Eo(4),cs("ngModel",i.wDays),Eo(1),cs("ngForOf",i.weekDays)}}function mz(t,e){if(1&t){var n=ys();ds(0,"mat-form-field",9),ds(1,"mat-label"),ds(2,"uds-translate"),$s(3,"Repeat every"),fs(),fs(),ds(4,"input",6),xs("ngModelChange",function(t){return en(n),Ms().rule.interval=t}),fs(),ds(5,"div",26),$s(6),fs(),fs()}if(2&t){var i=Ms();Eo(4),cs("ngModel",i.rule.interval),Eo(2),Js("\xa0",i.frequency(),"")}}var vz={DAILY:[django.gettext("day"),django.gettext("days"),django.gettext("Daily")],WEEKLY:[django.gettext("week"),django.gettext("weeks"),django.gettext("Weekly")],MONTHLY:[django.gettext("month"),django.gettext("months"),django.gettext("Monthly")],YEARLY:[django.gettext("year"),django.gettext("years"),django.gettext("Yearly")],WEEKDAYS:["","",django.gettext("Weekdays")]},yz={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},_z=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],bz=function(t,e){void 0===e&&(e=!1);for(var n=new Array,i=0;i<7;i++)1&t&&n.push(_z[i].substr(0,e?100:3)),t>>=1;return n.length?n.join(", "):django.gettext("(no days)")},wz=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.dunits=Object.keys(yz).map(function(t){return{id:t,value:yz[t]}}),this.freqs=Object.keys(vz).map(function(t){return{id:t,value:vz[t][2]}}),this.weekDays=_z.map(function(t,e){return{id:1<0?" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+yz[this.rule.duration_unit]:django.gettext("with no duration")}return t.replace("$FIELD",n)},t.prototype.save=function(){var t=this;this.rules.save(this.rule).subscribe(function(){t.dialogRef.close(),t.onSave.emit(!0)})},t.\u0275fac=function(e){return new(e||t)(us(bI),us(WI),us(MS),us(TS))},t.\u0275cmp=ce({type:t,selectors:[["uds-calendar-rule"]],decls:73,vars:21,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"oneThird"],["matInput","","type","time",3,"ngModel","ngModelChange"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"oneHalf"],["matInput","",3,"matDatepicker","ngModel","ngModelChange"],["matSuffix","",3,"for"],["startDatePicker",""],["matInput","",3,"matDatepicker","ngModel","placeholder","ngModelChange"],["endDatePicker",""],[1,"weekdays"],[3,"ngModel","ngModelChange","valueChange"],["class","oneHalf mat-form-field-infix",4,"ngIf"],["class","oneHalf",4,"ngIf"],[1,"info"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"disabled","click"],[3,"value"],[1,"oneHalf","mat-form-field-infix"],[1,"label-weekdays"],["multiple","",3,"ngModel","ngModelChange"],["matSuffix",""]],template:function(t,e){if(1&t&&(ds(0,"h4",0),ss(1,cz,2,0,"uds-translate",1),ss(2,hz,2,0,"uds-translate",1),fs(),ds(3,"mat-dialog-content"),ds(4,"div",2),ds(5,"mat-form-field"),ds(6,"mat-label"),ds(7,"uds-translate"),$s(8,"Name"),fs(),fs(),ds(9,"input",3),xs("ngModelChange",function(t){return e.rule.name=t}),fs(),fs(),ds(10,"mat-form-field"),ds(11,"mat-label"),ds(12,"uds-translate"),$s(13,"Comments"),fs(),fs(),ds(14,"input",3),xs("ngModelChange",function(t){return e.rule.comments=t}),fs(),fs(),ds(15,"h3"),ds(16,"uds-translate"),$s(17,"Event"),fs(),fs(),ds(18,"mat-form-field",4),ds(19,"mat-label"),ds(20,"uds-translate"),$s(21,"Start time"),fs(),fs(),ds(22,"input",5),xs("ngModelChange",function(t){return e.startTime=t}),fs(),fs(),ds(23,"mat-form-field",4),ds(24,"mat-label"),ds(25,"uds-translate"),$s(26,"Duration"),fs(),fs(),ds(27,"input",6),xs("ngModelChange",function(t){return e.rule.duration=t}),fs(),fs(),ds(28,"mat-form-field",4),ds(29,"mat-label"),ds(30,"uds-translate"),$s(31,"Duration units"),fs(),fs(),ds(32,"mat-select",7),xs("ngModelChange",function(t){return e.rule.duration_unit=t}),ss(33,dz,2,2,"mat-option",8),fs(),fs(),ds(34,"h3"),$s(35," Repetition "),fs(),ds(36,"mat-form-field",9),ds(37,"mat-label"),ds(38,"uds-translate"),$s(39," Start date "),fs(),fs(),ds(40,"input",10),xs("ngModelChange",function(t){return e.startDate=t}),fs(),ps(41,"mat-datepicker-toggle",11),ps(42,"mat-datepicker",null,12),fs(),ds(44,"mat-form-field",9),ds(45,"mat-label"),ds(46,"uds-translate"),$s(47," Repeat until date "),fs(),fs(),ds(48,"input",13),xs("ngModelChange",function(t){return e.endDate=t}),fs(),ps(49,"mat-datepicker-toggle",11),ps(50,"mat-datepicker",null,14),fs(),ds(52,"div",15),ds(53,"mat-form-field",9),ds(54,"mat-label"),ds(55,"uds-translate"),$s(56,"Frequency"),fs(),fs(),ds(57,"mat-select",16),xs("ngModelChange",function(t){return e.rule.frequency=t})("valueChange",function(){return e.rule.interval=1}),ss(58,fz,2,2,"mat-option",8),fs(),fs(),ss(59,gz,6,2,"div",17),ss(60,mz,7,2,"mat-form-field",18),fs(),ds(61,"h3"),ds(62,"uds-translate"),$s(63,"Summary"),fs(),fs(),ds(64,"div",19),$s(65),fs(),fs(),fs(),ds(66,"mat-dialog-actions"),ds(67,"button",20),ds(68,"uds-translate"),$s(69,"Cancel"),fs(),fs(),ds(70,"button",21),xs("click",function(){return e.save()}),ds(71,"uds-translate"),$s(72,"Ok"),fs(),fs(),fs()),2&t){var n=ls(43),i=ls(51);Eo(1),cs("ngIf",e.rule.id),Eo(1),cs("ngIf",!e.rule.id),Eo(7),cs("ngModel",e.rule.name),Eo(5),cs("ngModel",e.rule.comments),Eo(8),cs("ngModel",e.startTime),Eo(5),cs("ngModel",e.rule.duration),Eo(5),cs("ngModel",e.rule.duration_unit),Eo(1),cs("ngForOf",e.dunits),Eo(7),cs("matDatepicker",n)("ngModel",e.startDate),Eo(1),cs("for",n),Eo(7),cs("matDatepicker",i)("ngModel",e.endDate)("placeholder",e.FOREVER_STRING),Eo(1),cs("for",i),Eo(8),cs("ngModel",e.rule.frequency),Eo(1),cs("ngForOf",e.freqs),Eo(1),cs("ngIf","WEEKDAYS"===e.rule.frequency),Eo(1),cs("ngIf","WEEKDAYS"!==e.rule.frequency),Eo(5),Js(" ",e.summary()," "),Eo(5),cs("disabled",null!==e.updateRuleData()||""===e.rule.name)}},directives:[FS,Dh,VS,dD,iD,$S,MO,dC,zC,pA,vA,RD,Ih,ZV,$V,sD,UV,zS,XS,NS,vS,az,lz],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]:not(.oneThird):not(.oneHalf){width:100%}.mat-form-field.oneThird[_ngcontent-%COMP%]{width:31%;margin-right:2%}.mat-form-field.oneHalf[_ngcontent-%COMP%]{width:48%;margin-right:2%}h3[_ngcontent-%COMP%]{width:100%;margin-top:.3rem;margin-bottom:1rem}.weekdays[_ngcontent-%COMP%]{width:100%;display:flex;align-items:flex-end}.label-weekdays[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}.mat-datepicker-toggle[_ngcontent-%COMP%]{color:#00f}.mat-button-toggle-checked[_ngcontent-%COMP%]{background-color:rgba(35,35,133,.5);color:#fff}"]}),t}();function xz(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Rules"),fs())}function kz(t,e){if(1&t){var n=ys();ds(0,"div",6),ds(1,"div",7),ds(2,"mat-tab-group",8),ds(3,"mat-tab"),ss(4,xz,2,0,"ng-template",9),ds(5,"div",10),ds(6,"uds-table",11),xs("newAction",function(t){return en(n),Ms().onNewRule(t)})("editAction",function(t){return en(n),Ms().onEditRule(t)})("deleteAction",function(t){return en(n),Ms().onDeleteRule(t)}),fs(),fs(),fs(),fs(),fs(),fs()}if(2&t){var i=Ms();Eo(2),cs("@.disabled",!0),Eo(4),cs("rest",i.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",i.processElement)("tableId","calendars-d-rules"+i.calendar.id)("pageSize",i.api.config.admin.page_size)}}var Sz=function(t){return["/pools","calendars",t]},Cz=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("calendar");this.rest.calendars.get(e).subscribe(function(e){t.calendar=e,t.calendarRules=t.rest.calendars.detail(e.id,"rules")})},t.prototype.onNewRule=function(t){wz.launch(this.api,this.calendarRules).subscribe(function(){return t.table.overview()})},t.prototype.onEditRule=function(t){wz.launch(this.api,this.calendarRules,t.table.selection.selected[0]).subscribe(function(){return t.table.overview()})},t.prototype.onDeleteRule=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar rule"))},t.prototype.processElement=function(t){!function(t){t.interval="WEEKDAYS"===t.frequency?bz(t.interval):t.interval+" "+vz[t.frequency][django.pluralidx(t.interval)],t.duration=t.duration+" "+yz[t.duration_unit]}(t)},t.\u0275fac=function(e){return new(e||t)(us(gg),us(WI),us(bI))},t.\u0275cmp=ce({type:t,selectors:[["uds-calendars-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","pageSize","newAction","editAction","deleteAction"]],template:function(t,e){1&t&&(ds(0,"div",0),ds(1,"div",1),ds(2,"a",2),ds(3,"i",3),$s(4,"arrow_back"),fs(),fs(),$s(5," \xa0"),ps(6,"img",4),$s(7),fs(),ss(8,kz,7,7,"div",5),fs()),2&t&&(Eo(2),cs("routerLink",Su(4,Sz,e.calendar?e.calendar.id:"")),Eo(4),cs("src",e.api.staticURL("admin/img/icons/calendars.png"),Tr),Eo(1),Js(" ",null==e.calendar?null:e.calendar.name," "),Eo(1),cs("ngIf",e.calendar))},directives:[Ym,Dh,cM,tM,$A,hR,$S],styles:[".mat-column-end, .mat-column-start{max-width:9rem} .mat-column-frequency{max-width:9rem} .mat-column-duration, .mat-column-interval{max-width:11rem}"]}),t}(),Az='event'+django.gettext("Set time mark")+"",Mz=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.cButtons=[{id:"timemark",html:Az,type:WM.SINGLE_SELECT}]}return t.prototype.ngOnInit=function(){},Object.defineProperty(t.prototype,"customButtons",{get:function(){return this.api.user.isAdmin?this.cButtons:[]},enumerable:!1,configurable:!0}),t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New account"))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit account"))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete account"))},t.prototype.onTimeMark=function(t){var e=this,n=t.table.selection.selected[0];this.api.gui.yesno(django.gettext("Time mark"),django.gettext("Set time mark for $NAME to current date/time?").replace("$NAME",n.name)).subscribe(function(i){i&&e.rest.accounts.timemark(n.id).subscribe(function(){e.api.gui.snackbar.open(django.gettext("Time mark stablished"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()})})},t.prototype.onDetail=function(t){this.api.navigation.gotoAccountDetail(t.param.id)},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("account"))},t.prototype.processElement=function(t){t.time_mark=78793200===t.time_mark?django.gettext("No time mark"):iT("SHORT_DATE_FORMAT",t.time_mark)},t.\u0275fac=function(e){return new(e||t)(us(gg),us(WI),us(bI))},t.\u0275cmp=ce({type:t,selectors:[["uds-accounts"]],decls:1,vars:7,consts:[["icon","accounts",3,"rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize","onItem","customButtonAction","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(ds(0,"uds-table",0),xs("customButtonAction",function(t){return e.onTimeMark(t)})("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("detailAction",function(t){return e.onDetail(t)})("loaded",function(t){return e.onLoad(t)}),fs()),2&t&&cs("rest",e.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("onItem",e.processElement)},directives:[hR],styles:[""]}),t}();function Iz(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Account usage"),fs())}function Tz(t,e){if(1&t){var n=ys();ds(0,"div",6),ds(1,"div",7),ds(2,"mat-tab-group",8),ds(3,"mat-tab"),ss(4,Iz,2,0,"ng-template",9),ds(5,"div",10),ds(6,"uds-table",11),xs("deleteAction",function(t){return en(n),Ms().onDeleteUsage(t)}),fs(),fs(),fs(),fs(),fs(),fs()}if(2&t){var i=Ms();Eo(2),cs("@.disabled",!0),Eo(4),cs("rest",i.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",i.processElement)("tableId","account-d-usage"+i.account.id)}}var Dz=function(t){return["/pools","accounts",t]},Ez=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("account");this.rest.accounts.get(e).subscribe(function(e){t.account=e,t.accountUsage=t.rest.accounts.detail(e.id,"usage")})},t.prototype.onDeleteUsage=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete account usage"))},t.prototype.processElement=function(t){t.running=this.api.yesno(t.running)},t.\u0275fac=function(e){return new(e||t)(us(gg),us(WI),us(bI))},t.\u0275cmp=ce({type:t,selectors:[["uds-accounts-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","accounts",3,"rest","multiSelect","allowExport","onItem","tableId","deleteAction"]],template:function(t,e){1&t&&(ds(0,"div",0),ds(1,"div",1),ds(2,"a",2),ds(3,"i",3),$s(4,"arrow_back"),fs(),fs(),$s(5," \xa0"),ps(6,"img",4),$s(7),fs(),ss(8,Tz,7,6,"div",5),fs()),2&t&&(Eo(2),cs("routerLink",Su(4,Dz,e.account?e.account.id:"")),Eo(4),cs("src",e.api.staticURL("admin/img/icons/accounts.png"),Tr),Eo(1),Js(" ",null==e.account?null:e.account.name," "),Eo(1),cs("ngIf",e.account))},directives:[Ym,Dh,cM,tM,$A,hR,$S],styles:[""]}),t}();function Oz(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"New image for"),fs())}function Pz(t,e){1&t&&(ds(0,"uds-translate"),$s(1,"Edit for"),fs())}var Rz=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Lu(!0),this.preview="",this.image={id:void 0,data:"",name:""},i.image&&(this.image.id=i.image.id)}return t.launch=function(e,n){void 0===n&&(n=null);var i=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:n},disableClose:!0}).componentInstance.onSave},t.prototype.onFileChanged=function(t){var e=this,n=t.target.files[0];if(n.size>262144)this.api.gui.alert(django.gettext("Error"),django.gettext("Image is too big (max. upload size is 256Kb)"));else if(["image/jpeg","image/png","image/gif"].includes(n.type)){var i=new FileReader;i.onload=function(t){var r=i.result;e.preview=r,e.image.data=r.substr(r.indexOf("base64,")+7),e.image.name||(e.image.name=n.name)},i.readAsDataURL(n)}else this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG and GIF"))},t.prototype.ngOnInit=function(){var t=this;this.image.id&&this.rest.gallery.get(this.image.id).subscribe(function(e){switch(t.image=e,t.image.data.substr(2)){case"iV":t.preview="data:image/png;base64,"+t.image.data;break;case"/9":t.preview="data:image/jpeg;base64,"+t.image.data;break;default:t.preview="data:image/gif;base64,"+t.image.data}})},t.prototype.background=function(){var t=this.api.config.image_size[0],e=this.api.config.image_size[1],n={"width.px":t,"height.px":e,"background-size":t+"px "+e+"px"};return this.preview&&(n["background-image"]="url("+this.preview+")"),n},t.prototype.save=function(){var t=this;this.image.name&&this.image.data?this.rest.gallery.save(this.image).subscribe(function(){t.api.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),t.dialogRef.close(),t.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, provide a name and a image"))},t.\u0275fac=function(e){return new(e||t)(us(bI),us(WI),us(MS),us(TS))},t.\u0275cmp=ce({type:t,selectors:[["uds-gallery-image"]],decls:32,vars:7,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],["type","file",2,"display","none",3,"change"],["fileInput",""],["matInput","","type","text",3,"hidden","click"],[1,"preview",3,"click"],[1,"image-preview",3,"ngStyle"],[1,"help"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,e){if(1&t){var n=ys();ds(0,"h4",0),ss(1,Oz,2,0,"uds-translate",1),ss(2,Pz,2,0,"uds-translate",1),fs(),ds(3,"mat-dialog-content"),ds(4,"div",2),ds(5,"mat-form-field"),ds(6,"mat-label"),ds(7,"uds-translate"),$s(8,"Image name"),fs(),fs(),ds(9,"input",3),xs("ngModelChange",function(t){return e.image.name=t}),fs(),fs(),ds(10,"input",4,5),xs("change",function(t){return e.onFileChanged(t)}),fs(),ds(12,"mat-form-field"),ds(13,"mat-label"),ds(14,"uds-translate"),$s(15,"Image (click to change)"),fs(),fs(),ds(16,"input",6),xs("click",function(){return en(n),ls(11).click()}),fs(),ds(17,"div",7),xs("click",function(){return en(n),ls(11).click()}),ps(18,"div",8),fs(),fs(),ds(19,"div",9),ds(20,"uds-translate"),$s(21,' For optimal results, use "squared" images. '),fs(),ds(22,"uds-translate"),$s(23," The image will be resized on upload to "),fs(),$s(24),fs(),fs(),fs(),ds(25,"mat-dialog-actions"),ds(26,"button",10),ds(27,"uds-translate"),$s(28,"Cancel"),fs(),fs(),ds(29,"button",11),xs("click",function(){return e.save()}),ds(30,"uds-translate"),$s(31,"Ok"),fs(),fs(),fs()}2&t&&(Eo(1),cs("ngIf",!e.image.id),Eo(1),cs("ngIf",e.image.id),Eo(7),cs("ngModel",e.image.name),Eo(7),cs("hidden",!0),Eo(2),cs("ngStyle",e.background()),Eo(6),tl(" ",e.api.config.image_size[0],"x",e.api.config.image_size[1]," "))},directives:[FS,Dh,VS,dD,iD,$S,MO,dC,zC,pA,Fh,zS,XS,NS],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%], .preview[_ngcontent-%COMP%]{width:100%}.preview[_ngcontent-%COMP%]{display:flex;justify-content:flex-start}.image-preview[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.3)}"]}),t}(),Lz=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){Rz.launch(this.api).subscribe(function(){return t.table.overview()})},t.prototype.onEdit=function(t){Rz.launch(this.api,t.table.selection.selected[0]).subscribe(function(){return t.table.overview()})},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete image"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("image"))},t.\u0275fac=function(e){return new(e||t)(us(gg),us(WI),us(bI))},t.\u0275cmp=ce({type:t,selectors:[["uds-gallery"]],decls:1,vars:5,consts:[["icon","gallery",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(ds(0,"uds-table",0),xs("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("loaded",function(t){return e.onLoad(t)}),fs()),2&t&&cs("rest",e.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",e.api.config.admin.page_size)},directives:[hR],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]}),t}(),Nz='assessment'+django.gettext("Generate report")+"",Fz=function(){function t(t,e){this.rest=t,this.api=e,this.customButtons=[{id:"genreport",html:Nz,type:WM.SINGLE_SELECT}]}return t.prototype.ngOnInit=function(){},t.prototype.generateReport=function(t){var e=this,n=new Lu;n.subscribe(function(n){e.api.gui.snackbar.open(django.gettext("Generating report...")),e.rest.reports.save(n,t.table.selection.selected[0].id).subscribe(function(t){for(var n=t.encoded?window.atob(t.data):t.data,i=n.length,r=new Uint8Array(i),o=0;o div[_ngcontent-%COMP%]{width:50%}.mat-form-field[_ngcontent-%COMP%]{width:100%}input[readonly][_ngcontent-%COMP%]{background-color:#e0e0e0}.slider-label[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}.config-footer[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;margin-top:2rem;margin-bottom:2rem}"]}),t}()},{path:"tools/tokens/actor",component:function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))},t.\u0275fac=function(e){return new(e||t)(us(bI),us(gg),us(WI))},t.\u0275cmp=ce({type:t,selectors:[["uds-actor-tokens"]],decls:2,vars:4,consts:[["icon","accounts",3,"rest","multiSelect","allowExport","pageSize","deleteAction"]],template:function(t,e){1&t&&(ds(0,"div"),ds(1,"uds-table",0),xs("deleteAction",function(t){return e.onDelete(t)}),fs(),fs()),2&t&&(Eo(1),cs("rest",e.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",e.api.config.admin.page_size))},directives:[hR],styles:[""]}),t}()},{path:"tools/tokens/tunnel",component:function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete tunnel token - USE WITH EXTREME CAUTION!!!"))},t.\u0275fac=function(e){return new(e||t)(us(bI),us(gg),us(WI))},t.\u0275cmp=ce({type:t,selectors:[["uds-tunnel-tokens"]],decls:2,vars:4,consts:[["icon","proxy",3,"rest","multiSelect","allowExport","pageSize","deleteAction"]],template:function(t,e){1&t&&(ds(0,"div"),ds(1,"uds-table",0),xs("deleteAction",function(t){return e.onDelete(t)}),fs(),fs()),2&t&&(Eo(1),cs("rest",e.rest.tunnelToken)("multiSelect",!0)("allowExport",!0)("pageSize",e.api.config.admin.page_size))},directives:[hR],styles:[""]}),t}()}]},{path:"**",redirectTo:"summary"}],eB=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[ov.forRoot(tB,{relativeLinkResolution:"legacy"})],ov]}),t}(),nB=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({}),t}(),iB=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[aS,Tk,N_,nB],Tk,nB]}),t}(),rB=["*"],oB=new _i("MatChipRemove"),aB=new _i("MatChipAvatar"),sB=new _i("MatChipTrailingIcon"),lB=Pk(Ek(Ok(function t(e){s(this,t),this._elementRef=e}),"primary"),-1),uB=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l,u,c){var h;return s(this,n),(h=e.call(this,t))._elementRef=t,h._ngZone=i,h._changeDetectorRef=a,h._hasFocus=!1,h.chipListSelectable=!0,h._chipListMultiple=!1,h._chipListDisabled=!1,h._selected=!1,h._selectable=!0,h._disabled=!1,h._removable=!0,h._onFocus=new U,h._onBlur=new U,h.selectionChange=new Lu,h.destroyed=new Lu,h.removed=new Lu,h._addHostClassName(),h._chipRippleTarget=l.createElement("div"),h._chipRippleTarget.classList.add("mat-chip-ripple"),h._elementRef.nativeElement.appendChild(h._chipRippleTarget),h._chipRipple=new eS(d(h),i,h._chipRippleTarget,r),h._chipRipple.setupTriggerEvents(t),h.rippleConfig=o||{},h._animationsDisabled="NoopAnimations"===u,h.tabIndex=null!=c&&parseInt(c)||-1,h}return a(n,[{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(t){var e=mv(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(t){this._value=t}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(t){this._selectable=mv(t)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(t){this._disabled=mv(t)}},{key:"removable",get:function(){return this._removable},set:function(t){this._removable=mv(t)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}},{key:"_addHostClassName",value:function(){var t="mat-basic-chip",e=this._elementRef.nativeElement;e.hasAttribute(t)||e.tagName.toLowerCase()===t?e.classList.add(t):e.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}},{key:"toggleSelected",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(t),this._changeDetectorRef.markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(t){this.disabled?t.preventDefault():t.stopPropagation()}},{key:"_handleKeydown",value:function(t){if(!this.disabled)switch(t.keyCode){case 46:case 8:this.remove(),t.preventDefault();break;case Fy:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}},{key:"_blur",value:function(){var t=this;this._ngZone.onStable.pipe(Lf(1)).subscribe(function(){t._ngZone.run(function(){t._hasFocus=!1,t._onBlur.next({chip:t})})})}},{key:"_dispatchSelectionChange",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}}]),n}(lB);return t.\u0275fac=function(e){return new(e||t)(us(Al),us(xc),us(ry),us(rS,8),us(Ql),us(rh),us(vk,8),mi("tabindex"))},t.\u0275dir=me({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,n){var i;1&t&&(Zu(n,aB,5),Zu(n,sB,5),Zu(n,oB,5)),2&t&&(qu(i=Ku())&&(e.avatar=i.first),qu(i=Ku())&&(e.trailingIcon=i.first),qu(i=Ku())&&(e.removeIcon=i.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&xs("click",function(t){return e._handleClick(t)})("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e.focus()})("blur",function(){return e._blur()}),2&t&&(os("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),Bs("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[Ya]}),t}(),cB=function(){var t=function(){function t(e,n){s(this,t),this._parentChip=e,"BUTTON"===n.nativeElement.nodeName&&n.nativeElement.setAttribute("type","button")}return a(t,[{key:"_handleClick",value:function(t){var e=this._parentChip;e.removable&&!e.disabled&&e.remove(),t.stopPropagation()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(uB),us(Al))},t.\u0275dir=me({type:t,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(t,e){1&t&&xs("click",function(t){return e._handleClick(t)})},features:[yl([{provide:oB,useExisting:t}])]}),t}(),hB=new _i("mat-chips-default-options"),dB=Rk(function(){return function t(e,n,i,r){s(this,t),this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}}()),fB=0,pB=function t(e,n){s(this,t),this.source=e,this.value=n},gB=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l,u){var c;return s(this,n),(c=e.call(this,l,o,a,u))._elementRef=t,c._changeDetectorRef=i,c._dir=r,c.ngControl=u,c.controlType="mat-chip-list",c._lastDestroyedChipIndex=null,c._destroyed=new U,c._uid="mat-chip-list-".concat(fB++),c._tabIndex=0,c._userTabIndex=null,c._onTouched=function(){},c._onChange=function(){},c._multiple=!1,c._compareWith=function(t,e){return t===e},c._required=!1,c._disabled=!1,c.ariaOrientation="horizontal",c._selectable=!0,c.change=new Lu,c.valueChange=new Lu,c.ngControl&&(c.ngControl.valueAccessor=d(c)),c}return a(n,[{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(t){this._multiple=mv(t),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(t){this.writeValue(t),this._value=t}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(t){this._required=mv(t),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(t){this._disabled=mv(t),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(t){var e=this;this._selectable=mv(t),this.chips&&this.chips.forEach(function(t){return t.chipListSelectable=e._selectable})}},{key:"tabIndex",set:function(t){this._userTabIndex=t,this._tabIndex=t}},{key:"chipSelectionChanges",get:function(){return dt.apply(void 0,b(this.chips.map(function(t){return t.selectionChange})))}},{key:"chipFocusChanges",get:function(){return dt.apply(void 0,b(this.chips.map(function(t){return t._onFocus})))}},{key:"chipBlurChanges",get:function(){return dt.apply(void 0,b(this.chips.map(function(t){return t._onBlur})))}},{key:"chipRemoveChanges",get:function(){return dt.apply(void 0,b(this.chips.map(function(t){return t.destroyed})))}},{key:"ngAfterContentInit",value:function(){var t=this;this._keyManager=new Z_(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(qv(this._destroyed)).subscribe(function(e){return t._keyManager.withHorizontalOrientation(e)}),this._keyManager.tabOut.pipe(qv(this._destroyed)).subscribe(function(){t._allowFocusEscape()}),this.chips.changes.pipe(Vf(null),qv(this._destroyed)).subscribe(function(){t.disabled&&Promise.resolve().then(function(){t._syncChipsState()}),t._resetChips(),t._initializeSelection(),t._updateTabIndex(),t._updateFocusForDestroyedChips(),t.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new yy(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(t){this._chipInput=t,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",t.id)}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"writeValue",value:function(t){this.chips&&this._setSelectionByValue(t,!1)}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this.stateChanges.next()}},{key:"onContainerClick",value:function(t){this._originatesFromChip(t)||this.focus()}},{key:"focus",value:function(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}},{key:"_focusInput",value:function(t){this._chipInput&&this._chipInput.focus(t)}},{key:"_keydown",value:function(t){var e=t.target;e&&e.classList.contains("mat-chip")&&(this._keyManager.onKeydown(t),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(t){return t>=0&&t1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(t){return t.deselect()}),Array.isArray(t))t.forEach(function(t){return e._selectValue(t,n)}),this._sortValues();else{var i=this._selectValue(t,n);i&&n&&this._keyManager.setActiveItem(i)}}},{key:"_selectValue",value:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.chips.find(function(n){return null!=n.value&&e._compareWith(n.value,t)});return i&&(n?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}},{key:"_initializeSelection",value:function(){var t=this;Promise.resolve().then(function(){(t.ngControl||t._value)&&(t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value,!1),t.stateChanges.next())})}},{key:"_clearSelection",value:function(t){this._selectionModel.clear(),this.chips.forEach(function(e){e!==t&&e.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var t=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(e){e.selected&&t._selectionModel.select(e)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(t){var e;e=Array.isArray(this.selected)?this.selected.map(function(t){return t.value}):this.selected?this.selected.value:t,this._value=e,this.change.emit(new pB(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var t=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){t.focused||t._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var t=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){t._tabIndex=t._userTabIndex||0,t._changeDetectorRef.markForCheck()}))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}},{key:"_listenToChipsSelection",value:function(){var t=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(e){e.source.selected?t._selectionModel.select(e.source):t._selectionModel.deselect(e.source),t.multiple||t.chips.forEach(function(e){!t._selectionModel.isSelected(e)&&e.selected&&e.deselect()}),e.isUserInput&&t._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var t=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(e){var n=t.chips.toArray().indexOf(e.chip);t._isValidIndex(n)&&t._keyManager.updateActiveItem(n),t.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){t._blur(),t.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var t=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(e){var n=e.chip,i=t.chips.toArray().indexOf(e.chip);t._isValidIndex(i)&&n._hasFocus&&(t._lastDestroyedChipIndex=i)})}},{key:"_originatesFromChip",value:function(t){for(var e=t.target;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(t){return t._hasFocus})}},{key:"_syncChipsState",value:function(){var t=this;this.chips&&this.chips.forEach(function(e){e._chipListDisabled=t._disabled,e._chipListMultiple=t.multiple})}}]),n}(dB);return t.\u0275fac=function(e){return new(e||t)(us(Al),us(Ql),us(fy,8),us(hA,8),us(wA,8),us(Zk),us(FC,10))},t.\u0275cmp=ce({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,n){var i;1&t&&Zu(n,uB,5),2&t&&qu(i=Ku())&&(e.chips=i)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&xs("focus",function(){return e.focus()})("blur",function(){return e._blur()})("keydown",function(t){return e._keydown(t)}),2&t&&(el("id",e._uid),os("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),Bs("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[yl([{provide:eD,useExisting:t}]),Ya],ngContentSelectors:rB,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(Ts(),ds(0,"div",0),Ds(1),fs())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t}(),mB=0,vB=function(){var t=function(){function t(e,n){s(this,t),this._elementRef=e,this._defaultOptions=n,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new Lu,this.placeholder="",this.id="mat-chip-list-input-".concat(mB++),this._disabled=!1,this.inputElement=this._elementRef.nativeElement}return a(t,[{key:"chipList",set:function(t){t&&(this._chipList=t,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(t){this._addOnBlur=mv(t)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(t){this._disabled=mv(t)}},{key:"empty",get:function(){return!this.inputElement.value}},{key:"ngOnChanges",value:function(){this._chipList.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.chipEnd.complete()}},{key:"ngAfterContentInit",value:function(){this._focusLastChipOnBackspace=this.empty}},{key:"_keydown",value:function(t){if(t){if(9!==t.keyCode||Uy(t,"shiftKey")||this._chipList._allowFocusEscape(),8===t.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void t.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(t)}},{key:"_keyup",value:function(t){!this._focusLastChipOnBackspace&&8===t.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,t.preventDefault())}},{key:"_blur",value:function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}},{key:"_focus",value:function(){this.focused=!0,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(t){!this.inputElement.value&&t&&this._chipList._keydown(t),t&&!this._isSeparatorKey(t)||(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==t||t.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(t){this.inputElement.focus(t)}},{key:"clear",value:function(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}},{key:"_isSeparatorKey",value:function(t){return!Uy(t)&&new Set(this.separatorKeyCodes).has(t.keyCode)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(us(Al),us(hB))},t.\u0275dir=me({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,e){1&t&&xs("keydown",function(t){return e._keydown(t)})("keyup",function(t){return e._keyup(t)})("blur",function(){return e._blur()})("focus",function(){return e._focus()})("input",function(){return e._onInput()}),2&t&&(el("id",e.id),os("disabled",e.disabled||null)("placeholder",e.placeholder||null)("aria-invalid",e._chipList&&e._chipList.ngControl?e._chipList.ngControl.invalid:null)("aria-required",e._chipList&&e._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[De]}),t}(),yB={separatorKeyCodes:[Ly]},_B=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[Zk,{provide:hB,useValue:yB}],imports:[[Tk]]}),t}(),bB=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({}),t}(),wB=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[Wh,Tk,bB,Oy]]}),t}(),xB=["*",[["mat-toolbar-row"]]],kB=["*","mat-toolbar-row"],SB=Ek(function(){return function t(e){s(this,t),this._elementRef=e}}()),CB=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t}(),AB=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,t))._platform=i,o._document=r,o}return a(n,[{key:"ngAfterViewInit",value:function(){var t=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return t._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(SB);return t.\u0275fac=function(e){return new(e||t)(us(Al),us(ry),us(rh))},t.\u0275cmp=ce({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){var i;1&t&&Zu(n,CB,5),2&t&&qu(i=Ku())&&(e._toolbarRows=i)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&Bs("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Ya],ngContentSelectors:kB,decls:2,vars:0,template:function(t,e){1&t&&(Ts(xB),Ds(0),Ds(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t}(),MB=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({imports:[[Tk],Tk]}),t}(),IB=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Pt({providers:[{provide:cD,useValue:{floatLabel:"always"}},{provide:Fk,useValue:udsData.language}],imports:[Wh,TA,DA,MB,KS,wP,YD,wB,HS,fD,IO,LD,QV,Xk,dO,oE,yE,nP,iB,vM,_B,uz,kL,tL,vI,kP,KO]}),t}();function TB(t,e){if(1&t){var n=ys();ds(0,"button",6),xs("click",function(){var t=en(n).$implicit;return Ms().changeLang(t)}),$s(1),fs()}if(2&t){var i=e.$implicit;Eo(1),Qs(i.name)}}function DB(t,e){if(1&t&&(ds(0,"button",12),ds(1,"i",7),$s(2,"face"),fs(),$s(3),fs()),2&t){var n=Ms();cs("matMenuTriggerFor",ls(7)),Eo(3),Qs(n.api.user.user)}}function EB(t,e){if(1&t&&(ds(0,"button",18),$s(1),ds(2,"i",7),$s(3,"arrow_drop_down"),fs(),fs()),2&t){var n=Ms();cs("matMenuTriggerFor",ls(7)),Eo(1),Js("",n.api.user.user," ")}}var OB=function(){function t(t){this.api=t,this.isNavbarCollapsed=!0;var e=t.config.language;this.langs=[];for(var n=0,i=t.config.available_languages;n .mat-button[_ngcontent-%COMP%]{padding-left:1.5rem}.submenu2[_ngcontent-%COMP%] > .mat-button[_ngcontent-%COMP%]{padding-left:1.8rem}.icon[_ngcontent-%COMP%]{width:24px;margin:0 1em 0 0}"]}),t}();function FB(t,e){1&t&&ps(0,"div",1),2&t&&cs("innerHTML",Ms().messages,Ir)}var VB=function(){function t(t){this.api=t,this.messages="",this.visible=!1}return t.prototype.ngOnInit=function(){var t=this;if(this.api.notices.length>0){var e='
';this.messages='
'+e+this.api.notices.map(function(t){return t.replace(/ /gm," ").replace(/([A-Z]+[A-Z]+)/gm,"$1").replace(/([0-9]+)/gm,"$1")}).join("
"+e)+"
",this.api.gui.alert("",this.messages,0,"80%").subscribe(function(){t.visible=!0})}},t.\u0275fac=function(e){return new(e||t)(us(bI))},t.\u0275cmp=ce({type:t,selectors:[["uds-notices"]],decls:1,vars:1,consts:[["class","notice",3,"innerHTML",4,"ngIf"],[1,"notice",3,"innerHTML"]],template:function(t,e){1&t&&ss(0,FB,1,1,"div",0),2&t&&cs("ngIf",e.visible)},directives:[Dh],styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:#4682b4;border-radius:3px;box-shadow:0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(70,93,156,.4);box-sizing:border-box;color:#fff;margin:1rem 2rem 0;padding:15px;word-wrap:break-word;display:flex;flex-direction:column} .warn-notice{display:block;width:100%;text-align:center;font-size:1.1em;margin-bottom:.5rem}"]}),t}(),zB=function(){function t(){}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-footer"]],decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(t,e){1&t&&(ds(0,"div"),$s(1,"\xa9 2012-2020 "),ds(2,"a",0),$s(3,"Virtual Cable S.L.U."),fs(),fs())},styles:[""]}),t}(),BB=function(){function t(){this.title="uds admin"}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-root"]],decls:9,vars:0,consts:[[1,"content"],[1,"footer"]],template:function(t,e){1&t&&(ds(0,"div"),ps(1,"uds-navbar"),ps(2,"uds-sidebar"),ds(3,"div"),ds(4,"div",0),ps(5,"uds-notices"),ps(6,"router-outlet"),fs(),ds(7,"div",1),ps(8,"uds-footer"),fs(),fs(),fs())},directives:[OB,NB,VB,Xm,zB],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:calc(100% - 56px - 8px);margin:4rem auto auto 56px;padding-left:8px;overflow-x:hidden}"]}),t}(),HB=function(t){function e(){var e=t.call(this)||this;return e.itemsPerPageLabel=django.gettext("Items per page"),e}return kI(e,t),e.\u0275prov=Ot({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(JD),jB=function(){function t(){this.changed=new Lu}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:7,consts:[["appearance","standard"],["matInput","","type","text",3,"ngModel","placeholder","required","disabled","maxlength","autocomplete","ngModelChange","change"]],template:function(t,e){1&t&&(ds(0,"mat-form-field",0),ds(1,"mat-label"),$s(2),fs(),ds(3,"input",1),xs("ngModelChange",function(t){return e.field.value=t})("change",function(){return e.changed.emit(e)}),fs(),fs()),2&t&&(Eo(2),Js(" ",e.field.gui.label," "),Eo(1),cs("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly)("maxlength",e.field.gui.length||128)("autocomplete","new-"+e.field.name))},directives:[dD,iD,MO,dC,zC,pA,SA,MA],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]}),t}(),GB=function(){function t(){this.changed=new Lu}return t.prototype.ngOnInit=function(){this.field.value||0===this.field.value||(this.field.value=this.field.gui.defvalue)},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field-numeric"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","always"],["matInput","","type","number",3,"ngModel","placeholder","required","disabled","ngModelChange","change"]],template:function(t,e){1&t&&(ds(0,"mat-form-field",0),ds(1,"mat-label"),$s(2),fs(),ds(3,"input",1),xs("ngModelChange",function(t){return e.field.value=t})("change",function(){return e.changed.emit(e)}),fs(),fs()),2&t&&(Eo(2),Js(" ",e.field.gui.label," "),Eo(1),cs("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly))},directives:[dD,iD,MO,vA,dC,zC,pA,SA],styles:[""]}),t}(),UB=function(){function t(){this.changed=new Lu,this.passwordType="password"}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:6,consts:[["appearance","standard","floatLabel","always"],["matInput","","autocomplete","new-password",3,"ngModel","placeholder","required","disabled","type","ngModelChange","change"],["mat-button","","matSuffix","","mat-icon-button","",3,"click"],["matSuffix","",1,"material-icons"]],template:function(t,e){1&t&&(ds(0,"mat-form-field",0),ds(1,"mat-label"),$s(2),fs(),ds(3,"input",1),xs("ngModelChange",function(t){return e.field.value=t})("change",function(){return e.changed.emit(e)}),fs(),ds(4,"a",2),xs("click",function(){return e.passwordType="text"===e.passwordType?"password":"text"}),ds(5,"i",3),$s(6,"remove_red_eye"),fs(),fs(),fs()),2&t&&(Eo(2),Js(" ",e.field.gui.label," "),Eo(1),cs("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly)("type",e.passwordType))},directives:[dD,iD,MO,dC,zC,pA,SA,ZS,sD],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]}),t}(),WB=function(){function t(){}return t.prototype.ngOnInit=function(){""!==this.field.value&&void 0!==this.field.value||(this.field.value=this.field.gui.defvalue)},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field-hidden"]],inputs:{field:"field"},decls:0,vars:0,template:function(t,e){},styles:[""]}),t}(),YB=function(){function t(){}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field-textbox"]],inputs:{field:"field",value:"value"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","auto"],["matInput","","type","text",3,"ngModel","placeholder","required","readonly","ngModelChange"]],template:function(t,e){1&t&&(ds(0,"mat-form-field",0),ds(1,"mat-label"),$s(2),fs(),ds(3,"textarea",1),xs("ngModelChange",function(t){return e.field.value=t}),fs(),fs()),2&t&&(Eo(2),Js(" ",e.field.gui.label," "),Eo(1),cs("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",e.field.gui.required)("readonly",e.field.gui.rdonly))},directives:[dD,iD,MO,dC,zC,pA,SA],styles:[""]}),t}();function qB(t,e){if(1&t){var n=ys();ds(0,"uds-mat-select-search",3),xs("changed",function(t){return en(n),Ms().filter=t}),fs()}}function XB(t,e){if(1&t&&(ds(0,"mat-option",4),$s(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Eo(1),Js(" ",n.text," ")}}var ZB=function(){function t(){this.changed=new Lu,this.filter=""}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,""===this.field.value&&this.field.gui.values.length>0&&(this.field.value=this.field.gui.values[0].id),this.field.value=""+this.field.value},t.prototype.filteredValues=function(){if(!this.filter)return this.field.gui.values;var t=this.filter.toLocaleLowerCase();return this.field.gui.values.filter(function(e){return e.text.toLocaleLowerCase().includes(t)})},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:7,consts:[[3,"ngModel","placeholder","required","disabled","ngModelChange","valueChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(ds(0,"mat-form-field"),ds(1,"mat-label"),$s(2),fs(),ds(3,"mat-select",0),xs("ngModelChange",function(t){return e.field.value=t})("valueChange",function(){return e.changed.emit(e)}),ss(4,qB,1,0,"uds-mat-select-search",1),ss(5,XB,2,2,"mat-option",2),fs(),fs()),2&t&&(Eo(2),Js(" ",e.field.gui.label," "),Eo(1),cs("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),Eo(1),cs("ngIf",e.field.gui.values.length>10),Eo(1),cs("ngForOf",e.filteredValues()))},directives:[dD,iD,RD,zC,pA,SA,Dh,Ih,PO,vS],styles:[""]}),t}();function KB(t,e){if(1&t){var n=ys();ds(0,"uds-mat-select-search",3),xs("changed",function(t){return en(n),Ms().filter=t}),fs()}}function $B(t,e){if(1&t&&(ds(0,"mat-option",4),$s(1),fs()),2&t){var n=e.$implicit;cs("value",n.id),Eo(1),Js(" ",n.text," ")}}var QB=function(){function t(){this.changed=new Lu,this.filter=""}return t.prototype.ngOnInit=function(){this.field.value=void 0,void 0!==this.field.values?this.field.values.forEach(function(t,e,n){n[e]=""+t.id}):this.field.values=new Array},t.prototype.filteredValues=function(){if(!this.filter)return this.field.gui.values;var t=this.filter.toLocaleLowerCase();return this.field.gui.values.filter(function(e){return e.text.toLocaleLowerCase().includes(t)})},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field-multichoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:7,consts:[["multiple","",3,"ngModel","placeholder","required","disabled","ngModelChange","valueChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(ds(0,"mat-form-field"),ds(1,"mat-label"),$s(2),fs(),ds(3,"mat-select",0),xs("ngModelChange",function(t){return e.field.values=t})("valueChange",function(){return e.changed.emit(e)}),ss(4,KB,1,0,"uds-mat-select-search",1),ss(5,$B,2,2,"mat-option",2),fs(),fs()),2&t&&(Eo(2),Js(" ",e.field.gui.label," "),Eo(1),cs("ngModel",e.field.values)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),Eo(1),cs("ngIf",e.field.gui.values.length>10),Eo(1),cs("ngForOf",e.filteredValues()))},directives:[dD,iD,RD,zC,pA,SA,Dh,Ih,PO,vS],styles:[""]}),t}();function JB(t,e){if(1&t){var n=ys();ds(0,"div",12),ds(1,"div",13),$s(2),fs(),ds(3,"div",14),$s(4," \xa0"),ds(5,"a",15),xs("click",function(){var t=en(n).index;return Ms().removeElement(t)}),ds(6,"i",16),$s(7,"close"),fs(),fs(),fs(),fs()}if(2&t){var i=e.$implicit;Eo(2),Js(" ",i," ")}}var tH=function(){function t(t,e,n,i){var r=this;this.api=t,this.rest=e,this.dialogRef=n,this.data=i,this.values=[],this.input="",this.onSave=new Lu(!0),this.data.values.forEach(function(t){return r.values.push(t)})}return t.launch=function(e,n,i){var r=window.innerWidth<800?"50%":"30%";return e.gui.dialog.open(t,{width:r,data:{title:n,values:i},disableClose:!0}).componentInstance.onSave},t.prototype.addElements=function(){var t=this;this.input.split(",").forEach(function(e){t.values.push(e)}),this.input=""},t.prototype.checkKey=function(t){"Enter"===t.code&&this.addElements()},t.prototype.removeAll=function(){this.values.length=0},t.prototype.removeElement=function(t){this.values.splice(t,1)},t.prototype.save=function(){var t=this;this.data.values.length=0,this.values.forEach(function(e){return t.data.values.push(e)}),this.onSave.emit(this.values),this.dialogRef.close()},t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)(us(bI),us(WI),us(MS),us(TS))},t.\u0275cmp=ce({type:t,selectors:[["uds-editlist-editor"]],decls:23,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[1,"list"],["class","elem",4,"ngFor","ngForOf"],[1,"buttons"],["mat-raised-button","","color","warn",3,"click"],[1,"input"],[1,"example-full-width"],["type","text","matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","",1,"material-icons",3,"click"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[1,"elem"],[1,"val"],[1,"remove"],[3,"click"],[1,"material-icons"]],template:function(t,e){1&t&&(ds(0,"h4",0),$s(1),fs(),ds(2,"mat-dialog-content"),ds(3,"div",1),ds(4,"div",2),ss(5,JB,8,1,"div",3),fs(),ds(6,"div",4),ds(7,"button",5),xs("click",function(){return e.removeAll()}),ds(8,"uds-translate"),$s(9,"Remove all"),fs(),fs(),fs(),ds(10,"div",6),ds(11,"mat-form-field",7),ds(12,"input",8),xs("keyup",function(t){return e.checkKey(t)})("ngModelChange",function(t){return e.input=t}),fs(),ds(13,"button",9),xs("click",function(){return e.addElements()}),ds(14,"uds-translate"),$s(15,"Add"),fs(),fs(),fs(),fs(),fs(),fs(),ds(16,"mat-dialog-actions"),ds(17,"button",10),ds(18,"uds-translate"),$s(19,"Cancel"),fs(),fs(),ds(20,"button",11),xs("click",function(){return e.save()}),ds(21,"uds-translate"),$s(22,"Ok"),fs(),fs(),fs()),2&t&&(Eo(1),Js(" ",e.data.title,"\n"),Eo(4),cs("ngForOf",e.values),Eo(7),cs("ngModel",e.input))},directives:[FS,VS,Ih,XS,$S,dD,MO,dC,zC,pA,sD,zS,NS],styles:[".content[_ngcontent-%COMP%]{width:100%;justify-content:space-between;justify-self:center}.content[_ngcontent-%COMP%], .list[_ngcontent-%COMP%]{display:flex;flex-direction:column}.list[_ngcontent-%COMP%]{margin:1rem;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:0 1px 4px 0 rgba(0,0,0,.14);padding:.5rem}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:1rem}.input[_ngcontent-%COMP%]{margin:0 1rem}.elem[_ngcontent-%COMP%]{font-family:Courier New,Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.elem[_ngcontent-%COMP%]:hover{background-color:#333;color:#fff;cursor:default}.val[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}(),eH=function(){function t(t){this.api=t,this.changed=new Lu}return t.prototype.ngOnInit=function(){},t.prototype.launch=function(){var t=this;void 0===this.field.values&&(this.field.values=[]),tH.launch(this.api,this.field.gui.label,this.field.values).subscribe(function(e){t.changed.emit({field:t.field})})},t.prototype.getValue=function(){if(void 0===this.field.values)return"";var t=this.field.values.filter(function(t,e,n){return e<5}).join(", ");return this.field.values.length>5&&(t+=django.gettext(", (%i more items)").replace("%i",""+(this.field.values.length-5))),t},t.\u0275fac=function(e){return new(e||t)(us(bI))},t.\u0275cmp=ce({type:t,selectors:[["uds-field-editlist"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","always"],["matInput","","type","text",1,"editlist",3,"readonly","value","placeholder","disabled","click"]],template:function(t,e){1&t&&(ds(0,"mat-form-field",0),ds(1,"mat-label"),$s(2),fs(),ds(3,"input",1),xs("click",function(){return e.launch()}),fs(),fs()),2&t&&(Eo(2),Js(" ",e.field.gui.label," "),Eo(1),cs("readonly",!0)("value",e.getValue())("placeholder",e.field.gui.tooltip)("disabled",!0===e.field.gui.rdonly))},directives:[dD,iD,MO],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]}),t}(),nH=function(){function t(){this.changed=new Lu}return t.prototype.ngOnInit=function(){var t;this.field.value=rT(""===(t=this.field.value)||null==t?this.field.gui.defvalue:this.field.value)},t.prototype.getValue=function(){return rT(this.field.value)?django.gettext("Yes"):django.gettext("No")},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field-checkbox"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:5,vars:5,consts:[[1,"mat-form-field-infix"],[1,"label"],[3,"ngModel","required","disabled","ngModelChange","change"]],template:function(t,e){1&t&&(ds(0,"div",0),ds(1,"span",1),$s(2),fs(),ds(3,"mat-slide-toggle",2),xs("ngModelChange",function(t){return e.field.value=t})("change",function(){return e.changed.emit(e)}),$s(4),fs(),fs()),2&t&&(Eo(2),Qs(e.field.gui.label),Eo(1),cs("ngModel",e.field.value)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),Eo(1),Js(" ",e.getValue()," "))},directives:[_L,wL,zC,pA,SA],styles:[".label[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}"]}),t}();function iH(t,e){if(1&t&&ps(0,"div",5),2&t){var n=Ms().$implicit;cs("innerHTML",Ms().asIcon(n),Ir)}}function rH(t,e){if(1&t&&(ds(0,"div"),ss(1,iH,1,1,"div",4),fs()),2&t){var n=e.$implicit,i=Ms();Eo(1),cs("ngIf",n.id==i.field.value)}}function oH(t,e){if(1&t){var n=ys();ds(0,"uds-mat-select-search",6),xs("changed",function(t){return en(n),Ms().filter=t}),fs()}}function aH(t,e){if(1&t&&(ds(0,"mat-option",7),ps(1,"div",5),fs()),2&t){var n=e.$implicit,i=Ms();cs("value",n.id),Eo(1),cs("innerHTML",i.asIcon(n),Ir)}}var sH=function(){function t(t){this.api=t,this.changed=new Lu,this.filter=""}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,""===this.field.value&&this.field.gui.values.length>=0&&(this.field.value=this.field.gui.values[0].id)},t.prototype.asIcon=function(t){return this.api.safeString(this.api.gui.icon(t.img)+t.text)},t.prototype.filteredValues=function(){if(!this.filter)return this.field.gui.values;var t=this.filter.toLocaleLowerCase();return this.field.gui.values.filter(function(e){return e.text.toLocaleLowerCase().includes(t)})},t.\u0275fac=function(e){return new(e||t)(us(bI))},t.\u0275cmp=ce({type:t,selectors:[["uds-field-imgchoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:8,vars:8,consts:[[3,"placeholder","ngModel","required","disabled","valueChange","ngModelChange"],[4,"ngFor","ngForOf"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(ds(0,"mat-form-field"),ds(1,"mat-label"),$s(2),fs(),ds(3,"mat-select",0),xs("valueChange",function(){return e.changed.emit(e)})("ngModelChange",function(t){return e.field.value=t}),ds(4,"mat-select-trigger"),ss(5,rH,2,1,"div",1),fs(),ss(6,oH,1,0,"uds-mat-select-search",2),ss(7,aH,2,2,"mat-option",3),fs(),fs()),2&t&&(Eo(2),Js(" ",e.field.gui.label," "),Eo(1),cs("placeholder",e.field.gui.tooltip)("ngModel",e.field.value)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),Eo(2),cs("ngForOf",e.field.gui.values),Eo(1),cs("ngIf",e.field.gui.values.length>10),Eo(1),cs("ngForOf",e.filteredValues()))},directives:[dD,iD,RD,zC,pA,SA,OD,Ih,Dh,PO,vS],styles:[""]}),t}(),lH=function(){function t(){this.changed=new Lu,this.value=new Date}return Object.defineProperty(t.prototype,"date",{get:function(){return this.value},set:function(t){this.value!==t&&(this.value=t,this.field.value=ZI("%Y-%m-%d",this.value))},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,"2000-01-01"===this.field.value?this.field.value=ZI("%Y-01-01"):"2000-01-01"===this.field.value&&(this.field.value=ZI("%Y-12-31"));var t=this.field.value.split("-");3===t.length&&(this.value=new Date(+t[0],+t[1]-1,+t[2]))},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field-date"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:6,consts:[[1,"oneHalf"],["matInput","",3,"matDatepicker","ngModel","placeholder","disabled","ngModelChange"],["matSuffix","",3,"for"],["endDatePicker",""]],template:function(t,e){if(1&t&&(ds(0,"mat-form-field",0),ds(1,"mat-label"),$s(2),fs(),ds(3,"input",1),xs("ngModelChange",function(t){return e.date=t}),fs(),ps(4,"mat-datepicker-toggle",2),ps(5,"mat-datepicker",null,3),fs()),2&t){var n=ls(6);Eo(2),Js(" ",e.field.gui.label," "),Eo(1),cs("matDatepicker",n)("ngModel",e.date)("placeholder",e.field.gui.tooltip)("disabled",!0===e.field.gui.rdonly),Eo(1),cs("for",n)}},directives:[dD,iD,MO,ZV,dC,zC,pA,$V,sD,UV],styles:[""]}),t}();function uH(t,e){if(1&t){var n=ys();ds(0,"mat-chip",5),xs("removed",function(){var t=en(n).$implicit;return Ms().remove(t)}),$s(1),ds(2,"i",6),$s(3,"cancel"),fs(),fs()}if(2&t){var i=e.$implicit,r=Ms();cs("selectable",!1)("removable",!0!==r.field.gui.rdonly),Eo(1),Js(" ",i," ")}}var cH,hH,dH,fH=function(){function t(){this.changed=new Lu,this.separatorKeysCodes=[Ly,188]}return t.prototype.ngOnInit=function(){void 0===this.field.values&&(this.field.values=new Array,this.field.value=void 0),this.field.values.forEach(function(t,e,n){""===t.trim()&&n.splice(e,1)})},t.prototype.add=function(t){var e=t.input,n=t.value;(n||"").trim()&&this.field.values.push(n.trim()),e&&(e.value="")},t.prototype.remove=function(t){var e=this.field.values.indexOf(t);e>=0&&this.field.values.splice(e,1)},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field-tags"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:8,consts:[["appearance","standard","floatLabel","always"],[3,"selectable","disabled","change"],["chipList",""],[3,"selectable","removable","removed",4,"ngFor","ngForOf"],[3,"placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],[3,"selectable","removable","removed"],["matChipRemove","",1,"material-icons"]],template:function(t,e){if(1&t&&(ds(0,"mat-form-field",0),ds(1,"mat-label"),$s(2),fs(),ds(3,"mat-chip-list",1,2),xs("change",function(){return e.changed.emit(e)}),ss(5,uH,4,3,"mat-chip",3),ds(6,"input",4),xs("matChipInputTokenEnd",function(t){return e.add(t)}),fs(),fs(),fs()),2&t){var n=ls(4);Eo(2),Js(" ",e.field.gui.label," "),Eo(1),cs("selectable",!1)("disabled",!0===e.field.gui.rdonly),Eo(2),cs("ngForOf",e.field.values),Eo(1),cs("placeholder",e.field.gui.tooltip)("matChipInputFor",n)("matChipInputSeparatorKeyCodes",e.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},directives:[dD,iD,gB,Ih,vB,uB,cB],styles:[".mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]}),t}(),pH=(n(1419),function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t,bootstrap:[BB]}),t.\u0275inj=Pt({providers:[bI,WI,{provide:JD,useClass:HB}],imports:[[Ed,mf,eB,wk,IB,ET.forRoot({echarts:function(){return Promise.resolve().then(n.bind(n,9737))}})]]}),t}());cH=[Rh,GD,Lh,jB,YB,GB,UB,WB,ZB,QB,eH,nH,sH,lH,fH],hH=[],(dH=DM.\u0275cmp).directiveDefs=function(){return cH.map(he)},dH.pipeDefs=function(){return hH.map(de)},function(){if(Rc)throw new Error("Cannot enable prod mode after platform setup.");Pc=!1}(),Td().bootstrapModule(pH).catch(function(t){return console.log(t)})},8774:function(t,e,n){t.exports=n(5579)}},function(t){"use strict";t(t.s=6262)}]); \ No newline at end of file +(self.webpackChunkuds_admin=self.webpackChunkuds_admin||[]).push([[179],{8255:function(t){function e(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}e.keys=function(){return[]},e.resolve=e,e.id=8255,t.exports=e},9737:function(t,e,n){"use strict";n.r(e),n.d(e,{Axis:function(){return Yx},ChartView:function(){return ig},ComponentModel:function(){return md},ComponentView:function(){return qp},List:function(){return hb},Model:function(){return sh},PRIORITY:function(){return gy},SeriesModel:function(){return Wp},color:function(){return o},connect:function(){return l_},dataTool:function(){return D_},dependencies:function(){return dy},disConnect:function(){return u_},disconnect:function(){return c_},dispose:function(){return h_},env:function(){return x},extendChartView:function(){return Kx},extendComponentModel:function(){return qx},extendComponentView:function(){return Xx},extendSeriesModel:function(){return Zx},format:function(){return f},getCoordinateSystemDimensions:function(){return x_},getInstanceByDom:function(){return d_},getInstanceById:function(){return f_},getMap:function(){return O_},graphic:function(){return d},helper:function(){return u},init:function(){return s_},innerDrawElementOnCanvas:function(){return ov},matrix:function(){return a},number:function(){return c},parseGeoJSON:function(){return Wv},parseGeoJson:function(){return Wv},registerAction:function(){return __},registerCoordinateSystem:function(){return b_},registerLayout:function(){return w_},registerLoading:function(){return M_},registerLocale:function(){return gh},registerMap:function(){return I_},registerPostInit:function(){return v_},registerPostUpdate:function(){return y_},registerPreprocessor:function(){return g_},registerProcessor:function(){return m_},registerTheme:function(){return p_},registerTransform:function(){return T_},registerVisual:function(){return k_},setCanvasCreator:function(){return A_},throttle:function(){return sg},time:function(){return h},use:function(){return R_},util:function(){return p},vector:function(){return r},version:function(){return hy},zrUtil:function(){return i},zrender:function(){return s}});var i={};n.r(i),n.d(i,{$override:function(){return E},HashMap:function(){return Ct},assert:function(){return _t},bind:function(){return J},clone:function(){return F},concatArray:function(){return Mt},createCanvas:function(){return j},createHashMap:function(){return St},createObject:function(){return At},curry:function(){return tt},defaults:function(){return H},each:function(){return q},eqNaN:function(){return ft},extend:function(){return B},filter:function(){return K},find:function(){return $},guid:function(){return L},hasOwn:function(){return It},indexOf:function(){return G},inherits:function(){return U},isArray:function(){return et},isArrayLike:function(){return Y},isBuiltInObject:function(){return st},isDom:function(){return ut},isFunction:function(){return nt},isGradientObject:function(){return ct},isImagePatternObject:function(){return ht},isNumber:function(){return ot},isObject:function(){return at},isPrimitive:function(){return kt},isRegExp:function(){return dt},isString:function(){return it},isStringSafe:function(){return rt},isTypedArray:function(){return lt},keys:function(){return Q},logError:function(){return N},map:function(){return X},merge:function(){return z},mergeAll:function(){return V},mixin:function(){return W},noop:function(){return Ot},normalizeCssArray:function(){return yt},reduce:function(){return Z},retrieve:function(){return pt},retrieve2:function(){return gt},retrieve3:function(){return mt},setAsPrimitive:function(){return wt},slice:function(){return vt},trim:function(){return bt}});var r={};n.r(r),n.d(r,{add:function(){return Nt},applyTransform:function(){return te},clone:function(){return Rt},copy:function(){return Et},create:function(){return Pt},dist:function(){return Zt},distSquare:function(){return $t},distance:function(){return Xt},distanceSquare:function(){return Kt},div:function(){return Ut},dot:function(){return Wt},len:function(){return Vt},lenSquare:function(){return Ht},length:function(){return Bt},lengthSquare:function(){return jt},lerp:function(){return Jt},max:function(){return ne},min:function(){return ee},mul:function(){return Gt},negate:function(){return Qt},normalize:function(){return qt},scale:function(){return Yt},scaleAndAdd:function(){return Ft},set:function(){return Lt},sub:function(){return zt}});var o={};n.r(o),n.d(o,{fastLerp:function(){return fn},fastMapToColor:function(){return pn},lerp:function(){return gn},lift:function(){return hn},lum:function(){return bn},mapToColor:function(){return mn},modifyAlpha:function(){return yn},modifyHSL:function(){return vn},parse:function(){return un},random:function(){return xn},stringify:function(){return _n},toHex:function(){return dn}});var a={};n.r(a),n.d(a,{clone:function(){return di},copy:function(){return ai},create:function(){return ri},identity:function(){return oi},invert:function(){return hi},mul:function(){return si},rotate:function(){return ui},scale:function(){return ci},translate:function(){return li}});var s={};n.r(s),n.d(s,{dispose:function(){return ar},disposeAll:function(){return sr},getInstance:function(){return lr},init:function(){return or},registerPainter:function(){return ur},version:function(){return cr}});var l={};n.r(l),n.d(l,{Arc:function(){return ju},BezierCurve:function(){return Vu},BoundingRect:function(){return Di},Circle:function(){return eu},CompoundPath:function(){return Gu},Ellipse:function(){return ru},Group:function(){return tr},Image:function(){return _s},IncrementalDisplayable:function(){return Ju},Line:function(){return Ru},LinearGradient:function(){return Wu},OrientedBoundingRect:function(){return $u},Path:function(){return ds},Point:function(){return wi},Polygon:function(){return Au},Polyline:function(){return Tu},RadialGradient:function(){return Yu},Rect:function(){return As},Ring:function(){return wu},Sector:function(){return _u},Text:function(){return zs},applyTransform:function(){return kc},clipPointsByRect:function(){return Ac},clipRectByRect:function(){return Ic},createIcon:function(){return Oc},extendPath:function(){return rc},extendShape:function(){return ic},getShapeClass:function(){return ac},getTransform:function(){return wc},groupTransition:function(){return Mc},initProps:function(){return vc},isElementRemoved:function(){return xc},lineLineIntersect:function(){return Dc},linePolygonIntersect:function(){return Tc},makeImage:function(){return lc},makePath:function(){return sc},mergePath:function(){return cc},registerShape:function(){return oc},removeElement:function(){return yc},removeElementWithFadeOut:function(){return bc},resizePath:function(){return hc},setTooltipConfig:function(){return Ec},subPixelOptimize:function(){return pc},subPixelOptimizeLine:function(){return dc},subPixelOptimizeRect:function(){return fc},transformDirection:function(){return Cc},updateProps:function(){return mc}});var u={};n.r(u),n.d(u,{createDimensions:function(){return fb},createList:function(){return Dx},createScale:function(){return Ex},createSymbol:function(){return jm},createTextStyle:function(){return Lx},dataStack:function(){return Px},enableHoverEmphasis:function(){return Ml},getECData:function(){return Vs},getLayoutRect:function(){return ld},mixinAxisModelCommonMethods:function(){return Rx}});var c={};n.r(c),n.d(c,{MAX_SAFE_INTEGER:function(){return br},asc:function(){return pr},getPercentWithPrecision:function(){return yr},getPixelPrecision:function(){return vr},getPrecision:function(){return gr},getPrecisionSafe:function(){return mr},isNumeric:function(){return Dr},isRadianAroundZero:function(){return wr},linearMap:function(){return hr},nice:function(){return Ar},numericToNumber:function(){return Tr},parseDate:function(){return Cr},quantile:function(){return Ir},quantity:function(){return Sr},quantityExponent:function(){return Mr},reformIntervals:function(){return Or},remRadian:function(){return xr},round:function(){return fr}});var h={};n.r(h),n.d(h,{format:function(){return Sh},parse:function(){return Cr}});var d={};n.r(d),n.d(d,{Arc:function(){return ju},BezierCurve:function(){return Vu},BoundingRect:function(){return Di},Circle:function(){return eu},CompoundPath:function(){return Gu},Ellipse:function(){return ru},Group:function(){return tr},Image:function(){return _s},IncrementalDisplayable:function(){return Ju},Line:function(){return Ru},LinearGradient:function(){return Wu},Polygon:function(){return Au},Polyline:function(){return Tu},RadialGradient:function(){return Yu},Rect:function(){return As},Ring:function(){return wu},Sector:function(){return _u},Text:function(){return zs},clipPointsByRect:function(){return Ac},clipRectByRect:function(){return Ic},createIcon:function(){return Oc},extendPath:function(){return rc},extendShape:function(){return ic},getShapeClass:function(){return ac},getTransform:function(){return wc},initProps:function(){return vc},makeImage:function(){return lc},makePath:function(){return sc},mergePath:function(){return cc},registerShape:function(){return oc},resizePath:function(){return hc},updateProps:function(){return mc}});var f={};n.r(f),n.d(f,{addCommas:function(){return jh},capitalFirst:function(){return td},encodeHTML:function(){return qh},formatTime:function(){return Jh},formatTpl:function(){return $h},getTextRect:function(){return Nx},getTooltipMarker:function(){return Qh},normalizeCssArray:function(){return Uh},toCamelCase:function(){return Gh},truncateText:function(){return ko}});var p={};n.r(p),n.d(p,{bind:function(){return J},clone:function(){return F},curry:function(){return tt},defaults:function(){return H},each:function(){return q},extend:function(){return B},filter:function(){return K},indexOf:function(){return G},inherits:function(){return U},isArray:function(){return et},isFunction:function(){return nt},isObject:function(){return at},isString:function(){return it},map:function(){return X},merge:function(){return z},reduce:function(){return Z}});var g=function(t,e){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function m(t,e){function n(){this.constructor=t}g(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var v=function(){return(v=Object.assign||function(t){for(var e,n=1,i=arguments.length;n18),a&&(n.weChat=!0),e.canvasSupported=!!document.createElement("canvas").getContext,e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,b);var x=b,w={"[object Function]":!0,"[object RegExp]":!0,"[object Date]":!0,"[object Error]":!0,"[object CanvasGradient]":!0,"[object CanvasPattern]":!0,"[object Image]":!0,"[object Canvas]":!0},k={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0},C=Object.prototype.toString,S=Array.prototype,M=S.forEach,A=S.filter,I=S.slice,O=S.map,T=(function(){}).constructor,D=T?T.prototype:null,P={};function E(t,e){P[t]=e}var R=2311;function L(){return R++}function N(){for(var t=[],e=0;e>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,o),o,r);if(a)return a(t,n,i),!0}return!1}function he(t){return"CANVAS"===t.nodeName.toUpperCase()}var de="undefined"!=typeof window&&!!window.addEventListener,fe=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,pe=[];function ge(t,e,n,i){return n=n||{},i||!x.canvasSupported?me(t,e,n):x.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):me(t,e,n),n}function me(t,e,n){if(x.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(he(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(ce(pe,t,i,r))return n.zrX=pe[0],void(n.zrY=pe[1])}n.zrX=n.zrY=0}function ve(t){return t||window.event}function ye(t,e,n){if(null!=(e=ve(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&ge(t,r,e,n)}else{ge(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;return null==n||null==i?e:3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&fe.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function _e(t,e,n,i){de?t.addEventListener(e,n,i):t.attachEvent("on"+e,n)}var be=de?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};function xe(t){return 2===t.which||3===t.which}var we=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o1&&r&&r.length>1){var a=ke(r)/ke(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}},Se="silent";function Me(){be(this.event)}var Ae=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return Dt(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(oe),Ie=function(t,e){this.x=t,this.y=e},Oe=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],Te=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o._hovered=new Ie(0,0),o.storage=e,o.painter=n,o.painterRoot=r,i=i||new Ae,o.proxy=null,o.setHandlerProxy(i),o._draggingMgr=new re(o),o}return Dt(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(q(Oe,function(e){t.on&&t.on(e,this[e],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=Pe(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new Ie(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Ie(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:Me}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)}))}},e.prototype.findHover=function(t,e,n){for(var i=this.storage.getDisplayList(),r=new Ie(t,e),o=i.length-1;o>=0;o--){var a=void 0;if(i[o]!==n&&!i[o].ignore&&(a=De(i[o],t,e))&&(!r.topTarget&&(r.topTarget=i[o]),a!==Se)){r.target=i[o];break}}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new we);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new Ie;o.target=i.target,this.dispatchToElement(o,r,i.event)}},e}(oe);function De(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(r=!0)}i=i.__hostTarget||i.parent}return!r||Se}return!1}function Pe(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}q(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){Te.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=Pe(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||Zt(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}});var Ee=Te;function Re(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r=0;)r++;return r-e}function Le(t,e,n,i,r){for(i===e&&i++;i>>1])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function Ne(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function Fe(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function ze(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(r<2)){var o=0;if(r<32)Le(t,n,i,n+(o=Re(t,n,i,e)),e);else{var a=function(t,e){var n,i,r=7,o=0,a=[];function s(s){var l=n[s],u=i[s],c=n[s+1],h=i[s+1];i[s]=u+h,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var d=Fe(t[c],t,l,u,0,e);l+=d,0!=(u-=d)&&0!==(h=Ne(t[l+u-1],t,c,h,h-1,e))&&(u<=h?function(n,i,o,s){var l=0;for(l=0;l=7||f>=7);if(p)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(l=0;l=0;l--)t[f+l]=t[d+l];if(0===i){v=!0;break}}if(t[h--]=a[c--],1==--s){v=!0;break}if(0!=(m=s-Ne(t[u],a,0,s,s-1,e))){for(s-=m,f=1+(h-=m),d=1+(c-=m),l=0;l=7||m>=7);if(v)break;p<0&&(p=0),p+=2}if((r=p)<1&&(r=1),1===s){for(f=1+(h-=i),d=1+(u-=i),l=i-1;l>=0;l--)t[f+l]=t[d+l];t[h]=a[c]}else{if(0===s)throw new Error;for(d=h-(s-1),l=0;l=0;l--)t[f+l]=t[d+l];t[h]=a[c]}else for(d=h-(s-1),l=0;l1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]i[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]=32;)e|=1&t,t>>=1;return t+e}(r);do{if((o=Re(t,n,i,e))s&&(l=s),Le(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}}var Ve=!1;function Be(){Ve||(Ve=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function He(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var je=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=He}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(Be(),u.z=0),isNaN(u.z2)&&(Be(),u.z2=0),isNaN(u.zlevel)&&(Be(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,e,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),Ge="undefined"!=typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},Ue={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Ue.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*Ue.bounceIn(2*t):.5*Ue.bounceOut(2*t-1)+.5}},We=Ue,Ye=function(){function t(t){this._initialized=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart}return t.prototype.step=function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),!this._paused){var n=(t-this._startTime-this._pausedTime)/this._life;n<0&&(n=0),n=Math.min(n,1);var i=this.easing,r="string"==typeof i?We[i]:i,o="function"==typeof r?r(n):n;if(this.onframe&&this.onframe(o),1===n){if(!this.loop)return!0;this._restart(t),this.onrestart&&this.onrestart()}return!1}this._pausedTime+=e},t.prototype._restart=function(t){this._startTime=t-(t-this._startTime-this._pausedTime)%this._life+this.gap,this._pausedTime=0},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t}(),qe=function(t){this.value=t},Xe=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new qe(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),Ze=function(){function t(t){this._list=new Xe,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new qe(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}(),Ke={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function $e(t){return(t=Math.round(t))<0?0:t>255?255:t}function Qe(t){return t<0?0:t>1?1:t}function Je(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?$e(parseFloat(e)/100*255):$e(parseInt(e,10))}function tn(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?Qe(parseFloat(e)/100):Qe(parseFloat(e))}function en(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function nn(t,e,n){return t+(e-t)*n}function rn(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function on(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var an=new Ze(20),sn=null;function ln(t,e){sn&&on(sn,e),sn=an.put(t,sn||e.slice())}function un(t,e){if(t){e=e||[];var n=an.get(t);if(n)return on(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in Ke)return on(e,Ke[i]),ln(t,e),e;var r,o=i.length;if("#"===i.charAt(0))return 4===o||5===o?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(rn(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===o?parseInt(i.slice(4),16)/15:1),ln(t,e),e):void rn(e,0,0,0,1):7===o||9===o?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(rn(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===o?parseInt(i.slice(7),16)/255:1),ln(t,e),e):void rn(e,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?rn(e,+u[0],+u[1],+u[2],1):rn(e,0,0,0,1);c=tn(u.pop());case"rgb":return 3!==u.length?void rn(e,0,0,0,1):(rn(e,Je(u[0]),Je(u[1]),Je(u[2]),c),ln(t,e),e);case"hsla":return 4!==u.length?void rn(e,0,0,0,1):(u[3]=tn(u[3]),cn(u,e),ln(t,e),e);case"hsl":return 3!==u.length?void rn(e,0,0,0,1):(cn(u,e),ln(t,e),e);default:return}}rn(e,0,0,0,1)}}function cn(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=tn(t[1]),r=tn(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return rn(e=e||[],$e(255*en(a,o,n+1/3)),$e(255*en(a,o,n)),$e(255*en(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function hn(t,e){var n=un(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return _n(n,4===n.length?"rgba":"rgb")}}function dn(t){var e=un(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function fn(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=$e(nn(a[0],s[0],l)),n[1]=$e(nn(a[1],s[1],l)),n[2]=$e(nn(a[2],s[2],l)),n[3]=Qe(nn(a[3],s[3],l)),n}}var pn=fn;function gn(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=un(e[r]),s=un(e[o]),l=i-r,u=_n([$e(nn(a[0],s[0],l)),$e(nn(a[1],s[1],l)),$e(nn(a[2],s[2],l)),Qe(nn(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}var mn=gn;function vn(t,e,n,i){var r=un(t);if(t)return r=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?e=d-h:r===s?e=1/3+c-d:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var f=[360*e,n,u];return null!=t[3]&&f.push(t[3]),f}}(r),null!=e&&(r[0]=function(t){return(t=Math.round(t))<0?0:t>360?360:t}(e)),null!=n&&(r[1]=tn(n)),null!=i&&(r[2]=tn(i)),_n(cn(r),"rgba")}function yn(t,e){var n=un(t);if(n&&null!=e)return n[3]=Qe(e),_n(n,"rgba")}function _n(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function bn(t,e){var n=un(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function xn(){return"rgb("+Math.round(255*Math.random())+","+Math.round(255*Math.random())+","+Math.round(255*Math.random())+")"}var wn=Array.prototype.slice;function kn(t,e,n){return(e-t)*n+t}function Cn(t,e,n,i){for(var r=e.length,o=0;oa)i.length=a;else for(var s=o;s=2&&this.interpolable},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e){t>=this.maxTime?this.maxTime=t:this._needsSort=!0;var n=this.keyframes,i=n.length;if(this.interpolable)if(Y(e)){var r=function(t){return Y(t&&t[0])?2:1}(e);if(i>0&&this.arrDim!==r)return void(this.interpolable=!1);if(1===r&&"number"!=typeof e[0]||2===r&&"number"!=typeof e[0][0])return void(this.interpolable=!1);if(i>0){var o=n[i-1];this._isAllValueEqual&&(1===r&&In(e,o.value)||(this._isAllValueEqual=!1))}this.arrDim=r}else{if(this.arrDim>0)return void(this.interpolable=!1);if("string"==typeof e){var a=un(e);a?(e=a,this.isValueColor=!0):this.interpolable=!1}else if("number"!=typeof e||isNaN(e))return void(this.interpolable=!1);this._isAllValueEqual&&i>0&&(o=n[i-1],(this.isValueColor&&!In(o.value,e)||o.value!==e)&&(this._isAllValueEqual=!1))}var s={time:t,value:e,percent:0};return this.keyframes.push(s),s},t.prototype.prepare=function(t){var e=this.keyframes;this._needsSort&&e.sort(function(t,e){return t.time-e.time});for(var n=this.arrDim,i=e.length,r=e[i-1],o=0;o0&&o!==i-1&&An(e[o].value,r.value,n);if(t&&this.needsAnimate()&&t.needsAnimate()&&n===t.arrDim&&this.isValueColor===t.isValueColor&&!t._finished){this._additiveTrack=t;var a=e[0].value;for(o=0;o=0&&!(o[n].percent<=e);n--);n=Math.min(n,a-2)}else{for(n=this._lastFrame;ne);n++);n=Math.min(n-1,a-2)}var c=o[n+1],h=o[n];if(h&&c){this._lastFrame=n,this._lastFramePercent=e;var d=c.percent-h.percent;if(0!==d){var f=(e-h.percent)/d,p=i?this._additiveValue:u?Ln:t[s];if((l>0||u)&&!p&&(p=this._additiveValue=[]),this.useSpline){var g=o[n][r],m=o[0===n?n:n-1][r],v=o[n>a-2?a-1:n+1][r],y=o[n>a-3?a-1:n+2][r];if(l>0)1===l?Tn(p,m,g,v,y,f,f*f,f*f*f):function(t,e,n,i,r,o,a,s){for(var l=e.length,u=e[0].length,c=0;c0?1===l?Cn(p,h[r],c[r],f):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a.5?e:t}(h[r],c[r],f),i?this._additiveValue=_:t[s]=_);i&&this._addToTarget(t)}}}},t.prototype._addToTarget=function(t){var e=this.arrDim,n=this.propName,i=this._additiveValue;0===e?this.isValueColor?(un(t[n],Ln),Sn(Ln,Ln,i,1),t[n]=Pn(Ln)):t[n]=t[n]+i:1===e?Sn(t[n],t[n],i,1):2===e&&Mn(t[n],t[n],i,1)},t}(),Fn=function(){function t(t,e,n){this._tracks={},this._trackKeys=[],this._delay=0,this._maxTime=0,this._paused=!1,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n?N("Can' use additive animation on looped animation."):this._additiveAnimators=n}return t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e){return this.whenWithKeys(t,e,Q(e))},t.prototype.whenWithKeys=function(t,e,n){for(var i=this._tracks,r=0;r0)){this._started=1;for(var n=this,i=[],r=0;r1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(r.getAdditiveTrack())}}}},t}(),zn=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,n.stage=(e=e||{}).stage||{},n.onframe=e.onframe||function(){},n}return Dt(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._clipsHead?(this._clipsTail.next=t,t.prev=this._clipsTail,t.next=null,this._clipsTail=t):this._clipsHead=this._clipsTail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,n=t.next;e?e.next=n:this._clipsHead=n,n?n.prev=e:this._clipsTail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=(new Date).getTime()-this._pausedTime,n=e-this._time,i=this._clipsHead;i;){var r=i.next;i.step(e,n)?(i.ondestroy&&i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.onframe(n),this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,Ge(function e(){t._running&&(Ge(e),!t._paused&&t.update())})},e.prototype.start=function(){this._running||(this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._clipsHead;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._clipsHead=this._clipsTail=null},e.prototype.isFinished=function(){return null==this._clipsHead},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new Fn(t,e.loop);return this.addAnimator(n),n},e}(oe),Vn=x.domSupported,Bn=(Rn={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:En=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:X(En,function(t){var e=t.replace("mouse","pointer");return Rn.hasOwnProperty(e)?e:t})}),Hn=["mousemove","mouseup"],jn=["pointermove","pointerup"],Gn=!1;function Un(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Wn(t){t&&(t.zrByTouch=!0)}function Yn(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var qn=function(t,e){this.stopPropagation=Ot,this.stopImmediatePropagation=Ot,this.preventDefault=Ot,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Xn={mousedown:function(t){t=ye(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=ye(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=ye(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Yn(this,(t=ye(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Gn=!0,t=ye(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Gn||(t=ye(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Wn(t=ye(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Xn.mousemove.call(this,t),Xn.mousedown.call(this,t)},touchmove:function(t){Wn(t=ye(this.dom,t)),this.handler.processGesture(t,"change"),Xn.mousemove.call(this,t)},touchend:function(t){Wn(t=ye(this.dom,t)),this.handler.processGesture(t,"end"),Xn.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Xn.click.call(this,t)},pointerdown:function(t){Xn.mousedown.call(this,t)},pointermove:function(t){Un(t)||Xn.mousemove.call(this,t)},pointerup:function(t){Xn.mouseup.call(this,t)},pointerout:function(t){Un(t)||Xn.mouseout.call(this,t)}};q(["click","dblclick","contextmenu"],function(t){Xn[t]=function(e){e=ye(this.dom,e),this.trigger(t,e)}});var Zn={pointermove:function(t){Un(t)||Zn.mousemove.call(this,t)},pointerup:function(t){Zn.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function Kn(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,_e(t.domTarget,e,n,i)}function $n(t){var e,n,i,r=t.mounted;for(var o in r)r.hasOwnProperty(o)&&(e=t.domTarget,n=o,i=r[o],de?e.removeEventListener(n,i,t.listenerOpts[o]):e.detachEvent("on"+n,i));t.mounted={}}var Qn=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},Jn=function(t){function e(e,n){var i,r,o,a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=e,a.painterRoot=n,a._localHandlerScope=new Qn(e,Xn),Vn&&(a._globalHandlerScope=new Qn(document,Zn)),i=a,o=(r=a._localHandlerScope).domHandlers,x.pointerEventsSupported?q(Bn.pointer,function(t){Kn(r,t,function(e){o[t].call(i,e)})}):(x.touchEventsSupported&&q(Bn.touch,function(t){Kn(r,t,function(e){o[t].call(i,e),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout(function(){t.touching=!1,t.touchTimer=null},700)}(r)})}),q(Bn.mouse,function(t){Kn(r,t,function(e){e=ve(e),r.touching||o[t].call(i,e)})})),a}return Dt(e,t),e.prototype.dispose=function(){$n(this._localHandlerScope),Vn&&$n(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,Vn&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?function(t,e){function n(n){Kn(e,n,function(i){i=ve(i),Yn(t,i.target)||(i=function(t,e){return ye(t.dom,new qn(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))},{capture:!0})}x.pointerEventsSupported?q(jn,n):x.touchEventsSupported||q(Hn,n)}(this,e):$n(e)}},e}(oe),ti=1;"undefined"!=typeof window&&(ti=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var ei=ti,ni="#333",ii="#ccc";function ri(){return[1,0,0,1,0,0]}function oi(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function ai(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function si(t,e,n){var i=e[1]*n[0]+e[3]*n[1],r=e[0]*n[2]+e[2]*n[3],o=e[1]*n[2]+e[3]*n[3],a=e[0]*n[4]+e[2]*n[5]+e[4],s=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=e[0]*n[0]+e[2]*n[1],t[1]=i,t[2]=r,t[3]=o,t[4]=a,t[5]=s,t}function li(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function ui(t,e,n){var i=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),c=Math.cos(n);return t[0]=i*c+a*u,t[1]=-i*u+a*c,t[2]=r*c+s*u,t[3]=-r*u+c*s,t[4]=c*o+u*l,t[5]=c*l-u*o,t}function ci(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function hi(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(t[0]=a*(l=1/l),t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function di(t){var e=[1,0,0,1,0,0];return ai(e,t),e}var fi=oi;function pi(t){return t>5e-5||t<-5e-5}var gi,mi,vi=[],yi=[],_i=[1,0,0,1,0,0],bi=Math.abs,xi=function(){function t(){}return t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return pi(this.rotation)||pi(this.x)||pi(this.y)||pi(this.scaleX-1)||pi(this.scaleY-1)},t.prototype.updateTransform=function(){var t=this.parent,e=t&&t.transform,n=this.needLocalTransform(),i=this.transform;n||e?(i=i||[1,0,0,1,0,0],n?this.getLocalTransform(i):fi(i),e&&(n?si(i,t.transform,i):ai(i,t.transform)),this.transform=i,this._resolveGlobalScaleRatio(i)):i&&fi(i)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(vi);var n=vi[0]<0?-1:1,i=vi[1]<0?-1:1,r=((vi[0]-n)*e+n)/vi[0]||0,o=((vi[1]-i)*e+i)/vi[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||[1,0,0,1,0,0],hi(this.invTransform,t)},t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(si(yi,t.invTransform,e),e=yi);var n=this.originX,i=this.originY;(n||i)&&(_i[4]=n,_i[5]=i,si(yi,e,_i),yi[4]-=n,yi[5]-=i,e=yi),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&te(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&te(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&bi(t[0]-1)>1e-10&&bi(t[3]-1)>1e-10?Math.sqrt(bi(t[0]*t[3]-t[2]*t[1])):1},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.rotation||0,s=t.x,l=t.y,u=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;return n||i?(e[4]=-n*r-u*i*o,e[5]=-i*o-c*n*r):e[4]=e[5]=0,e[0]=r,e[3]=o,e[1]=c*r,e[2]=u*o,a&&ui(e,e,a),e[4]+=n+s,e[5]+=i+l,e},t.initDefaultProps=function(){var e=t.prototype;e.x=0,e.y=0,e.scaleX=1,e.scaleY=1,e.originX=0,e.originY=0,e.skewX=0,e.skewY=0,e.rotation=0,e.globalScaleRatio=1}(),t}(),wi=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}(),ki=Math.min,Ci=Math.max,Si=new wi,Mi=new wi,Ai=new wi,Ii=new wi,Oi=new wi,Ti=new wi,Di=function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=ki(t.x,this.x),n=ki(t.y,this.y);this.width=isFinite(this.x)&&isFinite(this.width)?Ci(t.x+t.width,this.x+this.width)-e:t.width,this.height=isFinite(this.y)&&isFinite(this.height)?Ci(t.y+t.height,this.y+this.height)-n:t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=[1,0,0,1,0,0];return li(r,r,[-e.x,-e.y]),ci(r,r,[n,i]),li(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,c=e.y,h=e.y+e.height,d=!(op&&(p=_,wi.set(Ti,gp&&(p=b,wi.set(Ti,0,v=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[5];return e.x=n.x*r+i[4],e.y=n.y*o+a,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Si.x=Ai.x=n.x,Si.y=Ii.y=n.y,Mi.x=Ii.x=n.x+n.width,Mi.y=Ai.y=n.y+n.height,Si.transform(i),Ii.transform(i),Mi.transform(i),Ai.transform(i),e.x=ki(Si.x,Mi.x,Ai.x,Ii.x),e.y=ki(Si.y,Mi.y,Ai.y,Ii.y);var s=Ci(Si.x,Mi.x,Ai.x,Ii.x),l=Ci(Si.y,Mi.y,Ai.y,Ii.y);e.width=s-e.x,e.height=l-e.y}else e!==n&&t.copy(e,n)},t}(),Pi={},Ei="12px sans-serif";function Ri(t,e){var n=Pi[e=e||Ei];n||(n=Pi[e]=new Ze(500));var i=n.get(t);return null==i&&(i=function(t,e){return gi||(gi=j().getContext("2d")),mi!==e&&(mi=gi.font=e||Ei),gi.measureText(t)}(t,e).width,n.put(t,i)),i}function Li(t,e,n,i){var r=Ri(t,e),o=Vi(e),a=Fi(0,r,n),s=zi(0,o,i);return new Di(a,s,r,o)}function Ni(t,e,n,i){var r=((t||"")+"").split("\n");if(1===r.length)return Li(r[0],e,n,i);for(var o=new Di(0,0,0,0),a=0;a=0?parseFloat(t)/100*e:parseFloat(t):t}function Hi(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,c="left",h="top";if(i instanceof Array)l+=Bi(i[0],n.width),u+=Bi(i[1],n.height),c=null,h=null;else switch(i){case"left":l-=r,u+=s,c="right",h="middle";break;case"right":l+=r+a,u+=s,h="middle";break;case"top":l+=a/2,u-=r,c="center",h="bottom";break;case"bottom":l+=a/2,u+=o+r,c="center";break;case"inside":l+=a/2,u+=s,c="center",h="middle";break;case"insideLeft":l+=r,u+=s,h="middle";break;case"insideRight":l+=a-r,u+=s,c="right",h="middle";break;case"insideTop":l+=a/2,u+=r,c="center";break;case"insideBottom":l+=a/2,u+=o-r,c="center",h="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,c="right";break;case"insideBottomLeft":l+=r,u+=o-r,h="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,c="right",h="bottom"}return(t=t||{}).x=l,t.y=u,t.align=c,t.verticalAlign=h,t}var ji="__zr_normal__",Gi=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],Ui={x:!0,y:!0,scaleX:!0,scaleY:!0,originX:!0,originY:!0,rotation:!0,ignore:!1},Wi={},Yi=new Di(0,0,0,0),qi=function(){function t(t){this.id=L(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var n=this.textConfig,i=n.local,r=e.attachedTransform,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.x=e.x,r.y=e.y,r.originX=e.originX,r.originY=e.originY,r.rotation=e.rotation,r.scaleX=e.scaleX,r.scaleY=e.scaleY,null!=n.position){var u=Yi;u.copy(n.layoutRect?n.layoutRect:this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Wi,n,u):Hi(Wi,n,u),r.x=Wi.x,r.y=Wi.y,o=Wi.align,a=Wi.verticalAlign;var c=n.origin;if(c&&null!=n.rotation){var h=void 0,d=void 0;"center"===c?(h=.5*u.width,d=.5*u.height):(h=Bi(c[0],u.width),d=Bi(c[1],u.height)),l=!0,r.originX=-r.x+h+(i?0:u.x),r.originY=-r.y+d+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var f=n.offset;f&&(r.x+=f[0],r.y+=f[1],l||(r.originX=-f[0],r.originY=-f[1]));var p=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,v=void 0,y=void 0;p&&this.canBeInsideText()?(v=n.insideStroke,null!=(m=n.insideFill)&&"auto"!==m||(m=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(m),y=!0)):(v=n.outsideStroke,null!=(m=n.outsideFill)&&"auto"!==m||(m=this.getOutsideFill()),null!=v&&"auto"!==v||(v=this.getOutsideStroke(m),y=!0)),(m=m||"#000")===g.fill&&v===g.stroke&&y===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=m,g.stroke=v,g.autoStroke=y,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=1,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?ii:ni},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&un(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,_n(n,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},B(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(at(t))for(var n=Q(t),i=0;i0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(ji,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===ji;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!(G(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,c=this._textGuide;return u&&u.useState(t,e,n,l),c&&c.useState(t,e,n,l),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),s}N("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s0,f);var p=this._textContent,g=this._textGuide;p&&p.useStates(t,e,h),g&&g.useStates(t,e,h),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=G(i,t),o=G(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i=0&&e.splice(n,1)}),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o8)&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),t}();function Xi(t,e,n,i,r){var o=[];$i(t,"",t,e,n=n||{},i,o,r);var a=o.length,s=!1,l=n.done,u=n.aborted,c=function(){s=!0,--a<=0&&(s?l&&l():u&&u())},h=function(){--a<=0&&(s?l&&l():u&&u())};a||l&&l(),o.length>0&&n.during&&o[0].during(function(t,e){n.during(e)});for(var d=0;d0||r.force&&!a.length){for(var y=t.animators,_=[],b=0;b=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,n=this._children,i=G(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.addHover=function(t){},t.prototype.removeHover=function(t){},t.prototype.clearHover=function(){},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){this.painter.resize((t=t||{}).width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.pathToImage=function(t,e){if(this.painter.pathToImage)return this.painter.pathToImage(t,e)},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,n){return this.handler.on(t,e,n),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e0){if(t<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function dr(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function fr(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),t=(+t).toFixed(e),n?t:+t}function pr(t){return t.sort(function(t,e){return t-e}),t}function gr(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return mr(t)}function mr(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf(".");return Math.max(0,(o<0?0:r-1-o)-i)}function vr(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function yr(t,e,n){if(!t[e])return 0;var i=Z(t,function(t,e){return t+(isNaN(e)?0:e)},0);if(0===i)return 0;for(var r=Math.pow(10,n),o=X(t,function(t){return(isNaN(t)?0:t)/i*r*100}),a=100*r,s=X(o,function(t){return Math.floor(t)}),l=Z(s,function(t,e){return t+e},0),u=X(o,function(t,e){return t-s[e]});lc&&(c=u[d],h=d);++s[h],u[h]=0,++l}return s[e]/r}function _r(t,e){var n=Math.max(gr(t),gr(e)),i=t+e;return n>20?i:fr(i,n)}var br=9007199254740991;function xr(t){var e=2*Math.PI;return(t%e+e)%e}function wr(t){return t>-1e-4&&t<1e-4}var kr=/^(?:(\d{4})(?:[-\/](\d{1,2})(?:[-\/](\d{1,2})(?:[T ](\d{1,2})(?::(\d{1,2})(?::(\d{1,2})(?:[.,](\d+))?)?)?(Z|[\+\-]\d\d:?\d\d)?)?)?)?)?$/;function Cr(t){if(t instanceof Date)return t;if("string"==typeof t){var e=kr.exec(t);if(!e)return new Date(NaN);if(e[8]){var n=+e[4]||0;return"Z"!==e[8].toUpperCase()&&(n-=+e[8].slice(0,3)),new Date(Date.UTC(+e[1],+(e[2]||1)-1,+e[3]||1,n,+(e[5]||0),+e[6]||0,+e[7]||0))}return new Date(+e[1],+(e[2]||1)-1,+e[3]||1,+e[4]||0,+(e[5]||0),+e[6]||0,+e[7]||0)}return null==t?new Date(NaN):new Date(Math.round(t))}function Sr(t){return Math.pow(10,Mr(t))}function Mr(t){if(0===t)return 0;var e=Math.floor(Math.log(t)/Math.LN10);return t/Math.pow(10,e)>=10&&e++,e}function Ar(t,e){var n=Mr(t),i=Math.pow(10,n),r=t/i;return t=(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,n>=-20?+t.toFixed(n<0?-n:0):t}function Ir(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function Or(t){t.sort(function(t,e){return s(t,e,0)?-1:1});for(var e=-1/0,n=1,i=0;i=0||r&&G(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var go=po([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),mo=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return go(this,t,e)},t}(),vo=new Ze(50);function yo(t){if("string"==typeof t){var e=vo.get(t);return e&&e.image}return t}function _o(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=vo.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?!xo(e=o.image)&&o.pending.push(a):((e=new Image).onload=e.onerror=bo,vo.put(t,e.__cachedImgObj={image:e,pending:[a]}),e.src=e.__zrImageSrc=t),e}return t}return e}function bo(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=a;l++)s-=a;var u=Ri(n,e);return u>s&&(n="",u=0),s=t-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=t,r}function So(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=Ri(t,i);if(o<=n)return t;for(var a=0;;a++){if(o<=r||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?Mo(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;o=Ri(t=t.substr(0,s),i)}return""===t&&(t=e.placeholder),t}function Mo(t,e,n,i){for(var r=0,o=0,a=t.length;o0&&p+i.accumWidth>i.width&&(o=e.split("\n"),h=!0),i.accumWidth=p}else{var g=Eo(e,c,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+f,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var m=0;m=33&&e<=255}(t)||!!Do[t]}function Eo(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,c=0,h=0;hn:r+c+f>n)?c?(s||l)&&(p?(s||(s=l,l="",c=u=0),o.push(s),a.push(c-u),l+=d,s="",c=u+=f):(l&&(s+=l,c+=u,l="",u=0),o.push(s),a.push(c),s=d,c=f)):p?(o.push(l),a.push(u),l=d,u=f):(o.push(d),a.push(f)):(c+=f,p?(l+=d,u+=f):(l&&(s+=l,l="",u=0),s+=d))}else l&&(s+=l,c+=u),o.push(s),a.push(c),s="",l="",u=0,c=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(c)),1===o.length&&(c+=r),{accumWidth:c,lines:o,linesWidths:a}}var Ro="__zr_style_"+Math.round(10*Math.random()),Lo={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},No={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Lo[Ro]=!0;var Fo=["z","z2","invisible"],zo=["invisible"],Vo=function(t){function e(e){return t.call(this,e)||this}var n;return Dt(e,t),e.prototype._init=function(e){for(var n=Q(e),i=0;i-1e-8&&t<1e-8}function Qo(t){return t>1e-8||t<-1e-8}function Jo(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function ta(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function ea(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,c=s*s-3*a*l,h=s*l-9*a*u,d=l*l-3*s*u,f=0;if($o(c)&&$o(h))$o(s)?o[0]=0:(C=-l/s)>=0&&C<=1&&(o[f++]=C);else{var p=h*h-4*c*d;if($o(p)){var g=h/c,m=-g/2;(C=-s/a+g)>=0&&C<=1&&(o[f++]=C),m>=0&&m<=1&&(o[f++]=m)}else if(p>0){var v=Uo(p),y=c*s+1.5*a*(-h+v),_=c*s+1.5*a*(-h-v);(C=(-s-((y=y<0?-Go(-y,qo):Go(y,qo))+(_=_<0?-Go(-_,qo):Go(_,qo))))/(3*a))>=0&&C<=1&&(o[f++]=C)}else{var b=(2*c*s-3*a*h)/(2*Uo(c*c*c)),x=Math.acos(b)/3,w=Uo(c),k=Math.cos(x),C=(-s-2*w*k)/(3*a),S=(m=(-s+w*(k+Yo*Math.sin(x)))/(3*a),(-s+w*(k-Yo*Math.sin(x)))/(3*a));C>=0&&C<=1&&(o[f++]=C),m>=0&&m<=1&&(o[f++]=m),S>=0&&S<=1&&(o[f++]=S)}}return f}function na(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if($o(a))Qo(o)&&(c=-s/o)>=0&&c<=1&&(r[l++]=c);else{var u=o*o-4*a*s;if($o(u))r[0]=-o/(2*a);else if(u>0){var c,h=Uo(u),d=(-o-h)/(2*a);(c=(-o+h)/(2*a))>=0&&c<=1&&(r[l++]=c),d>=0&&d<=1&&(r[l++]=d)}}return l}function ia(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=i}function ra(t,e,n,i,r,o,a,s,l,u,c){var h,d,f,p,g,m=.005,v=1/0;Xo[0]=l,Xo[1]=u;for(var y=0;y<1;y+=.05)Zo[0]=Jo(t,n,r,a,y),Zo[1]=Jo(e,i,o,s,y),(p=$t(Xo,Zo))=0&&p=0&&m1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(va[0]=ga(r)*n+t,va[1]=pa(r)*i+e,ya[0]=ga(o)*n+t,ya[1]=pa(o)*i+e,u(s,va,ya),c(l,va,ya),(r%=ma)<0&&(r+=ma),(o%=ma)<0&&(o+=ma),r>o&&!a?o+=ma:rr&&(_a[0]=ga(f)*n+t,_a[1]=pa(f)*i+e,u(s,_a,s),c(l,_a,l))}var Aa={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ia=[],Oa=[],Ta=[],Da=[],Pa=[],Ea=[],Ra=Math.min,La=Math.max,Na=Math.cos,Fa=Math.sin,za=Math.sqrt,Va=Math.abs,Ba=Math.PI,Ha=2*Ba,ja="undefined"!=typeof Float32Array,Ga=[];function Ua(t){return Math.round(t/Ba*1e8)/1e8%2*Ba}function Wa(t,e){var n=Ua(t[0]);n<0&&(n+=Ha);var i=t[1];i+=n-t[0],!e&&i-n>=Ha?i=n+Ha:e&&n-i>=Ha?i=n-Ha:!e&&n>i?i=n+(Ha-Ua(n-i)):e&&n0&&(this._ux=Va(n/ei/t)||0,this._uy=Va(n/ei/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._lineDash&&(this._lineDash=null,this._dashOffset=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(Aa.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var n=Va(t-this._xi),i=Va(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(Aa.L,t,e),this._ctx&&r&&(this._needsDash?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this.addData(Aa.C,t,e,n,i,r,o),this._ctx&&(this._needsDash?this._dashedBezierTo(t,e,n,i,r,o):this._ctx.bezierCurveTo(t,e,n,i,r,o)),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this.addData(Aa.Q,t,e,n,i),this._ctx&&(this._needsDash?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){return Ga[0]=i,Ga[1]=r,Wa(Ga,o),this.addData(Aa.A,t,e,n,n,i=Ga[0],(r=Ga[1])-i,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=Na(r)*n+t,this._yi=Fa(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Aa.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Aa.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.setLineDash=function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,n=0;nu.length&&(this._expandData(),u=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e0&&f<=t||c<0&&f>=t||0===c&&(h>0&&p<=e||h<0&&p>=e);)f+=c*(n=o[i=this._dashIdx]),p+=h*n,this._dashIdx=(i+1)%g,c>0&&fl||h>0&&pu||a[i%2?"moveTo":"lineTo"](c>=0?Ra(f,t):La(f,t),h>=0?Ra(p,e):La(p,e));this._dashOffset=-za((c=f-t)*c+(h=p-e)*h)},t.prototype._dashedBezierTo=function(t,e,n,i,r,o){var a,s,l,u,c,h=this._ctx,d=this._dashSum,f=this._dashOffset,p=this._lineDash,g=this._xi,m=this._yi,v=0,y=this._dashIdx,_=p.length,b=0;for(f<0&&(f=d+f),f%=d,a=0;a<1;a+=.1)s=Jo(g,t,n,r,a+.1)-Jo(g,t,n,r,a),l=Jo(m,e,i,o,a+.1)-Jo(m,e,i,o,a),v+=za(s*s+l*l);for(;y<_&&!((b+=p[y])>f);y++);for(a=(b-f)/v;a<=1;)u=Jo(g,t,n,r,a),c=Jo(m,e,i,o,a),y%2?h.moveTo(u,c):h.lineTo(u,c),a+=p[y]/v,y=(y+1)%_;y%2!=0&&h.lineTo(r,o),this._dashOffset=-za((s=r-u)*s+(l=o-c)*l)},t.prototype._dashedQuadraticTo=function(t,e,n,i){var r=n,o=i;n=(n+2*t)/3,i=(i+2*e)/3,this._dashedBezierTo(t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,n,i,r,o)},t.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,ja&&this._len>11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){Ta[0]=Ta[1]=Pa[0]=Pa[1]=Number.MAX_VALUE,Da[0]=Da[1]=Ea[0]=Ea[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;tn||Va(m)>i||h===e-1)&&(p=Math.sqrt(O*O+m*m),r=g,o=_);break;case Aa.C:var v=t[h++],y=t[h++],_=(g=t[h++],t[h++]),b=t[h++],x=t[h++];p=oa(r,o,v,y,g,_,b,x,10),r=b,o=x;break;case Aa.Q:p=ha(r,o,v=t[h++],y=t[h++],g=t[h++],_=t[h++],10),r=g,o=_;break;case Aa.A:var w=t[h++],k=t[h++],C=t[h++],S=t[h++],M=t[h++],A=t[h++],I=A+M;h+=1,h++,f&&(a=Na(M)*C+w,s=Fa(M)*S+k),p=La(C,S)*Ra(Ha,Math.abs(A)),r=Na(I)*C+w,o=Fa(I)*S+k;break;case Aa.R:a=r=t[h++],s=o=t[h++],p=2*t[h++]+2*t[h++];break;case Aa.Z:var O=a-r;m=s-o,p=Math.sqrt(O*O+m*m),r=a,o=s}p>=0&&(l[c++]=p,u+=p)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,c,h,d=this.data,f=this._ux,p=this._uy,g=this._len,m=e<1,v=0,y=0,_=0;if(!m||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var b=0;b0&&(t.lineTo(c,h),_=0),n=r=d[b++],i=o=d[b++],t.moveTo(r,o);break;case Aa.L:a=d[b++],s=d[b++];var k=Va(a-r),C=Va(s-o);if(k>f||C>p){if(m){if(v+(q=l[y++])>u){t.lineTo(r*(1-(X=(u-v)/q))+a*X,o*(1-X)+s*X);break t}v+=q}t.lineTo(a,s),r=a,o=s,_=0}else{var S=k*k+C*C;S>_&&(c=a,h=s,_=S)}break;case Aa.C:var M=d[b++],A=d[b++],I=d[b++],O=d[b++],T=d[b++],D=d[b++];if(m){if(v+(q=l[y++])>u){ia(r,M,I,T,X=(u-v)/q,Ia),ia(o,A,O,D,X,Oa),t.bezierCurveTo(Ia[1],Oa[1],Ia[2],Oa[2],Ia[3],Oa[3]);break t}v+=q}t.bezierCurveTo(M,A,I,O,T,D),r=T,o=D;break;case Aa.Q:if(M=d[b++],A=d[b++],I=d[b++],O=d[b++],m){if(v+(q=l[y++])>u){ua(r,M,I,X=(u-v)/q,Ia),ua(o,A,O,X,Oa),t.quadraticCurveTo(Ia[1],Oa[1],Ia[2],Oa[2]);break t}v+=q}t.quadraticCurveTo(M,A,I,O),r=I,o=O;break;case Aa.A:var P=d[b++],E=d[b++],R=d[b++],L=d[b++],N=d[b++],F=d[b++],z=d[b++],V=!d[b++],B=R>L?R:L,H=Va(R-L)>.001,j=N+F,G=!1;if(m&&(v+(q=l[y++])>u&&(j=N+F*(u-v)/q,G=!0),v+=q),H&&t.ellipse?t.ellipse(P,E,R,L,z,N,j,V):t.arc(P,E,B,N,j,V),G)break t;w&&(n=Na(N)*R+P,i=Fa(N)*L+E),r=Na(j)*R+P,o=Fa(j)*L+E;break;case Aa.R:n=r=d[b],i=o=d[b+1],a=d[b++],s=d[b++];var U=d[b++],W=d[b++];if(m){if(v+(q=l[y++])>u){var Y=u-v;t.moveTo(a,s),t.lineTo(a+Ra(Y,U),s),(Y-=U)>0&&t.lineTo(a+U,s+Ra(Y,W)),(Y-=W)>0&&t.lineTo(a+La(U-Y,0),s+W),(Y-=U)>0&&t.lineTo(a,s+La(W-Y,0));break t}v+=q}t.rect(a,s,U,W);break;case Aa.Z:if(_>0&&(t.lineTo(c,h),_=0),m){var q;if(v+(q=l[y++])>u){var X;t.lineTo(r*(1-(X=(u-v)/q))+n*X,o*(1-X)+i*X);break t}v+=q}t.closePath(),r=n,o=i}}},t.CMD=Aa,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._needsDash=!1,e._dashOffset=0,e._dashIdx=0,e._dashSum=0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();function qa(t,e,n,i,r,o,a){if(0===r)return!1;var s,l=r;if(a>e+l&&a>i+l||at+l&&o>n+l||oe+h&&c>i+h&&c>o+h&&c>s+h||ct+h&&u>n+h&&u>r+h&&u>a+h||ue+u&&l>i+u&&l>o+u||lt+u&&s>n+u&&s>r+u||sn||c+ur&&(r+=Qa);var d=Math.atan2(l,s);return d<0&&(d+=Qa),d>=i&&d<=r||d+Qa>=i&&d+Qa<=r}function ts(t,e,n,i,r,o){if(o>e&&o>i||or?s:0}var es=Ya.CMD,ns=2*Math.PI,is=[-1,-1,-1],rs=[-1,-1];function os(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||u1&&(c=rs[0],rs[0]=rs[1],rs[1]=c),p=Jo(e,i,o,s,rs[0]),f>1&&(g=Jo(e,i,o,s,rs[1]))),d+=2===f?ve&&s>i&&s>o||s=0&&c<=1&&(r[l++]=c);else{var u=a*a-4*o*s;if($o(u))(c=-a/(2*o))>=0&&c<=1&&(r[l++]=c);else if(u>0){var c,h=Uo(u),d=(-a-h)/(2*o);(c=(-a+h)/(2*o))>=0&&c<=1&&(r[l++]=c),d>=0&&d<=1&&(r[l++]=d)}}return l}(e,i,o,s,is);if(0===l)return 0;var u=la(e,i,o);if(u>=0&&u<=1){for(var c=0,h=aa(e,i,o,u),d=0;dn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);is[0]=-l,is[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=ns-1e-4){i=0,r=ns;var c=o?1:-1;return a>=is[0]+t&&a<=is[1]+t?c:0}if(i>r){var h=i;i=r,r=h}i<0&&(i+=ns,r+=ns);for(var d=0,f=0;f<2;f++){var p=is[f];if(p+t>a){var g=Math.atan2(s,p);c=o?1:-1,g<0&&(g=ns+g),(g>=i&&g<=r||g+ns>=i&&g+ns<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),d+=c)}}return d}function ls(t,e,n,i,r){for(var o,a,s=t.data,l=t.len(),u=0,c=0,h=0,d=0,f=0,p=0;p1&&(n||(u+=ts(c,h,d,f,i,r))),m&&(d=c=s[p],f=h=s[p+1]),g){case es.M:c=d=s[p++],h=f=s[p++];break;case es.L:if(n){if(qa(c,h,s[p],s[p+1],e,i,r))return!0}else u+=ts(c,h,s[p],s[p+1],i,r)||0;c=s[p++],h=s[p++];break;case es.C:if(n){if(Xa(c,h,s[p++],s[p++],s[p++],s[p++],s[p],s[p+1],e,i,r))return!0}else u+=os(c,h,s[p++],s[p++],s[p++],s[p++],s[p],s[p+1],i,r)||0;c=s[p++],h=s[p++];break;case es.Q:if(n){if(Za(c,h,s[p++],s[p++],s[p],s[p+1],e,i,r))return!0}else u+=as(c,h,s[p++],s[p++],s[p],s[p+1],i,r)||0;c=s[p++],h=s[p++];break;case es.A:var v=s[p++],y=s[p++],_=s[p++],b=s[p++],x=s[p++],w=s[p++];p+=1;var k=!!(1-s[p++]);o=Math.cos(x)*_+v,a=Math.sin(x)*b+y,m?(d=o,f=a):u+=ts(c,h,o,a,i,r);var C=(i-v)*b/_+v;if(n){if(Ja(v,y,b,x,x+w,k,e,C,r))return!0}else u+=ss(v,y,b,x,x+w,k,C,r);c=Math.cos(x+w)*_+v,h=Math.sin(x+w)*b+y;break;case es.R:if(d=c=s[p++],f=h=s[p++],o=d+s[p++],a=f+s[p++],n){if(qa(d,f,o,f,e,i,r)||qa(o,f,o,a,e,i,r)||qa(o,a,d,a,e,i,r)||qa(d,a,d,f,e,i,r))return!0}else u+=ts(o,f,o,a,i,r),u+=ts(d,a,d,f,i,r);break;case es.Z:if(n){if(qa(c,h,d,f,e,i,r))return!0}else u+=ts(c,h,d,f,i,r);c=d,h=f}}return n||Math.abs(h-f)<1e-4||(u+=ts(c,h,d,f,i,r)||0),0!==u}var us=H({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Lo),cs={style:H({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},No.style)},hs=["x","y","rotation","scaleX","scaleY","originX","originY","invisible","culling","z","z2","zlevel","parent"],ds=function(t){function e(e){return t.call(this,e)||this}var n;return Dt(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s.5?ni:e>.2?"#eee":ii}if(t)return ii}return ni},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(it(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==bn(t,0)<.4)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=-5},e.prototype.createPathProxy=function(){this.path=new Ya(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||4&this.__dirty)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||n){o.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(i.contain(t=n[0],e=n[1])){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,i){return ls(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return ls(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:B(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(4&this.__dirty)},e.prototype.createStyle=function(t){return At(us,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=B({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=B({},i.shape),B(s,n.shape)):(s=B({},r?this.shape:i.shape),B(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=B({},this.shape);for(var u={},c=Q(s),h=0;h0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return At(fs,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var n=Ni(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(jo);ps.prototype.type="tspan";var gs=ps,ms=H({x:0,y:0},Lo),vs={style:H({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},No.style)},ys=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dt(e,t),e.prototype.createStyle=function(t){return At(ms,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i,r=(i=e.image)&&"string"!=typeof i&&i.width&&i.height?e.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?r[t]:r[t]/r[o]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return vs},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new Di(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(jo);ys.prototype.type="image";var _s=ys,bs=Math.round;function xs(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(bs(2*i)===bs(2*r)&&(t.x1=t.x2=ks(i,s,!0)),bs(2*o)===bs(2*a)&&(t.y1=t.y2=ks(o,s,!0)),t):t}}function ws(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=ks(i,s,!0),t.y=ks(r,s,!0),t.width=Math.max(ks(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(ks(r+a,s,!1)-t.y,0===a?0:1),t):t}}function ks(t,e,n){if(!e)return t;var i=bs(2*t);return(i+bs(e))%2==0?i/2:(i+(n?1:-1))/2}var Cs=function(){this.x=0,this.y=0,this.width=0,this.height=0},Ss={},Ms=function(t){function e(e){return t.call(this,e)||this}return Dt(e,t),e.prototype.getDefaultShape=function(){return new Cs},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=ws(Ss,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?function(t,e){var n,i,r,o,a,s=e.x,l=e.y,u=e.width,c=e.height,h=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof h?n=i=r=o=h:h instanceof Array?1===h.length?n=i=r=o=h[0]:2===h.length?(n=r=h[0],i=o=h[1]):3===h.length?(n=h[0],i=o=h[1],r=h[2]):(n=h[0],i=h[1],r=h[2],o=h[3]):n=i=r=o=0,n+i>u&&(n*=u/(a=n+i),i*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),i+r>c&&(i*=c/(a=i+r),r*=c/a),n+o>c&&(n*=c/(a=n+o),o*=c/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+c-r),0!==r&&t.arc(s+u-r,l+c-r,r,0,Math.PI/2),t.lineTo(s+o,l+c),0!==o&&t.arc(s+o,l+c-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,i,r,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(ds);Ms.prototype.type="rect";var As=Ms,Is={fill:"#000"},Os={style:H({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},No.style)},Ts=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Is,n.attr(e),n}return Dt(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){this.styleChanged()&&this._updateSubTexts();for(var e=0;ed&&u){var f=Math.floor(d/l);n=n.slice(0,f)}var p=d,g=c;if(r&&(p+=r[0]+r[2],null!=g&&(g+=r[1]+r[3])),t&&a&&null!=g)for(var m=Co(c,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;v0,S=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),M=i.calculatedLineHeight,A=0;Al&&To(n,t.substring(l,u),e,s),To(n,i[2],e,s,i[1]),l=wo.lastIndex}lo){x>0?(y.tokens=y.tokens.slice(0,x),m(y,b,_),n.lines=n.lines.slice(0,v+1)):n.lines=n.lines.slice(0,v);break t}var A=w.width,I=null==A||"auto"===A;if("string"==typeof A&&"%"===A.charAt(A.length-1))P.percentWidth=A,c.push(P),P.contentWidth=Ri(P.text,S);else{if(I){var O=w.backgroundColor,T=O&&O.image;T&&xo(T=yo(T))&&(P.width=Math.max(P.width,T.width*M/T.height))}var D=p&&null!=r?r-b:null;null!=D&&D=0&&"right"===(S=v[C]).align;)this._placeToken(S,t,_,d,k,"right",p),b-=S.width,k-=S.width,C--;for(w+=(n-(w-h)-(f-k)-b)/2;x<=C;)this._placeToken(S=v[x],t,_,d,w+S.width/2,"center",p),w+=S.width,x++;d+=_}},e.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&Fs(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var c=!!s.backgroundColor,h=t.textPadding;h&&(r=Ls(r,o,h),u-=t.height/2-h[0]-t.innerHeight/2);var d=this._getOrCreateChild(gs),f=d.createStyle();d.useStyle(f);var p=this._defaultStyle,g=!1,m=0,v=Rs("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,p.fill)),y=Rs("stroke"in s?s.stroke:"stroke"in e?e.stroke:c||a||p.autoStroke&&!g?null:(m=2,p.stroke)),_=s.textShadowBlur>0||e.textShadowBlur>0;f.text=t.text,f.x=r,f.y=u,_&&(f.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,f.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",f.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,f.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),f.textAlign=o,f.textBaseline="middle",f.font=t.font||Ei,f.opacity=mt(s.opacity,e.opacity,1),y&&(f.lineWidth=mt(s.lineWidth,e.lineWidth,m),f.lineDash=gt(s.lineDash,e.lineDash),f.lineDashOffset=e.lineDashOffset||0,f.stroke=y),v&&(f.fill=v);var b=t.contentWidth,x=t.contentHeight;d.setBoundingRect(new Di(Fi(f.x,b,f.textAlign),zi(f.y,x,f.textBaseline),b,x))},e.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l,u=t.backgroundColor,c=t.borderWidth,h=t.borderColor,d=u&&u.image,f=u&&!d,p=t.borderRadius,g=this;if(f||c&&h){(a=this._getOrCreateChild(As)).useStyle(a.createStyle()),a.style.fill=null;var m=a.shape;m.x=n,m.y=i,m.width=r,m.height=o,m.r=p,a.dirtyShape()}if(f)(l=a.style).fill=u||null,l.fillOpacity=gt(t.fillOpacity,1);else if(d){(s=this._getOrCreateChild(_s)).onload=function(){g.dirtyStyle()};var v=s.style;v.image=u.image,v.x=n,v.y=i,v.width=r,v.height=o}c&&h&&((l=a.style).lineWidth=c,l.stroke=h,l.strokeOpacity=gt(t.strokeOpacity,1),l.lineDash=t.borderDash,l.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var y=(a||s).style;y.shadowBlur=t.shadowBlur||0,y.shadowColor=t.shadowColor||"transparent",y.shadowOffsetX=t.shadowOffsetX||0,y.shadowOffsetY=t.shadowOffsetY||0,y.opacity=mt(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";if(t.fontSize||t.fontFamily||t.fontWeight){var n="";n="string"!=typeof t.fontSize||-1===t.fontSize.indexOf("px")&&-1===t.fontSize.indexOf("rem")&&-1===t.fontSize.indexOf("em")?isNaN(+t.fontSize)?"12px":t.fontSize+"px":t.fontSize,e=[t.fontStyle,t.fontWeight,n,t.fontFamily||"sans-serif"].join(" ")}return e&&bt(e)||t.textFont||t.font},e}(jo),Ds={left:!0,right:1,center:1},Ps={top:1,bottom:1,middle:1};function Es(t){if(t){t.font=Ts.makeFont(t);var e=t.align;"middle"===e&&(e="center"),t.align=null==e||Ds[e]?e:"left";var n=t.verticalAlign;"center"===n&&(n="middle"),t.verticalAlign=null==n||Ps[n]?n:"top",t.padding&&(t.padding=yt(t.padding))}}function Rs(t,e){return null==t||e<=0||"transparent"===t||"none"===t?null:t.image||t.colorStops?"#000":t}function Ls(t,e,n){return"right"===e?t-n[1]:"center"===e?t+n[3]/2-n[1]/2:t+n[3]}function Ns(t){var e=t.text;return null!=e&&(e+=""),e}function Fs(t){return!!(t.backgroundColor||t.borderWidth&&t.borderColor)}var zs=Ts,Vs=qr(),Bs=1,Hs={},js=qr(),Gs=["emphasis","blur","select"],Us=["normal","emphasis","blur","select"],Ws="highlight",Ys="downplay",qs="select",Xs="unselect",Zs="toggleSelect";function Ks(t){return null!=t&&"none"!==t}var $s=new Ze(100);function Qs(t){if("string"!=typeof t)return t;var e=$s.get(t);return e||(e=hn(t,-.1),$s.put(t,e)),e}function Js(t,e,n){t.onHoverStateChange&&(t.hoverState||0)!==n&&t.onHoverStateChange(e),t.hoverState=n}function tl(t){Js(t,"emphasis",2)}function el(t){2===t.hoverState&&Js(t,"normal",0)}function nl(t){Js(t,"blur",1)}function il(t){1===t.hoverState&&Js(t,"normal",0)}function rl(t){t.selected=!0}function ol(t){t.selected=!1}function al(t,e,n){e(t,n)}function sl(t,e,n){al(t,e,n),t.isGroup&&t.traverse(function(t){al(t,e,n)})}function ll(t,e){switch(e){case"emphasis":t.hoverState=2;break;case"normal":t.hoverState=0;break;case"blur":t.hoverState=1;break;case"select":t.selected=!0}}function ul(t,e){var n=this.states[t];if(this.style){if("emphasis"===t)return function(t,e,n,i){var r=n&&G(n,"select")>=0,o=!1;if(t instanceof ds){var a=js(t),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(Ks(s)||Ks(l)){var u=(i=i||{}).style||{};!Ks(u.fill)&&Ks(s)?(o=!0,i=B({},i),(u=B({},u)).fill=Qs(s)):!Ks(u.stroke)&&Ks(l)&&(o||(i=B({},i),u=B({},u)),u.stroke=Qs(l)),i.style=u}}if(i&&null==i.z2){o||(i=B({},i));var c=t.z2EmphasisLift;i.z2=t.z2+(null!=c?c:10)}return i}(this,0,e,n);if("blur"===t)return function(t,e,n){var i=G(t.currentStates,e)>=0,r=t.style.opacity,o=i?null:function(t,e,n,i){for(var r=t.style,o={},a=0;a0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}})}),e}function Ml(t,e,n){Dl(t,!0),sl(t,cl),Al(t,e,n)}function Al(t,e,n){var i=Vs(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}var Il=["emphasis","blur","select"],Ol={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Tl(t,e,n,i){n=n||"itemStyle";for(var r=0;r1&&(a*=Vl(p),s*=Vl(p));var g=(r===o?-1:1)*Vl((a*a*(s*s)-a*a*(f*f)-s*s*(d*d))/(a*a*(f*f)+s*s*(d*d)))||0,m=g*a*f/s,v=g*-s*d/a,y=(t+n)/2+Hl(h)*m-Bl(h)*v,_=(e+i)/2+Bl(h)*m+Hl(h)*v,b=Wl([1,0],[(d-m)/a,(f-v)/s]),x=[(d-m)/a,(f-v)/s],w=[(-1*d-m)/a,(-1*f-v)/s],k=Wl(x,w);if(Ul(x,w)<=-1&&(k=jl),Ul(x,w)>=1&&(k=0),k<0){var C=Math.round(k/jl*1e6)/1e6;k=2*jl+C%2*jl}c.addData(u,y,_,a,s,b,k,h,o)}var ql=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,Xl=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,Zl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Dt(e,t),e.prototype.applyTransform=function(t){},e}(ds);function Kl(t){return null!=t.setData}function $l(t,e){var n=function(t){var e=new Ya;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=Ya.CMD,l=t.match(ql);if(!l)return e;for(var u=0;uT*T+D*D&&(C=M,S=A),{cx:C,cy:S,x01:-c,y01:-h,x11:C*(r/x-1),y11:S*(r/x-1)}}var vu=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0,this.innerCornerRadius=0},yu=function(t){function e(e){return t.call(this,e)||this}return Dt(e,t),e.prototype.getDefaultShape=function(){return new vu},e.prototype.buildPath=function(t,e){!function(t,e){var n=fu(e.r,0),i=fu(e.r0||0,0),r=n>0;if(r||i>0){if(r||(n=i,i=0),i>n){var o=n;n=i,i=o}var a,s=!!e.clockwise,l=e.startAngle,u=e.endAngle;if(l===u)a=0;else{var c=[l,u];Wa(c,!s),a=hu(c[0]-c[1])}var h=e.cx,d=e.cy,f=e.cornerRadius||0,p=e.innerCornerRadius||0;if(n>gu)if(a>au-gu)t.moveTo(h+n*lu(l),d+n*su(l)),t.arc(h,d,n,l,u,!s),i>gu&&(t.moveTo(h+i*lu(u),d+i*su(u)),t.arc(h,d,i,u,l,s));else{var g=hu(n-i)/2,m=pu(g,f),v=pu(g,p),y=v,_=m,b=n*lu(l),x=n*su(l),w=i*lu(u),k=i*su(u),C=void 0,S=void 0,M=void 0,A=void 0;if((m>gu||v>gu)&&(C=n*lu(u),S=n*su(u),M=i*lu(l),A=i*su(l),agu)if(_>gu){var L=mu(M,A,b,x,n,_,s),N=mu(C,S,w,k,n,_,s);t.moveTo(h+L.cx+L.x01,d+L.cy+L.y01),_gu&&a>gu?y>gu?(L=mu(w,k,C,S,i,-y,s),N=mu(b,x,M,A,i,-y,s),t.lineTo(h+L.cx+L.x01,d+L.cy+L.y01),y=2){if(i&&"spline"!==i){var o=function(t,e,n,i){var r,o,a,s,l=[],u=[],c=[],h=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,f=t.length;dn-2?n-1:l+1],f=t[l>n-3?n-1:l+2]);var p=u*u,g=u*p;i.push([ku(c[0],h[0],d[0],f[0],u,p,g),ku(c[1],h[1],d[1],f[1],u,p,g)])}return i}(r,n)),t.moveTo(r[0][0],r[0][1]),s=1;for(var h=r.length;sXu[1]){if(a=!1,r)return a;var u=Math.abs(Xu[0]-qu[1]),c=Math.abs(qu[0]-Xu[1]);Math.min(u,c)>i.len()&&wi.scale(i,l,u0?l?e.animateFrom(n,{duration:p,delay:m||0,easing:g,done:o,force:!!o||!!a,scope:t,during:a}):e.animateTo(n,{duration:p,delay:m||0,easing:g,done:o,force:!!o||!!a,setToFinal:!0,scope:t,during:a}):(e.stopAnimation(),!l&&e.attr(n),o&&o())}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function mc(t,e,n,i,r,o){gc("update",t,e,n,i,r,o)}function vc(t,e,n,i,r,o){gc("init",t,e,n,i,r,o)}function yc(t,e,n,i,r,o){xc(t)||gc("remove",t,e,n,i,r,o)}function _c(t,e,n,i){t.removeTextContent(),t.removeTextGuideLine(),yc(t,{style:{opacity:0}},e,n,i)}function bc(t,e,n){function i(){t.parent&&t.parent.remove(t)}t.isGroup?t.traverse(function(t){t.isGroup||_c(t,e,n,i)}):_c(t,e,n,i)}function xc(t){if(!t.__zr)return!0;for(var e=0;eMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Sc(t){return!t.isGroup}function Mc(t,e,n){if(t&&e){var i,r=(i={},t.traverse(function(t){Sc(t)&&t.anid&&(i[t.anid]=t)}),i);e.traverse(function(t){if(Sc(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),mc(t,i,n,Vs(t).dataIndex)}}})}function o(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=B({},t.shape)),e}}function Ac(t,e){return X(t,function(t){var n=t[0];n=tc(n,e.x),n=ec(n,e.x+e.width);var i=t[1];return i=tc(i,e.y),[n,i=ec(i,e.y+e.height)]})}function Ic(t,e){var n=tc(t.x,e.x),i=ec(t.x+t.width,e.x+e.width),r=tc(t.y,e.y),o=ec(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function Oc(t,e,n){var i=B({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),H(r,n),new _s(i)):sc(t.replace("path://",""),i,n,"center")}function Tc(t,e,n,i,r){for(var o=0,a=r[r.length-1];o=-1e-6)return!1;var p=t-r,g=e-o,m=Pc(p,g,u,c)/f;if(m<0||m>1)return!1;var v=Pc(p,g,h,d)/f;return!(v<0||v>1)}function Pc(t,e,n,i){return t*i-n*e}function Ec(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=it(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&q(Q(l),function(t){It(s,t)||(s[t]=l[t],s.$vars.push(t))});var u=Vs(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:H({content:i,formatterParams:s},r)}}oc("circle",eu),oc("ellipse",ru),oc("sector",_u),oc("ring",wu),oc("polygon",Au),oc("polyline",Tu),oc("rect",As),oc("line",Ru),oc("bezierCurve",Vu),oc("arc",ju);var Rc={};function Lc(t,e){for(var n=0;n-1?hh:"EN";function gh(t,e){t=t.toUpperCase(),fh[t]=new sh(e),dh[t]=e}gh("EN",{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),gh(hh,{time:{month:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"],monthAbbr:["1\u6708","2\u6708","3\u6708","4\u6708","5\u6708","6\u6708","7\u6708","8\u6708","9\u6708","10\u6708","11\u6708","12\u6708"],dayOfWeek:["\u661f\u671f\u65e5","\u661f\u671f\u4e00","\u661f\u671f\u4e8c","\u661f\u671f\u4e09","\u661f\u671f\u56db","\u661f\u671f\u4e94","\u661f\u671f\u516d"],dayOfWeekAbbr:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},legend:{selector:{all:"\u5168\u9009",inverse:"\u53cd\u9009"}},toolbox:{brush:{title:{rect:"\u77e9\u5f62\u9009\u62e9",polygon:"\u5708\u9009",lineX:"\u6a2a\u5411\u9009\u62e9",lineY:"\u7eb5\u5411\u9009\u62e9",keep:"\u4fdd\u6301\u9009\u62e9",clear:"\u6e05\u9664\u9009\u62e9"}},dataView:{title:"\u6570\u636e\u89c6\u56fe",lang:["\u6570\u636e\u89c6\u56fe","\u5173\u95ed","\u5237\u65b0"]},dataZoom:{title:{zoom:"\u533a\u57df\u7f29\u653e",back:"\u533a\u57df\u7f29\u653e\u8fd8\u539f"}},magicType:{title:{line:"\u5207\u6362\u4e3a\u6298\u7ebf\u56fe",bar:"\u5207\u6362\u4e3a\u67f1\u72b6\u56fe",stack:"\u5207\u6362\u4e3a\u5806\u53e0",tiled:"\u5207\u6362\u4e3a\u5e73\u94fa"}},restore:{title:"\u8fd8\u539f"},saveAsImage:{title:"\u4fdd\u5b58\u4e3a\u56fe\u7247",lang:["\u53f3\u952e\u53e6\u5b58\u4e3a\u56fe\u7247"]}},series:{typeNames:{pie:"\u997c\u56fe",bar:"\u67f1\u72b6\u56fe",line:"\u6298\u7ebf\u56fe",scatter:"\u6563\u70b9\u56fe",effectScatter:"\u6d9f\u6f2a\u6563\u70b9\u56fe",radar:"\u96f7\u8fbe\u56fe",tree:"\u6811\u56fe",treemap:"\u77e9\u5f62\u6811\u56fe",boxplot:"\u7bb1\u578b\u56fe",candlestick:"K\u7ebf\u56fe",k:"K\u7ebf\u56fe",heatmap:"\u70ed\u529b\u56fe",map:"\u5730\u56fe",parallel:"\u5e73\u884c\u5750\u6807\u56fe",lines:"\u7ebf\u56fe",graph:"\u5173\u7cfb\u56fe",sankey:"\u6851\u57fa\u56fe",funnel:"\u6f0f\u6597\u56fe",gauge:"\u4eea\u8868\u76d8\u56fe",pictorialBar:"\u8c61\u5f62\u67f1\u56fe",themeRiver:"\u4e3b\u9898\u6cb3\u6d41\u56fe",sunburst:"\u65ed\u65e5\u56fe"}},aria:{general:{withTitle:"\u8fd9\u662f\u4e00\u4e2a\u5173\u4e8e\u201c{title}\u201d\u7684\u56fe\u8868\u3002",withoutTitle:"\u8fd9\u662f\u4e00\u4e2a\u56fe\u8868\uff0c"},series:{single:{prefix:"",withName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\uff0c\u8868\u793a{seriesName}\u3002",withoutName:"\u56fe\u8868\u7c7b\u578b\u662f{seriesType}\u3002"},multiple:{prefix:"\u5b83\u7531{seriesCount}\u4e2a\u56fe\u8868\u7cfb\u5217\u7ec4\u6210\u3002",withName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a\u8868\u793a{seriesName}\u7684{seriesType}\uff0c",withoutName:"\u7b2c{seriesId}\u4e2a\u7cfb\u5217\u662f\u4e00\u4e2a{seriesType}\uff0c",separator:{middle:"\uff1b",end:"\u3002"}}},data:{allData:"\u5176\u6570\u636e\u662f\u2014\u2014",partialData:"\u5176\u4e2d\uff0c\u524d{displayCnt}\u9879\u662f\u2014\u2014",withName:"{name}\u7684\u6570\u636e\u662f{value}",withoutName:"{value}",separator:{middle:"\uff0c",end:""}}}});var mh=36e5,vh=864e5,yh=31536e6,_h={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{hh}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss} {SSS}"},bh={year:"{yyyy}",month:"{yyyy}-{MM}",day:"{yyyy}-{MM}-{dd}",hour:"{yyyy}-{MM}-{dd} "+_h.hour,minute:"{yyyy}-{MM}-{dd} "+_h.minute,second:"{yyyy}-{MM}-{dd} "+_h.second,millisecond:_h.none},xh=["year","month","day","hour","minute","second","millisecond"],wh=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function kh(t,e){return"0000".substr(0,e-(t+="").length)+t}function Ch(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function Sh(t,e,n,i){var r=Cr(t),o=r[Ih(n)](),a=r[Oh(n)]()+1,s=Math.floor((a-1)/4)+1,l=r[Th(n)](),u=r["get"+(n?"UTC":"")+"Day"](),c=r[Dh(n)](),h=(c-1)%12+1,d=r[Ph(n)](),f=r[Eh(n)](),p=r[Rh(n)](),g=(i instanceof sh?i:function(t){return fh[t]}(i||ph)||fh.EN).getModel("time"),m=g.get("month"),v=g.get("monthAbbr"),y=g.get("dayOfWeek"),_=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,o%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,m[a-1]).replace(/{MMM}/g,v[a-1]).replace(/{MM}/g,kh(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,kh(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,y[u]).replace(/{ee}/g,_[u]).replace(/{e}/g,u+"").replace(/{HH}/g,kh(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,kh(h+"",2)).replace(/{h}/g,h+"").replace(/{mm}/g,kh(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,kh(f,2)).replace(/{s}/g,f+"").replace(/{SSS}/g,kh(p,3)).replace(/{S}/g,p+"")}function Mh(t,e){var n=Cr(t),i=n[Oh(e)]()+1,r=n[Th(e)](),o=n[Dh(e)](),a=n[Ph(e)](),s=n[Eh(e)](),l=0===n[Rh(e)](),u=l&&0===s,c=u&&0===a,h=c&&0===o,d=h&&1===r;return d&&1===i?"year":d?"month":h?"day":c?"hour":u?"minute":l?"second":"millisecond"}function Ah(t,e,n){var i="number"==typeof t?Cr(t):t;switch(e=e||Mh(t,n)){case"year":return i[Ih(n)]();case"half-year":return i[Oh(n)]()>=6?1:0;case"quarter":return Math.floor((i[Oh(n)]()+1)/4);case"month":return i[Oh(n)]();case"day":return i[Th(n)]();case"half-day":return i[Dh(n)]()/24;case"hour":return i[Dh(n)]();case"minute":return i[Ph(n)]();case"second":return i[Eh(n)]();case"millisecond":return i[Rh(n)]()}}function Ih(t){return t?"getUTCFullYear":"getFullYear"}function Oh(t){return t?"getUTCMonth":"getMonth"}function Th(t){return t?"getUTCDate":"getDate"}function Dh(t){return t?"getUTCHours":"getHours"}function Ph(t){return t?"getUTCMinutes":"getMinutes"}function Eh(t){return t?"getUTCSeconds":"getSeconds"}function Rh(t){return t?"getUTCSeconds":"getSeconds"}function Lh(t){return t?"setUTCFullYear":"setFullYear"}function Nh(t){return t?"setUTCMonth":"setMonth"}function Fh(t){return t?"setUTCDate":"setDate"}function zh(t){return t?"setUTCHours":"setHours"}function Vh(t){return t?"setUTCMinutes":"setMinutes"}function Bh(t){return t?"setUTCSeconds":"setSeconds"}function Hh(t){return t?"setUTCSeconds":"setSeconds"}function jh(t){if(!Dr(t))return it(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Gh(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var Uh=yt,Wh=/([&<>"'])/g,Yh={"&":"&","<":"<",">":">",'"':""","'":"'"};function qh(t){return null==t?"":(t+"").replace(Wh,function(t,e){return Yh[e]})}function Xh(t,e,n){function i(t){return t&&bt(t)?t:"-"}function r(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?Cr(t):t;if(!isNaN(+s))return Sh(s,"{yyyy}-{MM}-{dd} {hh}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return rt(t)?i(t):ot(t)&&r(t)?t+"":"-";var l=Tr(t);return r(l)?jh(l):rt(t)?i(t):"-"}var Zh=["a","b","c","d","e","f","g"],Kh=function(t,e){return"{"+t+(null==e?"":e)+"}"};function $h(t,e,n){et(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o':'':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}function Jh(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=Cr(e),r=n?"UTC":"",o=i["get"+r+"FullYear"](),a=i["get"+r+"Month"]()+1,s=i["get"+r+"Date"](),l=i["get"+r+"Hours"](),u=i["get"+r+"Minutes"](),c=i["get"+r+"Seconds"](),h=i["get"+r+"Milliseconds"]();return t.replace("MM",kh(a,2)).replace("M",a).replace("yyyy",o).replace("yy",o%100+"").replace("dd",kh(s,2)).replace("d",s).replace("hh",kh(l,2)).replace("h",l).replace("mm",kh(u,2)).replace("m",u).replace("ss",kh(c,2)).replace("s",c).replace("SSS",kh(h,3))}function td(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function ed(t,e){return e=e||"transparent",it(t)?t:at(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function nd(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var id=q,rd=["left","right","top","bottom","width","height"],od=[["width","left","right"],["height","top","bottom"]];function ad(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild(function(l,u){var c,h,d=l.getBoundingRect(),f=e.childAt(u+1),p=f&&f.getBoundingRect();if("horizontal"===t){var g=d.width+(p?-p.x+d.x:0);(c=o+g)>i||l.newline?(o=0,c=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var m=d.height+(p?-p.y+d.y:0);(h=a+m)>r||l.newline?(o+=s+n,a=0,h=m,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=c+n:a=h+n)})}var sd=ad;function ld(t,e,n){n=Uh(n||0);var i=e.width,r=e.height,o=dr(t.left,i),a=dr(t.top,r),s=dr(t.right,i),l=dr(t.bottom,r),u=dr(t.width,i),c=dr(t.height,r),h=n[2]+n[0],d=n[1]+n[3],f=t.aspect;switch(isNaN(u)&&(u=i-s-d-o),isNaN(c)&&(c=r-l-h-a),null!=f&&(isNaN(u)&&isNaN(c)&&(f>i/r?u=.8*i:c=.8*r),isNaN(u)&&(u=f*c),isNaN(c)&&(c=u/f)),isNaN(o)&&(o=i-s-u-d),isNaN(a)&&(a=r-l-c-h),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-d}switch(t.top||t.bottom){case"middle":case"center":a=r/2-c/2-n[0];break;case"bottom":a=r-c-h}o=o||0,a=a||0,isNaN(u)&&(u=i-d-o-(s||0)),isNaN(c)&&(c=r-h-a-(l||0));var p=new Di(o+n[3],a+n[0],u,c);return p.margin=n,p}function ud(t,e,n,i,r){var o=!r||!r.hv||r.hv[0],a=!r||!r.hv||r.hv[1],s=r&&r.boundingMode||"all";if(o||a){var l;if("raw"===s)l="group"===t.type?new Di(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(l=t.getBoundingRect(),t.needLocalTransform()){var u=t.getLocalTransform();(l=l.clone()).applyTransform(u)}var c=ld(H({width:l.width,height:l.height},e),n,i),h=o?c.x-l.x:0,d=a?c.y-l.y:0;"raw"===s?(t.x=h,t.y=d):(t.x+=h,t.y+=d),t.markRedraw()}}function cd(t){var e=t.layoutMode||t.constructor.layoutMode;return at(e)?e:e?{type:e}:null}function hd(t,e,n){var i=n&&n.ignoreSize;!et(i)&&(i=[i,i]);var r=a(od[0],0),o=a(od[1],1);function a(n,r){var o={},a=0,u={},c=0;if(id(n,function(e){u[e]=t[e]}),id(n,function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&c++}),i[r])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(2!==c&&a){if(a>=2)return o;for(var h=0;h=0;a--)o=z(o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Id";return Jr(this.ecModel,t,{index:this.get(t+"Index",!0),id:this.get(n,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(sh);lo(gd,sh),fo(gd),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=oo(t);e[i.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=oo(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r}}(gd),function(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,e,i,r){if(t.length){var o=function(t){var e={},i=[];return q(t,function(r){var o,a,s=n(e,r),l=function(t,e){var n=[];return q(t,function(t){G(e,t)>=0&&n.push(t)}),n}(s.originalDeps=(a=[],q(gd.getClassesByMainType(o=r),function(t){a=a.concat(t.dependencies||t.prototype.dependencies||[])}),a=X(a,function(t){return oo(t).main}),"dataset"!==o&&G(a,"dataset")<=0&&a.unshift("dataset"),a),t);s.entryCount=l.length,0===s.entryCount&&i.push(r),q(l,function(t){G(s.predecessor,t)<0&&s.predecessor.push(t);var i=n(e,t);G(i.successor,t)<0&&i.successor.push(r)})}),{graph:e,noEntryList:i}}(e),a=o.graph,s=o.noEntryList,l={};for(q(t,function(t){l[t]=!0});s.length;){var u=s.pop(),c=a[u],h=!!l[u];h&&(i.call(r,u,c.originalDeps.slice()),delete l[u]),q(c.successor,h?f:d)}q(l,function(){throw new Error("")})}function d(t){a[t].entryCount--,0===a[t].entryCount&&s.push(t)}function f(t){l[t]=!0,d(t)}}}(gd);var md=gd,vd="";"undefined"!=typeof navigator&&(vd=navigator.platform||"");var yd="rgba(0, 0, 0, 0.2)",_d={darkMode:"auto",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:yd,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:yd,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:yd,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:yd,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:yd,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:yd,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:vd.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1},bd=St(["tooltip","label","itemName","itemId","seriesName"]),xd="original",wd="arrayRows",kd="objectRows",Cd="keyedColumns",Sd="typedArray",Md="unknown",Ad="column",Id="row",Od=qr();function Td(t,e,n){var i={},r=Pd(e);if(!r||!t)return i;var o,a,s=[],l=[],u=Od(e.ecModel).datasetMap,c=r.uid+"_"+n.seriesLayoutBy;q(t=t.slice(),function(e,n){var r=at(e)?e:t[n]={name:e};"ordinal"===r.type&&null==o&&(o=n,a=f(r)),i[r.name]=[]});var h=u.get(c)||u.set(c,{categoryWayDim:a,valueWayDim:0});function d(t,e,n){for(var i=0;ie)return t[i];return t[n-1]}(i,a):n;if((c=c||n)&&c.length){var h=c[l];return r&&(u[r]=h),s.paletteIdx=(l+1)%c.length,h}}var Ud=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new sh(i),this._locale=new sh(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=qd(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,qd(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):Fd(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&q(a,function(t){n=!0,this._mergeOption(t,e)},this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=St(),s=e&&e.replaceMergeMainTypeMap;Od(this).datasetMap=St(),q(t,function(t,e){null!=t&&(md.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?F(t):z(n[e],t,!0))}),s&&s.each(function(t,e){md.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))}),md.topologicalTravel(o,md.getAllClassMainTypes(),function(e){var o=function(t,e,n){var i=zd.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}(this,e,Nr(t[e])),a=i.get(e),l=Br(a,o,a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll");(function(t,e,n){q(t,function(t){var i=t.newOption;at(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,i){return e.type?e.type:n?n.subType:i.determineSubType(t,e)}(e,i,t.existing,n))})})(l,e,md),n[e]=null,i.set(e,null),r.set(e,0);var u=[],c=[],h=0;q(l,function(t,n){var i=t.existing,r=t.newOption;if(r){var o=md.getClass(e,t.keyInfo.subType,!("series"===e));if(!o)return;if(i&&i.constructor===o)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var a=B({componentIndex:n},t.keyInfo);B(i=new o(r,this,this,a),a),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(u.push(i.option),c.push(i),h++):(u.push(void 0),c.push(void 0))},this),n[e]=u,i.set(e,c),r.set(e,h),"series"===e&&Ld(this)},this),this._seriesIndices||Ld(this)},e.prototype.getOption=function(){var t=F(this.option);return q(t,function(e,n){if(md.hasClass(n)){for(var i=Nr(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!Wr(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}}),delete t["\0_ec_inner"],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.getLocale=function(t){return this.getLocaleModel().get(t)},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r=e:"max"===n?t<=e:t===e})(i[a],t,o)||(r=!1)}}),r}var ef=function(){function t(t){this._timelineOptions=[],this._mediaList=[],this._currentMediaIndices=[],this._api=t}return t.prototype.setOption=function(t,e,n){t&&(q(Nr(t.series),function(t){t&&t.data&<(t.data)&&wt(t.data)}),q(Nr(t.dataset),function(t){t&&t.source&<(t.source)&&wt(t.source)})),t=F(t);var i=this._optionBackup,r=function(t,e,n){var i,r,o=[],a=t.baseOption,s=t.timeline,l=t.options,u=t.media,c=!!t.media,h=!!(l||s||a&&a.timeline);function d(t){q(e,function(e){e(t,n)})}return a?(r=a).timeline||(r.timeline=s):((h||c)&&(t.options=t.media=null),r=t),c&&et(u)&&q(u,function(t){t&&t.option&&(t.query?o.push(t):i||(i=t))}),d(r),q(l,function(t){return d(t)}),q(o,function(t){return d(t.option)}),{baseOption:r,timelineOptions:l||[],mediaDefault:i,mediaList:o}}(t,e,!i);this._newBaseOption=r.baseOption,i?(r.timelineOptions.length&&(i.timelineOptions=r.timelineOptions),r.mediaList.length&&(i.mediaList=r.mediaList),r.mediaDefault&&(i.mediaDefault=r.mediaDefault)):this._optionBackup=r},t.prototype.mountOption=function(t){var e=this._optionBackup;return this._timelineOptions=e.timelineOptions,this._mediaList=e.mediaList,this._mediaDefault=e.mediaDefault,this._currentMediaIndices=[],F(t?e.baseOption:this._newBaseOption)},t.prototype.getTimelineOption=function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=F(n[i.getCurrentIndex()]))}return e},t.prototype.getMediaOption=function(t){var e,n=this._api.getWidth(),i=this._api.getHeight(),r=this._mediaList,o=this._mediaDefault,a=[],s=[];if(!r.length&&!o)return s;for(var l=0,u=r.length;l=0;p--){var g=t[p];if(a||(h=g.data.rawIndexOf(g.stackedByDimension,c)),h>=0){var m=g.data.getByRawIndex(g.stackResultDimension,h);if(d>=0&&m>0||d<=0&&m<0){d=_r(d,m),f=m;break}}}return i[0]=d,i[1]=f,i});o.hostModel.setData(s),e.data=s})}var kf,Cf,Sf,Mf,Af,If=function(t){this.data=t.data||(t.sourceFormat===Cd?{}:[]),this.sourceFormat=t.sourceFormat||Md,this.seriesLayoutBy=t.seriesLayoutBy||Ad,this.startIndex=t.startIndex||0,this.dimensionsDefine=t.dimensionsDefine,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.encodeDefine=t.encodeDefine,this.metaRawOption=t.metaRawOption};function Of(t){return t instanceof If}function Tf(t,e,n,i){n=n||Ef(t);var r=e.seriesLayoutBy,o=function(t,e,n,i,r){var o,a;if(!t)return{dimensionsDefine:Rf(r),startIndex:a,dimensionsDetectedCount:o};if(e===wd){var s=t;"auto"===i||null==i?Lf(function(t){null!=t&&"-"!==t&&(it(t)?null==a&&(a=1):a=0)},n,s,10):a=ot(i)?i:i?1:0,r||1!==a||(r=[],Lf(function(t,e){r[e]=null!=t?t+"":""},n,s,1/0)),o=r?r.length:n===Id?s.length:s[0]?s[0].length:null}else if(e===kd)r||(r=function(t){for(var e,n=0;nu&&(u=f)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,f=Math.min(null!=h?this._dueIndex+h:1/0,this._dueEnd);if(!i&&(o||d1&&i>0?s:a}};return o;function a(){return e=t?null:oe},gte:function(t,e){return t>=e}},op=function(){function t(t,e){"number"!=typeof e&&tp(""),this._opFn=rp[t],this._rvalFloat=Tr(e)}return t.prototype.evaluate=function(t){return this._opFn("number"==typeof t?t:Tr(t),this._rvalFloat)},t}(),ap=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=typeof t,i=typeof e,r="number"===n?t:Tr(t),o="number"===i?e:Tr(e),a=isNaN(r),s=isNaN(o);if(a&&(r=this._incomparable),s&&(o=this._incomparable),a&&s){var l="string"===n,u="string"===i;l&&(r=u?t:0),u&&(o=l?e:0)}return ro?-this._resultLT:0},t}(),sp=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Tr(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=Tr(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function lp(t,e){return"eq"===t||"ne"===t?new sp("eq"===t,e):It(rp,t)?new op(t,e):null}var up=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return ep(t,e)},t}();function cp(t){return mp(t.sourceFormat)||tp(""),t.data}function hp(t){var e=t.sourceFormat,n=t.data;if(mp(e)||tp(""),e===wd){for(var i=[],r=0,o=n.length;r9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&this._createSource()},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(_p(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,e=[u._getVersionSign()]}else s=lt(a=o.get("data",!0))?Sd:xd,e=[];var c=this._getSourceMetaRawOption(),h=l?l.metaRawOption:null;t=[Tf(a,{seriesLayoutBy:gt(c.seriesLayoutBy,h?h.seriesLayoutBy:null),sourceHeader:gt(c.sourceHeader,h?h.sourceHeader:null),dimensions:gt(c.dimensions,h?h.dimensions:null)},s,o.get("encode",!0))]}else{var d=n;if(r){var f=this._applyTransform(i);t=f.sourceList,e=f.upstreamSignList}else t=[Tf(d.get("source",!0),this._getSourceMetaRawOption(),null,null)],e=[]}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);null!=r&&1!==t.length&&bp("");var o,a=[],s=[];return q(t,function(t){t.prepareSource();var e=t.getSource(r||0);null==r||e||bp(""),a.push(e),s.push(t._getVersionSign())}),i?e=function(t,e,n){var i=Nr(t),r=i.length;r||tp("");for(var o=0,a=r;o1||e>0&&!t.noHeader,i=0;q(t.blocks,function(t){Sp(t).planLayout(t);var e=t.__gapLevelBetweenSubBlocks;e>=i&&(i=e+(!n||e&&("section"!==t.type||t.noHeader)?0:1))}),t.__gapLevelBetweenSubBlocks=i},build:function(t,e,n,i){var r=e.noHeader,o=Ip(e),a=function(t,e,n,i){var r=[],o=e.blocks||[];_t(!o||et(o)),o=o||[];var a=t.orderMode;if(e.sortBlocks&&a){o=o.slice();var s={valueAsc:"asc",valueDesc:"desc"};if(It(s,a)){var l=new ap(s[a],null);o.sort(function(t,e){return l.evaluate(t.sortParam,e.sortParam)})}else"seriesDesc"===a&&o.reverse()}var u=Ip(e);if(q(o,function(e,n){var o=Sp(e).build(t,e,n>0?u.html:0,i);null!=o&&r.push(o)}),r.length)return"richText"===t.renderMode?r.join(u.richText):Op(r.join(""),n)}(t,e,r?n:o.html,i);if(r)return a;var s=Xh(e.header,"ordinal",t.useUTC),l=xp(i,t.renderMode).nameStyle;return"richText"===t.renderMode?Tp(t,s,l)+o.richText+a:Op('
'+qh(s)+"
"+a,n)}},nameValue:{planLayout:function(t){t.__gapLevelBetweenSubBlocks=0},build:function(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=e.value,c=t.useUTC;if(!o||!a){var h=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),d=o?"":Xh(l,"ordinal",c),f=e.valueType,p=a?[]:et(u)?X(u,function(t,e){return Xh(t,et(f)?f[e]:f,c)}):[Xh(u,et(f)?f[0]:f,c)],g=!s||!o,m=!s&&o,v=xp(i,r),y=v.nameStyle,_=v.valueStyle;return"richText"===r?(s?"":h)+(o?"":Tp(t,d,y))+(a?"":function(t,e,n,i,r){var o=[r];return n&&o.push({padding:[0,0,0,i?10:20],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(e.join(" "),o)}(t,p,g,m,_)):Op((s?"":h)+(o?"":function(t,e,n){return''+qh(t)+""}(d,!s,y))+(a?"":function(t,e,n,i){return''+X(t,function(t){return qh(t)}).join("  ")+""}(p,g,m,_)),n)}}}};function Ap(t,e,n,i,r,o){if(t){var a=Sp(t);return a.planLayout(t),a.build({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e},t,0,o)}}function Ip(t){var e=t.__gapLevelBetweenSubBlocks;return{html:wp[e],richText:kp[e]}}function Op(t,e){return'
'+t+'
'}function Tp(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function Dp(t,e){return ed(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function Pp(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var Ep=function(){function t(){this.richTextStyles={},this._nextStyleNameId=Pr()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=Qh({color:e,type:t,renderMode:n,markerId:i});return it(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};et(e)?q(e,function(t){return B(n,t)}):B(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}();function Rp(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,h=o.getRawValue(a),d=et(h),f=Dp(o,a);if(c>1||d&&!c){var p=function(t,e,n,i,r){var o=e.getData(),a=Z(t,function(t,e,n){var i=o.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName},!1),s=[],l=[],u=[];function c(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(Cp("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return i.length?q(i,function(t){c(qf(o,n,t),t)}):q(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(h,o,a,u,f);e=p.inlineValues,n=p.inlineValueTypes,i=p.blocks,r=p.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);r=e=qf(l,a,u[0]),n=g.type}else r=e=d?h[0]:h;var m=Ur(o),v=m&&o.name||"",y=l.getName(a),_=s?v:y;return Cp("section",{header:v,noHeader:s||!m,sortParam:r,blocks:[Cp("nameValue",{markerType:"item",markerColor:f,name:_,noName:!bt(_),value:e,valueType:n})].concat(i||[])})}var Lp=qr();function Np(t,e){return t.getName(e)||t.getId(e)}var Fp=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return m(e,t),e.prototype.init=function(t,e,n){this.seriesIndex=this.componentIndex,this.dataTask=$f({count:Vp,reset:Bp}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(Lp(this).sourceManager=new vp(this)).prepareSource();var i=this.getInitialData(t,n);jp(i,this),this.dataTask.context.data=i,Lp(this).dataBeforeProcessed=i,zp(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=cd(this),i=n?dd(t):{},r=this.subType;md.hasClass(r)&&(r+="Series"),z(t,e.getTheme().get(this.subType)),z(t,this.getDefaultOption()),Fr(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&hd(t,i,n)},e.prototype.mergeOption=function(t,e){t=z(this.option,t,!0),this.fillDataTextStyle(t.data);var n=cd(this);n&&hd(this.option,t,n);var i=Lp(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);jp(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,Lp(this).dataBeforeProcessed=r,zp(this),this._initSelectedMapFromData(r)},e.prototype.fillDataTextStyle=function(t){if(t&&!lt(t))for(var e=["show"],n=0;nthis.getShallow("animationThreshold")&&(t=!1),!!t},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=Hd.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var n=this.option.selectedMap;if(n)for(var i=this.getData(e),r=0;r=0&&n.push(r)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;return n&&n[Np(this.getData(e),t)]||!1},e.prototype._innerSelect=function(t,e){var n,i,r=this.option.selectedMode,o=e.length;if(r&&o)if("multiple"===r)for(var a=this.option.selectedMap||(this.option.selectedMap={}),s=0;s0&&this._innerSelect(t,e)}},e.registerClass=function(t){return md.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.useColorPaletteOnData=!1,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(md);function zp(t){var e=t.name;Ur(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return q(n,function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)}),i.join(" ")}(t)||e)}function Vp(t){return t.model.getRawData().count()}function Bp(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Hp}function Hp(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function jp(t,e){q(y(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),function(n){t.wrapMethod(n,tt(Gp,e))})}function Gp(t,e){var n=Up(t);return n&&n.setOutputEnd((e||this).count()),e}function Up(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}W(Fp,Zf),W(Fp,Hd),lo(Fp,md);var Wp=Fp,Yp=function(){function t(){this.group=new tr,this.uid=uh("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.blurSeries=function(t,e){},t}();ao(Yp),fo(Yp);var qp=Yp;function Xp(){var t=qr();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}var Zp=qr(),Kp=Xp(),$p=function(){function t(){this.group=new tr,this.uid=uh("viewChart"),this.renderTask=$f({plan:tg,reset:eg}),this.renderTask.context={view:this}}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.highlight=function(t,e,n,i){Jp(t.getData(),i,"emphasis")},t.prototype.downplay=function(t,e,n,i){Jp(t.getData(),i,"normal")},t.prototype.remove=function(t,e){this.group.removeAll()},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateLayout=function(t,e,n,i){this.render(t,e,n,i)},t.prototype.updateVisual=function(t,e,n,i){this.render(t,e,n,i)},t.markUpdateMethod=function(t,e){Zp(t).updateMethod=e},t.protoInitialize=void(t.prototype.type="chart"),t}();function Qp(t,e,n){t&&("emphasis"===e?fl:pl)(t,n)}function Jp(t,e,n){var i=Yr(t,e),r=e&&null!=e.highlightKey?function(t){var e=Hs[t];return null==e&&Bs<=32&&(e=Hs[t]=Bs++),e}(e.highlightKey):null;null!=i?q(Nr(i),function(e){Qp(t.getItemGraphicEl(e),n,r)}):t.eachItemGraphicEl(function(t){Qp(t,n,r)})}function tg(t){return Kp(t.model)}function eg(t){var e=t.model,n=t.ecModel,i=t.api,r=t.payload,o=e.pipelineContext.progressiveRender,a=t.view,s=r&&Zp(r).updateMethod,l=o?"incrementalPrepareRender":s&&a[s]?s:"render";return"render"!==l&&a[l](e,n,i,r),ng[l]}ao($p),fo($p);var ng={incrementalPrepareRender:{progress:function(t,e){e.view.incrementalRender(t,e.model,e.ecModel,e.api,e.payload)}},render:{forceFirstProgress:!0,progress:function(t,e){e.view.render(e.model,e.ecModel,e.api,e.payload)}}},ig=$p,rg="\0__throttleOriginMethod",og="\0__throttleRate",ag="\0__throttleType";function sg(t,e,n){var i,r,o,a,s,l=0,u=0,c=null;function h(){u=(new Date).getTime(),c=null,t.apply(o,a||[])}e=e||0;var d=function(){for(var t=[],d=0;d=0?h():c=setTimeout(h,-r),l=i};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function lg(t,e,n,i){var r=t[e];if(r){var o=r[rg]||r;if(r[og]!==n||r[ag]!==i){if(null==n||!i)return t[e]=o;(r=t[e]=sg(o,n,"debounce"===i))[rg]=o,r[ag]=i,r[og]=n}return r}}var ug=qr(),cg={itemStyle:po(ih,!0),lineStyle:po(th,!0)},hg={lineStyle:"stroke",itemStyle:"fill"};function dg(t,e){return t.visualStyleMapper||cg[e]||(console.warn("Unkown style type '"+e+"'."),cg.itemStyle)}function fg(t,e){return t.visualDrawType||hg[e]||(console.warn("Unkown style type '"+e+"'."),"fill")}var pg={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=dg(t,i)(r),a=r.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=fg(t,i),l=o[s],u=nt(l)?l:null;if(!o[s]||u||"auto"===o.fill||"auto"===o.stroke){var c=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=c,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||"function"==typeof o.fill?c:o.fill,o.stroke="auto"===o.stroke||"function"==typeof o.stroke?c:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=B({},o);r[s]=u(i),e.setItemVisual(n,"style",r)}}}},gg=new sh,mg={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=dg(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){gg.option=n[i];var a=r(gg);B(t.ensureUniqueItemVisual(e,"style"),a),gg.option.decal&&(t.setItemVisual(e,"decal",gg.option.decal),gg.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},vg={performRawSeries:!0,overallReset:function(t){var e=St();t.eachSeries(function(t){if(t.useColorPaletteOnData){var n=e.get(t.type);n||e.set(t.type,n={}),ug(t).scope=n}}),t.eachSeries(function(e){if(e.useColorPaletteOnData&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=ug(e).scope,a=fg(e,e.visualStyleAccessPath||"itemStyle");r.each(function(t){var e=r.getRawIndex(t);i[e]=t}),n.each(function(t){var s=i[t];if(r.getItemVisual(s,"colorFromPalette")){var l=r.ensureUniqueItemVisual(s,"style"),u=n.getName(t)||t+"",c=n.count();l[a]=e.getColorFromPalette(u,o,c)}})}})}},yg=Math.PI,_g=function(){function t(t,e,n,i){this._stageTaskMap=St(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(t){var e=t.overallTask;e&&e.dirty()})},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=St();t.eachSeries(function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)})},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;q(this._allHandlers,function(i){var r=t.get(i.uid)||t.set(i.uid,{});_t(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)},this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}q(t,function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var h,d=c.agentStubMap;d.each(function(t){a(i,t)&&(t.dirty(),h=!0)}),h&&c.dirty(),o.updatePayload(c,n);var f=o.getPerformArgs(c,i.block);d.each(function(t){t.perform(f)}),c.perform(f)&&(r=!0)}else u&&u.each(function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)})}}),this.unfinished=r||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(t){e=t.dataTask.perform()||e}),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each(function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)})},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,n,i){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=St(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||$f({plan:Cg,reset:Sg,count:Ig}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||$f({reset:bg});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=St(),l=t.seriesType,u=t.getTargetSeries,c=!0,h=!1;function d(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(h=!0,$f({reset:xg,onDirty:kg})));n.context={model:t,overallProgress:c},n.agent=o,n.__block=c,r._pipe(t,n)}_t(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,d):u?u(n,i).each(d):(c=!1,q(n.getSeries(),d)),h&&o.dirty()},t.prototype._pipe=function(t,e){var n=this._pipelineMap.get(t.uid);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},t.wrapStageHandler=function(t,e){return nt(t)&&(t={overallReset:t,seriesType:Og(t)}),t.uid=uh("stageHandler"),e&&(t.visualType=e),t},t}();function bg(t){t.overallReset(t.ecModel,t.api,t.payload)}function xg(t){return t.overallProgress&&wg}function wg(){this.agent.dirty(),this.getDownstream().dirty()}function kg(){this.agent&&this.agent.dirty()}function Cg(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function Sg(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=Nr(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?X(e,function(t,e){return Ag(e)}):Mg}var Mg=Ag(0);function Ag(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o0&&c===r.length-u.length){var h=r.slice(0,c);"data"!==h&&(e.mainType=h,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)})}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Ug={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){var i=t.get("symbol"),r=t.get("symbolSize"),o=t.get("symbolKeepAspect"),a=t.get("symbolRotate"),s=t.get("symbolOffset"),l=nt(i),u=nt(r),c=nt(a),h=nt(s),d=l||u||c||h,f=!l&&i?i:t.defaultSymbol;if(n.setVisual({legendIcon:t.legendIcon||f,symbol:f,symbolSize:u?null:r,symbolKeepAspect:o,symbolRotate:c?null:a,symbolOffset:h?null:s}),!e.isSeriesFiltered(t))return{dataEach:d?function(e,n){var o=t.getRawValue(n),d=t.getDataParams(n);l&&e.setItemVisual(n,"symbol",i(o,d)),u&&e.setItemVisual(n,"symbolSize",r(o,d)),c&&e.setItemVisual(n,"symbolRotate",a(o,d)),h&&e.setItemVisual(n,"symbolOffset",s(o,d))}:null}}}};function Wg(t,e,n){switch(n){case"color":return t.getItemVisual(e,"style")[t.getVisual("drawType")];case"opacity":return t.getItemVisual(e,"style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getItemVisual(e,n)}}function Yg(t,e){switch(e){case"color":return t.getVisual("style")[t.getVisual("drawType")];case"opacity":return t.getVisual("style").opacity;case"symbol":case"symbolSize":case"liftZ":return t.getVisual(e)}}function qg(t,e,n,i){switch(n){case"color":t.ensureUniqueItemVisual(e,"style")[t.getVisual("drawType")]=i,t.setItemVisual(e,"colorFromPalette",!1);break;case"opacity":t.ensureUniqueItemVisual(e,"style").opacity=i;break;case"symbol":case"symbolSize":case"liftZ":t.setItemVisual(e,n,i)}}var Xg=2*Math.PI,Zg=Ya.CMD,Kg=["top","right","bottom","left"];function $g(t,e,n,i,r){var o=n.width,a=n.height;switch(t){case"top":i.set(n.x+o/2,n.y-e),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+e),r.set(0,1);break;case"left":i.set(n.x-e,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+e,n.y+a/2),r.set(1,0)}}function Qg(t,e,n,i,r,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s),c=(a/=u)*n+t,h=(s/=u)*n+e;if(Math.abs(i-r)%Xg<1e-4)return l[0]=c,l[1]=h,u-n;if(o){var d=i;i=$a(r),r=$a(d)}else i=$a(i),r=$a(r);i>r&&(r+=Xg);var f=Math.atan2(s,a);if(f<0&&(f+=Xg),f>=i&&f<=r||f+Xg>=i&&f+Xg<=r)return l[0]=c,l[1]=h,u-n;var p=n*Math.cos(i)+t,g=n*Math.sin(i)+e,m=n*Math.cos(r)+t,v=n*Math.sin(r)+e,y=(p-a)*(p-a)+(g-s)*(g-s),_=(m-a)*(m-a)+(v-s)*(v-s);return y<_?(l[0]=p,l[1]=g,Math.sqrt(y)):(l[0]=m,l[1]=v,Math.sqrt(_))}function Jg(t,e,n,i,r,o,a,s){var l=r-t,u=o-e,c=n-t,h=i-e,d=Math.sqrt(c*c+h*h),f=(l*(c/=d)+u*(h/=d))/d;s&&(f=Math.min(Math.max(f,0),1));var p=a[0]=t+(f*=d)*c,g=a[1]=e+f*h;return Math.sqrt((p-r)*(p-r)+(g-o)*(g-o))}function tm(t,e,n,i,r,o,a){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i);var s=t+n,l=e+i,u=a[0]=Math.min(Math.max(r,t),s),c=a[1]=Math.min(Math.max(o,e),l);return Math.sqrt((u-r)*(u-r)+(c-o)*(c-o))}var em=[];function nm(t,e,n){var i=tm(e.x,e.y,e.width,e.height,t.x,t.y,em);return n.set(em[0],em[1]),i}function im(t,e,n){for(var i,r,o=0,a=0,s=0,l=0,u=1/0,c=e.data,h=t.x,d=t.y,f=0;f0){e=e/180*Math.PI,rm.fromArray(t[0]),om.fromArray(t[1]),am.fromArray(t[2]),wi.sub(sm,rm,om),wi.sub(lm,am,om);var n=sm.len(),i=lm.len();if(!(n<.001||i<.001)){sm.scale(1/n),lm.scale(1/i);var r=sm.dot(lm);if(Math.cos(e)1&&wi.copy(hm,am),hm.toArray(t[1])}}}}function fm(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,rm.fromArray(t[0]),om.fromArray(t[1]),am.fromArray(t[2]),wi.sub(sm,om,rm),wi.sub(lm,am,om);var i=sm.len(),r=lm.len();if(!(i<.001||r<.001)&&(sm.scale(1/i),lm.scale(1/r),sm.dot(e)=a)wi.copy(hm,am);else{hm.scaleAndAdd(lm,o/Math.tan(Math.PI/2-s));var l=am.x!==om.x?(hm.x-om.x)/(am.x-om.x):(hm.y-om.y)/(am.y-om.y);if(isNaN(l))return;l<0?wi.copy(hm,om):l>1&&wi.copy(hm,am)}hm.toArray(t[1])}}}function pm(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function gm(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=Zt(i[0],i[1]),o=Zt(i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=Jt([],i[1],i[0],a/r),l=Jt([],i[1],i[2],a/o),u=Jt([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],i[2][0],i[2][1])}else for(var c=1;c0&&o&&w(-h/a,0,a);var m,v,y=t[0],_=t[a-1];return b(),m<0&&k(-m,.8),v<0&&k(v,.8),b(),x(m,v,1),x(v,m,-1),b(),m<0&&C(-m),v<0&&C(v),u}function b(){m=y.rect[e]-i,v=r-_.rect[e]-_.rect[n]}function x(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){w(i*n,0,a);var r=i+t;r<0&&k(-r*n,1)}else k(-t*n,1)}}function w(n,i,r){0!==n&&(u=!0);for(var o=i;o0)for(l=0;l0;l--)w(-o[l-1]*h,l,a)}}function C(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),i=0;i0?w(n,0,i+1):w(-n,a-i-1,a),(t-=n)<=0)return}}function _m(t,e,n,i){return ym(t,"y","height",e,n,i)}function bm(t){if(t){for(var e=[],n=0;n=0&&n.attr(f.oldLayoutSelect),G(u,"emphasis")>=0&&n.attr(f.oldLayoutEmphasis)),mc(n,s,e,a)}else if(n.attr(s),!Yc(n).valueAnimation){var c=gt(n.style.opacity,1);n.style.opacity=0,vc(n,{style:{opacity:c}},e,a)}if(f.oldLayout=s,n.states.select){var h=f.oldLayoutSelect={};Mm(h,s,Am),Mm(h,n.states.select,Am)}if(n.states.emphasis){var d=f.oldLayoutEmphasis={};Mm(d,s,Am),Mm(d,n.states.emphasis,Am)}Xc(n,a,l,e,e)}if(i&&!i.ignore&&!i.invisible){var f=Sm(i),p={points:i.shape.points};(r=f.oldLayout)?(i.attr({shape:r}),mc(i,{shape:p},e)):(i.setShape(p),i.style.strokePercent=0,vc(i,{style:{strokePercent:1}},e)),f.oldLayout=p}},t}();function Om(t,e){function n(e,n){var i=[];return e.eachComponent({mainType:"series",subType:t,query:n},function(t){i.push(t.seriesIndex)}),i}q([[t+"ToggleSelect","toggleSelect"],[t+"Select","select"],[t+"UnSelect","unselect"]],function(t){e(t[0],function(e,i,r){e=B({},e),r.dispatchAction(B(e,{type:t[1],seriesIndex:n(i,e)}))})})}function Tm(t,e,n,i,r){var o=t+e;n.isSilent(o)||i.eachComponent({mainType:"series",subType:"pie"},function(t){for(var e=t.seriesIndex,i=r.selected,a=0;a0?(e=e||1,"dashed"===t?[4*e,2*e]:"dotted"===t?[e]:ot(t)?[t]:et(t)?t:null):null}var Ym=new Ya(!0);function qm(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function Xm(t){var e=t.fill;return null!=e&&"none"!==e}function Zm(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function Km(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function $m(t,e,n){var i=_o(e.image,e.__image,n);if(xo(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r.setTransform){var o=new DOMMatrix;o.rotateSelf(0,0,(e.rotation||0)/Math.PI*180),o.scaleSelf(e.scaleX||1,e.scaleY||1),o.translateSelf(e.x||0,e.y||0),r.setTransform(o)}return r}}var Qm=["shadowBlur","shadowOffsetX","shadowOffsetY"],Jm=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function tv(t,e,n,i,r){var o=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){o||(iv(t,r),o=!0);var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?Lo.opacity:a}(i||e.blend!==n.blend)&&(o||(iv(t,r),o=!0),t.globalCompositeOperation=e.blend||Lo.blend);for(var s=0;s0&&Wm(n.lineDash,n.lineWidth),w=n.lineDashOffset,k=!!t.setLineDash,C=e.getGlobalScale();if(u.setScale(C[0],C[1],e.segmentIgnoreThreshold),x){var S=n.strokeNoScale&&e.getLineScale?e.getLineScale():1;S&&1!==S&&(x=X(x,function(t){return t/S}),w/=S)}var M=!0;(l||4&e.__dirty||x&&!k&&r)&&(u.setDPR(t.dpr),s?u.setContext(null):(u.setContext(t),M=!1),u.reset(),x&&!k&&(u.setLineDash(x),u.setLineDashOffset(w)),e.buildPath(u,e.shape,i),u.toStatic(),e.pathUpdated()),M&&u.rebuildPath(t,s?a:1),x&&k&&(t.setLineDash(x),t.lineDashOffset=w),i||(n.strokeFirst?(r&&Km(t,n),o&&Zm(t,n)):(o&&Zm(t,n),r&&Km(t,n))),x&&k&&t.setLineDash([])}(t,e,f,d),d&&(n.batchFill=f.fill||"",n.batchStroke=f.stroke||"")):e instanceof gs?(3!==n.lastDrawType&&(l=!0,n.lastDrawType=3),ev(t,e,u,l,n),function(t,e,n){var i=n.text;if(null!=i&&(i+=""),i){t.font=n.font||Ei,t.textAlign=n.textAlign,t.textBaseline=n.textBaseline;var r=void 0;if(t.setLineDash){var o=n.lineDash&&n.lineWidth>0&&Wm(n.lineDash,n.lineWidth),a=n.lineDashOffset;if(o){var s=n.strokeNoScale&&e.getLineScale?e.getLineScale():1;s&&1!==s&&(o=X(o,function(t){return t/s}),a/=s),t.setLineDash(o),t.lineDashOffset=a,r=!0}}n.strokeFirst?(qm(n)&&t.strokeText(i,n.x,n.y),Xm(n)&&t.fillText(i,n.x,n.y)):(Xm(n)&&t.fillText(i,n.x,n.y),qm(n)&&t.strokeText(i,n.x,n.y)),r&&t.setLineDash([])}}(t,e,f)):e instanceof _s?(2!==n.lastDrawType&&(l=!0,n.lastDrawType=2),function(t,e,n,i,r){tv(t,rv(e,r.inHover),n&&rv(n,r.inHover),i,r)}(t,e,u,l,n),function(t,e,n){var i=e.__image=_o(n.image,e.__image,e,e.onload);if(i&&xo(i)){var r=n.x||0,o=n.y||0,a=e.getWidth(),s=e.getHeight(),l=i.width/i.height;if(null==a&&null!=s?a=s*l:null==s&&null!=a?s=a/l:null==a&&null==s&&(a=i.width,s=i.height),n.sWidth&&n.sHeight)t.drawImage(i,u=n.sx||0,c=n.sy||0,n.sWidth,n.sHeight,r,o,a,s);else if(n.sx&&n.sy){var u,c;t.drawImage(i,u=n.sx,c=n.sy,a-u,s-c,r,o,a,s)}else t.drawImage(i,r,o,a,s)}}(t,e,f)):e instanceof Ju&&(4!==n.lastDrawType&&(l=!0,n.lastDrawType=4),function(t,e,n){var i=e.getDisplayables(),r=e.getTemporalDisplayables();t.save();var o,a,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:n.viewWidth,viewHeight:n.viewHeight,inHover:n.inHover};for(o=e.getCursor(),a=i.length;o=4&&(l={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(l&&null!=a&&null!=s&&(u=Lv(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var d=i;(i=new tr).add(d),d.scaleX=d.scaleY=u.scale,d.x=u.x,d.y=u.y}return e.ignoreRootClip||null==a||null==s||i.setClipPath(new As({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:r}},t.prototype._parseNode=function(t,e,n,i,r,o){var a,s=t.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!r){var u=sv[s];if(u&&It(sv,s)){a=u.call(this,t,e);var c=t.getAttribute("name");if(c){var h={name:c,namedFrom:null,svgNodeTagLower:s,el:a};n.push(h),"g"===s&&(l=h)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});e.add(a)}}var d=xv[s];if(d&&It(xv,s)){var f=d.call(this,t),p=t.getAttribute("id");p&&(this._defs[p]=f)}}if(a&&a.isGroup)for(var g=t.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,r,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var n=new gs({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Cv(e,n),Mv(t,n,this._defsUsePending,!1,!1),function(t,e){var n=e.__selfStyle;if(n){var i=n.textBaseline,r=i;i&&"auto"!==i?"baseline"===i?r="alphabetic":"before-edge"===i||"text-before-edge"===i?r="top":"after-edge"===i||"text-after-edge"===i?r="bottom":"central"!==i&&"mathematical"!==i||(r="middle"):r="alphabetic",t.style.textBaseline=r}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}(n,e);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=void(sv={g:function(t,e){var n=new tr;return Cv(e,n),Mv(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new As;return Cv(e,n),Mv(t,n,this._defsUsePending,!1,!1),n.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),n.silent=!0,n},circle:function(t,e){var n=new eu;return Cv(e,n),Mv(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new Ru;return Cv(e,n),Mv(t,n,this._defsUsePending,!1,!1),n.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),n.silent=!0,n},ellipse:function(t,e){var n=new ru;return Cv(e,n),Mv(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),n.silent=!0,n},polygon:function(t,e){var n,i=t.getAttribute("points");i&&(n=Sv(i));var r=new Au({shape:{points:n||[]},silent:!0});return Cv(e,r),Mv(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var n,i=t.getAttribute("points");i&&(n=Sv(i));var r=new Tu({shape:{points:n||[]},silent:!0});return Cv(e,r),Mv(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var n=new _s;return Cv(e,n),Mv(t,n,this._defsUsePending,!1,!1),n.setStyle({image:t.getAttribute("xlink:href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new tr;return Cv(e,a),Mv(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new tr;return Cv(e,a),Mv(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(t,e){var n=Ql(t.getAttribute("d")||"");return Cv(e,n),Mv(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),t}(),xv={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),r=parseInt(t.getAttribute("y2")||"0",10),o=new Wu(e,n,i,r);return wv(t,o),kv(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10),r=new Yu(e,n,i);return wv(t,r),kv(t,r),r}};function wv(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function kv(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i,r=n.getAttribute("offset");i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var o={};Rv(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function Cv(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),H(e.__inheritedStyle,t.__inheritedStyle))}function Sv(t){for(var e=Tv(t),n=[],i=0;i0;o-=2){var a=i[o-1],s=Tv(i[o]);switch(r=r||[1,0,0,1,0,0],a){case"translate":li(r,r,[parseFloat(s[0]),parseFloat(s[1]||"0")]);break;case"scale":ci(r,r,[parseFloat(s[0]),parseFloat(s[1]||s[0])]);break;case"rotate":ui(r,r,-parseFloat(s[0])*Pv);break;case"skewX":si(r,[1,0,Math.tan(parseFloat(s[0])*Pv),1,0,0],r);break;case"skewY":si(r,[1,Math.tan(parseFloat(s[0])*Pv),0,1,0,0],r);break;case"matrix":r[0]=parseFloat(s[0]),r[1]=parseFloat(s[1]),r[2]=parseFloat(s[2]),r[3]=parseFloat(s[3]),r[4]=parseFloat(s[4]),r[5]=parseFloat(s[5])}}e.setLocalTransform(r)}}(t,e),Rv(t,a,s),i||function(t,e,n){for(var i=0;i>1^-(1&s),l=l>>1^-(1&l),r=s+=r,o=l+=o,i.push([s/n,l/n])}return i}function Wv(t,e){return X(K((t=function(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;null==n&&(n=1024);for(var i=e.features,r=0;r0}),function(t){var n,i=t.properties,r=t.geometry,o=[];"Polygon"===r.type&&o.push({type:"polygon",exterior:(n=r.coordinates)[0],interiors:n.slice(1)}),"MultiPolygon"===r.type&&q(n=r.coordinates,function(t){t[0]&&o.push({type:"polygon",exterior:t[0],interiors:t.slice(1)})});var a=new Bv(i[e||"name"],o,i.cp);return a.properties=i,a})}for(var Yv=[126,25],qv="\u5357\u6d77\u8bf8\u5c9b",Xv=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]],Zv=0;Zv0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.setOption=function(t,e,n){if(this._disposed);else{var i,r,o;if(ly(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this.__flagInMainProcess=!0,!this._model||e){var a=new ef(this._api),s=this._theme,l=this._model=new Xd;l.scheduler=this._scheduler,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},Ky),Vy(this,o),n?(this.__optionUpdated={silent:i},this.__flagInMainProcess=!1,this.getZr().wakeUp()):(xy(this),Cy.update.call(this),this._zr.flush(),this.__optionUpdated=!1,this.__flagInMainProcess=!1,Iy.call(this,i),Oy.call(this,i))}},e.prototype.setTheme=function(){console.error("ECharts#setTheme() is DEPRECATED in ECharts 3.0")},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||cy&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){if(x.canvasSupported)return this._zr.painter.getRenderedCanvas({backgroundColor:(t=t||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.getSvgDataURL=function(){if(x.svgSupported){var t=this._zr;return q(t.storage.getDisplayList(),function(t){t.stopAnimation(null,!0)}),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){var e=this._model,n=[],i=this;ay((t=t||{}).excludeComponents,function(t){e.eachComponent({mainType:t},function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(n.push(e),e.group.ignore=!0)})});var r="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.getRenderedCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return ay(n,function(t){t.group.ignore=!1}),r}},e.prototype.getConnectedDataURL=function(t){if(this._disposed);else if(x.canvasSupported){var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(i_[n]){var a=o,s=o,l=-1/0,u=-1/0,c=[],h=t&&t.pixelRatio||this.getDevicePixelRatio();q(n_,function(o,h){if(o.group===n){var d=e?o.getZr().painter.getSvgDom().innerHTML:o.getRenderedCanvas(F(t)),f=o.getDom().getBoundingClientRect();a=i(f.left,a),s=i(f.top,s),l=r(f.right,l),u=r(f.bottom,u),c.push({dom:d,left:f.left,top:f.top})}});var d=(l*=h)-(a*=h),f=(u*=h)-(s*=h),p=j(),g=or(p,{renderer:e?"svg":"canvas"});if(g.resize({width:d,height:f}),e){var m="";return ay(c,function(t){m+=''+t.dom+""}),g.painter.getSvgRoot().innerHTML=m,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new As({shape:{x:0,y:0,width:d,height:f},style:{fill:t.connectedBackgroundColor}})),ay(c,function(t){var e=new _s({style:{x:t.left*h-a,y:t.top*h-s,image:t.dom}});g.add(e)}),g.refreshImmediately(),p.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}},e.prototype.convertToPixel=function(t,e){return Sy(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return Sy(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){var n;if(!this._disposed)return q(Zr(this._model,t),function(t,i){i.indexOf("Models")>=0&&q(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}},this)},this),!!n},e.prototype.getVisual=function(t,e){var n=Zr(this._model,t,{defaultMainType:"series"}),i=n.seriesModel.getData(),r=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=r?Wg(i,r,e):Yg(i,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t,e,n=this;ay(Yy,function(t){var e=function(e){var i,r=n.getModel(),o=e.target;if("globalout"===t?i={}:o&&Dm(o,function(t){var e=Vs(t);if(e&&null!=e.dataIndex){var n=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return i=n&&n.getDataParams(e.dataIndex,e.dataType)||{},!0}if(e.eventData)return i=B({},e.eventData),!0},!0),i){var a=i.componentType,s=i.componentIndex;"markLine"!==a&&"markPoint"!==a&&"markArea"!==a||(a="series",s=i.seriesIndex);var l=a&&null!=s&&r.getComponent(a,s),u=l&&n["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];i.event=e,i.type=t,n._$eventProcessor.eventInfo={targetEl:o,packedEvent:i,model:l,view:u},n.trigger(t,i)}};e.zrEventfulCallAtLast=!0,n._zr.on(t,e,n)}),ay(Xy,function(t,e){n._messageCenter.on(e,function(t){this.trigger(e,t)},n)}),ay(["selectchanged"],function(t){n._messageCenter.on(t,function(e){this.trigger(t,e)},n)}),t=this,e=this._api,this._messageCenter.on("selectchanged",function(n){var i=e.getModel();n.isFromClick?(Tm("map","selectchanged",t,i,n),Tm("pie","selectchanged",t,i,n)):"select"===n.fromAction?(Tm("map","selected",t,i,n),Tm("pie","selected",t,i,n)):"unselect"===n.fromAction&&(Tm("map","unselected",t,i,n),Tm("pie","unselected",t,i,n))})},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed);else{this._disposed=!0,to(this.getDom(),a_,"");var t=this._api,e=this._model;ay(this._componentsViews,function(n){n.dispose(e,t)}),ay(this._chartsViews,function(n){n.dispose(e,t)}),this._zr.dispose(),delete n_[this.id]}},e.prototype.resize=function(t){if(this._disposed);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this.__optionUpdated&&(null==i&&(i=this.__optionUpdated.silent),n=!0,this.__optionUpdated=!1),this.__flagInMainProcess=!0,n&&xy(this),Cy.update.call(this,{type:"resize",animation:B({duration:0},t&&t.animation)}),this.__flagInMainProcess=!1,Iy.call(this,i),Oy.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed);else if(ly(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),e_[t]){var n=e_[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=B({},t);return e.type=Xy[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed);else if(ly(e)||(e={silent:!!e}),qy[t.type]&&this._model)if(this.__flagInMainProcess)this._pendingActions.push(t);else{var n=e.silent;Ay.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&x.browser.weChat&&this._throttledZrFlush(),Iy.call(this,n),Oy.call(this,n)}},e.prototype.updateLabelLayout=function(){var t=this._labelManager;t.updateLayoutConfig(this._api),t.layout(this._api),t.processLabelsOverall()},e.prototype.appendData=function(t){if(this._disposed);else{var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){for(var e=[],n=t.currentStates,i=0;i0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.group.traverse(function(e){if(e.states&&e.states.emphasis){if(xc(e))return;if(e instanceof ds&&function(t){var e=js(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}(e),e.__dirty){var n=e.prevStates;n&&e.useStates(n)}if(r){e.stateTransition=a;var i=e.getTextContent(),o=e.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}e.__dirty&&t(e)}})}xy=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),wy(t,!0),wy(t,!1),e.plan()},wy=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;le.get("hoverLayerThreshold")&&!x.node&&!x.worker&&e.eachSeries(function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.group.traverse(function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)})}})}(t,n)},Ny=function(t,e){ay(Qy,function(n){n(t,e)})},By=function(t){t.__needsUpdateStatus=!0,t.getZr().wakeUp()},Hy=function(e){e.__needsUpdateStatus&&(e.getZr().storage.traverse(function(e){xc(e)||t(e)}),e.__needsUpdateStatus=!1)},Fy=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return m(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){fl(e,n),By(t)},n.prototype.leaveEmphasis=function(e,n){pl(e,n),By(t)},n.prototype.enterBlur=function(e){gl(e),By(t)},n.prototype.leaveBlur=function(e){ml(e),By(t)},n.prototype.enterSelect=function(e){vl(e),By(t)},n.prototype.leaveSelect=function(e){yl(e),By(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(Kd))(t)},zy=function(t){function e(t,e){for(var n=0;n=0)){C_.push(n);var o=Rg.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function M_(t,e){e_[t]=e}function A_(t){E("createCanvas",t)}function I_(t,e,n){!function(t,e,n){if(e.svg){var i=new Gv(t,e.svg);ny.set(t,i)}else{var r=e.geoJson||e.geoJSON;r&&!e.features?n=e.specialAreas:r=e,i=new ty(t,r,n),ny.set(t,i)}}(t,e,n)}function O_(t){return function(t){var e=ny.get(t);return e&&"geoJSON"===e.type&&e.getMapForUser()}(t)}var T_=function(t){var e=(t=F(t)).type;e||tp("");var n=e.split(":");2!==n.length&&tp("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,pp.set(e,t)};k_(fy,pg),k_(py,mg),k_(py,vg),k_(fy,Ug),k_(py,{createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(t.hasSymbolVisual&&!e.isSeriesFiltered(t))return{dataEach:t.getData().hasItemOption?function(t,e){var n=t.getItemModel(e),i=n.getShallow("symbol",!0),r=n.getShallow("symbolSize",!0),o=n.getShallow("symbolRotate",!0),a=n.getShallow("symbolOffset",!0),s=n.getShallow("symbolKeepAspect",!0);null!=i&&t.setItemVisual(e,"symbol",i),null!=r&&t.setItemVisual(e,"symbolSize",r),null!=o&&t.setItemVisual(e,"symbolRotate",o),null!=a&&t.setItemVisual(e,"symbolOffset",a),null!=s&&t.setItemVisual(e,"symbolKeepAspect",s)}:null}}}),k_(7e3,function(t,e){t.eachRawSeries(function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each(function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=hv(n,e))});var r=i.getVisual("decal");r&&(i.getVisual("style").decal=hv(r,e))}})}),g_(xf),m_(900,function(t){var e=St();t.eachSeries(function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}}),e.each(wf)}),M_("default",function(t,e){H(e=e||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new tr,i=new As({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,o=new zs({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new As({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((r=new ju({shape:{startAngle:-yg/2,endAngle:-yg/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*yg/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*yg/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n}),__({type:Ws,event:Ws,update:Ws},Ot),__({type:Ys,event:Ys,update:Ys},Ot),__({type:qs,event:qs,update:qs},Ot),__({type:Xs,event:Xs,update:Xs},Ot),__({type:Zs,event:Zs,update:Zs},Ot),p_("light",Ng),p_("dark",jg);var D_={},P_=[],E_={registerPreprocessor:g_,registerProcessor:m_,registerPostInit:v_,registerPostUpdate:y_,registerAction:__,registerCoordinateSystem:b_,registerLayout:w_,registerVisual:k_,registerTransform:T_,registerLoading:M_,registerMap:I_,PRIORITY:gy,ComponentModel:md,ComponentView:qp,SeriesModel:Wp,ChartView:ig,registerComponentModel:function(t){md.registerClass(t)},registerComponentView:function(t){qp.registerClass(t)},registerSeriesModel:function(t){Wp.registerClass(t)},registerChartView:function(t){ig.registerClass(t)},registerSubTypeDefaulter:function(t,e){md.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){ur(t,e)}};function R_(t){et(t)?q(t,function(t){R_(t)}):G(P_,t)>=0||(P_.push(t),nt(t)&&(t={install:t}),t.install(E_))}function L_(t){return null==t?0:t.length||1}function N_(t){return t}var F_=function(){function t(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||N_,this._newKeyGetter=i||N_,this.context=r,this._diffModeMultiple="multiple"===o}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,n={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._new,e={},n={},i=[],r=[];this._initIndexMap(this._old,e,i,"_oldKeyGetter"),this._initIndexMap(t,n,r,"_newKeyGetter");for(var o=0;o1&&1===c)this._updateManyToOne&&this._updateManyToOne(l,s),n[a]=null;else if(1===u&&c>1)this._updateOneToMany&&this._updateOneToMany(l,s),n[a]=null;else if(1===u&&1===c)this._update&&this._update(l,s),n[a]=null;else if(u>1)for(var h=0;h1)for(var a=0;av[1]&&(v[1]=m)}e&&(this._nameList[d]=e[f],this._dontMakeIdFromName||X_(this,d))}this._rawCount=this._count=s,this._extent={},H_(this)},t.prototype._initDataFromProvider=function(t,e,n){if(!(t>=e)){for(var i=this._rawData,r=this._storage,o=this.dimensions,a=o.length,s=this._dimensionInfos,l=this._nameList,u=this._idList,c=this._rawExtent,h=i.getSource().sourceFormat===xd,d=0;dx[1]&&(x[1]=b)}if(h&&!i.pure&&g){var w=g.name;null==l[m]&&null!=w&&(l[m]=Gr(w,null));var k=g.id;null==u[m]&&null!=k&&(u[m]=Gr(k,null))}this._dontMakeIdFromName||X_(this,m)}!i.persistent&&i.clean&&i.clean(),this._rawCount=this._count=e,this._extent={},H_(this)}},t.prototype.count=function(){return this._count},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=this._count;if((r=e.constructor)===Array){t=new r(n);for(var i=0;i=0&&e=0&&e=0&&ea&&(a=l)}return this._extent[t]=i=[o,a],i},t.prototype.getApproximateExtent=function(t){return t=this.getDimension(t),this._approximateExtent[t]||this.getDataExtent(t)},t.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},t.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},t.prototype.setCalculationInfo=function(t,e){nb(t)?B(this._calculationInfo,t):this._calculationInfo[t]=e},t.prototype.getSum=function(t){var e=0;if(this._storage[t])for(var n=0,i=this.count();n=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(null!=n&&nt))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._storage[t],r=[];if(!i)return r;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l=0&&a<0)&&(o=h,a=c,s=0),c===a&&(r[s++]=l))}return r.length=s,r},t.prototype.getRawDataItem=function(t){if(this._rawData.persistent)return this._rawData.getItem(this.getRawIndex(t));for(var e=[],n=0;n=h&&S<=d||isNaN(S))&&(s[l++]=g),g++;p=!0}else if(2===o){m=f[c[0]];var y=f[c[1]],_=t[i[1]][0],b=t[i[1]][1];for(v=0;v=h&&S<=d||isNaN(S))&&(x>=_&&x<=b||isNaN(x))&&(s[l++]=g),g++}p=!0}}if(!p)if(1===o)for(v=0;v=h&&S<=d||isNaN(S))&&(s[l++]=w)}else for(v=0;vt[M][1])&&(k=!1)}k&&(s[l++]=this.getRawIndex(v))}return lb[1]&&(b[1]=_)}}}return a},t.prototype.downSample=function(t,e,n,i){for(var r=K_(this,[t]),o=r._storage,a=[],s=eb(1/e),l=o[t],u=this.count(),c=r._rawExtent[t],h=new(j_(this))(u),d=0,f=0;fu-f&&(a.length=s=u-f);for(var p=0;pc[1]&&(c[1]=m),h[d++]=v}return r._count=d,r._indices=h,r.getRawIndex=W_,r},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=K_(this,[]),a=o._storage[t],s=this.count(),l=new(j_(this))(s),u=0,c=eb(1/e),h=this.getRawIndex(0);l[u++]=h;for(var d=1;dn&&(n=i,r=k)}l[u++]=r,h=r}return l[u++]=this.getRawIndex(s-1),o._count=u,o._indices=l,o.getRawIndex=W_,o},t.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new sh(n,e,e&&e.ecModel)},t.prototype.diff=function(t){var e=this;return new F_(t?t.getIndices():[],this.getIndices(),function(e){return Y_(t,e)},function(t){return Y_(e,t)})},t.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},t.prototype.setVisual=function(t,e){this._visual=this._visual||{},nb(t)?B(this._visual,t):this._visual[t]=e},t.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return null==i?this.getVisual(e):i},t.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(et(r=this.getVisual(e))?r=r.slice():nb(r)&&(r=B({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,nb(e)?B(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){if(nb(t))for(var n in t)t.hasOwnProperty(n)&&this.setLayout(n,t[n]);else this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,n){this._itemLayouts[t]=n?B(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel;if(e){var i=Vs(e);i.dataIndex=t,i.dataType=this.dataType,i.seriesIndex=n&&n.seriesIndex,"group"===e.type&&e.traverse(Q_,e)}this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){q(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},t.prototype.cloneShallow=function(e){if(e||(e=new t(ib(this.dimensions,this.getDimensionInfo,this),this.hostModel)),e._storage=this._storage,e._storageArr=this._storageArr,J_(e,this),this._indices){var n=this._indices.constructor;if(n===Array){var i=this._indices.length;e._indices=new n(i);for(var r=0;r65535?ab:lb},G_=function(t,e,n,i){var r=ob[e.type],o=e.name;if(i){var a=t[o],s=a&&a.length;if(s!==n){for(var l=new r(n),u=0;u=0?this._indices[t]:-1},Y_=function(t,e){var n=t._idList[e];return null==n&&null!=t._idDimIdx&&(n=q_(t,t._idDimIdx,t._idOrdinalMeta,e)),null==n&&(n="e\0\0"+e),n},Z_=function(t){return et(t)||(t=null!=t?[t]:[]),t},K_=function(e,n){var i=e.dimensions,r=new t(ib(i,e.getDimensionInfo,e),e.hostModel);J_(r,e);for(var o,a,s=r._storage={},l=e._storage,u=r._storageArr=[],c=0;c=0?(s[h]=(a=void 0,(a=(o=l[h]).constructor)===Array?o.slice():new a(o)),r._rawExtent[h]=$_(),r._extent[h]=null):s[h]=l[h],u.push(s[h]))}return r},$_=function(){return[1/0,-1/0]},Q_=function(t){var e=Vs(t),n=Vs(this);e.seriesIndex=n.seriesIndex,e.dataIndex=n.dataIndex,e.dataType=n.dataType},J_=function(t,e){q(ub.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,q(cb,function(n){t[n]=F(e[n])}),t._calculationInfo=B({},e._calculationInfo)},X_=function(t,e){var n=t._nameList,i=t._idList,r=t._nameDimIdx,o=t._idDimIdx,a=n[e],s=i[e];if(null==a&&null!=r&&(n[e]=a=q_(t,r,t._nameOrdinalMeta,e)),null==s&&null!=o&&(i[e]=s=q_(t,o,t._idOrdinalMeta,e)),null==s&&null!=a){var l=t._nameRepeatCount,u=l[a]=(l[a]||0)+1;s=a,u>1&&(s+="__ec__"+u),i[e]=s}}}(),t}();function db(t,e,n){if(n||null!=e.get(t)){for(var i=0;null!=e.get(t+i);)i++;t+=i}return e.set(t,!0),t}function fb(t,e){return function(t,e,n){Of(e)||(e=Df(e)),n=n||{},t=(t||[]).slice();for(var i=(n.dimsDef||[]).slice(),r=St(),o=St(),a=[],s=function(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return q(e,function(t){var e;at(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))}),r}(e,t,i,n.dimCount),l=0;le[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();fo(xb);var wb=xb;function kb(t){return at(t)&&null!=t.value?t.value:t+""}var Cb=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&X(i,kb);return new t({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if("string"!=typeof t&&!n)return t;if(n&&!this._deduplication)return this.categories[e=this.categories.length]=t,e;var i=this._getOrCreateMap();return null==(e=i.get(t))&&(n?(this.categories[e=this.categories.length]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=St(this.categories))},t}(),Sb=fr;function Mb(t){return gr(t)+2}function Ab(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function Ib(t,e){return t>=e[0]&&t<=e[1]}function Ob(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function Tb(t,e){return t*(e[1]-e[0])+e[0]}var Db=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new Cb({})),et(i)&&(i=new Cb({categories:X(i,function(t){return at(t)?t.value:t})})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return m(e,t),e.prototype.parse=function(t){return"string"==typeof t?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return Ib(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return Ob(t=this._getTickNumber(this.parse(t)),this._extent)},e.prototype.scale=function(t){return t=Math.round(Tb(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.niceTicks=function(){},e.prototype.niceExtent=function(){},e.type="ordinal",e}(wb);wb.registerClass(Db);var Pb=Db,Eb=fr,Rb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return m(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Ib(t,this._extent)},e.prototype.normalize=function(t){return Ob(t,this._extent)},e.prototype.scale=function(t){return Tb(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=Mb(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;n[0]1e4)return[];var s=o.length?o[o.length-1].value:i[1];return n[1]>s&&o.push(t?{value:Eb(s+e,r)}:{value:n[1]}),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;ri[0]&&ui&&(o=r.interval=i);var a=r.intervalPrecision=Mb(o);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),Ab(t,0,e),Ab(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(r.niceTickExtent=[Sb(Math.ceil(t[0]/o)*o,a),Sb(Math.floor(t[1]/o)*o,a)],t),r}(i,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.niceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=e[0];t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;isFinite(e[1]-e[0])||(e[0]=0,e[1]=1),this.niceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=Eb(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=Eb(Math.ceil(e[1]/i)*i))},e.type="interval",e}(wb);wb.registerClass(Rb);var Lb=Rb,Nb="__ec_stack_",Fb="undefined"!=typeof Float32Array?Float32Array:Array;function zb(t){return t.get("stack")||Nb+t.seriesIndex}function Vb(t){return t.dim+t.index}function Bb(t,e){var n=[];return e.eachSeriesByType(t,function(t){Yb(t)&&!qb(t)&&n.push(t)}),n}function Hb(t){var e=function(t){var e={};q(t,function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=t.getData(),r=n.dim+"_"+n.index,o=i.mapDimension(n.dim),a=0,s=i.count();a0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}(t),n=[];return q(t,function(t){var i,r=t.coordinateSystem.getBaseAxis(),o=r.getExtent();if("category"===r.type)i=r.getBandWidth();else if("value"===r.type||"time"===r.type){var a=e[r.dim+"_"+r.index],s=Math.abs(o[1]-o[0]),l=r.scale.getExtent(),u=Math.abs(l[1]-l[0]);i=a?s/u*a:s}else{var c=t.getData();i=Math.abs(o[1]-o[0])/c.count()}var h=dr(t.get("barWidth"),i),d=dr(t.get("barMaxWidth"),i),f=dr(t.get("barMinWidth")||1,i),p=t.get("barGap"),g=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:h,barMaxWidth:d,barMinWidth:f,barGap:p,barCategoryGap:g,axisKey:Vb(r),stackId:zb(t)})}),jb(n)}function jb(t){var e={};q(t,function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var h=t.barGap;null!=h&&(o.gap=h);var d=t.barCategoryGap;null!=d&&(o.categoryGap=d)});var n={};return q(e,function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=Q(i).length;o=Math.max(35-4*a,15)+"%"}var s=dr(o,r),l=dr(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,h=(u-s)/(c+(c-1)*l);h=Math.max(h,0),q(i,function(t){var e=t.maxWidth,n=t.minWidth;if(t.width)i=t.width,e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,c--;else{var i=h;e&&ei&&(i=n),i!==h&&(t.width=i,u-=i+l*i,c--)}}),h=(u-s)/(c+(c-1)*l),h=Math.max(h,0);var d,f=0;q(i,function(t,e){t.width||(t.width=h),d=t,f+=t.width*(1+l)}),d&&(f-=d.width*l);var p=-f/2;q(i,function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:p,width:t.width},p+=t.width*(1+l)})}),n}function Gb(t,e,n){if(t&&e){var i=t[Vb(e)];return null!=i&&null!=n?i[zb(n)]:i}}function Ub(t,e){var n=Bb(t,e),i=Hb(n),r={};q(n,function(t){var e=t.getData(),n=t.coordinateSystem,o=n.getBaseAxis(),a=zb(t),s=i[Vb(o)][a],l=s.offset,u=s.width,c=n.getOtherAxis(o),h=t.get("barMinHeight")||0;r[a]=r[a]||[],e.setLayout({bandWidth:s.bandWidth,offset:l,size:u});for(var d=e.mapDimension(c.dim),f=e.mapDimension(o.dim),p=yb(e,d),g=c.isHorizontal(),m=Xb(0,c),v=0,y=e.count();v=0?"p":"n",w=m;p&&(r[a][b]||(r[a][b]={p:m,n:m}),w=r[a][b][x]);var k,C=void 0,S=void 0,M=void 0,A=void 0;g?(C=w,S=(k=n.dataToPoint([_,b]))[1]+l,M=k[0]-m,A=u,Math.abs(M).5||(c=.5),{progress:function(t,e){for(var r,h=t.count,d=new Fb(2*h),f=new Fb(2*h),p=new Fb(h),g=[],m=[],v=0,y=0;null!=(r=t.next());)m[u]=e.get(a,r),m[1-u]=e.get(s,r),g=n.dataToPoint(m,null),f[v]=l?i.x+i.width:g[0],d[v++]=g[0],f[v]=l?g[1]:i.y+i.height,d[v++]=g[1],p[y++]=r;e.setLayout({largePoints:d,largeDataIndices:p,largeBackgroundPoints:f,barWidth:c,valueAxisStart:Xb(0,o),backgroundStart:l?i.x:i.y,valueAxisHorizontal:l})}}}}};function Yb(t){return t.coordinateSystem&&"cartesian2d"===t.coordinateSystem.type}function qb(t){return t.pipelineContext&&t.pipelineContext.large}function Xb(t,e,n){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}var Zb=function(t){function e(e){var n=t.call(this,e)||this;return n.type="time",n}return m(e,t),e.prototype.getLabel=function(t){var e=this.getSetting("useUTC");return Sh(t.value,bh[function(t){switch(t){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}(Ch(this._minLevelUnit))]||bh.second,e,this.getSetting("locale"))},e.prototype.getFormattedLabel=function(t,e,n){var i=this.getSetting("useUTC");return function(t,e,n,i,r){var o=null;if("string"==typeof n)o=n;else if("function"==typeof n)o=n(t.value,e,{level:t.level});else{var a=B({},_h);if(t.level>0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(et(o)){var c=null==t.level?0:t.level>=0?t.level:o.length+t.level;o=o[c=Math.min(c,o.length-1)]}}return Sh(new Date(t.value),o,r,i)}(t,e,n,this.getSetting("locale"),i)},e.prototype.getTicks=function(t){var e=this._extent,n=[];if(!this._interval)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),r=function(t,e,n,i){var r,o=wh,a=0;function s(t,e,n,r,o,a,s){for(var l=new Date(e),u=e,c=l[r]();u1&&0===u&&o.unshift({value:o[0].value-d})}}for(u=0;u=i[0]&&v<=i[1]&&h++)}var y=(i[1]-i[0])/e;if(h>1.5*y&&d>y/1.5)break;if(u.push(g),h>y||t===o[f])break}c=[]}}var _=K(X(u,function(t){return K(t,function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd})}),function(t){return t.length>0}),b=[],x=_.length-1;for(f=0;f<_.length;++f)for(var w=_[f],k=0;kn&&(this._approxInterval=n);var r=Kb.length,o=Math.min(function(t,e,n,i){for(;n>>1;t[r][1]16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function Qb(t){return(t/=2592e6)>6?6:t>3?3:t>2?2:1}function Jb(t){return(t/=mh)>12?12:t>6?6:t>3.5?4:t>2?2:1}function tx(t,e){return(t/=e?6e4:1e3)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function ex(t){return Ar(t,!0)}function nx(t,e,n){var i=new Date(t);switch(Ch(e)){case"year":case"month":i[Nh(n)](0);case"day":i[Fh(n)](1);case"hour":i[zh(n)](0);case"minute":i[Vh(n)](0);case"second":i[Bh(n)](0),i[Hh(n)](0)}return i.getTime()}wb.registerClass(Zb);var ix=Zb,rx=wb.prototype,ox=Lb.prototype,ax=fr,sx=Math.floor,lx=Math.ceil,ux=Math.pow,cx=Math.log,hx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Lb,e._interval=0,e}return m(e,t),e.prototype.getTicks=function(t){var e=this._extent,n=this._originalScale.getExtent();return X(ox.getTicks.call(this,t),function(t){var i=t.value,r=fr(ux(this.base,i));return r=i===e[0]&&this._fixMin?fx(r,n[0]):r,{value:r=i===e[1]&&this._fixMax?fx(r,n[1]):r}},this)},e.prototype.setExtent=function(t,e){var n=this.base;t=cx(t)/cx(n),e=cx(e)/cx(n),ox.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=rx.getExtent.call(this);e[0]=ux(t,e[0]),e[1]=ux(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=fx(e[0],n[0])),this._fixMax&&(e[1]=fx(e[1],n[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=cx(t[0])/cx(e),t[1]=cx(t[1])/cx(e),rx.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.niceTicks=function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i=Sr(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var r=[fr(lx(e[0]/i)*i),fr(sx(e[1]/i)*i)];this._interval=i,this._niceExtent=r}},e.prototype.niceExtent=function(t){ox.niceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return Ib(t=cx(t)/cx(this.base),this._extent)},e.prototype.normalize=function(t){return Ob(t=cx(t)/cx(this.base),this._extent)},e.prototype.scale=function(t){return t=Tb(t,this._extent),ux(this.base,t)},e.type="log",e}(wb),dx=hx.prototype;function fx(t,e){return ax(t,gr(e))}dx.getMinorTicks=ox.getMinorTicks,dx.getLabel=ox.getLabel,wb.registerClass(hx);var px=hx,gx=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]s&&(a=NaN,s=NaN);var c=ft(a)||ft(s)||t&&!i;this._needCrossZero&&(a>0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var h=this._determinedMin,d=this._determinedMax;return null!=h&&(a=h,l=!0),null!=d&&(s=d,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){this[vx[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[mx[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),mx={min:"_determinedMin",max:"_determinedMax"},vx={min:"_dataMin",max:"_dataMax"};function yx(t,e,n){var i=t.rawExtentInfo;return i||(i=new gx(t,e,n),t.rawExtentInfo=i,i)}function _x(t,e){return null==e?null:ft(e)?NaN:t.parse(e)}function bx(t,e){var n=t.type,i=yx(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var r=i.min,o=i.max,a=e.ecModel;if(a&&"time"===n){var s=Bb("bar",a),l=!1;if(q(s,function(t){l=l||t.getBaseAxis()===e.axis}),l){var u=Hb(s),c=function(t,e,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=Gb(i,n.axis);if(void 0===a)return{min:t,max:e};var s=1/0;q(a,function(t){s=Math.min(t.offset,s)});var l=-1/0;q(a,function(t){l=Math.max(t.offset+t.width,l)}),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,h=c/(1-(s+l)/o)-c;return{min:t-=h*(s/u),max:e+=h*(l/u)}}(r,o,e,u);r=c.min,o=c.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function xx(t,e){var n=bx(t,e),i=n.extent,r=e.get("splitNumber");t instanceof px&&(t.base=e.get("logBase"));var o=t.type;t.setExtent(i[0],i[1]),t.niceExtent({splitNumber:r,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:"interval"===o||"time"===o?e.get("minInterval"):null,maxInterval:"interval"===o||"time"===o?e.get("maxInterval"):null});var a=e.get("interval");null!=a&&t.setInterval&&t.setInterval(a)}function kx(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Pb({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new ix({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(wb.getClass(e)||Lb)}}function Cx(t){var e,n,i=t.getLabelModel().get("formatter"),r="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=i,function(e,i){return t.scale.getFormattedLabel(e,i,n)}):"string"==typeof i?function(e){return function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")}}(i):"function"==typeof i?(e=i,function(n,i){return null!=r&&(i=n.value-r),e(Sx(t,n),i,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function Sx(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function Mx(t,e){var n=e*Math.PI/180,i=t.width,r=t.height,o=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n));return new Di(t.x,t.y,o,a)}function Ax(t){var e=t.get("interval");return null==e?"auto":e}function Ix(t){return"category"===t.type&&0===Ax(t.getLabelModel())}function Ox(t,e){var n={};return q(t.mapDimensionsAll(e),function(e){n[_b(t,e)]=!0}),Q(n)}var Tx=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}();function Dx(t){return bb(t.getSource(),t)}var Px={isDimensionStacked:yb,enableDataStack:vb,getStackedDimension:_b};function Ex(t,e){var n=e;e instanceof sh||(n=new sh(e));var i=kx(n);return i.setExtent(t[0],t[1]),xx(i,n),i}function Rx(t){W(t,Tx)}function Lx(t,e){return Vc(t,null,null,"normal"!==(e=e||{}).state)}function Nx(t,e,n,i,r,o,a,s){return new zs({style:{text:t,font:e,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()}var Fx=qr();function zx(t,e){var n,i,r=Vx(t,"labels"),o=Ax(e);return Bx(r,o)||(nt(o)?n=Gx(t,o):(i="auto"===o?function(t){var e=Fx(t).autoInterval;return null!=e?e:Fx(t).autoInterval=t.calculateCategoryInterval()}(t):o,n=jx(t,i)),Hx(r,o,{labels:n,labelCategoryInterval:i}))}function Vx(t,e){return Fx(t)[e]||(Fx(t)[e]=[])}function Bx(t,e){for(var n=0;n1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var h=Ix(t),d=a.get("showMinLabel")||h,f=a.get("showMaxLabel")||h;d&&u!==o[0]&&g(o[0]);for(var p=u;p<=o[1];p+=l)g(p);function g(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t})}return f&&p-l!==o[1]&&g(o[1]),s}function Gx(t,e,n){var i=t.scale,r=Cx(t),o=[];return q(i.getTicks(),function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})}),o}var Ux=[0,1];function Wx(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}var Yx=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return vr(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&Wx(n=n.slice(),i.count()),hr(t,Ux,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&Wx(n=n.slice(),i.count());var r=hr(t,n,Ux,e);return this.scale.scale(r)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=X(function(t,e){return"category"===t.type?function(t,e){var n,i,r=Vx(t,"ticks"),o=Ax(e),a=Bx(r,o);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(n=[]),nt(o))n=Gx(t,o,!0);else if("auto"===o){var s=zx(t,t.getLabelModel());i=s.labelCategoryInterval,n=X(s.labels,function(t){return t.tickValue})}else n=jx(t,i=o,!0);return Hx(r,o,{ticks:n,tickCategoryInterval:i})}(t,e):{ticks:X(t.scale.getTicks(),function(t){return t.value})}}(this,e).ticks,function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}},this);return function(t,e,n,i){var r=e.length;if(t.onBand&&!n&&r){var o,a=t.getExtent();if(1===r)e[0].coord=a[0],o=e[1]={coord:a[0]};else{var s=(e[r-1].coord-e[0].coord)/(e[r-1].tickValue-e[0].tickValue);q(e,function(t){t.coord-=s/2});var l=t.scale.getExtent();e.push(o={coord:e[r-1].coord+s*(1+l[1]-e[r-1].tickValue)})}var u=a[0]>a[1];c(e[0].coord,a[0])&&(i?e[0].coord=a[0]:e.shift()),i&&c(a[0],e[0].coord)&&e.unshift({coord:a[0]}),c(a[1],o.coord)&&(i?o.coord=a[1]:e.pop()),i&&c(o.coord,a[1])&&e.push({coord:a[1]})}function c(t,e){return t=fr(t),e=fr(e),u?t>e:t0&&t<100||(t=5),X(this.scale.getMinorTicks(t),function(t){return X(t,function(t){return{coord:this.dataToCoord(t),tickValue:t}},this)},this)},t.prototype.getViewLabels=function(){return(t=this,"category"===t.type?function(t){var e=t.getLabelModel(),n=zx(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=Cx(t);return{labels:X(e,function(e,i){return{formattedLabel:n(e,i),rawLabel:t.scale.getLabel(e),tickValue:e.value}})}}(t)).labels;var t},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},t.prototype.calculateCategoryInterval=function(){return function(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),n=Cx(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(i)),h=Math.abs(u*Math.sin(i)),d=0,f=0;l<=o[1];l+=s){var p,g=Ni(n({value:l}),e.font,"center","top");p=1.3*g.height,d=Math.max(d,1.3*g.width,7),f=Math.max(f,p,7)}var m=d/c,v=f/h;isNaN(m)&&(m=1/0),isNaN(v)&&(v=1/0);var y=Math.max(0,Math.floor(Math.min(m,v))),_=Fx(t.model),b=t.getExtent(),x=_.lastAutoInterval,w=_.lastTickCount;return null!=x&&null!=w&&Math.abs(x-y)<=1&&Math.abs(w-a)<=1&&x>y&&_.axisExtent0===b[0]&&_.axisExtent1===b[1]?y=x:(_.lastTickCount=a,_.lastAutoInterval=y,_.axisExtent0=b[0],_.axisExtent1=b[1]),y}(this)},t}();function qx(t){var e=md.extend(t);return md.registerClass(e),e}function Xx(t){var e=qp.extend(t);return qp.registerClass(e),e}function Zx(t){var e=Wp.extend(t);return Wp.registerClass(e),e}function Kx(t){var e=ig.extend(t);return ig.registerClass(e),e}function $x(){return!1}function Qx(t,e,n){var i=j(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}var Jx=function(t){function e(e,n,i){var r,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||ei,"string"==typeof e?r=Qx(e,n,i):at(e)&&(e=(r=e).id),o.id=e,o.dom=r;var a=r.style;return a&&(r.onselectstart=$x,a.webkitUserSelect="none",a.userSelect="none",a.webkitTapHighlightColor="rgba(0,0,0,0)",a["-webkit-touch-callout"]="none",a.padding="0",a.margin="0",a.borderWidth="0"),o.domBack=null,o.ctxBack=null,o.painter=n,o.config=null,o.dpr=i,o}return Dt(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=Qx("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new Di(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length)(e=new Di(0,0,0,0)).copy(t),o.push(e);else{for(var e,n=!1,i=1/0,r=0,u=0;u=a)}}for(var c=this.__startIndex;c15)break}n.prevElClipPaths&&d.restore()};if(f)if(0===f.length)s=c.__endIndex;else for(var b=h.dpr,x=0;x0&&t>i[0]){for(s=0;st);s++);a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}else N("Layer of zlevel "+t+" is not valid")},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i0?nw:0),this._needsManuallyCompositing),u.__builtin__||N("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==r&&(u.__dirty=!0),u.__startIndex=r,u.__drawIndex=u.incremental?-1:r,e(r),o=u),1&s.__dirty&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=r))}e(r),this.eachBuiltinLayer(function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,q(this._layers,function(t){t.setUnpainted()})},t.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?z(n[t],e,!0):n[t]=e;for(var i=0;i-1e-4}function _w(t,e){e&&bw(t,"transform","matrix("+mw(e[0])+","+mw(e[1])+","+mw(e[2])+","+mw(e[3])+","+vw(e[4])+","+vw(e[5])+")")}function bw(t,e,n){(!n||"linear"!==n.type&&"radial"!==n.type)&&t.setAttribute(e,n)}function xw(t,e,n){var i=null==e.opacity?1:e.opacity;if(n instanceof _s)t.style.opacity=i+"";else{if(function(t){var e=t.fill;return null!=e&&e!==uw}(e)){var r=e.fill;bw(t,"fill",r="transparent"===r?uw:r),bw(t,"fill-opacity",(null!=e.fillOpacity?e.fillOpacity*i:i)+"")}else bw(t,"fill",uw);if(function(t){var e=t.stroke;return null!=e&&e!==uw}(e)){var o=e.stroke;bw(t,"stroke",o="transparent"===o?uw:o);var a=e.lineWidth,s=e.strokeNoScale?n.getLineScale():1;bw(t,"stroke-width",(s?a/s:0)+""),bw(t,"paint-order",e.strokeFirst?"stroke":"fill"),bw(t,"stroke-opacity",(null!=e.strokeOpacity?e.strokeOpacity*i:i)+"");var l=e.lineDash&&a>0&&Wm(e.lineDash,a);if(l){var u=e.lineDashOffset;s&&1!==s&&(l=X(l,function(t){return t/s}),u&&(u=cw(u/=s))),bw(t,"stroke-dasharray",l.join(",")),bw(t,"stroke-dashoffset",(u||0)+"")}else bw(t,"stroke-dasharray","");e.lineCap&&bw(t,"stroke-linecap",e.lineCap),e.lineJoin&&bw(t,"stroke-linejoin",e.lineJoin),e.miterLimit&&bw(t,"stroke-miterlimit",e.miterLimit+"")}else bw(t,"stroke",uw)}}var ww=function(){function t(){}return t.prototype.reset=function(){this._d=[],this._str=""},t.prototype.moveTo=function(t,e){this._add("M",t,e)},t.prototype.lineTo=function(t,e){this._add("L",t,e)},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){this._add("C",t,e,n,i,r,o)},t.prototype.quadraticCurveTo=function(t,e,n,i){this._add("Q",t,e,n,i)},t.prototype.arc=function(t,e,n,i,r,o){this.ellipse(t,e,n,n,0,i,r,o)},t.prototype.ellipse=function(t,e,n,i,r,o,a,s){var l=0===this._d.length,u=a-o,c=!s,h=Math.abs(u),d=yw(h-pw)||(c?u>=pw:-u>=pw),f=u>0?u%pw:u%pw+pw,p=!1;p=!!d||!yw(h)&&f>=fw==!!c;var g=vw(t+n*dw(o)),m=vw(e+i*hw(o));d&&(u=c?pw-1e-4:1e-4-pw,p=!0,l&&this._d.push("M",g,m));var v=vw(t+n*dw(o+u)),y=vw(e+i*hw(o+u));if(isNaN(g)||isNaN(m)||isNaN(n)||isNaN(i)||isNaN(r)||isNaN(gw)||isNaN(v)||isNaN(y))return"";this._d.push("A",vw(n),vw(i),cw(r*gw),+p,+c,v,y)},t.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("L",t+n,e),this._add("L",t+n,e+i),this._add("L",t,e+i),this._add("L",t,e)},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,i,r,o,a,s,l){this._d.push(t);for(var u=1;u=0;--n)if(e[n]===t)return!0;return!1}),i}return null}return n[0]},t.prototype.doUpdate=function(t,e){if(t){var n=this.getDefs(!1);if(t[this._domName]&&n.contains(t[this._domName]))"function"==typeof e&&e(t);else{var i=this.add(t);i&&(t[this._domName]=i)}}},t.prototype.add=function(t){return null},t.prototype.addDom=function(t){var e=this.getDefs(!0);t.parentNode!==e&&e.appendChild(t)},t.prototype.removeDom=function(t){var e=this.getDefs(!1);e&&t[this._domName]&&(e.removeChild(t[this._domName]),t[this._domName]=null)},t.prototype.getDoms=function(){var t=this.getDefs(!1);if(!t)return[];var e=[];return q(this._tagNames,function(n){for(var i=t.getElementsByTagName(n),r=0;r-1){var s=un(a)[3],l=dn(a);o.setAttribute("stop-color","#"+l),o.setAttribute("stop-opacity",s+"")}else o.setAttribute("stop-color",n[i].color);e.appendChild(o)}t.__dom=e},e.prototype.markUsed=function(e){if(e.style){var n=e.style.fill;n&&n.__dom&&t.prototype.markDomUsed.call(this,n.__dom),(n=e.style.stroke)&&n.__dom&&t.prototype.markDomUsed.call(this,n.__dom)}},e}(Aw);function Pw(t){return t&&(!!t.image||!!t.svgElement)}var Ew=new Em,Rw=function(t){function e(e,n){return t.call(this,e,n,["pattern"],"__pattern_in_use__")||this}return Dt(e,t),e.prototype.addWithoutUpdate=function(t,e){if(e&&e.style){var n=this;q(["fill","stroke"],function(i){var r=e.style[i];if(Pw(r)){var o=n.getDefs(!0),a=Ew.get(r);a?o.contains(a)||n.addDom(a):a=n.add(r),n.markUsed(e);var s=a.getAttribute("id");t.setAttribute(i,"url(#"+s+")")}})}},e.prototype.add=function(t){if(Pw(t)){var e=this.createElement("pattern");return t.id=null==t.id?this.nextId++:t.id,e.setAttribute("id","zr"+this._zrId+"-pattern-"+t.id),e.setAttribute("x","0"),e.setAttribute("y","0"),e.setAttribute("patternUnits","userSpaceOnUse"),this.updateDom(t,e),this.addDom(e),e}},e.prototype.update=function(t){if(Pw(t)){var e=this;this.doUpdate(t,function(){var n=Ew.get(t);e.updateDom(t,n)})}},e.prototype.updateDom=function(t,e){var n=t.svgElement;if(n instanceof SVGElement)n.parentNode!==e&&(e.innerHTML="",e.appendChild(n),e.setAttribute("width",t.svgWidth+""),e.setAttribute("height",t.svgHeight+""));else{var i=void 0,r=e.getElementsByTagName("image");if(r.length){if(!t.image)return void e.removeChild(r[0]);i=r[0]}else t.image&&(i=this.createElement("image"));if(i){var o=void 0,a=t.image;if("string"==typeof a?o=a:a instanceof HTMLImageElement?o=a.src:a instanceof HTMLCanvasElement&&(o=a.toDataURL()),o){i.setAttribute("href",o),i.setAttribute("x","0"),i.setAttribute("y","0");var s=_o(o,i,{dirty:function(){}},function(t){e.setAttribute("width",t.width+""),e.setAttribute("height",t.height+"")});s&&s.width&&s.height&&(e.setAttribute("width",s.width+""),e.setAttribute("height",s.height+"")),e.appendChild(i)}}}var l=(t.rotation||0)/Math.PI*180;e.setAttribute("patternTransform","translate("+(t.x||0)+", "+(t.y||0)+") rotate("+l+") scale("+(t.scaleX||1)+", "+(t.scaleY||1)+")"),Ew.set(t,e)},e.prototype.markUsed=function(e){e.style&&(Pw(e.style.fill)&&t.prototype.markDomUsed.call(this,Ew.get(e.style.fill)),Pw(e.style.stroke)&&t.prototype.markDomUsed.call(this,Ew.get(e.style.stroke)))},e}(Aw);function Lw(t){var e=t.__clipPaths;return e&&e.length>0}var Nw=function(t){function e(e,n){var i=t.call(this,e,n,"clipPath","__clippath_in_use__")||this;return i._refGroups={},i._keyDuplicateCount={},i}return Dt(e,t),e.prototype.markAllUnused=function(){for(var e in t.prototype.markAllUnused.call(this),this._refGroups)this.markDomUnused(this._refGroups[e]);this._keyDuplicateCount={}},e.prototype._getClipPathGroup=function(t,e){if(Lw(t)){var n=t.__clipPaths,i=this._keyDuplicateCount,r=function(t){var e=[];if(t)for(var n=0;n0){var n=this.getDefs(!0),i=e[0],r=void 0,o=void 0;i._dom?(o=i._dom.getAttribute("id"),n.contains(r=i._dom)||n.appendChild(r)):(o="zr"+this._zrId+"-clip-"+this.nextId,++this.nextId,(r=this.createElement("clipPath")).setAttribute("id",o),n.appendChild(r),i._dom=r),this.getSvgProxy(i).brush(i);var a=this.getSvgElement(i);r.innerHTML="",r.appendChild(a),t.setAttribute("clip-path","url(#"+o+")"),e.length>1&&this.updateDom(r,e.slice(1))}else t&&t.setAttribute("clip-path","none")},e.prototype.markUsed=function(e){var n=this;e.__clipPaths&&q(e.__clipPaths,function(e){e._dom&&t.prototype.markDomUsed.call(n,e._dom)})},e.prototype.removeUnused=function(){t.prototype.removeUnused.call(this);var e={};for(var n in this._refGroups){var i=this._refGroups[n];this.isDomUnused(i)?i.parentNode&&i.parentNode.removeChild(i):e[n]=i}this._refGroups=e},e}(Aw),Fw=function(t){function e(e,n){var i=t.call(this,e,n,["filter"],"__filter_in_use__","_shadowDom")||this;return i._shadowDomMap={},i._shadowDomPool=[],i}return Dt(e,t),e.prototype._getFromPool=function(){var t=this._shadowDomPool.pop();if(!t){(t=this.createElement("filter")).setAttribute("id","zr"+this._zrId+"-shadow-"+this.nextId++);var e=this.createElement("feDropShadow");t.appendChild(e),this.addDom(t)}return t},e.prototype.update=function(t,e){if((r=e.style)&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)){var n=function(t){var e=t.style,n=t.getGlobalScale();return[e.shadowColor,(e.shadowBlur||0).toFixed(2),(e.shadowOffsetX||0).toFixed(2),(e.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}(e),i=e._shadowDom=this._shadowDomMap[n];i||(i=this._getFromPool(),this._shadowDomMap[n]=i),this.updateDom(t,e,i)}else this.remove(t,e);var r},e.prototype.remove=function(t,e){null!=e._shadowDom&&(e._shadowDom=null,t.style.filter="")},e.prototype.updateDom=function(t,e,n){var i=n.children[0],r=e.style,o=e.getGlobalScale(),a=o[0],s=o[1];if(a&&s){var l=r.shadowOffsetY||0,u=r.shadowBlur,c=r.shadowColor;i.setAttribute("dx",(r.shadowOffsetX||0)/a+""),i.setAttribute("dy",l/s+""),i.setAttribute("flood-color",c),i.setAttribute("stdDeviation",u/2/a+" "+u/2/s),n.setAttribute("x","-100%"),n.setAttribute("y","-100%"),n.setAttribute("width","300%"),n.setAttribute("height","300%"),e._shadowDom=n;var h=n.getAttribute("id");t.style.filter="url(#"+h+")"}},e.prototype.removeUnused=function(){if(this.getDefs(!1)){var t=this._shadowDomPool;for(var e in this._shadowDomMap)t.push(this._shadowDomMap[e]);this._shadowDomMap={}}},e}(Aw);function zw(t){return parseInt(t,10)}function Vw(t){return t instanceof ds?kw:t instanceof _s?Cw:t instanceof gs?Mw:kw}function Bw(t,e){return e&&t&&e.parentNode!==t}function Hw(t,e,n){if(Bw(t,e)&&n){var i=n.nextSibling;i?t.insertBefore(e,i):t.appendChild(e)}}function jw(t,e){if(Bw(t,e)){var n=t.firstChild;n?t.insertBefore(e,n):t.appendChild(e)}}function Gw(t,e){e&&t&&e.parentNode===t&&t.removeChild(e)}function Uw(t){return t.__svgEl}function Ww(t){return function(){N('In SVG mode painter not support method "'+t+'"')}}var Yw=function(){function t(t,e,n,i){this.type="svg",this.refreshHover=Ww("refreshHover"),this.pathToImage=Ww("pathToImage"),this.configLayer=Ww("configLayer"),this.root=t,this.storage=e,this._opts=n=B({},n||{});var r=ow("svg");r.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),r.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),r.setAttribute("version","1.1"),r.setAttribute("baseProfile","full"),r.style.cssText="user-select:none;position:absolute;left:0;top:0;";var o=ow("g");r.appendChild(o);var a=ow("g");r.appendChild(a),this._gradientManager=new Dw(i,a),this._patternManager=new Rw(i,a),this._clipPathManager=new Nw(i,a),this._shadowManager=new Fw(i,a);var s=document.createElement("div");s.style.cssText="overflow:hidden;position:relative",this._svgDom=r,this._svgRoot=a,this._backgroundRoot=o,this._viewport=s,t.appendChild(s),s.appendChild(r),this.resize(n.width,n.height),this._visibleList=[]}return t.prototype.getType=function(){return"svg"},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.getSvgRoot=function(){return this._svgRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(){var t=this.storage.getDisplayList(!0);this._paintList(t)},t.prototype.setBackgroundColor=function(t){this._backgroundRoot&&this._backgroundNode&&this._backgroundRoot.removeChild(this._backgroundNode);var e=ow("rect");e.setAttribute("width",this.getWidth()),e.setAttribute("height",this.getHeight()),e.setAttribute("x",0),e.setAttribute("y",0),e.setAttribute("id",0),e.style.fill=t,this._backgroundRoot.appendChild(e),this._backgroundNode=e},t.prototype.createSVGElement=function(t){return ow(t)},t.prototype.paintOne=function(t){var e=Vw(t);return e&&e.brush(t),Uw(t)},t.prototype._paintList=function(t){var e=this._gradientManager,n=this._patternManager,i=this._clipPathManager,r=this._shadowManager;e.markAllUnused(),n.markAllUnused(),i.markAllUnused(),r.markAllUnused();for(var o=this._svgRoot,a=this._visibleList,s=t.length,l=[],u=0;u=i&&l+1>=r){for(var u=[],c=0;c=i&&h+1>=r)return lw(l.components);s[a]=l}else s[a]=void 0}var p;o++}for(;o<=a;){var d=h();if(d)return d}}(a,l,undefined);for(u=0;u\n\r<"))},t}(),qw=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return m(e,t),e.prototype.getInitialData=function(t){return bb(this.getSource(),this,{useEncodeDefaulter:!0})},e.prototype.getLegendIcon=function(t){var e=new tr,n=jm("line",0,t.itemHeight/2,t.itemWidth,0,t.lineStyle.stroke,!1);e.add(n),n.setStyle(t.lineStyle);var i=this.getData().getVisual("symbol"),r=this.getData().getVisual("symbolRotate"),o="none"===i?"circle":i,a=.8*t.itemHeight,s=jm(o,(t.itemWidth-a)/2,(t.itemHeight-a)/2,a,a,t.itemStyle.fill);return e.add(s),s.setStyle(t.itemStyle),s.rotation=("inherit"===t.iconRotate?r:t.iconRotate||0)*Math.PI/180,s.setOrigin([t.itemWidth/2,t.itemHeight/2]),o.indexOf("empty")>-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={zlevel:0,z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0,lineStyle:{width:"bolder"}},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0},e}(Wp);function Xw(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=qf(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a0?n=i[0]:i[1]<0&&(n=i[1]),n}(r,n),a=i.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,h=X(t.dimensions,function(t){return e.mapDimension(t)}),d=!1,f=e.getCalculationInfo("stackResultDimension");return yb(e,h[0])&&(d=!0,h[0]=f),yb(e,h[1])&&(d=!0,h[1]=f),{dataDimsForPoint:h,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function ik(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var rk="undefined"!=typeof Float32Array,ok=rk?Float32Array:Array;function ak(t){return et(t)?rk?new Float32Array(t):t:new ok(t)}var sk=Math.min,lk=Math.max;function uk(t,e){return isNaN(t)||isNaN(e)}function ck(t,e,n,i,r,o,a,s,l){for(var u,c,h,d,f,p,g=n,m=0;m=r||g<0)break;if(uk(v,y)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](v,y),h=v,d=y;else{var _=v-u,b=y-c;if(_*_+b*b<.5){g+=o;continue}if(a>0){var x=g+o,w=e[2*x],k=e[2*x+1],C=m+1;if(l)for(;uk(w,k)&&C=i||uk(w,k))f=v,p=y;else{M=w-u,A=k-c;var T=v-u,D=w-v,P=y-c,E=k-y,R=void 0,L=void 0;"x"===s?(R=Math.abs(T),L=Math.abs(D),f=v-R*a,p=y,I=v+R*a,O=y):"y"===s?(R=Math.abs(P),L=Math.abs(E),f=v,p=y-R*a,I=v,O=y+R*a):(R=Math.sqrt(T*T+P*P),f=v-M*a*(1-(S=(L=Math.sqrt(D*D+E*E))/(L+R))),p=y-A*a*(1-S),O=y+A*a*S,I=sk(I=v+M*a*S,lk(w,v)),O=sk(O,lk(k,y)),I=lk(I,sk(w,v)),p=y-(A=(O=lk(O,sk(k,y)))-y)*R/L,f=sk(f=v-(M=I-v)*R/L,lk(u,v)),p=sk(p,lk(c,y)),I=v+(M=v-(f=lk(f,sk(u,v))))*L/R,O=y+(A=y-(p=lk(p,sk(c,y))))*L/R)}t.bezierCurveTo(h,d,f,p,v,y),h=I,d=O}else t.lineTo(v,y)}u=v,c=y,g+=o}return m}var hk=function(){this.smooth=0,this.smoothConstraint=!0},dk=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return m(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new hk},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&uk(n[2*r-2],n[2*r-1]);r--);for(;i=0){var m=a?(c-i)*g+i:(u-n)*g+n;return a?[t,m]:[m,t]}n=u,i=c;break;case o.C:u=r[l++],c=r[l++],h=r[l++],d=r[l++],f=r[l++],p=r[l++];var v=a?ea(n,u,h,f,t,s):ea(i,c,d,p,t,s);if(v>0)for(var y=0;y=0)return m=a?Jo(i,c,d,p,_):Jo(n,u,h,f,_),a?[t,m]:[m,t]}n=f,i=p}}},e}(ds),fk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e}(hk),pk=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return m(e,t),e.prototype.getDefaultShape=function(){return new fk},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&uk(n[2*o-2],n[2*o-1]);o--);for(;ri)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return q(o.getViewLabels(),function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1}),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}(t,a,r),k=this._data;k&&k.eachItemGraphicEl(function(t,e){t.__temp&&(o.remove(t),k.setItemGraphicEl(e,null))}),x||d.remove(),o.add(g);var C,S=!c&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(null!=(C=r.getArea()).width?(C.x-=.1,C.y-=.1,C.width+=.2,C.height+=.2):C.r0&&(C.r0-=.5,C.r+=.5)),this._clipShapeForSymbol=C;var M=function(t,e){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()&&"cartesian2d"===e.type){for(var i,r,o=n.length-1;o>=0;o--){var a=t.getDimensionInfo(t.dimensions[n[o].dimension]);if("x"===(i=a&&a.coordDim)||"y"===i){r=n[o];break}}if(r){var s=e.getAxis(i),l=X(r.stops,function(t){return{offset:0,coord:s.toGlobalCoord(s.dataToCoord(t.value,!0)),color:t.color}}),u=l.length,c=r.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),c.reverse());var h=l[0].coord-10,d=l[u-1].coord+10,f=d-h;if(f<.001)return"transparent";q(l,function(t){t.offset=(t.coord-h)/f}),l.push({offset:u?l[u-1].offset:.5,color:c[1]||"transparent"}),l.unshift({offset:u?l[0].offset:.5,color:c[0]||"transparent"});var p=new Wu(0,0,0,0,l,!0);return p[i]=h,p[i+"2"]=d,p}}}(a,r)||a.getVisual("style")[a.getVisual("drawType")];f&&h.type===r.type&&S===this._step?(v&&!p?p=this._newPolygon(u,b):p&&!v&&(g.remove(p),p=this._polygon=null),c||this._initOrUpdateEndLabel(t,r,ed(M)),g.setClipPath(Sk(this,r,!1,t)),x&&d.updateData(a,{isIgnore:w,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),_k(this._stackedOnPoints,b)&&_k(this._points,u)||(m?this._doUpdateAnimation(a,b,r,n,S,y):(S&&(u=kk(u,r,S),b&&(b=kk(b,r,S))),f.setShape({points:u}),p&&p.setShape({points:u,stackedOnPoints:b})))):(x&&d.updateData(a,{isIgnore:w,clipShape:C,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),m&&this._initSymbolLabelAnimation(a,r,C),S&&(u=kk(u,r,S),b&&(b=kk(b,r,S))),f=this._newPolyline(u),v&&(p=this._newPolygon(u,b)),c||this._initOrUpdateEndLabel(t,r,ed(M)),g.setClipPath(Sk(this,r,!0,t)));var A=t.get(["emphasis","focus"]),I=t.get(["emphasis","blurScope"]);f.useStyle(H(s.getLineStyle(),{fill:"none",stroke:M,lineJoin:"bevel"})),Tl(f,t,"lineStyle"),f.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(f.getState("emphasis").style.lineWidth=+f.style.lineWidth+1),Vs(f).seriesIndex=t.seriesIndex,Ml(f,A,I);var O=wk(t.get("smooth")),T=t.get("smoothMonotone"),D=t.get("connectNulls");if(f.setShape({smooth:O,smoothMonotone:T,connectNulls:D}),p){var P=a.getCalculationInfo("stackedOnSeries"),E=0;p.useStyle(H(l.getAreaStyle(),{fill:M,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),P&&(E=wk(P.get("smooth"))),p.setShape({smooth:O,stackedOnSmooth:E,smoothMonotone:T,connectNulls:D}),Tl(p,t,"areaStyle"),Vs(p).seriesIndex=t.seriesIndex,Ml(p,A,I)}var R=function(t){i._changePolyState(t)};a.eachItemGraphicEl(function(t){t&&(t.onHoverStateChange=R)}),this._polyline.onHoverStateChange=R,this._data=a,this._coordSys=r,this._stackedOnPoints=b,this._points=u,this._step=S,this._valueOrigin=y},e.prototype.dispose=function(){},e.prototype.highlight=function(t,e,n,i){var r=t.getData(),o=Yr(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel"),h=t.get("z");(s=new $w(r,o)).x=l,s.y=u,s.setZ(c,h);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=h,d.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else ig.prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=Yr(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else ig.prototype.downplay.call(this,t,e,n,i)},e.prototype._changePolyState=function(t){var e=this._polygon;ll(this._polyline,t),e&&ll(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new dk({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new pk({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");"function"==typeof l&&(l=l(null));var u=s.get("animationDelay")||0,c="function"==typeof u?u(null):u;t.eachItemGraphicEl(function(t,o){var s=t;if(s){var h=void 0,d=void 0,f=void 0;if(n)if(r){var p=n,g=e.pointToCoord([t.x,t.y]);i?(h=p.startAngle,d=p.endAngle,f=-g[1]/180*Math.PI):(h=p.r0,d=p.r,f=g[0])}else i?(h=n.x,d=n.x+n.width,f=t.x):(h=n.y+n.height,d=n.y,f=t.y);var m=d===h?0:(f-h)/(d-h);a&&(m=1-m);var v="function"==typeof u?u(o):l*m+c,y=s.getSymbolPath(),_=y.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,delay:v}),_&&_.animateFrom({style:{opacity:0}},{duration:300,delay:v}),y.disableLabelAnimation=!0}})},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(i.get("show")){var r=t.getData(),o=this._polyline,a=this._endLabel;a||((a=this._endLabel=new zs({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var s=function(t){for(var e,n=t.length/2;n>0&&(e=t[2*n-1],isNaN(t[2*n-2])||isNaN(e));n--);return n-1}(r.getLayout("points"));s>=0&&(Fc(o,zc(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:s,defaultText:function(t,e,n){return null!=n?Zw(r,n):Xw(r,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),c=n.hostModel,h=c.get("connectNulls"),d=o.get("precision"),f=o.get("distance")||0,p=a.getBaseAxis(),g=p.isHorizontal(),m=p.inverse,v=e.shape,y=m?g?v.x:v.y+v.height:g?v.x+v.width:v.y,_=(g?f:0)*(m?-1:1),b=(g?0:-f)*(m?-1:1),x=g?"x":"y",w=function(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u=e||i>=e&&r<=e){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}(u,y,x),k=w.range,C=k[1]-k[0],S=void 0;if(C>=1){if(C>1&&!h){var M=Ck(u,k[0]);s.attr({x:M[0]+_,y:M[1]+b}),r&&(S=c.getRawValue(k[0]))}else{(M=l.getPointOn(y,x))&&s.attr({x:M[0]+_,y:M[1]+b});var A=c.getRawValue(k[0]),I=c.getRawValue(k[1]);r&&(S=no(n,d,A,I,w.t))}i.lastFrameIndex=k[0]}else{var O=1===t||i.lastFrameIndex>0?k[0]:0;M=Ck(u,O),r&&(S=c.getRawValue(O)),s.attr({x:M[0]+_,y:M[1]+b})}r&&Yc(s).setLabelText(S)}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,o){var a=this._polyline,s=this._polygon,l=t.hostModel,u=function(t,e,n,i,r,o,a,s){for(var l=function(t,e){var n=[];return e.diff(t).add(function(t){n.push({cmd:"+",idx:t})}).update(function(t,e){n.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){n.push({cmd:"-",idx:t})}).execute(),n}(t,e),u=[],c=[],h=[],d=[],f=[],p=[],g=[],m=nk(r,e,a),v=t.getLayout("points")||[],y=e.getLayout("points")||[],_=0;_3e3||s&&xk(h,f)>3e3)return a.setShape({points:d}),void(s&&s.setShape({points:d,stackedOnPoints:f}));a.shape.__points=u.current,a.shape.points=c;var p={shape:{points:d}};u.current!==c&&(p.shape.__points=u.next),a.stopAnimation(),mc(a,p,l),s&&(s.setShape({points:c,stackedOnPoints:h}),s.stopAnimation(),mc(s,{shape:{stackedOnPoints:f}},l),a.shape.points!==s.shape.points&&(s.shape.points=a.shape.points));for(var g=[],m=u.status,v=0;ve&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),c=n.getDevicePixelRatio(),h=Math.abs(u[1]-u[0])*(c||1),d=Math.round(a/h);if(d>1){"lttb"===r&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/d));var f=void 0;"string"==typeof r?f=Ik[r]:"function"==typeof r&&(f=r),f&&t.setData(i.downSample(i.mapDimension(l.dim),1/d,f,Ok))}}}}}var Dk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.getInitialData=function(t,e){return bb(this.getSource(),this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t){var e=this.coordinateSystem;if(e){var n=e.dataToPoint(e.clampData(t)),i=this.getData(),r=i.getLayout("offset"),o=i.getLayout("size");return n[e.getBaseAxis().isHorizontal()?0:1]+=r+o/2,n}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(Wp);Wp.registerClass(Dk);var Pk=Dk,Ek=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.getInitialData=function(){return bb(this.getSource(),this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=ch(Pk.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(Pk),Rk=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Lk=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return m(e,t),e.prototype.getDefaultShape=function(){return new Rk},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,h=Math.cos(l),d=Math.sin(l),f=Math.cos(u),p=Math.sin(u);(c?u-l<2*Math.PI:l-u<2*Math.PI)&&(t.moveTo(h*r+n,d*r+i),t.arc(h*s+n,d*s+i,a,-Math.PI+l,l,!c)),t.arc(n,i,o,l,u,!c),t.moveTo(f*o+n,p*o+i),t.arc(f*s+n,p*s+i,a,u-2*Math.PI,u-Math.PI,!c),0!==r&&(t.arc(n,i,r,u,l,c),t.moveTo(h*r+n,p*r+i)),t.closePath()},e}(ds),Nk=[0,0],Fk=Math.max,zk=Math.min,Vk=function(t){function e(){var n=t.call(this)||this;return n.type=e.type,n._isFirstFrame=!0,n}return m(e,t),e.prototype.render=function(t,e,n,i){this._model=t,this._removeOnRenderedListener(n),this._updateDrawMode(t);var r=t.get("coordinateSystem");("cartesian2d"===r||"polar"===r)&&(this._isLargeDraw?this._renderLarge(t,e,n):this._renderNormal(t,e,n,i))},e.prototype.incrementalPrepareRender=function(t){this._clear(),this._updateDrawMode(t),this._updateLargeClip(t)},e.prototype.incrementalRender=function(t,e){this._incrementalRenderLarge(t,e)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t,e,n,i){var r,o=this.group,a=t.getData(),s=this._data,l=t.coordinateSystem,u=l.getBaseAxis();"cartesian2d"===l.type?r=u.isHorizontal():"polar"===l.type&&(r="angle"===u.dim);var c=t.isAnimationEnabled()?t:null,h=function(t,e){var n=t.get("realtimeSort",!0),i=e.getBaseAxis();if(n&&"category"===i.type&&"cartesian2d"===e.type)return{baseAxis:i,otherAxis:e.getOtherAxis(i)}}(t,l);h&&this._enableRealtimeSort(h,a,n);var d=t.get("clip",!0)||h,f=function(t,e){var n=t.getArea&&t.getArea();if(yk(t,"cartesian2d")){var i=t.getBaseAxis();if("category"!==i.type||!i.onBand){var r=e.getLayout("bandWidth");i.isHorizontal()?(n.x-=r,n.width+=2*r):(n.y-=r,n.height+=2*r)}}return n}(l,a);o.removeClipPath();var p=t.get("roundCap",!0),g=t.get("showBackground",!0),m=t.getModel("backgroundStyle"),v=m.get("borderRadius")||0,y=[],_=this._backgroundEls,b=i&&i.isInitSort,x=i&&"changeAxisOrder"===i.type;function w(t){var e=Gk[l.type](a,t),n=function(t,e,n){return new("polar"===t.type?_u:As)({shape:Zk(e,n,t),silent:!0,z2:0})}(l,r,e);return n.useStyle(m.getItemStyle()),"cartesian2d"===l.type&&n.setShape("r",v),y[t]=n,n}a.diff(s).add(function(e){var n=a.getItemModel(e),i=Gk[l.type](a,e,n);if(g&&w(e),a.hasValue(e)){var s=!1;d&&(s=Bk[l.type](f,i));var m=Hk[l.type](t,a,e,i,r,c,u.model,!1,p);Uk(m,a,e,n,i,t,r,"polar"===l.type),b?m.attr({shape:i}):h?jk(h,c,m,i,e,r,!1,!1):vc(m,{shape:i},t,e),a.setItemGraphicEl(e,m),o.add(m),m.ignore=s}}).update(function(e,n){var i=a.getItemModel(e),k=Gk[l.type](a,e,i);if(g){var C=void 0;0===_.length?C=w(n):((C=_[n]).useStyle(m.getItemStyle()),"cartesian2d"===l.type&&C.setShape("r",v),y[e]=C);var S=Gk[l.type](a,e);mc(C,{shape:Zk(r,S,l)},c,e)}var M=s.getItemGraphicEl(n);if(!a.hasValue(e))return o.remove(M),void(M=null);var A=!1;d&&(A=Bk[l.type](f,k))&&o.remove(M),M||(M=Hk[l.type](t,a,e,k,r,c,u.model,!!M,p)),x||Uk(M,a,e,i,k,t,r,"polar"===l.type),b?M.attr({shape:k}):h?jk(h,c,M,k,e,r,!0,x):mc(M,{shape:k},t,e,null),a.setItemGraphicEl(e,M),M.ignore=A,o.add(M)}).remove(function(e){var n=s.getItemGraphicEl(e);n&&bc(n,t,e)}).execute();var k=this._backgroundGroup||(this._backgroundGroup=new tr);k.removeAll();for(var C=0;Co)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)});n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r,animation:{duration:0}})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl(function(e){bc(e,t,Vs(e).dataIndex)})):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(ig),Bk={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=Fk(e.x,t.x),s=zk(e.x+e.width,r),l=Fk(e.y,t.y),u=zk(e.y+e.height,o),c=sr?s:a,e.y=h&&l>o?u:l,e.width=c?0:s-a,e.height=h?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),c||h},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var r=zk(e.r,t.r),o=Fk(e.r0,t.r0);e.r=r,e.r0=o;var a=r-o<0;return n<0&&(i=e.r,e.r=e.r0,e.r0=i),a}},Hk={cartesian2d:function(t,e,n,i,r,o,a,s,l){var u=new As({shape:B({},i),z2:1});return u.__dataIndex=n,u.name="item",o&&(u.shape[r?"height":"width"]=0),u},polar:function(t,e,n,i,r,o,a,s,l){var u=new(!r&&l?Lk:_u)({shape:H({clockwise:i.startAngle0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle}}};function Uk(t,e,n,i,r,o,a,s){var l=e.getItemVisual(n,"style");s||t.setShape("r",i.get(["itemStyle","borderRadius"])||0),t.useStyle(l);var u=i.getShallow("cursor");if(u&&t.attr("cursor",u),!s){var c=a?r.height>0?"bottom":"top":r.width>0?"left":"right",h=zc(i);Fc(t,h,{labelFetcher:o,labelDataIndex:n,defaultText:Xw(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c}),qc(t.getTextContent(),h,o.getRawValue(n),function(t){return Zw(e,t)})}var d=i.getModel(["emphasis"]);Ml(t,d.get("focus"),d.get("blurScope")),Tl(t,i),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(r)&&(t.style.fill="none",t.style.stroke="none",q(t.states,function(t){t.style&&(t.style.fill=t.style.stroke="none")}))}var Wk=function(){},Yk=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return m(e,t),e.prototype.getDefaultShape=function(){return new Wk},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.__startPoint,r=this.__baseDimIdx,o=0;o=h&&m<=d&&(l<=v?c>=l&&c<=v:c>=v&&c<=l))return a[f]}return-1}(this,t.offsetX,t.offsetY);Vs(this).dataIndex=e>=0?e:null},30,!1);function Zk(t,e,n){if(yk(n,"cartesian2d")){var i=e,r=n.getArea();return{x:t?i.x:r.x,y:t?r.y:i.y,width:t?i.width:r.width,height:t?r.height:i.height}}return{cx:(r=n.getArea()).cx,cy:r.cy,r0:t?r.r0:e.r0,r:t?r.r:e.r,startAngle:t?e.startAngle:0,endAngle:t?e.endAngle:2*Math.PI}}var Kk=Vk,$k=2*Math.PI,Qk=Math.PI/180;function Jk(t,e,n){e.eachSeriesByType(t,function(t){var e=t.getData(),i=e.mapDimension("value"),r=function(t,e){return ld(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,n),o=t.get("center"),a=t.get("radius");et(a)||(a=[0,a]),et(o)||(o=[o,o]);var s=dr(r.width,n.getWidth()),l=dr(r.height,n.getHeight()),u=Math.min(s,l),c=dr(o[0],s)+r.x,h=dr(o[1],l)+r.y,d=dr(a[0],u/2),f=dr(a[1],u/2),p=-t.get("startAngle")*Qk,g=t.get("minAngle")*Qk,m=0;e.each(i,function(t){!isNaN(t)&&m++});var v=e.getSum(i),y=Math.PI/(v||m)*2,_=t.get("clockwise"),b=t.get("roseType"),x=t.get("stillShowZeroSum"),w=e.getDataExtent(i);w[0]=0;var k=$k,C=0,S=p,M=_?1:-1;if(e.setLayout({viewRect:r,r:f}),e.each(i,function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:c,cy:h,r0:d,r:b?NaN:f});else{(i="area"!==b?0===v&&x?y:t*y:$k/m)n?a:o,c=Math.abs(l.label.y-n);if(c>u.maxY){var h=l.label.x-e-l.len2*r,f=i+l.len,p=Math.abs(h)0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u0?"right":"left":T>0?"left":"right"}var V=m.get("rotate");if(P="number"==typeof V?V*(Math.PI/180):V?T<0?-O+Math.PI:-O:0,o=!!P,d.x=S,d.y=M,d.rotation=P,d.setStyle({verticalAlign:"middle"}),E){d.setStyle({align:I});var B=d.states.select;B&&(B.x+=d.x,B.y+=d.y)}else{var H=d.getBoundingRect().clone();H.applyTransform(d.getComputedTransform());var j=(d.style.margin||0)+2.1;H.y-=j/2,H.height+=j,r.push({label:d,labelLine:p,position:v,len:k,len2:C,minTurnAngle:w.get("minTurnAngle"),maxSurfaceAngle:w.get("maxSurfaceAngle"),surfaceNormal:new wi(T,D),linePoints:A,textAlign:I,labelDistance:y,labelAlignTo:_,edgeDistance:b,bleedMargin:x,rect:H})}s.setTextConfig({inside:E})}}),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,i,r,o,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,h=-Number.MAX_VALUE,d=0;d=n.r0}},e.type="pie",e}(ig);function sC(t,e,n){e=et(e)&&{coordDimensions:e}||B({},e);var i=t.getSource(),r=fb(i,e),o=new hb(r,t);return o.initData(i,n),o}var lC=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}(),uC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.useColorPaletteOnData=!0,e}return m(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new lC(J(this.getData,this),J(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return sC(this,{coordDimensions:["value"],encodeDefaulter:tt(Dd,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=[];return n.each(n.mapDimension("value"),function(t){r.push(t)}),i.percent=yr(r,e,n.hostModel.get("percentPrecision")),i.$vars.push("percent"),i},e.prototype._defaultLabelLine=function(t){Fr(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={zlevel:0,z:2,legendHoverLink:!0,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(Wp),cC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return m(e,t),e.prototype.getInitialData=function(t,e){return bb(this.getSource(),this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,n){return n.point(e.getItemLayout(t))},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}}},e}(Wp),hC=function(){},dC=function(t){function e(e){return t.call(this,e)||this}return m(e,t),e.prototype.getDefaultShape=function(){return new hC},e.prototype.buildPath=function(t,e){var n=e.points,i=e.size,r=this.symbolProxy,o=r.shape,a=t.getContext?t.getContext():t;if(a&&i[0]<4)this._ctx=a;else{this._ctx=null;for(var s=0;s=0;s--){var l=2*s,u=i[l]-o/2,c=i[l+1]-a/2;if(t>=u&&e>=c&&t<=u+o&&e<=c+a)return s}return-1},e}(ds),fC=function(){function t(){this.group=new tr}return t.prototype.isPersistent=function(){return!this._incremental},t.prototype.updateData=function(t,e){this.group.removeAll();var n=new dC({rectHover:!0,cursor:"default"});n.setShape({points:t.getLayout("points")}),this._setCommon(n,t,!1,e),this.group.add(n),this._incremental=null},t.prototype.updateLayout=function(t){if(!this._incremental){var e=t.getLayout("points");this.group.eachChild(function(t){null!=t.startIndex&&(e=new Float32Array(e.buffer,4*t.startIndex*2,2*(t.endIndex-t.startIndex))),t.setShape("points",e)})}},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>2e6?(this._incremental||(this._incremental=new Ju({silent:!0})),this.group.add(this._incremental)):this._incremental=null},t.prototype.incrementalUpdate=function(t,e,n){var i;this._incremental?(i=new dC,this._incremental.addDisplayable(i,!0)):((i=new dC({rectHover:!0,cursor:"default",startIndex:t.start,endIndex:t.end})).incremental=!0,this.group.add(i)),i.setShape({points:e.getLayout("points")}),this._setCommon(i,e,!!this._incremental,n)},t.prototype._setCommon=function(t,e,n,i){var r=e.hostModel;i=i||{};var o=e.getVisual("symbolSize");t.setShape("size",o instanceof Array?o:[o,o]),t.softClipShape=i.clipShape||null,t.symbolProxy=jm(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor;var a=t.shape.size[0]<4;t.useStyle(r.getModel("itemStyle").getItemStyle(a?["color","shadowBlur","shadowColor"]:["color"]));var s=e.getVisual("style"),l=s&&s.fill;if(l&&t.setColor(l),!n){var u=Vs(t);u.seriesIndex=r.seriesIndex,t.on("mousemove",function(e){u.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>=0&&(u.dataIndex=n+(t.startIndex||0))})}},t.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},t.prototype._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()},t}(),pC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4||!this._symbolDraw.isPersistent())return{update:!0};var r=Ak("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new fC:new ek,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(ig),gC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,zlevel:0,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(md),mC=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",$r).models[0]},e.type="cartesian2dAxis",e}(md);W(mC,Tx);var vC={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},yC=z({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},vC),_C=z({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},vC),bC={category:yC,value:_C,time:z({scale:!0,splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},_C),log:H({scale:!0,logBase:10},_C)},xC={value:1,category:1,time:1,log:1};function wC(t,e,n,i){q(xC,function(r,o){var a=z(z({},bC[o],!0),i,!0),s=function(t){function n(){for(var n=[],i=0;ie[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Yx);function OC(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,c=i.getRect(),h=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},f=e.get("offset")||0,p="x"===u?[h[2]-f,h[3]+f]:[h[0]-f,h[1]+f];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));p[d.onZero]=Math.max(Math.min(g,p[1]),p[0])}o.position=["y"===u?p[d[l]]:h[0],"x"===u?p[d[l]]:h[3]],o.rotation=Math.PI/2*("x"===u?0:1),o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?p[d[s]]-p[d.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),pt(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var m=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-m:m,o.z2=1,o}function TC(t){return"cartesian2d"===t.get("coordinateSystem")}function DC(t){var e={xAxisModel:null,yAxisModel:null};return q(e,function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,$r).models[0];e[i]=o}),e}function PC(t,e){return t.getCoordSysModel()===e}function EC(t,e,n,i){n.getAxesOnZeroOf=function(){return r?[r]:[]};var r,o=t[e],a=n.model,s=a.get(["axisLine","onZero"]),l=a.get(["axisLine","onZeroAxisIndex"]);if(s){if(null!=l)RC(o[l])&&(r=o[l]);else for(var u in o)if(o.hasOwnProperty(u)&&RC(o[u])&&!i[c(o[u])]){r=o[u];break}r&&(i[c(r)]=!0)}function c(t){return t.dim+"_"+t.index}}function RC(t){return t&&"category"!==t.type&&"time"!==t.type&&function(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)}(t)}var LC=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=SC,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;this._updateScale(t,this.model),q(n.x,function(t){xx(t.scale,t.model)}),q(n.y,function(t){xx(t.scale,t.model)});var i={};q(n.x,function(t){EC(n,"y",t,i)}),q(n.y,function(t){EC(n,"x",t,i)}),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),r=!n&&t.get("containLabel"),o=ld(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){q(a,function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e?o.x:o.y)})}s(),r&&(q(a,function(t){if(!t.model.get(["axisLabel","inside"])){var e=function(t){var e=t.scale;if(t.model.get(["axisLabel","show"])&&!e.isBlank()){var n,i,r=e.getExtent();i=e instanceof Pb?e.count():(n=e.getTicks()).length;var o,a=t.getLabelModel(),s=Cx(t),l=1;i>40&&(l=Math.ceil(i/40));for(var u=0;u0?"top":"bottom",i="center"):wr(o-NC)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),zC={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0];a&&(te(s,s,a),te(l,l,a));var u=B({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Ru({subPixelOptimize:!0,shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:u,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});c.anid="line",n.add(c);var h=e.get(["axisLine","symbol"]),d=e.get(["axisLine","symbolSize"]),f=e.get(["axisLine","symbolOffset"])||0;if("number"==typeof f&&(f=[f,f]),null!=h){"string"==typeof h&&(h=[h,h]),"string"!=typeof d&&"number"!=typeof d||(d=[d,d]);var p=d[0],g=d[1];q([{rotate:t.rotation+Math.PI/2,offset:f[0],r:0},{rotate:t.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],function(e,i){if("none"!==h[i]&&null!=h[i]){var r=jm(h[i],-p/2,-g/2,p,g,u.stroke,!0),o=e.r+e.offset;r.attr({rotation:e.rotate,x:s[0]+o*Math.cos(t.rotation),y:s[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}})}}},axisTickLabel:function(t,e,n,i){var r=function(t,e,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick")),a&&!r.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),u=jC(r.getTicksCoords(),e.transform,l,H(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;ch[1]?-1:1,f=["start"===s?h[0]-d*c:"end"===s?h[1]+d*c:(h[0]+h[1])/2,HC(s)?t.labelOffset+l*c:0],p=e.get("nameRotate");null!=p&&(p=p*NC/180),HC(s)?o=FC.innerTextLayout(t.rotation,null!=p?p:t.rotation,l):(o=function(t,e,n,i){var r,o,a=xr(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return wr(a-NC/2)?(o=l?"bottom":"top",r="center"):wr(a-1.5*NC)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*NC&&a>NC/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}(t.rotation,s,p||0,h),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),m=e.get("nameTruncate",!0)||{},v=m.ellipsis,y=pt(t.nameTruncateMaxWidth,m.maxWidth,a),_=new zs({x:f[0],y:f[1],rotation:o.rotation,silent:FC.isLabelSilent(e),style:Vc(u,{text:r,font:g,overflow:"truncate",width:y,ellipsis:v,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(Ec({el:_,componentModel:e,itemName:r}),_.__fullText=r,_.anid="name",e.get("triggerEvent")){var b=FC.makeAxisEventDataBase(e);b.targetType="axisName",b.name=r,Vs(_).eventData=b}i.add(_),_.updateTransform(),n.add(_),_.decomposeTransform()}}};function VC(t){t&&(t.ignore=!0)}function BC(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=oi([]);return ui(r,r,-t.rotation),n.applyTransform(si([],r,t.getLocalTransform())),i.applyTransform(si([],r,e.getLocalTransform())),n.intersect(i)}}function HC(t){return"middle"===t||"center"===t}function jC(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l=0||t===e}function WC(t){var e=YC(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=qC(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a0&&!h.min?h.min=0:null!=h.min&&h.min<0&&!h.max&&(h.max=0);var d=a;null!=h.color&&(d=H({color:h.color},a));var f=z(F(h),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:h.text,nameLocation:"end",nameGap:u,nameTextStyle:d,triggerEvent:c},!1);if(s||(f.name=""),"string"==typeof l){var p=f.name;f.name=l.replace("{value}",null!=p?p:"")}else"function"==typeof l&&(f.name=l(f.name,f));var g=new sh(f,null,this.ecModel);return W(g,Tx.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g},this);this._indicatorModels=h},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:z({lineStyle:{color:"#bbb"}},gS.axisLine),axisLabel:mS(gS.axisLabel,!1),axisTick:mS(gS.axisTick,!1),splitLine:mS(gS.splitLine,!0),splitArea:mS(gS.splitArea,!0),indicator:[]},e}(md),yS=["axisLine","axisTickLabel","axisName"],_S=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem;q(X(e.getIndicatorAxes(),function(t){return new GC(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(t){q(yS,t.add,t),this.group.add(t.getGroup())},this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),r=t.getModel("splitLine"),o=t.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),u=o.get("show"),c=a.get("color"),h=s.get("color"),d=et(c)?c:[c],f=et(h)?h:[h],p=[],g=[];if("circle"===i)for(var m=n[0].getTicksCoords(),v=e.cx,y=e.cy,_=0;_n[0]&&isFinite(h)&&isFinite(n[0]))}else a.getTicks().length-1>r&&(u=o(u)),h=fr((c=Math.ceil(n[1]/u)*u)-u*r),a.setExtent(h,c),a.setInterval(u)})},t.prototype.convertToPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.convertFromPixel=function(t,e,n){return console.warn("Not implemented."),null},t.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},t.create=function(e,n){var i=[];return e.eachComponent("radar",function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o}),e.eachSeriesByType("radar",function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("radarIndex")||0])}),i},t.dimensions=[],t}();function wS(t){t.registerCoordinateSystem("radar",xS),t.registerComponentModel(vS),t.registerComponentView(_S),t.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(t){e.setItemVisual(t,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}var kS="\0_ec_interaction_mutex";function CS(t,e){return!!SS(t)[e]}function SS(t){return t[kS]||(t[kS]={})}function MS(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(be(i.event),AS(t,e,n,i,r))}function AS(t,e,n,i,r){r.isAvailableBehavior=J(IS,null,n,i),t.trigger(e,r)}function IS(t,e,n){var i=n[t];return!t||i&&(!it(i)||e.event[i+"Key"])}__({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){});var OS=function(t){function e(e){var n=t.call(this)||this;n._zr=e;var i=J(n._mousedownHandler,n),r=J(n._mousemoveHandler,n),o=J(n._mouseupHandler,n),a=J(n._mousewheelHandler,n),s=J(n._pinchHandler,n);return n.enable=function(t,n){this.disable(),this._opt=H(F(n)||{},{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),null==t&&(t=!0),!0!==t&&"move"!==t&&"pan"!==t||(e.on("mousedown",i),e.on("mousemove",r),e.on("mouseup",o)),!0!==t&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",a),e.on("pinch",s))},n.disable=function(){e.off("mousedown",i),e.off("mousemove",r),e.off("mouseup",o),e.off("mousewheel",a),e.off("pinch",s)},n}return m(e,t),e.prototype.isDragging=function(){return this._dragging},e.prototype.isPinching=function(){return this._pinching},e.prototype.setPointerChecker=function(t){this.pointerChecker=t},e.prototype.dispose=function(){this.disable()},e.prototype._mousedownHandler=function(t){if(!(xe(t)||t.target&&t.target.draggable)){var e=t.offsetX,n=t.offsetY;this.pointerChecker&&this.pointerChecker(t,e,n)&&(this._x=e,this._y=n,this._dragging=!0)}},e.prototype._mousemoveHandler=function(t){if(this._dragging&&IS("moveOnMouseMove",t,this._opt)&&"pinch"!==t.gestureEvent&&!CS(this._zr,"globalPan")){var e=t.offsetX,n=t.offsetY,i=this._x,r=this._y,o=e-i,a=n-r;this._x=e,this._y=n,this._opt.preventDefaultMouseMove&&be(t.event),AS(this,"pan","moveOnMouseMove",t,{dx:o,dy:a,oldX:i,oldY:r,newX:e,newY:n,isAvailableBehavior:null})}},e.prototype._mouseupHandler=function(t){xe(t)||(this._dragging=!1)},e.prototype._mousewheelHandler=function(t){var e=IS("zoomOnMouseWheel",t,this._opt),n=IS("moveOnMouseWheel",t,this._opt),i=t.wheelDelta,r=Math.abs(i),o=t.offsetX,a=t.offsetY;if(0!==i&&(e||n)){if(e){var s=r>3?1.4:r>1?1.2:1.1;MS(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(i);MS(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){CS(this._zr,"globalPan")||MS(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(oe);function TS(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function DS(t,e,n,i){var r=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0;a=Math.max(Math.min(o.max||1/0,a),s)}var l=a/t.zoom;t.zoom=a,r.x-=(n-r.x)*(l-1),r.y-=(i-r.y)*(l-1),r.scaleX*=l,r.scaleY*=l,r.dirty()}var PS={axisPointer:1,tooltip:1,brush:1};function ES(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!PS.hasOwnProperty(i.mainType)&&r&&r.model!==n}var RS=["rect","circle","line","ellipse","polygon","polyline","path"],LS=St(RS),NS=St(RS.concat(["g"])),FS=St(RS.concat(["g"])),zS=qr();function VS(t){var e=t.getItemStyle(),n=t.get("areaColor");return null!=n&&(e.fill=n),e}function BS(t,e,n,i){var r=i.getModel("itemStyle"),o=i.getModel(["emphasis","itemStyle"]),a=i.getModel(["blur","itemStyle"]),s=i.getModel(["select","itemStyle"]),l=VS(r),u=VS(o),c=VS(s),h=VS(a),d=t.data;if(d){var f=d.getItemVisual(n,"style"),p=d.getItemVisual(n,"decal");t.isVisualEncodedByVisualMap&&f.fill&&(l.fill=f.fill),p&&(l.decal=hv(p,t.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=c,e.ensureState("blur").style=h,cl(e)}function HS(t,e,n,i,r,o,a){var s=t.data,l=t.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),o)),c=s&&s.getItemLayout(o);if(l||u||c&&c.showLabel){var h=l?n:o,d=void 0;(!s||o>=0)&&(d=r);var f=a?{normal:{align:"center",verticalAlign:"middle"}}:null;Fc(e,zc(i),{labelFetcher:d,labelDataIndex:h,defaultText:n},f);var p=e.getTextContent();if(p&&(zS(p).ignore=p.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function jS(t,e,n,i,r,o){t.data?t.data.setItemGraphicEl(o,e):Vs(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function GS(t,e,n,i,r){t.data||Ec({el:e,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function US(t,e,n,i,r){e.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return Ml(e,a,o.get("blurScope")),t.isGeo&&function(t,e,n){var i=Vs(t);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=n}(e,r,n),a}var WS=function(){function t(t){var e=new tr;this.uid=uh("ec_map_draw"),this._controller=new OS(t.getZr()),this._controllerHost={target:e},this.group=e,e.add(this._regionsGroup=new tr),e.add(this._svgGroup=new tr)}return t.prototype.draw=function(t,e,n,i,r){var o="geo"===t.mainType,a=t.getData&&t.getData();o&&e.eachComponent({mainType:"series",subType:"map"},function(e){a||e.getHostGeoModel()!==t||(a=e.getData())});var s=t.coordinateSystem,l=this._regionsGroup,u=this.group,c=s.getTransformInfo(),h=c.raw,d=c.roam;!l.childAt(0)||r?(u.x=d.x,u.y=d.y,u.scaleX=d.scaleX,u.scaleY=d.scaleY,u.dirty()):mc(u,d,t);var f=a&&a.getVisual("visualMeta")&&a.getVisual("visualMeta").length>0,p={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:f,isGeo:o,transformInfoRaw:h};"geoJSON"===s.resourceType?this._buildGeoJSON(p):"geoSVG"===s.resourceType&&this._buildSVG(p),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,i)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=St(),n=St(),i=this._regionsGroup,r=t.transformInfoRaw,o=t.mapOrGeoModel,a=t.data,s=function(t){return[t[0]*r.scaleX+r.x,t[1]*r.scaleY+r.y]};i.removeAll(),q(t.geo.regions,function(r){var l=r.name,u=e.get(l),c=n.get(l)||{},h=c.dataIdx,d=c.regionModel;u||(u=e.set(l,new tr),i.add(u),h=a?a.indexOfName(l):null,d=t.isGeo?o.getRegionModel(l):a?a.getItemModel(h):null,n.set(l,{dataIdx:h,regionModel:d}));var f=new Gu({segmentIgnoreThreshold:1,shape:{paths:[]}});u.add(f),q(r.geometries,function(t){if("polygon"===t.type){for(var e=[],n=0;n-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(Wp);function XS(t){var e={};t.eachSeriesByType("map",function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)}),q(e,function(t,e){for(var n,i,r,o=(n=X(t,function(t){return t.getData()}),i=t[0].get("mapValueCalculation"),r={},q(n,function(t){t.each(t.mapDimension("value"),function(e,n){var i="ec-"+t.getName(n);r[i]=r[i]||[],isNaN(e)||r[i].push(e)})}),n[0].map(n[0].mapDimension("value"),function(t,e){for(var o="ec-"+n[0].getName(e),a=0,s=1/0,l=-1/0,u=r[o].length,c=0;c1?(s.width=a,s.height=a/f):(s.height=a,s.width=a*f),s.y=o[1]-s.height/2,s.x=o[0]-s.width/2;else{var g=t.getBoxLayoutParams();g.aspect=f,s=ld(g,{width:h,height:d})}this.setViewRect(s.x,s.y,s.width,s.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}var rM=new(function(){function t(){this.dimensions=nM.prototype.dimensions}return t.prototype.create=function(t,e){var n=[];t.eachComponent("geo",function(t,i){var r=t.get("map"),o=new nM(r+i,r,{nameMap:t.get("nameMap"),nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale")});o.zoomLimit=t.get("scaleLimit"),n.push(o),t.coordinateSystem=o,o.model=t,o.resize=iM,o.resize(t,e)}),t.eachSeries(function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}});var i={};return t.eachSeriesByType("map",function(t){if(!t.getHostGeoModel()){var e=t.getMapType();i[e]=i[e]||[],i[e].push(t)}}),q(i,function(t,i){var r=X(t,function(t){return t.get("nameMap")}),o=new nM(i,i,{nameMap:V(r),nameProperty:t[0].get("nameProperty"),aspectScale:t[0].get("aspectScale")});o.zoomLimit=pt.apply(null,X(t,function(t){return t.get("scaleLimit")})),n.push(o),o.resize=iM,o.resize(t[0],e),q(t,function(t){t.coordinateSystem=o,function(t,e){q(e.get("geoCoord"),function(e,n){t.addGeoCoord(n,e)})}(o,t)})}),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var r=(t||[]).slice(),o=St(),a=0;a=0;){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,i+=o.hierNode.shift+(r+=o.hierNode.change)}}(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=function(t,e,n,i){if(e){for(var r=t,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,u=o.hierNode.modifier,c=a.hierNode.modifier,h=s.hierNode.modifier;s=fM(s),o=pM(o),s&&o;){r=fM(r),a=pM(a),r.hierNode.ancestor=t;var d=s.hierNode.prelim+h-o.hierNode.prelim-u+i(s,o);d>0&&(mM(gM(s,t,n),t,d),u+=d,l+=d),h+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,c+=a.hierNode.modifier}s&&!fM(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=h-l),o&&!pM(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-c,n=t)}return n}(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function cM(t){t.setLayout({x:t.hierNode.prelim+t.parentNode.hierNode.modifier},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function hM(t){return arguments.length?t:vM}function dM(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function fM(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function pM(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function gM(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function mM(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function vM(t,e){return t.parentNode===e.parentNode?1:2}var yM=function(){this.parentPoint=[],this.childPoints=[]},_M=function(t){function e(e){return t.call(this,e)||this}return m(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new yM},e.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,o=n[0],a=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=dr(e.forkPosition,1),h=[];h[l]=r[l],h[u]=r[u]+(a[u]-r[u])*c,t.moveTo(r[0],r[1]),t.lineTo(h[0],h[1]),t.moveTo(o[0],o[1]),h[l]=o[l],t.lineTo(h[0],h[1]),h[l]=a[l],t.lineTo(h[0],h[1]),t.lineTo(a[0],a[1]);for(var d=1;dy.x)||(b-=Math.PI);var k=x?"left":"right",C=s.getModel("label"),S=C.get("rotate"),M=S*(Math.PI/180),A=m.getTextContent();A&&(m.setTextConfig({position:C.get("position")||k,rotation:null==S?-b:M,origin:"center"}),A.setStyle("verticalAlign","middle"))}var I=s.get(["emphasis","focus"]),O="ancestor"===I?a.getAncestorsIndices():"descendant"===I?a.getDescendantIndices():null;O&&(Vs(n).focus=O),function(t,e,n,i,r,o,a,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),h=t.getOrient(),d=t.get(["lineStyle","curveness"]),f=t.get("edgeForkPosition"),p=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&(g||(g=i.__edge=new Vu({shape:kM(c,h,d,r,r)})),mc(g,{shape:kM(c,h,d,o,a)},t));else if("polyline"===u&&"orthogonal"===c&&e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var m=e.children,v=[],y=0;ye&&(e=i.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.isAncestorOf=function(t){for(var e=t.parentNode;e;){if(e===this)return!0;e=e.parentNode}return!1},t.prototype.isDescendantOf=function(t){return t!==this&&t.isAncestorOf(this)},t}(),LM=function(){function t(t){this.type="tree",this._nodes=[],this.hostModel=t}return t.prototype.eachNode=function(t,e,n){this.root.eachNode(t,e,n)},t.prototype.getNodeByDataIndex=function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},t.prototype.getNodeById=function(t){return this.root.getNodeById(t)},t.prototype.update=function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n=0){var i=n.getData().tree.root,r=t.targetNode;if("string"==typeof r&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function FM(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function zM(t,e){return G(FM(t),e)>=0}function VM(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}var BM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return m(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},n=new sh(t.leaves||{},this,this.ecModel),i=LM.createTree(e,this,function(t){t.wrapMethod("getItemModel",function(t,e){var r=i.getNodeByDataIndex(e);return r&&r.children.length&&r.isExpand||(t.parentModel=n),t})}),r=0;i.eachNode("preorder",function(t){t.depth>r&&(r=t.depth)});var o=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:r;return i.root.eachNode("preorder",function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=o}),i.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,n){for(var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(t),a=o.getValue(),s=o.name;o&&o!==r;)s=o.parentNode.name+"."+s,o=o.parentNode;return Cp("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=VM(i,this),n},e.type="series.tree",e.layoutMode="box",e.defaultOption={zlevel:0,z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(Wp);function HM(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function jM(t,e){t.eachSeriesByType("tree",function(t){!function(t,e){var n=function(t,e){return ld(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=n;var i=t.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=hM(function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth})):(r=n.width,o=n.height,a=hM());var s=t.getData().tree.root,l=s.children[0];if(l){!function(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var n,i,r=[e];n=r.pop();)if(i=n.children,n.isExpand&&i.length)for(var o=i.length-1;o>=0;o--){var a=i[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(a)}}(s),function(t,e,n){for(var i,r=[t],o=[];i=r.pop();)if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;sc.getLayout().x&&(c=t),t.depth>h.depth&&(h=t)});var d=u===c?1:a(u,c)/2,f=d-u.getLayout().x,p=0,g=0,m=0,v=0;if("radial"===i)p=r/(c.getLayout().x+d+f),g=o/(h.depth-1||1),HM(l,function(t){var e=dM(m=(t.getLayout().x+f)*p,v=(t.depth-1)*g);t.setLayout({x:e.x,y:e.y,rawX:m,rawY:v},!0)});else{var y=t.getOrient();"RL"===y||"LR"===y?(g=o/(c.getLayout().x+d+f),p=r/(h.depth-1||1),HM(l,function(t){v=(t.getLayout().x+f)*g,t.setLayout({x:m="LR"===y?(t.depth-1)*p:r-(t.depth-1)*p,y:v},!0)})):"TB"!==y&&"BT"!==y||(p=r/(c.getLayout().x+d+f),g=o/(h.depth-1||1),HM(l,function(t){m=(t.getLayout().x+f)*p,t.setLayout({x:m,y:v="TB"===y?(t.depth-1)*g:o-(t.depth-1)*g},!0)}))}}}(t,e)})}function GM(t){t.eachSeriesByType("tree",function(t){var e=t.getData();e.tree.eachNode(function(t){var n=t.getModel().getModel("itemStyle").getItemStyle();B(e.ensureUniqueItemVisual(t.dataIndex,"style"),n)})})}var UM=function(){},WM=["treemapZoomToNode","treemapRender","treemapMove"];function YM(t){var e=t.getData(),n={};e.tree.eachNode(function(e){for(var i=e;i&&i.depth>1;)i=i.parentNode;var r=jd(t.ecModel,i.name||i.dataIndex+"",n);e.setVisual("decal",r)})}function qM(t){var e=0;q(t.children,function(t){qM(t);var n=t.value;et(n)&&(n=n[0]),e+=n});var n=t.value;et(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),et(t.value)?t.value[0]=n:t.value=n}var XM=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return m(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};qM(n);var i=t.levels||[],r=this.designatedVisualItemStyle={},o=new sh({itemStyle:r},this,e),a=X((i=t.levels=function(t,e){var n,i,r=Nr(e.get("color")),o=Nr(e.get(["aria","decal","decals"]));if(r){q(t=t||[],function(t){var e=new sh(t),r=e.get("color"),o=e.get("decal");(e.get(["itemStyle","color"])||r&&"none"!==r)&&(n=!0),(e.get(["itemStyle","decal"])||o&&"none"!==o)&&(i=!0)});var a=t[0]||(t[0]={});return n||(a.color=r.slice()),!i&&o&&(a.decal=o.slice()),t}}(i,e))||[],function(t){return new sh(t,o,e)},this),s=LM.createTree(n,this,function(t){t.wrapMethod("getItemModel",function(t,e){var n=s.getNodeByDataIndex(e);return t.parentModel=(n?a[n.depth]:null)||o,t})});return s.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t);return Cp("nameValue",{name:i.getName(t),value:r})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=VM(i,this),n},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},B(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=St(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){YM(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"\u25b6",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],ellipsis:!0,verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(Wp);function ZM(t,e,n,i,r,o){var a=[[r?t:t-5,e],[t+n,e],[t+n,e+i],[r?t:t-5,e+i]];return!o&&a.splice(2,0,[t+n+5,e+i/2]),!r&&a.push([t,e+i/2]),a}function KM(t,e,n){Vs(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&VM(n,e)}}var $M=function(){function t(t){this.group=new tr,t.add(this.group)}return t.prototype.render=function(t,e,n,i){var r=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=a.getModel("textStyle"),l={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,l,s),this._renderContent(t,l,a,s,i),ud(o,l.pos,l.box)}},t.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var r=Gr(i.getModel().get("name"),""),o=n.getTextRect(r),a=Math.max(o.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:i,text:r,width:a})}},t.prototype._renderContent=function(t,e,n,i,r){for(var o,a,s,l,u,c,h,d,f,p=0,g=e.emptyItemWidth,m=t.get(["breadcrumb","height"]),v=(u=(a=e.box).height,c=dr((o=e.pos).left,l=a.width),h=dr(o.top,u),d=dr(o.right,l),f=dr(o.bottom,u),(isNaN(c)||isNaN(parseFloat(o.left)))&&(c=0),(isNaN(d)||isNaN(parseFloat(o.right)))&&(d=l),(isNaN(h)||isNaN(parseFloat(o.top)))&&(h=0),(isNaN(f)||isNaN(parseFloat(o.bottom)))&&(f=u),s=Uh(s||0),{width:Math.max(d-c-s[1]-s[3],0),height:Math.max(f-h-s[0]-s[2],0)}),y=e.totalWidth,_=e.renderList,b=_.length-1;b>=0;b--){var x=_[b],w=x.node,k=x.width,C=x.text;y>v.width&&(y-=k-g,k=g,C=null);var S=new Au({shape:{points:ZM(p,0,k,m,b===_.length-1,0===b)},style:H(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new zs({style:{text:C,fill:i.getTextColor(),font:i.getFont()}}),textConfig:{position:"inside"},z2:1e5,onclick:tt(r,w)});S.disableLabelAnimation=!0,this.group.add(S),KM(S,t,w),p+=k+8}},t.prototype.remove=function(){this.group.removeAll()},t}(),QM=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,i,r){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:r}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){--e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,r=this._storage.length;i3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new Di(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo,s=[1,0,0,1,0,0];li(s,s,[-(e-=a.x),-(n-=a.y)]),ci(s,s,[t.scale,t.scale]),li(s,s,[e,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var i=e.findTarget(t.offsetX,t.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)e._rootToNode(i);else if("zoomToNode"===n)e._zoomToNode(i);else if("link"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&nd(a,s)}}}}},this)},e.prototype._renderBreadcrumb=function(t,e,n){var i=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new $M(this.group))).render(t,e,n.node,function(e){"animating"!==i._state&&(zM(t.getViewRoot(),e)?i._rootToNode({node:e}):i._zoomToNode({node:e}))})},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}},this),n},e.type="treemap",e}(ig),sA=q,lA=at,uA=function(){function t(e){var n=e.mappingMethod,i=e.type,r=this.option=F(e);this.type=i,this.mappingMethod=n,this._normalizeData=_A[n];var o=t.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(cA(r),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,q(e,function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)})}(r)):"category"===n?r.categories?function(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(sA(e,function(t,e){n[t]=e}),!et(i)){var r=[];at(i)?sA(i,function(t,e){var i=n[e];r[null!=i?i:-1]=t}):r[-1]=i,i=yA(t,r)}for(var o=e.length-1;o>=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}(r):cA(r,!0):(_t("linear"!==n||r.dataExtent),cA(r))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return J(this._normalizeData,this)},t.listVisualTypes=function(){return Q(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){at(t)?q(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var r,o=et(e)?[]:at(e)?{}:(r=!0,null);return t.eachVisual(e,function(t,e){var a=n.call(i,t,e);r?o=a:o[e]=a}),o},t.retrieveVisuals=function(e){var n,i={};return e&&sA(t.visualHandlers,function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)}),n?i:null},t.prepareVisualTypes=function(t){if(et(t))t=t.slice();else{if(!lA(t))return[];var e=[];sA(t,function(t,n){e.push(n)}),t=e}return t.sort(function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1}),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,n){for(var i,r=1/0,o=0,a=e.length;ou[1]&&(u[1]=l);var c=e.get("colorMappingBy"),h={type:a.name,dataExtent:u,visual:a.range};"color"!==h.type||"index"!==c&&"id"!==c?h.mappingMethod="linear":(h.mappingMethod="category",h.loop=!0);var d=new xA(h);return wA(d).drColorMappingBy=c,d}}}(0,r,o,0,u,f);q(f,function(t,e){if(t.depth>=n.length||t===n[t.depth]){var o=function(t,e,n,i,r,o){var a=B({},e);if(r){var s=r.type,l="color"===s&&wA(r).drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=r.mapValueToVisual(u)}return a}(r,u,t,e,p,i);CA(t,o,n,i)}})}else s=SA(u),c.fill=s}}function SA(t){var e=MA(t,"color");if(e){var n=MA(t,"colorAlpha"),i=MA(t,"colorSaturation");return i&&(e=vn(e,null,null,i)),n&&(e=yn(e,n)),e}}function MA(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function AA(t,e){var n=t.get(e);return et(n)&&n.length?{name:e,range:n}:null}var IA=Math.max,OA=Math.min,TA=pt,DA=q,PA=["itemStyle","borderWidth"],EA=["itemStyle","gapWidth"],RA=["upperLabel","show"],LA=["upperLabel","height"],NA={seriesType:"treemap",reset:function(t,e,n,i){var r=n.getWidth(),o=n.getHeight(),a=t.option,s=ld(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=dr(TA(s.width,l[0]),r),c=dr(TA(s.height,l[1]),o),h=i&&i.type,d=NM(i,["treemapZoomToNode","treemapRootToNode"],t),f="treemapRender"===h||"treemapMove"===h?i.rootRect:null,p=t.getViewRoot(),g=FM(p);if("treemapMove"!==h){var m="treemapZoomToNode"===h?function(t,e,n,i,r){var o,a=(e||{}).node,s=[i,r];if(!a||a===n)return s;for(var l=i*r,u=l*t.option.zoomToNodeRatio;o=a.parentNode;){for(var c=0,h=o.children,d=0,f=h.length;dbr&&(u=br),a=o}ua[1]&&(a[1]=e)})):a=[NaN,NaN],{sum:i,dataExtent:a}}(e,a,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=function(t,e,n,i,r){if(!i)return n;for(var o=t.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*ei&&(i=a));var l=t.area*t.area,u=e*e*n;return l?IA(u*i/l,l/(u*r)):1/0}function VA(t,e,n,i,r){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=e?t.area/e:0;(r||c>n[l[a]])&&(c=n[l[a]]);for(var h=0,d=t.length;hi&&(i=e);var o=i%2?i+2:i+3;r=[];for(var a=0;a0&&(y[0]=-y[0],y[1]=-y[1]);var b=v[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var x=-Math.atan2(v[1],v[0]);u[0].8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":i.x=-c[0]*p+l[0],i.y=-c[1]*g+l[1],h=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=p*b+l[0],i.y=l[1]+w,h=v[0]<0?"right":"left",i.originX=-p*b,i.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=_[0],i.y=_[1]+w,h="center",i.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-p*b+u[0],i.y=u[1]+w,h=v[0]>=0?"right":"left",i.originX=p*b,i.originY=-w}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||h})}}}function k(t,e){var n=t.__specifiedRotation;if(null==n){var i=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else t.attr("rotation",n)}},e}(tr);function kI(t){var e=t.hostModel;return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["emphasis","lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),labelStatesModels:zc(e)}}function CI(t){return isNaN(t[0])||isNaN(t[1])}function SI(t){return!CI(t[0])&&!CI(t[1])}var MI=function(){function t(t){this.group=new tr,this._LineCtor=t||wI}return t.prototype.isPersistent=function(){return!0},t.prototype.updateData=function(t){var e=this,n=this,i=n.group,r=n._lineData;n._lineData=t,r||i.removeAll();var o=kI(t);t.diff(r).add(function(n){e._doAdd(t,n,o)}).update(function(n,i){e._doUpdate(r,t,i,n,o)}).remove(function(t){i.remove(r.getItemGraphicEl(t))}).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=kI(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(t){t.isGroup||function(t){return t.animators&&t.animators.length>0}(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var i=t.start;i=0?i+=u:i-=u:p>=0?i-=u:i+=u}return i}function RI(t,e){var n=[],i=ua,r=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge(function(t,s){var l=t.getLayout(),u=t.getVisual("fromSymbol"),c=t.getVisual("toSymbol");l.__original||(l.__original=[Rt(l[0]),Rt(l[1])],l[2]&&l.__original.push(Rt(l[2])));var h=l.__original;if(null!=l[2]){if(Et(r[0],h[0]),Et(r[1],h[2]),Et(r[2],h[1]),u&&"none"!==u){var d=iI(t.node1),f=EI(r,h[0],d*e);i(r[0][0],r[1][0],r[2][0],f,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],f,n),r[0][1]=n[3],r[1][1]=n[4]}c&&"none"!==c&&(d=iI(t.node2),f=EI(r,h[1],d*e),i(r[0][0],r[1][0],r[2][0],f,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],f,n),r[1][1]=n[1],r[2][1]=n[2]),Et(l[0],r[0]),Et(l[1],r[2]),Et(l[2],r[1])}else Et(o[0],h[0]),Et(o[1],h[1]),zt(a,o[1],o[0]),qt(a,a),u&&"none"!==u&&(d=iI(t.node1),Ft(o[0],o[0],a,d*e)),c&&"none"!==c&&(d=iI(t.node2),Ft(o[1],o[1],a,-d*e)),Et(l[0],o[0]),Et(l[1],o[1])})}function LI(t){return"view"===t.type}var NI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(t,e){var n=new ek,i=new MI,r=this.group;this._controller=new OS(e.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(LI(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):mc(s,l,t)}RI(t.getGraph(),nI(t));var u=t.getData();o.updateData(u);var c=t.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var h=t.forceLayout,d=t.get(["force","layoutAnimation"]);h&&this._startForceLayoutIteration(h,d),u.graph.eachNode(function(t){var e=t.dataIndex,n=t.getGraphicEl(),r=t.getModel();n.off("drag").off("dragend");var o=r.get("draggable");o&&n.on("drag",function(){h&&(h.warmUp(),!i._layouting&&i._startForceLayoutIteration(h,d),h.setFixed(e),u.setItemLayout(e,[n.x,n.y]))}).on("dragend",function(){h&&h.setUnfixed(e)}),n.setDraggable(o&&!!h),"adjacency"===r.get(["emphasis","focus"])&&(Vs(n).focus=t.getAdjacentDataIndices())}),u.graph.eachEdge(function(t){var e=t.getGraphicEl();"adjacency"===t.getModel().get(["emphasis","focus"])&&(Vs(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})});var f="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),p=u.getLayout("cx"),g=u.getLayout("cy");u.eachItemGraphicEl(function(t,e){var n=u.getItemModel(e).get(["label","rotate"])||0,i=t.getSymbolPath();if(f){var r=u.getItemLayout(e),o=Math.atan2(r[1]-g,r[0]-p);o<0&&(o=2*Math.PI+o);var a=r[0]=0&&t.call(e,n[r],r)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},t.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof VI||(e=this._nodesMap[FI(e)]),e){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o=0&&n.node2.dataIndex>=0}),r=0,o=i.length;r=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}W(VI,HI("hostGraph","data")),W(BI,HI("hostGraph","edgeData"));var jI=zI;function GI(t,e,n,i,r){for(var o=new jI(i),a=0;a "+d)),u++)}var f,p=n.get("coordinateSystem");if("cartesian2d"===p||"polar"===p)f=bb(t,n);else{var g=Qd.get(p),m=g&&g.dimensions||[];G(m,"value")<0&&m.concat(["value"]);var v=fb(t,{coordDimensions:m});(f=new hb(v,n)).initData(t)}var y=new hb(["value"],n);return y.initData(l,s),r&&r(f,y),EM({mainData:f,struct:o,structAttr:"graph",datas:{node:f,edge:y},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var UI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return m(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new lC(i,i),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),Fr(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n,i=t.edges||t.links||[],r=t.data||t.nodes||[],o=this;if(r&&i){qA(n=this)&&(n.__curvenessList=[],n.__edgeMap={},XA(n));var a=GI(r,i,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t){var e=o._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t});var n=sh.prototype.getModel;function i(t,e){var i=n.call(this,t,e);return i.resolveParentPath=r,i}function r(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",function(t){return t.resolveParentPath=r,t.getModel=i,t})});return q(a.edges,function(t){!function(t,e,n,i){if(qA(n)){var r=ZA(t,e,n),o=n.__edgeMap,a=o[KA(r)];o[r]&&!a?o[r].isForward=!0:a&&o[r]&&(a.isForward=!0,o[r].isForward=!1),o[r]=o[r]||[],o[r].push(i)}}(t.node1,t.node2,this,t.dataIndex)},this),a.data}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),o=i.graph.getEdgeByIndex(t),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),Cp("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}return Rp({series:this,dataIndex:t,multipleSeries:e})},e.prototype._updateCategoriesData=function(){var t=X(this.option.categories||[],function(t){return null!=t.value?t:B({value:0},t)}),e=new hb(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t)})},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Wp),WI={type:"graphRoam",event:"graphRoam",update:"none"},YI=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},qI=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return m(e,t),e.prototype.getDefaultShape=function(){return new YI},e.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)},e}(ds);function XI(t,e){var n=null==t?"":t+"";return e&&("string"==typeof e?n=e.replace("{value}",n):"function"==typeof e&&(n=e(t))),n}var ZI=2*Math.PI,KI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),r=function(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r);return{cx:dr(n[0],e.getWidth()),cy:dr(n[1],e.getHeight()),r:dr(t.get("radius"),o/2)}}(t,n);this._renderMain(t,e,n,i,r),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,i,r){for(var o=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),c=u.get("roundCap")?Lk:_u,h=u.get("show"),d=u.getModel("lineStyle"),f=d.get("width"),p=(l-s)%ZI||l===s?(l-s)%ZI:ZI,g=s,m=0;h&&m=t&&(0===e?0:i[e-1][0]).8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:R}),silent:!0}))}if(y.get("show")&&T!==b){P=(P=y.get("distance"))?P+l:l;for(var L=0;L<=x;L++){u=Math.cos(C),c=Math.sin(C);var N=new Ru({shape:{x1:u*(p-P)+d,y1:c*(p-P)+f,x2:u*(p-k-P)+d,y2:c*(p-k-P)+f},silent:!0,style:I});"auto"===I.stroke&&N.setStyle({stroke:i((T+L/x)/b)}),h.add(N),C+=M}C-=M}else C+=S}},e.prototype._renderPointer=function(t,e,n,i,r,o,a,s,l){var u=this.group,c=this._data,h=this._progressEls,d=[],f=t.get(["pointer","show"]),p=t.getModel("progress"),g=p.get("show"),m=t.getData(),v=m.mapDimension("value"),y=+t.get("min"),_=+t.get("max"),b=[y,_],x=[o,a];function w(e,n){var i,o=m.getItemModel(e).getModel("pointer"),a=dr(o.get("width"),r.r),s=dr(o.get("length"),r.r),l=t.get(["pointer","icon"]),u=o.get("offsetCenter"),c=dr(u[0],r.r),h=dr(u[1],r.r),d=o.get("keepAspect");return(i=l?jm(l,c-a/2,h-s,a,s,null,d):new qI({shape:{angle:-Math.PI/2,width:a,r:s,x:c,y:h}})).rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function k(t,e){var n=p.get("roundCap")?Lk:_u,i=p.get("overlap"),a=i?p.get("width"):l/m.count(),u=new n({shape:{startAngle:o,endAngle:e,cx:r.cx,cy:r.cy,clockwise:s,r0:i?r.r-a:r.r-(t+1)*a,r:i?r.r:r.r-t*a}});return i&&(u.z2=_-m.get(v,t)%_),u}(g||f)&&(m.diff(c).add(function(e){if(f){var n=w(e,o);vc(n,{rotation:-(hr(m.get(v,e),b,x,!0)+Math.PI/2)},t),u.add(n),m.setItemGraphicEl(e,n)}if(g){var i=k(e,o),r=p.get("clip");vc(i,{shape:{endAngle:hr(m.get(v,e),b,x,r)}},t),u.add(i),d[e]=i}}).update(function(e,n){if(f){var i=c.getItemGraphicEl(n),r=i?i.rotation:o,a=w(e,r);a.rotation=r,mc(a,{rotation:-(hr(m.get(v,e),b,x,!0)+Math.PI/2)},t),u.add(a),m.setItemGraphicEl(e,a)}if(g){var s=h[n],l=k(e,s?s.shape.endAngle:o),y=p.get("clip");mc(l,{shape:{endAngle:hr(m.get(v,e),b,x,y)}},t),u.add(l),d[e]=l}}).execute(),m.each(function(t){var e=m.getItemModel(t),n=e.getModel("emphasis");if(f){var r=m.getItemGraphicEl(t),o=m.getItemVisual(t,"style"),a=o.fill;if(r instanceof _s){var s=r.style;r.useStyle(B({image:s.image,x:s.x,y:s.y,width:s.width,height:s.height},o))}else r.useStyle(o),"pointer"!==r.type&&r.setColor(a);r.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===r.style.fill&&r.setStyle("fill",i(hr(m.get(v,t),b,[0,1],!0))),r.z2EmphasisLift=0,Tl(r,e),Ml(r,n.get("focus"),n.get("blurScope"))}if(g){var l=d[t];l.useStyle(m.getItemVisual(t,"style")),l.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),l.z2EmphasisLift=0,Tl(l,e),Ml(l,n.get("focus"),n.get("blurScope"))}}),this._progressEls=d)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor");if(n.get("show")){var i=n.get("size"),r=n.get("icon"),o=n.get("offsetCenter"),a=n.get("keepAspect"),s=jm(r,e.cx-i/2+dr(o[0],e.r),e.cy-i/2+dr(o[1],e.r),i,i,null,a);s.z2=n.get("showAbove")?1:0,s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},e.prototype._renderTitleAndDetail=function(t,e,n,i,r){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),c=new tr,h=[],d=[],f=t.isAnimationEnabled();a.diff(this._data).add(function(t){h[t]=new zs({silent:!0}),d[t]=new zs({silent:!0})}).update(function(t,e){h[t]=o._titleEls[e],d[t]=o._detailEls[e]}).execute(),a.each(function(e){var n=a.getItemModel(e),o=a.get(s,e),p=new tr,g=i(hr(o,[l,u],[0,1],!0)),m=n.getModel("title");if(m.get("show")){var v=m.get("offsetCenter"),y=r.cx+dr(v[0],r.r),_=r.cy+dr(v[1],r.r);(A=h[e]).attr({style:Vc(m,{x:y,y:_,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:g})}),p.add(A)}var b=n.getModel("detail");if(b.get("show")){var x=b.get("offsetCenter"),w=r.cx+dr(x[0],r.r),k=r.cy+dr(x[1],r.r),C=dr(b.get("width"),r.r),S=dr(b.get("height"),r.r),M=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:g,A=d[e],I=b.get("formatter");A.attr({style:Vc(b,{x:w,y:k,text:XI(o,I),width:isNaN(C)?null:C,height:isNaN(S)?null:S,align:"center",verticalAlign:"middle"},{inheritColor:M})}),qc(A,{normal:b},o,function(t){return XI(t,I)}),f&&Xc(A,e,a,t,{getFormattedLabel:function(t,e,n,i,r,a){return XI(a?a.interpolatedValue:o,I)}}),p.add(A)}c.add(p)}),this.group.add(c),this._titleEls=h,this._detailEls=d},e.type="gauge",e}(ig),$I=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n.useColorPaletteOnData=!0,n}return m(e,t),e.prototype.getInitialData=function(t,e){return sC(this,["value"])},e.type="series.gauge",e.defaultOption={zlevel:0,z:2,center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12},pointer:{icon:null,offsetCenter:[0,0],show:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(Wp),QI=["itemStyle","opacity"],JI=function(t){function e(e,n){var i=t.call(this)||this,r=i,o=new Tu,a=new zs;return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(e,n,!0),i}return m(e,t),e.prototype.updateData=function(t,e,n){var i=this,r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=o.getModel("emphasis"),l=o.get(QI);l=null==l?1:l,i.useStyle(t.getItemVisual(e,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,vc(i,{style:{opacity:l}},r,e)):mc(i,{style:{opacity:l},shape:{points:a.points}},r,e),Tl(i,o),this._updateLabel(t,e),Ml(this,s.get("focus"),s.get("blurScope"))},e.prototype._updateLabel=function(t,e){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e).label,l=t.getItemVisual(e,"style"),u=l.fill;Fc(r,zc(a),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:l.opacity,defaultText:t.getName(e)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}}),n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:u,outsideFill:u});var c=s.linePoints;i.setShape({points:c}),n.textGuideLineConfig={anchor:c?new wi(c[0][0],c[0][1]):null},mc(r,{style:{x:s.x,y:s.y}},o,e),r.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),mm(n,vm(a),{stroke:u})},e}(Au),tO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return m(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._data,o=this.group;i.diff(r).add(function(t){var e=new JI(i,t);i.setItemGraphicEl(t,e),o.add(e)}).update(function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),o.add(n),i.setItemGraphicEl(t,n)}).remove(function(e){bc(r.getItemGraphicEl(e),t,e)}).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(ig),eO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.useColorPaletteOnData=!0,n}return m(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new lC(J(this.getData,this),J(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return sC(this,{coordDimensions:["value"],encodeDefaulter:tt(Dd,this)})},e.prototype._defaultLabelLine=function(t){Fr(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},e.type="series.funnel",e.defaultOption={zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(Wp);function nO(t,e){t.eachSeriesByType("funnel",function(t){var n=t.getData(),i=n.mapDimension("value"),r=t.get("sort"),o=function(t,e){return ld(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),a=t.get("orient"),s=o.width,l=o.height,u=function(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,function(t){return t}),r=[],o="ascending"===e,a=0,s=t.count();a5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&gO(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function gO(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}var mO=fO,vO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){t&&z(this.option,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){q(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[];q(K(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(t){return(t.get("parallelIndex")||0)===this.componentIndex},this),function(n){t.push("dim"+n.get("dim")),e.push(n.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(md),yO=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return m(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(Yx);function _O(t,e,n,i,r,o){t=t||0;var a=n[1]-n[0];if(null!=r&&(r=xO(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(e[1]-e[0]);s=xO(s,[0,a]),r=o=xO(s,[r,o]),i=0}e[0]=xO(e[0],n),e[1]=xO(e[1],n);var l=bO(e,i);e[i]+=t;var u,c=r||0,h=n.slice();return l.sign<0?h[0]+=c:h[1]-=c,e[i]=xO(e[i],h),u=bO(e,i),null!=r&&(u.sign!==l.sign||u.spano&&(e[1-i]=e[i]+u.sign*o),e}function bO(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function xO(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var wO=q,kO=Math.min,CO=Math.max,SO=Math.floor,MO=Math.ceil,AO=fr,IO=Math.PI;function OO(t,e){return kO(CO(t,e[0]),e[1])}function TO(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function DO(t,e){var n,i,r=e.axisExpandWidth,o=e.axisCollapseWidth,a=e.winInnerIndices,s=o,l=!1;return t=n&&o<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(n){if(t.contains(n,e)){var i=n.getData();wO(this.dimensions,function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),xx(e.scale,e.model)},this)}},this)},t.prototype.resize=function(t,e){this._rect=ld(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,n=this._rect,i=["x","y"],r=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],u=this.dimensions.length,c=OO(e.get("axisExpandWidth"),l),h=OO(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>h&&h>1&&c>0&&s>0,f=e.get("axisExpandWindow");f?(t=OO(f[1]-f[0],l),f[1]=f[0]+t):(t=OO(c*(h-1),l),(f=[c*(e.get("axisExpandCenter")||SO(u/2))-t/2])[1]=f[0]+t);var p=(s-t)/(u-h);p<3&&(p=0);var g=[SO(AO(f[0]/c,1))+1,MO(AO(f[1]/c,1))-1];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:p,axisExpandWindow:f,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:p/c*f[0]}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;e.each(function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])}),wO(n,function(e,n){var o=(i.axisExpandable?DO:TO)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s=[a[r].x+t.x,a[r].y+t.y],l={horizontal:IO/2,vertical:0}[r],u=[1,0,0,1,0,0];ui(u,u,l),li(u,u,s),this._axesLayout[e]={position:s,rotation:l,transform:u,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,n,i){null==n&&(n=0),null==i&&(i=t.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];q(o,function(e){a.push(t.mapDimension(e)),s.push(r.get(e).model)});for(var l=this.hasAxisBrushed(),u=n;ur*(1-c[0])?(l="jump",a=s-r*(1-c[2])):(a=s-r*c[1])>=0&&(a=s-r*(1-c[1]))<=0&&(a=0),(a*=e.axisExpandWidth/u)?_O(a,i,o,"all"):l="none";else{var d=i[1]-i[0];(i=[CO(0,o[1]*s/d-d/2)])[1]=kO(o[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:l}},t}(),EO={create:function(t,e){var n=[];return t.eachComponent("parallel",function(i,r){var o=new PO(i,t,e);o.name="parallel_"+r,o.resize(i,e),i.coordinateSystem=o,o.model=i,n.push(o)}),t.eachSeries(function(t){if("parallel"===t.get("coordinateSystem")){var e=t.getReferringComponents("parallel",$r).models[0];t.coordinateSystem=e.coordinateSystem}}),n}},RO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.activeIntervals=[],n}return m(e,t),e.prototype.getAreaSelectStyle=function(){return po([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var e=this.activeIntervals=F(t);if(e)for(var n=e.length-1;n>=0;n--)pr(e[n])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;i6}(t)||o){if(a&&!o){"single"===s.brushMode&&JO(t);var l=F(s);l.brushType=mT(l.brushType,a),l.panelId=a===NO?null:a.panelId,o=t._creatingCover=WO(t,l),t._covers.push(o)}if(o){var u=_T[mT(t._brushType,a)];o.__brushOption.range=u.getCreatingRange(dT(t,o,t._track)),i&&(YO(t,o),u.updateCommon(t,o)),qO(t,o),r={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&$O(t,e,n)&&JO(t)&&(r={isEnd:i,removeOnClick:!0});return r}function mT(t,e){return"auto"===t?e.defaultBrushType:t}var vT={mousedown:function(t){if(this._dragging)yT(this,t);else if(!t.target||!t.target.draggable){fT(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=$O(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);if(function(t,e,n){if(t._brushType&&!function(t,e,n){var i=t._zr;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}(t,e.offsetX,e.offsetY)){var i=t._zr,r=t._covers,o=$O(t,e,n);if(!t._dragging)for(var a=0;a=0&&(o[r[a].depth]=new sh(r[a],this,e));if(i&&n)return GI(i,n,this,!0,function(t,e){t.wrapMethod("getItemModel",function(t,e){var n=t.parentModel,i=n.getData().getItemLayout(e);if(i){var r=n.levelModels[i.depth];r&&(t.parentModel=r)}return t}),e.wrapMethod("getItemModel",function(t,e){var n=t.parentModel,i=n.getGraph().getEdgeByIndex(e).node1.getLayout();if(i){var r=n.levelModels[i.depth];r&&(t.parentModel=r)}return t})}).data},e.prototype.setNodePosition=function(t,e){var n=this.option.data[t];n.localX=e[0],n.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,n){function i(t){return isNaN(t)||null==t}if("edge"===n){var r=this.getDataParams(t,n),o=r.data,a=r.value;return Cp("nameValue",{name:o.source+" -- "+o.target,value:a,noValue:i(a)})}var s=this.getGraph().getNodeByIndex(t).getLayout().value,l=this.getDataParams(t,n).data.name;return Cp("nameValue",{name:null!=l?l+"":null,value:s,noValue:i(s)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(e).getLayout().value;i.value=r}return i},e.type="series.sankey",e.defaultOption={zlevel:0,z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(Wp);function LT(t,e){t.eachSeriesByType("sankey",function(t){var n=t.get("nodeWidth"),i=t.get("nodeGap"),r=function(t,e){return ld(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=r;var o=r.width,a=r.height,s=t.getGraph(),l=s.nodes,u=s.edges;!function(t){q(t,function(t){var e=WT(t.outEdges,UT),n=WT(t.inEdges,UT),i=t.getValue()||0,r=Math.max(e,n,i);t.setLayout({value:r},!0)})}(l),function(t,e,n,i,r,o,a,s,l){(function(t,e,n,i,r,o,a){for(var s=[],l=[],u=[],c=[],h=0,d=0;d=0;v&&m.depth>f&&(f=m.depth),g.setLayout({depth:v?m.depth:h},!0),g.setLayout("vertical"===o?{dy:n}:{dx:n},!0);for(var y=0;yh-1?f:h-1;a&&"left"!==a&&function(t,e,n,i){if("right"===e){for(var r=[],o=t,a=0;o.length;){for(var s=0;s0;o--)zT(s,l*=.99,a),FT(s,r,n,i,a),YT(s,l,a),FT(s,r,n,i,a)}(t,e,o,r,i,a,s),function(t,e){var n="vertical"===e?"x":"y";q(t,function(t){t.outEdges.sort(function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]}),t.inEdges.sort(function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]})}),q(t,function(t){var e=0,n=0;q(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy}),q(t.inEdges,function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy})})}(t,s)}(l,u,n,i,o,a,0!==K(l,function(t){return 0===t.getLayout().value}).length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))})}function NT(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function FT(t,e,n,i,r){var o="vertical"===r?"x":"y";q(t,function(t){var a,s,l;t.sort(function(t,e){return t.getLayout()[o]-e.getLayout()[o]});for(var u=0,c=t.length,h="vertical"===r?"dx":"dy",d=0;d0&&(a=s.getLayout()[o]+l,s.setLayout("vertical"===r?{x:a}:{y:a},!0)),u=s.getLayout()[o]+s.getLayout()[h]+e;if((l=u-e-("vertical"===r?i:n))>0)for(a=s.getLayout()[o]-l,s.setLayout("vertical"===r?{x:a}:{y:a},!0),u=a,d=c-2;d>=0;--d)(l=(s=t[d]).getLayout()[o]+s.getLayout()[h]+e-u)>0&&(a=s.getLayout()[o]-l,s.setLayout("vertical"===r?{x:a}:{y:a},!0)),u=s.getLayout()[o]})}function zT(t,e,n){q(t.slice().reverse(),function(t){q(t,function(t){if(t.outEdges.length){var i=WT(t.outEdges,VT,n)/WT(t.outEdges,UT);if(isNaN(i)){var r=t.outEdges.length;i=r?WT(t.outEdges,BT,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-GT(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-GT(t,n))*e;t.setLayout({y:a},!0)}}})})}function VT(t,e){return GT(t.node2,e)*t.getValue()}function BT(t,e){return GT(t.node2,e)}function HT(t,e){return GT(t.node1,e)*t.getValue()}function jT(t,e){return GT(t.node1,e)}function GT(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function UT(t){return t.getValue()}function WT(t,e,n){for(var i=0,r=t.length,o=-1;++oi&&(i=e)}),q(e,function(e){var r=new xA({type:"color",mappingMethod:"linear",dataExtent:[n,i],visual:t.get("color")}).mapValueToVisual(e.getLayout().value),o=e.getModel().get(["itemStyle","color"]);null!=o?(e.setVisual("color",o),e.setVisual("style",{fill:o})):(e.setVisual("color",r),e.setVisual("style",{fill:r}))})}})}var XT=function(){function t(){}return t.prototype.getInitialData=function(t,e){var n,i,r=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(t.layout="horizontal",n=r.getOrdinalMeta(),i=!0):"category"===s?(t.layout="vertical",n=o.getOrdinalMeta(),i=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u="horizontal"===t.layout?0:1,c=this._baseAxisDim=l[u],h=l[1-u],d=[r,o],f=d[u].get("type"),p=d[1-u].get("type"),g=t.data;if(g&&i){var m=[];q(g,function(t,e){var n;et(t)?(n=t.slice(),t.unshift(e)):et(t.value)?(n=t.value.slice(),t.value.unshift(e)):n=t,m.push(n)}),t.data=m}var v=this.defaultValueDimensions,y=[{name:c,type:V_(f),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:h,type:V_(p),dimsDef:v.slice()}];return sC(this,{coordDimensions:y,dimensionsCount:v.length+1,encodeDefaulter:tt(Td,y,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),ZT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}return m(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(Wp);W(ZT,XT,!0);var KT=ZT,$T=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===t.get("layout")?1:0;i.diff(o).add(function(t){if(i.hasValue(t)){var e=tD(i.getItemLayout(t),i,t,a,!0);i.setItemGraphicEl(t,e),r.add(e)}}).update(function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?eD(s,n,i,t):n=tD(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)}).execute(),this._data=i},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl(function(t){t&&e.remove(t)})},e.type="boxplot",e}(ig),QT=function(){},JT=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return m(e,t),e.prototype.getDefaultShape=function(){return new QT},e.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();ig)&&i.push([v,_])}}return{boxData:n,outliers:i}}(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}},lD=["color","borderColor"],uD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,i){this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),n=this._data,i=this.group,r=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),e.diff(n).add(function(n){if(e.hasValue(n)){var a=e.getItemLayout(n);if(o&&fD(s,a))return;var l=dD(a,0,!0);vc(l,{shape:{points:a.ends}},t,n),pD(l,e,n,r),i.add(l),e.setItemGraphicEl(n,l)}}).update(function(a,l){var u=n.getItemGraphicEl(l);if(e.hasValue(a)){var c=e.getItemLayout(a);o&&fD(s,c)?i.remove(u):(u?mc(u,{shape:{points:c.ends}},t,a):u=dD(c),pD(u,e,a,r),i.add(u),e.setItemGraphicEl(a,u))}else i.remove(u)}).remove(function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)}).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),yD(t,this.group);var e=t.get("clip",!0)?vk(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){for(var n,i=e.getData(),r=i.getLayout("isSimpleBox");null!=(n=t.next());){var o=dD(i.getItemLayout(n));pD(o,i,n,r),o.incremental=!0,this.group.add(o)}},e.prototype._incrementalRenderLarge=function(t,e){yD(e,this.group,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(ig),cD=function(){},hD=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return m(e,t),e.prototype.getDefaultShape=function(){return new cD},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(ds);function dD(t,e,n){var i=t.ends;return new hD({shape:{points:n?gD(i,t):i},z2:100})}function fD(t,e){for(var n=!0,i=0;i0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]),o=n.getModel("itemStyle").getItemStyle(lD);e.useStyle(o),e.style.fill=null,e.style.stroke=r}var bD=uD,xD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return m(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var i=e.getItemLayout(t);return i&&n.rect(i.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(Wp);W(xD,XT,!0);var wD=xD;function kD(t){t&&et(t.series)&&q(t.series,function(t){at(t)&&"k"===t.type&&(t.type="candlestick")})}var CD=["itemStyle","borderColor"],SD=["itemStyle","borderColor0"],MD=["itemStyle","color"],AD=["itemStyle","color0"],ID={seriesType:"candlestick",plan:Xp(),performRawSeries:!0,reset:function(t,e){function n(t,e){return e.get(t>0?MD:AD)}function i(t,e){return e.get(t>0?CD:SD)}if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var r;null!=(r=t.next());){var o=e.getItemModel(r),a=e.getItemLayout(r).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=i(a,o)||s.fill,B(e.ensureUniqueItemVisual(r,"style"),s)}}}}},OD="undefined"!=typeof Float32Array?Float32Array:Array;function TD(t,e,n,i,r){return n>i?-1:n0?t.get(r,e-1)<=i?1:-1:1}var DD={seriesType:"candlestick",plan:Xp(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),i=function(t,e){var n,i=t.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=dr(gt(t.get("barMaxWidth"),r),r),a=dr(gt(t.get("barMinWidth"),1),r),s=t.get("barWidth");return null!=s?dr(s,r):Math.max(Math.min(r/2,o),a)}(t,n),r=["x","y"],o=n.mapDimension(r[0]),a=n.mapDimensionsAll(r[1]),s=a[0],l=a[1],u=a[2],c=a[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(null==o||a.length<4))return{progress:t.pipelineContext.large?function(t,n){for(var i,r,a=new OD(4*t.count),h=0,d=[],f=[];null!=(r=t.next());){var p=n.get(o,r),g=n.get(s,r),m=n.get(l,r),v=n.get(u,r),y=n.get(c,r);isNaN(p)||isNaN(v)||isNaN(y)?(a[h++]=NaN,h+=3):(a[h++]=TD(n,r,g,m,l),d[0]=p,d[1]=v,i=e.dataToPoint(d,null,f),a[h++]=i?i[0]:NaN,a[h++]=i?i[1]:NaN,d[1]=y,i=e.dataToPoint(d,null,f),a[h++]=i?i[1]:NaN)}n.setLayout("largePoints",a)}:function(t,n){for(var r;null!=(r=t.next());){var a=n.get(o,r),h=n.get(s,r),d=n.get(l,r),f=n.get(u,r),p=n.get(c,r),g=Math.min(h,d),m=Math.max(h,d),v=w(g,a),y=w(m,a),_=w(f,a),b=w(p,a),x=[];k(x,y,0),k(x,v,1),x.push(S(b),S(y),S(_),S(v)),n.setItemLayout(r,{sign:TD(n,r,h,d,l),initBaseline:h>d?y[1]:v[1],ends:x,brushRect:C(f,p,a)})}function w(t,n){var i=[];return i[0]=n,i[1]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function k(t,e,n){var r=e.slice(),o=e.slice();r[0]=pc(r[0]+i/2,1,!1),o[0]=pc(o[0]-i/2,1,!0),n?t.push(r,o):t.push(o,r)}function C(t,e,n){var r=w(t,n),o=w(e,n);return r[0]-=i/2,o[0]-=i/2,{x:r[0],y:r[1],width:i,height:o[1]-r[1]}}function S(t){return t[0]=pc(t[0],1),t}}}}};function PD(t,e){var n=e.rippleEffectColor||e.color;t.eachChild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})})}var ED=function(t){function e(e,n){var i=t.call(this)||this,r=new $w(e,n),o=new tr;return i.add(r),i.add(o),i.updateData(e,n),i}return m(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=this.childAt(1),r=0;r<3;r++){var o=jm(e,-1,-1,2,2,n);o.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scaleX:.5,scaleY:.5});var a=-r/3*t.period+t.effectOffset;o.animate("",!0).when(t.period,{scaleX:t.rippleScale/2,scaleY:t.rippleScale/2}).delay(a).start(),o.animateStyle(!0).when(t.period,{opacity:0}).delay(a).start(),i.add(o)}PD(i,t)},e.prototype.updateEffectAnimation=function(t){for(var e=this._effectCfg,n=this.childAt(1),i=["symbolType","period","rippleScale"],r=0;r0&&(a=this._getLineLength(i)/l*1e3),(a!==this._period||s!==this._loop)&&(i.stopAnimation(),a>0)){var c=void 0;c="function"==typeof u?u(n):u,i.__t>0&&(c=-a*i.__t),i.__t=0;var h=i.animate("",s).when(a,{__t:1}).delay(c).during(function(){r._updateSymbolPosition(i)});s||h.done(function(){r.remove(i)}),h.start()}this._period=a,this._loop=s}},e.prototype._getLineLength=function(t){return Zt(t.__p1,t.__cp1)+Zt(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t,o=[t.x,t.y],a=o.slice(),s=aa,l=sa;o[0]=s(e[0],i[0],n[0],r),o[1]=s(e[1],i[1],n[1],r);var u=l(e[0],i[0],n[0],r),c=l(e[1],i[1],n[1],r);t.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT=0&&!(i[o]<=e);o--);o=Math.min(o,r-2)}else{for(o=a;oe);o++);o=Math.min(o-1,r-2)}var s=(e-i[o])/(i[o+1]-i[o]),l=n[o],u=n[o+1];t.x=l[0]*(1-s)+s*u[0],t.y=l[1]*(1-s)+s*u[1],t.rotation=-Math.atan2(u[1]-l[1],u[0]-l[0])-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(ND),VD=function(){this.polyline=!1,this.curveness=0,this.segs=[]},BD=function(t){function e(e){return t.call(this,e)||this}return m(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new VD},e.prototype.buildPath=function(t,e){var n=e.segs,i=e.curveness;if(e.polyline)for(var r=0;r0){t.moveTo(n[r++],n[r++]);for(var a=1;a0?t.quadraticCurveTo((s+u)/2-(l-c)*i,(l+c)/2-(u-s)*i,u,c):t.lineTo(u,c)}},e.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s0)for(var u=i[s++],c=i[s++],h=1;h0){if(Za(u,c,(u+d)/2-(c-f)*r,(c+f)/2-(d-u)*r,d,f,o,t,e))return a}else if(qa(u,c,d,f,o,t,e))return a;a++}return-1},e}(ds),HD=function(){function t(){this.group=new tr}return t.prototype.isPersistent=function(){return!this._incremental},t.prototype.updateData=function(t){this.group.removeAll();var e=new BD({rectHover:!0,cursor:"default"});e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t),this.group.add(e),this._incremental=null},t.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clearIncremental(),t.count()>5e5?(this._incremental||(this._incremental=new Ju({silent:!0})),this.group.add(this._incremental)):this._incremental=null},t.prototype.incrementalUpdate=function(t,e){var n=new BD;n.setShape({segs:e.getLayout("linesPoints")}),this._setCommon(n,e,!!this._incremental),this._incremental?this._incremental.addDisplayable(n,!0):(n.rectHover=!0,n.cursor="default",n.__startIndex=t.start,this.group.add(n))},t.prototype.remove=function(){this._clearIncremental(),this._incremental=null,this.group.removeAll()},t.prototype._setCommon=function(t,e,n){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var r=e.getVisual("style");if(r&&r.stroke&&t.setStyle("stroke",r.stroke),t.setStyle("fill",null),!n){var o=Vs(t);o.seriesIndex=i.seriesIndex,t.on("mousemove",function(e){o.dataIndex=null;var n=t.findDataIndex(e.offsetX,e.offsetY);n>0&&(o.dataIndex=n+t.__startIndex)})}},t.prototype._clearIncremental=function(){var t=this._incremental;t&&t.clearDisplaybles()},t}(),jD={seriesType:"lines",plan:Xp(),reset:function(t){var e=t.coordinateSystem,n=t.get("polyline"),i=t.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,c=r.start;c ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(Wp);function XD(t){return t instanceof Array||(t=[t,t]),t}var ZD={seriesType:"lines",reset:function(t){var e=XD(t.get("symbol")),n=XD(t.get("symbolSize")),i=t.getData();return i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?function(t,e){var n=t.getItemModel(e),i=XD(n.getShallow("symbol",!0)),r=XD(n.getShallow("symbolSize",!0));i[0]&&t.setItemVisual(e,"fromSymbol",i[0]),i[1]&&t.setItemVisual(e,"toSymbol",i[1]),r[0]&&t.setItemVisual(e,"fromSymbolSize",r[0]),r[1]&&t.setItemVisual(e,"toSymbolSize",r[1])}:null}}},KD=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=j();this.canvas=t}return t.prototype.update=function(t,e,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,h=c.getContext("2d"),d=t.length;c.width=e,c.height=n;for(var f=0;f0){var S=o(v)?s:l;v>0&&(v=v*k+w),_[b++]=S[C],_[b++]=S[C+1],_[b++]=S[C+2],_[b++]=S[C+3]*v*256}else b+=4}return h.putImageData(y,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=j()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},t}();function $D(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var QD=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i;e.eachComponent("visualMap",function(e){e.eachTargetSeries(function(n){n===t&&(i=e)})}),this.group.removeAll(),this._incrementalDisplayable=null;var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):$D(r)&&this._renderOnGeo(r,t,i,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,i){var r=e.coordinateSystem;r&&($D(r)?this.render(e,n,i):this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0))},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,r){var o,a,s,l,u=t.coordinateSystem;if(yk(u,"cartesian2d")){var c=u.getAxis("x"),h=u.getAxis("y");o=c.getBandWidth(),a=h.getBandWidth(),s=c.scale.getExtent(),l=h.scale.getExtent()}for(var d=this.group,f=t.getData(),p=t.getModel(["emphasis","itemStyle"]).getItemStyle(),g=t.getModel(["blur","itemStyle"]).getItemStyle(),m=t.getModel(["select","itemStyle"]).getItemStyle(),v=zc(t),y=t.get(["emphasis","focus"]),_=t.get(["emphasis","blurScope"]),b=yk(u,"cartesian2d")?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],x=n;xs[1]||Sl[1])continue;var M=u.dataToPoint([C,S]);w=new As({shape:{x:Math.floor(Math.round(M[0])-o/2),y:Math.floor(Math.round(M[1])-a/2),width:Math.ceil(o),height:Math.ceil(a)},style:k})}else{if(isNaN(f.get(b[1],x)))continue;w=new As({z2:1,shape:u.dataToRect([f.get(b[0],x)]).contentShape,style:k})}var A=f.getItemModel(x);if(f.hasItemOption){var I=A.getModel("emphasis");p=I.getModel("itemStyle").getItemStyle(),g=A.getModel(["blur","itemStyle"]).getItemStyle(),m=A.getModel(["select","itemStyle"]).getItemStyle(),y=I.get("focus"),_=I.get("blurScope"),v=zc(A)}var O=t.getRawValue(x),T="-";O&&null!=O[2]&&(T=O[2]+""),Fc(w,v,{labelFetcher:t,labelDataIndex:x,defaultOpacity:k.opacity,defaultText:T}),w.ensureState("emphasis").style=p,w.ensureState("blur").style=g,w.ensureState("select").style=m,Ml(w,y,_),w.incremental=r,r&&(w.states.emphasis.hoverLayer=!0),d.add(w),f.setItemGraphicEl(x,w)}},e.prototype._renderOnGeo=function(t,e,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new KD;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),u=t.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),h=Math.max(l.y,0),d=Math.min(l.width+l.x,i.getWidth()),f=Math.min(l.height+l.y,i.getHeight()),p=d-c,g=f-h,m=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(m,function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=c,r[1]-=h,r.push(i),r}),y=n.getExtent(),_="visualMap.continuous"===n.type?function(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}(y,n.option.range):function(t,e,n){var i=t[1]-t[0],r=(e=X(e,function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}})).length,o=0;return function(t){var i;for(i=o;i=0;i--){var a;if((a=e[i].interval)[0]<=t&&t<=a[1]){o=i;break}}return i>=0&&i0?1:o<0?-1:0}(n,o,r,i,h),function(t,e,n,i,r,o,a,s,l,u){var c,h=l.valueDim,d=l.categoryDim,f=Math.abs(n[d.wh]),p=t.getItemVisual(e,"symbolSize");(c=et(p)?p.slice():null==p?["100%","100%"]:[p,p])[d.index]=dr(c[d.index],f),c[h.index]=dr(c[h.index],i?f:Math.abs(o)),u.symbolSize=c,(u.symbolScale=[c[0]/s,c[1]/s])[h.index]*=(l.isHorizontal?-1:1)*a}(t,e,r,o,0,h.boundingLength,h.pxSign,u,i,h),function(t,e,n,i,r){var o=t.get(tP)||0;o&&(nP.attr({scaleX:e[0],scaleY:e[1],rotation:n}),nP.updateTransform(),o/=nP.getLineScale(),o*=e[i.valueDim.index]),r.valueLineWidth=o}(n,h.symbolScale,l,i,h);var d=h.symbolSize,f=n.get("symbolOffset");return et(f)&&(f=[dr(f[0],d[0]),dr(f[1],d[1])]),function(t,e,n,i,r,o,a,s,l,u,c,h){var d=c.categoryDim,f=c.valueDim,p=h.pxSign,g=Math.max(e[f.index]+s,0),m=g;if(i){var v=Math.abs(l),y=pt(t.get("symbolMargin"),"15%")+"",_=!1;y.lastIndexOf("!")===y.length-1&&(_=!0,y=y.slice(0,y.length-1));var b=dr(y,e[f.index]),x=Math.max(g+2*b,0),w=_?0:2*b,k=Dr(i),C=k?i:_P((v+w)/x);x=g+2*(b=(v-C*g)/2/(_?C:C-1)),w=_?0:2*b,k||"fixed"===i||(C=u?_P((Math.abs(u)+w)/x):0),m=C*x-w,h.repeatTimes=C,h.symbolMargin=b}var S=p*(m/2),M=h.pathPosition=[];M[d.index]=n[d.wh]/2,M[f.index]="start"===a?S:"end"===a?l-S:l/2,o&&(M[0]+=o[0],M[1]+=o[1]);var A=h.bundlePosition=[];A[d.index]=n[d.xy],A[f.index]=n[f.xy];var I=h.barRectShape=B({},n);I[f.wh]=p*Math.max(Math.abs(n[f.wh]),Math.abs(M[f.index]+S)),I[d.wh]=n[d.wh];var O=h.clipShape={};O[d.xy]=-n[d.xy],O[d.wh]=c.ecSize[d.wh],O[f.xy]=0,O[f.wh]=n[f.wh]}(n,d,r,o,0,f,s,h.valueLineWidth,h.boundingLength,h.repeatCutLength,i,h),h}function rP(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function oP(t){var e=t.symbolPatternSize,n=jm(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function aP(t,e,n,i){var r=t.__pictorialBundle,o=n.pathPosition,a=e.valueDim,s=n.repeatTimes||0,l=0,u=n.symbolSize[e.valueDim.index]+n.valueLineWidth+2*n.symbolMargin;for(mP(t,function(t){t.__pictorialAnimationIndex=l,t.__pictorialRepeatTimes=s,l0:i<0)&&(r=s-1-t),e[a.index]=u*(r-s/2+.5)+o[a.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function sP(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?vP(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=t.__pictorialMainPath=oP(n),r.add(o),vP(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function lP(t,e,n){var i=B({},e.barRectShape),r=t.__pictorialBarRect;r?vP(r,null,{shape:i},e,n):(r=t.__pictorialBarRect=new As({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}}),t.add(r))}function uP(t,e,n,i){if(n.symbolClip){var r=t.__pictorialClipPath,o=B({},n.clipShape),a=e.valueDim,s=n.animationModel,u=n.dataIndex;if(r)mc(r,{shape:o},s,u);else{o[a.wh]=0,r=new As({shape:o}),t.__pictorialBundle.setClipPath(r),t.__pictorialClipPath=r;var c={};c[a.wh]=n.clipShape[a.wh],l[i?"updateProps":"initProps"](r,{shape:c},s,u)}}}function cP(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=hP,n.isAnimationEnabled=dP,n}function hP(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function dP(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function fP(t,e,n,i){var r=new tr,o=new tr;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?aP(r,e,n):sP(r,0,n),lP(r,n,i),uP(r,e,n,i),r.__pictorialShapeStr=gP(t,n),r.__pictorialSymbolMeta=n,r}function pP(t,e,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];mP(i,function(t){o.push(t)}),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),q(o,function(t){yc(t,{scaleX:0,scaleY:0},n,e,function(){i.parent&&i.parent.remove(i)})}),t.setItemGraphicEl(e,null)}function gP(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function mP(t,e,n){q(t.__pictorialBundle.children(),function(i){i!==t.__pictorialBarRect&&e.call(n,i)})}function vP(t,e,n,i,r,o){e&&t.attr(e),i.symbolClip&&!r?n&&t.attr(n):n&&l[r?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,o)}function yP(t,e,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),c=o.get("focus"),h=o.get("blurScope"),d=o.get("scale");mP(t,function(t){if(t instanceof _s){var e=t.style;t.useStyle(B({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var i=t.ensureState("emphasis");i.style=a,d&&(i.scaleX=1.1*t.scaleX,i.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,u&&(t.cursor=u),t.z2=n.z2});var f=e.valueDim.posDesc[+(n.boundingLength>0)];Fc(t.__pictorialBarRect,zc(r),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:Xw(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:f}),Ml(t,c,h)}function _P(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var bP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i=this.group,r=t.getData(),o=this._data,a=t.coordinateSystem,s=a.getBaseAxis().isHorizontal(),l=a.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:eP[+s],categoryDim:eP[1-+s]};return r.diff(o).add(function(t){if(r.hasValue(t)){var e=cP(r,t),n=iP(r,t,e,u),o=fP(r,u,n);r.setItemGraphicEl(t,o),i.add(o),yP(o,u,n)}}).update(function(t,e){var n=o.getItemGraphicEl(e);if(r.hasValue(t)){var a=cP(r,t),s=iP(r,t,a,u),l=gP(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(t,null),n=null),n?function(t,e,n){mc(t.__pictorialBundle,{x:n.bundlePosition[0],y:n.bundlePosition[1]},n.animationModel,n.dataIndex),n.symbolRepeat?aP(t,e,n,!0):sP(t,0,n,!0),lP(t,n,!0),uP(t,e,n,!0)}(n,u,s):n=fP(r,u,s,!0),r.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,i.add(n),yP(n,u,s)}else i.remove(n)}).remove(function(t){var e=o.getItemGraphicEl(t);e&&pP(o,t,e.__pictorialSymbolMeta.animationModel,e)}).execute(),this._data=r,this.group},e.prototype.remove=function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(e){pP(i,Vs(e).dataIndex,t,e)}):n.removeAll()},e.type="pictorialBar",e}(ig),xP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}return m(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=ch(Pk.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(Pk),wP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return m(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this,o=this.group,a=t.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(t){return t.name}o.x=0,o.y=l.y+u[0];var h=new F_(this._layersSeries||[],a,c,c),d=[];function f(e,n,s){var l=r._layers;if("remove"!==e){for(var u,c,h=[],f=[],p=a[n].indices,g=0;go&&(o=s),i.push(s)}for(var u=0;uo&&(o=h)}return{y0:r,max:o}}(l),c=u.y0,h=n/u.max,d=o.length,f=o[0].indices.length,p=0;pMath.PI/2?"right":"left"):w&&"center"!==w?"left"===w?(v=r.r0+x,a>Math.PI/2&&(w="right")):"right"===w&&(v=r.r-x,a>Math.PI/2&&(w="left")):(v=(r.r+r.r0)/2,w="center"),f.style.align=w,f.style.verticalAlign=p(o,"verticalAlign")||"middle",f.x=v*s+r.cx,f.y=v*l+r.cy;var k=p(o,"rotate"),C=0;"radial"===k?(C=-a)<-Math.PI/2&&(C+=Math.PI):"tangential"===k?(C=Math.PI/2-a)>Math.PI/2?C-=Math.PI:C<-Math.PI/2&&(C+=Math.PI):"number"==typeof k&&(C=k*Math.PI/180),f.rotation=C}),c.dirtyStyle()},e}(_u),AP="sunburstRootToNode",IP="sunburstHighlight",OP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n,i){var r=this;this.seriesModel=t,this.api=n,this.ecModel=e;var o=t.getData(),a=o.tree.root,s=t.getViewRoot(),l=this.group,u=t.get("renderLabelForZeroData"),c=[];s.eachNode(function(t){c.push(t)}),function(i,r){function s(t){return t.getId()}function c(s,c){!function(i,r){if(u||!i||i.getValue()||(i=null),i!==a&&r!==a)if(r&&r.piece)i?(r.piece.updateData(!1,i,t,e,n),o.setItemGraphicEl(i.dataIndex,r.piece)):(c=r)&&c.piece&&(l.remove(c.piece),c.piece=null);else if(i){var s=new MP(i,t,e,n);l.add(s),o.setItemGraphicEl(i.dataIndex,s)}var c}(null==s?null:i[s],null==c?null:r[c])}0===i.length&&0===r.length||new F_(r,i,s,s).add(c).update(c).remove(tt(c,null)).execute()}(c,this._oldChildren||[]),function(i,o){o.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,t,e,n):(r.virtualPiece=new MP(i,t,e,n),l.add(r.virtualPiece)),o.piece.off("click"),r.virtualPiece.on("click",function(t){r._rootToNode(o.parentNode)})):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}(a,s),this._initEvents(),this._oldChildren=c},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",function(e){var n=!1;t.seriesModel.getViewRoot().eachNode(function(i){if(!n&&i.piece&&i.piece===e.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");a&&nd(a,o.get("target",!0)||"_blank")}n=!0}})})},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:AP,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},e.type="sunburst",e}(ig);function TP(t){var e=0;q(t.children,function(t){TP(t);var n=t.value;et(n)&&(n=n[0]),e+=n});var n=t.value;et(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),et(t.value)?t.value[0]=n:t.value=n}var DP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return m(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};TP(n);var i=X(t.levels||[],function(t){return new sh(t,this,e)},this),r=LM.createTree(n,this,function(t){t.wrapMethod("getItemModel",function(t,e){var n=r.getNodeByDataIndex(e),o=i[n.depth];return o&&(t.parentModel=o),t})});return r.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=VM(i,this),n},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){YM(this)},e.type="series.sunburst",e.defaultOption={zlevel:0,z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],levels:[],sort:"desc"},e}(Wp),PP=Math.PI/180;function EP(t,e,n){e.eachSeriesByType(t,function(t){var e=t.get("center"),i=t.get("radius");et(i)||(i=[0,i]),et(e)||(e=[e,e]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=dr(e[0],r),l=dr(e[1],o),u=dr(i[0],a/2),c=dr(i[1],a/2),h=-t.get("startAngle")*PP,d=t.get("minAngle")*PP,f=t.getData().tree.root,p=t.getViewRoot(),g=p.depth,m=t.get("sort");null!=m&&RP(p,m);var v=0;q(p.children,function(t){!isNaN(t.getValue())&&v++});var y=p.getValue(),_=Math.PI/(y||v)*2,b=p.depth>0,x=(c-u)/(p.height-(b?-1:1)||1),w=t.get("clockwise"),k=t.get("stillShowZeroSum"),C=w?1:-1;if(b){var S=2*Math.PI;f.setLayout({angle:S,startAngle:h,endAngle:h+S,clockwise:w,cx:s,cy:l,r0:u,r:u+x})}!function t(e,n){if(e){var i=n;if(e!==f){var r=e.getValue(),o=0===y&&k?_:r*_;o1;)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",e);return t.depth>1&&"string"==typeof o&&(o=hn(o,(t.depth-1)/(i-1)*.5)),o}(r,t,i.root.height)),B(n.ensureUniqueItemVisual(r.dataIndex,"style"),o)})})}function NP(t,e){return e=e||[0,0],X(["x","y"],function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))},this)}function FP(t,e){return e=e||[0,0],X([0,1],function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])},this)}function zP(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function VP(t,e){return e=e||[0,0],X(["Radius","Angle"],function(n,i){var r=this["get"+n+"Axis"](),o=e[i],a=t[i]/2,s="category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a));return"Angle"===n&&(s=s*Math.PI/180),s},this)}function BP(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||It(t,"text")))}function HP(t,e,n){var i,r,o,a=t;if("text"===e)o=a;else{o={},It(a,"text")&&(o.text=a.text),It(a,"rich")&&(o.rich=a.rich),It(a,"textFill")&&(o.fill=a.textFill),It(a,"textStroke")&&(o.stroke=a.textStroke),r={type:"text",style:o,silent:!0},i={};var s=It(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),It(a,"textPosition")&&(i.position=a.textPosition),It(a,"textOffset")&&(i.offset=a.textOffset),It(a,"textRotation")&&(i.rotation=a.textRotation),It(a,"textDistance")&&(i.distance=a.textDistance)}return jP(o,t),q(o.rich,function(t){jP(t,t)}),{textConfig:i,textContent:r}}function jP(t,e){e&&(e.font=e.textFont||e.font,It(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),It(e,"textAlign")&&(t.align=e.textAlign),It(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),It(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),It(e,"textWidth")&&(t.width=e.textWidth),It(e,"textHeight")&&(t.height=e.textHeight),It(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),It(e,"textPadding")&&(t.padding=e.textPadding),It(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),It(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),It(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),It(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),It(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),It(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),It(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function GP(t,e,n){var i=t;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,o=t.fill||"#000";UP(i,e);var a=null==i.textFill;return r?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=t.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,q(e.rich,function(t){UP(t,t)}),i}function UP(t,e){e&&(It(e,"fill")&&(t.textFill=e.fill),It(e,"stroke")&&(t.textStroke=e.fill),It(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),It(e,"font")&&(t.font=e.font),It(e,"fontStyle")&&(t.fontStyle=e.fontStyle),It(e,"fontWeight")&&(t.fontWeight=e.fontWeight),It(e,"fontSize")&&(t.fontSize=e.fontSize),It(e,"fontFamily")&&(t.fontFamily=e.fontFamily),It(e,"align")&&(t.textAlign=e.align),It(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),It(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),It(e,"width")&&(t.textWidth=e.width),It(e,"height")&&(t.textHeight=e.height),It(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),It(e,"padding")&&(t.textPadding=e.padding),It(e,"borderColor")&&(t.textBorderColor=e.borderColor),It(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),It(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),It(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),It(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),It(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),It(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),It(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),It(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),It(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),It(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var WP=Ya.CMD,YP=2*Math.PI,qP=["x","y"],XP=["width","height"],ZP=[];function KP(t,e){return Math.abs(t-e)<1e-5}function $P(t){var e,n,i,r,o,a=t.data,s=t.len(),l=[],u=0,c=0,h=0,d=0;function f(t,n){e&&e.length>2&&l.push(e),e=[t,n]}function p(t,n,i,r){KP(t,i)&&KP(n,r)||e.push(t,n,i,r,i,r)}function g(t,n,i,r,o,a){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,u=nC:A2&&l.push(e),l}function QP(t,e){var n=t.length,i=e.length;if(n===i)return[t,e];for(var r=nh.width?1:0,r=XP[i],o=qP[i],a=h[r]/e,s=h[o],l=0;li[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:J(VP,t)}}},calendar:function(t){var e=t.getRect(),n=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}},TE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return bb(this.getSource(),this)},e.prototype.getDataParams=function(e,n,i){var r=t.prototype.getDataParams.call(this,e,n);return i&&(r.info=mE(i).info),r},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,clip:!1},e}(Wp),DE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n,i){var r=this._data,o=t.getData(),a=this.group,s=$E(t,o,e,n);r||a.removeAll();var l=t.__transientTransitionOpt;if(!l||null!=l.from&&null!=l.to){var u=new dR(t,l),c=l?"multiple":"oneToOne";new F_(r?r.getIndices():[],o.getIndices(),PE(r,c,l&&l.from),PE(o,c,l&&l.to),null,c).add(function(e){JE(n,null,e,s(e,i),t,a,o,null)}).remove(function(e){lR(r.getItemGraphicEl(e),t,a)}).update(function(e,l){u.reset("oneToOne");var c=r.getItemGraphicEl(l);u.findAndAddFrom(c),u.hasFrom()&&(hR(c,a),c=null),JE(n,c,e,s(e,i),t,a,o,u),u.applyMorphing()}).updateManyToOne(function(e,l){u.reset("manyToOne");for(var c=0;c=0){!s&&(s=r[t]={});var f=Q(l);for(h=0;h=0){var d=t.getAnimationStyleProps(),f=d?d.style:null;if(f){!a&&(a=r.style={});var p=Q(i);for(c=0;c=d;f--)lR(e.childAt(f),r,e)}}(t,e,n,i,r,s),l>=0?o.replaceAt(e,l):o.add(e),e}function eR(t,e){var n,i=mE(t),r=e.type,o=e.shape,a=e.style;return null!=r&&r!==i.customGraphicType||"path"===r&&(n=o)&&(It(n,"pathData")||It(n,"d"))&&uR(o)!==i.customPathData||"image"===r&&It(a,"image")&&a.image!==i.customImagePath}function nR(t,e,n){var i=e?iR(t,e):t,r=e?rR(t,i,_E):t.style,o=t.type,a=i?i.textConfig:null,s=t.textContent,l=s?e?iR(s,e):s:null;if(r&&(n.isLegacy||BP(r,o,!!a,!!l))){n.isLegacy=!0;var u=HP(r,o,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}!e&&l&&!l.type&&(l.type="text");var c=e?n[e]:n.normal;c.cfg=a,c.conOpt=l}function iR(t,e){return e?t?t[e]:null:t}function rR(t,e,n){var i=e&&e.style;return null==i&&n===_E&&t&&(i=t.styleEmphasis),i}function oR(t,e){var n=t&&t.name;return null!=n?n:"e\0\0"+e}function aR(t,e){var n=this.context;tR(n.api,null!=e?n.oldChildren[e]:null,n.dataIndex,null!=t?n.newChildren[t]:null,n.seriesModel,n.group,0,n.morphPreparation)}function sR(t){var e=this.context;lR(e.oldChildren[t],e.seriesModel,e.group)}function lR(t,e,n){if(t){var i=mE(t).leaveToProps;i?mc(t,i,e,{cb:function(){n.remove(t)}}):n.remove(t)}}function uR(t){return t&&(t.pathData||t.d)}function cR(t){return t&&t instanceof ds}function hR(t,e){t&&e.remove(t)}var dR=function(){function t(t,e){this._fromList=[],this._toList=[],this._toElOptionList=[],this._allPropsFinalList=[],this._toDataIndices=[],this._morphConfigList=[],this._seriesModel=t,this._transOpt=e}return t.prototype.hasFrom=function(){return!!this._fromList.length},t.prototype.findAndAddFrom=function(t){if(t&&(mE(t).canMorph&&this._fromList.push(t),t.isGroup))for(var e=t.childrenRef(),n=0;n=n?null:o,i+1>=e?n-o:r);else if("oneToMany"===t)for(var a=Math.max(1,Math.floor(e/n)),s=0,l=0;s=e?e-s:a,l>=n?null:l)},t.prototype._oneToOneForSingleTo=function(t,e){var n,i=this._toList[t],r=this._toElOptionList[t],o=this._toDataIndices[t],a=this._allPropsFinalList[t],s=this._fromList[e],l=this._getOrCreateMorphConfig(o),u=l.duration;if(s&&sE(s)){if(LE(i,a,r.style),u){var c=lE([s],i,l,fR);this._processResultIndividuals(c,t,null)}}else{var h=u&&s&&(s!==i||aE(n=s)||sE(n))?s:null,d={};FE("shape",i,h,r,d,!1),FE("extra",i,h,r,d,!1),VE(i,h,r,d,!1),BE(i,h,r,r.style,d,!1),LE(i,a,r.style),h&&iE(h,i,l),NE(i,o,r,this._seriesModel,d,!1)}},t.prototype._manyToOneForSingleTo=function(t,e,n){var i=this._toList[t];LE(i,this._allPropsFinalList[t],this._toElOptionList[t].style);var r=this._getOrCreateMorphConfig(this._toDataIndices[t]);if(r.duration&&null!=e){for(var o=[],a=e;aa)return!0;if(o){var s=YC(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;if(r){var o=pR(t).pointerEl=new l[r.type](gR(e.pointer));t.add(o)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=pR(t).labelEl=new zs(gR(e.label));t.add(r),_R(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=pR(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=pR(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),_R(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=Oc(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){be(t.event)},onmousedown:mR(this._onHandleDragMove,this,0,0),drift:mR(this._onHandleDragMove,this),ondragend:mR(this._onHandleDragEnd,this)}),i.add(r)),xR(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");et(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,lg(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){vR(this._axisPointerModel,!e&&this._moveAnimation,this._handle,bR(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(bR(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(bR(i)),pR(n).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null)},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}();function kR(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle()).fill=null:"shadow"===n&&((e=i.getAreaStyle()).stroke=null),e}function CR(t,e,n,i,r){var o=SR(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=Uh(a.get("padding")||0),l=a.getFont(),u=Ni(o,l),c=r.position,h=u.width+s[1]+s[3],d=u.height+s[0]+s[2],f=r.align;"right"===f&&(c[0]-=h),"center"===f&&(c[0]-=h/2);var p=r.verticalAlign;"bottom"===p&&(c[1]-=d),"middle"===p&&(c[1]-=d/2),function(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(c,h,d,i);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:Vc(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function SR(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:Sx(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};q(i,function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=e&&e.getDataParams(t.dataIndexInside);i&&s.seriesData.push(i)}),it(a)?o=a.replace("{value}",o):nt(a)&&(o=a(s))}return o}function MR(t,e,n){var i=[1,0,0,1,0,0];return ui(i,i,n.rotation),li(i,i,n.position),kc([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function AR(t,e,n,i,r,o){var a=GC.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),CR(e,i,r,o,{position:MR(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function IR(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function OR(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function TR(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var DR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=PR(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var c=kR(i),h=ER[s](o,u,l);h.style=c,t.graphicKey=h.type,t.pointer=h}AR(e,t,OC(a.model,n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=OC(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=MR(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=PR(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,h=[c,c];return h[l]=u[l],{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:h,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(wR);function PR(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var ER={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:IR([e,n[0]],[e,n[1]],RR(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth());return{type:"Rect",shape:OR([e-i/2,n[0]],[i,n[1]-n[0]],RR(t))}}};function RR(t){return"x"===t.dim?0:1}var LR=DR,NR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="axisPointer",e.defaultOption={show:"auto",zlevel:0,z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(md),FR=qr(),zR=q;function VR(t,e,n){if(!x.node){var i=e.getZr();FR(i).records||(FR(i).records={}),function(t,e){function n(n,i){t.on(n,function(n){var r=function(t){var e={showTip:[],hideTip:[]};return{dispatchAction:function n(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))},pendings:e}}(e);zR(FR(t).records,function(t){t&&i(t,n,r.dispatchAction)}),function(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}(r.pendings,e)})}FR(t).initialized||(FR(t).initialized=!0,n("click",tt(HR,"click")),n("mousemove",tt(HR,"mousemove")),n("globalout",BR))}(i,e),(FR(i).records[t]||(FR(i).records[t]={})).handler=n}}function BR(t,e,n){t.handler("leave",null,n)}function HR(t,e,n,i){e.handler(t,n,i)}function jR(t,e){if(!x.node){var n=e.getZr();(FR(n).records||{})[t]&&(FR(n).records[t]=null)}}var GR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";VR("axisPointer",n,function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})})},e.prototype.remove=function(t,e){jR("axisPointer",e)},e.prototype.dispose=function(t,e){jR("axisPointer",e)},e.type="axisPointer",e}(qp);function UR(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=Yr(o,t);if(null==a||a<0||et(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,h="x"===c||"radius"===c?1:0,d=o.mapDimension(u.dim),f=[];f[h]=o.get(d,a),f[1-h]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(o.getValues(X(l.dimensions,function(t){return o.mapDimension(t)}),a))||[];else if(s){var p=s.getBoundingRect().clone();p.applyTransform(s.transform),i=[p.x+p.width/2,p.y+p.height/2]}return{point:i,el:s}}var WR=qr();function YR(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||J(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){$R(r)&&(r=UR({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=$R(r),u=o.axesInfo,c=s.axesInfo,h="leave"===i||$R(r),d={},f={},p={list:[],map:{}},g={showPointer:tt(XR,f),showTooltip:tt(ZR,p)};q(s.coordSysMap,function(t,e){var n=l||t.containPoint(r);q(s.coordSysAxesInfo[e],function(t,e){var i=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(u,t);if(!h&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&qR(t,a,g,!1,d)}})});var m={};return q(c,function(t,e){var n=t.linkGroup;n&&!f[e]&&q(n.axesInfo,function(e,i){var r=f[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,KR(e),KR(t)))),m[t.key]=o}})}),q(m,function(t,e){qR(c[e],t,g,!0,d)}),function(t,e,n){var i=n.axesInfo=[];q(e,function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})})}(f,c,d),function(t,e,n,i){if(!$R(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}(p,r,t,a),function(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=WR(i)[r]||{},a=WR(i)[r]={};q(t,function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&q(n.seriesDataIndices,function(t){a[t.seriesIndex+" | "+t.dataIndex]=t})});var s=[],l=[];q(o,function(t,e){!a[e]&&l.push(t)}),q(a,function(t,e){!o[e]&&s.push(t)}),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(c,0,n),d}}function qR(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=function(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return q(e.seriesModels,function(e,l){var u,c,h=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(h,t,n);c=d.dataIndices,u=d.nestestValue}else{if(!(c=e.getData().indicesOfNearest(h[0],t,"category"===n.type?.5:null)).length)return;u=e.getData().get(h[0],c[0])}if(null!=u&&isFinite(u)){var f=t-u,p=Math.abs(f);p<=a&&((p=0&&s<0)&&(a=p,s=f,r=u,o.length=0),q(c,function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})}))}}),{payloadBatch:o,snapToValue:r}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&B(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function XR(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function ZR(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=XC(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function KR(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function $R(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function QR(t){KC.registerAxisPointerClass("CartesianAxisPointer",LR),t.registerComponentModel(NR),t.registerComponentView(GR),t.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!et(e)&&(t.axisPointer.link=[e])}}),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=function(t,e){var n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];q(n.getCoordinateSystems(),function(n){if(n.axisPointerEnabled){var s=XC(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model.getModel("tooltip",i);if(q(n.getAxes(),tt(f,!1,null)),n.getTooltipAxes&&i&&u.get("show")){var c="axis"===u.get("trigger"),h="cross"===u.get(["axisPointer","type"]),d=n.getTooltipAxes(u.get(["axisPointer","axis"]));(c||h)&&q(d.baseAxes,tt(f,!h||"cross",c)),h&&q(d.otherAxes,tt(f,"cross",!1))}}function f(i,s,c){var h=c.model.getModel("axisPointer",r),d=h.get("show");if(d&&("auto"!==d||i||qC(h))){null==s&&(s=h.get("triggerTooltip"));var f=(h=i?function(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s={};q(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(t){s[t]=F(a.get(t))}),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===r){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var c=s.lineStyle=a.get("crossStyle");c&&H(l,c.textStyle)}}return t.model.getModel("axisPointer",new sh(s,n,i))}(c,u,r,e,i,s):h).get("snap"),p=XC(c.model),g=s||f||"category"===c.type,m=t.axesInfo[p]={key:p,axis:c,coordSys:n,axisPointerModel:h,triggerTooltip:s,involveSeries:g,snap:f,useHandle:qC(h),seriesModels:[],linkGroup:null};l[p]=m,t.seriesInvolved=t.seriesInvolved||g;var v=function(t,e){for(var n=e.model,i=e.dim,r=0;rm?"left":"right",c=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}(e,n,0,a,i.get(["label","margin"]));CR(t,n,i,r,d)},e}(wR),tL={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:IR(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var r=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:TR(e.cx,e.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:TR(e.cx,e.cy,n-r/2,n+r/2,0,2*Math.PI)}}},eL=JR,nL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={zlevel:0,z:0,center:["50%","50%"],radius:"80%"},e}(md),iL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",$r).models[0]},e.type="polarAxis",e}(md);W(iL,Tx);var rL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="angleAxis",e}(iL),oL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="radiusAxis",e}(iL),aL=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return m(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(Yx);aL.prototype.dataToRadius=Yx.prototype.dataToCoord,aL.prototype.radiusToData=Yx.prototype.coordToData;var sL=aL,lL=qr(),uL=function(t){function e(e,n){return t.call(this,"angle",e,n||[0,360])||this}return m(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),n=t.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],a=t.dataToCoord(o+1)-t.dataToCoord(o),s=Math.abs(a),l=Ni(null==o?"":o+"",e.getFont(),"center","top"),u=Math.max(l.height,7)/s;isNaN(u)&&(u=1/0);var c=Math.max(0,Math.floor(u)),h=lL(t.model),d=h.lastAutoInterval,f=h.lastTickCount;return null!=d&&null!=f&&Math.abs(d-c)<=1&&Math.abs(f-r)<=1&&d>c?c=d:(h.lastTickCount=r,h.lastAutoInterval=c),c},e}(Yx);uL.prototype.dataToAngle=Yx.prototype.dataToCoord,uL.prototype.angleToData=Yx.prototype.coordToData;var cL=uL;function hL(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}var dL=function(){function t(t){this.dimensions=["radius","angle"],this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new sL,this._angleAxis=new cL,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){return this["_"+t+"Axis"]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=la;)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var n=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,r=n*n+i*i,o=this.r,a=this.r0;return r<=o*o&&r>=a*a}}},t.prototype.convertToPixel=function(t,e,n){return hL(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return hL(e)===this?this.pointToData(n):null},t}();function fL(t,e){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries(function(t){if(t.coordinateSystem===n){var e=t.getData();q(Ox(e,"radius"),function(t){r.scale.unionExtentFromData(e,t)}),q(Ox(e,"angle"),function(t){i.scale.unionExtentFromData(e,t)})}}),xx(i.scale,i.model),xx(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function pL(t,e){if(t.type=e.get("type"),t.scale=kx(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),function(t){return"angleAxis"===t.mainType}(e)){t.inverse=t.inverse!==e.get("clockwise");var n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}var gL={dimensions:dL.prototype.dimensions,create:function(t,e){var n=[];return t.eachComponent("polar",function(t,i){var r=new dL(i+"");r.update=fL;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");pL(o,s),pL(a,l),function(t,e,n){var i=e.get("center"),r=n.getWidth(),o=n.getHeight();t.cx=dr(i[0],r),t.cy=dr(i[1],o);var a=t.getRadiusAxis(),s=Math.min(r,o)/2,l=e.get("radius");null==l?l=[0,"100%"]:et(l)||(l=[0,l]);var u=[dr(l[0],s),dr(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}(r,t,e),n.push(r),t.coordinateSystem=r,r.model=t}),t.eachSeries(function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",$r).models[0];t.coordinateSystem=e.coordinateSystem}}),n}},mL=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function vL(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function yL(t){return t.getRadiusAxis().inverse?0:1}function _L(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var bL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return m(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=X(n.getViewLabels(),function(t){t=F(t);var e=n.scale,i="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(i),t});_L(s),_L(o),q(mL,function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||xL[e](this.group,t,i,o,a,r,s)},this)}},e.type="angleAxis",e}(KC),xL={axisLine:function(t,e,n,i,r,o){var a,s=e.getModel(["axisLine","lineStyle"]),l=yL(n),u=l?0:1;(a=0===o[u]?new eu({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new wu({shape:{cx:n.cx,cy:n.cy,r:o[l],r0:o[u]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(a)},axisTick:function(t,e,n,i,r,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[yL(n)],u=X(i,function(t){return new Ru({shape:vL(n,[l,l+s],t.coord)})});t.add(cc(u,{style:H(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[yL(n)],c=[],h=0;hp?"left":"right",v=Math.abs(f[1]-g)/d<.3?"middle":f[1]>g?"top":"bottom";if(s&&s[h]){var y=s[h];at(y)&&y.textStyle&&(a=new sh(y.textStyle,l,l.ecModel))}var _=new zs({silent:GC.isLabelSilent(e),style:Vc(a,{x:f[0],y:f[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:m,verticalAlign:v})});if(t.add(_),c){var b=GC.makeAxisEventDataBase(e);b.targetType="axisLabel",b.value=i.rawLabel,Vs(_).eventData=b}},this)},splitLine:function(t,e,n,i,r,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=0;c=0?"p":"n",M=b;y&&(i[s][C]||(i[s][C]={p:b,n:b}),M=i[s][C][S]);var A=void 0,I=void 0,O=void 0,T=void 0;if("radius"===h.dim){var D=h.dataToCoord(k)-b,P=o.dataToCoord(C);Math.abs(D)=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},t.prototype.convertToPixel=function(t,e,n){return GL(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return GL(e)===this?this.pointToData(n):null},t}(),WL={create:function(t,e){var n=[];return t.eachComponent("singleAxis",function(i,r){var o=new UL(i,t,e);o.name="single_"+r,o.resize(i,e),i.coordinateSystem=o,n.push(o)}),t.eachSeries(function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",$r).models[0];t.coordinateSystem=e&&e.coordinateSystem}}),n},dimensions:UL.prototype.dimensions},YL=["x","y"],qL=["width","height"],XL=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.coordinateSystem,s=$L(a,1-KL(o)),l=a.dataToPoint(e)[0],u=i.get("type");if(u&&"none"!==u){var c=kR(i),h=ZL[u](o,l,s);h.style=c,t.graphicKey=h.type,t.pointer=h}AR(e,t,RL(n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=RL(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=MR(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.coordinateSystem,a=KL(r),s=$L(o,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=$L(o,1-a),c=(u[1]+u[0])/2,h=[c,c];return h[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:h,tooltipOption:{verticalAlign:"middle"}}},e}(wR),ZL={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:IR([e,n[0]],[e,n[1]],KL(t))}},shadow:function(t,e,n){var i=t.getBandWidth();return{type:"Rect",shape:OR([e-i/2,n[0]],[i,n[1]-n[0]],KL(t))}}};function KL(t){return t.isHorizontal()?0:1}function $L(t,e){var n=t.getRect();return[n[YL[e]],n[YL[e]]+n[qL[e]]]}var QL=XL,JL=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="single",e}(qp);function tN(t,e){var n,i=t.cellSize;1===(n=et(i)?i:t.cellSize=[i,i]).length&&(n[1]=n[0]);var r=X([0,1],function(t){return function(t,e){return null!=t[od[e][0]]||null!=t[od[e][1]]&&null!=t[od[e][2]]}(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]});hd(t,e,{type:"box",ignoreSize:r})}var eN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(e,n,i){var r=dd(e);t.prototype.init.apply(this,arguments),tN(e,r)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),tN(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={zlevel:0,z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",nameMap:"en",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",nameMap:"en",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(md),nN={EN:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],CN:["\u4e00\u6708","\u4e8c\u6708","\u4e09\u6708","\u56db\u6708","\u4e94\u6708","\u516d\u6708","\u4e03\u6708","\u516b\u6708","\u4e5d\u6708","\u5341\u6708","\u5341\u4e00\u6708","\u5341\u4e8c\u6708"]},iN={EN:["S","M","T","W","T","F","S"],CN:["\u65e5","\u4e00","\u4e8c","\u4e09","\u56db","\u4e94","\u516d"]},rN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,a,i),this._renderWeekText(t,o,a,i)},e.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new As({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(u)}},e.prototype._renderLines=function(t,e,n,i){var r=this,o=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){d(u.formatedDate),0===c&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var h=u.date;h.setMonth(h.getMonth()+1),u=o.getDateInfo(h)}function d(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}d(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},e.prototype._getEdgesPoints=function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},e.prototype._drawSplitline=function(t,e,n){var i=new Tu({z2:20,shape:{points:t},style:e});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,r=i.getDateInfo(e),o=[],a=0;a<7;a++){var s=i.getNextNDay(r.time,a),l=i.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},e.prototype._formatterLabel=function(t,e){return"string"==typeof t&&t?(n=t,q(e,function(t,e){n=n.replace("{"+e+"}",t)}),n):"function"==typeof t?t(e):e.nameMap;var n},e.prototype._yearTextPositionControl=function(t,e,n,i,r){var o=e[0],a=e[1],s=["center","bottom"];"bottom"===i?(a+=r,s=["center","top"]):"left"===i?o-=r:"right"===i?(o+=r,s=["center","top"]):a-=r;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,i){var r=t.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==n?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===n?0:1,h={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var f=r.get("formatter"),p=this._formatterLabel(f,{start:e.start.y,end:e.end.y,nameMap:d}),g=new zs({z2:30,style:Vc(r,{text:p})});g.attr(this._yearTextPositionControl(g,h[a],n,a,o)),i.add(g)}},e.prototype._monthTextPositionControl=function(t,e,n,i,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(o="center"),"start"===i&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,n){var i=t.getModel("monthLabel");if(i.get("show")){var r=i.get("nameMap"),o=i.get("margin"),a=i.get("position"),s=i.get("align"),l=[this._tlpoints,this._blpoints];it(r)&&(r=nN[r.toUpperCase()]||[]);var u="start"===a?0:1,c="horizontal"===e?0:1;o="start"===a?-o:o;for(var h="center"===s,d=0;d=i.start.time&&n.timea.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var i=Math.floor(n[1].time/oN)-Math.floor(n[0].time/oN)+1,r=new Date(n[0].time),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a)for(var l=r.getTime()-n[1].time>0?1:-1;(s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0;)i-=l,r.setDate(s-l);var u=Math.floor((i+n[0].day+6)/7),c=e?1-u:u-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:c,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&ei.lweek)return null;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},t.create=function(e,n){var i=[];return e.eachComponent("calendar",function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o}),e.eachSeries(function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])}),i},t.dimensions=["time","value"],t}(),lN=qr(),uN={path:null,compoundPath:null,group:tr,image:_s,text:zs},cN=function(t){var e=t.graphic;et(e)?t.graphic=e[0]&&e[0].elements?[t.graphic[0]]:[{elements:e}]:e&&!e.elements&&(t.graphic=[{elements:[e]}])},hN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventAutoZ=!0,n}return m(e,t),e.prototype.mergeOption=function(e,n){var i=this.option.elements;this.option.elements=null,t.prototype.mergeOption.call(this,e,n),this.option.elements=i},e.prototype.optionUpdated=function(t,e){var n=this.option,i=(e?n:t).elements,r=n.elements=e?[]:n.elements,o=[];this._flatten(i,o,null);var a=Br(r,o,"normalMerge"),s=this._elOptionsToUpdate=[];q(a,function(t,e){var n=t.newOption;n&&(s.push(n),function(t,e){var n=t.existing;if(e.id=t.keyInfo.id,!e.type&&n&&(e.type=n.type),null==e.parentId){var i=e.parentOption;i?e.parentId=i.id:n&&(e.parentId=n.parentId)}e.parentOption=null}(t,n),function(t,e,n){var i=B({},n),r=t[e],o=n.$action||"merge";"merge"===o?r?(z(r,i,!0),hd(r,i,{ignoreSize:!0}),fd(n,r)):t[e]=i:"replace"===o?t[e]=i:"remove"===o&&r&&(t[e]=null)}(r,e,n),function(t,e){if(t&&(t.hv=e.hv=[gN(e,["left","right"]),gN(e,["top","bottom"])],"group"===t.type)){var n=t,i=e;null==n.width&&(n.width=i.width=0),null==n.height&&(n.height=i.height=0)}}(r[e],n))},this);for(var l=r.length-1;l>=0;l--)null==r[l]?r.splice(l,1):delete r[l].$action},e.prototype._flatten=function(t,e,n){q(t,function(t){if(t){n&&(t.parentOption=n),e.push(t);var i=t.children;"group"===t.type&&i&&this._flatten(i,e,t),delete t.children}},this)},e.prototype.useElOptionsToUpdate=function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t},e.type="graphic",e.defaultOption={elements:[]},e}(md),dN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(){this._elMap=St()},e.prototype.render=function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t),this._relocate(t,n)},e.prototype._updateElements=function(t){var e=t.useElOptionsToUpdate();if(e){var n=this._elMap,i=this.group;q(e,function(e){var r=Gr(e.id,null),o=null!=r?n.get(r):null,a=Gr(e.parentId,null),s=null!=a?n.get(a):i,l=e.type,u=e.style;"text"===l&&u&&e.hv&&e.hv[1]&&(u.textVerticalAlign=u.textBaseline=u.verticalAlign=u.align=null);var c=e.textContent,h=e.textConfig;if(u&&BP(u,l,!!h,!!c)){var d=HP(u,l,!0);!h&&d.textConfig&&(h=e.textConfig=d.textConfig),!c&&d.textContent&&(c=d.textContent)}var f=function(t){return t=B({},t),q(["id","parentId","$action","hv","bounding","textContent"].concat(rd),function(e){delete t[e]}),t}(e),p=e.$action||"merge";"merge"===p?o?o.attr(f):fN(r,s,f,n):"replace"===p?(pN(o,n),fN(r,s,f,n)):"remove"===p&&pN(o,n);var g=n.get(r);if(g&&c)if("merge"===p){var m=g.getTextContent();m?m.attr(c):g.setTextContent(new zs(c))}else"replace"===p&&g.setTextContent(new zs(c));if(g){var v=lN(g);v.__ecGraphicWidthOption=e.width,v.__ecGraphicHeightOption=e.height,function(t,e,n){var i=Vs(t).eventData;t.silent||t.ignore||i||(i=Vs(t).eventData={componentType:"graphic",componentIndex:e.componentIndex,name:t.name}),i&&(i.info=n.info)}(g,t,e),Ec({el:g,componentModel:t,itemName:g.name,itemTooltipOption:e.tooltip})}})}},e.prototype._relocate=function(t,e){for(var n=t.option.elements,i=this.group,r=this._elMap,o=e.getWidth(),a=e.getHeight(),s=0;s=0;s--){var h,d,f,p;(f=null!=(d=Gr((h=n[s]).id,null))?r.get(d):null)&&(c=lN(p=f.parent),ud(f,h,p===i?{width:o,height:a}:{width:c.__ecGraphicWidth,height:c.__ecGraphicHeight},null,{hv:h.hv,boundingMode:h.bounding}))}},e.prototype._clear=function(){var t=this._elMap;t.each(function(e){pN(e,t)}),this._elMap=St()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(qp);function fN(t,e,n,i){var r=n.type,o=new(It(uN,r)?uN[r]:ac(r))(n);e.add(o),i.set(t,o),lN(o).__ecGraphicId=t}function pN(t,e){var n=t&&t.parent;n&&("group"===t.type&&t.traverse(function(t){pN(t,e)}),e.removeKey(lN(t).__ecGraphicId),n.remove(t))}function gN(t,e){var n;return q(e,function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)}),n}var mN=["x","y","radius","angle","single"],vN=["cartesian2d","polar","singleAxis"];function yN(t){return t+"Axis"}function _N(t){var e=t.ecModel,n={infoList:[],infoMap:St()};return t.eachTargetAxis(function(t,i){var r=e.getComponent(yN(t),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(n.infoList.push(s={model:o,axisModels:[]}),n.infoMap.set(a,s)),s.axisModels.push(r)}}}),n}var bN=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}();function xN(t){var e={};return q(["start","end","startValue","endValue","throttle"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}var wN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return m(e,t),e.prototype.init=function(t,e,n){var i=xN(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=xN(t);z(this.option,t,!0),z(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;q([["start","startValue"],["end","endValue"]],function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)},this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=St();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each(function(t){t.indexList.length&&(this._noTarget=!1)},this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return q(mN,function(n){var i=this.getReferringComponents(yN(n),Qr);if(i.specified){e=!0;var r=new bN;q(i.models,function(t){r.add(t.componentIndex)}),t.set(n,r)}},this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0;if(i){var r="vertical"===e?"y":"x";o(n.findComponents({mainType:r+"Axis"}),r)}function o(e,n){var r=e[0];if(r){var o=new bN;if(o.add(r.componentIndex),t.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",$r).models[0];a&&q(e,function(t){r.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",$r).models[0]&&o.add(t.componentIndex)})}}}i&&o(n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single"),i&&q(mN,function(e){if(i){var r=n.findComponents({mainType:yN(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var o=new bN;o.add(r[0].componentIndex),t.set(e,o),i=!1}}},this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis(function(e){!t&&(t=e)},this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,n=this.get("rangeMode");q([["start","startValue"],["end","endValue"]],function(i,r){var o=null!=t[i[0]],a=null!=t[i[1]];o&&!a?e[r]="percent":!o&&a?e[r]="value":n?e[r]=n[r]:o&&(e[r]="percent")})},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis(function(e,n){null==t&&(t=this.ecModel.getComponent(yN(e),n))},this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each(function(n,i){q(n.indexList,function(n){t.call(e,i,n)})})},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(yN(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;q([["start","startValue"],["end","endValue"]],function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])},this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;q(["start","startValue","end","endValue"],function(n){e[n]=t[n]})},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i=0}(e)){var n=yN(this._dimName),i=e.getReferringComponents(n,$r).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}},this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return F(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,i=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];MN(["start","end"],function(l,u){var c=t[l],h=t[l+"Value"];"percent"===r[u]?(null==c&&(c=o[u]),h=i.parse(hr(c,o,n))):(e=!0,c=hr(h=null==h?n[u]:i.parse(h),n,o)),s[u]=h,a[u]=c}),AN(s),AN(a);var l=this._minMaxSpan;function u(t,e,n,r,o){var a=o?"Span":"ValueSpan";_O(0,t,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=hr(t[s],n,r,!0),o&&(e[s]=i.parse(e[s]))}return e?u(s,a,n,o,!1):u(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function(t,e,n){var i=[1/0,-1/0];MN(n,function(t){!function(t,e,n){e&&q(Ox(e,n),function(n){var i=e.getApproximateExtent(n);i[0]t[1]&&(t[1]=i[1])})}(i,t.getData(),e)});var r=t.getAxisModel(),o=yx(r.axis.scale,r,i).calculate();return[o.min,o.max]}(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._valueWindow;"none"!==r&&MN(i,function(t){var e=t.getData(),i=e.mapDimensionsAll(n);i.length&&("weakFilter"===r?e.filterSelf(function(t){for(var n,r,a,s=0;so[1];if(u&&!c&&!h)return!0;u&&(a=!0),c&&(n=!0),h&&(r=!0)}return a&&n&&r}):MN(i,function(n){if("empty"===r)t.setData(e=e.map(n,function(t){return function(t){return t>=o[0]&&t<=o[1]}(t)?t:NaN}));else{var i={};i[n]=o,e.selectRange(i)}}),MN(i,function(t){e.setApproximateExtent(o,t)}))})}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;MN(["min","max"],function(i){var r=e.get(i+"Span"),o=e.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=hr(n[0]+o,n,[0,100],!0):null!=r&&(o=hr(r,[0,100],n,!0)-n[0]),t[i+"Span"]=r,t[i+"ValueSpan"]=o},this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=vr(n,[0,500]);i=Math.min(i,20);var r=t.axis.scale.rawExtentInfo;0!==e[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==e[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},t}(),ON={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",function(n){n.eachTargetAxis(function(i,r){var o=t.getComponent(yN(i),r);e(i,r,o,n)})})}e(function(t,e,n,i){n.__dzAxisProxy=null});var n=[];e(function(e,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new IN(e,i,o,t),n.push(r.__dzAxisProxy))});var i=St();return q(n,function(t){q(t.getTargetSeriesModels(),function(t){i.set(t.uid,t)})}),i},overallReset:function(t,e){t.eachComponent("dataZoom",function(t){t.eachTargetAxis(function(e,n){t.getAxisProxy(e,n).reset(t)}),t.eachTargetAxis(function(n,i){t.getAxisProxy(n,i).filterData(t,e)})}),t.eachComponent("dataZoom",function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}})}},TN=!1;function DN(t){TN||(TN=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,ON),function(t){t.registerAction("dataZoom",function(t,e){q(function(t,e){var n,i=St(),r=[],o=St();t.eachComponent({mainType:"dataZoom",query:e},function(t){o.get(t.uid)||s(t)});do{n=!1,t.eachComponent("dataZoom",a)}while(n);function a(t){!o.get(t.uid)&&function(t){var e=!1;return t.eachTargetAxis(function(t,n){var r=i.get(t);r&&r[n]&&(e=!0)}),e}(t)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),r.push(t),t.eachTargetAxis(function(t,e){(i.get(t)||i.set(t,[]))[e]=!0})}return r}(e,t),function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}(t),t.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function PN(t){t.registerComponentModel(kN),t.registerComponentView(SN),DN(t)}var EN=function(){},RN={};function LN(t,e){RN[t]=e}function NN(t){return RN[t]}var FN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;q(this.option.feature,function(t,n){var i=NN(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),z(t,i.defaultOption))})},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(md);function zN(t,e){var n=Uh(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),new As({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}var VN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.render=function(t,e,n,i){var r=this.group;if(r.removeAll(),t.get("show")){var o=+t.get("itemSize"),a=t.get("feature")||{},s=this._features||(this._features={}),l=[];q(a,function(t,e){l.push(e)}),new F_(this._featureNames||[],l).add(u).update(u).remove(tt(u,null)).execute(),this._featureNames=l,function(t,e,n){var i=e.getBoxLayoutParams(),r=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=ld(i,o,r);sd(e.get("orient"),t,e.get("itemGap"),a.width,a.height),ud(t,i,o,r)}(r,t,n),r.add(zN(r.getBoundingRect(),t)),r.eachChild(function(t){var e=t.__title,i=t.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=t.getTextContent(),l=s&&s.states.emphasis;if(l&&!nt(l)&&e){var u=l.style||(l.style={}),c=Ni(e,zs.makeFont(u)),h=t.x+r.x,d=!1;t.y+r.y+o+c.height>n.getHeight()&&(a.position="top",d=!0);var f=d?-5-c.height:o+8;h+c.width/2>n.getWidth()?(a.position=["100%",f],u.align="right"):h-c.width/2<0&&(a.position=[0,f],u.align="left")}})}function u(u,c){var h,d=l[u],f=l[c],p=a[d],g=new sh(p,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===d&&(p.title=i.newTitle),d&&!f){if(function(t){return 0===t.indexOf("my")}(d))h={onclick:g.option.onclick,featureName:d};else{var m=NN(d);if(!m)return;h=new m}s[d]=h}else if(!(h=s[f]))return;h.uid=uh("toolbox-feature"),h.model=g,h.ecModel=e,h.api=n;var v=h instanceof EN;d||!f?!g.get("show")||v&&h.unusable?v&&h.remove&&h.remove(e,n):(function(i,a,s){var l,u,c=i.getModel("iconStyle"),h=i.getModel(["emphasis","iconStyle"]),d=a instanceof EN&&a.getIcons?a.getIcons():i.get("icon"),f=i.get("title")||{};"string"==typeof d?(l={})[s]=d:l=d,"string"==typeof f?(u={})[s]=f:u=f;var p=i.iconPaths={};q(l,function(s,l){var d=Oc(s,{},{x:-o/2,y:-o/2,width:o,height:o});d.setStyle(c.getItemStyle()),d.ensureState("emphasis").style=h.getItemStyle();var f=new zs({style:{text:u[l],align:h.get("textAlign"),borderRadius:h.get("textBorderRadius"),padding:h.get("textPadding"),fill:null},ignore:!0});d.setTextContent(f),Ec({el:d,componentModel:t,itemName:l,formatterParamsExtra:{title:u[l]}}),d.__title=u[l],d.on("mouseover",function(){var e=h.getItemStyle(),n="vertical"===t.get("orient")?null==t.get("right")?"right":"left":null==t.get("bottom")?"bottom":"top";f.setStyle({fill:h.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:h.get("textBackgroundColor")}),d.setTextConfig({position:h.get("textPosition")||n}),f.ignore=!t.get("showTitle"),fl(this)}).on("mouseout",function(){"emphasis"!==i.get(["iconStatus",l])&&pl(this),f.hide()}),("emphasis"===i.get(["iconStatus",l])?fl:pl)(d),r.add(d),d.on("click",J(a.onclick,a,e,n,l)),p[l]=d})}(g,h,d),g.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?fl:pl)(i[t])},h instanceof EN&&h.render&&h.render(g,e,n,i)):v&&h.dispose&&h.dispose(e,n)}},e.prototype.updateView=function(t,e,n,i){q(this._features,function(t){t instanceof EN&&t.updateView&&t.updateView(t.model,e,n,i)})},e.prototype.remove=function(t,e){q(this._features,function(n){n instanceof EN&&n.remove&&n.remove(t,e)}),this.group.removeAll()},e.prototype.dispose=function(t,e){q(this._features,function(n){n instanceof EN&&n.dispose&&n.dispose(t,e)})},e.type="toolbox",e}(qp),BN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",r="svg"===e.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",a=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if("function"!=typeof MouseEvent||!x.browser.newEdge&&(x.browser.ie||x.browser.edge))if(window.navigator.msSaveOrOpenBlob||r){var s=a.split(","),l=s[0].indexOf("base64")>-1,u=r?decodeURIComponent(s[1]):s[1];l&&(u=window.atob(u));var c=i+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var h=u.length,d=new Uint8Array(h);h--;)d[h]=u.charCodeAt(h);var f=new Blob([d]);window.navigator.msSaveOrOpenBlob(f,c)}else{var p=document.createElement("iframe");document.body.appendChild(p);var g=p.contentWindow,m=g.document;m.open("image/svg+xml","replace"),m.write(u),m.close(),g.focus(),m.execCommand("SaveAs",!0,c),document.body.removeChild(p)}}else{var v=n.get("lang"),y='',_=window.open();_.document.write(y),_.document.title=i}else{var b=document.createElement("a");b.download=i+"."+o,b.target="_blank",b.href=a;var w=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});b.dispatchEvent(w)}},e.getDefaultOption=function(t){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocale(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocale(["toolbox","saveAsImage","lang"])}},e}(EN);BN.prototype.unusable=!x.canvasSupported;var HN=BN,jN="__ec_magicType_stack__",GN=[["line","bar"],["stack"]],UN=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return q(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n},e.getDefaultOption=function(t){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocale(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},e.prototype.onclick=function(t,e,n){var i=this.model,r=i.get(["seriesIndex",n]);if(WN[n]){var o,a={series:[]};q(GN,function(t){G(t,n)>=0&&q(t,function(t){i.setIconStatus(t,"normal")})}),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},function(t){var e=WN[n](t.subType,t.id,t,i);e&&(H(e,t.option),a.series.push(e));var r=t.coordinateSystem;if(r&&"cartesian2d"===r.type&&("line"===n||"bar"===n)){var o=r.getAxesByScale("ordinal")[0];if(o){var s=o.dim+"Axis",l=t.getReferringComponents(s,$r).models[0].componentIndex;a[s]=a[s]||[];for(var u=0;u<=l;u++)a[s][l]=a[s][l]||{};a[s][l].boundaryGap="bar"===n}}});var s=n;"stack"===n&&(o=z({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(s="tiled")),e.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:o,featureName:"magicType"})}},e}(EN),WN={line:function(t,e,n,i){if("bar"===t)return z({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(t,e,n,i){if("line"===t)return z({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(t,e,n,i){var r=n.get("stack")===jN;if("line"===t||"bar"===t)return i.setIconStatus("stack",r?"normal":"emphasis"),z({id:e,stack:r?"":jN},i.get(["option","stack"])||{},!0)}};__({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)});var YN=UN,qN=new Array(60).join("-"),XN="\t";function ZN(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var KN=new RegExp("[\t]+","g"),$N=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.onclick=function(t,e){var n=e.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var r=document.createElement("div");r.style.cssText="position:absolute;left:5px;top:5px;bottom:5px;right:5px;",r.style.backgroundColor=i.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=i.get("lang")||[];o.innerHTML=a[0]||i.get("title"),o.style.cssText="margin: 10px 20px;",o.style.color=i.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="display:block;width:100%;overflow:auto;";var u=i.get("optionToContent"),c=i.get("contentToOption"),h=function(t){var e,n,i,r=function(t){var e={},n=[],i=[];return t.eachRawSeries(function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(t);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}}),{seriesGroupByCategoryAxis:e,other:n,meta:i}}(t);return{value:K([(n=r.seriesGroupByCategoryAxis,i=[],q(n,function(t,e){var n=t.categoryAxis,r=t.valueAxis.dim,o=[" "].concat(X(t.series,function(t){return t.name})),a=[n.model.getCategories()];q(t.series,function(t){var e=t.getRawData();a.push(t.getRawData().mapArray(e.mapDimension(r),function(t){return t}))});for(var s=[o.join(XN)],l=0;l=0)return!0}(t)){var r=function(t){for(var e=t.split(/\n+/g),n=[],i=X(ZN(e.shift()).split(KN),function(t){return{name:t,data:[]}}),r=0;r=0)&&t(r,i._targetInfoList)})}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=dF[t.brushType](0,n,e);t.__rangeOffset={offset:pF[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}}),t},t.prototype.matchOutputRanges=function(t,e,n){q(t,function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&q(i.coordSyses,function(i){var r=dF[t.brushType](1,i,t.range,!0);n(t,r.values,i,e)})},this)},t.prototype.setInputRanges=function(t,e){q(t,function(t){var n,i,r,o,a=this.findTargetInfo(t,e);if(t.range=t.range||[],a&&!0!==a){t.panelId=a.panelId;var s=dF[t.brushType](0,a.coordSys,t.coordRange),l=t.__rangeOffset;t.range=l?pF[t.brushType](s.values,l.offset,(n=l.xyMinMax,i=mF(s.xyMinMax),r=mF(n),o=[i[0]/r[0],i[1]/r[1]],isNaN(o[0])&&(o[0]=1),isNaN(o[1])&&(o[1]=1),o)):s.values}},this)},t.prototype.makePanelOpts=function(t,e){return X(this._targetInfoList,function(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:wT(i),isTargetByCursor:CT(i,t,n.coordSysModel),getLinearBrushOtherExtent:kT(i)}})},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&G(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=lF(e,t),r=0;rt[1]&&t.reverse(),t}function lF(t,e){return Zr(t,e,{includeMainTypes:oF})}var uF={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,r=t.gridModels,o=St(),a={},s={};(n||i||r)&&(q(n,function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0}),q(i,function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0}),q(r,function(t){o.set(t.id,t),a[t.id]=!0,s[t.id]=!0}),o.each(function(t){var r=[];q(t.coordinateSystem.getCartesians(),function(t,e){(G(n,t.getAxis("x").model)>=0||G(i,t.getAxis("y").model)>=0)&&r.push(t)}),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:r[0],coordSyses:r,getPanelRect:hF.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})}))},geo:function(t,e){q(t.geoModels,function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:hF.geo})})}},cF=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],hF={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(wc(t)),e}},dF={lineX:tt(fF,0),lineY:tt(fF,1),rect:function(t,e,n,i){var r=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),o=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),a=[sF([r[0],o[0]]),sF([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,i){var r=[[1/0,-1/0],[1/0,-1/0]];return{values:X(n,function(n){var o=t?e.pointToData(n,i):e.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o}),xyMinMax:r}}};function fF(t,e,n,i){var r=n.getAxis(["x","y"][t]),o=sF(X([0,1],function(t){return e?r.coordToData(r.toLocalCoord(i[t]),!0):r.toGlobalCoord(r.dataToCoord(i[t]))})),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var pF={lineX:tt(gF,0),lineY:tt(gF,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return X(t,function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]})}};function gF(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function mF(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}var vF,yF=aF,_F=q,bF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new xT(n.getZr()),this._brushController.on("brush",J(this._onBrush,this)).mount()),function(t,e,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new yF(wF(t),e,{include:["grid"]}).makePanelOpts(r,function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"});n._brushController.setPanels(a).enableBrush(!(!o||!a.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}(t,e,this,i,n),function(t,e){t.setIconStatus("back",function(t){return nF(t).length}(e)>1?"emphasis":"normal")}(t,e)},e.prototype.onclick=function(t,e,n){xF[n].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var n={},i=this.ecModel;this._brushController.updateCovers([]),new yF(wF(this.model),i,{include:["grid"]}).matchOutputRanges(e,i,function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(r("x",n,e[0]),r("y",n,e[1])):r({lineX:"x",lineY:"y"}[i],n,e)}}),function(t,e){var n=nF(t);tF(e,function(e,i){for(var r=n.length-1;r>=0&&!n[r][i];r--);if(r<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var a=o.getPercentRange();n[0][i]={dataZoomId:i,start:a[0],end:a[1]}}}}),n.push(e)}(i,n),this._dispatchZoomAction(n)}function r(t,e,r){var o=e.getAxis(t),a=o.model,s=function(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},function(n){n.getAxisModel(t,e.componentIndex)&&(i=n)}),i}(t,a,i),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(r=_O(0,r.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:r[0],endValue:r[1]})}},e.prototype._dispatchZoomAction=function(t){var e=[];_F(t,function(t,n){e.push(F(t))}),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocale(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},e}(EN),xF={zoom:function(){this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:!this._isZoomActive})},back:function(){this._dispatchZoomAction(function(t){var e=nF(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return tF(n,function(t,n){for(var r=e.length-1;r>=0;r--)if(t=e[r][n]){i[n]=t;break}}),i}(this.ecModel))}};function wF(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}vF=function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var i=e.getModel(n),r=[],o=Zr(t,wF(i));return _F(o.xAxisModels,function(t){return a(t,"xAxis","xAxisIndex")}),_F(o.yAxisModels,function(t){return a(t,"yAxis","yAxisIndex")}),r}function a(t,e,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:"\0_ec_\0toolbox-dataZoom_"+e+o};a[n]=o,r.push(a)}},_t(null==zd.get("dataZoom")&&vF),zd.set("dataZoom",vF);var kF=bF,CF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={zlevel:0,z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(md);function SF(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function MF(t){if(x.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n-1?(o+="top:50%",a+="translateY(-50%) rotate("+("left"===r?-225:-45)+"deg)"):(o+="left:50%",a+="translateX(-50%) rotate("+("top"===r?225:45)+"deg)");var s=e+" solid 1px;";return'
'}(n.get("backgroundColor"),i,r)),it(t))o.innerHTML=t;else if(t){o.innerHTML="",et(t)||(t=[t]);for(var a=0;a=0;o--){var a=t[o];a&&(a instanceof sh&&(a=a.get("tooltip",!0)),it(a)&&(a={formatter:a}),a&&(i=new sh(a,i,r)))}return i}function WF(t,e){return t.dispatchAction||J(e.dispatchAction,e)}function YF(t){return"center"===t||"middle"===t}var qF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(t,e){if(!x.node){var n,i=t.getComponent("tooltip"),r=i.get("renderMode");this._renderMode="auto"===(n=r)?x.domSupported?"html":"richText":n||"html",this._tooltipContent="richText"===this._renderMode?new VF(e):new LF(e.getDom(),e,{appendToBody:i.get("appendToBody",!0)})}},e.prototype.render=function(t,e,n){if(!x.node){this.group.removeAll(),this._tooltipModel=t,this._ecModel=e,this._api=n,this._alwaysShowContent=t.get("alwaysShowContent");var i=this._tooltipContent;i.update(t),i.setEnterable(t.get("enterable")),this._initGlobalListener(),this._keepShow()}},e.prototype._initGlobalListener=function(){var t=this._tooltipModel.get("triggerOn");VR("itemTooltip",this._api,BF(function(e,n,i){"none"!==t&&(t.indexOf(e)>=0?this._tryShow(n,i):"leave"===e&&this._hide(i))},this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==t.get("triggerOn")){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!n.isDisposed()&&i.manuallyShowTip(t,e,n,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})})}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!x.node){var r=WF(i,n);this._ticket="";var o=i.dataByCoordSys,a=function(t,e,n){var i=Kr(t).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o,a=Jr(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a)return n.getViewOfComponentModel(a).group.traverse(function(e){var n=Vs(e).tooltipConfig;if(n&&n.name===t.name)return o=e,!0}),o?{componentMainType:r,componentIndex:a.componentIndex,el:o}:void 0}}(i,e,n);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=GF;l.x=i.x,l.y=i.y,l.update(),Vs(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var u=UR(i,e),c=u.point[0],h=u.point[1];null!=c&&null!=h&&this._tryShow({offsetX:c,offsetY:h,target:u.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){!this._alwaysShowContent&&this._tooltipModel&&this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(WF(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s&&"axis"===UF([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var r,o;this._lastDataByCoordSys=null,Dm(n,function(t){return null!=Vs(t).dataIndex?(r=t,!0):null!=Vs(t).tooltipConfig?(o=t,!0):void 0},!0),r?this._showSeriesItemTooltip(t,r,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=J(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=[e.offsetX,e.offsetY],r=UF([e.tooltipOption],this._tooltipModel),o=this._renderMode,a=[],s=Cp("section",{blocks:[],noHeader:!0}),l=[],u=new Ep;HF(t,function(t){HF(t.dataByAxis,function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value;if(e&&null!=i){var r=SR(i,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),c=Cp("section",{header:r,noHeader:!bt(r),sortBlocks:!0,blocks:[]});s.blocks.push(c),q(t.seriesDataIndices,function(s){var h=n.getSeriesByIndex(s.seriesIndex),d=s.dataIndexInside,f=h.getDataParams(d);f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=Sx(e.axis,{value:i}),f.axisValueLabel=r,f.marker=u.makeTooltipMarker("item",ed(f.color),o);var p=Kf(h.formatTooltip(d,!0,null));p.markupFragment&&c.blocks.push(p.markupFragment),p.markupText&&l.push(p.markupText),a.push(f)})}})}),s.blocks.reverse(),l.reverse();var c=e.position,h=r.get("order"),d=Ap(s,u,o,h,n.get("useUTC"),r.get("textStyle"));d&&l.unshift(d);var f=l.join("richText"===o?"\n\n":"
");this._showOrMove(r,function(){this._updateContentNotChangedOnAxis(t)?this._updatePosition(r,c,i[0],i[1],this._tooltipContent,a):this._showTooltipContent(r,f,a,Math.random()+"",i[0],i[1],c,null,u)})},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=Vs(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,c=s.getData(u),h=this._renderMode,d=t.positionDefault,f=UF([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=f.get("trigger");if(null==p||"item"===p){var g=s.getDataParams(l,u),m=new Ep;g.marker=m.makeTooltipMarker("item",ed(g.color),h);var v=Kf(s.formatTooltip(l,!1,u)),y=f.get("order"),_=v.markupFragment?Ap(v.markupFragment,m,h,y,i.get("useUTC"),f.get("textStyle")):v.markupText,b="item_"+s.name+"_"+l;this._showOrMove(f,function(){this._showTooltipContent(f,_,g,b,t.offsetX,t.offsetY,t.position,t.target,m)}),n({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i=Vs(e),r=i.tooltipConfig.option||{};it(r)&&(r={content:r,formatter:r});var o=[r],a=this._ecModel.getComponent(i.componentMainType,i.componentIndex);a&&o.push(a),o.push({formatter:r.content});var s=t.positionDefault,l=UF(o,this._tooltipModel,s?{position:s}:null),u=l.get("content"),c=Math.random()+"",h=new Ep;this._showOrMove(l,function(){var n=F(l.get("formatterParams")||{});this._showTooltipContent(l,u,n,c,t.offsetX,t.offsetY,t.position,e,h)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent,c=t.get("formatter");a=a||t.get("position");var h=e,d=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")).color;if(c&&it(c)){var f=t.ecModel.get("useUTC"),p=et(n)?n[0]:n;h=c,p&&p.axisType&&p.axisType.indexOf("time")>=0&&(h=Sh(p.axisValue,h,f)),h=$h(h,n,!0)}else if(nt(c)){var g=BF(function(e,i){e===this._ticket&&(u.setContent(i,l,t,d,a),this._updatePosition(t,a,r,o,u,n,s))},this);this._ticket=i,h=c(n,i,g)}u.setContent(h,l,t,d,a),u.show(t,d),this._updatePosition(t,a,r,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||et(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:et(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),c=t.get("align"),h=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),nt(e)&&(e=e([n,i],o,r.el,d,{viewSize:[s,l],contentSize:u.slice()})),et(e))n=jF(e[0],s),i=jF(e[1],l);else if(at(e)){var f=e;f.width=u[0],f.height=u[1];var p=ld(f,{width:s,height:l});n=p.x,i=p.y,c=null,h=null}else if(it(e)&&a){var g=function(t,e,n){var i=n[0],r=n[1],o=0,a=0,s=e.width,l=e.height;switch(t){case"inside":o=e.x+s/2-i/2,a=e.y+l/2-r/2;break;case"top":o=e.x+s/2-i/2,a=e.y-r-10;break;case"bottom":o=e.x+s/2-i/2,a=e.y+l+10;break;case"left":o=e.x-i-10-5,a=e.y+l/2-r/2;break;case"right":o=e.x+s+10+5,a=e.y+l/2-r/2}return[o,a]}(e,d,u);n=g[0],i=g[1]}else g=function(t,e,n,i,r,o,a){var s=n.getOuterSize(),l=s.width,u=s.height;return null!=o&&(t+l+o+2>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}(n,i,r,s,l,c?null:20,h?null:20),n=g[0],i=g[1];c&&(n-=YF(c)?u[0]/2:"right"===c?u[0]:0),h&&(i-=YF(h)?u[1]/2:"bottom"===h?u[1]:0),SF(t)&&(g=function(t,e,n,i,r){var o=n.getOuterSize(),a=o.width,s=o.height;return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,[t=Math.max(t,0),e=Math.max(e,0)]}(n,i,r,s,l),n=g[0],i=g[1]),r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t){var e=this._lastDataByCoordSys,n=!!e&&e.length===t.length;return n&&HF(e,function(e,i){var r=e.dataByAxis||[],o=(t[i]||{}).dataByAxis||[];(n=n&&r.length===o.length)&&HF(r,function(t,e){var i=o[e]||{},r=t.seriesDataIndices||[],a=i.seriesDataIndices||[];(n=n&&t.value===i.value&&t.axisType===i.axisType&&t.axisId===i.axisId&&r.length===a.length)&&HF(r,function(t,e){var i=a[e];n=n&&t.seriesIndex===i.seriesIndex&&t.dataIndex===i.dataIndex})})}),this._lastDataByCoordSys=t,!!n},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){x.node||(this._tooltipContent.dispose(),jR("itemTooltip",e))},e.type="tooltip",e}(qp),XF=["rect","polygon","keep","clear"];function ZF(t,e){var n=Nr(t?t.brush:[]);if(n.length){var i=[];q(n,function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))});var r=t&&t.toolbox;et(r)&&(r=r[0]),r||(t.toolbox=[r={feature:{}}]);var o=r.feature||(r.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,i),function(t){var e={};q(t,function(t){e[t]=1}),t.length=0,q(e,function(e,n){t.push(n)})}(s),e&&!s.length&&s.push.apply(s,XF)}}var KF=q;function $F(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function QF(t,e,n){var i={};return KF(e,function(e){var r,o=i[e]=((r=function(){}).prototype.__hidden=r.prototype,new r);KF(t[e],function(t,i){if(xA.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),o[i]=new xA(r),"opacity"===i&&((r=F(r)).type="colorAlpha",o.__hidden.__alphaForOpacity=new xA(r))}})}),i}function JF(t,e,n){var i;q(n,function(t){e.hasOwnProperty(t)&&$F(e[t])&&(i=!0)}),i&&q(n,function(n){e.hasOwnProperty(n)&&$F(e[n])?t[n]=F(e[n]):delete t[n]})}var tz={lineX:ez(0),lineY:ez(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&Fv(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var r=t.x,o=t.y,a=t.width,s=t.height,l=i[0];return!!(Fv(i,r,o)||Fv(i,r+a,o)||Fv(i,r,o+s)||Fv(i,r+a,o+s)||Di.create(t).contain(l[0],l[1])||Tc(r,o,r+a,o,i)||Tc(r,o,r,o+s,i)||Tc(r+a,o,r+a,o+s,i)||Tc(r,o+s,r+a,o+s,i))||void 0}}};function ez(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e)return nz(e[t],i.range)},rect:function(i,r,o){if(i){var a=o.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]e[0][1]&&(e[0][1]=o[0]),o[1]e[1][1]&&(e[1][1]=o[1])}return e&&cz(e)}};function cz(t){return new Di(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}var hz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,(this._brushController=new xT(e.getZr())).on("brush",J(this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},e.prototype.updateTransform=function(t,e,n,i){oz(e),this._updateController(t,e,n,i)},e.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},e.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},e.prototype._updateController=function(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:F(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:F(n),$from:e})},e.type="brush",e}(qp);function dz(t,e){return z({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new sh(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}var fz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return m(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&JF(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=X(t,function(t){return dz(this.option,t)},this))},e.prototype.setBrushOption=function(t){this.brushOption=dz(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(md),pz=["rect","polygon","lineX","lineY","keep","clear"],gz=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.render=function(t,e,n){var i,r,o;e.eachComponent({mainType:"brush"},function(t){i=t.brushType,r=t.brushOption.brushMode||"single",o=o||!!t.areas.length}),this._brushType=i,this._brushMode=r,q(t.get("type",!0),function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?o:e===i)?"emphasis":"normal")})},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return q(t.get("type",!0),function(t){e[t]&&(n[t]=e[t])}),n},e.prototype.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},e.getDefaultOption=function(t){return{show:!0,type:pz.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocale(["toolbox","brush","title"])}},e}(EN),mz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}return m(e,t),e.type="title",e.defaultOption={zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(md),vz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=gt(t.get("textBaseline"),t.get("textVerticalAlign")),l=new zs({style:Vc(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),h=new zs({style:Vc(o,{text:c,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),f=t.get("sublink"),p=t.get("triggerEvent",!0);l.silent=!d&&!p,h.silent=!f&&!p,d&&l.on("click",function(){nd(d,"_"+t.get("target"))}),f&&h.on("click",function(){nd(f,"_"+t.get("subtarget"))}),Vs(l).eventData=Vs(h).eventData=p?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),c&&i.add(h);var g=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=g.width,m.height=g.height;var v=ld(m,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),i.x=v.x,i.y=v.y,i.markRedraw();var y={align:a,verticalAlign:s};l.setStyle(y),h.setStyle(y),g=i.getBoundingRect();var _=v.margin,b=t.getItemStyle(["color","opacity"]);b.fill=t.get("backgroundColor");var x=new As({shape:{x:g.x-_[3],y:g.y-_[0],width:g.width+_[1]+_[3],height:g.height+_[0]+_[2],r:t.get("borderRadius")},style:b,subPixelOptimize:!0,silent:!0});i.add(x)}},e.type="title",e}(qp),yz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return m(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,n=e.data||[],i=e.axisType,r=this._names=[];"category"===i?(t=[],q(n,function(e,n){var i,o=Gr(Vr(e),"");at(e)?(i=F(e)).value=n:i=n,t.push(i),r.push(o)})):t=n,(this._data=new hb([{name:"value",type:{category:"ordinal",time:"time",value:"number"}[i]||"number"}],this)).initData(t,r)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(md),_z=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="timeline.slider",e.defaultOption=ch(yz.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(yz);W(_z,Zf.prototype);var bz=_z,xz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="timeline",e}(qp),wz=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i)||this;return o.type=r||"value",o}return m(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(Yx),kz=Math.PI,Cz=qr();function Sz(t,e,n,i,r,o){var a=e.get("color");r?(r.setColor(a),n.add(r),o&&o.onUpdate(r)):((r=jm(t.get("symbol"),-1,-1,2,2,a)).setStyle("strokeNoScale",!0),n.add(r),o&&o.onCreate(r));var s=e.getItemStyle(["color"]);r.setStyle(s),i=z({rectHover:!0,z2:100},i,!0);var l=t.get("symbolSize");l=l instanceof Array?l.slice():[+l,+l],i.scaleX=l[0]/2,i.scaleY=l[1]/2;var u=t.get("symbolOffset");u&&(i.x=i.x||0,i.y=i.y||0,i.x+=dr(u[0],l[0]),i.y+=dr(u[1],l[1]));var c=t.get("symbolRotate");return i.rotation=(c||0)*Math.PI/180||0,r.attr(i),r.updateTransform(),r}function Mz(t,e,n,i,r,o){if(!t.dragging){var a=r.getModel("checkpointStyle"),s=i.dataToCoord(r.getData().get("value",n));if(o||!a.get("animation",!0))t.attr({x:s,y:0}),e&&e.attr({shape:{x2:s}});else{var l={duration:a.get("animationDuration",!0),easing:a.get("animationEasing",!0)};t.stopAnimation(null,!0),t.animateTo({x:s,y:0},l),e&&e.animateTo({shape:{x2:s}},l)}}}var Az=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,t);t.formatTooltip=function(t){return Cp("nameValue",{noName:!0,value:a.scale.getLabel({value:t})})},q(["AxisLine","AxisTick","Control","CurrentPointer"],function(e){this["_render"+e](i,r,a,t)},this),this._renderAxisLabel(i,o,a,t),this._position(i,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var n,i,r,o,a=t.get(["label","position"]),s=t.get("orient"),l=function(t,e){return ld(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e),u={horizontal:"center",vertical:(n=null==a||"auto"===a?"horizontal"===s?l.y+l.height/2=0||"+"===n?"left":"right"},c={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},h={horizontal:0,vertical:kz/2},d="vertical"===s?l.height:l.width,f=t.getModel("controlStyle"),p=f.get("show",!0),g=p?f.get("itemSize"):0,m=p?f.get("itemGap"):0,v=g+m,y=t.get(["label","rotate"])||0;y=y*kz/180;var _=f.get("position",!0),b=p&&f.get("showPlayBtn",!0),x=p&&f.get("showPrevBtn",!0),w=p&&f.get("showNextBtn",!0),k=0,C=d;"left"===_||"bottom"===_?(b&&(i=[0,0],k+=v),x&&(r=[k,0],k+=v),w&&(o=[C-g,0],C-=v)):(b&&(i=[C-g,0],C-=v),x&&(r=[0,0],k+=v),w&&(o=[C-g,0],C-=v));var S=[k,C];return t.get("inverse")&&S.reverse(),{viewRect:l,mainLength:d,orient:s,rotation:h[s],labelRotation:y,labelPosOpt:n,labelAlign:t.get(["label","align"])||u[s],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||c[s],playPosition:i,prevBtnPosition:r,nextBtnPosition:o,axisExtent:S,controlSize:g,controlGap:m}},e.prototype._position=function(t,e){var n=this._mainGroup,i=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var o=[1,0,0,1,0,0],a=r.x,s=r.y+r.height;li(o,o,[-a,-s]),ui(o,o,-kz/2),li(o,o,[a,s]),(r=r.clone()).applyTransform(o)}var l=m(r),u=m(n.getBoundingRect()),c=m(i.getBoundingRect()),h=[n.x,n.y],d=[i.x,i.y];d[0]=h[0]=l[0][0];var f,p=t.labelPosOpt;function g(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function m(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function v(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}null==p||it(p)?(v(h,u,l,1,f="+"===p?0:1),v(d,c,l,1,1-f)):(v(h,u,l,1,f=p>=0?0:1),d[1]=h[1]+p),n.setPosition(h),i.setPosition(d),n.rotation=i.rotation=t.rotation,g(n),g(i)},e.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType"),r=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new Pb({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new ix({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new Lb}}(e,i);r.getTicks=function(){return n.mapArray(["value"],function(t){return{value:t}})};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.niceTicks();var a=new wz("value",r,t.axisExtent,i);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new tr;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new Ru({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:B({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new Ru({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:H({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],q(a,function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),h={x:a,y:0,onclick:J(r._changeTimeline,r,t.value)},d=Sz(s,l,e,h);d.ensureState("emphasis").style=u.getItemStyle(),d.ensureState("progress").style=c.getItemStyle(),Ml(d);var f=Vs(d);s.get("tooltip")?(f.dataIndex=t.value,f.dataModel=i):f.dataIndex=f.dataModel=null,r._tickSymbols.push(d)})},e.prototype._renderAxisLabel=function(t,e,n,i){var r=this;if(n.getLabelModel().get("show")){var o=i.getData(),a=n.getViewLabels();this._tickLabels=[],q(a,function(i){var a=i.tickValue,s=o.getItemModel(a),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),h=n.dataToCoord(i.tickValue),d=new zs({x:h,y:0,rotation:t.labelRotation-t.rotation,onclick:J(r._changeTimeline,r,a),silent:!1,style:Vc(l,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});d.ensureState("emphasis").style=Vc(u),d.ensureState("progress").style=Vc(c),e.add(d),Ml(d),Cz(d).dataIndex=a,r._tickLabels.push(d)})}},e.prototype._renderControl=function(t,e,n,i){var r=t.controlSize,o=t.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function c(t,n,l,u){if(t){var c=Bi(gt(i.get(["controlStyle",n+"BtnSize"]),r),r),h=function(t,e,n,i){var r=i.style,o=Oc(t.get(["controlStyle",e]),i||{},new Di(n[0],n[1],n[2],n[3]));return r&&o.setStyle(r),o}(i,n+"Icon",[0,-c/2,c,c],{x:t[0],y:t[1],originX:r/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});h.ensureState("emphasis").style=s,e.add(h),Ml(h)}}c(t.nextBtnPosition,"next",J(this._changeTimeline,this,u?"-":"+")),c(t.prevBtnPosition,"prev",J(this._changeTimeline,this,u?"+":"-")),c(t.playPosition,l?"stop":"play",J(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this;this._currentPointer=Sz(a,a,this._mainGroup,{},this._currentPointer,{onCreate:function(t){t.draggable=!0,t.drift=J(s._handlePointerDrag,s),t.ondragend=J(s._handlePointerDragend,s),Mz(t,s._progressLine,o,n,i,!0)},onUpdate:function(t){Mz(t,s._progressLine,o,n,i)}})},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],i=pr(this._axis.getExtent().slice());n>i[1]&&(n=i[1]),n=0&&(a[o]=+a[o].toFixed(h)),[a,c]}var zz={min:tt(Fz,"min"),max:tt(Fz,"max"),average:tt(Fz,"average"),median:tt(Fz,"median")};function Vz(t,e){var n=t.getData(),i=t.coordinateSystem;if(e&&!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!et(e.coord)&&i){var r=i.dimensions,o=Bz(e,n,i,t);if((e=F(e)).type&&zz[e.type]&&o.baseAxis&&o.valueAxis){var a=G(r,o.baseAxis.dim),s=G(r,o.valueAxis.dim),l=zz[e.type](n,o.baseDataDim,o.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else{for(var u=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],c=0;c<2;c++)zz[u[c]]&&(u[c]=Gz(n,n.mapDimension(r[c]),u[c]));e.coord=u}}return e}function Bz(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(function(t,e){var n=t.getData(),i=n.dimensions;e=n.getDimension(e);for(var r=0;r=0&&"number"==typeof l&&(l=+l.toFixed(Math.min(p,20))),d.coord[c]=f.coord[c]=l,r=[d,f,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var g=[Vz(t,r[0]),Vz(t,r[1]),B({},r[2])];return g[2].type=g[2].type||null,z(g[2],g[0]),z(g[2],g[1]),g};function $z(t){return!isNaN(t)&&!isFinite(t)}function Qz(t,e,n,i){var r=1-t,o=i.dimensions[t];return $z(e[r])&&$z(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function Jz(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(Qz(1,n,i,t)||Qz(0,n,i,t)))return!0}return Hz(t,e[0])&&Hz(t,e[1])}function tV(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=dr(s.get("x"),r.getWidth()),u=dr(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=t.get((d=a.dimensions)[0],e),h=t.get(d[1],e);o=a.dataToPoint([c,h])}if(yk(a,"cartesian2d")){var d,f=a.getAxis("x"),p=a.getAxis("y");$z(t.get((d=a.dimensions)[0],e))?o[0]=f.toGlobalCoord(f.getExtent()[n?0:1]):$z(t.get(d[1],e))&&(o[1]=p.toGlobalCoord(p.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}var eV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=Lz.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),r=Zz(e).from,o=Zz(e).to;r.each(function(e){tV(r,e,!0,t,n),tV(o,e,!1,t,n)}),i.each(function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap.get(t.id).updateLayout()}},this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new MI);this.group.add(l.group);var u=function(t,e,n){var i;i=t?X(t&&t.dimensions,function(t){return H({name:t},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{})}):[{name:"value",type:"float"}];var r=new hb(i,n),o=new hb(i,n),a=new hb([],n),s=X(n.get("data"),tt(Kz,e,t,n));t&&(s=K(s,tt(Jz,t)));var l=t?jz:function(t){return t.value};return r.initData(X(s,function(t){return t[0]}),null,l),o.initData(X(s,function(t){return t[1]}),null,l),a.initData(X(s,function(t){return t[2]})),a.hasItemOption=!0,{from:r,to:o,line:a}}(r,t,e),c=u.from,h=u.to,d=u.line;Zz(e).from=c,Zz(e).to=h,e.setData(d);var f=e.get("symbol"),p=e.get("symbolSize"),g=e.get("symbolRotate"),m=e.get("symbolOffset");function v(e,n,r){var o=e.getItemModel(n);tV(e,n,r,t,i);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Yg(a,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:gt(o.get("symbolOffset"),m[r?0:1]),symbolRotate:gt(o.get("symbolRotate",!0),g[r?0:1]),symbolSize:gt(o.get("symbolSize"),p[r?0:1]),symbol:gt(o.get("symbol",!0),f[r?0:1]),style:s})}et(f)||(f=[f,f]),et(p)||(p=[p,p]),et(g)||(g=[g,g]),et(m)||(m=[m,m]),u.from.each(function(t){v(c,t,!0),v(h,t,!1)}),d.each(function(t){var e=d.getItemModel(t).getModel("lineStyle").getLineStyle();d.setItemLayout(t,[c.getItemLayout(t),h.getItemLayout(t)]),null==e.stroke&&(e.stroke=c.getItemVisual(t,"style").fill),d.setItemVisual(t,{fromSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(t,"symbolOffset"),fromSymbolRotate:c.getItemVisual(t,"symbolRotate"),fromSymbolSize:c.getItemVisual(t,"symbolSize"),fromSymbol:c.getItemVisual(t,"symbol"),toSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(t,"symbolOffset"),toSymbolRotate:h.getItemVisual(t,"symbolRotate"),toSymbolSize:h.getItemVisual(t,"symbolSize"),toSymbol:h.getItemVisual(t,"symbol"),style:e})}),l.updateData(d),u.line.eachItemGraphicEl(function(t,n){t.traverse(function(t){Vs(t).dataModel=e})}),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(Wz),nV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},e.type="markArea",e.defaultOption={zlevel:0,z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(Lz),iV=qr(),rV=function(t,e,n,i){var r=Vz(t,i[0]),o=Vz(t,i[1]),a=r.coord,s=o.coord;a[0]=pt(a[0],-1/0),a[1]=pt(a[1],-1/0),s[0]=pt(s[0],1/0),s[1]=pt(s[1],1/0);var l=V([{},r,o]);return l.coord=[r.coord,o.coord],l.x0=r.x,l.y0=r.y,l.x1=o.x,l.y1=o.y,l};function oV(t){return!isNaN(t)&&!isFinite(t)}function aV(t,e,n,i){var r=1-t;return oV(e[r])&&oV(n[r])}function sV(t,e){var n=e.coord[0],i=e.coord[1];return!!(yk(t,"cartesian2d")&&n&&i&&(aV(1,n,i)||aV(0,n,i)))||Hz(t,{coord:n,x:e.x0,y:e.y0})||Hz(t,{coord:i,x:e.x1,y:e.y1})}function lV(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=dr(s.get(n[0]),r.getWidth()),u=dr(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(n,e));else{var c=[f=t.get(n[0],e),p=t.get(n[1],e)];a.clampData&&a.clampData(c,c),o=a.dataToPoint(c,!0)}if(yk(a,"cartesian2d")){var h=a.getAxis("x"),d=a.getAxis("y"),f=t.get(n[0],e),p=t.get(n[1],e);oV(f)?o[0]=h.toGlobalCoord(h.getExtent()["x0"===n[0]?0:1]):oV(p)&&(o[1]=d.toGlobalCoord(d.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var uV=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],cV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries(function(t){var e=Lz.getMarkerModelFromSeries(t,"markArea");if(e){var i=e.getData();i.each(function(e){var r=X(uV,function(r){return lV(i,e,r,t,n)});i.setItemLayout(e,r),i.getItemGraphicEl(e).setShape("points",r)})}},this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new tr});this.group.add(l.group),this.markKeep(l);var u=function(t,e,n){var i,r;t?(i=X(t&&t.dimensions,function(t){var n=e.getData();return H({name:t},n.getDimensionInfo(n.mapDimension(t))||{})}),r=new hb(X(["x0","y0","x1","y1"],function(t,e){return{name:t,type:i[e%2].type}}),n)):r=new hb(i=[{name:"value",type:"float"}],n);var o=X(n.get("data"),tt(rV,e,t,n));return t&&(o=K(o,tt(sV,t))),r.initData(o,null,t?function(t,e,n,i){return t.coord[Math.floor(i/2)][i%2]}:function(t){return t.value}),r.hasItemOption=!0,r}(r,t,e);e.setData(u),u.each(function(e){var n=X(uV,function(n){return lV(u,e,n,t,i)}),o=r.getAxis("x").scale,s=r.getAxis("y").scale,l=o.getExtent(),c=s.getExtent(),h=[o.parse(u.get("x0",e)),o.parse(u.get("x1",e))],d=[s.parse(u.get("y0",e)),s.parse(u.get("y1",e))];pr(h),pr(d),u.setItemLayout(e,{points:n,allClipped:!!(l[0]>h[1]||l[1]d[1]||c[1]=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",decal:"inherit",shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit",shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:" sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(md),dV=tt,fV=q,pV=tr;function gV(t,e,n,i){yV(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),vV(t,e,n,i)}function mV(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;i0?2:0:u[h]=g}var d=e.getModel("lineStyle"),f=th.concat([["inactiveColor"],["inactiveWidth"]]),p={};for(c=0;c0?2:0:p[h]=g}if("auto"===u.fill&&(u.fill=r.fill),"auto"===u.stroke&&(u.stroke=r.fill),"auto"===p.stroke&&(p.stroke=r.fill),!a){var m=e.get("inactiveBorderWidth"),v=u[t.indexOf("empty")>-1?"fill":"stroke"];u.lineWidth="auto"===m?r.lineWidth>0&&v?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=n.get("inactiveColor"),p.lineWidth=n.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}(l=y||l||"roundRect",i,r.getModel("lineStyle"),a,s,f,m),b=new pV,x=i.getModel("textStyle");if("function"!=typeof t.getLegendIcon||y&&"inherit"!==y){var w="inherit"===y&&t.getData().getVisual("symbol")?"inherit"===v?t.getData().getVisual("symbolRotate"):v:0;b.add(((d=jm(h=(c={itemWidth:p,itemHeight:g,icon:l,iconRotate:w,itemStyle:_.itemStyle,lineStyle:_.lineStyle}).icon||"roundRect",0,0,c.itemWidth,c.itemHeight,c.itemStyle.fill)).setStyle(c.itemStyle),d.rotation=(c.iconRotate||0)*Math.PI/180,d.setOrigin([c.itemWidth/2,c.itemHeight/2]),h.indexOf("empty")>-1&&(d.style.stroke=d.style.fill,d.style.fill="#fff",d.style.lineWidth=2),d))}else b.add(t.getLegendIcon({itemWidth:p,itemHeight:g,icon:l,iconRotate:v,itemStyle:_.itemStyle,lineStyle:_.lineStyle}));var k="left"===o?p+5:-5,C=o,S=r.get("formatter"),M=e;"string"==typeof S&&S?M=S.replace("{name}",null!=e?e:""):"function"==typeof S&&(M=S(e));var A=i.get("inactiveColor");b.add(new zs({style:Vc(x,{text:M,x:k,y:g/2,fill:m?x.getTextColor():A,align:C,verticalAlign:"middle"})}));var I=new As({shape:b.getBoundingRect(),invisible:!0}),O=i.getModel("tooltip");return O.get("show")&&Ec({el:I,componentModel:r,itemName:e,itemTooltipOption:O.option}),b.add(I),b.eachChild(function(t){t.silent=!0}),I.silent=!u,this.getContentGroup().add(b),Ml(b),b.__legendDataIndex=n,b},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();sd(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){sd("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),h=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),f=t.getOrient().index,p=0===f?"width":"height",g=0===f?"height":"width",m=0===f?"y":"x";"end"===o?h[f]+=l[p]+d:u[f]+=c[p]+d,h[1-f]+=l[g]/2-c[g]/2,s.x=h[0],s.y=h[1],a.x=u[0],a.y=u[1];var v={x:0,y:0};return v[p]=l[p]+d+c[p],v[g]=Math.max(l[g],c[g]),v[m]=Math.min(0,c[m]+h[1-f]),v}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(qp);function bV(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var n=0;nn[r],p=[-h.x,-h.y];e||(p[i]=l[s]);var g=[0,0],m=[-d.x,-d.y],v=gt(t.get("pageButtonGap",!0),t.get("itemGap",!0));f&&("end"===t.get("pageButtonPosition",!0)?m[i]+=n[r]-d[r]:g[i]+=d[r]+v),m[1-i]+=h[o]/2-d[o]/2,l.setPosition(p),u.setPosition(g),c.setPosition(m);var y={x:0,y:0};if(y[r]=f?n[r]:h[r],y[o]=Math.max(h[o],d[o]),y[a]=Math.min(0,d[a]+m[1-i]),u.__rectSize=n[r],f){var _={x:0,y:0};_[r]=Math.max(n[r]-d[r]-v,0),_[o]=y[o],u.setClipPath(new As({shape:_})),u.__rectSize=_[r]}else c.eachChild(function(t){t.attr({invisible:!0,silent:!0})});var b=this._getPageInfo(t);return null!=b.pageIndex&&mc(l,{x:b.contentPosition[0],y:b.contentPosition[1]},f?t:null),this._updatePageInfoView(t,b),y},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;q(["pagePrev","pageNext"],function(i){var r=null!=e[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",t.get(r?"pageIconColor":"pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")});var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",it(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=MV[r],a=AV[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],c=l.length,h=c?1:0,d={contentPosition:[n.x,n.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var f=y(u);d.contentPosition[r]=-f.s;for(var p=s+1,g=f,m=f,v=null;p<=c;++p)(!(v=y(l[p]))&&m.e>g.s+i||v&&!_(v,g.s))&&(g=m.i>g.i?m:v)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),m=v;for(p=s-1,g=f,m=f,v=null;p>=-1;--p)(v=y(l[p]))&&_(m,v.s)||!(g.i=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild(function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)}),null!=e?e:n):0;var e,n},e.type="legend.scroll",e}(_V);function OV(t){R_(wV),t.registerComponentModel(CV),t.registerComponentView(IV),function(t){t.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(t){t.setScrollDataIndex(n)})})}(t)}var TV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="dataZoom.inside",e.defaultOption=ch(wN.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(wN),DV=qr();function PV(t,e,n){DV(t).coordSysRecordMap.each(function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)})}function EV(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function RV(t,e){t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function LV(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}var NV=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return m(e,t),e.prototype.render=function(e,n,i){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),PV(i,e,{pan:J(FV.pan,this),zoom:J(FV.zoom,this),scrollMove:J(FV.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var n=DV(t).coordSysRecordMap,i=n.keys(),r=0;r0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return _O(0,o,[0,100],0,c.minSpan,c.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:zV(function(t,e,n,i,r,o){var a=VV[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength}),scrollMove:zV(function(t,e,n,i,r,o){return VV[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n).signal*(t[1]-t[0])*o.scrollDelta})};function zV(t){return function(e,n,i,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s)return _O(t(a,s,e,n,i,r),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}var VV={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}},BV=NV;function HV(t){DN(t),t.registerComponentModel(TV),t.registerComponentView(BV),function(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,function(t,e){var n=DV(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=St());i.each(function(t){t.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(t){q(_N(t).infoList,function(n){var r=n.model.uid,o=i.get(r)||i.set(r,function(t,e){var n={model:e,containsPoint:tt(LV,e),dispatchAction:tt(RV,t),dataZoomInfoMap:null,controller:null},i=n.controller=new OS(t.getZr());return q(["pan","zoom","scrollMove"],function(t){i.on(t,function(e){var i=[];n.dataZoomInfoMap.each(function(r){if(e.isAvailableBehavior(r.model.option)){var o=(r.getRange||{})[t],a=o&&o(r.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!r.model.get("disabled",!0)&&a&&i.push({dataZoomId:r.model.id,start:a[0],end:a[1]})}}),i.length&&n.dispatchAction(i)})}),n}(e,n.model));(o.dataZoomInfoMap||(o.dataZoomInfoMap=St())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})})}),i.each(function(t){var e,n=t.controller,r=t.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(e=r.get(o))}if(e){var a=function(t){var e,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return t.each(function(t){var o=t.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");i[n+a]>i[n+e]&&(e=a),r=r&&o.get("preventDefaultMouseMove",!0)}),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}(r);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),lg(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else EV(i,t)})})}(t)}var jV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=ch(wN.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(wN),GV=As,UV="horizontal",WV="vertical",YV=["line","bar","candlestick","scatter"],qV={easing:"cubicOut",duration:100};function XV(t){return"vertical"===t?"ns-resize":"ew-resize"}var ZV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}return m(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=J(this._onBrush,this),this._onBrushEnd=J(this._onBrushEnd,this)},e.prototype.render=function(e,n,i,r){if(t.prototype.render.apply(this,arguments),lg(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){var t;(t=this._dispatchZoomAction)&&t[rg]&&(this._dispatchZoomAction=t[rg]);var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new tr;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,i=this._findCoordRect(),r={width:e.getWidth(),height:e.getHeight()},o=this._orient===UV?{right:r.width-i.x-i.width,top:r.height-30-7-n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},a=dd(t.option);q(["right","top","width","height"],function(t){"ph"===a[t]&&(a[t]=o[t])});var s=ld(a,r);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===WV&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==UV||r?n===UV&&r?{scaleY:a?1:-1,scaleX:-1}:n!==WV||r?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([o]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new GV({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new GV({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:J(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(r)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=t.series,i=n.getRawData(),r=n.getShadowDim?n.getShadowDim():t.otherDim;if(null!=r){var o=i.getDataExtent(r),a=.3*(o[1]-o[0]);o=[o[0]-a,o[1]+a];var s,l=[0,e[1]],u=[[e[0],0],[0,0]],c=[],h=e[0]/(i.count()-1),d=0,f=Math.round(i.count()/e[0]);i.each([r],function(t,e){if(f>0&&e%f)d+=h;else{var n=null==t||isNaN(t)||""===t,i=n?0:hr(t,o,l,!0);n&&!s&&e?(u.push([u[u.length-1][0],0]),c.push([c[c.length-1][0],0])):!n&&s&&(u.push([d,0]),c.push([d,0])),u.push([d,i]),c.push([d,i]),d+=h,s=n}});for(var p=this.dataZoomModel,g=0;g<3;g++){var m=v(1===g);this._displayables.sliderGroup.add(m),this._displayables.dataShadowSegs.push(m)}}}function v(t){var e=p.getModel(t?"selectedDataBackground":"dataBackground"),n=new tr,i=new Au({shape:{points:u},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new Tu({shape:{points:c},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,i=this.ecModel;return t.eachTargetAxis(function(r,o){q(t.getAxisProxy(r,o).getTargetSeriesModels(),function(t){if(!(n||!0!==e&&G(YV,t.get("type"))<0)){var a,s=i.getComponent(yN(r),o).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[r],u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:r,otherDim:l,otherAxisInverse:a}}},this)},this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=e.filler=new GV({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(c),r.add(new GV({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),q([0,1],function(e){var o=a.get("handleIcon");!Vm[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=jm(o,-1,0,2,2,null,!0);s.attr({cursor:XV(this._orient),draggable:!0,drift:J(this._onDragMove,this,e),ondragend:J(this._onDragEnd,this),onmouseover:J(this._showDataInfo,this,!0),onmouseout:J(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=dr(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),Ml(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),r.add(n[e]=s);var h=a.getModel("textStyle");t.add(i[e]=new zs({silent:!0,invisible:!0,style:Vc(h,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:h.getTextColor(),font:h.getFont()}),z2:10}))},this);var h=c;if(u){var d=dr(a.get("moveHandleSize"),o[1]),f=e.moveHandle=new As({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:d}}),p=.8*d,g=e.moveHandleIcon=jm(a.get("moveHandleIcon"),-p/2,-p/2,p,p,"#fff",!0);g.silent=!0,g.y=o[1]+d/2-.5,f.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var m=Math.min(o[1]/2,Math.max(d,10));(h=e.moveZone=new As({invisible:!0,shape:{y:o[1]-m,height:d+m}})).on("mouseover",function(){s.enterEmphasis(f)}).on("mouseout",function(){s.leaveEmphasis(f)}),r.add(f),r.add(g),r.add(h)}h.attr({draggable:!0,cursor:XV(this._orient),drift:J(this._onDragMove,this,"all"),ondragstart:J(this._showDataInfo,this,!0),ondragend:J(this._onDragEnd,this),onmouseover:J(this._showDataInfo,this,!0),onmouseout:J(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[hr(t[0],[0,100],e,!0),hr(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];_O(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?hr(o.minSpan,a,r,!0):null,null!=o.maxSpan?hr(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=pr([hr(i[0],r,a,!0),hr(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=pr(n.slice()),r=this._size;q([0,1],function(t){var i=this._handleHeight;e.handles[t].attr({scaleX:i/2,scaleY:i/2,x:n[t]+(t?-1:1),y:r[1]/2-i/2})},this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;le[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=this._updateInterval("all",n[0]-(i[0]+i[1])/2);this._updateView(),r&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){this._brushStart=new wi(t.offsetX,t.offsetY),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var n=e.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),r=[0,100];this._range=pr([hr(n.x,i,r,!0),hr(n.x+n.width,i,r,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(be(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=n.brushRect;i||(i=n.brushRect=new GV({silent:!0,style:this.dataZoomModel.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(i)),i.attr("ignore",!1);var r=this._brushStart,o=this._displayables.sliderGroup,a=o.transformCoordToLocal(t,e),s=o.transformCoordToLocal(r.x,r.y),l=this._size;a[0]=Math.max(Math.min(l[0],a[0]),0),i.setShape({x:s[0],y:0,width:a[0]-s[0],height:l[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?qV:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=_N(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),r=this.api.getHeight();t={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return t},e.type="dataZoom.slider",e}(CN);function KV(t){t.registerComponentModel(jV),t.registerComponentView(ZV),DN(t)}var $V={get:function(t,e,n){var i=F((QV[t]||{})[e]);return n&&et(i)?i[i.length-1]:i}},QV={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},JV=$V,tB=xA.mapVisual,eB=xA.eachVisual,nB=et,iB=q,rB=pr,oB=hr,aB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return m(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;x.canvasSupported||(n.realtime=!1),!e&&JF(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=J(t,this),this.controllerVisuals=QF(this.option.controller,e,t),this.targetVisuals=QF(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries(function(t,n){e.push(n)}):e=Nr(t),e},e.prototype.eachTargetSeries=function(t,e){q(this.getTargetSeriesIndices(),function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)},this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries(function(n){n===t&&(e=!0)}),e},e.prototype.formatValueText=function(t,e,n){var i,r=this.option,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],et(t)&&(t=t.slice(),i=!0);var l=e?t:i?[u(t[0]),u(t[1])]:u(t);return it(s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):nt(s)?i?s(t[0],t[1]):s(t):i?t[0]===a[0]?n[0]+" "+l[1]:t[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,e=rB([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimension=function(t){var e=this.option.dimension;if(null!=e||t.dimensions.length){if(null!=e)return t.getDimension(e);for(var n=t.dimensions,i=n.length-1;i>=0;i--){var r=n[i];if(!t.getDimensionInfo(r).isCalculationCoord)return r}}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),r=e.controller||(e.controller={});z(i,n),z(r,n);var o=this.isCategory();function a(n){nB(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}a.call(this,i),a.call(this,r),(function(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},iB(i,function(t,e){if(xA.isValidType(e)){var n=JV.get(e,"inactive",o);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}}))}).call(this,i,"inRange","outOfRange"),(function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol()||"roundRect";iB(this.stateList,function(a){var s=this.itemSize,l=t[a];l||(l=t[a]={color:o?i:[i]}),null==l.symbol&&(l.symbol=e&&F(e)||(o?r:[r])),null==l.symbolSize&&(l.symbolSize=n&&F(n)||(o?s[0]:[s[0],s[0]])),l.symbol=tB(l.symbol,function(t){return"none"===t?r:t});var u=l.symbolSize;if(null!=u){var c=-1/0;eB(u,function(t){t>c&&(c=t)}),l.symbolSize=tB(u,function(t){return oB(t,[0,c],[0,s[0]],!0)})}},this)}).call(this,r)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,zlevel:0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(md),sB=[20,140];function lB(t,e,n){if(n[0]===n[1])return n.slice();for(var i=(n[1]-n[0])/200,r=n[0],o=[],a=0;a<=200&&re[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),q(this.stateList,function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)},this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=pr((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries(function(n){var i=[],r=n.getData();r.each(this.getDataDimension(r),function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)},this),e.push({seriesId:n.id,dataIndex:i})},this),e},e.prototype.getVisualMeta=function(t){var e=lB(0,0,this.getExtent()),n=lB(0,0,this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;at[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:r/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new tr("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent();gB([0,1],function(l){var u=r[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var c=pB(t[l],[0,a[1]],s,!0),h=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=h/a[0],u.x=a[0]-h/2;var d=kc(n.handleLabelPoints[l],wc(u,this.group));o[l].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})},this)}},e.prototype._showIndicator=function(t,e,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),h=this.getControllerVisual(t,"symbolSize"),d=pB(t,o,s,!0),f=a[0]-h/2,p={x:u.x,y:u.y};u.y=d,u.x=f;var g=kc(l.indicatorLabelPoint,wc(u,this.group)),m=l.indicatorLabel;m.attr("invisible",!1);var v=this._applyTransform("left",l.mainGroup),y="horizontal"===this._orient;m.setStyle({text:(n||"")+r.formatValueText(e),verticalAlign:y?v:"middle",align:y?"center":v});var _={x:f,y:d,style:{fill:c}},b={style:{x:g[0],y:g[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var x={duration:100,easing:"cubicInOut",additive:!0};u.x=p.x,u.y=p.y,u.animateTo(_,x),m.animateTo(b,x)}else u.attr(_),m.attr(b);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var k=0;ki[1]&&(l[1]=1/0),e&&(l[0]===-1/0?this._showIndicator(s,l[1],"< ",o):l[1]===1/0?this._showIndicator(s,l[0],"> ",o):this._showIndicator(s,s,"\u2248 ",o));var u=this._hoverLinkDataIndices,c=[];(e||_B(n))&&(c=this._hoverLinkDataIndices=n.findTargetDataIndices(l));var h=function(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[o(n),o(i)];function r(t,e,n){for(var i=0,r=t.length;i0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"}),t.registerAction(wB,kB),q(CB,function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)}),t.registerPreprocessor(AB))}function DB(t){t.registerComponentModel(uB),t.registerComponentView(xB),TB(t)}var PB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return m(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],EB[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var r=this.option.categories;this.resetVisual(function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=F(r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=X(this._pieceList,function(t){return t=F(t),"inRange"!==e&&(t.visual=null),t}))})},e.prototype.completeVisualOption=function(){var e=this.option,n={},i=xA.listVisualTypes(),r=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}q(e.pieces,function(t){q(i,function(e){t.hasOwnProperty(e)&&(n[e]=1)})}),q(n,function(t,n){var i=!1;q(this.stateList,function(t){i=i||o(e,t,n)||o(e.target,t,n)},this),!i&&q(this.stateList,function(t){(e[t]||(e[t]={}))[n]=JV.get(n,"inRange"===t?"active":"inactive",r)})},this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,r=(e?n:t).selected||{};if(n.selected=r,q(i,function(t,e){var n=this.getSelectedMapKey(t);r.hasOwnProperty(n)||(r[n]=!0)},this),"single"===n.selectedMode){var o=!1;q(i,function(t,e){var n=this.getSelectedMapKey(t);r[n]&&(o?r[n]=!1:o=!0)},this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=F(t)},e.prototype.getValueState=function(t){var e=xA.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries(function(i){var r=[],o=i.getData();o.each(this.getDataDimension(o),function(e,i){xA.findPieceIndex(e,n)===t&&r.push(i)},this),e.push({seriesId:i.id,dataIndex:r})},this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),(o=r[r.length-1].interval[1])!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return q(r,function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],"outOfRange"),s(e.slice()),a=e[1])},this),{stops:e,outerColors:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=t(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=ch(aB.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(aB),EB={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;for(var o=(i[1]-i[0])/r;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a","\u2265"][e[0]]])},this)}};function RB(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var LB=PB,NB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,c=pt(e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,c,a),q(l.viewPieceList,function(i){var l=i.piece,u=new tr;u.onclick=J(this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var h=e.getRepresentValue(l);if(this._createItemSymbol(u,h,[0,0,s[0],s[1]]),c){var d=this.visualMapModel.getValueState(h);u.add(new zs({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===d?.5:1}}))}t.add(u)},this),u&&this._renderEndsText(t,u[1],s,c,a),sd(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",function(){return i("highlight")}).on("mouseout",function(){return i("downplay")});var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:fB(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return dB(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,i,r){if(e){var o=new tr,a=this.visualMapModel.textStyleModel;o.add(new zs({style:{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:e,font:a.getFont(),fill:a.getTextColor()}})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=X(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),n=t.get("text"),i=t.get("orient"),r=t.get("inverse");return("horizontal"===i?r:!r)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n){t.add(jm(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=F(n.selected),r=e.getSelectedMapKey(t);"single"===n.selectedMode?(i[r]=!0,q(i,function(t,e){i[e]=e===r})):i[r]=!i[r],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})},e.type="visualMap.piecewise",e}(cB);function FB(t){t.registerComponentModel(LB),t.registerComponentView(NB),TB(t)}var zB={label:{enabled:!0},decal:{show:!1}},VB=qr(),BB={};function HB(t,e){var n=t.getModel("aria");if(n.get("enabled")){var i=F(zB);z(i.label,t.getLocaleModel().get("aria"),!1),z(n.option,i,!1),function(){if(n.getModel("decal").get("show")){var e=St();t.eachSeries(function(t){if(t.useColorPaletteOnData){var n=e.get(t.type);n||e.set(t.type,n={}),VB(t).scope=n}}),t.eachRawSeries(function(e){if(!t.isSeriesFiltered(e))if("function"!=typeof e.enableAriaDecal){var n=e.getData();if(e.useColorPaletteOnData){var i=e.getRawData(),r={},o=VB(e).scope;n.each(function(t){var e=n.getRawIndex(t);r[e]=t});var a=i.count();i.each(function(t){var s=r[t],l=i.getName(t)||t+"",c=jd(e.ecModel,l,o,a),h=n.getItemVisual(s,"decal");n.setItemVisual(s,"decal",u(h,c))})}else{var s=jd(e.ecModel,e.name,BB,t.getSeriesCount()),l=n.getVisual("decal");n.setVisual("decal",u(l,s))}}else e.enableAriaDecal();function u(t,e){var n=t?B(B({},e),t):e;return n.dirty=!0,n}})}}(),function(){var i=t.getLocaleModel().get("aria"),o=n.getModel("label");if(o.option=H(o.option,i),o.get("enabled")){var a=e.getZr().dom;if(o.get("description"))a.setAttribute("aria-label",o.get("description"));else{var s,l=t.getSeriesCount(),u=o.get(["data","maxCount"])||10,c=o.get(["series","maxCount"])||10,h=Math.min(l,c);if(!(l<1)){var d=function(){var e=t.get("title");return e&&e.length&&(e=e[0]),e&&e.text}();s=d?r(o.get(["general","withTitle"]),{title:d}):o.get(["general","withoutTitle"]);var f=[];s+=r(o.get(l>1?["series","multiple","prefix"]:["series","single","prefix"]),{seriesCount:l}),t.eachSeries(function(e,n){if(n1?["series","multiple",a]:["series","single",a]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(_=e.subType,t.getLocaleModel().get(["series","typeNames"])[_]||"\u81ea\u5b9a\u4e49\u56fe")});var s=e.getData();s.count()>u?i+=r(o.get(["data","partialData"]),{displayCnt:u}):i+=o.get(["data","allData"]);for(var c=[],d=0;d":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},UB=function(){function t(t){null==(this._condVal=it(t)?new RegExp(t):dt(t)?t:null)&&tp("")}return t.prototype.evaluate=function(t){var e=typeof t;return"string"===e?this._condVal.test(t):"number"===e&&this._condVal.test(t+"")},t}(),WB=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),YB=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e=200&&e.status<=299}function r(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var o=e.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),a=e.saveAs||("object"!=typeof window||window!==e?function(){}:"download"in HTMLAnchorElement.prototype&&!o?function(t,o,a){var s=e.URL||e.webkitURL,l=document.createElement("a");l.download=o=o||t.name||"download",l.rel="noopener","string"==typeof t?(l.href=t,l.origin!==location.origin?i(l.href)?n(t,o,a):r(l,l.target="_blank"):r(l)):(l.href=s.createObjectURL(t),setTimeout(function(){s.revokeObjectURL(l.href)},4e4),setTimeout(function(){r(l)},0))}:"msSaveOrOpenBlob"in navigator?function(t,e,o){if(e=e||t.name||"download","string"==typeof t)if(i(t))n(t,e,o);else{var a=document.createElement("a");a.href=t,a.target="_blank",setTimeout(function(){r(a)})}else navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}(t,o),e)}:function(t,i,r,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof t)return n(t,i,r);var s="application/octet-stream"===t.type,l=/constructor/i.test(e.HTMLElement)||e.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||s&&l||o)&&"undefined"!=typeof FileReader){var c=new FileReader;c.onloadend=function(){var t=c.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=t:location=t,a=null},c.readAsDataURL(t)}else{var h=e.URL||e.webkitURL,d=h.createObjectURL(t);a?a.location=d:location.href=d,a=null,setTimeout(function(){h.revokeObjectURL(d)},4e4)}});e.saveAs=a.saveAs=a,t.exports=a},5579:function(t){var e=function(t){"use strict";var e,n=Object.prototype,i=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(D){l=function(t,e,n){return t[e]=n}}function u(t,e,n,i){var r=Object.create((e&&e.prototype instanceof m?e:m).prototype),o=new I(i||[]);return r._invoke=function(t,e,n){var i=h;return function(r,o){if(i===f)throw new Error("Generator is already running");if(i===p){if("throw"===r)throw o;return T()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=S(a,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=f;var l=c(t,e,n);if("normal"===l.type){if(i=n.done?p:d,l.arg===g)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i=p,n.method="throw",n.arg=l.arg)}}}(t,n,o),r}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(D){return{type:"throw",arg:D}}}t.wrap=u;var h="suspendedStart",d="suspendedYield",f="executing",p="completed",g={};function m(){}function v(){}function y(){}var _={};_[o]=function(){return this};var b=Object.getPrototypeOf,x=b&&b(b(O([])));x&&x!==n&&i.call(x,o)&&(_=x);var w=y.prototype=m.prototype=Object.create(_);function k(t){["next","throw","return"].forEach(function(e){l(t,e,function(t){return this._invoke(e,t)})})}function C(t,e){function n(r,o,a,s){var l=c(t[r],t,o);if("throw"!==l.type){var u=l.arg,h=u.value;return h&&"object"==typeof h&&i.call(h,"__await")?e.resolve(h.__await).then(function(t){n("next",t,a,s)},function(t){n("throw",t,a,s)}):e.resolve(h).then(function(t){u.value=t,a(u)},function(t){return n("throw",t,a,s)})}s(l.arg)}var r;this._invoke=function(t,i){function o(){return new e(function(e,r){n(t,i,e,r)})}return r=r?r.then(o,o):o()}}function S(t,n){var i=t.iterator[n.method];if(i===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,S(t,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var r=c(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function O(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function n(){for(;++r=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var l=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(l&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),A(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;A(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:O(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}(t.exports);try{regeneratorRuntime=e}catch(n){Function("r","regeneratorRuntime = r")(e)}},6262:function(t,e,n){"use strict";function i(t){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function r(t,e,n){return(r="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=i(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function o(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function y(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,r,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(o.push(i.value),!e||o.length!==e);a=!0);}catch(l){s=!0,r=l}finally{try{a||null==n.return||n.return()}finally{if(s)throw r}}return o}}(t,e)||m(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t){return function(t){if(Array.isArray(t))return g(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||m(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(t,e,n){return(x=c()?Reflect.construct:function(t,e,n){var i=[null];i.push.apply(i,e);var r=new(Function.bind.apply(t,i));return n&&l(r,n.prototype),r}).apply(null,arguments)}function w(t){var e="function"==typeof Map?new Map:void 0;return(w=function(t){if(null===t||-1===Function.toString.call(t).indexOf("[native code]"))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,n)}function n(){return x(t,arguments,i(this).constructor)}return n.prototype=Object.create(t.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),l(n,t)})(t)}var k=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}();function C(t){return null!==t&&"object"==typeof t}function S(t){return"function"==typeof t}var M=function(){function t(t){return Error.call(this),this.message=t?"".concat(t.length," errors occurred during unsubscription:\n").concat(t.map(function(t,e){return"".concat(e+1,") ").concat(t.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),A=function(){var t=function(){function t(e){s(this,t),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return a(t,[{key:"unsubscribe",value:function(){var e;if(!this.closed){var n=this._parentOrParents,i=this._ctorUnsubscribe,r=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var a=0;a2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof e?function(i){return i.pipe(st(function(n,i){return it(t(n,i)).pipe(q(function(t,r){return e(n,t,i,r)}))},n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new lt(t,n))})}var lt=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;s(this,t),this.project=e,this.concurrent=n}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new ut(t,this.project,this.concurrent))}}]),t}(),ut=function(t){u(n,t);var e=p(n);function n(t,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return s(this,n),(r=e.call(this,t)).project=i,r.concurrent=o,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return a(n,[{key:"_next",value:function(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(ot);function ct(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return st(F,t)}function ht(t,e){return e?nt(t,e):new V(K(t))}function dt(){for(var t=Number.POSITIVE_INFINITY,e=null,n=arguments.length,i=new Array(n),r=0;r1&&"number"==typeof i[i.length-1]&&(t=i.pop())):"number"==typeof o&&(t=i.pop()),null===e&&1===i.length&&i[0]instanceof V?i[0]:ct(t)(ht(i,e))}function ft(){return function(t){return t.lift(new pt(t))}}var pt=function(){function t(e){s(this,t),this.connectable=e}return a(t,[{key:"call",value:function(t,e){var n=this.connectable;n._refCount++;var i=new gt(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r}}]),t}(),gt=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t)).connectable=i,r}return a(n,[{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null}}]),n}(R),mt=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this)).source=t,r.subjectFactory=i,r._refCount=0,r._isComplete=!1,r}return a(n,[{key:"_subscribe",value:function(t){return this.getSubject().subscribe(t)}},{key:"getSubject",value:function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new A).add(this.source.subscribe(new yt(this.getSubject(),this))),t.closed&&(this._connection=null,t=A.EMPTY)),t}},{key:"refCount",value:function(){return ft()(this)}}]),n}(V),vt=function(){var t=mt.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}}}(),yt=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t)).connectable=i,r}return a(n,[{key:"_error",value:function(t){this._unsubscribe(),r(i(n.prototype),"_error",this).call(this,t)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),r(i(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}]),n}(G);function _t(){return new U}function bt(t){for(var e in t)if(t[e]===bt)return e;throw Error("Could not find renamed property on target object.")}function xt(t,e){for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function wt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(wt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function kt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}var Ct=bt({__forward_ref__:bt});function St(t){return t.__forward_ref__=St,t.toString=function(){return wt(this())},t}function Mt(t){return At(t)?t():t}function At(t){return"function"==typeof t&&t.hasOwnProperty(Ct)&&t.__forward_ref__===St}var It=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,function(t,e){var n=t?"NG0".concat(t,": "):"";return"".concat(n).concat(e)}(t,i))).code=t,r}return n}(w(Error));function Ot(t){return"string"==typeof t?t:null==t?"":String(t)}function Tt(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Ot(t)}function Dt(t,e){var n=e?" in ".concat(e):"";throw new It("201","No provider for ".concat(Tt(t)," found").concat(n))}function Pt(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Et(t){return{providers:t.providers||[],imports:t.imports||[]}}function Rt(t){return Lt(t,zt)||Lt(t,Bt)}function Lt(t,e){return t.hasOwnProperty(e)?t[e]:null}function Nt(t){return t&&(t.hasOwnProperty(Vt)||t.hasOwnProperty(Ht))?t[Vt]:null}var Ft,zt=bt({"\u0275prov":bt}),Vt=bt({"\u0275inj":bt}),Bt=bt({ngInjectableDef:bt}),Ht=bt({ngInjectorDef:bt}),jt=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 Gt(){return Ft}function Ut(t){var e=Ft;return Ft=t,e}function Wt(t,e,n){var i=Rt(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:n&jt.Optional?null:void 0!==e?e:void Dt(wt(t),"Injector")}function Yt(t){return{toString:t}.toString()}var qt=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),Xt=function(t){return t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({}),Zt="undefined"!=typeof globalThis&&globalThis,Kt="undefined"!=typeof window&&window,$t="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Qt="undefined"!=typeof global&&global,Jt=Zt||Qt||Kt||$t,te={},ee=[],ne=bt({"\u0275cmp":bt}),ie=bt({"\u0275dir":bt}),re=bt({"\u0275pipe":bt}),oe=bt({"\u0275mod":bt}),ae=bt({"\u0275loc":bt}),se=bt({"\u0275fac":bt}),le=bt({__NG_ELEMENT_ID__:bt}),ue=0;function ce(t){return Yt(function(){var e={},n={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===qt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||ee,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Xt.Emulated,id:"c",styles:t.styles||ee,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,r=t.features,o=t.pipes;return n.id+=ue++,n.inputs=ge(t.inputs,e),n.outputs=ge(t.outputs),r&&r.forEach(function(t){return t(n)}),n.directiveDefs=i?function(){return("function"==typeof i?i():i).map(he)}:null,n.pipeDefs=o?function(){return("function"==typeof o?o():o).map(de)}:null,n})}function he(t){return ye(t)||function(t){return t[ie]||null}(t)}function de(t){return function(t){return t[re]||null}(t)}var fe={};function pe(t){return Yt(function(){var e={type:t.type,bootstrap:t.bootstrap||ee,declarations:t.declarations||ee,imports:t.imports||ee,exports:t.exports||ee,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(fe[t.id]=t.type),e})}function ge(t,e){if(null==t)return te;var n={};for(var i in t)if(t.hasOwnProperty(i)){var r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,e&&(e[r]=o)}return n}var me=ce;function ve(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function ye(t){return t[ne]||null}function _e(t,e){var n=t[oe]||null;if(!n&&!0===e)throw new Error("Type ".concat(wt(t)," does not have '\u0275mod' property."));return n}var be=20,xe=10;function we(t){return Array.isArray(t)&&"object"==typeof t[1]}function ke(t){return Array.isArray(t)&&!0===t[1]}function Ce(t){return 0!=(8&t.flags)}function Se(t){return 2==(2&t.flags)}function Me(t){return 1==(1&t.flags)}function Ae(t){return null!==t.template}function Ie(t,e){return t.hasOwnProperty(se)?t[se]:null}var Oe=function(){function t(e,n,i){s(this,t),this.previousValue=e,this.currentValue=n,this.firstChange=i}return a(t,[{key:"isFirstChange",value:function(){return this.firstChange}}]),t}();function Te(){return De}function De(t){return t.type.prototype.ngOnChanges&&(t.setInput=Ee),Pe}function Pe(){var t=Re(this),e=null==t?void 0:t.current;if(e){var n=t.previous;if(n===te)t.previous=e;else for(var i in e)n[i]=e[i];t.current=null,this.ngOnChanges(e)}}function Ee(t,e,n,i){var r=Re(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:te,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[n],l=a[s];o[s]=new Oe(l&&l.currentValue,e,a===te),t[i]=e}function Re(t){return t.__ngSimpleChanges__||null}Te.ngInherit=!0;var Le="http://www.w3.org/2000/svg",Ne=void 0;function Fe(){return void 0!==Ne?Ne:"undefined"!=typeof document?document:void 0}function ze(t){return!!t.listen}var Ve={createRenderer:function(t,e){return Fe()}};function Be(t){for(;Array.isArray(t);)t=t[0];return t}function He(t,e){return Be(e[t])}function je(t,e){return Be(e[t.index])}function Ge(t,e){return t.data[e]}function Ue(t,e){return t[e]}function We(t,e){var n=e[t];return we(n)?n:n[0]}function Ye(t){return 4==(4&t[2])}function qe(t){return 128==(128&t[2])}function Xe(t,e){return null==e?null:t[e]}function Ze(t){t[18]=0}function Ke(t,e){t[5]+=e;for(var n=t,i=t[3];null!==i&&(1===e&&1===n[5]||-1===e&&0===n[5]);)i[5]+=e,n=i,i=i[3]}var $e={lFrame:wn(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Qe(){return $e.bindingsEnabled}function Je(){return $e.lFrame.lView}function tn(){return $e.lFrame.tView}function en(t){return $e.lFrame.contextLView=t,t[8]}function nn(){for(var t=rn();null!==t&&64===t.type;)t=t.parent;return t}function rn(){return $e.lFrame.currentTNode}function on(t,e){var n=$e.lFrame;n.currentTNode=t,n.isParent=e}function an(){return $e.lFrame.isParent}function sn(){$e.lFrame.isParent=!1}function ln(){return $e.isInCheckNoChangesMode}function un(t){$e.isInCheckNoChangesMode=t}function cn(){var t=$e.lFrame,e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function hn(){return $e.lFrame.bindingIndex}function dn(){return $e.lFrame.bindingIndex++}function fn(t){var e=$e.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function pn(t){$e.lFrame.currentDirectiveIndex=t}function gn(t){var e=$e.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}function mn(){return $e.lFrame.currentQueryIndex}function vn(t){$e.lFrame.currentQueryIndex=t}function yn(t){var e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function _n(t,e,n){if(n&jt.SkipSelf){for(var i=e,r=t;!(null!==(i=i.parent)||n&jt.Host||null===(i=yn(r))||(r=r[15],10&i.type)););if(null===i)return!1;e=i,t=r}var o=$e.lFrame=xn();return o.currentTNode=e,o.lView=t,!0}function bn(t){var e=xn(),n=t[1];$e.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function xn(){var t=$e.lFrame,e=null===t?null:t.child;return null===e?wn(t):e}function wn(t){var e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function kn(){var t=$e.lFrame;return $e.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Cn=kn;function Sn(){var t=kn();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Mn(t){return($e.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,$e.lFrame.contextLView))[8]}function An(){return $e.lFrame.selectedIndex}function In(t){$e.lFrame.selectedIndex=t}function On(){var t=$e.lFrame;return Ge(t.tView,t.selectedIndex)}function Tn(){$e.lFrame.currentNamespace=Le}function Dn(){$e.lFrame.currentNamespace=null}function Pn(t,e){for(var n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[s]<0&&(t[18]+=65536),(a>11>16&&(3&t[2])===e){t[2]+=2048;try{o.call(a)}finally{}}}else try{o.call(a)}finally{}}var zn=-1,Vn=function t(e,n,i){s(this,t),this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=i};function Bn(t,e,n){for(var i=ze(t),r=0;re){a=o-1;break}}}for(;o>16,i=e;n>0;)i=i[15],n--;return i}var Xn=!0;function Zn(t){var e=Xn;return Xn=t,e}var Kn=0;function $n(t,e){var n=Jn(t,e);if(-1!==n)return n;var i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Qn(i.data,t),Qn(e,null),Qn(i.blueprint,null));var r=ti(t,e),o=t.injectorIndex;if(Wn(r))for(var a=Yn(r),s=qn(r,e),l=s[1].data,u=0;u<8;u++)e[o+u]=s[a+u]|l[a+u];return e[o+8]=r,o}function Qn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Jn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function ti(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=0,i=null,r=e;null!==r;){var o=r[1],a=o.type;if(null===(i=2===a?o.declTNode:1===a?r[6]:null))return zn;if(n++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|n<<16}return zn}function ei(t,e,n){!function(t,e,n){var i;"string"==typeof n?i=n.charCodeAt(0)||0:n.hasOwnProperty(le)&&(i=n[le]),null==i&&(i=n[le]=Kn++);var r=255&i;e.data[t+(r>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:jt.Default,r=arguments.length>4?arguments[4]:void 0;if(null!==t){var o=ci(n);if("function"==typeof o){if(!_n(e,t,i))return i&jt.Host?ni(r,n,i):ii(e,n,i,r);try{var a=o(i);if(null!=a||i&jt.Optional)return a;Dt(n)}finally{Cn()}}else if("number"==typeof o){var s=null,l=Jn(t,e),u=zn,c=i&jt.Host?e[16][6]:null;for((-1===l||i&jt.SkipSelf)&&((u=-1===l?ti(t,e):e[l+8])!==zn&&di(i,!1)?(s=e[1],l=Yn(u),e=qn(u,e)):l=-1);-1!==l;){var h=e[1];if(hi(o,l,h.data)){var d=si(l,e,n,s,i,c);if(d!==oi)return d}(u=e[l+8])!==zn&&di(i,e[1].data[l+8]===c)&&hi(o,l,e)?(s=h,l=Yn(u),e=qn(u,e)):l=-1}}}return ii(e,n,i,r)}var oi={};function ai(){return new fi(nn(),Je())}function si(t,e,n,i,r,o){var a=e[1],s=a.data[t+8],l=li(s,a,n,null==i?Se(s)&&Xn:i!=a&&0!=(3&s.type),r&jt.Host&&o===s);return null!==l?ui(e,a,l,s):oi}function li(t,e,n,i,r){for(var o=t.providerIndexes,a=e.data,s=1048575&o,l=t.directiveStart,u=o>>20,c=r?s+u:t.directiveEnd,h=i?s:s+u;h=l&&d.type===n)return h}if(r){var f=a[l];if(f&&Ae(f)&&f.type===n)return l}return null}function ui(t,e,n,i){var r=t[n],o=e.data;if(r instanceof Vn){var a=r;a.resolving&&function(t,e){throw new It("200","Circular dependency in DI detected for ".concat(t).concat(""))}(Tt(o[n]));var s=Zn(a.canSeeViewProviders);a.resolving=!0;var l=a.injectImpl?Ut(a.injectImpl):null;_n(t,i,jt.Default);try{r=t[n]=a.factory(void 0,o,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){var i=e.type.prototype,r=i.ngOnInit,o=i.ngDoCheck;if(i.ngOnChanges){var a=De(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,a)}r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,r),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{null!==l&&Ut(l),Zn(s),a.resolving=!1,Cn()}}return r}function ci(t){if("string"==typeof t)return t.charCodeAt(0)||0;var e=t.hasOwnProperty(le)?t[le]:void 0;return"number"==typeof e?e>=0?255&e:ai:e}function hi(t,e,n){return!!(n[e+(t>>5)]&1<=t.length?t.push(n):t.splice(e,0,n)}function Si(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function Mi(t,e){for(var n=[],i=0;i=0?t[1|i]=n:function(t,e,n,i){var r=t.length;if(r==e)t.push(n,i);else if(1===r)t.push(i,t[0]),t[0]=n;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=n,t[e+1]=i}}(t,i=~i,e,n),i}function Ii(t,e){var n=Oi(t,e);if(n>=0)return t[1|n]}function Oi(t,e){return function(t,e,n){for(var i=0,r=t.length>>1;r!==i;){var o=i+(r-i>>1),a=t[o<<1];if(e===a)return o<<1;a>e?r=o:i=o+1}return~(r<<1)}(t,e)}var Ti={},Di=/\n/gm,Pi="__source",Ei=bt({provide:String,useValue:bt}),Ri=void 0;function Li(t){var e=Ri;return Ri=t,e}function Ni(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jt.Default;if(void 0===Ri)throw new Error("inject() must be called from an injection context");return null===Ri?Wt(t,void 0,e):Ri.get(t,e&jt.Optional?null:void 0,e)}function Fi(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:jt.Default;return(Gt()||Ni)(Mt(t),e)}var zi=Fi;function Vi(t){for(var e=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:null;t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;var r=wt(e);if(Array.isArray(e))r=e.map(wt).join(" -> ");else if("object"==typeof e){var o=[];for(var a in e)if(e.hasOwnProperty(a)){var s=e[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):wt(s)))}r="{".concat(o.join(", "),"}")}return"".concat(n).concat(i?"("+i+")":"","[").concat(r,"]: ").concat(t.replace(Di,"\n "))}("\n"+t.message,r,n,i),t.ngTokenPath=r,t.ngTempTokenPath=null,t}var ji,Gi,Ui=Bi(yi("Inject",function(t){return{token:t}}),-1),Wi=Bi(yi("Optional"),8),Yi=Bi(yi("SkipSelf"),4);function qi(t){var e;return(null===(e=function(){if(void 0===ji&&(ji=null,Jt.trustedTypes))try{ji=Jt.trustedTypes.createPolicy("angular",{createHTML:function(t){return t},createScript:function(t){return t},createScriptURL:function(t){return t}})}catch(e){}return ji}())||void 0===e?void 0:e.createHTML(t))||t}function Xi(t){var e;return(null===(e=function(){if(void 0===Gi&&(Gi=null,Jt.trustedTypes))try{Gi=Jt.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(t){return t},createScript:function(t){return t},createScriptURL:function(t){return t}})}catch(e){}return Gi}())||void 0===e?void 0:e.createHTML(t))||t}var Zi=function(){function t(e){s(this,t),this.changingThisBreaksApplicationSecurity=e}return a(t,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),t}(),Ki=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"getTypeName",value:function(){return"HTML"}}]),n}(Zi),$i=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"getTypeName",value:function(){return"Style"}}]),n}(Zi),Qi=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"getTypeName",value:function(){return"Script"}}]),n}(Zi),Ji=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"getTypeName",value:function(){return"URL"}}]),n}(Zi),tr=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),n}(Zi);function er(t){return t instanceof Zi?t.changingThisBreaksApplicationSecurity:t}function nr(t,e){var n=ir(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error("Required a safe ".concat(e,", got a ").concat(n," (see https://g.co/ng/security#xss)"))}return n===e}function ir(t){return t instanceof Zi&&t.getTypeName()||null}var rr=function(){function t(e){s(this,t),this.inertDocumentHelper=e}return a(t,[{key:"getInertBodyElement",value:function(t){t=""+t;try{var e=(new window.DOMParser).parseFromString(qi(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch(n){return null}}}]),t}(),or=function(){function t(e){if(s(this,t),this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n);var i=this.inertDocument.createElement("body");n.appendChild(i)}}return a(t,[{key:"getInertBodyElement",value:function(t){var e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=qi(t),e;var n=this.inertDocument.createElement("body");return n.innerHTML=qi(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}},{key:"stripCustomNsAttrs",value:function(t){for(var e=t.attributes,n=e.length-1;0"),!0}},{key:"endElement",value:function(t){var e=t.nodeName.toLowerCase();mr.hasOwnProperty(e)&&!dr.hasOwnProperty(e)&&(this.buf.push(""))}},{key:"chars",value:function(t){this.buf.push(Cr(t))}},{key:"checkClobberedElement",value:function(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: ".concat(t.outerHTML));return e}}]),t}(),wr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,kr=/([^\#-~ |!])/g;function Cr(t){return t.replace(/&/g,"&").replace(wr,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(kr,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function Sr(t,e){var n=null;try{hr=hr||function(t){var e=new or(t);return function(){try{return!!(new window.DOMParser).parseFromString(qi(""),"text/html")}catch(t){return!1}}()?new rr(e):e}(t);var i=e?String(e):"";n=hr.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=hr.getInertBodyElement(i)}while(i!==o);return qi((new xr).sanitizeChildren(Mr(n)||n))}finally{if(n)for(var a=Mr(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}function Mr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ar=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 Ir(t){var e=Tr();return e?Xi(e.sanitize(Ar.HTML,t)||""):nr(t,"HTML")?Xi(er(t)):Sr(Fe(),Ot(t))}function Or(t){var e=Tr();return e?e.sanitize(Ar.URL,t)||"":nr(t,"URL")?er(t):lr(Ot(t))}function Tr(){var t=Je();return t&&t[12]}function Dr(t,e){t.__ngContext__=e}function Pr(t){var e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Er(t){return t.ngDebugContext}function Rr(t){return t.ngOriginalError}function Lr(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i0&&(t[i-1][4]=r[4]);var a=Si(t,xe+e);po(r[1],n=r,n[11],2,null,null),n[0]=null,n[6]=null;var s=a[19];null!==s&&s.detachView(a[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Jr(t,e){if(!(256&e[2])){var n=e[11];ze(n)&&n.destroyNode&&po(t,e,n,3,null,null),function(t){var e=t[13];if(!e)return to(t[1],t);for(;e;){var n=null;if(we(e))n=e[13];else{var i=e[10];i&&(n=i)}if(!n){for(;e&&!e[4]&&e!==t;)we(e)&&to(e[1],e),e=e[3];null===e&&(e=t),we(e)&&to(e[1],e),n=e&&e[4]}e=n}}(e)}}function to(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){var n;if(null!=t&&null!=(n=t.destroyHooks))for(var i=0;i=0?i[r=u]():i[r=-u].unsubscribe(),o+=2}else{var c=i[r=n[o+1]];n[o].call(c)}if(null!==i){for(var h=r+1;ho?"":r[c+1].toLowerCase();var d=8&i?h:null;if(d&&-1!==_o(d,u,0)||2&i&&u!==h){if(So(i))return!1;a=!0}}}}else{if(!a&&!So(i)&&!So(l))return!1;if(a&&So(l))continue;a=!1,i=l|1&i}}return So(i)||a}function So(t){return 0==(1&t)}function Mo(t,e,n,i){if(null===e)return-1;var r=0;if(i||!n){for(var o=!1;r-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],i=0;i0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""===r||So(a)||(e+=Oo(o,r),r=""),i=a,o=o||!So(i);n++}return""!==r&&(e+=Oo(o,r)),e}var Do={};function Po(t){Eo(tn(),Je(),An()+t,ln())}function Eo(t,e,n,i){if(!i)if(3==(3&e[2])){var r=t.preOrderCheckHooks;null!==r&&En(e,r,n)}else{var o=t.preOrderHooks;null!==o&&Rn(e,o,0,n)}In(n)}function Ro(t,e){return t<<17|e<<2}function Lo(t){return t>>17&32767}function No(t){return 2|t}function Fo(t){return(131068&t)>>2}function zo(t,e){return-131069&t|e<<2}function Vo(t){return 1|t}function Bo(t,e){var n=t.contentQueries;if(null!==n)for(var i=0;ibe&&Eo(t,e,be,ln()),n(i,r)}finally{In(o)}}function Xo(t,e,n){if(Ce(e))for(var i=e.directiveEnd,r=e.directiveStart;r2&&void 0!==arguments[2]?arguments[2]:je,i=e.localNames;if(null!==i)for(var r=e.index+1,o=0;o0;){var n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(s)!=l&&s.push(l),s.push(i,r,a)}}function ra(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function oa(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function aa(t,e,n){if(n){if(e.exportAs)for(var i=0;i0&&pa(n)}}function pa(t){for(var e=Wr(t);null!==e;e=Yr(e))for(var n=xe;n0&&pa(i)}var o=t[1].components;if(null!==o)for(var a=0;a0&&pa(s)}}function ga(t,e){var n=We(e,t),i=n[1];!function(t,e){for(var n=e.length;n1&&void 0!==arguments[1]?arguments[1]:Ti;if(e===Ti){var n=new Error("NullInjectorError: No provider for ".concat(wt(t),"!"));throw n.name="NullInjectorError",n}return e}}]),t}(),Da=new _i("Set Injector scope."),Pa={},Ea={},Ra=void 0;function La(){return void 0===Ra&&(Ra=new Ta),Ra}function Na(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3?arguments[3]:void 0;return new Fa(t,n,e||La(),i)}var Fa=function(){function t(e,n,i){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;s(this,t),this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var a=[];n&&ki(n,function(t){return r.processProvider(t,e,n)}),ki([e],function(t){return r.processInjectorType(t,[],a)}),this.records.set(Oa,Ba(void 0,this));var l=this.records.get(Da);this.scope=null!=l?l.value:null,this.source=o||("object"==typeof e?null:wt(e))}return a(t,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(t){return t.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ti,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:jt.Default;this.assertNotDestroyed();var i=Li(this);try{if(!(n&jt.SkipSelf)){var r=this.records.get(t);if(void 0===r){var o=Ga(t)&&Rt(t);r=o&&this.injectableDefInScope(o)?Ba(za(t),Pa):null,this.records.set(t,r)}if(null!=r)return this.hydrate(t,r)}var a=n&jt.Self?La():this.parent;return a.get(t,e=n&jt.Optional&&e===Ti?null:e)}catch(l){if("NullInjectorError"===l.name){var s=l.ngTempTokenPath=l.ngTempTokenPath||[];if(s.unshift(wt(t)),i)throw l;return Hi(l,t,"R3InjectorError",this.source)}throw l}finally{Li(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var t=this;this.injectorDefTypes.forEach(function(e){return t.get(e)})}},{key:"toString",value:function(){var t=[];return this.records.forEach(function(e,n){return t.push(wt(n))}),"R3Injector[".concat(t.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(t,e,n){var i=this;if(!(t=Mt(t)))return!1;var r=Nt(t),o=null==r&&t.ngModule||void 0,a=void 0===o?t:o,s=-1!==n.indexOf(a);if(void 0!==o&&(r=Nt(o)),null==r)return!1;if(null!=r.imports&&!s){var l;n.push(a);try{ki(r.imports,function(t){i.processInjectorType(t,e,n)&&(void 0===l&&(l=[]),l.push(t))})}finally{}if(void 0!==l)for(var u=function(t){var e=l[t],n=e.ngModule,r=e.providers;ki(r,function(t){return i.processProvider(t,n,r||ee)})},c=0;c0){var n=Mi(e,"?");throw new Error("Can't resolve all parameters for ".concat(wt(t),": (").concat(n.join(", "),")."))}var i=function(t){var e=t&&(t[zt]||t[Bt]);if(e){var n=function(t){if(t.hasOwnProperty("name"))return t.name;var e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(n,'" that inherits its @Injectable decorator but does not provide one itself.\n')+'This will become an error in a future version of Angular. Please add @Injectable() to the "'.concat(n,'" class.')),e}return null}(t);return null!==i?function(){return i.factory(t)}:function(){return new t}}(t);throw new Error("unreachable")}function Va(t,e,n){var i,r=void 0;if(ja(t)){var o=Mt(t);return Ie(o)||za(o)}if(Ha(t))r=function(){return Mt(t.useValue)};else if((i=t)&&i.useFactory)r=function(){return t.useFactory.apply(t,b(Vi(t.deps||[])))};else if(function(t){return!(!t||!t.useExisting)}(t))r=function(){return Fi(Mt(t.useExisting))};else{var a=Mt(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return Ie(a)||za(a);r=function(){return x(a,b(Vi(t.deps)))}}return r}function Ba(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:t,value:e,multi:n?[]:void 0}}function Ha(t){return null!==t&&"object"==typeof t&&Ei in t}function ja(t){return"function"==typeof t}function Ga(t){return"function"==typeof t||"object"==typeof t&&t instanceof _i}var Ua=function(t,e,n){return function(t){var e=Na(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,arguments.length>3?arguments[3]:void 0);return e._resolveInjectorDefTypes(),e}({name:n},e,t,n)},Wa=function(){var t=function(){function t(){s(this,t)}return a(t,null,[{key:"create",value:function(t,e){return Array.isArray(t)?Ua(t,e,""):Ua(t.providers,t.parent,t.name||"")}}]),t}();return t.THROW_IF_NOT_FOUND=Ti,t.NULL=new Ta,t.\u0275prov=Pt({token:t,providedIn:"any",factory:function(){return Fi(Oa)}}),t.__NG_ELEMENT_ID__=-1,t}();function Ya(t,e){Pn(Pr(t)[1],nn())}function qa(t){for(var e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0,i=[t];e;){var r=void 0;if(Ae(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(n){i.push(r);var o=t;o.inputs=Xa(t.inputs),o.declaredInputs=Xa(t.declaredInputs),o.outputs=Xa(t.outputs);var a=r.hostBindings;a&&$a(t,a);var s=r.viewQuery,l=r.contentQueries;if(s&&Za(t,s),l&&Ka(t,l),xt(t.inputs,r.inputs),xt(t.declaredInputs,r.declaredInputs),xt(t.outputs,r.outputs),Ae(r)&&r.data.animation){var u=t.data;u.animation=(u.animation||[]).concat(r.data.animation)}}var c=r.features;if(c)for(var h=0;h=0;i--){var r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=Gn(r.hostAttrs,n=Gn(n,r.hostAttrs))}}(i)}function Xa(t){return t===te?{}:t===ee?[]:t}function Za(t,e){var n=t.viewQuery;t.viewQuery=n?function(t,i){e(t,i),n(t,i)}:e}function Ka(t,e){var n=t.contentQueries;t.contentQueries=n?function(t,i,r){e(t,i,r),n(t,i,r)}:e}function $a(t,e){var n=t.hostBindings;t.hostBindings=n?function(t,i){e(t,i),n(t,i)}:e}var Qa=null;function Ja(){if(!Qa){var t=Jt.Symbol;if(t&&t.iterator)Qa=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n1&&void 0!==arguments[1]?arguments[1]:jt.Default,n=Je();if(null===n)return Fi(t,e);var i=nn();return ri(i,n,Mt(t),e)}function hs(t,e,n){var i=Je();return rs(i,dn(),e)&&ea(tn(),On(),i,t,e,i[11],n,!1),hs}function ds(t,e,n,i,r){var o=r?"class":"style";Ma(t,n,e.inputs[o],o,i)}function fs(t,e,n,i){var r=Je(),o=tn(),a=be+t,s=r[11],l=r[a]=Kr(s,e,$e.lFrame.currentNamespace),u=o.firstCreatePass?function(t,e,n,i,r,o,a){var s=e.consts,l=jo(e,t,2,r,Xe(s,o));return na(e,n,l,Xe(s,a)),null!==l.attrs&&Ia(l,l.attrs,!1),null!==l.mergedAttrs&&Ia(l,l.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,l),l}(a,o,r,0,e,n,i):o.data[a];on(u,!0);var c=u.mergedAttrs;null!==c&&Bn(s,l,c);var h=u.classes;null!==h&&yo(s,l,h);var d=u.styles;null!==d&&vo(s,l,d),64!=(64&u.flags)&&lo(o,r,l,u),0===$e.lFrame.elementDepthCount&&Dr(l,r),$e.lFrame.elementDepthCount++,Me(u)&&(Zo(o,r,u),Xo(o,u,r)),null!==i&&Ko(r,u)}function ps(){var t=nn();an()?sn():on(t=t.parent,!1);var e=t;$e.lFrame.elementDepthCount--;var n=tn();n.firstCreatePass&&(Pn(n,t),Ce(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&ds(n,e,Je(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&ds(n,e,Je(),e.stylesWithoutHost,!1)}function gs(t,e,n,i){fs(t,e,n,i),ps()}function ms(t,e,n){var i=Je(),r=tn(),o=t+be,a=r.firstCreatePass?function(t,e,n,i,r){var o=e.consts,a=Xe(o,i),s=jo(e,t,8,"ng-container",a);return null!==a&&Ia(s,a,!0),na(e,n,s,Xe(o,r)),null!==e.queries&&e.queries.elementStart(e,s),s}(o,r,i,e,n):r.data[o];on(a,!0);var s=i[o]=i[11].createComment("");lo(r,i,s,a),Dr(s,i),Me(a)&&(Zo(r,i,a),Xo(r,a,i)),null!=n&&Ko(i,a)}function vs(){var t=nn(),e=tn();an()?sn():on(t=t.parent,!1),e.firstCreatePass&&(Pn(e,t),Ce(t)&&e.queries.elementEnd(t))}function ys(t,e,n){ms(t,e,n),vs()}function _s(){return Je()}function bs(t){return!!t&&"function"==typeof t.then}function xs(t){return!!t&&"function"==typeof t.subscribe}var ws=xs;function ks(t,e,n,i){var r=Je(),o=tn(),a=nn();return Ss(o,r,r[11],a,t,e,!!n,i),ks}function Cs(t,e){var n=nn(),i=Je(),r=tn();return Ss(r,i,Ca(gn(r.data),n,i),n,t,e,!1),Cs}function Ss(t,e,n,i,r,o,a,s){var l=Me(i),u=t.firstCreatePass&&ka(t),c=wa(e),h=!0;if(3&i.type||s){var d=je(i,e),f=s?s(d):d,p=c.length,g=s?function(t){return s(Be(t[i.index]))}:i.index;if(ze(n)){var m=null;if(!s&&l&&(m=function(t,e,n,i){var r=t.cleanup;if(null!=r)for(var o=0;ol?s[l]:null}"string"==typeof a&&(o+=2)}return null}(t,e,r,i.index)),null!==m)(m.__ngLastListenerFn__||m).__ngNextListenerFn__=o,m.__ngLastListenerFn__=o,h=!1;else{o=As(i,e,0,o,!1);var v=n.listen(f,r,o);c.push(o,v),u&&u.push(r,g,p,p+1)}}else o=As(i,e,0,o,!0),f.addEventListener(r,o,a),c.push(o),u&&u.push(r,g,p,a)}else o=As(i,e,0,o,!1);var y,_=i.outputs;if(h&&null!==_&&(y=_[r])){var b=y.length;if(b)for(var x=0;x0&&void 0!==arguments[0]?arguments[0]:1;return Mn(t)}function Os(t,e){for(var n=null,i=function(t){var e=t.attrs;if(null!=e){var n=e.indexOf(5);if(0==(1&n))return e[n+1]}return null}(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,i=Je(),r=tn(),o=jo(r,be+t,16,null,n||null);null===o.projection&&(o.projection=e),sn(),64!=(64&o.flags)&&go(r,i,o)}function Ps(t,e,n){return Es(t,"",e,"",n),Ps}function Es(t,e,n,i,r){var o=Je(),a=ss(o,e,n,i);return a!==Do&&ea(tn(),On(),o,t,a,o[11],r,!1),Es}function Rs(t,e,n,i,r){for(var o=t[n+1],a=null===e,s=i?Lo(o):Fo(o),l=!1;0!==s&&(!1===l||a);){var u=t[s+1];Ls(t[s],e)&&(l=!0,t[s+1]=i?Vo(u):No(u)),s=i?Lo(u):Fo(u)}l&&(t[n+1]=i?No(o):Vo(o))}function Ls(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&Oi(t,e)>=0}var Ns={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Fs(t){return t.substring(Ns.key,Ns.keyEnd)}function zs(t,e){var n=Ns.textEnd;return n===e?-1:(e=Ns.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,Ns.key=e,n),Vs(t,e,n))}function Vs(t,e,n){for(;e=0;n=zs(e,n))Ai(t,Fs(e),!0)}function Gs(t,e,n,i){var r=Je(),o=tn(),a=fn(2);o.firstUpdatePass&&Ws(o,t,a,i),e!==Do&&rs(r,a,e)&&Xs(o,o.data[An()],r,r[11],t,r[a+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=wt(er(t)))),t}(e,n),i,a)}function Us(t,e){return e>=t.expandoStartIndex}function Ws(t,e,n,i){var r=t.data;if(null===r[n+1]){var o=r[An()],a=Us(t,n);$s(o,i)&&null===e&&!a&&(e=!1),e=function(t,e,n,i){var r=gn(t),o=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=qs(n=Ys(null,t,e,n,i),e.attrs,i),o=null);else{var a=e.directiveStylingLast;if(-1===a||t[a]!==r)if(n=Ys(r,t,e,n,i),null===o){var s=function(t,e,n){var i=n?e.classBindings:e.styleBindings;if(0!==Fo(i))return t[Lo(i)]}(t,e,i);void 0!==s&&Array.isArray(s)&&function(t,e,n,i){t[Lo(n?e.classBindings:e.styleBindings)]=i}(t,e,i,s=qs(s=Ys(null,t,e,s[1],i),e.attrs,i))}else o=function(t,e,n){for(var i=void 0,r=e.directiveEnd,o=1+e.directiveStylingLast;o0)&&(c=!0):u=n,r)if(0!==l){var h=Lo(t[s+1]);t[i+1]=Ro(h,s),0!==h&&(t[h+1]=zo(t[h+1],i)),t[s+1]=131071&t[s+1]|i<<17}else t[i+1]=Ro(s,0),0!==s&&(t[s+1]=zo(t[s+1],i)),s=i;else t[i+1]=Ro(l,0),0===s?s=i:t[l+1]=zo(t[l+1],i),l=i;c&&(t[i+1]=No(t[i+1])),Rs(t,u,i,!0),Rs(t,u,i,!1),function(t,e,n,i,r){var o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&Oi(o,e)>=0&&(n[i+1]=Vo(n[i+1]))}(e,u,t,i,o),a=Ro(s,l),o?e.classBindings=a:e.styleBindings=a}(r,o,e,n,a,i)}}function Ys(t,e,n,i,r){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var l=t[r],u=Array.isArray(l),c=u?l[1]:l,h=null===c,d=n[r+1];d===Do&&(d=h?ee:void 0);var f=h?Ii(d,i):c===i?d:void 0;if(u&&!Ks(f)&&(f=Ii(l,i)),Ks(f)&&(s=f,a))return s;var p=t[r+1];r=a?Lo(p):Fo(p)}if(null!==e){var g=o?e.residualClasses:e.residualStyles;null!=g&&(s=Ii(g,i))}return s}function Ks(t){return void 0!==t}function $s(t,e){return 0!=(t.flags&(e?16:32))}function Qs(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=Je(),i=tn(),r=t+be,o=i.firstCreatePass?jo(i,r,1,e,null):i.data[r],a=n[r]=Zr(n[11],e);lo(i,n,a,o),on(o,!1)}function Js(t){return tl("",t,""),Js}function tl(t,e,n){var i=Je(),r=ss(i,t,e,n);return r!==Do&&Aa(i,An(),r),tl}function el(t,e,n,i,r){var o=Je(),a=function(t,e,n,i,r,o){var a=os(t,hn(),n,r);return fn(2),a?e+Ot(n)+i+Ot(r)+o:Do}(o,t,e,n,i,r);return a!==Do&&Aa(o,An(),a),el}function nl(t,e,n){var i=Je();return rs(i,dn(),e)&&ea(tn(),On(),i,t,e,i[11],n,!0),nl}function il(t,e,n){var i=Je();if(rs(i,dn(),e)){var r=tn(),o=On();ea(r,o,i,t,e,Ca(gn(r.data),o,i),n,!0)}return il}var rl=void 0,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){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],al={};function sl(t){return t in al||(al[t]=Jt.ng&&Jt.ng.common&&Jt.ng.common.locales&&Jt.ng.common.locales[t]),al[t]}var ll=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}({}),ul="en-US";function cl(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,i){throw new Error("ASSERTION ERROR: ".concat(t)+" [Expected=> ".concat(null," ").concat("!="," ").concat(e," <=Actual]"))}(n,e),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}function hl(t,e,n){var i=tn();if(i.firstCreatePass){var r=Ae(t);dl(n,i.data,i.blueprint,r,!0),dl(e,i.data,i.blueprint,r,!1)}}function dl(t,e,n,i,r){if(t=Mt(t),Array.isArray(t))for(var o=0;o>20;if(ja(t)||!t.multi){var p=new Vn(u,r,cs),g=gl(l,e,r?h:h+f,d);-1===g?(ei($n(c,s),a,l),fl(a,t,e.length),e.push(l),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(p),s.push(p)):(n[g]=p,s[g]=p)}else{var m=gl(l,e,h+f,d),v=gl(l,e,h,h+f),y=v>=0&&n[v];if(r&&!y||!r&&!(m>=0&&n[m])){ei($n(c,s),a,l);var _=function(t,e,n,i,r){var o=new Vn(t,n,cs);return o.multi=[],o.index=e,o.componentProviders=0,pl(o,r,i&&!n),o}(r?vl:ml,n.length,r,i,u);!r&&y&&(n[v].providerFactory=_),fl(a,t,e.length,0),e.push(l),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),n.push(_),s.push(_)}else fl(a,t,m>-1?m:v,pl(n[r?v:m],u,!r&&i));!r&&i&&y&&n[v].componentProviders++}}}function fl(t,e,n,i){var r=ja(e);if(r||e.useClass){var o=(e.useClass||e).prototype.ngOnDestroy;if(o){var a=t.destroyHooks||(t.destroyHooks=[]);if(!r&&e.multi){var s=a.indexOf(n);-1===s?a.push(n,[i,o]):a[s+1].push(i,o)}else a.push(n,o)}}}function pl(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function gl(t,e,n,i){for(var r=n;r1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,i){return hl(n,i?i(t):t,e)}}}var bl=function t(){s(this,t)},xl=function t(){s(this,t)},wl=function(){function t(){s(this,t)}return a(t,[{key:"resolveComponentFactory",value:function(t){throw function(t){var e=Error("No component factory found for ".concat(wt(t),". Did you add it to @NgModule.entryComponents?"));return e.ngComponent=t,e}(t)}}]),t}(),kl=function(){var t=function t(){s(this,t)};return t.NULL=new wl,t}();function Cl(){}function Sl(t,e){return new Al(je(t,e))}var Ml=function(){return Sl(nn(),Je())},Al=function(){var t=function t(e){s(this,t),this.nativeElement=e};return t.__NG_ELEMENT_ID__=Ml,t}();function Il(t){return t instanceof Al?t.nativeElement:t}var Ol=function t(){s(this,t)},Tl=function(){var t=function t(){s(this,t)};return t.__NG_ELEMENT_ID__=function(){return Dl()},t}(),Dl=function(){var t=Je(),e=We(nn().index,t);return function(t){return t[11]}(we(e)?e:t)},Pl=function(){var t=function t(){s(this,t)};return t.\u0275prov=Pt({token:t,providedIn:"root",factory:function(){return null}}),t}(),El=function t(e){s(this,t),this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")},Rl=new El("12.1.0"),Ll=function(){function t(){s(this,t)}return a(t,[{key:"supports",value:function(t){return es(t)}},{key:"create",value:function(t){return new Fl(t)}}]),t}(),Nl=function(t,e){return e},Fl=function(){function t(e){s(this,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=e||Nl}return a(t,[{key:"forEachItem",value:function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)}},{key:"forEachOperation",value:function(t){for(var e=this._itHead,n=this._removalsHead,i=0,r=null;e||n;){var o=!n||e&&e.currentIndex4&&void 0!==arguments[4]&&arguments[4];null!==n;){var o=e[n.index];if(null!==o&&i.push(Be(o)),ke(o))for(var a=xe;a-1&&(Qr(t,n),Si(e,n))}this._attachedToViewContainer=!1}Jr(this._lView[1],this._lView)}},{key:"onDestroy",value:function(t){Jo(this._lView[1],this._lView,null,t)}},{key:"markForCheck",value:function(){va(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){ya(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(t,e,n){un(!0);try{ya(t,e,n)}finally{un(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){var t;this._appRef=null,po(this._lView[1],t=this._lView,t[11],2,null,null)}},{key:"attachToAppRef",value:function(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}]),t}(),$l=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this,t))._view=t,i}return a(n,[{key:"detectChanges",value:function(){_a(this._view)}},{key:"checkNoChanges",value:function(){!function(t){un(!0);try{_a(t)}finally{un(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(Kl),Ql=function(t){return function(t,e,n){if(Se(t)&&!n){var i=We(t.index,e);return new Kl(i,i)}return 47&t.type?new Kl(e[16],e):null}(nn(),Je(),16==(16&t))},Jl=function(){var t=function t(){s(this,t)};return t.__NG_ELEMENT_ID__=Ql,t}(),tu=[new jl],eu=new Yl([new Ll]),nu=new Xl(tu),iu=function(){return au(nn(),Je())},ru=function(){var t=function t(){s(this,t)};return t.__NG_ELEMENT_ID__=iu,t}(),ou=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this))._declarationLView=t,o._declarationTContainer=i,o.elementRef=r,o}return a(n,[{key:"createEmbeddedView",value:function(t){var e=this._declarationTContainer.tViews,n=Ho(this._declarationLView,e,t,16,null,e.declTNode,null,null,null,null);n[17]=this._declarationLView[this._declarationTContainer.index];var i=this._declarationLView[19];return null!==i&&(n[19]=i.createEmbeddedView(e)),Uo(e,n,t),new Kl(n)}}]),n}(ru);function au(t,e){return 4&t.type?new ou(e,t,Sl(t,e)):null}var su=function t(){s(this,t)},lu=function t(){s(this,t)},uu=function(){return pu(nn(),Je())},cu=function(){var t=function t(){s(this,t)};return t.__NG_ELEMENT_ID__=uu,t}(),hu=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this))._lContainer=t,o._hostTNode=i,o._hostLView=r,o}return a(n,[{key:"element",get:function(){return Sl(this._hostTNode,this._hostLView)}},{key:"injector",get:function(){return new fi(this._hostTNode,this._hostLView)}},{key:"parentInjector",get:function(){var t=ti(this._hostTNode,this._hostLView);if(Wn(t)){var e=qn(t,this._hostLView),n=Yn(t);return new fi(e[1].data[n+8],e)}return new fi(null,this._hostLView)}},{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(t){var e=du(this._lContainer);return null!==e&&e[t]||null}},{key:"length",get:function(){return this._lContainer.length-xe}},{key:"createEmbeddedView",value:function(t,e,n){var i=t.createEmbeddedView(e||{});return this.insert(i,n),i}},{key:"createComponent",value:function(t,e,n,i,r){var o=n||this.parentInjector;if(!r&&null==t.ngModule&&o){var a=o.get(su,null);a&&(r=a)}var s=t.create(o,i,void 0,r);return this.insert(s.hostView,e),s}},{key:"insert",value:function(t,e){var n=t._lView,i=n[1];if(ke(n[3])){var r=this.indexOf(t);if(-1!==r)this.detach(r);else{var o=n[3],a=new hu(o,o[6],o[3]);a.detach(a.indexOf(t))}}var s=this._adjustIndex(e),l=this._lContainer;!function(t,e,n,i){var r=xe+i,o=n.length;i>0&&(n[r-1][4]=e),i1&&void 0!==arguments[1]?arguments[1]:0;return null==t?this.length+e:t}}]),n}(cu);function du(t){return t[8]}function fu(t){return t[8]||(t[8]=[])}function pu(t,e){var n,i=e[t.index];if(ke(i))n=i;else{var r;if(8&t.type)r=Be(i);else{var o=e[11];r=o.createComment("");var a=je(t,e);no(o,oo(o,a),r,function(t,e){return ze(t)?t.nextSibling(e):e.nextSibling}(o,a),!1)}e[t.index]=n=da(i,e,r,t),ma(e,n)}return new hu(n,t,e)}var gu={},mu=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this)).ngModule=t,i}return a(n,[{key:"resolveComponentFactory",value:function(t){var e=ye(t);return new _u(e,this.ngModule)}}]),n}(kl);function vu(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var yu=new _i("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Fr}}),_u=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this)).componentDef=t,r.ngModule=i,r.componentType=t.type,r.selector=t.selectors.map(To).join(","),r.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],r.isBoundToModule=!!i,r}return a(n,[{key:"inputs",get:function(){return vu(this.componentDef.inputs)}},{key:"outputs",get:function(){return vu(this.componentDef.outputs)}},{key:"create",value:function(t,e,n,i){var r,o,a=(i=i||this.ngModule)?function(t,e){return{get:function(n,i,r){var o=t.get(n,gu,r);return o!==gu||i===gu?o:e.get(n,i,r)}}}(t,i.injector):t,s=a.get(Ol,Ve),l=a.get(Pl,null),u=s.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",h=n?function(t,e,n){if(ze(t))return t.selectRootElement(e,n===Xt.ShadowDom);var i="string"==typeof e?t.querySelector(e):e;return i.textContent="",i}(u,n,this.componentDef.encapsulation):Kr(s.createRenderer(null,this.componentDef),c,function(t){var e=t.toLowerCase();return"svg"===e?Le:"math"===e?"http://www.w3.org/1998/MathML/":null}(c)),d=this.componentDef.onPush?576:528,f={components:[],scheduler:Fr,clean:xa,playerHandler:null,flags:0},p=Qo(0,null,null,1,0,null,null,null,null,null),g=Ho(null,p,f,d,null,null,s,u,l,a);bn(g);try{var m=function(t,e,n,i,r,o){var a=n[1];n[20]=t;var s=jo(a,20,2,"#host",null),l=s.mergedAttrs=e.hostAttrs;null!==l&&(Ia(s,l,!0),null!==t&&(Bn(r,t,l),null!==s.classes&&yo(r,t,s.classes),null!==s.styles&&vo(r,t,s.styles)));var u=i.createRenderer(t,e),c=Ho(n,$o(e),null,e.onPush?64:16,n[20],s,i,u,null,null);return a.firstCreatePass&&(ei($n(s,n),a,e.type),oa(a,s),sa(s,n.length,1)),ma(n,c),n[20]=c}(h,this.componentDef,g,s,u);if(h)if(n)Bn(u,h,["ng-version",Rl.full]);else{var v=function(t){for(var e=[],n=[],i=1,r=2;i0&&yo(u,h,_.join(" "))}if(o=Ge(p,be),void 0!==e)for(var b=o.projection=[],x=0;x1&&void 0!==arguments[1]?arguments[1]:Wa.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:jt.Default;return t===Wa||t===su||t===Oa?this:this._r3Injector.get(t,e,n)}},{key:"destroy",value:function(){var t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null}},{key:"onDestroy",value:function(t){this.destroyCbs.push(t)}}]),n}(su),ku=function(t){u(n,t);var e=p(n);function n(t){var i,r,o;return s(this,n),(i=e.call(this)).moduleType=t,null!==_e(t)&&(r=t,o=new Set,function t(e){var n=_e(e,!0),i=n.id;null!==i&&(function(t,e,n){if(e&&e!==n)throw new Error("Duplicate module registered for ".concat(t," - ").concat(wt(e)," vs ").concat(wt(e.name)))}(i,xu.get(i),e),xu.set(i,e));var r,a=v(Hr(n.imports));try{for(a.s();!(r=a.n()).done;){var s=r.value;o.has(s)||(o.add(s),t(s))}}catch(l){a.e(l)}finally{a.f()}}(r)),i}return a(n,[{key:"create",value:function(t){return new wu(this.moduleType,t)}}]),n}(lu);function Cu(t,e,n){var i=cn()+t,r=Je();return r[i]===Do?is(r,i,n?e.call(n):e()):function(t,e){return t[e]}(r,i)}function Su(t,e,n,i){return Iu(Je(),cn(),t,e,n,i)}function Mu(t,e,n,i,r){return Ou(Je(),cn(),t,e,n,i,r)}function Au(t,e){var n=t[e];return n===Do?void 0:n}function Iu(t,e,n,i,r,o){var a=e+n;return rs(t,a,r)?is(t,a+1,o?i.call(o,r):i(r)):Au(t,a+1)}function Ou(t,e,n,i,r,o,a){var s=e+n;return os(t,s,r,o)?is(t,s+2,a?i.call(a,r,o):i(r,o)):Au(t,s+2)}function Tu(t,e){var n,i=tn(),r=t+be;i.firstCreatePass?(n=function(t,e){if(e)for(var n=e.length-1;n>=0;n--){var i=e[n];if(t===i.name)return i}throw new It("302","The pipe '".concat(t,"' could not be found!"))}(e,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var o=n.factory||(n.factory=Ie(n.type)),a=Ut(cs);try{var s=Zn(!1),l=o();return Zn(s),function(t,e,n,i){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=i}(i,Je(),r,l),l}finally{Ut(a)}}function Du(t,e,n){var i=t+be,r=Je(),o=Ue(r,i);return Ru(r,Eu(r,i)?Iu(r,cn(),e,o.transform,n,o):o.transform(n))}function Pu(t,e,n,i){var r=t+be,o=Je(),a=Ue(o,r);return Ru(o,Eu(o,r)?Ou(o,cn(),e,a.transform,n,i,a):a.transform(n,i))}function Eu(t,e){return t[1].data[e].pure}function Ru(t,e){return ts.isWrapped(e)&&(e=ts.unwrap(e),t[hn()]=Do),e}function Lu(t){return function(e){setTimeout(t,void 0,e)}}var Nu=function(t){u(n,t);var e=p(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return s(this,n),(t=e.call(this)).__isAsync=i,t}return a(n,[{key:"emit",value:function(t){r(i(n.prototype),"next",this).call(this,t)}},{key:"subscribe",value:function(t,e,o){var a,s,l,u=t,c=e||function(){return null},h=o;if(t&&"object"==typeof t){var d=t;u=null===(a=d.next)||void 0===a?void 0:a.bind(d),c=null===(s=d.error)||void 0===s?void 0:s.bind(d),h=null===(l=d.complete)||void 0===l?void 0:l.bind(d)}this.__isAsync&&(c=Lu(c),u&&(u=Lu(u)),h&&(h=Lu(h)));var f=r(i(n.prototype),"subscribe",this).call(this,{next:u,error:c,complete:h});return t instanceof A&&t.add(f),f}}]),n}(U);function Fu(){return this._results[Ja()]()}var zu=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];s(this,t),this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var n=Ja(),i=t.prototype;i[n]||(i[n]=Fu)}return a(t,[{key:"changes",get:function(){return this._changes||(this._changes=new Nu)}},{key:"get",value:function(t){return this._results[t]}},{key:"map",value:function(t){return this._results.map(t)}},{key:"filter",value:function(t){return this._results.filter(t)}},{key:"find",value:function(t){return this._results.find(t)}},{key:"reduce",value:function(t,e){return this._results.reduce(t,e)}},{key:"forEach",value:function(t){this._results.forEach(t)}},{key:"some",value:function(t){return this._results.some(t)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(t,e){var n=this;n.dirty=!1;var i=wi(t);(this._changesDetected=!function(t,e,n){if(t.length!==e.length)return!1;for(var i=0;i0&&void 0!==arguments[0]?arguments[0]:[];s(this,t),this.queries=e}return a(t,[{key:"createEmbeddedView",value:function(e){var n=e.queries;if(null!==n){for(var i=null!==e.contentQueries?e.contentQueries[0]:n.length,r=[],o=0;o2&&void 0!==arguments[2]?arguments[2]:null;s(this,t),this.predicate=e,this.flags=n,this.read=i},ju=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];s(this,t),this.queries=e}return a(t,[{key:"elementStart",value:function(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:-1;s(this,t),this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=n}return a(t,[{key:"elementStart",value:function(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}},{key:"elementEnd",value:function(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(t,e){this.elementStart(t,e)}},{key:"embeddedTView",value:function(e,n){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,n),new t(this.metadata)):null}},{key:"isApplyingToNode",value:function(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var e=this._declarationNodeIndex,n=t.parent;null!==n&&8&n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(t,e){var n=this.metadata.predicate;if(Array.isArray(n))for(var i=0;i0)i.push(a[s/2]);else{for(var u=o[s+1],c=e[-l],h=xe;h0&&(r=setTimeout(function(){i._callbacks=i._callbacks.filter(function(t){return t.timeoutId!==r}),t(i._didWork,i.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:r,updateCb:n})}},{key:"whenStable",value:function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(t,e,n){return[]}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(kc))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),Pc=function(){var t=function(){function t(){s(this,t),this._applications=new Map,Ec.addToWindow(this)}return a(t,[{key:"registerApplication",value:function(t,e){this._applications.set(t,e)}},{key:"unregisterApplication",value:function(t){this._applications.delete(t)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(t){return this._applications.get(t)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Ec.findTestabilityInTree(this,t,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),Ec=new(function(){function t(){s(this,t)}return a(t,[{key:"addToWindow",value:function(t){}},{key:"findTestabilityInTree",value:function(t,e,n){return null}}]),t}()),Rc=!0,Lc=!1;function Nc(){return Lc=!0,Rc}var Fc=function(t,e,n){var i=new ku(n);return Promise.resolve(i)},zc=new _i("AllowMultipleToken"),Vc=function t(e,n){s(this,t),this.name=e,this.token=n};function Bc(t){if(Oc&&!Oc.destroyed&&!Oc.injector.get(zc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Oc=t.get(Uc);var e=t.get(sc,null);return e&&e.forEach(function(t){return t()}),Oc}function Hc(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i="Platform: ".concat(e),r=new _i(i);return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Gc();if(!o||o.injector.get(zc,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{var a=n.concat(e).concat({provide:r,useValue:!0},{provide:Da,useValue:"platform"});Bc(Wa.create({providers:a,name:i}))}return jc(r)}}function jc(t){var e=Gc();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}function Gc(){return Oc&&!Oc.destroyed?Oc:null}var Uc=function(){var t=function(){function t(e){s(this,t),this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return a(t,[{key:"bootstrapModuleFactory",value:function(t,e){var n,i,r=this,o=(i={ngZoneEventCoalescing:e&&e.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:e&&e.ngZoneRunCoalescing||!1},"noop"===(n=e?e.ngZone:void 0)?new Tc:("zone.js"===n?void 0:n)||new kc({enableLongStackTrace:Nc(),shouldCoalesceEventChangeDetection:!!(null==i?void 0:i.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==i?void 0:i.ngZoneRunCoalescing)})),a=[{provide:kc,useValue:o}];return o.run(function(){var e=Wa.create({providers:a,parent:r.injector,name:t.moduleType.name}),n=t.create(e),i=n.injector.get(Nr,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.runOutsideAngular(function(){var t=o.onError.subscribe({next:function(t){i.handleError(t)}});n.onDestroy(function(){qc(r._modules,n),t.unsubscribe()})}),function(t,e,i){try{var o=((a=n.injector.get(ic)).runInitializers(),a.donePromise.then(function(){return cl(n.injector.get(hc,ul)||ul),r._moduleDoBootstrap(n),n}));return bs(o)?o.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):o}catch(s){throw e.runOutsideAngular(function(){return t.handleError(s)}),s}var a}(i,o)})}},{key:"bootstrapModule",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=Wc({},n);return Fc(0,0,t).then(function(t){return e.bootstrapModuleFactory(t,i)})}},{key:"_moduleDoBootstrap",value:function(t){var e=t.injector.get(Yc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module ".concat(wt(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)}},{key:"onDestroy",value:function(t){this._destroyListeners.push(t)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(Wa))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}();function Wc(t,e){return Array.isArray(e)?e.reduce(Wc,t):Object.assign(Object.assign({},t),e)}var Yc=function(){var t=function(){function t(e,n,i,r,o){var a=this;s(this,t),this._zone=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run(function(){a.tick()})}});var l=new V(function(t){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular(function(){t.next(a._stable),t.complete()})}),u=new V(function(t){var e;a._zone.runOutsideAngular(function(){e=a._zone.onStable.subscribe(function(){kc.assertNotInAngularZone(),wc(function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,t.next(!0))})})});var n=a._zone.onUnstable.subscribe(function(){kc.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=dt(l,u.pipe(function(t){return ft()((e=_t,function(t){var n;n="function"==typeof e?e:function(){return e};var i=Object.create(t,vt);return i.source=t,i.subjectFactory=n,i})(t));var e}))}return a(t,[{key:"bootstrap",value:function(t,e){var n,i=this;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.");n=t instanceof xl?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(su),o=n.create(Wa.NULL,[],e||n.selector,r),a=o.location.nativeElement,s=o.injector.get(Dc,null),l=s&&o.injector.get(Pc);return s&&l&&l.registerApplication(a,s),o.onDestroy(function(){i.detachView(o.hostView),qc(i.components,o),l&&l.unregisterApplication(a)}),this._loadComponent(o),o}},{key:"tick",value:function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var e,n=v(this._views);try{for(n.s();!(e=n.n()).done;)e.value.detectChanges()}catch(i){n.e(i)}finally{n.f()}}catch(r){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(r)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(t){var e=t;this._views.push(e),e.attachToAppRef(this)}},{key:"detachView",value:function(t){var e=t;qc(this._views,e),e.detachFromAppRef()}},{key:"_loadComponent",value:function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(uc,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(t){return t.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(kc),Fi(Wa),Fi(Nr),Fi(kl),Fi(ic))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}();function qc(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var Xc=function t(){s(this,t)},Zc=function t(){s(this,t)},Kc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},$c=function(){var t=function(){function t(e,n){s(this,t),this._compiler=e,this._config=n||Kc}return a(t,[{key:"load",value:function(t){return this.loadAndCompile(t)}},{key:"loadAndCompile",value:function(t){var e=this,i=y(t.split("#"),2),r=i[0],o=i[1];return void 0===o&&(o="default"),n(8255)(r).then(function(t){return t[o]}).then(function(t){return Qc(t,r,o)}).then(function(t){return e._compiler.compileModuleAsync(t)})}},{key:"loadFactory",value:function(t){var e=y(t.split("#"),2),i=e[0],r=e[1],o="NgFactory";return void 0===r&&(r="default",o=""),n(8255)(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(t){return t[r+o]}).then(function(t){return Qc(t,i,r)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(bc),Fi(Zc,8))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}();function Qc(t,e,n){if(!t)throw new Error("Cannot find '".concat(n,"' in '").concat(e,"'"));return t}var Jc=Hc(null,"core",[{provide:lc,useValue:"unknown"},{provide:Uc,deps:[Wa]},{provide:Pc,deps:[]},{provide:cc,deps:[]}]),th=[{provide:Yc,useClass:Yc,deps:[kc,Wa,Nr,kl,ic]},{provide:yu,deps:[kc],useFactory:function(t){var e=[];return t.onStable.subscribe(function(){for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:ic,useClass:ic,deps:[[new Wi,nc]]},{provide:bc,useClass:bc,deps:[]},oc,{provide:Yl,useFactory:function(){return eu},deps:[]},{provide:Xl,useFactory:function(){return nu},deps:[]},{provide:hc,useFactory:function(t){return cl(t=t||"undefined"!=typeof $localize&&$localize.locale||ul),t},deps:[[new Ui(hc),new Wi,new Yi]]},{provide:dc,useValue:"USD"}],eh=function(){var t=function t(e){s(this,t)};return t.\u0275fac=function(e){return new(e||t)(Fi(Yc))},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:th}),t}(),nh=null;function ih(){return nh}var rh=function t(){s(this,t)},oh=new _i("DocumentToken"),ah=function(){var t=function(){function t(){s(this,t)}return a(t,[{key:"historyGo",value:function(t){throw new Error("Not implemented")}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Pt({factory:sh,token:t,providedIn:"platform"}),t}();function sh(){return Fi(uh)}var lh=new _i("Location Initialized"),uh=function(){var t=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this))._doc=t,i._init(),i}return a(n,[{key:"_init",value:function(){this.location=window.location,this._history=window.history}},{key:"getBaseHrefFromDOM",value:function(){return ih().getBaseHref(this._doc)}},{key:"onPopState",value:function(t){var e=ih().getGlobalEventTarget(this._doc,"window");return e.addEventListener("popstate",t,!1),function(){return e.removeEventListener("popstate",t)}}},{key:"onHashChange",value:function(t){var e=ih().getGlobalEventTarget(this._doc,"window");return e.addEventListener("hashchange",t,!1),function(){return e.removeEventListener("hashchange",t)}}},{key:"href",get:function(){return this.location.href}},{key:"protocol",get:function(){return this.location.protocol}},{key:"hostname",get:function(){return this.location.hostname}},{key:"port",get:function(){return this.location.port}},{key:"pathname",get:function(){return this.location.pathname},set:function(t){this.location.pathname=t}},{key:"search",get:function(){return this.location.search}},{key:"hash",get:function(){return this.location.hash}},{key:"pushState",value:function(t,e,n){ch()?this._history.pushState(t,e,n):this.location.hash=n}},{key:"replaceState",value:function(t,e,n){ch()?this._history.replaceState(t,e,n):this.location.hash=n}},{key:"forward",value:function(){this._history.forward()}},{key:"back",value:function(){this._history.back()}},{key:"historyGo",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(t)}},{key:"getState",value:function(){return this._history.state}}]),n}(ah);return t.\u0275fac=function(e){return new(e||t)(Fi(oh))},t.\u0275prov=Pt({factory:hh,token:t,providedIn:"platform"}),t}();function ch(){return!!window.history.pushState}function hh(){return new uh(Fi(oh))}function dh(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function fh(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function ph(t){return t&&"?"!==t[0]?"?"+t:t}var gh=function(){var t=function(){function t(){s(this,t)}return a(t,[{key:"historyGo",value:function(t){throw new Error("Not implemented")}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Pt({factory:mh,token:t,providedIn:"root"}),t}();function mh(t){var e=Fi(oh).location;return new yh(Fi(ah),e&&e.origin||"")}var vh=new _i("appBaseHref"),yh=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){var r;if(s(this,n),(r=e.call(this))._platformLocation=t,r._removeListenerFns=[],null==i&&(i=r._platformLocation.getBaseHrefFromDOM()),null==i)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.");return r._baseHref=i,r}return a(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(t){return dh(this._baseHref,t)}},{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this._platformLocation.pathname+ph(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?"".concat(e).concat(n):e}},{key:"pushState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+ph(i));this._platformLocation.pushState(t,e,r)}},{key:"replaceState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+ph(i));this._platformLocation.replaceState(t,e,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformLocation).historyGo)||void 0===e||e.call(t,n)}}]),n}(gh);return t.\u0275fac=function(e){return new(e||t)(Fi(ah),Fi(vh,8))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),_h=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this))._platformLocation=t,r._baseHref="",r._removeListenerFns=[],null!=i&&(r._baseHref=i),r}return a(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var t=this._platformLocation.hash;return null==t&&(t="#"),t.length>0?t.substring(1):t}},{key:"prepareExternalUrl",value:function(t){var e=dh(this._baseHref,t);return e.length>0?"#"+e:e}},{key:"pushState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+ph(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)}},{key:"replaceState",value:function(t,e,n,i){var r=this.prepareExternalUrl(n+ph(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformLocation).historyGo)||void 0===e||e.call(t,n)}}]),n}(gh);return t.\u0275fac=function(e){return new(e||t)(Fi(ah),Fi(vh,8))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),bh=function(){var t=function(){function t(e,n){var i=this;s(this,t),this._subject=new Nu,this._urlChangeListeners=[],this._platformStrategy=e;var r=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=fh(wh(r)),this._platformStrategy.onPopState(function(t){i._subject.emit({url:i.path(!0),pop:!0,state:t.state,type:t.type})})}return a(t,[{key:"path",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(t))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(t+ph(e))}},{key:"normalize",value:function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,wh(e)))}},{key:"prepareExternalUrl",value:function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}},{key:"go",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ph(e)),n)}},{key:"replaceState",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ph(e)),n)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var t,e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(e=(t=this._platformStrategy).historyGo)||void 0===e||e.call(t,n)}},{key:"onUrlChange",value:function(t){var e=this;this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(t){e._notifyUrlChangeListeners(t.url,t.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(n){return n(t,e)})}},{key:"subscribe",value:function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(gh),Fi(ah))},t.normalizeQueryParams=ph,t.joinWithSlash=dh,t.stripTrailingSlash=fh,t.\u0275prov=Pt({factory:xh,token:t,providedIn:"root"}),t}();function xh(){return new bh(Fi(gh),Fi(ah))}function wh(t){return t.replace(/\/index.html$/,"")}var kh=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}({}),Ch=function t(){s(this,t)},Sh=function(){var t=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this)).locale=t,i}return a(n,[{key:"getPluralCategory",value:function(t,e){switch(function(t){return function(t){var e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t),n=sl(e);if(n)return n;var i=e.split("-")[0];if(n=sl(i))return n;if("en"===i)return ol;throw new Error('Missing locale data for the locale "'.concat(t,'".'))}(t)[ll.PluralCase]}(e||this.locale)(t)){case kh.Zero:return"zero";case kh.One:return"one";case kh.Two:return"two";case kh.Few:return"few";case kh.Many:return"many";default:return"other"}}}]),n}(Ch);return t.\u0275fac=function(e){return new(e||t)(Fi(hc))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}();function Mh(t,e){e=encodeURIComponent(e);var n,i=v(t.split(";"));try{for(i.s();!(n=i.n()).done;){var r=n.value,o=r.indexOf("="),a=y(-1==o?[r,""]:[r.slice(0,o),r.slice(o+1)],2),s=a[1];if(a[0].trim()===e)return decodeURIComponent(s)}}catch(l){i.e(l)}finally{i.f()}return null}var Ah=function(){var t=function(){function t(e,n,i,r){s(this,t),this._iterableDiffers=e,this._keyValueDiffers=n,this._ngEl=i,this._renderer=r,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return a(t,[{key:"klass",set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(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&&(es(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}},{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}},{key:"_applyKeyValueChanges",value:function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})}},{key:"_applyIterableChanges",value:function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(wt(t.item)));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})}},{key:"_applyClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!0)}):Object.keys(t).forEach(function(n){return e._toggleClass(n,!!t[n])}))}},{key:"_removeClasses",value:function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!1)}):Object.keys(t).forEach(function(t){return e._toggleClass(t,!1)}))}},{key:"_toggleClass",value:function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Yl),cs(Xl),cs(Al),cs(Tl))},t.\u0275dir=me({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t}(),Ih=function(){function t(e,n,i,r){s(this,t),this.$implicit=e,this.ngForOf=n,this.index=i,this.count=r}return a(t,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),t}(),Oh=function(){var t=function(){function t(e,n,i){s(this,t),this._viewContainer=e,this._template=n,this._differs=i,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return a(t,[{key:"ngForOf",set:function(t){this._ngForOf=t,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(t){this._trackByFn=t}},{key:"ngForTemplate",set:function(t){t&&(this._template=t)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(i){throw new Error("Cannot find a differ supporting object '".concat(t,"' of type '").concat((e=t).name||typeof e,"'. NgFor only supports binding to Iterables such as Arrays."))}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(t){var e=this,n=[];t.forEachOperation(function(t,i,r){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new Ih(null,e._ngForOf,-1,-1),null===r?void 0:r),a=new Th(t,o);n.push(a)}else if(null==r)e._viewContainer.remove(null===i?void 0:i);else if(null!==i){var s=e._viewContainer.get(i);e._viewContainer.move(s,r);var l=new Th(t,s);n.push(l)}});for(var i=0;i1&&void 0!==arguments[1]?arguments[1]:Wh;if(!t||!(t instanceof Map)&&"object"!=typeof t)return null;this.differ||(this.differ=this.differs.find(t).create());var i=this.differ.diff(t);return i&&(this.keyValues=[],i.forEachItem(function(t){e.keyValues.push(Gh(t.key,t.currentValue))}),this.keyValues.sort(n)),this.keyValues}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Xl,16))},t.\u0275pipe=ve({name:"keyvalue",type:t,pure:!1}),t}();function Wh(t,e){var n=t.key,i=e.key;if(n===i)return 0;if(void 0===n)return 1;if(void 0===i)return-1;if(null===n)return 1;if(null===i)return-1;if("string"==typeof n&&"string"==typeof i)return n1&&void 0!==arguments[1])||arguments[1],i=t.findTestabilityInTree(e,n);if(null==i)throw new Error("Could not find testability for element.");return i},Jt.getAllAngularTestabilities=function(){return t.getAllTestabilities()},Jt.getAllAngularRootElements=function(){return t.getAllRootElements()},Jt.frameworkStabilizers||(Jt.frameworkStabilizers=[]),Jt.frameworkStabilizers.push(function(t){var e=Jt.getAllAngularTestabilities(),n=e.length,i=!1,r=function(e){i=i||e,0==--n&&t(i)};e.forEach(function(t){t.whenStable(r)})})}},{key:"findTestabilityInTree",value:function(t,e,n){if(null==e)return null;var i=t.getTestability(e);return null!=i?i:n?ih().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}],[{key:"init",value:function(){var e;e=new t,Ec=e}}]),t}(),id=function(){var t=function(){function t(){s(this,t)}return a(t,[{key:"build",value:function(){return new XMLHttpRequest}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),rd=new _i("EventManagerPlugins"),od=function(){var t=function(){function t(e,n){var i=this;s(this,t),this._zone=n,this._eventNameToPlugin=new Map,e.forEach(function(t){return t.manager=i}),this._plugins=e.slice().reverse()}return a(t,[{key:"addEventListener",value:function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}},{key:"addGlobalEventListener",value:function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,i=0;i-1&&(e.splice(n,1),o+=t+".")}),o+=r,0!=e.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a}},{key:"getEventFullKey",value:function(t){var e="",n=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Cd.hasOwnProperty(e)&&(e=Cd[e]))}return kd[e]||e}(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),wd.forEach(function(i){i!=n&&(0,Sd[i])(t)&&(e+=i+".")}),e+=n}},{key:"eventCallback",value:function(t,e,i){return function(r){n.getEventFullKey(r)===t&&i.runGuarded(function(){return e(r)})}}},{key:"_normalizeKey",value:function(t){switch(t){case"esc":return"escape";default:return t}}}]),n}(ad);return t.\u0275fac=function(e){return new(e||t)(Fi(oh))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),Ad=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Pt({factory:function(){return Fi(Od)},token:t,providedIn:"root"}),t}();function Id(t){return new Od(t.get(oh))}var Od=function(){var t=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this))._doc=t,i}return a(n,[{key:"sanitize",value:function(t,e){if(null==e)return null;switch(t){case Ar.NONE:return e;case Ar.HTML:return nr(e,"HTML")?er(e):Sr(this._doc,String(e)).toString();case Ar.STYLE:return nr(e,"Style")?er(e):e;case Ar.SCRIPT:if(nr(e,"Script"))return er(e);throw new Error("unsafe value used in a script context");case Ar.URL:return ir(e),nr(e,"URL")?er(e):lr(String(e));case Ar.RESOURCE_URL:if(nr(e,"ResourceURL"))return er(e);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext ".concat(t," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(t){return new Ki(t)}},{key:"bypassSecurityTrustStyle",value:function(t){return new $i(t)}},{key:"bypassSecurityTrustScript",value:function(t){return new Qi(t)}},{key:"bypassSecurityTrustUrl",value:function(t){return new Ji(t)}},{key:"bypassSecurityTrustResourceUrl",value:function(t){return new tr(t)}}]),n}(Ad);return t.\u0275fac=function(e){return new(e||t)(Fi(oh))},t.\u0275prov=Pt({factory:function(){return Id(Fi(Oa))},token:t,providedIn:"root"}),t}(),Td=Hc(Jc,"browser",[{provide:lc,useValue:"browser"},{provide:sc,useValue:function(){Qh.makeCurrent(),nd.init()},multi:!0},{provide:oh,useFactory:function(){return function(t){Ne=t}(document),document},deps:[]}]),Dd=[[],{provide:Da,useValue:"root"},{provide:Nr,useFactory:function(){return new Nr},deps:[]},{provide:rd,useClass:xd,multi:!0,deps:[oh,kc,lc]},{provide:rd,useClass:Md,multi:!0,deps:[oh]},[],{provide:vd,useClass:vd,deps:[od,ld,rc]},{provide:Ol,useExisting:vd},{provide:sd,useExisting:ld},{provide:ld,useClass:ld,deps:[oh]},{provide:Dc,useClass:Dc,deps:[kc]},{provide:od,useClass:od,deps:[rd,kc]},{provide:$h,useClass:id,deps:[]},[]],Pd=function(){var t=function(){function t(e){if(s(this,t),e)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.")}return a(t,null,[{key:"withServerTransition",value:function(e){return{ngModule:t,providers:[{provide:rc,useValue:e.appId},{provide:td,useExisting:rc},ed]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(t,12))},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:Dd,imports:[Yh,eh]}),t}();function Ed(){for(var t=arguments.length,e=new Array(t),n=0;n0){var i=t.slice(0,e),r=i.toLowerCase(),o=t.slice(e+1).trim();n.maybeSetNormalizedName(i,r),n.headers.has(r)?n.headers.get(r).push(o):n.headers.set(r,[o])}})}:function(){n.headers=new Map,Object.keys(e).forEach(function(t){var i=e[t],r=t.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(r,i),n.maybeSetNormalizedName(t,r))})}:this.headers=new Map}return a(t,[{key:"has",value:function(t){return this.init(),this.headers.has(t.toLowerCase())}},{key:"get",value:function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(t){return this.init(),this.headers.get(t.toLowerCase())||null}},{key:"append",value:function(t,e){return this.clone({name:t,value:e,op:"a"})}},{key:"set",value:function(t,e){return this.clone({name:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({name:t,value:e,op:"d"})}},{key:"maybeSetNormalizedName",value:function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}},{key:"init",value:function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})}},{key:"clone",value:function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}},{key:"applyUpdate",value:function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var i=("a"===t.op?this.headers.get(e):void 0)||[];i.push.apply(i,b(n)),this.headers.set(e,i);break;case"d":var r=t.value;if(r){var o=this.headers.get(e);if(!o)return;0===(o=o.filter(function(t){return-1===r.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}},{key:"forEach",value:function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})}}]),t}(),Hd=function(){function t(){s(this,t)}return a(t,[{key:"encodeKey",value:function(t){return Gd(t)}},{key:"encodeValue",value:function(t){return Gd(t)}},{key:"decodeKey",value:function(t){return decodeURIComponent(t)}},{key:"decodeValue",value:function(t){return decodeURIComponent(t)}}]),t}();function jd(t,e){var n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(function(t){var i=t.indexOf("="),r=y(-1==i?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,i)),e.decodeValue(t.slice(i+1))],2),o=r[0],a=r[1],s=n.get(o)||[];s.push(a),n.set(o,s)}),n}function Gd(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,"/")}function Ud(t){return"".concat(t)}var Wd=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(s(this,t),this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new Hd,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=jd(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(function(t){var i=n.fromObject[t];e.map.set(t,Array.isArray(i)?i:[i])})):this.map=null}return a(t,[{key:"has",value:function(t){return this.init(),this.map.has(t)}},{key:"get",value:function(t){this.init();var e=this.map.get(t);return e?e[0]:null}},{key:"getAll",value:function(t){return this.init(),this.map.get(t)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(t,e){return this.clone({param:t,value:e,op:"a"})}},{key:"appendAll",value:function(t){var e=[];return Object.keys(t).forEach(function(n){var i=t[n];Array.isArray(i)?i.forEach(function(t){e.push({param:n,value:t,op:"a"})}):e.push({param:n,value:i,op:"a"})}),this.clone(e)}},{key:"set",value:function(t,e){return this.clone({param:t,value:e,op:"s"})}},{key:"delete",value:function(t,e){return this.clone({param:t,value:e,op:"d"})}},{key:"toString",value:function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).filter(function(t){return""!==t}).join("&")}},{key:"clone",value:function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}},{key:"init",value:function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(Ud(e.value)),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var i=t.map.get(e.param)||[],r=i.indexOf(Ud(e.value));-1!==r&&i.splice(r,1),i.length>0?t.map.set(e.param,i):t.map.delete(e.param)}}),this.cloneFrom=this.updates=null)}}]),t}(),Yd=function(){function t(){s(this,t),this.map=new Map}return a(t,[{key:"set",value:function(t,e){return this.map.set(t,e),this}},{key:"get",value:function(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}},{key:"delete",value:function(t){return this.map.delete(t),this}},{key:"keys",value:function(){return this.map.keys()}}]),t}();function qd(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Xd(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Zd(t){return"undefined"!=typeof FormData&&t instanceof FormData}var Kd=function(){function t(e,n,i,r){var o;if(s(this,t),this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,o=r):o=i,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.context&&(this.context=o.context),o.params&&(this.params=o.params)),this.headers||(this.headers=new Bd),this.context||(this.context=new Yd),this.params){var a=this.params.toString();if(0===a.length)this.urlWithParams=n;else{var l=n.indexOf("?");this.urlWithParams=n+(-1===l?"?":l0&&void 0!==arguments[0]?arguments[0]:{},i=n.method||this.method,r=n.url||this.url,o=n.responseType||this.responseType,a=void 0!==n.body?n.body:this.body,s=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,l=void 0!==n.reportProgress?n.reportProgress:this.reportProgress,u=n.headers||this.headers,c=n.params||this.params,h=null!==(e=n.context)&&void 0!==e?e:this.context;return void 0!==n.setHeaders&&(u=Object.keys(n.setHeaders).reduce(function(t,e){return t.set(e,n.setHeaders[e])},u)),n.setParams&&(c=Object.keys(n.setParams).reduce(function(t,e){return t.set(e,n.setParams[e])},c)),new t(i,r,a,{params:c,headers:u,context:h,reportProgress:l,responseType:o,withCredentials:s})}}]),t}(),$d=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}({}),Qd=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";s(this,t),this.headers=e.headers||new Bd,this.status=void 0!==e.status?e.status:n,this.statusText=e.statusText||i,this.url=e.url||null,this.ok=this.status>=200&&this.status<300},Jd=function(t){u(n,t);var e=p(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,n),(t=e.call(this,i)).type=$d.ResponseHeader,t}return a(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({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})}}]),n}(Qd),tf=function(t){u(n,t);var e=p(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,n),(t=e.call(this,i)).type=$d.Response,t.body=void 0!==i.body?i.body:null,t}return a(n,[{key:"clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new n({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})}}]),n}(Qd),ef=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this,t,0,"Unknown Error")).name="HttpErrorResponse",i.ok=!1,i.message=i.status>=200&&i.status<300?"Http failure during parsing for ".concat(t.url||"(unknown url)"):"Http failure response for ".concat(t.url||"(unknown url)",": ").concat(t.status," ").concat(t.statusText),i.error=t.error||null,i}return n}(Qd);function nf(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var rf=function(){var t=function(){function t(e){s(this,t),this.handler=e}return a(t,[{key:"request",value:function(t,e){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t instanceof Kd)n=t;else{var o=void 0;o=r.headers instanceof Bd?r.headers:new Bd(r.headers);var a=void 0;r.params&&(a=r.params instanceof Wd?r.params:new Wd({fromObject:r.params})),n=new Kd(t,e,void 0!==r.body?r.body:null,{headers:o,context:r.context,params:a,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}var s=Ed(n).pipe(Rd(function(t){return i.handler.handle(t)}));if(t instanceof Kd||"events"===r.observe)return s;var l=s.pipe(Ld(function(t){return t instanceof tf}));switch(r.observe||"body"){case"body":switch(n.responseType){case"arraybuffer":return l.pipe(q(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return l.pipe(q(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return l.pipe(q(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return l.pipe(q(function(t){return t.body}))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type ".concat(r.observe,"}"))}}},{key:"delete",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",t,e)}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",t,e)}},{key:"head",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",t,e)}},{key:"jsonp",value:function(t,e){return this.request("JSONP",t,{params:(new Wd).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",t,e)}},{key:"patch",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",t,nf(n,e))}},{key:"post",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",t,nf(n,e))}},{key:"put",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",t,nf(n,e))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(zd))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),of=function(){function t(e,n){s(this,t),this.next=e,this.interceptor=n}return a(t,[{key:"handle",value:function(t){return this.interceptor.intercept(t,this.next)}}]),t}(),af=new _i("HTTP_INTERCEPTORS"),sf=function(){var t=function(){function t(){s(this,t)}return a(t,[{key:"intercept",value:function(t,e){return e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),lf=/^\)\]\}',?\n/,uf=function(){var t=function(){function t(e){s(this,t),this.xhrFactory=e}return a(t,[{key:"handle",value:function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new V(function(n){var i=e.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach(function(t,e){return i.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var r=t.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(t.responseType){var o=t.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=t.serializeBody(),s=null,l=function(){if(null!==s)return s;var e=1223===i.status?204:i.status,n=i.statusText||"OK",r=new Bd(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 s=new Jd({headers:r,status:e,statusText:n,url:o})},u=function(){var e=l(),r=e.headers,o=e.status,a=e.statusText,s=e.url,u=null;204!==o&&(u=void 0===i.response?i.responseText:i.response),0===o&&(o=u?200:0);var c=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof u){var h=u;u=u.replace(lf,"");try{u=""!==u?JSON.parse(u):null}catch(d){u=h,c&&(c=!1,u={error:d,text:u})}}c?(n.next(new tf({body:u,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new ef({error:u,headers:r,status:o,statusText:a,url:s||void 0}))},c=function(t){var e=l(),r=new ef({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:e.url||void 0});n.error(r)},h=!1,d=function(e){h||(n.next(l()),h=!0);var r={type:$d.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(r.total=e.total),"text"===t.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},f=function(t){var e={type:$d.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return i.addEventListener("load",u),i.addEventListener("error",c),i.addEventListener("timeout",c),i.addEventListener("abort",c),t.reportProgress&&(i.addEventListener("progress",d),null!==a&&i.upload&&i.upload.addEventListener("progress",f)),i.send(a),n.next({type:$d.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("abort",c),i.removeEventListener("load",u),i.removeEventListener("timeout",c),t.reportProgress&&(i.removeEventListener("progress",d),null!==a&&i.upload&&i.upload.removeEventListener("progress",f)),i.readyState!==i.DONE&&i.abort()}})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi($h))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),cf=new _i("XSRF_COOKIE_NAME"),hf=new _i("XSRF_HEADER_NAME"),df=function t(){s(this,t)},ff=function(){var t=function(){function t(e,n,i){s(this,t),this.doc=e,this.platform=n,this.cookieName=i,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return a(t,[{key:"getToken",value:function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Mh(t,this.cookieName),this.lastCookieString=t),this.lastToken}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(oh),Fi(lc),Fi(cf))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),pf=function(){var t=function(){function t(e,n){s(this,t),this.tokenService=e,this.headerName=n}return a(t,[{key:"intercept",value:function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(df),Fi(hf))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),gf=function(){var t=function(){function t(e,n){s(this,t),this.backend=e,this.injector=n,this.chain=null}return a(t,[{key:"handle",value:function(t){if(null===this.chain){var e=this.injector.get(af,[]);this.chain=e.reduceRight(function(t,e){return new of(t,e)},this.backend)}return this.chain.handle(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(Vd),Fi(Wa))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),mf=function(){var t=function(){function t(){s(this,t)}return a(t,null,[{key:"disable",value:function(){return{ngModule:t,providers:[{provide:pf,useClass:sf}]}}},{key:"withOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:t,providers:[e.cookieName?{provide:cf,useValue:e.cookieName}:[],e.headerName?{provide:hf,useValue:e.headerName}:[]]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[pf,{provide:af,useExisting:pf,multi:!0},{provide:df,useClass:ff},{provide:cf,useValue:"XSRF-TOKEN"},{provide:hf,useValue:"X-XSRF-TOKEN"}]}),t}(),vf=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[rf,{provide:zd,useClass:gf},uf,{provide:Vd,useExisting:uf}],imports:[[mf.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t}(),yf=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this))._value=t,i}return a(n,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(t){var e=r(i(n.prototype),"_subscribe",this).call(this,t);return e&&!e.closed&&t.next(this._value),e}},{key:"getValue",value:function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new H;return this._value}},{key:"next",value:function(t){r(i(n.prototype),"next",this).call(this,this._value=t)}}]),n}(U),_f=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"notifyNext",value:function(t,e,n,i,r){this.destination.next(e)}},{key:"notifyError",value:function(t,e){this.destination.error(t)}},{key:"notifyComplete",value:function(t){this.destination.complete()}}]),n}(R),bf=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this)).parent=t,o.outerValue=i,o.outerIndex=r,o.index=0,o}return a(n,[{key:"_next",value:function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}},{key:"_error",value:function(t){this.parent.notifyError(t,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(R);function xf(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new bf(t,n,i);if(!r.closed)return e instanceof V?e.subscribe(r):et(e)(r)}var wf={};function kf(){for(var t=arguments.length,e=new Array(t),n=0;n=2&&(n=!0),function(i){return i.lift(new Hf(t,e,n))}}var Hf=function(){function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];s(this,t),this.accumulator=e,this.seed=n,this.hasSeed=i}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new jf(t,this.accumulator,this.seed,this.hasSeed))}}]),t}(),jf=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this,t)).accumulator=i,a._seed=r,a.hasSeed=o,a.index=0,a}return a(n,[{key:"seed",get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t}},{key:"_next",value:function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)}},{key:"_tryNext",value:function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(i){this.destination.error(i)}this.seed=e,this.destination.next(e)}}]),n}(R);function Gf(t){return function(e){var n=new Uf(t),i=e.lift(n);return n.caught=i}}var Uf=function(){function t(e){s(this,t),this.selector=e}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new Wf(t,this.selector,this.caught))}}]),t}(),Wf=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,t)).selector=i,o.caught=r,o}return a(n,[{key:"error",value:function(t){if(!this.isStopped){var e;try{e=this.selector(t,this.caught)}catch(s){return void r(i(n.prototype),"error",this).call(this,s)}this._unsubscribeAndRecycle();var o=new rt(this);this.add(o);var a=at(e,o);a!==o&&this.add(a)}}}]),n}(ot);function Yf(t){return function(e){return 0===t?Tf():e.lift(new qf(t))}}var qf=function(){function t(e){if(s(this,t),this.total=e,this.total<0)throw new Lf}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new Xf(t,this.total))}}]),t}(),Xf=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t)).total=i,r.ring=new Array,r.count=0,r}return a(n,[{key:"_next",value:function(t){var e=this.ring,n=this.total,i=this.count++;e.length0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r0&&void 0!==arguments[0]?arguments[0]:Qf;return function(e){return e.lift(new Kf(t))}}var Kf=function(){function t(e){s(this,t),this.errorFactory=e}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new $f(t,this.errorFactory))}}]),t}(),$f=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t)).errorFactory=i,r.hasValue=!1,r}return a(n,[{key:"_next",value:function(t){this.hasValue=!0,this.destination.next(t)}},{key:"_complete",value:function(){if(this.hasValue)return this.destination.complete();var t;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)}}]),n}(R);function Qf(){return new Mf}function Jf(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return function(e){return e.lift(new tp(t))}}var tp=function(){function t(e){s(this,t),this.defaultValue=e}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new ep(t,this.defaultValue))}}]),t}(),ep=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t)).defaultValue=i,r.isEmpty=!0,r}return a(n,[{key:"_next",value:function(t){this.isEmpty=!1,this.destination.next(t)}},{key:"_complete",value:function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}]),n}(R);function np(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?Ld(function(e,n){return t(e,n,i)}):F,Nf(1),n?Jf(e):Zf(function(){return new Mf}))}}function ip(){}function rp(t,e,n){return function(i){return i.lift(new op(t,e,n))}}var op=function(){function t(e,n,i){s(this,t),this.nextOrObserver=e,this.error=n,this.complete=i}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new ap(t,this.nextOrObserver,this.error,this.complete))}}]),t}(),ap=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this,t))._tapNext=ip,a._tapError=ip,a._tapComplete=ip,a._tapError=r||ip,a._tapComplete=o||ip,S(i)?(a._context=d(a),a._tapNext=i):i&&(a._context=i,a._tapNext=i.next||ip,a._tapError=i.error||ip,a._tapComplete=i.complete||ip),a}return a(n,[{key:"_next",value:function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}},{key:"_error",value:function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}},{key:"_complete",value:function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}]),n}(R),sp=function(){function t(e){s(this,t),this.callback=e}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new lp(t,this.callback))}}]),t}(),lp=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t)).add(new A(i)),r}return n}(R),up=function t(e,n){s(this,t),this.id=e,this.url=n},cp=function(t){u(n,t);var e=p(n);function n(t,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return s(this,n),(r=e.call(this,t,i)).navigationTrigger=o,r.restoredState=a,r}return a(n,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(up),hp=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,t,i)).urlAfterRedirects=r,o}return a(n,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),n}(up),dp=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,t,i)).reason=r,o}return a(n,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),n}(up),fp=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,t,i)).error=r,o}return a(n,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),n}(up),pp=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this,t,i)).urlAfterRedirects=r,a.state=o,a}return a(n,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(up),gp=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this,t,i)).urlAfterRedirects=r,a.state=o,a}return a(n,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(up),mp=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a){var l;return s(this,n),(l=e.call(this,t,i)).urlAfterRedirects=r,l.state=o,l.shouldActivate=a,l}return a(n,[{key:"toString",value:function(){return"GuardsCheckEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,", shouldActivate: ").concat(this.shouldActivate,")")}}]),n}(up),vp=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this,t,i)).urlAfterRedirects=r,a.state=o,a}return a(n,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(up),yp=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this,t,i)).urlAfterRedirects=r,a.state=o,a}return a(n,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),n}(up),_p=function(){function t(e){s(this,t),this.route=e}return a(t,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),t}(),bp=function(){function t(e){s(this,t),this.route=e}return a(t,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),t}(),xp=function(){function t(e){s(this,t),this.snapshot=e}return a(t,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),wp=function(){function t(e){s(this,t),this.snapshot=e}return a(t,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),kp=function(){function t(e){s(this,t),this.snapshot=e}return a(t,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),Cp=function(){function t(e){s(this,t),this.snapshot=e}return a(t,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),t}(),Sp=function(){function t(e,n,i){s(this,t),this.routerEvent=e,this.position=n,this.anchor=i}return a(t,[{key:"toString",value:function(){var t=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(t,"')")}}]),t}(),Mp="primary",Ap=function(){function t(e){s(this,t),this.params=e||{}}return a(t,[{key:"has",value:function(t){return Object.prototype.hasOwnProperty.call(this.params,t)}},{key:"get",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null}},{key:"getAll",value:function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),t}();function Ip(t){return new Ap(t)}function Op(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Tp(t,e,n){var i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.length0?t[t.length-1]:null}function Lp(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Np(t){return ws(t)?t:bs(t)?it(Promise.resolve(t)):Ed(t)}var Fp={exact:function t(e,n,i){if(!Yp(e.segments,n.segments))return!1;if(!jp(e.segments,n.segments,i))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r],i))return!1}return!0},subset:Bp},zp={exact:function(t,e){return Dp(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return Pp(t[n],e[n])})},ignored:function(){return!0}};function Vp(t,e,n){return Fp[n.paths](t.root,e.root,n.matrixParams)&&zp[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function Bp(t,e,n){return Hp(t,e,e.segments,n)}function Hp(t,e,n,i){if(t.segments.length>n.length){var r=t.segments.slice(0,n.length);return!!Yp(r,n)&&!e.hasChildren()&&!!jp(r,n,i)}if(t.segments.length===n.length){if(!Yp(t.segments,n))return!1;if(!jp(t.segments,n,i))return!1;for(var o in e.children){if(!t.children[o])return!1;if(!Bp(t.children[o],e.children[o],i))return!1}return!0}var a=n.slice(0,t.segments.length),s=n.slice(t.segments.length);return!!Yp(t.segments,a)&&!!jp(t.segments,a,i)&&!!t.children.primary&&Hp(t.children.primary,e,s,i)}function jp(t,e,n){return e.every(function(e,i){return zp[n](t[i].parameters,e.parameters)})}var Gp=function(){function t(e,n,i){s(this,t),this.root=e,this.queryParams=n,this.fragment=i}return a(t,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Ip(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return Zp.serialize(this)}}]),t}(),Up=function(){function t(e,n){var i=this;s(this,t),this.segments=e,this.children=n,this.parent=null,Lp(n,function(t,e){return t.parent=i})}return a(t,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return Kp(this)}}]),t}(),Wp=function(){function t(e,n){s(this,t),this.path=e,this.parameters=n}return a(t,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Ip(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return ig(this)}}]),t}();function Yp(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}var qp=function t(){s(this,t)},Xp=function(){function t(){s(this,t)}return a(t,[{key:"parse",value:function(t){var e=new lg(t);return new Gp(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}},{key:"serialize",value:function(t){var e,n,i="/".concat($p(t.root,!0)),r=(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return"".concat(Jp(t),"=").concat(Jp(e))}).join("&"):"".concat(Jp(t),"=").concat(Jp(n))}).filter(function(t){return!!t})).length?"?".concat(n.join("&")):""),o="string"==typeof t.fragment?"#".concat(encodeURI(t.fragment)):"";return"".concat(i).concat(r).concat(o)}}]),t}(),Zp=new Xp;function Kp(t){return t.segments.map(function(t){return ig(t)}).join("/")}function $p(t,e){if(!t.hasChildren())return Kp(t);if(e){var n=t.children.primary?$p(t.children.primary,!1):"",i=[];return Lp(t.children,function(t,e){e!==Mp&&i.push("".concat(e,":").concat($p(t,!1)))}),i.length>0?"".concat(n,"(").concat(i.join("//"),")"):n}var r=function(t,e){var n=[];return Lp(t.children,function(t,i){i===Mp&&(n=n.concat(e(t,i)))}),Lp(t.children,function(t,i){i!==Mp&&(n=n.concat(e(t,i)))}),n}(t,function(e,n){return n===Mp?[$p(t.children.primary,!1)]:["".concat(n,":").concat($p(e,!1))]});return 1===Object.keys(t.children).length&&null!=t.children.primary?"".concat(Kp(t),"/").concat(r[0]):"".concat(Kp(t),"/(").concat(r.join("//"),")")}function Qp(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Jp(t){return Qp(t).replace(/%3B/gi,";")}function tg(t){return Qp(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function eg(t){return decodeURIComponent(t)}function ng(t){return eg(t.replace(/\+/g,"%20"))}function ig(t){return"".concat(tg(t.path)).concat((e=t.parameters,Object.keys(e).map(function(t){return";".concat(tg(t),"=").concat(tg(e[t]))}).join("")));var e}var rg=/^[^\/()?;=#]+/;function og(t){var e=t.match(rg);return e?e[0]:""}var ag=/^[^=?&#]+/,sg=/^[^?&#]+/,lg=function(){function t(e){s(this,t),this.url=e,this.remaining=e}return a(t,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Up([],{}):new Up([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n.primary=new Up(t,e)),n}},{key:"parseSegment",value:function(){var t=og(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(t),new Wp(eg(t),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t}},{key:"parseParam",value:function(t){var e=og(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var i=og(this.remaining);i&&this.capture(n=i)}t[eg(e)]=eg(n)}}},{key:"parseQueryParam",value:function(t){var e=function(t){var e=t.match(ag);return e?e[0]:""}(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var i=function(t){var e=t.match(sg);return e?e[0]:""}(this.remaining);i&&this.capture(n=i)}var r=ng(e),o=ng(n);if(t.hasOwnProperty(r)){var a=t[r];Array.isArray(a)||(t[r]=a=[a]),a.push(o)}else t[r]=o}}},{key:"parseParens",value:function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=og(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '".concat(this.url,"'"));var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r=Mp);var o=this.parseChildren();e[r]=1===Object.keys(o).length?o.primary:new Up([],o),this.consumeOptional("//")}return e}},{key:"peekStartsWith",value:function(t){return this.remaining.startsWith(t)}},{key:"consumeOptional",value:function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}},{key:"capture",value:function(t){if(!this.consumeOptional(t))throw new Error('Expected "'.concat(t,'".'))}}]),t}(),ug=function(){function t(e){s(this,t),this._root=e}return a(t,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}},{key:"children",value:function(t){var e=cg(t,this._root);return e?e.children.map(function(t){return t.value}):[]}},{key:"firstChild",value:function(t){var e=cg(t,this._root);return e&&e.children.length>0?e.children[0].value:null}},{key:"siblings",value:function(t){var e=hg(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})}},{key:"pathFromRoot",value:function(t){return hg(t,this._root).map(function(t){return t.value})}}]),t}();function cg(t,e){if(t===e.value)return e;var n,i=v(e.children);try{for(i.s();!(n=i.n()).done;){var r=cg(t,n.value);if(r)return r}}catch(o){i.e(o)}finally{i.f()}return null}function hg(t,e){if(t===e.value)return[e];var n,i=v(e.children);try{for(i.s();!(n=i.n()).done;){var r=hg(t,n.value);if(r.length)return r.unshift(e),r}}catch(o){i.e(o)}finally{i.f()}return[]}var dg=function(){function t(e,n){s(this,t),this.value=e,this.children=n}return a(t,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),t}();function fg(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var pg=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t)).snapshot=i,xg(d(r),t),r}return a(n,[{key:"toString",value:function(){return this.snapshot.toString()}}]),n}(ug);function gg(t,e){var n=function(t,e){var n=new _g([],{},{},"",{},Mp,e,null,t.root,-1,{});return new bg("",new dg(n,[]))}(t,e),i=new yf([new Wp("",{})]),r=new yf({}),o=new yf({}),a=new yf({}),s=new yf(""),l=new mg(i,r,a,s,o,Mp,e,n.root);return l.snapshot=n.root,new pg(new dg(l,[]),n)}var mg=function(){function t(e,n,i,r,o,a,l,u){s(this,t),this.url=e,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=l,this._futureSnapshot=u}return a(t,[{key:"routeConfig",get:function(){return this._futureSnapshot.routeConfig}},{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=this.params.pipe(q(function(t){return Ip(t)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(q(function(t){return Ip(t)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),t}();function vg(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",n=t.pathFromRoot,i=0;if("always"!==e)for(i=n.length-1;i>=1;){var r=n[i],o=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(o.component)break;i--}}return yg(n.slice(i))}function yg(t){return t.reduce(function(t,e){return{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:{}})}var _g=function(){function t(e,n,i,r,o,a,l,u,c,h,d){s(this,t),this.url=e,this.params=n,this.queryParams=i,this.fragment=r,this.data=o,this.outlet=a,this.component=l,this.routeConfig=u,this._urlSegment=c,this._lastPathIndex=h,this._resolve=d}return a(t,[{key:"root",get:function(){return this._routerState.root}},{key:"parent",get:function(){return this._routerState.parent(this)}},{key:"firstChild",get:function(){return this._routerState.firstChild(this)}},{key:"children",get:function(){return this._routerState.children(this)}},{key:"pathFromRoot",get:function(){return this._routerState.pathFromRoot(this)}},{key:"paramMap",get:function(){return this._paramMap||(this._paramMap=Ip(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Ip(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){var t=this.url.map(function(t){return t.toString()}).join("/"),e=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(t,"', path:'").concat(e,"')")}}]),t}(),bg=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,i)).url=t,xg(d(r),i),r}return a(n,[{key:"toString",value:function(){return wg(this._root)}}]),n}(ug);function xg(t,e){e.value._routerState=t,e.children.forEach(function(e){return xg(t,e)})}function wg(t){var e=t.children.length>0?" { ".concat(t.children.map(wg).join(", ")," } "):"";return"".concat(t.value).concat(e)}function kg(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Dp(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Dp(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;nr;){if(o-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new Eg(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(o,e,t),s=a.processChildren?Lg(a.segmentGroup,a.index,o.commands):Rg(a.segmentGroup,a.index,o.commands);return Tg(a.segmentGroup,s,e,i,r)}function Ig(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Og(t){return"object"==typeof t&&null!=t&&t.outlets}function Tg(t,e,n,i,r){var o={};return i&&Lp(i,function(t,e){o[e]=Array.isArray(t)?t.map(function(t){return"".concat(t)}):"".concat(t)}),new Gp(n.root===t?e:Dg(n.root,t,e),o,r)}function Dg(t,e,n){var i={};return Lp(t.children,function(t,r){i[r]=t===e?n:Dg(t,e,n)}),new Up(t.segments,i)}var Pg=function(){function t(e,n,i){if(s(this,t),this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=i,e&&i.length>0&&Ig(i[0]))throw new Error("Root segment cannot have matrix parameters");var r=i.find(Og);if(r&&r!==Rp(i))throw new Error("{outlets:{}} has to be the last command")}return a(t,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),t}(),Eg=function t(e,n,i){s(this,t),this.segmentGroup=e,this.processChildren=n,this.index=i};function Rg(t,e,n){if(t||(t=new Up([],{})),0===t.segments.length&&t.hasChildren())return Lg(t,e,n);var i=function(t,e,n){for(var i=0,r=e,o={match:!1,pathIndex:0,commandIndex:0};r=n.length)return o;var a=t.segments[r],s=n[i];if(Og(s))break;var l="".concat(s),u=i0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!Vg(l,u,a))return o;i+=2}else{if(!Vg(l,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",n=0;n0)?Object.assign({},tm):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};var r=(e.matcher||Tp)(n,t,e);if(!r)return Object.assign({},tm);var o={};Lp(r.posParams,function(t,e){o[e]=t.path});var a=r.consumed.length>0?Object.assign(Object.assign({},o),r.consumed[r.consumed.length-1].parameters):o;return{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:a,positionalParamSegments:null!==(i=r.posParams)&&void 0!==i?i:{}}}function nm(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(n.length>0&&om(t,n,i)){var o=new Up(e,rm(t,e,i,new Up(n,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&am(t,n,i)){var a=new Up(t.segments,im(t,e,n,i,t.children,r));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:n}}var s=new Up(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function im(t,e,n,i,r,o){var a,s={},l=v(i);try{for(l.s();!(a=l.n()).done;){var u=a.value;if(sm(t,n,u)&&!r[Qg(u)]){var c=new Up([],{});c._sourceSegment=t,c._segmentIndexShift="legacy"===o?t.segments.length:e.length,s[Qg(u)]=c}}}catch(h){l.e(h)}finally{l.f()}return Object.assign(Object.assign({},r),s)}function rm(t,e,n,i){var r={};r.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;var o,a=v(n);try{for(a.s();!(o=a.n()).done;){var s=o.value;if(""===s.path&&Qg(s)!==Mp){var l=new Up([],{});l._sourceSegment=t,l._segmentIndexShift=e.length,r[Qg(s)]=l}}}catch(u){a.e(u)}finally{a.f()}return r}function om(t,e,n){return n.some(function(n){return sm(t,e,n)&&Qg(n)!==Mp})}function am(t,e,n){return n.some(function(n){return sm(t,e,n)})}function sm(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function lm(t,e,n,i){return!!(Qg(t)===i||i!==Mp&&sm(e,n,t))&&("**"===t.path||em(e,t,n).matched)}function um(t,e,n){return 0===e.length&&!t.children[n]}var cm=function t(e){s(this,t),this.segmentGroup=e||null},hm=function t(e){s(this,t),this.urlTree=e};function dm(t){return new V(function(e){return e.error(new cm(t))})}function fm(t){return new V(function(e){return e.error(new hm(t))})}function pm(t){return new V(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(t,"'")))})}var gm=function(){function t(e,n,i,r,o){s(this,t),this.configLoader=n,this.urlSerializer=i,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=e.get(su)}return a(t,[{key:"apply",value:function(){var t=this,e=nm(this.urlTree.root,[],[],this.config).segmentGroup,n=new Up(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,n,Mp).pipe(q(function(e){return t.createUrlTree(mm(e),t.urlTree.queryParams,t.urlTree.fragment)})).pipe(Gf(function(e){if(e instanceof hm)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof cm)throw t.noMatchError(e);throw e}))}},{key:"match",value:function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,Mp).pipe(q(function(n){return e.createUrlTree(mm(n),t.queryParams,t.fragment)})).pipe(Gf(function(t){if(t instanceof cm)throw e.noMatchError(t);throw t}))}},{key:"noMatchError",value:function(t){return new Error("Cannot match any routes. URL Segment: '".concat(t.segmentGroup,"'"))}},{key:"createUrlTree",value:function(t,e,n){var i=t.segments.length>0?new Up([],_({},Mp,t)):t;return new Gp(i,e,n)}},{key:"expandSegmentGroup",value:function(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(q(function(t){return new Up([],t)})):this.expandSegment(t,n,e,n.segments,i,!0)}},{key:"expandChildren",value:function(t,e,n){for(var i=this,r=[],o=0,a=Object.keys(n.children);o=2;return function(i){return i.pipe(t?Ld(function(e,n){return t(e,n,i)}):F,Yf(1),n?Jf(e):Zf(function(){return new Mf}))}}())}},{key:"expandSegment",value:function(t,e,n,i,r,o){var a=this;return it(n).pipe(Rd(function(s){return a.expandSegmentAgainstRoute(t,e,n,s,i,r,o).pipe(Gf(function(t){if(t instanceof cm)return Ed(null);throw t}))}),np(function(t){return!!t}),Gf(function(t,n){if(t instanceof Mf||"EmptyError"===t.name){if(um(e,i,r))return Ed(new Up([],{}));throw new cm(e)}throw t}))}},{key:"expandSegmentAgainstRoute",value:function(t,e,n,i,r,o,a){return lm(i,e,r,o)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,r,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o):dm(e):dm(e)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(t,e,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(t,e,n,i){var r=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?fm(o):this.lineralizeSegments(n,o).pipe(st(function(n){var o=new Up(n,{});return r.expandSegment(t,o,e,n,i,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(t,e,n,i,r,o){var a=this,s=em(e,i,r),l=s.consumedSegments,u=s.lastChild,c=s.positionalParamSegments;if(!s.matched)return dm(e);var h=this.applyRedirectCommands(l,i.redirectTo,c);return i.redirectTo.startsWith("/")?fm(h):this.lineralizeSegments(i,h).pipe(st(function(i){return a.expandSegment(t,e,n,i.concat(r.slice(u)),o,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(t,e,n,i,r){var o=this;if("**"===n.path)return n.loadChildren?(n._loadedConfig?Ed(n._loadedConfig):this.configLoader.load(t.injector,n)).pipe(q(function(t){return n._loadedConfig=t,new Up(i,{})})):Ed(new Up(i,{}));var a=em(e,n,i),s=a.consumedSegments,l=a.lastChild;if(!a.matched)return dm(e);var u=i.slice(l);return this.getChildConfig(t,n,i).pipe(st(function(t){var i=t.module,a=t.routes,l=nm(e,s,u,a),c=l.segmentGroup,h=l.slicedSegments,d=new Up(c.segments,c.children);if(0===h.length&&d.hasChildren())return o.expandChildren(i,a,d).pipe(q(function(t){return new Up(s,t)}));if(0===a.length&&0===h.length)return Ed(new Up(s,{}));var f=Qg(n)===r;return o.expandSegment(i,d,a,h,f?Mp:r,!0).pipe(q(function(t){return new Up(s.concat(t.segments),t.children)}))}))}},{key:"getChildConfig",value:function(t,e,n){var i=this;return e.children?Ed(new jg(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Ed(e._loadedConfig):this.runCanLoadGuards(t.injector,e,n).pipe(st(function(n){return n?i.configLoader.load(t.injector,e).pipe(q(function(t){return e._loadedConfig=t,t})):function(t){return new V(function(e){return e.error(Op("Cannot load children because the guard of the route \"path: '".concat(t.path,"'\" returned false")))})}(e)})):Ed(new jg([],t))}},{key:"runCanLoadGuards",value:function(t,e,n){var i=this,r=e.canLoad;return r&&0!==r.length?Ed(r.map(function(i){var r,o=t.get(i);if(function(t){return t&&Gg(t.canLoad)}(o))r=o.canLoad(e,n);else{if(!Gg(o))throw new Error("Invalid CanLoad guard");r=o(e,n)}return Np(r)})).pipe(Yg(),rp(function(t){if(Ug(t)){var e=Op('Redirecting to "'.concat(i.urlSerializer.serialize(t),'"'));throw e.url=t,e}}),q(function(t){return!0===t})):Ed(!0)}},{key:"lineralizeSegments",value:function(t,e){for(var n=[],i=e.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Ed(n);if(i.numberOfChildren>1||!i.children.primary)return pm(t.redirectTo);i=i.children.primary}}},{key:"applyRedirectCommands",value:function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)}},{key:"applyRedirectCreatreUrlTree",value:function(t,e,n,i){var r=this.createSegmentGroup(t,e.root,n,i);return new Gp(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}},{key:"createQueryParams",value:function(t,e){var n={};return Lp(t,function(t,i){if("string"==typeof t&&t.startsWith(":")){var r=t.substring(1);n[i]=e[r]}else n[i]=t}),n}},{key:"createSegmentGroup",value:function(t,e,n,i){var r=this,o=this.createSegments(t,e.segments,n,i),a={};return Lp(e.children,function(e,o){a[o]=r.createSegmentGroup(t,e,n,i)}),new Up(o,a)}},{key:"createSegments",value:function(t,e,n,i){var r=this;return e.map(function(e){return e.path.startsWith(":")?r.findPosParam(t,e,i):r.findOrReturn(e,n)})}},{key:"findPosParam",value:function(t,e,n){var i=n[e.path.substring(1)];if(!i)throw new Error("Cannot redirect to '".concat(t,"'. Cannot find '").concat(e.path,"'."));return i}},{key:"findOrReturn",value:function(t,e){var n,i=0,r=v(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.path===t.path)return e.splice(i),o;i++}}catch(a){r.e(a)}finally{r.f()}return t}}]),t}();function mm(t){for(var e={},n=0,i=Object.keys(t.children);n0||o.hasChildren())&&(e[r]=o)}return function(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new Up(t.segments.concat(e.segments),e.children)}return t}(new Up(t.segments,e))}var vm=function t(e){s(this,t),this.path=e,this.route=this.path[this.path.length-1]},ym=function t(e,n){s(this,t),this.component=e,this.route=n};function _m(t,e,n){var i=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(i?i.module.injector:n).get(t)}function bm(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=fg(e);return t.children.forEach(function(t){xm(t,o[t.value.outlet],n,i.concat([t.value]),r),delete o[t.value.outlet]}),Lp(o,function(t,e){return km(t,n.getContext(e),r)}),r}function xm(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},o=t.value,a=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var l=wm(a,o,o.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new vm(i)):(o.data=a.data,o._resolvedData=a._resolvedData),bm(t,e,o.component?s?s.children:null:n,i,r),l&&s&&s.outlet&&s.outlet.isActivated&&r.canDeactivateChecks.push(new ym(s.outlet.component,a))}else a&&km(e,s,r),r.canActivateChecks.push(new vm(i)),bm(t,null,o.component?s?s.children:null:n,i,r);return r}function wm(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Yp(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Yp(t.url,e.url)||!Dp(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Cg(t,e)||!Dp(t.queryParams,e.queryParams);case"paramsChange":default:return!Cg(t,e)}}function km(t,e,n){var i=fg(t),r=t.value;Lp(i,function(t,i){km(t,r.component?e?e.children.getContext(i):null:e,n)}),n.canDeactivateChecks.push(new ym(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}var Cm=function t(){s(this,t)};function Sm(t){return new V(function(e){return e.error(t)})}var Mm=function(){function t(e,n,i,r,o,a){s(this,t),this.rootComponentType=e,this.config=n,this.urlTree=i,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=a}return a(t,[{key:"recognize",value:function(){var t=nm(this.urlTree.root,[],[],this.config.filter(function(t){return void 0===t.redirectTo}),this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,Mp);if(null===e)return null;var n=new _g([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},Mp,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new dg(n,e),r=new bg(this.url,i);return this.inheritParamsAndData(r._root),r}},{key:"inheritParamsAndData",value:function(t){var e=this,n=t.value,i=vg(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})}},{key:"processSegmentGroup",value:function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)}},{key:"processChildren",value:function(t,e){for(var n=[],i=0,r=Object.keys(e.children);i0?Rp(n).parameters:{};r=new _g(n,s,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Tm(t),Qg(t),t.component,t,Im(e),Om(e)+n.length,Dm(t))}else{var l=em(e,t,n);if(!l.matched)return null;o=l.consumedSegments,a=n.slice(l.lastChild),r=new _g(o,l.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Tm(t),Qg(t),t.component,t,Im(e),Om(e)+o.length,Dm(t))}var u=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),c=nm(e,o,a,u.filter(function(t){return void 0===t.redirectTo}),this.relativeLinkResolution),h=c.segmentGroup,d=c.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(u,h);return null===f?null:[new dg(r,f)]}if(0===u.length&&0===d.length)return[new dg(r,[])];var p=Qg(t)===i,g=this.processSegment(u,h,d,p?Mp:i);return null===g?null:[new dg(r,g)]}}]),t}();function Am(t){var e,n=[],i=new Set,r=v(t);try{var o=function(){var t=e.value;if(!function(t){var e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}(t))return n.push(t),"continue";var r,o=n.find(function(e){return t.value.routeConfig===e.value.routeConfig});void 0!==o?((r=o.children).push.apply(r,b(t.children)),i.add(o)):n.push(t)};for(r.s();!(e=r.n()).done;)o()}catch(c){r.e(c)}finally{r.f()}var a,s=v(i);try{for(s.s();!(a=s.n()).done;){var l=a.value,u=Am(l.children);n.push(new dg(l.value,u))}}catch(c){s.e(c)}finally{s.f()}return n.filter(function(t){return!i.has(t)})}function Im(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Om(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Tm(t){return t.data||{}}function Dm(t){return t.resolve||{}}function Pm(t){return Pf(function(e){var n=t(e);return n?it(n).pipe(q(function(){return e})):Ed(e)})}var Em=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return n}(function(){function t(){s(this,t)}return a(t,[{key:"shouldDetach",value:function(t){return!1}},{key:"store",value:function(t,e){}},{key:"shouldAttach",value:function(t){return!1}},{key:"retrieve",value:function(t){return null}},{key:"shouldReuseRoute",value:function(t,e){return t.routeConfig===e.routeConfig}}]),t}()),Rm=new _i("ROUTES"),Lm=function(){function t(e,n,i,r){s(this,t),this.loader=e,this.compiler=n,this.onLoadStartListener=i,this.onLoadEndListener=r}return a(t,[{key:"load",value:function(t,e){var n=this;if(e._loader$)return e._loader$;this.onLoadStartListener&&this.onLoadStartListener(e);var i=this.loadModuleFactory(e.loadChildren).pipe(q(function(i){n.onLoadEndListener&&n.onLoadEndListener(e);var r=i.create(t);return new jg(Ep(r.injector.get(Rm,void 0,jt.Self|jt.Optional)).map($g),r)}),Gf(function(t){throw e._loader$=void 0,t}));return e._loader$=new mt(i,function(){return new U}).pipe(ft()),e._loader$}},{key:"loadModuleFactory",value:function(t){var e=this;return"string"==typeof t?it(this.loader.load(t)):Np(t()).pipe(st(function(t){return t instanceof lu?Ed(t):it(e.compiler.compileModuleAsync(t))}))}}]),t}(),Nm=function t(){s(this,t),this.outlet=null,this.route=null,this.resolver=null,this.children=new Fm,this.attachRef=null},Fm=function(){function t(){s(this,t),this.contexts=new Map}return a(t,[{key:"onChildOutletCreated",value:function(t,e){var n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)}},{key:"onChildOutletDestroyed",value:function(t){var e=this.getContext(t);e&&(e.outlet=null)}},{key:"onOutletDeactivated",value:function(){var t=this.contexts;return this.contexts=new Map,t}},{key:"onOutletReAttached",value:function(t){this.contexts=t}},{key:"getOrCreateContext",value:function(t){var e=this.getContext(t);return e||(e=new Nm,this.contexts.set(t,e)),e}},{key:"getContext",value:function(t){return this.contexts.get(t)||null}}]),t}(),zm=function(){function t(){s(this,t)}return a(t,[{key:"shouldProcessUrl",value:function(t){return!0}},{key:"extract",value:function(t){return t}},{key:"merge",value:function(t,e){return t}}]),t}();function Vm(t){throw t}function Bm(t,e,n){return e.parse("/")}function Hm(t,e){return Ed(null)}var jm={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Gm={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Um=function(){var t=function(){function t(e,n,i,r,o,a,l,u){var c=this;s(this,t),this.rootComponentType=e,this.urlSerializer=n,this.rootContexts=i,this.location=r,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.lastLocationChangeInfo=null,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new U,this.errorHandler=Vm,this.malformedUriErrorHandler=Bm,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Hm,afterPreactivation:Hm},this.urlHandlingStrategy=new zm,this.routeReuseStrategy=new Em,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(su),this.console=o.get(cc);var h=o.get(kc);this.isNgZoneEnabled=h instanceof kc&&kc.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=new Gp(new Up([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Lm(a,l,function(t){return c.triggerEvent(new _p(t))},function(t){return c.triggerEvent(new bp(t))}),this.routerState=gg(this.currentUrlTree,this.rootComponentType),this.transitions=new yf({id:0,targetPageId: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()}return a(t,[{key:"setupNavigations",value:function(t){var e=this,n=this.events;return t.pipe(Ld(function(t){return 0!==t.id}),q(function(t){return Object.assign(Object.assign({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),Pf(function(t){var i,r,o,a,s=!1,l=!1;return Ed(t).pipe(rp(function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?Object.assign(Object.assign({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Pf(function(t){var i=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||i)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Ed(t).pipe(Pf(function(t){var i=e.transitions.getValue();return n.next(new cp(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==e.transitions.getValue()?Of:Promise.resolve(t)}),function(t,e,n,i){return Pf(function(r){return function(t,e,n,i,r){return new gm(t,e,n,i,r).apply()}(t,e,n,r.extractedUrl,i).pipe(q(function(t){return Object.assign(Object.assign({},r),{urlAfterRedirects:t})}))})}(e.ngModule.injector,e.configLoader,e.urlSerializer,e.config),rp(function(t){e.currentNavigation=Object.assign(Object.assign({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})}),function(t,n,i,r,o){return st(function(i){return function(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var a=new Mm(t,e,n,i,r,o).recognize();return null===a?Sm(new Cm):Ed(a)}catch(s){return Sm(s)}}(t,n,i.urlAfterRedirects,(a=i.urlAfterRedirects,e.serializeUrl(a)),r,o).pipe(q(function(t){return Object.assign(Object.assign({},i),{targetSnapshot:t})}));var a})}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),rp(function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,t),e.browserUrlTree=t.urlAfterRedirects);var i=new pp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(i)}));if(i&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var r=t.extractedUrl,o=t.source,a=t.restoredState,s=t.extras,l=new cp(t.id,e.serializeUrl(r),o,a);n.next(l);var u=gg(r,e.rootComponentType).snapshot;return Ed(Object.assign(Object.assign({},t),{targetSnapshot:u,urlAfterRedirects:r,extras:Object.assign(Object.assign({},s),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Of}),Pm(function(t){var n=t.extras;return e.hooks.beforePreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),rp(function(t){var n=new gp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),q(function(t){return Object.assign(Object.assign({},t),{guards:(n=t.targetSnapshot,i=t.currentSnapshot,r=e.rootContexts,o=n._root,bm(o,i?i._root:null,r,[o.value]))});var n,i,r,o}),function(t,e){return st(function(n){var i=n.targetSnapshot,r=n.currentSnapshot,o=n.guards,a=o.canActivateChecks,s=o.canDeactivateChecks;return 0===s.length&&0===a.length?Ed(Object.assign(Object.assign({},n),{guardsResult:!0})):function(t,e,n,i){return it(t).pipe(st(function(t){return function(t,e,n,i,r){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?Ed(o.map(function(o){var a,s=_m(o,e,r);if(function(t){return t&&Gg(t.canDeactivate)}(s))a=Np(s.canDeactivate(t,e,n,i));else{if(!Gg(s))throw new Error("Invalid CanDeactivate guard");a=Np(s(t,e,n,i))}return a.pipe(np())})).pipe(Yg()):Ed(!0)}(t.component,t.route,n,e,i)}),np(function(t){return!0!==t},!0))}(s,i,r,t).pipe(st(function(n){return n&&"boolean"==typeof n?function(t,e,n,i){return it(e).pipe(Rd(function(e){return If(function(t,e){return null!==t&&e&&e(new xp(t)),Ed(!0)}(e.route.parent,i),function(t,e){return null!==t&&e&&e(new kp(t)),Ed(!0)}(e.route,i),function(t,e,n){var i=e[e.length-1],r=e.slice(0,e.length-1).reverse().map(function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)}).filter(function(t){return null!==t}).map(function(e){return Df(function(){return Ed(e.guards.map(function(r){var o,a=_m(r,e.node,n);if(function(t){return t&&Gg(t.canActivateChild)}(a))o=Np(a.canActivateChild(i,t));else{if(!Gg(a))throw new Error("Invalid CanActivateChild guard");o=Np(a(i,t))}return o.pipe(np())})).pipe(Yg())})});return Ed(r).pipe(Yg())}(t,e.path,n),function(t,e,n){var i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?Ed(i.map(function(i){return Df(function(){var r,o=_m(i,e,n);if(function(t){return t&&Gg(t.canActivate)}(o))r=Np(o.canActivate(e,t));else{if(!Gg(o))throw new Error("Invalid CanActivate guard");r=Np(o(e,t))}return r.pipe(np())})})).pipe(Yg()):Ed(!0)}(t,e.route,n))}),np(function(t){return!0!==t},!0))}(i,a,t,e):Ed(n)}),q(function(t){return Object.assign(Object.assign({},n),{guardsResult:t})}))})}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),rp(function(t){if(Ug(t.guardsResult)){var n=Op('Redirecting to "'.concat(e.serializeUrl(t.guardsResult),'"'));throw n.url=t.guardsResult,n}var i=new mp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(i)}),Ld(function(t){return!!t.guardsResult||(e.cancelNavigationTransition(t,""),!1)}),Pm(function(t){if(t.guards.canActivateChecks.length)return Ed(t).pipe(rp(function(t){var n=new vp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),Pf(function(t){var n,i,r=!1;return Ed(t).pipe((n=e.paramsInheritanceStrategy,i=e.ngModule.injector,st(function(t){var e=t.targetSnapshot,r=t.guards.canActivateChecks;if(!r.length)return Ed(t);var o=0;return it(r).pipe(Rd(function(t){return function(t,e,n,i){return function(t,e,n,i){var r=Object.keys(t);if(0===r.length)return Ed({});var o={};return it(r).pipe(st(function(r){return function(t,e,n,i){var r=_m(t,e,i);return Np(r.resolve?r.resolve(e,n):r(e,n))}(t[r],e,n,i).pipe(rp(function(t){o[r]=t}))}),Yf(1),st(function(){return Object.keys(o).length===r.length?Ed(o):Of}))}(t._resolve,t,e,i).pipe(q(function(e){return t._resolvedData=e,t.data=Object.assign(Object.assign({},t.data),vg(t,n).resolve),null}))}(t.route,e,n,i)}),rp(function(){return o++}),Yf(1),st(function(e){return o===r.length?Ed(t):Of}))})),rp({next:function(){return r=!0},complete:function(){r||e.cancelNavigationTransition(t,"At least one route resolver didn't emit any value.")}}))}),rp(function(t){var n=new yp(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}))}),Pm(function(t){var n=t.extras;return e.hooks.afterPreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),q(function(t){var n,i,r,o=(r=Sg(e.routeReuseStrategy,(n=t.targetSnapshot)._root,(i=t.currentRouterState)?i._root:void 0),new pg(r,n));return Object.assign(Object.assign({},t),{targetRouterState:o})}),rp(function(t){e.currentUrlTree=t.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(e.currentUrlTree,t.rawUrl),e.routerState=t.targetRouterState,"deferred"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,t),e.browserUrlTree=t.urlAfterRedirects)}),(r=e.rootContexts,o=e.routeReuseStrategy,a=function(t){return e.triggerEvent(t)},q(function(t){return new Bg(o,t.targetRouterState,t.currentRouterState,a).activate(r),t})),rp({next:function(){s=!0},complete:function(){s=!0}}),(i=function(){s||l||e.cancelNavigationTransition(t,"Navigation ID ".concat(t.id," is not equal to the current navigation id ").concat(e.navigationId)),e.currentNavigation=null},function(t){return t.lift(new sp(i))}),Gf(function(i){if(l=!0,(s=i)&&s.ngNavigationCancelingError){var r=Ug(i.url);r||(e.navigated=!0,e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl));var o=new dp(t.id,e.serializeUrl(t.extractedUrl),i.message);n.next(o),r?setTimeout(function(){var n=e.urlHandlingStrategy.merge(i.url,e.rawUrlTree);e.scheduleNavigation(n,"imperative",null,{skipLocationChange:t.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy},{resolve:t.resolve,reject:t.reject,promise:t.promise})},0):t.resolve(!1)}else{e.resetStateAndUrl(t.currentRouterState,t.currentUrlTree,t.rawUrl);var a=new fp(t.id,e.serializeUrl(t.extractedUrl),i);n.next(a);try{t.resolve(e.errorHandler(i))}catch(u){t.reject(u)}}var s;return Of}))}))}},{key:"resetRootComponentType",value:function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType}},{key:"getTransition",value:function(){var t=this.transitions.value;return t.urlAfterRedirects=this.browserUrlTree,t}},{key:"setTransition",value:function(t){this.transitions.next(Object.assign(Object.assign({},this.getTransition()),t))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var n=t.extractLocationChangeInfoFromEvent(e);t.shouldScheduleNavigation(t.lastLocationChangeInfo,n)&&setTimeout(function(){var e=n.source,i=n.state,r=n.urlTree,o={replaceUrl:!0};if(i){var a=Object.assign({},i);delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(o.state=a)}t.scheduleNavigation(r,e,i,o)},0),t.lastLocationChangeInfo=n}))}},{key:"extractLocationChangeInfoFromEvent",value:function(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}}},{key:"shouldScheduleNavigation",value:function(t,e){if(!t)return!0;var n=e.urlTree.toString()===t.urlTree.toString();return!(e.transitionId===t.transitionId&&n&&("hashchange"===e.source&&"popstate"===t.source||"popstate"===e.source&&"hashchange"===t.source))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(t){this.events.next(t)}},{key:"resetConfig",value:function(t){Xg(t),this.config=t.map($g),this.navigated=!1,this.lastSuccessfulId=-1}},{key:"ngOnDestroy",value:function(){this.dispose()}},{key:"dispose",value:function(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}},{key:"createUrlTree",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.relativeTo,i=e.queryParams,r=e.fragment,o=e.queryParamsHandling,a=e.preserveFragment,s=n||this.routerState.root,l=a?this.currentUrlTree.fragment:r,u=null;switch(o){case"merge":u=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}return null!==u&&(u=this.removeEmptyProps(u)),Ag(s,this.currentUrlTree,t,u,null!=l?l:null)}},{key:"navigateByUrl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},n=Ug(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree),r=null;if("computed"===this.canceledNavigationResolution){var o=0===this.currentPageId;(o||e.skipLocationChange||e.replaceUrl)&&(r=this.location.getState())}return this.scheduleNavigation(i,"imperative",r,e)}},{key:"navigate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return Wm(t),this.navigateByUrl(this.createUrlTree(t,e),e)}},{key:"serializeUrl",value:function(t){return this.urlSerializer.serialize(t)}},{key:"parseUrl",value:function(t){var e;try{e=this.urlSerializer.parse(t)}catch(n){e=this.malformedUriErrorHandler(n,this.urlSerializer,t)}return e}},{key:"isActive",value:function(t,e){var n;if(n=!0===e?Object.assign({},jm):!1===e?Object.assign({},Gm):e,Ug(t))return Vp(this.currentUrlTree,t,n);var i=this.parseUrl(t);return Vp(this.currentUrlTree,i,n)}},{key:"removeEmptyProps",value:function(t){return Object.keys(t).reduce(function(e,n){var i=t[n];return null!=i&&(e[n]=i),e},{})}},{key:"processNavigations",value:function(){var t=this;this.navigations.subscribe(function(e){t.navigated=!0,t.lastSuccessfulId=e.id,t.currentPageId=e.targetPageId,t.events.next(new hp(e.id,t.serializeUrl(e.extractedUrl),t.serializeUrl(t.currentUrlTree))),t.lastSuccessfulNavigation=t.currentNavigation,e.resolve(!0)},function(e){t.console.warn("Unhandled Navigation Error: ")})}},{key:"scheduleNavigation",value:function(t,e,n,i,r){if(this.disposed)return Promise.resolve(!1);var o,a,s,l=this.getTransition(),u="imperative"!==e&&"imperative"===(null==l?void 0:l.source),c=(this.lastSuccessfulId===l.id||this.currentNavigation?l.rawUrl:l.urlAfterRedirects).toString()===t.toString();if(u&&c)return Promise.resolve(!0);r?(o=r.resolve,a=r.reject,s=r.promise):s=new Promise(function(t,e){o=t,a=e});var h=++this.navigationId;return this.setTransition({id:h,targetPageId:"computed"===this.canceledNavigationResolution?n&&n.\u0275routerPageId?n.\u0275routerPageId:this.currentPageId+1:0,source:e,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:t,extras:i,resolve:o,reject:a,promise:s,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),s.catch(function(t){return Promise.reject(t)})}},{key:"setBrowserUrl",value:function(t,e){var n=this.urlSerializer.serialize(t),i=Object.assign(Object.assign({},e.extras.state),this.generateNgRouterState(e.id,e.targetPageId));this.location.isCurrentPathEqualTo(n)||e.extras.replaceUrl?this.location.replaceState(n,"",i):this.location.go(n,"",i)}},{key:"resetStateAndUrl",value:function(t,e,n){this.routerState=t,this.currentUrlTree=e,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n),this.resetUrlToCurrentUrlTree()}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(t,e){"computed"===this.canceledNavigationResolution?"popstate"!==t.source&&"eager"!==this.urlUpdateStrategy||this.location.historyGo(this.currentPageId-t.targetPageId):this.resetUrlToCurrentUrlTree();var n=new dp(t.id,this.serializeUrl(t.extractedUrl),e);this.triggerEvent(n),t.resolve(!1)}},{key:"generateNgRouterState",value:function(t,e){return"computed"===this.canceledNavigationResolution?{navigationId:t,"\u0275routerPageId":e}:{navigationId:t}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(xi),Fi(qp),Fi(Fm),Fi(bh),Fi(Wa),Fi(Xc),Fi(bc),Fi(void 0))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}();function Wm(t){for(var e=0;e2&&void 0!==arguments[2]?arguments[2]:{};s(this,t),this.router=e,this.viewportScroller=n,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}return a(t,[{key:"init",value:function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}},{key:"createScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof cp?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=e.navigationTrigger,t.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof hp&&(t.lastId=e.id,t.scheduleScrollEvent(e,t.router.parseUrl(e.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var t=this;return this.router.events.subscribe(function(e){e instanceof Sp&&(e.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(t,e){this.router.triggerEvent(new Sp(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,e))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(Um),Fi(qh),Fi(void 0))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),nv=new _i("ROUTER_CONFIGURATION"),iv=new _i("ROUTER_FORROOT_GUARD"),rv=[bh,{provide:qp,useClass:Xp},{provide:Um,useFactory:function(t,e,n,i,r,o,a){var s=arguments.length>7&&void 0!==arguments[7]?arguments[7]:{},l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9?arguments[9]:void 0,c=new Um(null,t,e,n,i,r,o,Ep(a));return l&&(c.urlHandlingStrategy=l),u&&(c.routeReuseStrategy=u),hv(s,c),s.enableTracing&&c.events.subscribe(function(t){var e,n;null===(e=console.group)||void 0===e||e.call(console,"Router Event: ".concat(t.constructor.name)),console.log(t.toString()),console.log(t),null===(n=console.groupEnd)||void 0===n||n.call(console)}),c},deps:[qp,Fm,bh,Wa,Xc,bc,Rm,nv,[function t(){s(this,t)},new Wi],[function t(){s(this,t)},new Wi]]},Fm,{provide:mg,useFactory:function(t){return t.routerState.root},deps:[Um]},{provide:Xc,useClass:$c},tv,Jm,Qm,{provide:nv,useValue:{enableTracing:!1}}];function ov(){return new Vc("Router",Um)}var av=function(){var t=function(){function t(e,n){s(this,t)}return a(t,null,[{key:"forRoot",value:function(e,n){return{ngModule:t,providers:[rv,cv(e),{provide:iv,useFactory:uv,deps:[[Um,new Wi,new Yi]]},{provide:nv,useValue:n||{}},{provide:gh,useFactory:lv,deps:[ah,[new Ui(vh),new Wi],nv]},{provide:ev,useFactory:sv,deps:[Um,qh,nv]},{provide:$m,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:Jm},{provide:Vc,multi:!0,useFactory:ov},[dv,{provide:nc,multi:!0,useFactory:fv,deps:[dv]},{provide:gv,useFactory:pv,deps:[dv]},{provide:uc,multi:!0,useExisting:gv}]]}}},{key:"forChild",value:function(e){return{ngModule:t,providers:[cv(e)]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(iv,8),Fi(Um,8))},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({}),t}();function sv(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new ev(t,e,n)}function lv(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n.useHash?new _h(t,e):new yh(t,e)}function uv(t){return"guarded"}function cv(t){return[{provide:bi,multi:!0,useValue:t},{provide:Rm,multi:!0,useValue:t}]}function hv(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy)}var dv=function(){var t=function(){function t(e){s(this,t),this.injector=e,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new U}return a(t,[{key:"appInitializer",value:function(){var t=this;return this.injector.get(lh,Promise.resolve(null)).then(function(){if(t.destroyed)return Promise.resolve(!0);var e=null,n=new Promise(function(t){return e=t}),i=t.injector.get(Um),r=t.injector.get(nv);return"disabled"===r.initialNavigation?(i.setUpLocationChangeListener(),e(!0)):"enabled"===r.initialNavigation||"enabledBlocking"===r.initialNavigation?(i.hooks.afterPreactivation=function(){return t.initNavigation?Ed(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},i.initialNavigation()):e(!0),n})}},{key:"bootstrapListener",value:function(t){var e=this.injector.get(nv),n=this.injector.get(tv),i=this.injector.get(ev),r=this.injector.get(Um),o=this.injector.get(Yc);t===o.components[0]&&("enabledNonBlocking"!==e.initialNavigation&&void 0!==e.initialNavigation||r.initialNavigation(),n.setUpPreloading(),i.init(),r.resetRootComponentType(o.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(Wa))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}();function fv(t){return t.appInitializer.bind(t)}function pv(t){return t.bootstrapListener.bind(t)}var gv=new _i("Router Initializer"),mv=function(){function t(t){this.user=t.user,this.role=t.role,this.admin=t.admin}return Object.defineProperty(t.prototype,"isStaff",{get:function(){return"staff"===this.role||"admin"===this.role},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isAdmin",{get:function(){return"admin"===this.role},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isLogged",{get:function(){return null!=this.user},enumerable:!1,configurable:!0}),t}();function vv(t){return null!=t&&"false"!=="".concat(t)}function yv(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return _v(t)?Number(t):e}function _v(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function bv(t){return Array.isArray(t)?t:[t]}function xv(t){return null==t?"":"string"==typeof t?t:"".concat(t,"px")}function wv(t){return t instanceof Al?t.nativeElement:t}function kv(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,n=[];if(null!=t){var i,r=Array.isArray(t)?t:"".concat(t).split(e),o=v(r);try{for(o.s();!(i=o.n()).done;){var a=i.value,s="".concat(a).trim();s&&n.push(s)}}catch(l){o.e(l)}finally{o.f()}}return n}function Cv(t,e,n,i){return S(n)&&(i=n,n=void 0),i?Cv(t,e,n).pipe(q(function(t){return k(t)?i.apply(void 0,b(t)):i(t)})):new V(function(i){Sv(t,e,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,n)})}function Sv(t,e,n,i,r){var o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(t)){var a=t;t.addEventListener(e,n,r),o=function(){return a.removeEventListener(e,n,r)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(t)){var s=t;t.on(e,n),o=function(){return s.off(e,n)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(t)){var l=t;t.addListener(e,n),o=function(){return l.removeListener(e,n)}}else{if(!t||!t.length)throw new TypeError("Invalid event target");for(var u=0,c=t.length;u1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=t;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this}},{key:"requestAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return setInterval(t.flush.bind(t,this),n)}},{key:"recycleAsyncId",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}},{key:"execute",value:function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(t,e){var n=!1,i=void 0;try{this.work(t)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i}},{key:"_unsubscribe",value:function(){var t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}]),n}(function(t){u(n,t);var e=p(n);function n(t,i){return s(this,n),e.call(this)}return a(n,[{key:"schedule",value:function(t){return this}}]),n}(A)),Av=function(){var t=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t.now;s(this,t),this.SchedulerAction=e,this.now=n}return a(t,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return new this.SchedulerAction(this,t).schedule(n,e)}}]),t}();return t.now=function(){return Date.now()},t}(),Iv=function(t){u(n,t);var e=p(n);function n(t){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Av.now;return s(this,n),(i=e.call(this,t,function(){return n.delegate&&n.delegate!==d(i)?n.delegate.now():r()})).actions=[],i.active=!1,i.scheduled=void 0,i}return a(n,[{key:"schedule",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2?arguments[2]:void 0;return n.delegate&&n.delegate!==this?n.delegate.schedule(t,e,o):r(i(n.prototype),"schedule",this).call(this,t,e,o)}},{key:"flush",value:function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}}]),n}(Av),Ov=1,Tv=function(){return Promise.resolve()}(),Dv={};function Pv(t){return t in Dv&&(delete Dv[t],!0)}var Ev=function(t){var e=Ov++;return Dv[e]=!0,Tv.then(function(){return Pv(e)&&t()}),e},Rv=function(t){Pv(t)},Lv=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t,i)).scheduler=t,r.work=i,r}return a(n,[{key:"requestAsyncId",value:function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==o&&o>0?r(i(n.prototype),"requestAsyncId",this).call(this,t,e,o):(t.actions.push(this),t.scheduled||(t.scheduled=Ev(t.flush.bind(t,null))))}},{key:"recycleAsyncId",value:function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!==o&&o>0||null===o&&this.delay>0)return r(i(n.prototype),"recycleAsyncId",this).call(this,t,e,o);0===t.actions.length&&(Rv(e),t.scheduled=void 0)}}]),n}(Mv),Nv=new(function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"flush",value:function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,i=-1,r=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++i=0}function Wv(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0,i=-1;return Uv(e)?i=Number(e)<1?1:Number(e):Y(e)&&(n=e),Y(n)||(n=Bv),new V(function(e){var r=Uv(t)?t:+t-n.now();return n.schedule(Yv,r,{index:0,period:i,subscriber:e})})}function Yv(t){var e=t.index,n=t.period,i=t.subscriber;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function qv(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bv;return Hv(function(){return Wv(t,e)})}function Xv(t){return function(e){return e.lift(new Zv(t))}}var Zv=function(){function t(e){s(this,t),this.notifier=e}return a(t,[{key:"call",value:function(t,e){var n=new Kv(t),i=at(this.notifier,new rt(n));return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n}}]),t}(),Kv=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this,t)).seenValue=!1,i}return a(n,[{key:"notifyNext",value:function(){this.seenValue=!0,this.complete()}},{key:"notifyComplete",value:function(){}}]),n}(ot);function $v(t,e){return new V(e?function(n){return e.schedule(Qv,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function Qv(t){t.subscriber.error(t.error)}var Jv,ty=function(){var t=function(){function t(e,n,i){s(this,t),this.kind=e,this.value=n,this.error=i,this.hasValue="N"===e}return a(t,[{key:"observe",value:function(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()}}},{key:"do",value:function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}},{key:"accept",value:function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}},{key:"toObservable",value:function(){switch(this.kind){case"N":return Ed(this.value);case"E":return $v(this.error);case"C":return Tf()}throw new Error("unexpected notification kind value")}}],[{key:"createNext",value:function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}},{key:"createError",value:function(e){return new t("E",void 0,e)}},{key:"createComplete",value:function(){return t.completeNotification}}]),t}();return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();try{Jv="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(yH){Jv=!1}var ey,ny,iy,ry,oy=function(){var t=function t(e){s(this,t),this._platformId=e,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&&!Jv)&&"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)(Fi(lc))},t.\u0275prov=Pt({factory:function(){return new t(Fi(lc))},token:t,providedIn:"root"}),t}(),ay=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({}),t}(),sy=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function ly(){if(ey)return ey;if("object"!=typeof document||!document)return ey=new Set(sy);var t=document.createElement("input");return ey=new Set(sy.filter(function(e){return t.setAttribute("type",e),t.type===e}))}function uy(t){return function(){if(null==ny&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return ny=!0}}))}finally{ny=ny||!1}return ny}()?t:!!t.capture}function cy(){if(null==iy){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return iy=!1;if("scrollBehavior"in document.documentElement.style)iy=!0;else{var t=Element.prototype.scrollTo;iy=!!t&&!/\{\s*\[native code\]\s*\}/.test(t.toString())}}return iy}function hy(t){if(function(){if(null==ry){var t="undefined"!=typeof document?document.head:null;ry=!(!t||!t.createShadowRoot&&!t.attachShadow)}return ry}()){var e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}function dy(){for(var t="undefined"!=typeof document&&document?document.activeElement:null;t&&t.shadowRoot;){var e=t.shadowRoot.activeElement;if(e===t)break;t=e}return t}var fy=new _i("cdk-dir-doc",{providedIn:"root",factory:function(){return zi(oh)}}),py=function(){var t=function(){function t(e){if(s(this,t),this.value="ltr",this.change=new Nu,e){var n=(e.body?e.body.dir:null)||(e.documentElement?e.documentElement.dir:null);this.value="ltr"===n||"rtl"===n?n:"ltr"}}return a(t,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(fy,8))},t.\u0275prov=Pt({factory:function(){return new t(Fi(fy,8))},token:t,providedIn:"root"}),t}(),gy=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({}),t}(),my=function t(){s(this,t)};function vy(t){return t&&"function"==typeof t.connect}var yy=function(){function t(){s(this,t)}return a(t,[{key:"applyChanges",value:function(t,e,n,i,r){t.forEachOperation(function(t,i,o){var a,s;if(null==t.previousIndex){var l=n(t,i,o);a=e.createEmbeddedView(l.templateRef,l.context,l.index),s=1}else null==o?(e.remove(i),s=3):(a=e.get(i),e.move(a,o),s=2);r&&r({context:null==a?void 0:a.context,operation:s,record:t})})}},{key:"detach",value:function(){}}]),t}(),_y=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=arguments.length>1?arguments[1]:void 0,r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];s(this,t),this._multiple=n,this._emitChanges=r,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new U,i&&i.length&&(n?i.forEach(function(t){return e._markSelected(t)}):this._markSelected(i[0]),this._selectedToEmit.length=0)}return a(t,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new V(function(n){t._globalSubscription||t._addGlobalListener();var i=e>0?t._scrolled.pipe(qv(e)).subscribe(n):t._scrolled.subscribe(n);return t._scrolledCount++,function(){i.unsubscribe(),t._scrolledCount--,t._scrolledCount||t._removeGlobalListener()}}):Ed()}},{key:"ngOnDestroy",value:function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(e,n){return t.deregister(n)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Ld(function(t){return!t||n.indexOf(t)>-1}))}},{key:"getAncestorScrollContainers",value:function(t){var e=this,n=[];return this.scrollContainers.forEach(function(i,r){e._scrollableContainsElement(r,t)&&n.push(r)}),n}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(t,e){var n=wv(e),i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return Cv(t._getWindow().document,"scroll").subscribe(function(){return t._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(kc),Fi(oy),Fi(oh,8))},t.\u0275prov=Pt({factory:function(){return new t(Fi(kc),Fi(oy),Fi(oh,8))},token:t,providedIn:"root"}),t}(),wy=function(){var t=function(){function t(e,n,i){var r=this;s(this,t),this._platform=e,this._change=new U,this._changeListener=function(t){r._change.next(t)},this._document=i,n.runOutsideAngular(function(){if(e.isBrowser){var t=r._getWindow();t.addEventListener("resize",r._changeListener),t.addEventListener("orientationchange",r._changeListener)}r.change().subscribe(function(){return r._updateViewportSize()})})}return a(t,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}},{key:"getViewportRect",value:function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),n=e.width,i=e.height;return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+n,height:i,width:n}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=this._document,e=this._getWindow(),n=t.documentElement,i=n.getBoundingClientRect();return{top:-i.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-i.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}},{key:"change",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return t>0?this._change.pipe(qv(t)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(oy),Fi(kc),Fi(oh,8))},t.\u0275prov=Pt({factory:function(){return new t(Fi(oy),Fi(kc),Fi(oh,8))},token:t,providedIn:"root"}),t}(),ky=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({}),t}(),Cy=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[gy,ay,ky],gy,ky]}),t}(),Sy=function(){function t(){s(this,t)}return a(t,[{key:"attach",value:function(t){return this._attachedHost=t,t.attach(this)}},{key:"detach",value:function(){var t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(t){this._attachedHost=t}}]),t}(),My=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this)).component=t,a.viewContainerRef=i,a.injector=r,a.componentFactoryResolver=o,a}return n}(Sy),Ay=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this)).templateRef=t,o.viewContainerRef=i,o.context=r,o}return a(n,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=e,r(i(n.prototype),"attach",this).call(this,t)}},{key:"detach",value:function(){return this.context=void 0,r(i(n.prototype),"detach",this).call(this)}}]),n}(Sy),Iy=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this)).element=t instanceof Al?t.nativeElement:t,i}return n}(Sy),Oy=function(){function t(){s(this,t),this._isDisposed=!1,this.attachDomPortal=null}return a(t,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(t){return t instanceof My?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Ay?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof Iy?(this._attachedPortal=t,this.attachDomPortal(t)):void 0}},{key:"detach",value:function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}},{key:"dispose",value:function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}},{key:"setDisposeFn",value:function(t){this._disposeFn=t}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),t}(),Ty=function(t){u(n,t);var e=p(n);function n(t,o,a,l,u){var c,h;return s(this,n),(h=e.call(this)).outletElement=t,h._componentFactoryResolver=o,h._appRef=a,h._defaultInjector=l,h.attachDomPortal=function(t){var e=t.element,o=h._document.createComment("dom-portal");e.parentNode.insertBefore(o,e),h.outletElement.appendChild(e),h._attachedPortal=t,r((c=d(h),i(n.prototype)),"setDisposeFn",c).call(c,function(){o.parentNode&&o.parentNode.replaceChild(e,o)})},h._document=u,h}return a(n,[{key:"attachComponentPortal",value:function(t){var e,n=this,i=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);return t.viewContainerRef?(e=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(function(){return e.destroy()})):(e=i.create(t.injector||this._defaultInjector),this._appRef.attachView(e.hostView),this.setDisposeFn(function(){n._appRef.detachView(e.hostView),e.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=t,e}},{key:"attachTemplatePortal",value:function(t){var e=this,n=t.viewContainerRef,i=n.createEmbeddedView(t.templateRef,t.context);return i.rootNodes.forEach(function(t){return e.outletElement.appendChild(t)}),i.detectChanges(),this.setDisposeFn(function(){var t=n.indexOf(i);-1!==t&&n.remove(t)}),this._attachedPortal=t,i}},{key:"dispose",value:function(){r(i(n.prototype),"dispose",this).call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}},{key:"_getComponentRootNode",value:function(t){return t.hostView.rootNodes[0]}}]),n}(Oy),Dy=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){return s(this,n),e.call(this,t,i)}return n}(Ay);return t.\u0275fac=function(e){return new(e||t)(cs(ru),cs(cu))},t.\u0275dir=me({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[qa]}),t}(),Py=function(){var t=function(t){u(n,t);var e=p(n);function n(t,o,a){var l,u;return s(this,n),(u=e.call(this))._componentFactoryResolver=t,u._viewContainerRef=o,u._isInitialized=!1,u.attached=new Nu,u.attachDomPortal=function(t){var e=t.element,o=u._document.createComment("dom-portal");t.setAttachedHost(d(u)),e.parentNode.insertBefore(o,e),u._getRootNode().appendChild(e),u._attachedPortal=t,r((l=d(u),i(n.prototype)),"setDisposeFn",l).call(l,function(){o.parentNode&&o.parentNode.replaceChild(e,o)})},u._document=a,u}return a(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(t){(!this.hasAttached()||t||this._isInitialized)&&(this.hasAttached()&&r(i(n.prototype),"detach",this).call(this),t&&r(i(n.prototype),"attach",this).call(this,t),this._attachedPortal=t)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){r(i(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(t){t.setAttachedHost(this);var e=null!=t.viewContainerRef?t.viewContainerRef:this._viewContainerRef,o=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component),a=e.createComponent(o,e.length,t.injector||e.injector);return e!==this._viewContainerRef&&this._getRootNode().appendChild(a.hostView.rootNodes[0]),r(i(n.prototype),"setDisposeFn",this).call(this,function(){return a.destroy()}),this._attachedPortal=t,this._attachedRef=a,this.attached.emit(a),a}},{key:"attachTemplatePortal",value:function(t){var e=this;t.setAttachedHost(this);var o=this._viewContainerRef.createEmbeddedView(t.templateRef,t.context);return r(i(n.prototype),"setDisposeFn",this).call(this,function(){return e._viewContainerRef.clear()}),this._attachedPortal=t,this._attachedRef=o,this.attached.emit(o),o}},{key:"_getRootNode",value:function(){var t=this._viewContainerRef.element.nativeElement;return t.nodeType===t.ELEMENT_NODE?t:t.parentNode}}]),n}(Oy);return t.\u0275fac=function(e){return new(e||t)(cs(kl),cs(cu),cs(oh))},t.\u0275dir=me({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[qa]}),t}(),Ey=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({}),t}(),Ry=function(){function t(e,n){s(this,t),this.predicate=e,this.inclusive=n}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new Ly(t,this.predicate,this.inclusive))}}]),t}(),Ly=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,t)).predicate=i,o.inclusive=r,o.index=0,o}return a(n,[{key:"_next",value:function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(i){return void n.error(i)}this.nextOrComplete(t,e)}},{key:"nextOrComplete",value:function(t,e){var n=this.destination;Boolean(e)?n.next(t):(this.inclusive&&n.next(t),n.complete())}}]),n}(R),Ny=13,Fy=27,zy=32,Vy=35,By=36,Hy=37,jy=38,Gy=39,Uy=40;function Wy(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;ie.height||t.scrollWidth>e.width}}]),t}(),Xy=function(){function t(e,n,i,r){var o=this;s(this,t),this._scrollDispatcher=e,this._ngZone=n,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return a(t,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),Zy=function(){function t(){s(this,t)}return a(t,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),t}();function Ky(t,e){return e.some(function(e){return t.bottome.bottom||t.righte.right})}function $y(t,e){return e.some(function(e){return t.tope.bottom||t.lefte.right})}var Qy=function(){function t(e,n,i,r){s(this,t),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=i,this._config=r,this._scrollSubscription=null}return a(t,[{key:"attach",value:function(t){this._overlayRef=t}},{key:"enable",value:function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),n=t._viewportRuler.getViewportSize(),i=n.width,r=n.height;Ky(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),t}(),Jy=function(){var t=function t(e,n,i,r){var o=this;s(this,t),this._scrollDispatcher=e,this._viewportRuler=n,this._ngZone=i,this.noop=function(){return new Zy},this.close=function(t){return new Xy(o._scrollDispatcher,o._ngZone,o._viewportRuler,t)},this.block=function(){return new qy(o._viewportRuler,o._document)},this.reposition=function(t){return new Qy(o._scrollDispatcher,o._viewportRuler,o._ngZone,t)},this._document=r};return t.\u0275fac=function(e){return new(e||t)(Fi(xy),Fi(wy),Fi(kc),Fi(oh))},t.\u0275prov=Pt({factory:function(){return new t(Fi(xy),Fi(wy),Fi(kc),Fi(oh))},token:t,providedIn:"root"}),t}(),t_=function t(e){if(s(this,t),this.scrollStrategy=new Zy,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e)for(var n=0,i=Object.keys(e);n-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(oh))},t.\u0275prov=Pt({factory:function(){return new t(Fi(oh))},token:t,providedIn:"root"}),t}(),r_=function(){var t=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this,t))._keydownListener=function(t){for(var e=i._attachedOverlays,n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);break}},i}return a(n,[{key:"add",value:function(t){r(i(n.prototype),"add",this).call(this,t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}},{key:"detach",value:function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}]),n}(i_);return t.\u0275fac=function(e){return new(e||t)(Fi(oh))},t.\u0275prov=Pt({factory:function(){return new t(Fi(oh))},token:t,providedIn:"root"}),t}(),o_=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t))._platform=i,r._cursorStyleIsSet=!1,r._clickListener=function(t){for(var e=t.composedPath?t.composedPath()[0]:t.target,n=r._attachedOverlays.slice(),i=n.length-1;i>-1;i--){var o=n[i];if(!(o._outsidePointerEvents.observers.length<1)&&o.hasAttached()){if(o.overlayElement.contains(e))break;o._outsidePointerEvents.next(t)}}},r}return a(n,[{key:"add",value:function(t){if(r(i(n.prototype),"add",this).call(this,t),!this._isAttached){var e=this._document.body;e.addEventListener("click",this._clickListener,!0),e.addEventListener("auxclick",this._clickListener,!0),e.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=e.style.cursor,e.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var t=this._document.body;t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}]),n}(i_);return t.\u0275fac=function(e){return new(e||t)(Fi(oh),Fi(oy))},t.\u0275prov=Pt({factory:function(){return new t(Fi(oh),Fi(oy))},token:t,providedIn:"root"}),t}(),a_="undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha,s_=function(){var t=function(){function t(e,n){s(this,t),this._platform=n,this._document=e}return a(t,[{key:"ngOnDestroy",value:function(){var t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}},{key:"getContainerElement",value:function(){return this._containerElement||this._createContainer(),this._containerElement}},{key:"_createContainer",value:function(){var t="cdk-overlay-container";if(this._platform.isBrowser||a_)for(var e=this._document.querySelectorAll(".".concat(t,'[platform="server"], ')+".".concat(t,'[platform="test"]')),n=0;nf&&(f=m,d=g)}}catch(y){p.e(y)}finally{p.f()}return this._isPushed=!1,void this._applyPosition(d.position,d.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(t.position,t.originPoint);this._applyPosition(t.position,t.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&d_(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(u_),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}},{key:"withScrollableContainers",value:function(t){return this._scrollables=t,this}},{key:"withPositions",value:function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(t){return this._viewportMargin=t,this}},{key:"withFlexibleDimensions",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=t,this}},{key:"withGrowAfterOpen",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=t,this}},{key:"withPush",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=t,this}},{key:"withLockedPosition",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=t,this}},{key:"setOrigin",value:function(t){return this._origin=t,this}},{key:"withDefaultOffsetX",value:function(t){return this._offsetX=t,this}},{key:"withDefaultOffsetY",value:function(t){return this._offsetY=t,this}},{key:"withTransformOriginOn",value:function(t){return this._transformOriginSelector=t,this}},{key:"_getOriginPoint",value:function(t,e){var n;if("center"==e.originX)n=t.left+t.width/2;else{var i=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;n="start"==e.originX?i:r}return{x:n,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}}},{key:"_getOverlayPoint",value:function(t,e,n){var i;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,{x:t.x+i,y:t.y+("center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height)}}},{key:"_getOverlayFit",value:function(t,e,n,i){var r=p_(e),o=t.x,a=t.y,s=this._getOffset(i,"x"),l=this._getOffset(i,"y");s&&(o+=s),l&&(a+=l);var u=0-a,c=a+r.height-n.height,h=this._subtractOverflows(r.width,0-o,o+r.width-n.width),d=this._subtractOverflows(r.height,u,c),f=h*d;return{visibleArea:f,isCompletelyWithinViewport:r.width*r.height===f,fitsInViewportVertically:d===r.height,fitsInViewportHorizontally:h==r.width}}},{key:"_canFitWithFlexibleDimensions",value:function(t,e,n){if(this._hasFlexibleDimensions){var i=n.bottom-e.y,r=n.right-e.x,o=f_(this._overlayRef.getConfig().minHeight),a=f_(this._overlayRef.getConfig().minWidth);return(t.fitsInViewportVertically||null!=o&&o<=i)&&(t.fitsInViewportHorizontally||null!=a&&a<=r)}return!1}},{key:"_pushOverlayOnScreen",value:function(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var i,r,o=p_(e),a=this._viewportRect,s=Math.max(t.x+o.width-a.width,0),l=Math.max(t.y+o.height-a.height,0),u=Math.max(a.top-n.top-t.y,0),c=Math.max(a.left-n.left-t.x,0);return this._previousPushAmount={x:i=o.width<=a.width?c||-s:t.xh&&!this._isInitialRender&&!this._growAfterOpen&&(i=t.y-h/2)}if("end"===e.overlayX&&!u||"start"===e.overlayX&&u)s=l.width-t.x+this._viewportMargin,o=t.x-this._viewportMargin;else if("start"===e.overlayX&&!u||"end"===e.overlayX&&u)a=t.x,o=l.right-t.x;else{var d=Math.min(l.right-t.x+l.left,t.x),f=this._lastBoundingBoxSize.width;a=t.x-d,(o=2*d)>f&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.x-f/2)}return{top:i,left:a,bottom:r,right:s,width:o,height:n}}},{key:"_setBoundingBoxStyles",value:function(t,e){var n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right=i.maxHeight=i.maxWidth="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=xv(n.height),i.top=xv(n.top),i.bottom=xv(n.bottom),i.width=xv(n.width),i.left=xv(n.left),i.right=xv(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=xv(r)),o&&(i.maxWidth=xv(o))}this._lastBoundingBoxSize=n,d_(this._boundingBox.style,i)}},{key:"_resetBoundingBoxStyles",value:function(){d_(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){d_(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(t,e){var n={},i=this._hasExactPosition(),r=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(i){var a=this._viewportRuler.getViewportScrollPosition();d_(n,this._getExactOverlayY(e,t,a)),d_(n,this._getExactOverlayX(e,t,a))}else n.position="static";var s="",l=this._getOffset(e,"x"),u=this._getOffset(e,"y");l&&(s+="translateX(".concat(l,"px) ")),u&&(s+="translateY(".concat(u,"px)")),n.transform=s.trim(),o.maxHeight&&(i?n.maxHeight=xv(o.maxHeight):r&&(n.maxHeight="")),o.maxWidth&&(i?n.maxWidth=xv(o.maxWidth):r&&(n.maxWidth="")),d_(this._pane.style,n)}},{key:"_getExactOverlayY",value:function(t,e,n){var i={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===t.overlayY?i.bottom="".concat(this._document.documentElement.clientHeight-(r.y+this._overlayRect.height),"px"):i.top=xv(r.y),i}},{key:"_getExactOverlayX",value:function(t,e,n){var i={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?i.right="".concat(this._document.documentElement.clientWidth-(r.x+this._overlayRect.width),"px"):i.left=xv(r.x),i}},{key:"_getScrollVisibility",value:function(){var t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(function(t){return t.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:$y(t,n),isOriginOutsideView:Ky(t,n),isOverlayClipped:$y(e,n),isOverlayOutsideView:Ky(e,n)}}},{key:"_subtractOverflows",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}},{key:"left",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}},{key:"right",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}},{key:"width",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}},{key:"height",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}},{key:"centerHorizontally",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(t),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(t),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),i=n.width,r=n.height,o=n.maxWidth,a=n.maxHeight,s=!("100%"!==i&&"100vw"!==i||o&&"100%"!==o&&"100vw"!==o),l=!("100%"!==r&&"100vh"!==r||a&&"100%"!==a&&"100vh"!==a);t.position=this._cssPosition,t.marginLeft=s?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,s?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}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(m_),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}}]),t}(),y_=function(){var t=function(){function t(e,n,i,r){s(this,t),this._viewportRuler=e,this._document=n,this._platform=i,this._overlayContainer=r}return a(t,[{key:"global",value:function(){return new v_}},{key:"connectedTo",value:function(t,e,n){return new g_(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}},{key:"flexibleConnectedTo",value:function(t){return new h_(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(wy),Fi(oh),Fi(oy),Fi(s_))},t.\u0275prov=Pt({factory:function(){return new t(Fi(wy),Fi(oh),Fi(oy),Fi(s_))},token:t,providedIn:"root"}),t}(),__=0,b_=function(){var t=function(){function t(e,n,i,r,o,a,l,u,c,h,d){s(this,t),this.scrollStrategies=e,this._overlayContainer=n,this._componentFactoryResolver=i,this._positionBuilder=r,this._keyboardDispatcher=o,this._injector=a,this._ngZone=l,this._document=u,this._directionality=c,this._location=h,this._outsideClickDispatcher=d}return a(t,[{key:"create",value:function(t){var e=this._createHostElement(),n=this._createPaneElement(e),i=this._createPortalOutlet(n),r=new t_(t);return r.direction=r.direction||this._directionality.value,new l_(i,e,n,r,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(t){var e=this._document.createElement("div");return e.id="cdk-overlay-".concat(__++),e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}},{key:"_createHostElement",value:function(){var t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}},{key:"_createPortalOutlet",value:function(t){return this._appRef||(this._appRef=this._injector.get(Yc)),new Ty(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(Jy),Fi(s_),Fi(kl),Fi(y_),Fi(r_),Fi(Wa),Fi(kc),Fi(oh),Fi(py),Fi(bh),Fi(o_))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),x_=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],w_=new _i("cdk-connected-overlay-scroll-strategy"),k_=function(){var t=function t(e){s(this,t),this.elementRef=e};return t.\u0275fac=function(e){return new(e||t)(cs(Al))},t.\u0275dir=me({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),t}(),C_=function(){var t=function(){function t(e,n,i,r,o){s(this,t),this._overlay=e,this._dir=o,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=A.EMPTY,this._attachSubscription=A.EMPTY,this._detachSubscription=A.EMPTY,this._positionSubscription=A.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new Nu,this.positionChange=new Nu,this.attach=new Nu,this.detach=new Nu,this.overlayKeydown=new Nu,this.overlayOutsideClick=new Nu,this._templatePortal=new Ay(n,i),this._scrollStrategyFactory=r,this.scrollStrategy=this._scrollStrategyFactory()}return a(t,[{key:"offsetX",get:function(){return this._offsetX},set:function(t){this._offsetX=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(t){this._offsetY=t,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=vv(t)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(t){this._lockPosition=vv(t)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(t){this._flexibleDimensions=vv(t)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(t){this._growAfterOpen=vv(t)}},{key:"push",get:function(){return this._push},set:function(t){this._push=vv(t)}},{key:"overlayRef",get:function(){return this._overlayRef}},{key:"dir",get:function(){return this._dir?this._dir.value:"ltr"}},{key:"ngOnDestroy",value:function(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef&&this._overlayRef.dispose()}},{key:"ngOnChanges",value:function(t){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),t.origin&&this.open&&this._position.apply()),t.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var t=this;this.positions&&this.positions.length||(this.positions=x_);var e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(function(){return t.attach.emit()}),this._detachSubscription=e.detachments().subscribe(function(){return t.detach.emit()}),e.keydownEvents().subscribe(function(e){t.overlayKeydown.next(e),e.keyCode!==Fy||t.disableClose||Wy(e)||(e.preventDefault(),t._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(e){t.overlayOutsideClick.next(e)})}},{key:"_buildConfig",value:function(){var t=this._position=this.positionStrategy||this._createPositionStrategy(),e=new t_({direction:this._dir,positionStrategy:t,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(e.width=this.width),(this.height||0===this.height)&&(e.height=this.height),(this.minWidth||0===this.minWidth)&&(e.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(e.minHeight=this.minHeight),this.backdropClass&&(e.backdropClass=this.backdropClass),this.panelClass&&(e.panelClass=this.panelClass),e}},{key:"_updatePositionStrategy",value:function(t){var e=this,n=this.positions.map(function(t){return{originX:t.originX,originY:t.originY,overlayX:t.overlayX,overlayY:t.overlayY,offsetX:t.offsetX||e.offsetX,offsetY:t.offsetY||e.offsetY,panelClass:t.panelClass||void 0}});return t.setOrigin(this.origin.elementRef).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var t=this._overlay.position().flexibleConnectedTo(this.origin.elementRef);return this._updatePositionStrategy(t),t}},{key:"_attachOverlay",value:function(){var t=this;this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(function(e){t.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){return n.lift(new Ry(t,e))}}(function(){return t.positionChange.observers.length>0})).subscribe(function(e){t.positionChange.emit(e),0===t.positionChange.observers.length&&t._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(b_),cs(ru),cs(cu),cs(w_),cs(py,8))},t.\u0275dir=me({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"],positions:["cdkConnectedOverlayPositions","positions"],origin:["cdkConnectedOverlayOrigin","origin"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Te]}),t}(),S_={provide:w_,deps:[b_],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},M_=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[b_,S_],imports:[[gy,Ey,Cy],Cy]}),t}();function A_(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bv;return function(n){return n.lift(new I_(t,e))}}var I_=function(){function t(e,n){s(this,t),this.dueTime=e,this.scheduler=n}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new O_(t,this.dueTime,this.scheduler))}}]),t}(),O_=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,t)).dueTime=i,o.scheduler=r,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return a(n,[{key:"_next",value:function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(T_,this.dueTime,this))}},{key:"_complete",value:function(){this.debouncedNext(),this.destination.complete()}},{key:"debouncedNext",value:function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}},{key:"clearDebounce",value:function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}]),n}(R);function T_(t){t.debouncedNext()}function D_(t){return function(e){return e.lift(new P_(t))}}var P_=function(){function t(e){s(this,t),this.total=e}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new E_(t,this.total))}}]),t}(),E_=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t)).total=i,r.count=0,r}return a(n,[{key:"_next",value:function(t){++this.count>this.total&&this.destination.next(t)}}]),n}(R),R_=function(){var t=function(){function t(){s(this,t)}return a(t,[{key:"create",value:function(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Pt({factory:function(){return new t},token:t,providedIn:"root"}),t}(),L_=function(){var t=function(){function t(e){s(this,t),this._mutationObserverFactory=e,this._observedElements=new Map}return a(t,[{key:"ngOnDestroy",value:function(){var t=this;this._observedElements.forEach(function(e,n){return t._cleanupObserver(n)})}},{key:"observe",value:function(t){var e=this,n=wv(t);return new V(function(t){var i=e._observeElement(n).subscribe(t);return function(){i.unsubscribe(),e._unobserveElement(n)}})}},{key:"_observeElement",value:function(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{var e=new U,n=this._mutationObserverFactory.create(function(t){return e.next(t)});n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,count:1})}return this._observedElements.get(t).stream}},{key:"_unobserveElement",value:function(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}},{key:"_cleanupObserver",value:function(t){if(this._observedElements.has(t)){var e=this._observedElements.get(t),n=e.observer,i=e.stream;n&&n.disconnect(),i.complete(),this._observedElements.delete(t)}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(R_))},t.\u0275prov=Pt({factory:function(){return new t(Fi(R_))},token:t,providedIn:"root"}),t}(),N_=function(){var t=function(){function t(e,n,i){s(this,t),this._contentObserver=e,this._elementRef=n,this._ngZone=i,this.event=new Nu,this._disabled=!1,this._currentSubscription=null}return a(t,[{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=vv(t),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(t){this._debounce=yv(t),this._subscribe()}},{key:"ngAfterContentInit",value:function(){this._currentSubscription||this.disabled||this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var t=this;this._unsubscribe();var e=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){t._currentSubscription=(t.debounce?e.pipe(A_(t.debounce)):e).subscribe(t.event)})}},{key:"_unsubscribe",value:function(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(L_),cs(Al),cs(kc))},t.\u0275dir=me({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t}(),F_=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[R_]}),t}();function z_(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}var V_="cdk-describedby-message-container",B_="cdk-describedby-message",H_="cdk-describedby-host",j_=0,G_=new Map,U_=null,W_=function(){var t=function(){function t(e){s(this,t),this._document=e}return a(t,[{key:"describe",value:function(t,e,n){if(this._canBeDescribed(t,e)){var i=Y_(e,n);"string"!=typeof e?(q_(e),G_.set(i,{messageElement:e,referenceCount:0})):G_.has(i)||this._createMessageElement(e,n),this._isElementDescribedByMessage(t,i)||this._addMessageReference(t,i)}}},{key:"removeDescription",value:function(t,e,n){if(e&&this._isElementNode(t)){var i=Y_(e,n);if(this._isElementDescribedByMessage(t,i)&&this._removeMessageReference(t,i),"string"==typeof e){var r=G_.get(i);r&&0===r.referenceCount&&this._deleteMessageElement(i)}U_&&0===U_.childNodes.length&&this._deleteMessagesContainer()}}},{key:"ngOnDestroy",value:function(){for(var t=this._document.querySelectorAll("[".concat(H_,"]")),e=0;e-1&&e!==n._activeItemIndex&&(n._activeItemIndex=e)}})}return a(t,[{key:"skipPredicate",value:function(t){return this._skipPredicateFn=t,this}},{key:"withWrap",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=t,this}},{key:"withVerticalOrientation",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=t,this}},{key:"withHorizontalOrientation",value:function(t){return this._horizontal=t,this}},{key:"withAllowedModifierKeys",value:function(t){return this._allowedModifierKeys=t,this}},{key:"withTypeAhead",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(rp(function(e){return t._pressedLetters.push(e)}),A_(e),Ld(function(){return t._pressedLetters.length>0}),q(function(){return t._pressedLetters.join("")})).subscribe(function(e){for(var n=t._getItemsArray(),i=1;i0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=t,this}},{key:"setActiveItem",value:function(t){var e=this._activeItem;this.updateActiveItem(t),this._activeItem!==e&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(t){var e=this,n=t.keyCode,i=["altKey","ctrlKey","metaKey","shiftKey"].every(function(n){return!t[n]||e._allowedModifierKeys.indexOf(n)>-1});switch(n){case 9:return void this.tabOut.next();case Uy:if(this._vertical&&i){this.setNextItemActive();break}return;case jy:if(this._vertical&&i){this.setPreviousItemActive();break}return;case Gy:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case Hy:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case By:if(this._homeAndEnd&&i){this.setFirstItemActive();break}return;case Vy:if(this._homeAndEnd&&i){this.setLastItemActive();break}return;default:return void((i||Wy(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],t.preventDefault()}},{key:"activeItemIndex",get:function(){return this._activeItemIndex}},{key:"activeItem",get:function(){return this._activeItem}},{key:"isTyping",value:function(){return this._pressedLetters.length>0}},{key:"setFirstItemActive",value:function(){this._setActiveItemByIndex(0,1)}},{key:"setLastItemActive",value:function(){this._setActiveItemByIndex(this._items.length-1,-1)}},{key:"setNextItemActive",value:function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}},{key:"setPreviousItemActive",value:function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}},{key:"updateActiveItem",value:function(t){var e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n}},{key:"_setActiveItemByDelta",value:function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)}},{key:"_setActiveInWrapMode",value:function(t){for(var e=this._getItemsArray(),n=1;n<=e.length;n++){var i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}}},{key:"_setActiveInDefaultMode",value:function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)}},{key:"_setActiveItemByIndex",value:function(t,e){var n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}}},{key:"_getItemsArray",value:function(){return this._items instanceof zu?this._items.toArray():this._items}}]),t}(),Z_=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"setActiveItem",value:function(t){this.activeItem&&this.activeItem.setInactiveStyles(),r(i(n.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.setActiveStyles()}}]),n}(X_),K_=function(t){u(n,t);var e=p(n);function n(){var t;return s(this,n),(t=e.apply(this,arguments))._origin="program",t}return a(n,[{key:"setFocusOrigin",value:function(t){return this._origin=t,this}},{key:"setActiveItem",value:function(t){r(i(n.prototype),"setActiveItem",this).call(this,t),this.activeItem&&this.activeItem.focus(this._origin)}}]),n}(X_),$_=function(){var t=function(){function t(e){s(this,t),this._platform=e}return a(t,[{key:"isDisabled",value:function(t){return t.hasAttribute("disabled")}},{key:"isVisible",value:function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility}},{key:"isTabbable",value:function(t){if(!this._platform.isBrowser)return!1;var e,n=function(t){try{return t.frameElement}catch(yH){return null}}((e=t).ownerDocument&&e.ownerDocument.defaultView||window);if(n){if(-1===J_(n))return!1;if(!this.isVisible(n))return!1}var i=t.nodeName.toLowerCase(),r=J_(t);return t.hasAttribute("contenteditable")?-1!==r:"iframe"!==i&&"object"!==i&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){var e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&("audio"===i?!!t.hasAttribute("controls")&&-1!==r:"video"===i?-1!==r&&(null!==r||this._platform.FIREFOX||t.hasAttribute("controls")):t.tabIndex>=0)}},{key:"isFocusable",value:function(t,e){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||Q_(t))}(t)&&!this.isDisabled(t)&&((null==e?void 0:e.ignoreVisibility)||this.isVisible(t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(oy))},t.\u0275prov=Pt({factory:function(){return new t(Fi(oy))},token:t,providedIn:"root"}),t}();function Q_(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function J_(t){if(!Q_(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var tb=function(){function t(e,n,i,r){var o=this,a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];s(this,t),this._element=e,this._checker=n,this._ngZone=i,this._document=r,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,a||this.attachAnchors()}return a(t,[{key:"enabled",get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"destroy",value:function(){var t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}},{key:"focusInitialElementWhenReady",value:function(t){var e=this;return new Promise(function(n){e._executeOnStable(function(){return n(e.focusInitialElement(t))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(t){var e=this;return new Promise(function(n){e._executeOnStable(function(){return n(e.focusFirstTabbableElement(t))})})}},{key:"focusLastTabbableElementWhenReady",value:function(t){var e=this;return new Promise(function(n){e._executeOnStable(function(){return n(e.focusLastTabbableElement(t))})})}},{key:"_getRegionBoundary",value:function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-".concat(t,"], ")+"[cdkFocusRegion".concat(t,"], ")+"[cdk-focus-".concat(t,"]")),n=0;n=0;n--){var i=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(i)return i}return null}},{key:"_createAnchor",value:function(){var t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t}},{key:"_toggleAnchorTabIndex",value:function(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(t){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))}},{key:"_executeOnStable",value:function(t){this._ngZone.isStable?t():this._ngZone.onStable.pipe(Nf(1)).subscribe(t)}}]),t}(),eb=function(){var t=function(){function t(e,n,i){s(this,t),this._checker=e,this._ngZone=n,this._document=i}return a(t,[{key:"create",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new tb(t,this._checker,this._ngZone,this._document,e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi($_),Fi(kc),Fi(oh))},t.\u0275prov=Pt({factory:function(){return new t(Fi($_),Fi(kc),Fi(oh))},token:t,providedIn:"root"}),t}(),nb=function(){var t=function(){function t(e,n,i){s(this,t),this._elementRef=e,this._focusTrapFactory=n,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return a(t,[{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(t){this.focusTrap.enabled=vv(t)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(t){this._autoCapture=vv(t)}},{key:"ngOnDestroy",value:function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}},{key:"ngAfterContentInit",value:function(){this.focusTrap.attachAnchors(),this.autoCapture&&this._captureFocus()}},{key:"ngDoCheck",value:function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()}},{key:"ngOnChanges",value:function(t){var e=t.autoCapture;e&&!e.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}},{key:"_captureFocus",value:function(){this._previouslyFocusedElement=dy(),this.focusTrap.focusInitialElementWhenReady()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(eb),cs(oh))},t.\u0275dir=me({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[Te]}),t}();function ib(t){return 0===t.buttons}function rb(t){var e=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}"undefined"!=typeof Element&∈var ob=new _i("cdk-input-modality-detector-options"),ab={ignoreKeys:[18,17,224,91,16]},sb=uy({passive:!0,capture:!0}),lb=function(){var t=function(){function t(e,n,i,r){var o=this;s(this,t),this._platform=e,this._mostRecentTarget=null,this._modality=new yf(null),this._lastTouchMs=0,this._onKeydown=function(t){var e,n;(null===(n=null===(e=o._options)||void 0===e?void 0:e.ignoreKeys)||void 0===n?void 0:n.some(function(e){return e===t.keyCode}))||(o._modality.next("keyboard"),o._mostRecentTarget=ub(t))},this._onMousedown=function(t){Date.now()-o._lastTouchMs<650||(o._modality.next(ib(t)?"keyboard":"mouse"),o._mostRecentTarget=ub(t))},this._onTouchstart=function(t){rb(t)?o._modality.next("keyboard"):(o._lastTouchMs=Date.now(),o._modality.next("touch"),o._mostRecentTarget=ub(t))},this._options=Object.assign(Object.assign({},ab),r),this.modalityDetected=this._modality.pipe(D_(1)),this.modalityChanged=this.modalityDetected.pipe(Fv()),e.isBrowser&&n.runOutsideAngular(function(){i.addEventListener("keydown",o._onKeydown,sb),i.addEventListener("mousedown",o._onMousedown,sb),i.addEventListener("touchstart",o._onTouchstart,sb)})}return a(t,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,sb),document.removeEventListener("mousedown",this._onMousedown,sb),document.removeEventListener("touchstart",this._onTouchstart,sb))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(oy),Fi(kc),Fi(oh),Fi(ob,8))},t.\u0275prov=Pt({factory:function(){return new t(Fi(oy),Fi(kc),Fi(oh),Fi(ob,8))},token:t,providedIn:"root"}),t}();function ub(t){return t.composedPath?t.composedPath()[0]:t.target}var cb=new _i("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),hb=new _i("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),db=function(){var t=function(){function t(e,n,i,r){s(this,t),this._ngZone=n,this._defaultOptions=r,this._document=i,this._liveElement=e||this._createLiveElement()}return a(t,[{key:"announce",value:function(t){for(var e,n,i=this,r=this._defaultOptions,o=arguments.length,a=new Array(o>1?o-1:0),s=1;s1&&void 0!==arguments[1]&&arguments[1],n=wv(t);if(!this._platform.isBrowser||1!==n.nodeType)return Ed(null);var i=hy(n)||this._getDocument(),r=this._elementInfo.get(n);if(r)return e&&(r.checkChildren=!0),r.subject;var o={checkChildren:e,subject:new U,rootNode:i};return this._elementInfo.set(n,o),this._registerGlobalListeners(o),o.subject}},{key:"stopMonitoring",value:function(t){var e=wv(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}},{key:"focusVia",value:function(t,e,n){var i=this,r=wv(t);r===this._getDocument().activeElement?this._getClosestElementsInfo(r).forEach(function(t){var n=y(t,2);return i._originChanged(n[0],e,n[1])}):(this._setOrigin(e),"function"==typeof r.focus&&r.focus(n))}},{key:"ngOnDestroy",value:function(){var t=this;this._elementInfo.forEach(function(e,n){return t.stopMonitoring(n)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_toggleClass",value:function(t,e,n){n?t.classList.add(e):t.classList.remove(e)}},{key:"_getFocusOrigin",value:function(t){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(t)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(t){return 1===this._detectionMode||!!(null==t?void 0:t.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(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)}},{key:"_setOrigin",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){e._origin=t,e._originFromTouchInteraction="touch"===t&&n,0===e._detectionMode&&(clearTimeout(e._originTimeoutId),e._originTimeoutId=setTimeout(function(){return e._origin=null},e._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(t,e){var n=this._elementInfo.get(e),i=ub(t);n&&(n.checkChildren||e===i)&&this._originChanged(e,this._getFocusOrigin(i),n)}},{key:"_onBlur",value:function(t,e){var n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}},{key:"_emitOrigin",value:function(t,e){this._ngZone.run(function(){return t.next(e)})}},{key:"_registerGlobalListeners",value:function(t){var e=this;if(this._platform.isBrowser){var n=t.rootNode,i=this._rootNodeFocusListenerCount.get(n)||0;i||this._ngZone.runOutsideAngular(function(){n.addEventListener("focus",e._rootNodeFocusAndBlurListener,gb),n.addEventListener("blur",e._rootNodeFocusAndBlurListener,gb)}),this._rootNodeFocusListenerCount.set(n,i+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){e._getWindow().addEventListener("focus",e._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Xv(this._stopInputModalityDetector)).subscribe(function(t){e._setOrigin(t,!0)}))}}},{key:"_removeGlobalListeners",value:function(t){var e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){var n=this._rootNodeFocusListenerCount.get(e);n>1?this._rootNodeFocusListenerCount.set(e,n-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,gb),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,gb),this._rootNodeFocusListenerCount.delete(e))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(t,e,n){this._setClasses(t,e),this._emitOrigin(n.subject,e),this._lastFocusOrigin=e}},{key:"_getClosestElementsInfo",value:function(t){var e=[];return this._elementInfo.forEach(function(n,i){(i===t||n.checkChildren&&i.contains(t))&&e.push([i,n])}),e}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(kc),Fi(oy),Fi(lb),Fi(oh,8),Fi(pb,8))},t.\u0275prov=Pt({factory:function(){return new t(Fi(kc),Fi(oy),Fi(lb),Fi(oh,8),Fi(pb,8))},token:t,providedIn:"root"}),t}(),vb=function(){var t=function(){function t(e,n){s(this,t),this._elementRef=e,this._focusMonitor=n,this.cdkFocusChange=new Nu}return a(t,[{key:"ngAfterViewInit",value:function(){var t=this,e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,1===e.nodeType&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(e){return t.cdkFocusChange.emit(e)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(mb))},t.\u0275dir=me({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),t}(),yb="cdk-high-contrast-black-on-white",_b="cdk-high-contrast-white-on-black",bb="cdk-high-contrast-active",xb=function(){var t=function(){function t(e,n){s(this,t),this._platform=e,this._document=n}return a(t,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);var e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,i=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),i){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}},{key:"_applyBodyHighContrastModeCssClasses",value:function(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){var t=this._document.body.classList;t.remove(bb),t.remove(yb),t.remove(_b),this._hasCheckedHighContrastMode=!0;var e=this.getHighContrastMode();1===e?(t.add(bb),t.add(yb)):2===e&&(t.add(bb),t.add(_b))}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(oy),Fi(oh))},t.\u0275prov=Pt({factory:function(){return new t(Fi(oy),Fi(oh))},token:t,providedIn:"root"}),t}(),wb=function(){var t=function t(e){s(this,t),e._applyBodyHighContrastModeCssClasses()};return t.\u0275fac=function(e){return new(e||t)(Fi(xb))},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[ay,F_]]}),t}(),kb=new El("12.1.0"),Cb=function t(){s(this,t)},Sb=function t(){s(this,t)},Mb="*";function Ab(t,e){return{type:7,name:t,definitions:e,options:{}}}function Ib(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:e,timings:t}}function Ob(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:t,options:e}}function Tb(t){return{type:6,styles:t,offset:null}}function Db(t,e,n){return{type:0,name:t,styles:e,options:n}}function Pb(t){return{type:5,steps:t}}function Eb(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:t,animation:e,options:n}}function Rb(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:t}}function Lb(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:t,animation:e,options:n}}function Nb(t){Promise.resolve(null).then(t)}var Fb=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;s(this,t),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+n}return a(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"init",value:function(){}},{key:"play",value:function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}},{key:"triggerMicrotask",value:function(){var t=this;Nb(function(){return t._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"pause",value:function(){}},{key:"restart",value:function(){}},{key:"finish",value:function(){this._onFinish()}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(t){this._position=this.totalTime?t*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),zb=function(){function t(e){var n=this;s(this,t),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var i=0,r=0,o=0,a=this.players.length;0==a?Nb(function(){return n._onFinish()}):this.players.forEach(function(t){t.onDone(function(){++i==a&&n._onFinish()}),t.onDestroy(function(){++r==a&&n._onDestroy()}),t.onStart(function(){++o==a&&n._onStart()})}),this.totalTime=this.players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)}return a(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(t){return t.init()})}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})}},{key:"pause",value:function(){this.players.forEach(function(t){return t.pause()})}},{key:"restart",value:function(){this.players.forEach(function(t){return t.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(t){var e=t*this.totalTime;this.players.forEach(function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}},{key:"getPosition",value:function(){var t=this.players.reduce(function(t,e){return null===t||e.totalTime>t.totalTime?e:t},null);return null!=t?t.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),Vb="!";function Bb(){return"undefined"!=typeof window&&void 0!==window.document}function Hb(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function jb(t){switch(t.length){case 0:return new Fb;case 1:return t[0];default:return new zb(t)}}function Gb(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=[],s=[],l=-1,u=null;if(i.forEach(function(t){var n=t.offset,i=n==l,c=i&&u||{};Object.keys(t).forEach(function(n){var i=n,s=t[n];if("offset"!==n)switch(i=e.normalizePropertyName(i,a),s){case Vb:s=r[n];break;case Mb:s=o[n];break;default:s=e.normalizeStyleValue(n,i,s,a)}c[i]=s}),i||s.push(c),u=c,l=n}),a.length){var c="\n - ";throw new Error("Unable to animate due to the following errors:".concat(c).concat(a.join(c)))}return s}function Ub(t,e,n,i){switch(e){case"start":t.onStart(function(){return i(n&&Wb(n,"start",t))});break;case"done":t.onDone(function(){return i(n&&Wb(n,"done",t))});break;case"destroy":t.onDestroy(function(){return i(n&&Wb(n,"destroy",t))})}}function Wb(t,e,n){var i=n.totalTime,r=Yb(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==i?t.totalTime:i,!!n.disabled),o=t._data;return null!=o&&(r._data=o),r}function Yb(t,e,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,a=arguments.length>6?arguments[6]:void 0;return{element:t,triggerName:e,fromState:n,toState:i,phaseName:r,totalTime:o,disabled:!!a}}function qb(t,e,n){var i;return t instanceof Map?(i=t.get(e))||t.set(e,i=n):(i=t[e])||(i=t[e]=n),i}function Xb(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var Zb=function(t,e){return!1},Kb=function(t,e){return!1},$b=function(t,e,n){return[]},Qb=Hb();(Qb||"undefined"!=typeof Element)&&(Zb=Bb()?function(t,e){for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:function(t,e){return t.contains(e)},Kb=function(){if(Qb||Element.prototype.matches)return function(t,e){return t.matches(e)};var t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?function(t,n){return e.apply(t,[n])}:Kb}(),$b=function(t,e,n){var i=[];if(n)for(var r=t.querySelectorAll(e),o=0;o1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(t).forEach(function(n){e[n]=t[n]}),e}function yx(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)for(var i in t)n[i]=t[i];else vx(t,n);return n}function _x(t,e,n){return n?e+":"+n+";":""}function bx(t){for(var e="",n=0;n *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}var r=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'.concat(t,'" is not supported')),e;var o=r[1],a=r[2],s=r[3];e.push(Fx(o,s)),"<"!=a[0]||o==Rx&&s==Rx||e.push(Fx(s,o))}(t,r,i)}):r.push(n),r),animation:o,queryCount:e.queryCount,depCount:e.depCount,options:Ux(t.options)}}},{key:"visitSequence",value:function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return Px(n,t,e)}),options:Ux(t.options)}}},{key:"visitGroup",value:function(t,e){var n=this,i=e.currentTime,r=0,o=t.steps.map(function(t){e.currentTime=i;var o=Px(n,t,e);return r=Math.max(r,e.currentTime),o});return e.currentTime=r,{type:3,steps:o,options:Ux(t.options)}}},{key:"visitAnimate",value:function(t,e){var n,i=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return Wx(mx(t,e).duration,0,"");var i=t;if(i.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var r=Wx(0,0,"");return r.dynamic=!0,r.strValue=i,r}return Wx((n=n||mx(i,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;var r=t.styles?t.styles:Tb({});if(5==r.type)n=this.visitKeyframes(r,e);else{var o=t.styles,a=!1;if(!o){a=!0;var s={};i.easing&&(s.easing=i.easing),o=Tb(s)}e.currentTime+=i.duration+i.delay;var l=this.visitStyle(o,e);l.isEmptyStep=a,n=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}}},{key:"visitStyle",value:function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}},{key:"_makeStyleAst",value:function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==Mb?n.push(t):e.errors.push("The provided style string value ".concat(t," is not allowed.")):n.push(t)}):n.push(t.styles);var i=!1,r=null;return n.forEach(function(t){if(Gx(t)){var e=t,n=e.easing;if(n&&(r=n,delete e.easing),!i)for(var o in e)if(e[o].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:n,easing:r,offset:t.offset,containsDynamicStyles:i,options:null}}},{key:"_validateStyleAst",value:function(t,e){var n=this,i=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(i){if(n._driver.validateStyleProperty(i)){var a=e.collectedStyles[e.currentQuerySelector],s=a[i],l=!0;s&&(o!=r&&o>=s.startTime&&r<=s.endTime&&(e.errors.push('The CSS property "'.concat(i,'" that exists between the times of "').concat(s.startTime,'ms" and "').concat(s.endTime,'ms" is also being animated in a parallel animation between the times of "').concat(o,'ms" and "').concat(r,'ms"')),l=!1),o=s.startTime),l&&(a[i]={startTime:o,endTime:r}),e.options&&(u=e.errors,c=e.options.params||{},(h=Sx(t[i])).length&&h.forEach(function(t){c.hasOwnProperty(t)||u.push("Unable to resolve the local animation param ".concat(t," in the given list of values"))}))}else e.errors.push('The provided animation property "'.concat(i,'" is not a supported CSS property for animations'));var u,c,h})})}},{key:"visitKeyframes",value:function(t,e){var n=this,i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],a=!1,s=!1,l=0,u=t.steps.map(function(t){var i=n._makeStyleAst(t,e),u=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(Gx(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(Gx(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(i.styles),c=0;return null!=u&&(r++,c=i.offset=u),s=s||c<0||c>1,a=a||c0&&r0?r==d?1:h*r:o[r],s=a*g;e.currentTime=f+p.delay+s,p.duration=s,n._validateStyleAst(t,e),t.offset=a,i.styles.push(t)}),i}},{key:"visitReference",value:function(t,e){return{type:8,animation:Px(this,kx(t.animation),e),options:Ux(t.options)}}},{key:"visitAnimateChild",value:function(t,e){return e.depCount++,{type:9,options:Ux(t.options)}}},{key:"visitAnimateRef",value:function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:Ux(t.options)}}},{key:"visitQuery",value:function(t,e){var n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;var r=y(function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return t==zx});return e&&(t=t.replace(Vx,"")),[t=t.replace(/@\*/g,hx).replace(/@\w+/g,function(t){return".ng-trigger-"+t.substr(1)}).replace(/:animating/g,fx),e]}(t.selector),2),o=r[0],a=r[1];e.currentQuerySelector=n.length?n+" "+o:o,qb(e.collectedStyles,e.currentQuerySelector,{});var s=Px(this,kx(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:s,originalSelector:t.selector,options:Ux(t.options)}}},{key:"visitStagger",value:function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:mx(t.timings,e.errors,!0);return{type:12,animation:Px(this,kx(t.animation),e),timings:n,options:null}}}]),t}(),jx=function t(e){s(this,t),this.errors=e,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 Gx(t){return!Array.isArray(t)&&"object"==typeof t}function Ux(t){var e;return t?(t=vx(t)).params&&(t.params=(e=t.params)?vx(e):null):t={},t}function Wx(t,e,n){return{duration:t,delay:e,easing:n}}function Yx(t,e,n,i,r,o){var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,s=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var qx=function(){function t(){s(this,t),this._map=new Map}return a(t,[{key:"consume",value:function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e}},{key:"append",value:function(t,e){var n,i=this._map.get(t);i||this._map.set(t,i=[]),(n=i).push.apply(n,b(e))}},{key:"has",value:function(t){return this._map.has(t)}},{key:"clear",value:function(){this._map.clear()}}]),t}(),Xx=new RegExp(":enter","g"),Zx=new RegExp(":leave","g");function Kx(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},s=arguments.length>7?arguments[7]:void 0,l=arguments.length>8?arguments[8]:void 0,u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new $x).buildKeyframes(t,e,n,i,r,o,a,s,l,u)}var $x=function(){function t(){s(this,t)}return a(t,[{key:"buildKeyframes",value:function(t,e,n,i,r,o,a,s,l){var u=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];l=l||new qx;var c=new Jx(t,e,l,i,r,u,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),Px(this,n,c);var h=c.timelines.filter(function(t){return t.containsAnimation()});if(h.length&&Object.keys(a).length){var d=h[h.length-1];d.allowOnlyTimelineStyles()||d.setStyles([a],null,c.errors,s)}return h.length?h.map(function(t){return t.buildKeyframes()}):[Yx(e,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(t,e){}},{key:"visitState",value:function(t,e){}},{key:"visitTransition",value:function(t,e){}},{key:"visitAnimateChild",value:function(t,e){var n=e.subInstructions.consume(e.element);if(n){var i=e.createSubContext(t.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}},{key:"visitAnimateRef",value:function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}},{key:"_visitSubInstructions",value:function(t,e,n){var i=e.currentTimeline.currentTime,r=null!=n.duration?px(n.duration):null,o=null!=n.delay?px(n.delay):null;return 0!==r&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,r,o);i=Math.max(i,n.duration+n.delay)}),i}},{key:"visitReference",value:function(t,e){e.updateOptions(t.options,!0),Px(this,t.animation,e),e.previousNode=t}},{key:"visitSequence",value:function(t,e){var n=this,i=e.subContextCount,r=e,o=t.options;if(o&&(o.params||o.delay)&&((r=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Qx);var a=px(o.delay);r.delayNextStep(a)}t.steps.length&&(t.steps.forEach(function(t){return Px(n,t,r)}),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}},{key:"visitGroup",value:function(t,e){var n=this,i=[],r=e.currentTimeline.currentTime,o=t.options&&t.options.delay?px(t.options.delay):0;t.steps.forEach(function(a){var s=e.createSubContext(t.options);o&&s.delayNextStep(o),Px(n,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)}),i.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(r),e.previousNode=t}},{key:"_visitTiming",value:function(t,e){if(t.dynamic){var n=t.strValue;return mx(e.params?Mx(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}},{key:"visitAnimate",value:function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());var r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}},{key:"visitStyle",value:function(t,e){var n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t}},{key:"visitKeyframes",value:function(t,e){var n=e.currentAnimateTimings,i=e.currentTimeline.duration,r=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach(function(t){o.forwardTime((t.offset||0)*r),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(i+r),e.previousNode=t}},{key:"visitQuery",value:function(t,e){var n=this,i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?px(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Qx);var a=i,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;var l=null;s.forEach(function(i,r){e.currentQueryIndex=r;var s=e.createSubContext(t.options,i);o&&s.delayNextStep(o),i===e.element&&(l=s.currentTimeline),Px(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}},{key:"visitStagger",value:function(t,e){var n=e.parentContext,i=e.currentTimeline,r=t.timings,o=Math.abs(r.duration),a=o*(e.currentQueryTotal-1),s=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var l=e.currentTimeline;s&&l.delayNextStep(s);var u=l.currentTime;Px(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-u+(i.startTime-n.currentTimeline.startTime)}}]),t}(),Qx={},Jx=function(){function t(e,n,i,r,o,a,l,u){s(this,t),this._driver=e,this.element=n,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=o,this.errors=a,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Qx,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=u||new tw(this._driver,n,0),l.push(this.currentTimeline)}return a(t,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(t,e){var n=this;if(t){var i=t,r=this.options;null!=i.duration&&(r.duration=px(i.duration)),null!=i.delay&&(r.delay=px(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(t){e&&a.hasOwnProperty(t)||(a[t]=Mx(o[t],a,n.errors))})}}}},{key:"_copyOptions",value:function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(t){n[t]=e[t]})}}return t}},{key:"createSubContext",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0,r=n||this.element,o=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o}},{key:"transformIntoNewTimeline",value:function(t){return this.previousNode=Qx,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(t,e,n){var i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},r=new ew(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(r),i}},{key:"incrementTime",value:function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}},{key:"delayNextStep",value:function(t){t>0&&this.currentTimeline.delayNextStep(t)}},{key:"invokeQuery",value:function(t,e,n,i,r,o){var a=[];if(i&&a.push(this.element),t.length>0){t=(t=t.replace(Xx,"."+this._enterClassName)).replace(Zx,"."+this._leaveClassName);var s=this._driver.query(this.element,t,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,b(s))}return r||0!=a.length||o.push('`query("'.concat(e,'")` returned zero elements. (Use `query("').concat(e,'", { optional: true })` if you wish to allow this.)')),a}}]),t}(),tw=function(){function t(e,n,i,r){s(this,t),this._driver=e,this.element=n,this.startTime=i,this._elementTimelineStylesLookup=r,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(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return a(t,[{key:"containsAnimation",value:function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}},{key:"getCurrentStyleProperties",value:function(){return Object.keys(this._currentKeyframe)}},{key:"currentTime",get:function(){return this.startTime+this.duration}},{key:"delayNextStep",value:function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}},{key:"fork",value:function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)}},{key:"_loadKeyframe",value:function(){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))}},{key:"forwardFrame",value:function(){this.duration+=1,this._loadKeyframe()}},{key:"forwardTime",value:function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}},{key:"_updateStyle",value:function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||Mb,e._currentKeyframe[t]=Mb}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(t,e,n,i){var r=this;e&&(this._previousKeyframe.easing=e);var o=i&&i.params||{},a=function(t,e){var n,i={};return t.forEach(function(t){"*"===t?(n=n||Object.keys(e)).forEach(function(t){i[t]=Mb}):yx(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(a).forEach(function(t){var e=Mx(a[t],o,n);r._pendingStyles[t]=e,r._localTimelineStyles.hasOwnProperty(t)||(r._backFill[t]=r._globalTimelineStyles.hasOwnProperty(t)?r._globalTimelineStyles[t]:Mb),r._updateStyle(t,e)})}},{key:"applyStylesToKeyframe",value:function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){t._currentKeyframe[n]=e[n]}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))}},{key:"snapshotCurrentStyles",value:function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t}},{key:"mergeTimelineCollectedStyles",value:function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var i=e._styleSummary[n],r=t._styleSummary[n];(!i||r.time>i.time)&&e._updateStyle(n,r.value)})}},{key:"buildKeyframes",value:function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach(function(o,a){var s=yx(o,!0);Object.keys(s).forEach(function(t){var i=s[t];i==Vb?e.add(t):i==Mb&&n.add(t)}),i||(s.offset=a/t.duration),r.push(s)});var o=e.size?Ax(e.values()):[],a=n.size?Ax(n.values()):[];if(i){var s=r[0],l=vx(s);s.offset=0,l.offset=1,r=[s,l]}return Yx(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)}}]),t}(),ew=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l){var u,c=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return s(this,n),(u=e.call(this,t,i,l.delay)).element=i,u.keyframes=r,u.preStyleProps=o,u.postStyleProps=a,u._stretchStartingKeyframe=c,u.timings={duration:l.duration,delay:l.delay,easing:l.easing},u}return a(n,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var t=this.keyframes,e=this.timings,n=e.delay,i=e.duration,r=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=i+n,s=n/a,l=yx(t[0],!1);l.offset=0,o.push(l);var u=yx(t[0],!1);u.offset=nw(s),o.push(u);for(var c=t.length-1,h=1;h<=c;h++){var d=yx(t[h],!1);d.offset=nw((n+d.offset*i)/a),o.push(d)}i=a,n=0,r="",t=o}return Yx(this.element,t,this.preStyleProps,this.postStyleProps,i,n,r,!0)}}]),n}(tw);function nw(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=Math.pow(10,e-1);return Math.round(t*n)/n}var iw=function t(){s(this,t)},rw=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"normalizePropertyName",value:function(t,e){return Ox(t)}},{key:"normalizeStyleValue",value:function(t,e,n,i){var r="",o=n.toString().trim();if(ow[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for ".concat(t,":").concat(n))}return o+r}}]),n}(iw),ow=function(){return function(t){var e={};return t.forEach(function(t){return 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 aw(t,e,n,i,r,o,a,s,l,u,c,h,d){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:h,errors:d}}var sw={},lw=function(){function t(e,n,i){s(this,t),this._triggerName=e,this.ast=n,this._stateStyles=i}return a(t,[{key:"match",value:function(t,e,n,i){return function(t,e,n,i,r){return t.some(function(t){return t(e,n,i,r)})}(this.ast.matchers,t,e,n,i)}},{key:"buildStyles",value:function(t,e,n){var i=this._stateStyles["*"],r=this._stateStyles[t],o=i?i.buildStyles(e,n):{};return r?r.buildStyles(e,n):o}},{key:"build",value:function(t,e,n,i,r,o,a,s,l,u){var c=[],h=this.ast.options&&this.ast.options.params||sw,d=this.buildStyles(n,a&&a.params||sw,c),f=s&&s.params||sw,p=this.buildStyles(i,f,c),g=new Set,m=new Map,v=new Map,y="void"===i,_={params:Object.assign(Object.assign({},h),f)},b=u?[]:Kx(t,e,this.ast.animation,r,o,d,p,_,l,c),x=0;if(b.forEach(function(t){x=Math.max(t.duration+t.delay,x)}),c.length)return aw(e,this._triggerName,n,i,y,d,p,[],[],m,v,x,c);b.forEach(function(t){var n=t.element,i=qb(m,n,{});t.preStyleProps.forEach(function(t){return i[t]=!0});var r=qb(v,n,{});t.postStyleProps.forEach(function(t){return r[t]=!0}),n!==e&&g.add(n)});var w=Ax(g.values());return aw(e,this._triggerName,n,i,y,d,p,b,w,m,v,x)}}]),t}(),uw=function(){function t(e,n){s(this,t),this.styles=e,this.defaultParams=n}return a(t,[{key:"buildStyles",value:function(t,e){var n={},i=vx(this.defaultParams);return Object.keys(t).forEach(function(e){var n=t[e];null!=n&&(i[e]=n)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var r=t;Object.keys(r).forEach(function(t){var o=r[t];o.length>1&&(o=Mx(o,i,e)),n[t]=o})}}),n}}]),t}(),cw=function(){function t(e,n){var i=this;s(this,t),this.name=e,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(t){i.states[t.name]=new uw(t.style,t.options&&t.options.params||{})}),hw(this.states,"true","1"),hw(this.states,"false","0"),n.transitions.forEach(function(t){i.transitionFactories.push(new lw(e,t,i.states))}),this.fallbackTransition=new lw(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return a(t,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(t,e,n,i){return this.transitionFactories.find(function(r){return r.match(t,e,n,i)})||null}},{key:"matchStyles",value:function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}]),t}();function hw(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var dw=new qx,fw=function(){function t(e,n,i){s(this,t),this.bodyNode=e,this._driver=n,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}return a(t,[{key:"register",value:function(t,e){var n=[],i=Bx(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: ".concat(n.join("\n")));this._animations[t]=i}},{key:"_buildPlayer",value:function(t,e,n){var i=t.element,r=Gb(this._driver,this._normalizer,i,t.keyframes,e,n);return this._driver.animate(i,r,t.duration,t.delay,t.easing,[],!0)}},{key:"create",value:function(t,e){var n,i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=[],a=this._animations[t],s=new Map;if(a?(n=Kx(this._driver,e,a,lx,ux,{},{},r,dw,o)).forEach(function(t){var e=qb(s,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),n=[]),o.length)throw new Error("Unable to create the animation due to the following errors: ".concat(o.join("\n")));s.forEach(function(t,e){Object.keys(t).forEach(function(n){t[n]=i._driver.computeStyle(e,n,Mb)})});var l=n.map(function(t){var e=s.get(t.element);return i._buildPlayer(t,{},e)}),u=jb(l);return this._playersById[t]=u,u.onDestroy(function(){return i.destroy(t)}),this.players.push(u),u}},{key:"destroy",value:function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}},{key:"_getPlayer",value:function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by ".concat(t));return e}},{key:"listen",value:function(t,e,n,i){var r=Yb(e,"","","");return Ub(this._getPlayer(t),n,r,i),function(){}}},{key:"command",value:function(t,e,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(t);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,i[0]||{});else this.register(t,i[0])}}]),t}(),pw="ng-animate-queued",gw="ng-animate-disabled",mw=".ng-animate-disabled",vw="ng-star-inserted",yw=[],_w={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},bw={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},xw=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";s(this,t),this.namespaceId=n;var i=e&&e.hasOwnProperty("value"),r=i?e.value:e;if(this.value=Aw(r),i){var o=vx(e);delete o.value,this.options=o}else this.options={};this.options.params||(this.options.params={})}return a(t,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(t){null==n[t]&&(n[t]=e[t])})}}}]),t}(),ww="void",kw=new xw(ww),Cw=function(){function t(e,n,i){s(this,t),this.id=e,this.hostElement=n,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Pw(n,this._hostClassName)}return a(t,[{key:"listen",value:function(t,e,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'.concat(n,'" because the animation trigger "').concat(e,"\" doesn't exist!"));if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'.concat(e,'" because the provided event is undefined!'));if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'.concat(n,'" for the animation trigger "').concat(e,'" is not supported!'));var a=qb(this._elementListeners,t,[]),s={name:e,phase:n,callback:i};a.push(s);var l=qb(this._engine.statesByElement,t,{});return l.hasOwnProperty(e)||(Pw(t,cx),Pw(t,"ng-trigger-"+e),l[e]=kw),function(){o._engine.afterFlush(function(){var t=a.indexOf(s);t>=0&&a.splice(t,1),o._triggers[e]||delete l[e]})}}},{key:"register",value:function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}},{key:"_getTrigger",value:function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'.concat(t,'" has not been registered!'));return e}},{key:"trigger",value:function(t,e,n){var i=this,r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=this._getTrigger(e),a=new Mw(this.id,e,t),s=this._engine.statesByElement.get(t);s||(Pw(t,cx),Pw(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var l=s[e],u=new xw(n,this.id),c=n&&n.hasOwnProperty("value");!c&&l&&u.absorbOptions(l.options),s[e]=u,l||(l=kw);var h=u.value===ww;if(h||l.value!==u.value){var d=qb(this._engine.playersByElement,t,[]);d.forEach(function(t){t.namespaceId==i.id&&t.triggerName==e&&t.queued&&t.destroy()});var f=o.matchTransition(l.value,u.value,t,u.params),p=!1;if(!f){if(!r)return;f=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:l,toState:u,player:a,isFallbackTransition:p}),p||(Pw(t,pw),a.onStart(function(){Ew(t,pw)})),a.onDone(function(){var e=i.players.indexOf(a);e>=0&&i.players.splice(e,1);var n=i._engine.playersByElement.get(t);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),d.push(a),a}if(!Nw(l.params,u.params)){var g=[],m=o.matchStyles(l.value,l.params,g),v=o.matchStyles(u.value,u.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(function(){wx(t,m),xx(t,v)})}}},{key:"deregister",value:function(t){var e=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(e,n){delete e[t]}),this._elementListeners.forEach(function(n,i){e._elementListeners.set(i,n.filter(function(e){return e.name!=t}))})}},{key:"clearElementCache",value:function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var e=this._engine.playersByElement.get(t);e&&(e.forEach(function(t){return t.destroy()}),this._engine.playersByElement.delete(t))}},{key:"_signalRemovalForInnerTriggers",value:function(t,e){var n=this,i=this._engine.driver.query(t,hx,!0);i.forEach(function(t){if(!t.__ng_removed){var i=n._engine.fetchNamespacesByElement(t);i.size?i.forEach(function(n){return n.triggerLeaveAnimation(t,e,!1,!0)}):n.clearElementCache(t)}}),this._engine.afterFlushAnimationsDone(function(){return i.forEach(function(t){return n.clearElementCache(t)})})}},{key:"triggerLeaveAnimation",value:function(t,e,n,i){var r=this,o=this._engine.statesByElement.get(t);if(o){var a=[];if(Object.keys(o).forEach(function(e){if(r._triggers[e]){var n=r.trigger(t,e,ww,i);n&&a.push(n)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&jb(a).onDone(function(){return r._engine.processLeaveNode(t)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(t){var e=this,n=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(n&&i){var r=new Set;n.forEach(function(n){var o=n.name;if(!r.has(o)){r.add(o);var a=e._triggers[o].fallbackTransition,s=i[o]||kw,l=new xw(ww),u=new Mw(e.id,o,t);e._engine.totalQueuedPlayers++,e._queue.push({element:t,triggerName:o,transition:a,fromState:s,toState:l,player:u,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(t,e){var n=this,i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),!this.triggerLeaveAnimation(t,e,!0)){var r=!1;if(i.totalAnimations){var o=i.players.length?i.playersByQueriedElement.get(t):[];if(o&&o.length)r=!0;else for(var a=t;a=a.parentNode;)if(i.statesByElement.get(a)){r=!0;break}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{var s=t.__ng_removed;s&&s!==_w||(i.afterFlush(function(){return n.clearElementCache(t)}),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}}},{key:"insertNode",value:function(t,e){Pw(t,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(t){var e=this,n=[];return this._queue.forEach(function(i){var r=i.player;if(!r.destroyed){var o=i.element,a=e._elementListeners.get(o);a&&a.forEach(function(e){if(e.name==i.triggerName){var n=Yb(o,i.triggerName,i.fromState.value,i.toState.value);n._data=t,Ub(i.player,e.phase,n,e.callback)}}),r.markedForDestroy?e._engine.afterFlush(function(){r.destroy()}):n.push(i)}}),this._queue=[],n.sort(function(t,n){var i=t.transition.ast.depCount,r=n.transition.ast.depCount;return 0==i||0==r?i-r:e._engine.driver.containsElement(t.element,n.element)?1:-1})}},{key:"destroy",value:function(t){this.players.forEach(function(t){return t.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,t)}},{key:"elementContainsData",value:function(t){var e=!1;return this._elementListeners.has(t)&&(e=!0),!!this._queue.find(function(e){return e.element===t})||e}}]),t}(),Sw=function(){function t(e,n,i){s(this,t),this.bodyNode=e,this.driver=n,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=function(t,e){}}return a(t,[{key:"_onRemovalComplete",value:function(t,e){this.onRemovalComplete(t,e)}},{key:"queuedPlayers",get:function(){var t=[];return this._namespaceList.forEach(function(e){e.players.forEach(function(e){e.queued&&t.push(e)})}),t}},{key:"createNamespace",value:function(t,e){var n=new Cw(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}},{key:"_balanceNamespaceList",value:function(t,e){var n=this._namespaceList.length-1;if(n>=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}},{key:"register",value:function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}},{key:"registerTrigger",value:function(t,e,n){var i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++}},{key:"destroy",value:function(t,e){var n=this;if(t){var i=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(i);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(e)})}}},{key:"_fetchNamespace",value:function(t){return this._namespaceLookup[t]}},{key:"fetchNamespacesByElement",value:function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var i=Object.keys(n),r=0;r=0&&this.collectedLeaveElements.splice(o,1)}if(t){var a=this._fetchNamespace(t);a&&a.insertNode(e,n)}i&&this.collectEnterElement(e)}}},{key:"collectEnterElement",value:function(t){this.collectedEnterElements.push(t)}},{key:"markElementAsDisabled",value:function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Pw(t,gw)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Ew(t,gw))}},{key:"removeNode",value:function(t,e,n,i){if(Iw(e)){var r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){var o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,i)}}else this._onRemovalComplete(e,i)}},{key:"markElementAsRemoved",value:function(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}}},{key:"listen",value:function(t,e,n,i,r){return Iw(e)?this._fetchNamespace(t).listen(e,n,i,r):function(){}}},{key:"_buildInstruction",value:function(t,e,n,i,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,r)}},{key:"destroyInnerAnimations",value:function(t){var e=this,n=this.driver.query(t,hx,!0);n.forEach(function(t){return e.destroyActiveAnimationsForElement(t)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,fx,!0)).forEach(function(t){return e.finishActiveQueriedAnimationOnElement(t)})}},{key:"destroyActiveAnimationsForElement",value:function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(t){return t.finish()})}},{key:"whenRenderingDone",value:function(){var t=this;return new Promise(function(e){if(t.players.length)return jb(t.players).onDone(function(){return e()});e()})}},{key:"processLeaveNode",value:function(t){var e=this,n=t.__ng_removed;if(n&&n.setForRemoval){if(t.__ng_removed=_w,n.namespaceId){this.destroyInnerAnimations(t);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,mw)&&this.markElementAsDisabled(t,!1),this.driver.query(t,mw,!0).forEach(function(t){e.markElementAsDisabled(t,!1)})}},{key:"flush",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(e,n){return t._balanceNamespaceList(e,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;A--)this._namespaceList[A].drainQueuedTransitions(e).forEach(function(t){var e=t.player,o=t.element;if(S.push(e),n.collectedEnterElements.length){var c=o.__ng_removed;if(c&&c.setForMove)return void e.destroy()}var d=!h||!n.driver.containsElement(h,o),f=k.get(o),g=p.get(o),m=n._buildInstruction(t,i,g,f,d);if(m.errors&&m.errors.length)M.push(m);else{if(d)return e.onStart(function(){return wx(o,m.fromStyles)}),e.onDestroy(function(){return xx(o,m.toStyles)}),void r.push(e);if(t.isFallbackTransition)return e.onStart(function(){return wx(o,m.fromStyles)}),e.onDestroy(function(){return xx(o,m.toStyles)}),void r.push(e);m.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),i.append(o,m.timelines),a.push({instruction:m,player:e,element:o}),m.queriedElements.forEach(function(t){return qb(s,t,[]).push(e)}),m.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var i=l.get(e);i||l.set(e,i=new Set),n.forEach(function(t){return i.add(t)})}}),m.postStyleProps.forEach(function(t,e){var n=Object.keys(t),i=u.get(e);i||u.set(e,i=new Set),n.forEach(function(t){return i.add(t)})})}});if(M.length){var I=[];M.forEach(function(t){I.push("@".concat(t.triggerName," has failed due to:\n")),t.errors.forEach(function(t){return I.push("- ".concat(t,"\n"))})}),S.forEach(function(t){return t.destroy()}),this.reportError(I)}var O=new Map,T=new Map;a.forEach(function(t){var e=t.element;i.has(e)&&(T.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,O))}),r.forEach(function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){qb(O,e,[]).push(t),t.destroy()})});var D=m.filter(function(t){return Fw(t,l,u)}),P=new Map;Tw(P,this.driver,y,u,Mb).forEach(function(t){Fw(t,l,u)&&D.push(t)});var E=new Map;f.forEach(function(t,e){Tw(E,n.driver,new Set(t),l,Vb)}),D.forEach(function(t){var e=P.get(t),n=E.get(t);P.set(t,Object.assign(Object.assign({},e),n))});var R=[],L=[],N={};a.forEach(function(t){var e=t.element,a=t.player,s=t.instruction;if(i.has(e)){if(c.has(e))return a.onDestroy(function(){return xx(e,s.toStyles)}),a.disabled=!0,a.overrideTotalTime(s.totalTime),void r.push(a);var l=N;if(T.size>1){for(var u=e,h=[];u=u.parentNode;){var d=T.get(u);if(d){l=d;break}h.push(u)}h.forEach(function(t){return T.set(t,l)})}var f=n._buildAnimation(a.namespaceId,s,O,o,E,P);if(a.setRealPlayer(f),l===N)R.push(a);else{var p=n.playersByElement.get(l);p&&p.length&&(a.parentPlayer=jb(p)),r.push(a)}}else wx(e,s.fromStyles),a.onDestroy(function(){return xx(e,s.toStyles)}),L.push(a),c.has(e)&&r.push(a)}),L.forEach(function(t){var e=o.get(t.element);if(e&&e.length){var n=jb(e);t.setRealPlayer(n)}}),r.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var F=0;F0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Fb(t.duration,t.delay)}}]),t}(),Mw=function(){function t(e,n,i){s(this,t),this.namespaceId=e,this.triggerName=n,this.element=i,this._player=new Fb,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return a(t,[{key:"setRealPlayer",value:function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(e){return Ub(t,n,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(t){this.totalTime=t}},{key:"syncPlayerEvents",value:function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart(function(){return n.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})}},{key:"_queueEvent",value:function(t,e){qb(this._queuedCallbacks,t,[]).push(e)}},{key:"onDone",value:function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}},{key:"onStart",value:function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}},{key:"onDestroy",value:function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}},{key:"init",value:function(){this._player.init()}},{key:"hasStarted",value:function(){return!this.queued&&this._player.hasStarted()}},{key:"play",value:function(){!this.queued&&this._player.play()}},{key:"pause",value:function(){!this.queued&&this._player.pause()}},{key:"restart",value:function(){!this.queued&&this._player.restart()}},{key:"finish",value:function(){this._player.finish()}},{key:"destroy",value:function(){this.destroyed=!0,this._player.destroy()}},{key:"reset",value:function(){!this.queued&&this._player.reset()}},{key:"setPosition",value:function(t){this.queued||this._player.setPosition(t)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)}}]),t}();function Aw(t){return null!=t?t:null}function Iw(t){return t&&1===t.nodeType}function Ow(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function Tw(t,e,n,i,r){var o=[];n.forEach(function(t){return o.push(Ow(t))});var a=[];i.forEach(function(n,i){var o={};n.forEach(function(t){var n=o[t]=e.computeStyle(i,t,r);n&&0!=n.length||(i.__ng_removed=bw,a.push(i))}),t.set(i,o)});var s=0;return n.forEach(function(t){return Ow(t,o[s++])}),a}function Dw(t,e){var n=new Map;if(t.forEach(function(t){return n.set(t,[])}),0==e.length)return n;var i=new Set(e),r=new Map;function o(t){if(!t)return 1;var e=r.get(t);if(e)return e;var a=t.parentNode;return e=n.has(a)?a:i.has(a)?1:o(a),r.set(t,e),e}return e.forEach(function(t){var e=o(t);1!==e&&n.get(e).push(t)}),n}function Pw(t,e){if(t.classList)t.classList.add(e);else{var n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function Ew(t,e){if(t.classList)t.classList.remove(e);else{var n=t.$$classes;n&&delete n[e]}}function Rw(t,e,n){jb(n).onDone(function(){return t.processLeaveNode(e)})}function Lw(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(t)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),t}();function Vw(t,e){var n=null,i=null;return Array.isArray(e)&&e.length?(n=Hw(e[0]),e.length>1&&(i=Hw(e[e.length-1]))):e&&(n=Hw(e)),n||i?new Bw(t,n,i):null}var Bw=function(){var t=function(){function t(e,n,i){s(this,t),this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;var r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}return a(t,[{key:"start",value:function(){this._state<1&&(this._startStyles&&xx(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(xx(this._element,this._initialStyles),this._endStyles&&(xx(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(wx(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(wx(this._element,this._endStyles),this._endStyles=null),xx(this._element,this._initialStyles),this._state=3)}}]),t}();return t.initialStylesByElement=new WeakMap,t}();function Hw(t){for(var e=null,n=Object.keys(t),i=0;i=this._delay&&n>=this._duration&&this.finish()}},{key:"finish",value:function(){this._finished||(this._finished=!0,this._onDoneFn(),Zw(this._element,this._eventFn,!0))}},{key:"destroy",value:function(){var t,e,n,i;this._destroyed||(this._destroyed=!0,this.finish(),e=this._name,(i=Xw(n=$w(t=this._element,"").split(","),e))>=0&&(n.splice(i,1),Kw(t,"",n.join(","))))}}]),t}();function Yw(t,e,n){Kw(t,"PlayState",n,qw(t,e))}function qw(t,e){var n=$w(t,"");return n.indexOf(",")>0?Xw(n.split(","),e):Xw([n],e)}function Xw(t,e){for(var n=0;n=0)return n;return-1}function Zw(t,e,n){n?t.removeEventListener(Uw,e):t.addEventListener(Uw,e)}function Kw(t,e,n,i){var r=Gw+e;if(null!=i){var o=t.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}t.style[r]=n}function $w(t,e){return t.style[Gw+e]||""}var Qw=function(){function t(e,n,i,r,o,a,l,u){s(this,t),this.element=e,this.keyframes=n,this.animationName=i,this._duration=r,this._delay=o,this._finalStyles=l,this._specialStyles=u,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=a||"linear",this.totalTime=r+o,this._buildStyler()}return a(t,[{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"destroy",value:function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"_flushDoneFns",value:function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]}},{key:"_flushStartFns",value:function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]}},{key:"finish",value:function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}},{key:"setPosition",value:function(t){this._styler.setPosition(t)}},{key:"getPosition",value:function(){return this._styler.getPosition()}},{key:"hasStarted",value:function(){return this._state>=2}},{key:"init",value:function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}},{key:"play",value:function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}},{key:"pause",value:function(){this.init(),this._styler.pause()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"reset",value:function(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}},{key:"_buildStyler",value:function(){var t=this;this._styler=new Ww(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}},{key:"beforeDestroy",value:function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(i){"offset"!=i&&(e[i]=n?t._finalStyles[i]:Ex(t.element,i))})}this.currentSnapshot=e}}]),t}(),Jw=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this)).element=t,r._startingStyles={},r.__initialized=!1,r._styles=ox(i),r}return a(n,[{key:"init",value:function(){var t=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(e){t._startingStyles[e]=t.element.style[e]}),r(i(n.prototype),"init",this).call(this))}},{key:"play",value:function(){var t=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(e){return t.element.style.setProperty(e,t._styles[e])}),r(i(n.prototype),"play",this).call(this))}},{key:"destroy",value:function(){var t=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(e){var n=t._startingStyles[e];n?t.element.style.setProperty(e,n):t.element.style.removeProperty(e)}),this._startingStyles=null,r(i(n.prototype),"destroy",this).call(this))}}]),n}(Fb),tk="gen_css_kf_",ek=function(){function t(){s(this,t),this._count=0}return a(t,[{key:"validateStyleProperty",value:function(t){return ex(t)}},{key:"matchesElement",value:function(t,e){return nx(t,e)}},{key:"containsElement",value:function(t,e){return ix(t,e)}},{key:"query",value:function(t,e,n){return rx(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"buildKeyframeElement",value:function(t,e,n){n=n.map(function(t){return ox(t)});var i="@keyframes ".concat(e," {\n"),r="";n.forEach(function(t){r=" ";var e=parseFloat(t.offset);i+="".concat(r).concat(100*e,"% {\n"),r+=" ",Object.keys(t).forEach(function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+="".concat(r,"animation-timing-function: ").concat(n,";\n")));default:return void(i+="".concat(r).concat(e,": ").concat(n,";\n"))}}),i+="".concat(r,"}\n")}),i+="}\n";var o=document.createElement("style");return o.textContent=i,o}},{key:"animate",value:function(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=o.filter(function(t){return t instanceof Qw}),s={};Tx(n,i)&&a.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return s[t]=e[t]})});var l=ik(e=Dx(t,e,s));if(0==n)return new Jw(t,l);var u="".concat(tk).concat(this._count++),c=this.buildKeyframeElement(t,u,e),h=nk(t);h.appendChild(c);var d=Vw(t,e),f=new Qw(t,e,u,n,i,r,l,d);return f.onDestroy(function(){return rk(c)}),f}}]),t}();function nk(t){var e,n=null===(e=t.getRootNode)||void 0===e?void 0:e.call(t);return"undefined"!=typeof ShadowRoot&&n instanceof ShadowRoot?n:document.head}function ik(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach(function(t){Object.keys(t).forEach(function(n){"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}function rk(t){t.parentNode.removeChild(t)}var ok=function(){function t(e,n,i,r){s(this,t),this.element=e,this.keyframes=n,this.options=i,this._specialStyles=r,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}return a(t,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])}},{key:"init",value:function(){this._buildPlayer(),this._preparePlayerBeforeStart()}},{key:"_buildPlayer",value:function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}}},{key:"_preparePlayerBeforeStart",value:function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}},{key:"_triggerWebAnimation",value:function(t,e,n){return t.animate(e,n)}},{key:"onStart",value:function(t){this._onStartFns.push(t)}},{key:"onDone",value:function(t){this._onDoneFns.push(t)}},{key:"onDestroy",value:function(t){this._onDestroyFns.push(t)}},{key:"play",value:function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}},{key:"pause",value:function(){this.init(),this.domPlayer.pause()}},{key:"finish",value:function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}},{key:"reset",value:function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"_resetDomPlayerState",value:function(){this.domPlayer&&this.domPlayer.cancel()}},{key:"restart",value:function(){this.reset(),this.play()}},{key:"hasStarted",value:function(){return this._started}},{key:"destroy",value:function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])}},{key:"setPosition",value:function(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}},{key:"getPosition",value:function(){return this.domPlayer.currentTime/this.time}},{key:"totalTime",get:function(){return this._delay+this._duration}},{key:"beforeDestroy",value:function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:Ex(t.element,n))}),this.currentSnapshot=e}},{key:"triggerCallback",value:function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0}}]),t}(),ak=function(){function t(){s(this,t),this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(sk().toString()),this._cssKeyframesDriver=new ek}return a(t,[{key:"validateStyleProperty",value:function(t){return ex(t)}},{key:"matchesElement",value:function(t,e){return nx(t,e)}},{key:"containsElement",value:function(t,e){return ix(t,e)}},{key:"query",value:function(t,e,n){return rx(t,e,n)}},{key:"computeStyle",value:function(t,e,n){return window.getComputedStyle(t)[e]}},{key:"overrideWebAnimationsSupport",value:function(t){this._isNativeImpl=t}},{key:"animate",value:function(t,e,n,i,r){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[],a=arguments.length>6?arguments[6]:void 0,s=!a&&!this._isNativeImpl;if(s)return this._cssKeyframesDriver.animate(t,e,n,i,r,o);var l=0==i?"both":"forwards",u={duration:n,delay:i,fill:l};r&&(u.easing=r);var c={},h=o.filter(function(t){return t instanceof ok});Tx(n,i)&&h.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return c[t]=e[t]})});var d=Vw(t,e=Dx(t,e=e.map(function(t){return yx(t,!1)}),c));return new ok(t,e,u,d)}}]),t}();function sk(){return Bb()&&Element.prototype.animate||{}}var lk=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this))._nextAnimationId=0,r._renderer=t.createRenderer(i.body,{id:"0",encapsulation:Xt.None,styles:[],data:{animation:[]}}),r}return a(n,[{key:"build",value:function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?Ob(t):t;return hk(this._renderer,null,e,"register",[n]),new uk(e,this._renderer)}}]),n}(Cb);return t.\u0275fac=function(e){return new(e||t)(Fi(Ol),Fi(oh))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),uk=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this))._id=t,r._renderer=i,r}return a(n,[{key:"create",value:function(t,e){return new ck(this._id,t,e||{},this._renderer)}}]),n}(Sb),ck=function(){function t(e,n,i,r){s(this,t),this.id=e,this.element=n,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}return a(t,[{key:"_listen",value:function(t,e){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(t),e)}},{key:"_command",value:function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i=0&&t3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,i)}},{key:"removeChild",value:function(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}},{key:"selectRootElement",value:function(t,e){return this.delegate.selectRootElement(t,e)}},{key:"parentNode",value:function(t){return this.delegate.parentNode(t)}},{key:"nextSibling",value:function(t){return this.delegate.nextSibling(t)}},{key:"setAttribute",value:function(t,e,n,i){this.delegate.setAttribute(t,e,n,i)}},{key:"removeAttribute",value:function(t,e,n){this.delegate.removeAttribute(t,e,n)}},{key:"addClass",value:function(t,e){this.delegate.addClass(t,e)}},{key:"removeClass",value:function(t,e){this.delegate.removeClass(t,e)}},{key:"setStyle",value:function(t,e,n,i){this.delegate.setStyle(t,e,n,i)}},{key:"removeStyle",value:function(t,e,n){this.delegate.removeStyle(t,e,n)}},{key:"setProperty",value:function(t,e,n){e.charAt(0)==dk&&e==fk?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}},{key:"setValue",value:function(t,e){this.delegate.setValue(t,e)}},{key:"listen",value:function(t,e,n){return this.delegate.listen(t,e,n)}},{key:"disableAnimations",value:function(t,e){this.engine.disableAnimations(t,e)}}]),t}(),mk=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this,i,r,o)).factory=t,a.namespaceId=i,a}return a(n,[{key:"setProperty",value:function(t,e,n){e.charAt(0)==dk?"."==e.charAt(1)&&e==fk?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}},{key:"listen",value:function(t,e,n){var i,r,o=this;if(e.charAt(0)==dk){var a=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t),s=e.substr(1),l="";if(s.charAt(0)!=dk){var u=y((r=(i=s).indexOf("."),[i.substring(0,r),i.substr(r+1)]),2);s=u[0],l=u[1]}return this.engine.listen(this.namespaceId,a,s,l,function(t){o.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}]),n}(gk),vk=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r){return s(this,n),e.call(this,t.body,i,r)}return a(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(zw);return t.\u0275fac=function(e){return new(e||t)(Fi(oh),Fi(sx),Fi(iw))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),yk=new _i("AnimationModuleType"),_k=[{provide:Cb,useClass:lk},{provide:iw,useFactory:function(){return new rw}},{provide:zw,useClass:vk},{provide:Ol,useFactory:function(t,e,n){return new pk(t,e,n)},deps:[vd,zw,kc]}],bk=[{provide:sx,useFactory:function(){return"function"==typeof sk()?new ak:new ek}},{provide:yk,useValue:"BrowserAnimations"}].concat(_k),xk=[{provide:sx,useClass:ax},{provide:yk,useValue:"NoopAnimations"}].concat(_k),wk=function(){var t=function(){function t(){s(this,t)}return a(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:e.disableAnimations?xk:bk}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:bk,imports:[Pd]}),t}();function kk(t,e){if(1&t&&gs(0,"mat-pseudo-checkbox",4),2&t){var n=Is();hs("state",n.selected?"checked":"unchecked")("disabled",n.disabled)}}function Ck(t,e){if(1&t&&(fs(0,"span",5),Qs(1),ps()),2&t){var n=Is();Po(1),tl("(",n.group.label,")")}}var Sk=["*"],Mk=function(){var t=function t(){s(this,t)};return t.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",t.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",t.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",t.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",t}(),Ak=function(){var t=function t(){s(this,t)};return t.COMPLEX="375ms",t.ENTERING="225ms",t.EXITING="195ms",t}(),Ik=new El("12.1.0"),Ok=new _i("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),Tk=function(){var t=function(){function t(e,n,i){s(this,t),this._hasDoneGlobalChecks=!1,this._document=i,e._applyBodyHighContrastModeCssClasses(),this._sanityChecks=n,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}return a(t,[{key:"_getWindow",value:function(){var t=this._document.defaultView||window;return"object"==typeof t&&t?t:null}},{key:"_checksAreEnabled",value:function(){return Nc()&&!this._isTestEnv()}},{key:"_isTestEnv",value:function(){var t=this._getWindow();return t&&(t.__karma__||t.jasmine)}},{key:"_checkDoctypeIsDefined",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype)&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}},{key:"_checkThemeIsPresent",value:function(){if(this._checksAreEnabled()&&!1!==this._sanityChecks&&this._sanityChecks.theme&&this._document.body&&"function"==typeof getComputedStyle){var t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);var e=getComputedStyle(t);e&&"none"!==e.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"),this._document.body.removeChild(t)}}},{key:"_checkCdkVersionMatch",value:function(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&Ik.full!==kb.full&&console.warn("The Angular Material version ("+Ik.full+") does not match the Angular CDK version ("+kb.full+").\nPlease ensure the versions of these two packages exactly match.")}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(xb),Fi(Ok,8),Fi(oh))},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[gy],gy]}),t}();function Dk(t){return function(t){u(n,t);var e=p(n);function n(){var t;s(this,n);for(var i=arguments.length,r=new Array(i),o=0;o1&&void 0!==arguments[1]?arguments[1]:0;return function(t){u(i,t);var n=p(i);function i(){var t;s(this,i);for(var r=arguments.length,o=new Array(r),a=0;a0?n:t}}]),t}(),Bk=new _i("mat-date-formats");try{Fk="undefined"!=typeof Intl}catch(yH){Fk=!1}var Hk={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},jk=Wk(31,function(t){return String(t+1)}),Gk={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},Uk=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function Wk(t,e){for(var n=Array(t),i=0;i9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=Object.assign(Object.assign({},e),{timeZone:"utc"});var n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(n,t))}return this._stripDirectionalityCharacters(t.toDateString())}},{key:"addCalendarYears",value:function(t,e){return this.addCalendarMonths(t,12*e)}},{key:"addCalendarMonths",value:function(t,e){var n=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(n)!=((this.getMonth(t)+e)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n}},{key:"addCalendarDays",value:function(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)}},{key:"toIso8601",value:function(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")}},{key:"deserialize",value:function(t){if("string"==typeof t){if(!t)return null;if(Uk.test(t)){var e=new Date(t);if(this.isValid(e))return e}}return r(i(n.prototype),"deserialize",this).call(this,t)}},{key:"isDateInstance",value:function(t){return t instanceof Date}},{key:"isValid",value:function(t){return!isNaN(t.getTime())}},{key:"invalid",value:function(){return new Date(NaN)}},{key:"_createDateWithOverflow",value:function(t,e,n){var i=new Date;return i.setFullYear(t,e,n),i.setHours(0,0,0,0),i}},{key:"_2digit",value:function(t){return("00"+t).slice(-2)}},{key:"_stripDirectionalityCharacters",value:function(t){return t.replace(/[\u200e\u200f]/g,"")}},{key:"_format",value:function(t,e){var n=new Date;return n.setUTCFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setUTCHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t.format(n)}}]),n}(Vk);return t.\u0275fac=function(e){return new(e||t)(Fi(zk,8),Fi(oy))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),qk=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[{provide:Vk,useClass:Yk}],imports:[[ay]]}),t}(),Xk={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},Zk=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[{provide:Bk,useValue:Xk}],imports:[[qk]]}),t}(),Kk=function(){var t=function(){function t(){s(this,t)}return a(t,[{key:"isErrorState",value:function(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Pt({factory:function(){return new t},token:t,providedIn:"root"}),t}(),$k=function(){function t(e,n,i){s(this,t),this._renderer=e,this.element=n,this.config=i,this.state=3}return a(t,[{key:"fadeOut",value:function(){this._renderer.fadeOutRipple(this)}}]),t}(),Qk={enterDuration:450,exitDuration:400},Jk=uy({passive:!0}),tC=["mousedown","touchstart"],eC=["mouseup","mouseleave","touchend","touchcancel"],nC=function(){function t(e,n,i,r){s(this,t),this._target=e,this._ngZone=n,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=wv(i))}return a(t,[{key:"fadeInRipple",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),o=Object.assign(Object.assign({},Qk),i.animation);i.centered&&(t=r.left+r.width/2,e=r.top+r.height/2);var a=i.radius||rC(t,e,r),s=t-r.left,l=e-r.top,u=o.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left="".concat(s-a,"px"),c.style.top="".concat(l-a,"px"),c.style.height="".concat(2*a,"px"),c.style.width="".concat(2*a,"px"),null!=i.color&&(c.style.backgroundColor=i.color),c.style.transitionDuration="".concat(u,"ms"),this._containerElement.appendChild(c),iC(c),c.style.transform="scale(1)";var h=new $k(this,c,i);return h.state=0,this._activeRipples.add(h),i.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(function(){var t=h===n._mostRecentTransientRipple;h.state=1,i.persistent||t&&n._isPointerDown||h.fadeOut()},u),h}},{key:"fadeOutRipple",value:function(t){var e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),e){var n=t.element,i=Object.assign(Object.assign({},Qk),t.config.animation);n.style.transitionDuration="".concat(i.exitDuration,"ms"),n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(function(){t.state=3,n.parentNode.removeChild(n)},i.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(t){return t.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(t){t.config.persistent||t.fadeOut()})}},{key:"setupTriggerEvents",value:function(t){var e=wv(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(tC))}},{key:"handleEvent",value:function(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(eC),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(t){var e=ib(t),n=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(t,e)})}},{key:"_registerEvents",value:function(t){var e=this;this._ngZone.runOutsideAngular(function(){t.forEach(function(t){e._triggerElement.addEventListener(t,e,Jk)})})}},{key:"_removeTriggerEvents",value:function(){var t=this;this._triggerElement&&(tC.forEach(function(e){t._triggerElement.removeEventListener(e,t,Jk)}),this._pointerUpEventsRegistered&&eC.forEach(function(e){t._triggerElement.removeEventListener(e,t,Jk)}))}}]),t}();function iC(t){window.getComputedStyle(t).getPropertyValue("opacity")}function rC(t,e,n){var i=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),r=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(i*i+r*r)}var oC=new _i("mat-ripple-global-options"),aC=function(){var t=function(){function t(e,n,i,r,o){s(this,t),this._elementRef=e,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=r||{},this._rippleRenderer=new nC(this,n,e,i)}return a(t,[{key:"disabled",get:function(){return this._disabled},set:function(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}},{key:"ngOnInit",value:function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}},{key:"ngOnDestroy",value:function(){this._rippleRenderer._removeTriggerEvents()}},{key:"fadeOutAll",value:function(){this._rippleRenderer.fadeOutAll()}},{key:"fadeOutAllNonPersistent",value:function(){this._rippleRenderer.fadeOutAllNonPersistent()}},{key:"rippleConfig",get:function(){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}}},{key:"rippleDisabled",get:function(){return this.disabled||!!this._globalOptions.disabled}},{key:"_setupTriggerEventsIfEnabled",value:function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}},{key:"launch",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0;return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(kc),cs(oy),cs(oC,8),cs(yk,8))},t.\u0275dir=me({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&Hs("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}(),sC=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[Tk,ay],Tk]}),t}(),lC=function(){var t=function t(e){s(this,t),this._animationMode=e,this.state="unchecked",this.disabled=!1};return t.\u0275fac=function(e){return new(e||t)(cs(yk,8))},t.\u0275cmp=ce({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,e){2&t&&Hs("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}(),uC=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[Tk]]}),t}(),cC=new _i("MAT_OPTION_PARENT_COMPONENT"),hC=Dk(function(){return function t(){s(this,t)}}()),dC=0,fC=function(){var t=function(t){u(n,t);var e=p(n);function n(t){var i,r;return s(this,n),(i=e.call(this))._labelId="mat-optgroup-label-".concat(dC++),i._inert=null!==(r=null==t?void 0:t.inertGroups)&&void 0!==r&&r,i}return n}(hC);return t.\u0275fac=function(e){return new(e||t)(cs(cC,8))},t.\u0275dir=me({type:t,inputs:{label:"label"},features:[qa]}),t}(),pC=new _i("MatOptgroup"),gC=0,mC=function t(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];s(this,t),this.source=e,this.isUserInput=n},vC=function(){var t=function(){function t(e,n,i,r){s(this,t),this._element=e,this._changeDetectorRef=n,this._parent=i,this.group=r,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(gC++),this.onSelectionChange=new Nu,this._stateChanges=new U}return a(t,[{key:"multiple",get:function(){return this._parent&&this._parent.multiple}},{key:"selected",get:function(){return this._selected}},{key:"disabled",get:function(){return this.group&&this.group.disabled||this._disabled},set:function(t){this._disabled=vv(t)}},{key:"disableRipple",get:function(){return this._parent&&this._parent.disableRipple}},{key:"active",get:function(){return this._active}},{key:"viewValue",get:function(){return(this._getHostElement().textContent||"").trim()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}},{key:"focus",value:function(t,e){var n=this._getHostElement();"function"==typeof n.focus&&n.focus(e)}},{key:"setActiveStyles",value:function(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}},{key:"setInactiveStyles",value:function(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}},{key:"getLabel",value:function(){return this.viewValue}},{key:"_handleKeydown",value:function(t){t.keyCode!==Ny&&t.keyCode!==zy||Wy(t)||(this._selectViaInteraction(),t.preventDefault())}},{key:"_selectViaInteraction",value:function(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}},{key:"_getAriaSelected",value:function(){return this.selected||!this.multiple&&null}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._element.nativeElement}},{key:"ngAfterViewChecked",value:function(){if(this._selected){var t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new mC(this,t))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(Jl),cs(void 0),cs(fC))},t.\u0275dir=me({type:t,inputs:{id:"id",disabled:"disabled",value:"value"},outputs:{onSelectionChange:"onSelectionChange"}}),t}(),yC=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o){return s(this,n),e.call(this,t,i,r,o)}return n}(vC);return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(Jl),cs(cC,8),cs(pC,8))},t.\u0275cmp=ce({type:t,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,e){1&t&&ks("click",function(){return e._selectViaInteraction()})("keydown",function(t){return e._handleKeydown(t)}),2&t&&(nl("id",e.id),as("tabindex",e._getTabIndex())("aria-selected",e._getAriaSelected())("aria-disabled",e.disabled.toString()),Hs("mat-selected",e.selected)("mat-option-multiple",e.multiple)("mat-active",e.active)("mat-option-disabled",e.disabled))},exportAs:["matOption"],features:[qa],ngContentSelectors:Sk,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,e){1&t&&(Ts(),ls(0,kk,1,2,"mat-pseudo-checkbox",0),fs(1,"span",1),Ds(2),ps(),ls(3,Ck,2,1,"span",2),gs(4,"div",3)),2&t&&(hs("ngIf",e.multiple),Po(3),hs("ngIf",e.group&&e.group._inert),Po(1),hs("matRippleTrigger",e._getHostElement())("matRippleDisabled",e.disabled||e.disableRipple))},directives:[Dh,aC,lC],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}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.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}.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}();function _C(t,e,n){if(n.length){for(var i=e.toArray(),r=n.toArray(),o=0,a=0;an+i?Math.max(0,t-i+e):n}var xC=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[sC,Yh,Tk,uC]]}),t}();function wC(t,e){}var kC=function t(){s(this,t),this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0},CC={dialogContainer:Ab("dialogContainer",[Db("void, exit",Tb({opacity:0,transform:"scale(0.7)"})),Db("enter",Tb({transform:"none"})),Eb("* => enter",Ib("150ms cubic-bezier(0, 0, 0.2, 1)",Tb({transform:"none",opacity:1}))),Eb("* => void, * => exit",Ib("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",Tb({opacity:0})))])},SC=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l){var u;return s(this,n),(u=e.call(this))._elementRef=t,u._focusTrapFactory=i,u._changeDetectorRef=r,u._config=a,u._focusMonitor=l,u._animationStateChanged=new Nu,u._elementFocusedBeforeDialogWasOpened=null,u._closeInteractionType=null,u.attachDomPortal=function(t){return u._portalOutlet.hasAttached(),u._portalOutlet.attachDomPortal(t)},u._ariaLabelledBy=a.ariaLabelledBy||null,u._document=o,u}return a(n,[{key:"_initializeWithAttachedContent",value:function(){this._setupFocusTrap(),this._capturePreviouslyFocusedElement(),this._focusDialogContainer()}},{key:"attachComponentPortal",value:function(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(t)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||(!this._config.autoFocus||!this._focusTrap.focusInitialElement())&&this._elementRef.nativeElement.focus()}},{key:"_trapFocus",value:function(){this._config.autoFocus?this._focusTrap.focusInitialElementWhenReady():this._containsFocus()||this._elementRef.nativeElement.focus()}},{key:"_restoreFocus",value:function(){var t=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&t&&"function"==typeof t.focus){var e=dy(),n=this._elementRef.nativeElement;e&&e!==this._document.body&&e!==n&&!n.contains(e)||(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_setupFocusTrap",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)}},{key:"_capturePreviouslyFocusedElement",value:function(){this._document&&(this._elementFocusedBeforeDialogWasOpened=dy())}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var t=this._elementRef.nativeElement,e=dy();return t===e||t.contains(e)}}]),n}(Oy);return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(eb),cs(Jl),cs(oh,8),cs(kC),cs(mb))},t.\u0275dir=me({type:t,viewQuery:function(t,e){var n;1&t&&Zu(Py,7),2&t&&Xu(n=$u())&&(e._portalOutlet=n.first)},features:[qa]}),t}(),MC=function(){var t=function(t){u(n,t);var e=p(n);function n(){var t;return s(this,n),(t=e.apply(this,arguments))._state="enter",t}return a(n,[{key:"_onAnimationDone",value:function(t){var e=t.toState,n=t.totalTime;"enter"===e?(this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:n})):"exit"===e&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:n}))}},{key:"_onAnimationStart",value:function(t){var e=t.toState,n=t.totalTime;"enter"===e?this._animationStateChanged.next({state:"opening",totalTime:n}):"exit"!==e&&"void"!==e||this._animationStateChanged.next({state:"closing",totalTime:n})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}}]),n}(SC);return t.\u0275fac=function(){var e;return function(n){return(e||(e=pi(t)))(n||t)}}(),t.\u0275cmp=ce({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&Cs("@dialogContainer.start",function(t){return e._onAnimationStart(t)})("@dialogContainer.done",function(t){return e._onAnimationDone(t)}),2&t&&(nl("id",e._id),as("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),il("@dialogContainer",e._state))},features:[qa],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&ls(0,wC,0,0,"ng-template",0)},directives:[Py],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}.cdk-high-contrast-active .mat-dialog-container{outline:solid 1px}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;box-sizing:content-box;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base,.mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}\n"],encapsulation:2,data:{animation:[CC.dialogContainer]}}),t}(),AC=0,IC=function(){function t(e,n){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(AC++);s(this,t),this._overlayRef=e,this._containerInstance=n,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new U,this._afterClosed=new U,this._beforeClosed=new U,this._state=0,n._id=r,n._animationStateChanged.pipe(Ld(function(t){return"opened"===t.state}),Nf(1)).subscribe(function(){i._afterOpened.next(),i._afterOpened.complete()}),n._animationStateChanged.pipe(Ld(function(t){return"closed"===t.state}),Nf(1)).subscribe(function(){clearTimeout(i._closeFallbackTimeout),i._finishDialogClose()}),e.detachments().subscribe(function(){i._beforeClosed.next(i._result),i._beforeClosed.complete(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),e.keydownEvents().pipe(Ld(function(t){return t.keyCode===Fy&&!i.disableClose&&!Wy(t)})).subscribe(function(t){t.preventDefault(),OC(i,"keyboard")}),e.backdropClick().subscribe(function(){i.disableClose?i._containerInstance._recaptureFocus():OC(i,"mouse")})}return a(t,[{key:"close",value:function(t){var e=this;this._result=t,this._containerInstance._animationStateChanged.pipe(Ld(function(t){return"closing"===t.state}),Nf(1)).subscribe(function(n){e._beforeClosed.next(t),e._beforeClosed.complete(),e._overlayRef.detachBackdrop(),e._closeFallbackTimeout=setTimeout(function(){return e._finishDialogClose()},n.totalTime+100)}),this._state=1,this._containerInstance._startExitAnimation()}},{key:"afterOpened",value:function(){return this._afterOpened}},{key:"afterClosed",value:function(){return this._afterClosed}},{key:"beforeClosed",value:function(){return this._beforeClosed}},{key:"backdropClick",value:function(){return this._overlayRef.backdropClick()}},{key:"keydownEvents",value:function(){return this._overlayRef.keydownEvents()}},{key:"updatePosition",value:function(t){var e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:t,height:e}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(t){return this._overlayRef.addPanelClass(t),this}},{key:"removePanelClass",value:function(t){return this._overlayRef.removePanelClass(t),this}},{key:"getState",value:function(){return this._state}},{key:"_finishDialogClose",value:function(){this._state=2,this._overlayRef.dispose()}},{key:"_getPositionStrategy",value:function(){return this._overlayRef.getConfig().positionStrategy}}]),t}();function OC(t,e,n){return void 0!==t._containerInstance&&(t._containerInstance._closeInteractionType=e),t.close(n)}var TC=new _i("MatDialogData"),DC=new _i("mat-dialog-default-options"),PC=new _i("mat-dialog-scroll-strategy"),EC={provide:PC,deps:[b_],useFactory:function(t){return function(){return t.scrollStrategies.block()}}},RC=function(){var t=function(){function t(e,n,i,r,o,a,l,u,c){var h=this;s(this,t),this._overlay=e,this._injector=n,this._defaultOptions=i,this._parentDialog=r,this._overlayContainer=o,this._dialogRefConstructor=l,this._dialogContainerType=u,this._dialogDataToken=c,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new U,this._afterOpenedAtThisLevel=new U,this._ariaHiddenElements=new Map,this.afterAllClosed=Df(function(){return h.openDialogs.length?h._getAfterAllClosed():h._getAfterAllClosed().pipe(Vf(void 0))}),this._scrollStrategy=a}return a(t,[{key:"openDialogs",get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}},{key:"afterOpened",get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}},{key:"_getAfterAllClosed",value:function(){var t=this._parentDialog;return t?t._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(t,e){var n=this;(e=function(t,e){return Object.assign(Object.assign({},e),t)}(e,this._defaultOptions||new kC)).id&&this.getDialogById(e.id);var i=this._createOverlay(e),r=this._attachDialogContainer(i,e),o=this._attachDialogContent(t,r,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(o),o.afterClosed().subscribe(function(){return n._removeOpenDialog(o)}),this.afterOpened.next(o),r._initializeWithAttachedContent(),o}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(t){return this.openDialogs.find(function(e){return e.id===t})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(t){var e=this._getOverlayConfig(t);return this._overlay.create(e)}},{key:"_getOverlayConfig",value:function(t){var e=new t_({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e}},{key:"_attachDialogContainer",value:function(t,e){var n=Wa.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:kC,useValue:e}]}),i=new My(this._dialogContainerType,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance}},{key:"_attachDialogContent",value:function(t,e,n,i){var r=new this._dialogRefConstructor(n,e,i.id);if(t instanceof ru)e.attachTemplatePortal(new Ay(t,null,{$implicit:i.data,dialogRef:r}));else{var o=this._createInjector(i,r,e),a=e.attachComponentPortal(new My(t,i.viewContainerRef,o));r.componentInstance=a.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r}},{key:"_createInjector",value:function(t,e,n){var i=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=[{provide:this._dialogContainerType,useValue:n},{provide:this._dialogDataToken,useValue:t.data},{provide:this._dialogRefConstructor,useValue:e}];return!t.direction||i&&i.get(py,null,jt.Optional)||r.push({provide:py,useValue:{value:t.direction,change:Ed()}}),Wa.create({parent:i||this._injector,providers:r})}},{key:"_removeOpenDialog",value:function(t){var e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var t=this._overlayContainer.getContainerElement();if(t.parentElement)for(var e=t.parentElement.children,n=e.length-1;n>-1;n--){var i=e[n];i===t||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(t){for(var e=t.length;e--;)t[e].close()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(b_),cs(Wa),cs(void 0),cs(void 0),cs(s_),cs(void 0),cs(xi),cs(xi),cs(_i))},t.\u0275dir=me({type:t}),t}(),LC=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l,u){return s(this,n),e.call(this,t,i,o,l,u,a,IC,MC,TC)}return n}(RC);return t.\u0275fac=function(e){return new(e||t)(Fi(b_),Fi(Wa),Fi(bh,8),Fi(DC,8),Fi(PC),Fi(t,12),Fi(s_))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),NC=0,FC=function(){var t=function(){function t(e,n,i){s(this,t),this.dialogRef=e,this._elementRef=n,this._dialog=i,this.type="button"}return a(t,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=HC(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(t){var e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)}},{key:"_onButtonClick",value:function(t){OC(this.dialogRef,0===t.screenX&&0===t.screenY?"keyboard":"mouse",this.dialogResult)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(IC,8),cs(Al),cs(LC))},t.\u0275dir=me({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&ks("click",function(t){return e._onButtonClick(t)}),2&t&&as("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Te]}),t}(),zC=function(){var t=function(){function t(e,n,i){s(this,t),this._dialogRef=e,this._elementRef=n,this._dialog=i,this.id="mat-dialog-title-".concat(NC++)}return a(t,[{key:"ngOnInit",value:function(){var t=this;this._dialogRef||(this._dialogRef=HC(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var e=t._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=t.id)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(IC,8),cs(Al),cs(LC))},t.\u0275dir=me({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&nl("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t}(),VC=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t}(),BC=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t}();function HC(t,e){for(var n=t.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find(function(t){return t.id===n.id}):null}var jC=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[LC,EC],imports:[[M_,Ey,Tk],Tk]}),t}();function GC(t){var e=t.subscriber,n=t.counter,i=t.period;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}var UC=["mat-button",""],WC=["*"],YC=".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:inline-flex;justify-content:center;align-items:center;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}.cdk-high-contrast-active .mat-button-base.cdk-keyboard-focused,.cdk-high-contrast-active .mat-button-base.cdk-program-focused{outline:solid 3px}\n",qC=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],XC=Pk(Dk(Ek(function(){return function t(e){s(this,t),this._elementRef=e}}()))),ZC=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;s(this,n),(o=e.call(this,t))._focusMonitor=i,o._animationMode=r,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");var a,l=v(qC);try{for(l.s();!(a=l.n()).done;){var u=a.value;o._hasHostAttributes(u)&&o._getHostElement().classList.add(u)}}catch(c){l.e(c)}finally{l.f()}return t.nativeElement.classList.add("mat-button-base"),o.isRoundButton&&(o.color="accent"),o}return a(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(t,e){t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i0&&(this.dialogRef.afterClosed().subscribe(function(e){t.closed()}),this.setExtra(this.data.autoclose),this.subscription=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bv;return(!Uv(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=Bv),new V(function(n){return n.add(e.schedule(GC,t,{subscriber:n,counter:0,period:t})),n})}(1e3).subscribe(function(e){var n=t.data.autoclose-1e3*(e+1);t.setExtra(n),n<=0&&t.close()}))},t.prototype.initYesNo=function(){},t.prototype.ngOnInit=function(){!0===this.data.warnOnYes&&(this.yesColor="warn",this.noColor="primary"),this.data.type===iS.yesno?this.initYesNo():this.initAlert()},t.\u0275fac=function(e){return new(e||t)(cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"color","click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"],["mat-raised-button","","mat-dialog-close","",3,"color","click"]],template:function(t,e){1&t&&(gs(0,"h4",0),Tu(1,"safeHtml"),gs(2,"mat-dialog-content",1),Tu(3,"safeHtml"),fs(4,"mat-dialog-actions"),ls(5,tS,4,1,"button",2),ls(6,eS,3,1,"button",3),ls(7,nS,3,1,"button",3),ps()),2&t&&(hs("innerHtml",Du(1,5,e.data.title),Ir),Po(2),hs("innerHTML",Du(3,7,e.data.body),Ir),Po(3),hs("ngIf",0==e.data.type),Po(1),hs("ngIf",1==e.data.type),Po(1),hs("ngIf",1==e.data.type))},directives:[zC,VC,BC,Dh,ZC,FC,QC],pipes:[JC],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}(),oS=function(t){return t.TEXT="text",t.TEXTBOX="textbox",t.NUMERIC="numeric",t.PASSWORD="password",t.HIDDEN="hidden",t.CHOICE="choice",t.MULTI_CHOICE="multichoice",t.EDITLIST="editlist",t.CHECKBOX="checkbox",t.IMAGECHOICE="imgchoice",t.DATE="date",t.DATETIME="datetime",t.TAGLIST="taglist",t}({}),aS=function(){function t(){}return t.locateChoice=function(t,e){var n=e.gui.values.find(function(e){return e.id===t});if(void 0===n)try{n=e.gui.values[0]}catch(i){n={id:"",img:"",text:""}}return n},t}();function sS(t,e){return new V(function(n){var i=t.length;if(0!==i)for(var r=new Array(i),o=0,a=0,s=function(s){var l=it(t[s]),u=!1;n.add(l.subscribe({next:function(t){u||(u=!0,a++),r[s]=t},error:function(t){return n.error(t)},complete:function(){++o!==i&&u||(a===i&&n.next(e?e.reduce(function(t,e,n){return t[e]=r[n],t},{}):r),n.complete())}}))},l=0;le?{max:{max:e,actual:t.value}}:null};var e}},{key:"required",value:function(t){return bS(t)}},{key:"requiredTrue",value:function(t){return xS(t)}},{key:"email",value:function(t){return function(t){return pS(t.value)||yS.test(t.value)?null:{email:!0}}(t)}},{key:"minLength",value:function(t){return e=t,function(t){return pS(t.value)||!gS(t.value)?null:t.value.lengtht?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}}function kS(t){return null}function CS(t){return null!=t}function SS(t){var e=bs(t)?it(t):t;return ws(e),e}function MS(t){var e={};return t.forEach(function(t){e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function AS(t,e){return e.map(function(e){return e(t)})}function IS(t){return t.map(function(t){return function(t){return!t.validate}(t)?t:function(e){return t.validate(e)}})}function OS(t){if(!t)return null;var e=t.filter(CS);return 0==e.length?null:function(t){return MS(AS(t,e))}}function TS(t){return null!=t?OS(IS(t)):null}function DS(t){if(!t)return null;var e=t.filter(CS);return 0==e.length?null:function(t){return function(){for(var t=arguments.length,e=new Array(t),n=0;n0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(t)}},{key:"hasError",value:function(t,e){return!!this.control&&this.control.hasError(t,e)}},{key:"getError",value:function(t,e){return this.control?this.control.getError(t,e):null}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t}),t}(),FS=function(){var t=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(NS);return t.\u0275fac=function(){var e;return function(n){return(e||(e=pi(t)))(n||t)}}(),t.\u0275dir=me({type:t,features:[qa]}),t}(),zS=function(t){u(n,t);var e=p(n);function n(){var t;return s(this,n),(t=e.apply(this,arguments))._parent=null,t.name=null,t.valueAccessor=null,t}return n}(NS),VS=function(){function t(e){s(this,t),this._cd=e}return a(t,[{key:"is",value:function(t){var e,n,i;return"submitted"===t?!!(null===(e=this._cd)||void 0===e?void 0:e.submitted):!!(null===(i=null===(n=this._cd)||void 0===n?void 0:n.control)||void 0===i?void 0:i[t])}}]),t}(),BS=function(){var t=function(t){u(n,t);var e=p(n);function n(t){return s(this,n),e.call(this,t)}return n}(VS);return t.\u0275fac=function(e){return new(e||t)(cs(zS,2))},t.\u0275dir=me({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&Hs("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))},features:[qa]}),t}(),HS=function(){var t=function(t){u(n,t);var e=p(n);function n(t){return s(this,n),e.call(this,t)}return n}(VS);return t.\u0275fac=function(e){return new(e||t)(cs(FS,10))},t.\u0275dir=me({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,e){2&t&&Hs("ng-untouched",e.is("untouched"))("ng-touched",e.is("touched"))("ng-pristine",e.is("pristine"))("ng-dirty",e.is("dirty"))("ng-valid",e.is("valid"))("ng-invalid",e.is("invalid"))("ng-pending",e.is("pending"))("ng-submitted",e.is("submitted"))},features:[qa]}),t}();function jS(t,e){WS(t,e),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&qS(t,e)})}(t,e),function(t,e){var n=function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)};t.registerOnChange(n),e._registerOnDestroy(function(){t._unregisterOnChange(n)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&qS(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function(t,e){if(e.valueAccessor.setDisabledState){var n=function(t){e.valueAccessor.setDisabledState(t)};t.registerOnDisabledChange(n),e._registerOnDestroy(function(){t._unregisterOnDisabledChange(n)})}}(t,e)}function GS(t,e){var n=function(){};e.valueAccessor&&(e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n)),YS(t,e),t&&(e._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(function(){}))}function US(t,e){t.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function WS(t,e){var n=RS(t);null!==e.validator?t.setValidators(ES(n,e.validator)):"function"==typeof n&&t.setValidators([n]);var i=LS(t);null!==e.asyncValidator?t.setAsyncValidators(ES(i,e.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);var r=function(){return t.updateValueAndValidity()};US(e._rawValidators,r),US(e._rawAsyncValidators,r)}function YS(t,e){var n=!1;if(null!==t){if(null!==e.validator){var i=RS(t);if(Array.isArray(i)&&i.length>0){var r=i.filter(function(t){return t!==e.validator});r.length!==i.length&&(n=!0,t.setValidators(r))}}if(null!==e.asyncValidator){var o=LS(t);if(Array.isArray(o)&&o.length>0){var a=o.filter(function(t){return t!==e.asyncValidator});a.length!==o.length&&(n=!0,t.setAsyncValidators(a))}}}var s=function(){};return US(e._rawValidators,s),US(e._rawAsyncValidators,s),n}function qS(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function XS(t,e){WS(t,e)}function ZS(t,e){t._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function KS(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var $S="VALID",QS="INVALID",JS="PENDING",tM="DISABLED";function eM(t){return(oM(t)?t.validators:t)||null}function nM(t){return Array.isArray(t)?TS(t):t||null}function iM(t,e){return(oM(e)?e.asyncValidators:t)||null}function rM(t){return Array.isArray(t)?PS(t):t||null}function oM(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var aM=function(){function t(e,n){s(this,t),this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=n,this._composedValidatorFn=nM(this._rawValidators),this._composedAsyncValidatorFn=rM(this._rawAsyncValidators)}return a(t,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(t){this._rawValidators=this._composedValidatorFn=t}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===$S}},{key:"invalid",get:function(){return this.status===QS}},{key:"pending",get:function(){return this.status==JS}},{key:"disabled",get:function(){return this.status===tM}},{key:"enabled",get:function(){return this.status!==tM}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"setValidators",value:function(t){this._rawValidators=t,this._composedValidatorFn=nM(t)}},{key:"setAsyncValidators",value:function(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=rM(t)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(t){return t.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"markAsDirty",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}},{key:"markAsPristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"markAsPending",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=JS,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}},{key:"disable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status=tM,this.errors=null,this._forEachChild(function(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(function(t){return t(!0)})}},{key:"enable",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this._parentMarkedDirty(t.onlySelf);this.status=$S,this._forEachChild(function(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(function(t){return t(!1)})}},{key:"_updateAncestors",value:function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(t){this._parent=t}},{key:"updateValueAndValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==$S&&this.status!==JS||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)}},{key:"_updateTreeValidity",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?tM:$S}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(t){var e=this;if(this.asyncValidator){this.status=JS,this._hasOwnPendingAsyncValidator=!0;var n=SS(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){e._hasOwnPendingAsyncValidator=!1,e.setErrors(n,{emitEvent:t})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}},{key:"get",value:function(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;var i=t;return e.forEach(function(t){i=i instanceof lM?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof uM&&i.at(t)||null}),i}(this,t)}},{key:"getError",value:function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}},{key:"hasError",value:function(t,e){return!!this.getError(t,e)}},{key:"root",get:function(){for(var t=this;t._parent;)t=t._parent;return t}},{key:"_updateControlsErrors",value:function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}},{key:"_initObservables",value:function(){this.valueChanges=new Nu,this.statusChanges=new Nu}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?tM:this.errors?QS:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(JS)?JS:this._anyControlsHaveStatus(QS)?QS:$S}},{key:"_anyControlsHaveStatus",value:function(t){return this._anyControls(function(e){return e.status===t})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(t){return t.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(t){return t.touched})}},{key:"_updatePristine",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}},{key:"_updateTouched",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}},{key:"_isBoxedValue",value:function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}},{key:"_registerOnCollectionChange",value:function(t){this._onCollectionChange=t}},{key:"_setUpdateStrategy",value:function(t){oM(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}},{key:"_parentMarkedDirty",value:function(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),t}(),sM=function(t){u(n,t);var e=p(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return s(this,n),(t=e.call(this,eM(r),iM(o,r)))._onChange=[],t._applyFormState(i),t._setUpdateStrategy(r),t._initObservables(),t.updateValueAndValidity({onlySelf:!0,emitEvent:!!t.asyncValidator}),t}return a(n,[{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(t){return t(e.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(t,e)}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(t){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(t){this._onChange.push(t)}},{key:"_unregisterOnChange",value:function(t){KS(this._onChange,t)}},{key:"registerOnDisabledChange",value:function(t){this._onDisabledChange.push(t)}},{key:"_unregisterOnDisabledChange",value:function(t){KS(this._onDisabledChange,t)}},{key:"_forEachChild",value:function(t){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(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}}]),n}(aM),lM=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,eM(i),iM(r,i))).controls=t,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return a(n,[{key:"registerControl",value:function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}},{key:"addControl",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),Object.keys(t).forEach(function(i){e._throwIfControlMissing(i),e.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=t&&(Object.keys(t).forEach(function(i){e.controls[i]&&e.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof sM?e.value:e.getRawValue(),t})}},{key:"_syncPendingControls",value:function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(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: ".concat(t,"."))}},{key:"_forEachChild",value:function(t){var e=this;Object.keys(this.controls).forEach(function(n){var i=e.controls[n];i&&t(i,n)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(t){for(var e=0,n=Object.keys(this.controls);e0||this.disabled}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))})}}]),n}(aM),uM=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,eM(i),iM(r,i))).controls=t,o._initObservables(),o._setUpdateStrategy(i),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!!o.asyncValidator}),o}return a(n,[{key:"at",value:function(t){return this.controls[t]}},{key:"push",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}},{key:"removeAt",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}},{key:"setControl",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(t),t.forEach(function(t,i){e._throwIfControlMissing(i),e.at(i).setValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=t&&(t.forEach(function(t,i){e.at(i)&&e.at(i).patchValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}},{key:"reset",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(n,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}},{key:"getRawValue",value:function(){return this.controls.map(function(t){return t instanceof sM?t.value:t.getRawValue()})}},{key:"clear",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(t){return t._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}},{key:"_syncPendingControls",value:function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}},{key:"_throwIfControlMissing",value:function(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 ".concat(t))}},{key:"_forEachChild",value:function(t){this.controls.forEach(function(e,n){t(e,n)})}},{key:"_updateValue",value:function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})}},{key:"_anyControls",value:function(t){return this.controls.some(function(e){return e.enabled&&t(e)})}},{key:"_setUpControls",value:function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})}},{key:"_checkAllValuesPresent",value:function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))})}},{key:"_allControlsDisabled",value:function(){var t,e=v(this.controls);try{for(e.s();!(t=e.n()).done;)if(t.value.enabled)return!1}catch(n){e.e(n)}finally{e.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}]),n}(aM),cM={provide:FS,useExisting:St(function(){return dM})},hM=function(){return Promise.resolve(null)}(),dM=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this)).submitted=!1,r._directives=[],r.ngSubmit=new Nu,r.form=new lM({},TS(t),PS(i)),r}return a(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}},{key:"addControl",value:function(t){var e=this;hM.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),jS(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){var e=this;hM.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),KS(e._directives,t)})}},{key:"addFormGroup",value:function(t){var e=this;hM.then(function(){var n=e._findContainer(t.path),i=new lM({});XS(i,t),n.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(t){var e=this;hM.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){var n=this;hM.then(function(){n.form.get(t.path).setValue(e)})}},{key:"setValue",value:function(t){this.control.setValue(t)}},{key:"onSubmit",value:function(t){return this.submitted=!0,ZS(this.form,this._directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(t),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(t){return t.pop(),t.length?this.form.get(t):this.form}}]),n}(FS);return t.\u0275fac=function(e){return new(e||t)(cs(mS,10),cs(vS,10))},t.\u0275dir=me({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&ks("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_l([cM]),qa]}),t}(),fM={provide:zS,useExisting:St(function(){return gM})},pM=function(){return Promise.resolve(null)}(),gM=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this)).control=new sM,a._registered=!1,a.update=new Nu,a._parent=t,a._setValidators(i),a._setAsyncValidators(r),a.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e);var n=void 0,i=void 0,r=void 0;return e.forEach(function(t){t.constructor===fS?n=t:Object.getPrototypeOf(t.constructor)===uS?i=t:r=t}),r||i||n||null}(d(a),o),a}return a(n,[{key:"ngOnChanges",value:function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"path",get:function(){return this._parent?(t=this.name,[].concat(b(this._parent.path),[t])):[this.name];var t}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(t){this.viewModel=t,this.update.emit(t)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){jS(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}},{key:"_updateValue",value:function(t){var e=this;pM.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})}},{key:"_updateDisabled",value:function(t){var e=this,n=t.isDisabled.currentValue,i=""===n||n&&"false"!==n;pM.then(function(){i&&!e.control.disabled?e.control.disable():!i&&e.control.disabled&&e.control.enable()})}}]),n}(zS);return t.\u0275fac=function(e){return new(e||t)(cs(FS,9),cs(mS,10),cs(vS,10),cs(cS,10))},t.\u0275dir=me({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:[_l([fM]),qa,Te]}),t}(),mM=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t}(),vM={provide:cS,useExisting:St(function(){return yM}),multi:!0},yM=function(){var t=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"writeValue",value:function(t){this.setProperty("value",null==t?"":t)}},{key:"registerOnChange",value:function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}}}]),n}(uS);return t.\u0275fac=function(){var e;return function(n){return(e||(e=pi(t)))(n||t)}}(),t.\u0275dir=me({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&ks("input",function(t){return e.onChange(t.target.value)})("blur",function(){return e.onTouched()})},features:[_l([vM]),qa]}),t}(),_M=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({}),t}(),bM=new _i("NgModelWithFormControlWarning"),xM={provide:FS,useExisting:St(function(){return wM})},wM=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this)).validators=t,r.asyncValidators=i,r.submitted=!1,r._onCollectionChange=function(){return r._updateDomValue()},r.directives=[],r.form=null,r.ngSubmit=new Nu,r._setValidators(t),r._setAsyncValidators(i),r}return a(n,[{key:"ngOnChanges",value:function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(YS(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(function(){}))}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"addControl",value:function(t){var e=this.form.get(t.path);return jS(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}},{key:"getControl",value:function(t){return this.form.get(t.path)}},{key:"removeControl",value:function(t){GS(t.control||null,t),KS(this.directives,t)}},{key:"addFormGroup",value:function(t){this._setUpFormContainer(t)}},{key:"removeFormGroup",value:function(t){this._cleanUpFormContainer(t)}},{key:"getFormGroup",value:function(t){return this.form.get(t.path)}},{key:"addFormArray",value:function(t){this._setUpFormContainer(t)}},{key:"removeFormArray",value:function(t){this._cleanUpFormContainer(t)}},{key:"getFormArray",value:function(t){return this.form.get(t.path)}},{key:"updateModel",value:function(t,e){this.form.get(t.path).setValue(e)}},{key:"onSubmit",value:function(t){return this.submitted=!0,ZS(this.form,this.directives),this.ngSubmit.emit(t),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(t),this.submitted=!1}},{key:"_updateDomValue",value:function(){var t=this;this.directives.forEach(function(e){var n=e.control,i=t.form.get(e.path);n!==i&&(GS(n||null,e),i instanceof sM&&(jS(i,e),e.control=i))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(t){var e=this.form.get(t.path);XS(e,t),e.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(t){if(this.form){var e=this.form.get(t.path);e&&function(t,e){return YS(t,e)}(e,t)&&e.updateValueAndValidity({emitEvent:!1})}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){WS(this.form,this),this._oldForm&&YS(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),n}(FS);return t.\u0275fac=function(e){return new(e||t)(cs(mS,10),cs(vS,10))},t.\u0275dir=me({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&ks("submit",function(t){return e.onSubmit(t)})("reset",function(){return e.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_l([xM]),qa,Te]}),t}(),kM={provide:mS,useExisting:St(function(){return SM}),multi:!0},CM={provide:mS,useExisting:St(function(){return MM}),multi:!0},SM=function(){var t=function(){function t(){s(this,t),this._required=!1}return a(t,[{key:"required",get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&"false"!=="".concat(t),this._onChange&&this._onChange()}},{key:"validate",value:function(t){return this.required?bS(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&as("required",e.required?"":null)},inputs:{required:"required"},features:[_l([kM])]}),t}(),MM=function(){var t=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return a(n,[{key:"validate",value:function(t){return this.required?xS(t):null}}]),n}(SM);return t.\u0275fac=function(){var e;return function(n){return(e||(e=pi(t)))(n||t)}}(),t.\u0275dir=me({type:t,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&as("required",e.required?"":null)},features:[_l([CM]),qa]}),t}(),AM={provide:mS,useExisting:St(function(){return IM}),multi:!0},IM=function(){var t=function(){function t(){s(this,t),this._validator=kS}return a(t,[{key:"ngOnChanges",value:function(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())}},{key:"validate",value:function(t){return null!=this.maxlength?this._validator(t):null}},{key:"registerOnValidatorChange",value:function(t){this._onChange=t}},{key:"_createValidator",value:function(){this._validator=wS("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&as("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[_l([AM]),Te]}),t}(),OM=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[_M]]}),t}(),TM=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[OM]}),t}(),DM=function(){var t=function(){function t(){s(this,t)}return a(t,null,[{key:"withConfig",value:function(e){return{ngModule:t,providers:[{provide:bM,useValue:e.warnOnNgModelWithFormControl}]}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[OM]}),t}();function PM(t,e){1&t&&Ds(0)}var EM=["*"];function RM(t,e){}var LM=function(t){return{animationDuration:t}},NM=function(t,e){return{value:t,params:e}},FM=["tabBodyWrapper"],zM=["tabHeader"];function VM(t,e){}function BM(t,e){1&t&&ls(0,VM,0,0,"ng-template",9),2&t&&hs("cdkPortalOutlet",Is().$implicit.templateLabel)}function HM(t,e){1&t&&Qs(0),2&t&&Js(Is().$implicit.textLabel)}function jM(t,e){if(1&t){var n=_s();fs(0,"div",6),ks("click",function(){var t=en(n),e=t.$implicit,i=t.index,r=Is(),o=us(1);return r._handleClick(e,o,i)})("cdkFocusChange",function(t){var e=en(n).index;return Is()._tabFocusChanged(t,e)}),fs(1,"div",7),ls(2,BM,1,1,"ng-template",8),ls(3,HM,1,1,"ng-template",8),ps(),ps()}if(2&t){var i=e.$implicit,r=e.index,o=Is();Hs("mat-tab-label-active",o.selectedIndex==r),hs("id",o._getTabLabelId(r))("disabled",i.disabled)("matRippleDisabled",i.disabled||o.disableRipple),as("tabIndex",o._getTabIndex(i,r))("aria-posinset",r+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(r))("aria-selected",o.selectedIndex==r)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),Po(2),hs("ngIf",i.templateLabel),Po(1),hs("ngIf",!i.templateLabel)}}function GM(t,e){if(1&t){var n=_s();fs(0,"mat-tab-body",10),ks("_onCentered",function(){return en(n),Is()._removeTabBodyWrapperHeight()})("_onCentering",function(t){return en(n),Is()._setTabBodyWrapperHeight(t)}),ps()}if(2&t){var i=e.$implicit,r=e.index,o=Is();Hs("mat-tab-body-active",o.selectedIndex===r),hs("id",o._getTabContentId(r))("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",o.animationDuration),as("tabindex",null!=o.contentTabIndex&&o.selectedIndex===r?o.contentTabIndex:null)("aria-labelledby",o._getTabLabelId(r))}}var UM=["tabListContainer"],WM=["tabList"],YM=["nextPaginator"],qM=["previousPaginator"],XM=new _i("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(t){return{left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"}}}}),ZM=function(){var t=function(){function t(e,n,i,r){s(this,t),this._elementRef=e,this._ngZone=n,this._inkBarPositioner=i,this._animationMode=r}return a(t,[{key:"alignToElement",value:function(t){var e=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return e._setStyles(t)})}):this._setStyles(t)}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}},{key:"_setStyles",value:function(t){var e=this._inkBarPositioner(t),n=this._elementRef.nativeElement;n.style.left=e.left,n.style.width=e.width}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(kc),cs(XM),cs(yk,8))},t.\u0275dir=me({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&Hs("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t}(),KM=new _i("MatTabContent"),$M=new _i("MatTabLabel"),QM=function(){var t=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return n}(Dy);return t.\u0275fac=function(){var e;return function(n){return(e||(e=pi(t)))(n||t)}}(),t.\u0275dir=me({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[_l([{provide:$M,useExisting:t}]),qa]}),t}(),JM=Dk(function(){return function t(){s(this,t)}}()),tA=new _i("MAT_TAB_GROUP"),eA=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this))._viewContainerRef=t,r._closestTabGroup=i,r.textLabel="",r._contentPortal=null,r._stateChanges=new U,r.position=null,r.origin=null,r.isActive=!1,r}return a(n,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(t){this._setTemplateLabelInput(t)}},{key:"content",get:function(){return this._contentPortal}},{key:"ngOnChanges",value:function(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new Ay(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(t){t&&(this._templateLabel=t)}}]),n}(JM);return t.\u0275fac=function(e){return new(e||t)(cs(cu),cs(tA,8))},t.\u0275cmp=ce({type:t,selectors:[["mat-tab"]],contentQueries:function(t,e,n){var i;1&t&&(Ku(n,$M,5),Ku(n,KM,7,ru)),2&t&&(Xu(i=$u())&&(e.templateLabel=i.first),Xu(i=$u())&&(e._explicitContent=i.first))},viewQuery:function(t,e){var n;1&t&&Zu(ru,7),2&t&&Xu(n=$u())&&(e._implicitContent=n.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[qa,Te],ngContentSelectors:EM,decls:1,vars:0,template:function(t,e){1&t&&(Ts(),ls(0,PM,1,0,"ng-template"))},encapsulation:2}),t}(),nA={translateTab:Ab("translateTab",[Db("center, void, left-origin-center, right-origin-center",Tb({transform:"none"})),Db("left",Tb({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Db("right",Tb({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Eb("* => left, * => right, left => center, right => center",Ib("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Eb("void => left-origin-center",[Tb({transform:"translate3d(-100%, 0, 0)"}),Ib("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Eb("void => right-origin-center",[Tb({transform:"translate3d(100%, 0, 0)"}),Ib("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},iA=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this,t,i,o))._host=r,a._centeringSub=A.EMPTY,a._leavingSub=A.EMPTY,a}return a(n,[{key:"ngOnInit",value:function(){var t=this;r(i(n.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe(Vf(this._host._isCenterPosition(this._host._position))).subscribe(function(e){e&&!t.hasAttached()&&t.attach(t._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){t.detach()})}},{key:"ngOnDestroy",value:function(){r(i(n.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),n}(Py);return t.\u0275fac=function(e){return new(e||t)(cs(kl),cs(cu),cs(St(function(){return oA})),cs(oh))},t.\u0275dir=me({type:t,selectors:[["","matTabBodyHost",""]],features:[qa]}),t}(),rA=function(){var t=function(){function t(e,n,i){var r=this;s(this,t),this._elementRef=e,this._dir=n,this._dirChangeSubscription=A.EMPTY,this._translateTabComplete=new U,this._onCentering=new Nu,this._beforeCentering=new Nu,this._afterLeavingCenter=new Nu,this._onCentered=new Nu(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe(function(t){r._computePositionAnimationState(t),i.markForCheck()})),this._translateTabComplete.pipe(Fv(function(t,e){return t.fromState===e.fromState&&t.toState===e.toState})).subscribe(function(t){r._isCenterPosition(t.toState)&&r._isCenterPosition(r._position)&&r._onCentered.emit(),r._isCenterPosition(t.fromState)&&!r._isCenterPosition(r._position)&&r._afterLeavingCenter.emit()})}return a(t,[{key:"position",set:function(t){this._positionIndex=t,this._computePositionAnimationState()}},{key:"ngOnInit",value:function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}},{key:"ngOnDestroy",value:function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}},{key:"_onTranslateTabStarted",value:function(t){var e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t}},{key:"_computePositionAnimationState",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(t){var e=this._getLayoutDirection();return"ltr"==e&&t<=0||"rtl"==e&&t>0?"left-origin-center":"right-origin-center"}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(py,8),cs(Jl))},t.\u0275dir=me({type:t,inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t}(),oA=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r){return s(this,n),e.call(this,t,i,r)}return n}(rA);return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(py,8),cs(Jl))},t.\u0275cmp=ce({type:t,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var n;1&t&&Zu(Py,5),2&t&&Xu(n=$u())&&(e._portalHost=n.first)},hostAttrs:[1,"mat-tab-body"],features:[qa],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(fs(0,"div",0,1),ks("@translateTab.start",function(t){return e._onTranslateTabStarted(t)})("@translateTab.done",function(t){return e._translateTabComplete.next(t)}),ls(2,RM,0,0,"ng-template",2),ps()),2&t&&hs("@translateTab",Mu(3,NM,e._position,Su(1,LM,e.animationDuration)))},directives:[iA],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:[nA.translateTab]}}),t}(),aA=new _i("MAT_TABS_CONFIG"),sA=0,lA=function t(){s(this,t)},uA=Pk(Ek(function(){return function t(e){s(this,t),this._elementRef=e}}()),"primary"),cA=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a,l;return s(this,n),(a=e.call(this,t))._changeDetectorRef=i,a._animationMode=o,a._tabs=new zu,a._indexToSelect=0,a._tabBodyWrapperHeight=0,a._tabsSubscription=A.EMPTY,a._tabLabelSubscription=A.EMPTY,a._selectedIndex=null,a.headerPosition="above",a.selectedIndexChange=new Nu,a.focusChange=new Nu,a.animationDone=new Nu,a.selectedTabChange=new Nu(!0),a._groupId=sA++,a.animationDuration=r&&r.animationDuration?r.animationDuration:"500ms",a.disablePagination=!(!r||null==r.disablePagination)&&r.disablePagination,a.dynamicHeight=!(!r||null==r.dynamicHeight)&&r.dynamicHeight,a.contentTabIndex=null!==(l=null==r?void 0:r.contentTabIndex)&&void 0!==l?l:null,a}return a(n,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(t){this._dynamicHeight=vv(t)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){this._indexToSelect=yv(t,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t}},{key:"contentTabIndex",get:function(){return this._contentTabIndex},set:function(t){this._contentTabIndex=yv(t,null)}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(t){var e=this._elementRef.nativeElement;e.classList.remove("mat-background-".concat(this.backgroundColor)),t&&e.classList.add("mat-background-".concat(t)),this._backgroundColor=t}},{key:"ngAfterContentChecked",value:function(){var t=this,e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){var n=null==this._selectedIndex;if(!n){this.selectedTabChange.emit(this._createChangeEvent(e));var i=this._tabBodyWrapper.nativeElement;i.style.minHeight=i.clientHeight+"px"}Promise.resolve().then(function(){t._tabs.forEach(function(t,n){return t.isActive=n===e}),n||(t.selectedIndexChange.emit(e),t._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(n,i){n.position=i-e,null==t._selectedIndex||0!=n.position||n.origin||(n.origin=e-t._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var t=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){if(t._clampTabIndex(t._indexToSelect)===t._selectedIndex)for(var e=t._tabs.toArray(),n=0;n.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;outline:0;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}(),dA=Dk(function(){return function t(){s(this,t)}}()),fA=function(){var t=function(t){u(n,t);var e=p(n);function n(t){var i;return s(this,n),(i=e.call(this)).elementRef=t,i}return a(n,[{key:"focus",value:function(){this.elementRef.nativeElement.focus()}},{key:"getOffsetLeft",value:function(){return this.elementRef.nativeElement.offsetLeft}},{key:"getOffsetWidth",value:function(){return this.elementRef.nativeElement.offsetWidth}}]),n}(dA);return t.\u0275fac=function(e){return new(e||t)(cs(Al))},t.\u0275dir=me({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(t,e){2&t&&(as("aria-disabled",!!e.disabled),Hs("mat-tab-disabled",e.disabled))},inputs:{disabled:"disabled"},features:[qa]}),t}(),pA=uy({passive:!0}),gA=function(){var t=function(){function t(e,n,i,r,o,a,l){var u=this;s(this,t),this._elementRef=e,this._changeDetectorRef=n,this._viewportRuler=i,this._dir=r,this._ngZone=o,this._platform=a,this._animationMode=l,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new U,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new U,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new Nu,this.indexFocused=new Nu,o.runOutsideAngular(function(){Cv(e.nativeElement,"mouseleave").pipe(Xv(u._destroyed)).subscribe(function(){u._stopInterval()})})}return a(t,[{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(t){t=yv(t),this._selectedIndex!=t&&(this._selectedIndexChanged=!0,this._selectedIndex=t,this._keyManager&&this._keyManager.updateActiveItem(t))}},{key:"ngAfterViewInit",value:function(){var t=this;Cv(this._previousPaginator.nativeElement,"touchstart",pA).pipe(Xv(this._destroyed)).subscribe(function(){t._handlePaginatorPress("before")}),Cv(this._nextPaginator.nativeElement,"touchstart",pA).pipe(Xv(this._destroyed)).subscribe(function(){t._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var t=this,e=this._dir?this._dir.change:Ed("ltr"),n=this._viewportRuler.change(150),i=function(){t.updatePagination(),t._alignInkBarToSelectedTab()};this._keyManager=new K_(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),"undefined"!=typeof requestAnimationFrame?requestAnimationFrame(i):i(),dt(e,n,this._items.changes).pipe(Xv(this._destroyed)).subscribe(function(){t._ngZone.run(function(){return Promise.resolve().then(i)}),t._keyManager.withHorizontalOrientation(t._getLayoutDirection())}),this._keyManager.change.pipe(Xv(this._destroyed)).subscribe(function(e){t.indexFocused.emit(e),t._setTabFocus(e)})}},{key:"ngAfterContentChecked",value:function(){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())}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}},{key:"_handleKeydown",value:function(t){if(!Wy(t))switch(t.keyCode){case Ny:case zy:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(t));break;default:this._keyManager.onKeydown(t)}}},{key:"_onContentChanges",value:function(){var t=this,e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(function(){t.updatePagination(),t._alignInkBarToSelectedTab(),t._changeDetectorRef.markForCheck()}))}},{key:"updatePagination",value:function(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}},{key:"focusIndex",get:function(){return this._keyManager?this._keyManager.activeItemIndex:0},set:function(t){this._isValidIndex(t)&&this.focusIndex!==t&&this._keyManager&&this._keyManager.setActiveItem(t)}},{key:"_isValidIndex",value:function(t){if(!this._items)return!0;var e=this._items?this._items.toArray()[t]:null;return!!e&&!e.disabled}},{key:"_setTabFocus",value:function(t){if(this._showPaginationControls&&this._scrollToLabel(t),this._items&&this._items.length){this._items.toArray()[t].focus();var e=this._tabListContainer.nativeElement,n=this._getLayoutDirection();e.scrollLeft="ltr"==n?0:e.scrollWidth-e.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var t=this.scrollDistance,e="ltr"===this._getLayoutDirection()?-t:t;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(e),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(t){this._scrollTo(t)}},{key:"_scrollHeader",value:function(t){return this._scrollTo(this._scrollDistance+("before"==t?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(t){this._stopInterval(),this._scrollHeader(t)}},{key:"_scrollToLabel",value:function(t){if(!this.disablePagination){var e=this._items?this._items.toArray()[t]:null;if(e){var n,i,r=this._tabListContainer.nativeElement.offsetWidth,o=e.elementRef.nativeElement,a=o.offsetLeft,s=o.offsetWidth;"ltr"==this._getLayoutDirection()?i=(n=a)+s:n=(i=this._tabList.nativeElement.offsetWidth-a)-s;var l=this.scrollDistance,u=this.scrollDistance+r;nu&&(this.scrollDistance+=i-u+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t}}},{key:"_checkScrollingControls",value:function(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}},{key:"_getMaxScrollDistance",value:function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var 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()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(t,e){var n=this;e&&null!=e.button&&0!==e.button||(this._stopInterval(),Wv(650,100).pipe(Xv(dt(this._stopScrolling,this._destroyed))).subscribe(function(){var e=n._scrollHeader(t),i=e.distance;(0===i||i>=e.maxScrollDistance)&&n._stopInterval()}))}},{key:"_scrollTo",value:function(t){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(Jl),cs(wy),cs(py,8),cs(kc),cs(oy),cs(yk,8))},t.\u0275dir=me({type:t,inputs:{disablePagination:"disablePagination"}}),t}(),mA=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l,u){var c;return s(this,n),(c=e.call(this,t,i,r,o,a,l,u))._disableRipple=!1,c}return a(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(t){this._disableRipple=vv(t)}},{key:"_itemSelected",value:function(t){t.preventDefault()}}]),n}(gA);return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(Jl),cs(wy),cs(py,8),cs(kc),cs(oy),cs(yk,8))},t.\u0275dir=me({type:t,inputs:{disableRipple:"disableRipple"},features:[qa]}),t}(),vA=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l,u){return s(this,n),e.call(this,t,i,r,o,a,l,u)}return n}(mA);return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(Jl),cs(wy),cs(py,8),cs(kc),cs(oy),cs(yk,8))},t.\u0275cmp=ce({type:t,selectors:[["mat-tab-header"]],contentQueries:function(t,e,n){var i;1&t&&Ku(n,fA,4),2&t&&Xu(i=$u())&&(e._items=i)},viewQuery:function(t,e){var n;1&t&&(Zu(ZM,7),Zu(UM,7),Zu(WM,7),Zu(YM,5),Zu(qM,5)),2&t&&(Xu(n=$u())&&(e._inkBar=n.first),Xu(n=$u())&&(e._tabListContainer=n.first),Xu(n=$u())&&(e._tabList=n.first),Xu(n=$u())&&(e._nextPaginator=n.first),Xu(n=$u())&&(e._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&Hs("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[qa],ngContentSelectors:EM,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&&(Ts(),fs(0,"div",0,1),ks("click",function(){return e._handlePaginatorClick("before")})("mousedown",function(t){return e._handlePaginatorPress("before",t)})("touchend",function(){return e._stopInterval()}),gs(2,"div",2),ps(),fs(3,"div",3,4),ks("keydown",function(t){return e._handleKeydown(t)}),fs(5,"div",5,6),ks("cdkObserveContent",function(){return e._onContentChanges()}),fs(7,"div",7),Ds(8),ps(),gs(9,"mat-ink-bar"),ps(),ps(),fs(10,"div",8,9),ks("mousedown",function(t){return e._handlePaginatorPress("after",t)})("click",function(){return e._handlePaginatorClick("after")})("touchend",function(){return e._stopInterval()}),gs(12,"div",2),ps()),2&t&&(Hs("mat-tab-header-pagination-disabled",e._disableScrollBefore),hs("matRippleDisabled",e._disableScrollBefore||e.disableRipple),Po(5),Hs("_mat-animation-noopable","NoopAnimations"===e._animationMode),Po(5),Hs("mat-tab-header-pagination-disabled",e._disableScrollAfter),hs("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[aC,N_,ZM],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}(),yA=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[Yh,Tk,Ey,sC,F_,wb],Tk]}),t}();function _A(t,e){if(1&t){var n=_s();fs(0,"uds-field-text",2),ks("changed",function(t){return en(n),Is().changed.emit(t)}),ps()}2&t&&hs("field",Is().field)}function bA(t,e){if(1&t){var n=_s();fs(0,"uds-field-textbox",2),ks("changed",function(t){return en(n),Is().changed.emit(t)}),ps()}2&t&&hs("field",Is().field)}function xA(t,e){if(1&t){var n=_s();fs(0,"uds-field-numeric",2),ks("changed",function(t){return en(n),Is().changed.emit(t)}),ps()}2&t&&hs("field",Is().field)}function wA(t,e){if(1&t){var n=_s();fs(0,"uds-field-password",2),ks("changed",function(t){return en(n),Is().changed.emit(t)}),ps()}2&t&&hs("field",Is().field)}function kA(t,e){if(1&t){var n=_s();fs(0,"uds-field-hidden",2),ks("changed",function(t){return en(n),Is().changed.emit(t)}),ps()}2&t&&hs("field",Is().field)}function CA(t,e){if(1&t){var n=_s();fs(0,"uds-field-choice",2),ks("changed",function(t){return en(n),Is().changed.emit(t)}),ps()}2&t&&hs("field",Is().field)}function SA(t,e){if(1&t){var n=_s();fs(0,"uds-field-multichoice",2),ks("changed",function(t){return en(n),Is().changed.emit(t)}),ps()}2&t&&hs("field",Is().field)}function MA(t,e){if(1&t){var n=_s();fs(0,"uds-field-editlist",2),ks("changed",function(t){return en(n),Is().changed.emit(t)}),ps()}2&t&&hs("field",Is().field)}function AA(t,e){if(1&t){var n=_s();fs(0,"uds-field-checkbox",2),ks("changed",function(t){return en(n),Is().changed.emit(t)}),ps()}2&t&&hs("field",Is().field)}function IA(t,e){if(1&t){var n=_s();fs(0,"uds-field-imgchoice",2),ks("changed",function(t){return en(n),Is().changed.emit(t)}),ps()}2&t&&hs("field",Is().field)}function OA(t,e){if(1&t){var n=_s();fs(0,"uds-field-date",2),ks("changed",function(t){return en(n),Is().changed.emit(t)}),ps()}2&t&&hs("field",Is().field)}function TA(t,e){if(1&t){var n=_s();fs(0,"uds-field-tags",2),ks("changed",function(t){return en(n),Is().changed.emit(t)}),ps()}2&t&&hs("field",Is().field)}var DA=function(){function t(){this.changed=new Nu,this.udsGuiFieldType=oS}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:13,vars:14,consts:[["matTooltipShowDelay","1000",1,"field",3,"ngSwitch","matTooltip"],[3,"field","changed",4,"ngSwitchCase"],[3,"field","changed"]],template:function(t,e){1&t&&(fs(0,"div",0),ls(1,_A,1,1,"uds-field-text",1),ls(2,bA,1,1,"uds-field-textbox",1),ls(3,xA,1,1,"uds-field-numeric",1),ls(4,wA,1,1,"uds-field-password",1),ls(5,kA,1,1,"uds-field-hidden",1),ls(6,CA,1,1,"uds-field-choice",1),ls(7,SA,1,1,"uds-field-multichoice",1),ls(8,MA,1,1,"uds-field-editlist",1),ls(9,AA,1,1,"uds-field-checkbox",1),ls(10,IA,1,1,"uds-field-imgchoice",1),ls(11,OA,1,1,"uds-field-date",1),ls(12,TA,1,1,"uds-field-tags",1),ps()),2&t&&(hs("ngSwitch",e.field.gui.type)("matTooltip",e.field.gui.tooltip),Po(1),hs("ngSwitchCase",e.udsGuiFieldType.TEXT),Po(1),hs("ngSwitchCase",e.udsGuiFieldType.TEXTBOX),Po(1),hs("ngSwitchCase",e.udsGuiFieldType.NUMERIC),Po(1),hs("ngSwitchCase",e.udsGuiFieldType.PASSWORD),Po(1),hs("ngSwitchCase",e.udsGuiFieldType.HIDDEN),Po(1),hs("ngSwitchCase",e.udsGuiFieldType.CHOICE),Po(1),hs("ngSwitchCase",e.udsGuiFieldType.MULTI_CHOICE),Po(1),hs("ngSwitchCase",e.udsGuiFieldType.EDITLIST),Po(1),hs("ngSwitchCase",e.udsGuiFieldType.CHECKBOX),Po(1),hs("ngSwitchCase",e.udsGuiFieldType.IMAGECHOICE),Po(1),hs("ngSwitchCase",e.udsGuiFieldType.DATE),Po(1),hs("ngSwitchCase",e.udsGuiFieldType.TAGLIST))},styles:["uds-field[_ngcontent-%COMP%]{flex:1 50%} .mat-form-field{width:calc(100% - 1px)} .mat-form-field-flex{padding-top:0!important} .mat-tooltip{font-size:.9rem!important;margin:0!important;max-width:26em!important}"]}),t}();function PA(t,e){1&t&&Qs(0),2&t&&tl(" ",Is().$implicit," ")}function EA(t,e){if(1&t){var n=_s();fs(0,"uds-field",7),ks("changed",function(t){return en(n),Is(3).changed.emit(t)}),ps()}2&t&&hs("field",e.$implicit)}function RA(t,e){if(1&t&&(fs(0,"mat-tab"),ls(1,PA,1,1,"ng-template",4),fs(2,"div",5),ls(3,EA,1,1,"uds-field",6),ps(),ps()),2&t){var n=e.$implicit,i=Is(2);Po(3),hs("ngForOf",i.fieldsByTab[n])}}function LA(t,e){if(1&t&&(fs(0,"mat-tab-group",2),ls(1,RA,4,1,"mat-tab",3),ps()),2&t){var n=Is();hs("disableRipple",!0)("@.disabled",!0),Po(1),hs("ngForOf",n.tabs)}}function NA(t,e){if(1&t&&(fs(0,"div"),gs(1,"uds-field",8),ps()),2&t){var n=e.$implicit;Po(1),hs("field",n)}}function FA(t,e){1&t&&ls(0,NA,2,1,"div",3),2&t&&hs("ngForOf",Is().fields)}var zA=django.gettext("Main"),VA=function(){function t(){this.changed=new Nu}return t.prototype.ngOnInit=function(){var t=this;this.tabs=new Array,this.fieldsByTab={},this.fields.forEach(function(e){var n=void 0===e.gui.tab?zA:e.gui.tab;t.tabs.includes(n)||(t.tabs.push(n),t.fieldsByTab[n]=new Array),t.fieldsByTab[n].push(e)})},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-form"]],inputs:{fields:"fields"},outputs:{changed:"changed"},decls:3,vars:2,consts:[[3,"disableRipple",4,"ngIf","ngIfElse"],["onlyone",""],[3,"disableRipple"],[4,"ngFor","ngForOf"],["mat-tab-label",""],[1,"content"],[3,"field","changed",4,"ngFor","ngForOf"],[3,"field","changed"],[3,"field"]],template:function(t,e){if(1&t&&(ls(0,LA,2,3,"mat-tab-group",0),ls(1,FA,1,1,"ng-template",null,1,ec)),2&t){var n=us(2);hs("ngIf",e.tabs.length>1)("ngIfElse",n)}},directives:[Dh,hA,Oh,eA,QM,DA],styles:[".content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap} .mat-form-field-wrapper{padding-bottom:1em} .mat-tab-label{height:32px!important}"]}),t}();function BA(t,e){if(1&t){var n=_s();fs(0,"button",10),ks("click",function(){return en(n),Is().customButtonClicked()}),Qs(1),ps()}if(2&t){var i=Is();Po(1),Js(i.data.customButton)}}var HA,jA=function(){function t(t,e){this.dialogRef=t,this.data=e,this.onEvent=new Nu(!0),this.saving=!1}return t.prototype.ngOnInit=function(){this.onEvent.emit({type:"init",data:null,dialog:this.dialogRef})},t.prototype.changed=function(t){this.onEvent.emit({type:"changed",data:t,dialog:this.dialogRef})},t.prototype.getFields=function(){var t={},e=[];return this.data.guiFields.forEach(function(n){var i=void 0!==n.values?n.values:n.value;n.gui.required&&0!==i&&(!i||i instanceof Array&&0===i.length)&&e.push(n.gui.label),"number"==typeof i&&(i=i.toString()),t[n.name]=i}),{data:t,errors:e}},t.prototype.save=function(){var t=this.getFields();t.errors.length>0?this.data.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+t.errors.join(", ")):this.onEvent.emit({data:t.data,type:"save",dialog:this.dialogRef})},t.prototype.customButtonClicked=function(){var t=this.getFields();this.onEvent.emit({data:t.data,type:this.data.customButton,errors:t.errors,dialog:this.dialogRef})},t.\u0275fac=function(e){return new(e||t)(cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-modal-form"]],decls:17,vars:7,consts:[["mat-dialog-title","",3,"innerHtml"],["vc",""],["autocomplete","off"],[3,"fields","changed"],[1,"buttons"],[1,"group1"],["ngClass","custom","mat-raised-button","",3,"click",4,"ngIf"],[1,"group2"],["mat-raised-button","",3,"disabled","click"],["mat-raised-button","","color","primary",3,"disabled","click"],["ngClass","custom","mat-raised-button","",3,"click"]],template:function(t,e){1&t&&(gs(0,"h4",0),Tu(1,"safeHtml"),fs(2,"mat-dialog-content",null,1),fs(4,"form",2),fs(5,"uds-form",3),ks("changed",function(t){return e.changed(t)}),ps(),ps(),ps(),fs(6,"mat-dialog-actions"),fs(7,"div",4),fs(8,"div",5),ls(9,BA,2,1,"button",6),ps(),fs(10,"div",7),fs(11,"button",8),ks("click",function(){return e.dialogRef.close()}),fs(12,"uds-translate"),Qs(13,"Discard & close"),ps(),ps(),fs(14,"button",9),ks("click",function(){return e.save()}),fs(15,"uds-translate"),Qs(16,"Save"),ps(),ps(),ps(),ps(),ps()),2&t&&(hs("innerHtml",Du(1,5,e.data.title),Ir),Po(5),hs("fields",e.data.guiFields),Po(4),hs("ngIf",void 0!==e.data.customButton),Po(2),hs("disabled",e.saving),Po(3),hs("disabled",e.saving))},directives:[zC,VC,mM,HS,dM,VA,BC,Dh,ZC,QC,Ah],pipes:[JC],styles:["h4[_ngcontent-%COMP%]{margin-bottom:0}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%} uds-field{flex:1 100%}button.custom[_ngcontent-%COMP%]{background-color:#4682b4;color:#fff}"]}),t}(),GA=function(){function t(t){this.gui=t}return t.prototype.modalForm=function(t,e,n,i){void 0===n&&(n=null),e.sort(function(t,e){return t.gui.order>e.gui.order?1:-1});var r=null!=n;n=r?n:{},e.forEach(function(t){!1!==r&&void 0!==t.gui.rdonly||(t.gui.rdonly=!1),t.gui.type===oS.TEXT&&t.gui.multiline&&(t.gui.type=oS.TEXTBOX);var e=n[t.name];void 0!==e&&(e instanceof Array?(t.values=new Array,e.forEach(function(e){return t.values.push(e)})):t.value=e)});var o=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(jA,{position:{top:"64px"},width:o,data:{title:t,guiFields:e,customButton:i,gui:this.gui},disableClose:!0}).componentInstance.onEvent},t.prototype.typedForm=function(t,e,n,i,r,o,a){var s=this;a=a||{};var l=new Nu,u=n?django.gettext("Test"):void 0,c={},h={},d=function(e){h.hasOwnProperty(e.name)&&""!==e.value&&void 0!==e.value&&s.executeCallback(t,e,c)};return a.snack||(a.snack=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss"))),t.table.rest.gui(o).subscribe(function(n){a.snack.dismiss(),void 0!==i&&i.forEach(function(t){n.push(t)}),n.forEach(function(t){c[t.name]=t,void 0!==t.gui.fills&&(h[t.name]=t.gui.fills)}),s.modalForm(e,n,r,u).subscribe(function(e){switch(e.data&&(e.data.data_type=o),e.type){case u:if(e.errors.length>0)return void s.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+e.errors.join(", "));s.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),t.table.rest.test(o,e.data).subscribe(function(t){"ok"!==t?s.gui.snackbar.open(django.gettext("Test failed:")+" "+t,django.gettext("dismiss")):s.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})});break;case"changed":case"init":if(null===e.data)for(var i=0,h=n;i"+i.join(", ")+"";this.gui.yesno(e,o,!0).subscribe(function(e){if(e){var i=r.length,o=function(){n.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()};r.forEach(function(e){t.table.rest.delete(e).subscribe(function(t){0==--i&&o()},function(t){0==--i&&o()})})}})},t.prototype.executeCallback=function(t,e,n,i){var r=this;void 0===i&&(i={});var o=new Array;e.gui.fills.parameters.forEach(function(t){o.push(t+"="+encodeURIComponent(n[t].value))}),t.table.rest.callback(e.gui.fills.callbackName,o.join("&")).subscribe(function(e){var o=new Array;e.forEach(function(t){var e=n[t.name];void 0!==e&&(void 0!==e.gui.fills&&o.push(e),e.gui.values.length=0,t.values.forEach(function(t){return e.gui.values.push(t)}),e.value||(e.value=t.values.length>0?t.values[0].id:""))}),o.forEach(function(e){void 0===i[e.name]&&(i[e.name]=!0,r.executeCallback(t,e,n,i))})})},t}(),UA=function(){function t(t,e){this.dialog=t,this.snackbar=e,this.forms=new GA(this)}return t.prototype.alert=function(t,e,n,i){void 0===n&&(n=0);var r=i||(window.innerWidth<800?"80%":"40%");return this.dialog.open(rS,{width:r,data:{title:t,body:e,autoclose:n,type:iS.alert},disableClose:!0}).componentInstance.yesno},t.prototype.yesno=function(t,e,n){void 0===n&&(n=!1);var i=window.innerWidth<800?"80%":"40%";return this.dialog.open(rS,{width:i,data:{title:t,body:e,type:iS.yesno,warnOnYes:n},disableClose:!0}).componentInstance.yesno},t.prototype.icon=function(t,e){return void 0===e&&(e="24px"),''},t}(),WA=function(t){return t.NUMERIC="numeric",t.ALPHANUMERIC="alphanumeric",t.DATETIME="datetime",t.DATETIMESEC="datetimesec",t.DATE="date",t.TIME="time",t.ICON="iconType",t.CALLBACK="callback",t.DICTIONARY="dict",t.IMAGE="image",t}({}),YA=function(t){return t[t.ALWAYS=0]="ALWAYS",t[t.SINGLE_SELECT=1]="SINGLE_SELECT",t[t.MULTI_SELECT=2]="MULTI_SELECT",t[t.ONLY_MENU=3]="ONLY_MENU",t[t.ACCELERATOR=4]="ACCELERATOR",t}({}),qA="provider",XA="service",ZA="pool",KA="user",$A="group",QA="transport",JA="osmanager",tI="calendar",eI="poolgroup",nI={provider:django.gettext("provider"),service:django.gettext("service"),pool:django.gettext("service pool"),authenticator:django.gettext("authenticator"),user:django.gettext("user"),group:django.gettext("group"),transport:django.gettext("transport"),osmanager:django.gettext("OS manager"),calendar:django.gettext("calendar"),poolgroup:django.gettext("pool group")},iI=function(){function t(t){this.router=t}return t.getGotoButton=function(t,e,n){return{id:t,html:'link'+django.gettext("Go to")+" "+nI[t]+"",type:YA.ACCELERATOR,acceleratorProperties:[e,n]}},t.prototype.gotoProvider=function(t){this.router.navigate(void 0!==t?["providers",t]:["providers"])},t.prototype.gotoService=function(t,e){this.router.navigate(void 0!==e?["providers",t,"detail",e]:["providers",t,"detail"])},t.prototype.gotoServicePool=function(t){this.router.navigate(["pools","service-pools",t])},t.prototype.gotoServicePoolDetail=function(t){this.router.navigate(["pools","service-pools",t,"detail"])},t.prototype.gotoMetapool=function(t){this.router.navigate(["pools","meta-pools",t])},t.prototype.gotoMetapoolDetail=function(t){this.router.navigate(["pools","meta-pools",t,"detail"])},t.prototype.gotoCalendar=function(t){this.router.navigate(["pools","calendars",t])},t.prototype.gotoCalendarDetail=function(t){this.router.navigate(["pools","calendars",t,"detail"])},t.prototype.gotoAccount=function(t){this.router.navigate(["pools","accounts",t])},t.prototype.gotoAccountDetail=function(t){this.router.navigate(["pools","accounts",t,"detail"])},t.prototype.gotoPoolGroup=function(t){this.router.navigate(["pools","pool-groups",t=t||""])},t.prototype.gotoAuthenticator=function(t){this.router.navigate(["authenticators",t])},t.prototype.gotoAuthenticatorDetail=function(t){this.router.navigate(["authenticators",t,"detail"])},t.prototype.gotoUser=function(t,e){this.router.navigate(["authenticators",t,"detail","users",e])},t.prototype.gotoGroup=function(t,e){this.router.navigate(["authenticators",t,"detail","groups",e])},t.prototype.gotoTransport=function(t){this.router.navigate(["transports",t])},t.prototype.gotoOSManager=function(t){this.router.navigate(["osmanagers",t])},t.prototype.goto=function(t,e,n){var i=function(t){var i=e;if(n[t].split(".").forEach(function(t){return i=i[t]}),!i)throw new Error("not going :)");return i};try{switch(t){case qA:this.gotoProvider(i(0));break;case XA:this.gotoService(i(0),i(1));break;case ZA:this.gotoServicePool(i(0));break;case"authenticator":this.gotoAuthenticator(i(0));break;case KA:this.gotoUser(i(0),i(1));break;case $A:this.gotoGroup(i(0),i(1));break;case QA:this.gotoTransport(i(0));break;case JA:this.gotoOSManager(i(0));break;case tI:this.gotoCalendar(i(0));break;case eI:this.gotoPoolGroup(i(0))}}catch(r){}},t}(),rI=new Set,oI=function(){var t=function(){function t(e){s(this,t),this._platform=e,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):aI}return a(t,[{key:"matchMedia",value:function(t){return this._platform.WEBKIT&&function(t){if(!rI.has(t))try{HA||((HA=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(HA)),HA.sheet&&(HA.sheet.insertRule("@media ".concat(t," {.fx-query-test{ }}"),0),rI.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(oy))},t.\u0275prov=Pt({factory:function(){return new t(Fi(oy))},token:t,providedIn:"root"}),t}();function aI(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var sI=function(){var t=function(){function t(e,n){s(this,t),this._mediaMatcher=e,this._zone=n,this._queries=new Map,this._destroySubject=new U}return a(t,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(t){var e=this;return lI(bv(t)).some(function(t){return e._registerQuery(t).mql.matches})}},{key:"observe",value:function(t){var e=this,n=kf(lI(bv(t)).map(function(t){return e._registerQuery(t).observable}));return(n=If(n.pipe(Nf(1)),n.pipe(D_(1),A_(0)))).pipe(q(function(t){var e={matches:!1,breakpoints:{}};return t.forEach(function(t){var n=t.matches,i=t.query;e.matches=e.matches||n,e.breakpoints[i]=n}),e}))}},{key:"_registerQuery",value:function(t){var e=this;if(this._queries.has(t))return this._queries.get(t);var n=this._mediaMatcher.matchMedia(t),i={observable:new V(function(t){var i=function(n){return e._zone.run(function(){return t.next(n)})};return n.addListener(i),function(){n.removeListener(i)}}).pipe(Vf(n),q(function(e){return{query:t,matches:e.matches}}),Xv(this._destroySubject)),mql:n};return this._queries.set(t,i),i}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(oI),Fi(kc))},t.\u0275prov=Pt({factory:function(){return new t(Fi(oI),Fi(kc))},token:t,providedIn:"root"}),t}();function lI(t){return t.map(function(t){return t.split(",")}).reduce(function(t,e){return t.concat(e)}).map(function(t){return t.trim()})}function uI(t,e){if(1&t){var n=_s();fs(0,"div",1),fs(1,"button",2),ks("click",function(){return en(n),Is().action()}),Qs(2),ps(),ps()}if(2&t){var i=Is();Po(2),Js(i.data.action)}}function cI(t,e){}var hI=new _i("MatSnackBarData"),dI=function t(){s(this,t),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"},fI=Math.pow(2,31)-1,pI=function(){function t(e,n){var i=this;s(this,t),this._overlayRef=n,this._afterDismissed=new U,this._afterOpened=new U,this._onAction=new U,this._dismissedByAction=!1,this.containerInstance=e,this.onAction().subscribe(function(){return i.dismiss()}),e._onExit.subscribe(function(){return i._finishDismiss()})}return a(t,[{key:"dismiss",value:function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}},{key:"dismissWithAction",value:function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete()),clearTimeout(this._durationTimeoutId)}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(t){var e=this;this._durationTimeoutId=setTimeout(function(){return e.dismiss()},Math.min(t,fI))}},{key:"_open",value:function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}},{key:"_finishDismiss",value:function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}},{key:"afterDismissed",value:function(){return this._afterDismissed}},{key:"afterOpened",value:function(){return this.containerInstance._onEnter}},{key:"onAction",value:function(){return this._onAction}}]),t}(),gI=function(){var t=function(){function t(e,n){s(this,t),this.snackBarRef=e,this.data=n}return a(t,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(pI),cs(hI))},t.\u0275cmp=ce({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,e){1&t&&(fs(0,"span"),Qs(1),ps(),ls(2,uI,3,1,"div",0)),2&t&&(Po(1),Js(e.data.message),Po(1),hs("ngIf",e.hasAction))},directives:[Dh,ZC],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}\n"],encapsulation:2,changeDetection:0}),t}(),mI={snackBarState:Ab("state",[Db("void, hidden",Tb({transform:"scale(0.8)",opacity:0})),Db("visible",Tb({transform:"scale(1)",opacity:1})),Eb("* => visible",Ib("150ms cubic-bezier(0, 0, 0.2, 1)")),Eb("* => void, * => hidden",Ib("75ms cubic-bezier(0.4, 0.0, 1, 1)",Tb({opacity:0})))])},vI=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a){var l;return s(this,n),(l=e.call(this))._ngZone=t,l._elementRef=i,l._changeDetectorRef=r,l._platform=o,l.snackBarConfig=a,l._announceDelay=150,l._destroyed=!1,l._onAnnounce=new U,l._onExit=new U,l._onEnter=new U,l._animationState="void",l.attachDomPortal=function(t){return l._assertNotAttached(),l._applySnackBarClasses(),l._portalOutlet.attachDomPortal(t)},l._live="assertive"!==a.politeness||a.announcementMessage?"off"===a.politeness?"off":"polite":"assertive",l._platform.FIREFOX&&("polite"===l._live&&(l._role="status"),"assertive"===l._live&&(l._role="alert")),l}return a(n,[{key:"attachComponentPortal",value:function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)}},{key:"attachTemplatePortal",value:function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)}},{key:"onAnimationEnd",value:function(t){var e=t.toState;if(("void"===e&&"void"!==t.fromState||"hidden"===e)&&this._completeExit(),"visible"===e){var n=this._onEnter;this._ngZone.run(function(){n.next(),n.complete()})}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}},{key:"exit",value:function(){return this._animationState="hidden",this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var t=this;this._ngZone.onMicrotaskEmpty.pipe(Nf(1)).subscribe(function(){t._onExit.next(),t._onExit.complete()})}},{key:"_applySnackBarClasses",value:function(){var t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach(function(e){return t.classList.add(e)}):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_screenReaderAnnounce",value:function(){var t=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){t._announceTimeoutId=setTimeout(function(){var e=t._elementRef.nativeElement.querySelector("[aria-hidden]"),n=t._elementRef.nativeElement.querySelector("[aria-live]");if(e&&n){var i=null;t._platform.isBrowser&&document.activeElement instanceof HTMLElement&&e.contains(document.activeElement)&&(i=document.activeElement),e.removeAttribute("aria-hidden"),n.appendChild(e),null==i||i.focus(),t._onAnnounce.next(),t._onAnnounce.complete()}},t._announceDelay)})}}]),n}(Oy);return t.\u0275fac=function(e){return new(e||t)(cs(kc),cs(Al),cs(Jl),cs(oy),cs(dI))},t.\u0275cmp=ce({type:t,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var n;1&t&&Zu(Py,7),2&t&&Xu(n=$u())&&(e._portalOutlet=n.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(t,e){1&t&&Cs("@state.done",function(t){return e.onAnimationEnd(t)}),2&t&&il("@state",e._animationState)},features:[qa],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,e){1&t&&(fs(0,"div",0),ls(1,cI,0,0,"ng-template",1),ps(),gs(2,"div")),2&t&&(Po(2),as("aria-live",e._live)("role",e._role))},directives:[Py],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}.cdk-high-contrast-active .mat-snack-bar-container{border:solid 1px}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}\n"],encapsulation:2,data:{animation:[mI.snackBarState]}}),t}(),yI=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[M_,Ey,Yh,$C,Tk],Tk]}),t}(),_I=new _i("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new dI}}),bI=function(){var t=function(){function t(e,n,i,r,o,a){s(this,t),this._overlay=e,this._live=n,this._injector=i,this._breakpointObserver=r,this._parentSnackBar=o,this._defaultConfig=a,this._snackBarRefAtThisLevel=null,this.simpleSnackBarComponent=gI,this.snackBarContainerComponent=vI,this.handsetCssClass="mat-snack-bar-handset"}return a(t,[{key:"_openedSnackBarRef",get:function(){var t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t}},{key:"openFromComponent",value:function(t,e){return this._attach(t,e)}},{key:"openFromTemplate",value:function(t,e){return this._attach(t,e)}},{key:"open",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2?arguments[2]:void 0,i=Object.assign(Object.assign({},this._defaultConfig),n);return i.data={message:t,action:e},i.announcementMessage===t&&(i.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,i)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(t,e){var n=Wa.create({parent:e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,providers:[{provide:dI,useValue:e}]}),i=new My(this.snackBarContainerComponent,e.viewContainerRef,n),r=t.attach(i);return r.instance.snackBarConfig=e,r.instance}},{key:"_attach",value:function(t,e){var n=this,i=Object.assign(Object.assign(Object.assign({},new dI),this._defaultConfig),e),r=this._createOverlay(i),o=this._attachSnackBarContainer(r,i),a=new pI(o,r);if(t instanceof ru){var s=new Ay(t,null,{$implicit:i.data,snackBarRef:a});a.instance=o.attachTemplatePortal(s)}else{var l=this._createInjector(i,a),u=new My(t,void 0,l),c=o.attachComponentPortal(u);a.instance=c.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Xv(r.detachments())).subscribe(function(t){var e=r.overlayElement.classList;t.matches?e.add(n.handsetCssClass):e.remove(n.handsetCssClass)}),i.announcementMessage&&o._onAnnounce.subscribe(function(){n._live.announce(i.announcementMessage,i.politeness)}),this._animateSnackBar(a,i),this._openedSnackBarRef=a,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(t,e){var n=this;t.afterDismissed().subscribe(function(){n._openedSnackBarRef==t&&(n._openedSnackBarRef=null),e.announcementMessage&&n._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){t.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe(function(){return t._dismissAfter(e.duration)})}},{key:"_createOverlay",value:function(t){var e=new t_;e.direction=t.direction;var n=this._overlay.position().global(),i="rtl"===t.direction,r="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!i||"end"===t.horizontalPosition&&i,o=!r&&"center"!==t.horizontalPosition;return r?n.left("0"):o?n.right("0"):n.centerHorizontally(),"top"===t.verticalPosition?n.top("0"):n.bottom("0"),e.positionStrategy=n,this._overlay.create(e)}},{key:"_createInjector",value:function(t,e){return Wa.create({parent:t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,providers:[{provide:pI,useValue:e},{provide:hI,useValue:t.data}]})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(b_),Fi(db),Fi(Wa),Fi(sI),Fi(t,12),Fi(_I))},t.\u0275prov=Pt({factory:function(){return new t(Fi(b_),Fi(db),Fi(Oa),Fi(sI),Fi(t,12),Fi(_I))},token:t,providedIn:yI}),t}(),xI="dark-theme",wI="light-theme",kI=function(){function t(t,e,n,i,r,o){this.http=t,this.router=e,this.dialog=n,this.snackbar=i,this.sanitizer=r,this.dateAdapter=o,this.user=new mv(udsData.profile),this.navigation=new iI(this.router),this.gui=new UA(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language)}return Object.defineProperty(t.prototype,"config",{get:function(){return udsData.config},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"notices",{get:function(){return udsData.errors},enumerable:!1,configurable:!0}),t.prototype.restPath=function(t){return this.config.urls.rest+t},t.prototype.staticURL=function(t){return this.config.urls.static+t},t.prototype.logout=function(){window.location.href=this.config.urls.logout},t.prototype.gotoUser=function(){window.location.href=this.config.urls.user},t.prototype.putOnStorage=function(t,e){void 0!==typeof Storage&&sessionStorage.setItem(t,e)},t.prototype.getFromStorage=function(t){return void 0!==typeof Storage?sessionStorage.getItem(t):null},t.prototype.safeString=function(t){return this.sanitizer.bypassSecurityTrustHtml(t)},t.prototype.yesno=function(t){return t?django.gettext("yes"):django.gettext("no")},t.prototype.switchTheme=function(t){var e=document.getElementsByTagName("html")[0];[xI,wI].forEach(function(t){e.classList.contains(t)&&e.classList.remove(t)}),e.classList.add(t?xI:wI)},t.\u0275prov=Pt({token:t,factory:t.\u0275fac=function(e){return new(e||t)(Fi(rf),Fi(Um),Fi(LC),Fi(bI),Fi(Ad),Fi(Vk))},providedIn:"root"}),t}(),CI=function(){function t(t){this.api=t}return t.prototype.canActivate=function(t,e){return!!this.api.user.isStaff||(window.location.href=this.api.config.urls.user,!1)},t.\u0275prov=Pt({token:t,factory:t.\u0275fac=function(e){return new(e||t)(Fi(kI))},providedIn:"root"}),t}(),SI=function(t,e){return(SI=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};function MI(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}SI(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}function AI(t,e,n,i){return new(n||(n=Promise))(function(r,o){function a(t){try{l(i.next(t))}catch(e){o(e)}}function s(t){try{l(i.throw(t))}catch(e){o(e)}}function l(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}l((i=i.apply(t,e||[])).next())})}var II=function(t){return t[t.NONE=0]="NONE",t[t.READ=32]="READ",t[t.MANAGEMENT=64]="MANAGEMENT",t[t.ALL=96]="ALL",t}({}),OI=function(){function t(t,e,n){this.api=t,void 0===n&&(n={}),void 0===n.base&&(n.base=e);var i=function(t,e){return void 0===t?e:t};this.id=e,this.paths={base:n.base,get:i(n.get,n.base),log:i(n.log,n.base),put:i(n.put,n.base),test:i(n.test,n.base+"/test"),delete:i(n.delete,n.base),types:i(n.types,n.base+"/types"),gui:i(n.gui,n.base+"/gui"),tableInfo:i(n.tableInfo,n.base+"/tableinfo")},this.headers=(new Bd).set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}return t.prototype.get=function(t){return this.doGet(this.getPath(this.paths.get,t))},t.prototype.getLogs=function(t){return this.doGet(this.getPath(this.paths.log,t)+"/log")},t.prototype.overview=function(t){return this.get("overview"+(void 0!==t?"?filter="+t:""))},t.prototype.summary=function(t){return this.get("overview?summarize"+(void 0!==t?"&filter="+t:""))},t.prototype.put=function(t,e){var n=this;return this.api.http.put(this.getPath(this.paths.put,e),t,{headers:this.headers}).pipe(Gf(function(t){return n.handleError(t,!0)}))},t.prototype.create=function(t){return this.put(t)},t.prototype.save=function(t,e){return this.put(t,e=void 0!==e?e:t.id)},t.prototype.test=function(t,e){var n=this;return this.api.http.post(this.getPath(this.paths.test,t),e,{headers:this.headers}).pipe(Gf(function(t){return n.handleError(t)}))},t.prototype.delete=function(t){var e=this;return this.api.http.delete(this.getPath(this.paths.delete,t),{headers:this.headers}).pipe(Gf(function(t){return e.handleError(t)}))},t.prototype.permision=function(){return this.api.user.isAdmin?II.ALL:II.NONE},t.prototype.getPermissions=function(t){return this.doGet(this.getPath("permissions/"+this.paths.base+"/"+t))},t.prototype.addPermission=function(t,e,n,i){var r=this,o=this.getPath("permissions/"+this.paths.base+"/"+t+"/"+e+"/add/"+n);return this.api.http.put(o,{perm:i},{headers:this.headers}).pipe(Gf(function(t){return r.handleError(t)}))},t.prototype.revokePermission=function(t){var e=this,n=this.getPath("permissions/revoke");return this.api.http.put(n,{items:t},{headers:this.headers}).pipe(Gf(function(t){return e.handleError(t)}))},t.prototype.types=function(){return this.doGet(this.getPath(this.paths.types))},t.prototype.gui=function(t){var e=this.getPath(this.paths.gui+(void 0!==t?"/"+t:""));return this.doGet(e)},t.prototype.callback=function(t,e){var n=this.getPath("gui/callback/"+t+"?"+e);return this.doGet(n)},t.prototype.tableInfo=function(){return this.doGet(this.getPath(this.paths.tableInfo))},t.prototype.detail=function(t,e){return new TI(this,t,e)},t.prototype.invoke=function(t,e){var n=t;return e&&(n=n+"?"+e),this.get(n)},t.prototype.getPath=function(t,e){return this.api.restPath(t+(void 0!==e?"/"+e:""))},t.prototype.doGet=function(t){var e=this;return this.api.http.get(t,{headers:this.headers}).pipe(Gf(function(t){return e.handleError(t)}))},t.prototype.handleError=function(t,e){var n;return void 0===e&&(e=!1),n=t.error instanceof ErrorEvent?t.error.message:e?django.gettext("Error saving: ")+t.error:"Error "+t.status+": "+t.error,this.api.gui.alert(e?django.gettext("Error saving element"):django.gettext("Error handling your request"),n),$v(n)},t}(),TI=function(t){function e(e,n,i,r){var o=t.call(this,e.api,[e.paths.base,n,i].join("/"))||this;return o.parentModel=e,o.parentId=n,o.model=i,o.perm=r,o}return MI(e,t),e.prototype.permision=function(){return this.perm||II.ALL},e}(OI),DI=function(t){function e(e){var n=t.call(this,e,"providers")||this;return n.api=e,n}return MI(e,t),e.prototype.allServices=function(){return this.get("allservices")},e.prototype.service=function(t){return this.get("service/"+t)},e.prototype.maintenance=function(t){return this.get(t+"/maintenance")},e}(OI),PI=function(t){function e(e){var n=t.call(this,e,"authenticators")||this;return n.api=e,n}return MI(e,t),e.prototype.search=function(t,e,n,i){return void 0===i&&(i=12),this.get(t+"/search?type="+encodeURIComponent(e)+"&term="+encodeURIComponent(n)+"&limit="+i)},e}(OI),EI=function(t){function e(e){var n=t.call(this,e,"osmanagers")||this;return n.api=e,n}return MI(e,t),e}(OI),RI=function(t){function e(e){var n=t.call(this,e,"transports")||this;return n.api=e,n}return MI(e,t),e}(OI),LI=function(t){function e(e){var n=t.call(this,e,"networks")||this;return n.api=e,n}return MI(e,t),e}(OI),NI=function(t){function e(e){var n=t.call(this,e,"servicespools")||this;return n.api=e,n}return MI(e,t),e.prototype.setFallbackAccess=function(t,e){return this.get(t+"/setFallbackAccess?fallbackAccess="+e)},e.prototype.getFallbackAccess=function(t){return this.get(t+"/getFallbackAccess")},e.prototype.actionsList=function(t){return this.get(t+"/actionsList")},e.prototype.listAssignables=function(t){return this.get(t+"/listAssignables")},e.prototype.createFromAssignable=function(t,e,n){return this.get(t+"/createFromAssignable?user_id="+encodeURIComponent(e)+"&assignable_id="+encodeURIComponent(n))},e}(OI),FI=function(t){function e(e){var n=t.call(this,e,"metapools")||this;return n.api=e,n}return MI(e,t),e.prototype.setFallbackAccess=function(t,e){return this.get(t+"/setFallbackAccess?fallbackAccess="+e)},e.prototype.getFallbackAccess=function(t){return this.get(t+"/getFallbackAccess")},e}(OI),zI=function(t){function e(e){var n=t.call(this,e,"config")||this;return n.api=e,n}return MI(e,t),e}(OI),VI=function(t){function e(e){var n=t.call(this,e,"gallery/images")||this;return n.api=e,n}return MI(e,t),e}(OI),BI=function(t){function e(e){var n=t.call(this,e,"gallery/servicespoolgroups")||this;return n.api=e,n}return MI(e,t),e}(OI),HI=function(t){function e(e){var n=t.call(this,e,"system")||this;return n.api=e,n}return MI(e,t),e.prototype.information=function(){return this.get("overview")},e.prototype.stats=function(t,e){var n="stats/"+t;return e&&(n+="/"+e),this.get(n)},e.prototype.flushCache=function(){return this.doGet(this.getPath("cache","flush"))},e}(OI),jI=function(t){function e(e){var n=t.call(this,e,"reports")||this;return n.api=e,n}return MI(e,t),e.prototype.types=function(){return Ed([])},e}(OI),GI=function(t){function e(e){var n=t.call(this,e,"calendars")||this;return n.api=e,n}return MI(e,t),e}(OI),UI=function(t){function e(e){var n=t.call(this,e,"accounts")||this;return n.api=e,n}return MI(e,t),e.prototype.timemark=function(t){return this.get(t+"/timemark")},e}(OI),WI=function(t){function e(e){var n=t.call(this,e,"proxies")||this;return n.api=e,n}return MI(e,t),e}(OI),YI=function(t){function e(e){var n=t.call(this,e,"actortokens")||this;return n.api=e,n}return MI(e,t),e}(OI),qI=function(t){function e(e){var n=t.call(this,e,"tunneltokens")||this;return n.api=e,n}return MI(e,t),e}(OI),XI=function(){function t(t){this.api=t,this.providers=new DI(t),this.authenticators=new PI(t),this.osManagers=new EI(t),this.transports=new RI(t),this.networks=new LI(t),this.servicesPools=new NI(t),this.metaPools=new FI(t),this.gallery=new VI(t),this.servicesPoolGroups=new BI(t),this.calendars=new GI(t),this.accounts=new UI(t),this.proxy=new WI(t),this.system=new HI(t),this.configuration=new zI(t),this.actorToken=new YI(t),this.tunnelToken=new qI(t),this.reports=new jI(t)}return t.\u0275prov=Pt({token:t,factory:t.\u0275fac=function(e){return new(e||t)(Fi(kI))},providedIn:"root"}),t}(),ZI=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],KI=[django.gettext("January"),django.gettext("February"),django.gettext("March"),django.gettext("April"),django.gettext("May"),django.gettext("June"),django.gettext("July"),django.gettext("August"),django.gettext("September"),django.gettext("October"),django.gettext("November"),django.gettext("December")],$I=function(t){var e=[];return t.forEach(function(t){e.push(t.substr(0,3))}),e},QI=function(t,e,n){return JI(t,e,n)},JI=function(t,e,n,i){i=i||{},e=e||new Date,(n=n||lO).formats=n.formats||{};var r=e.getTime();return(i.utc||"number"==typeof i.timezone)&&(e=tO(e)),"number"==typeof i.timezone&&(e=new Date(e.getTime()+6e4*i.timezone)),t.replace(/%([-_0]?.)/g,function(t,o){var a,s,l,u,c,h,d,f;if(l=null,c=null,2===o.length){if("-"===(l=o[0]))c="";else if("_"===l)c=" ";else{if("0"!==l)return t;c="0"}o=o[1]}switch(o){case"A":return n.days[e.getDay()];case"a":return n.shortDays[e.getDay()];case"B":return n.months[e.getMonth()];case"b":return n.shortMonths[e.getMonth()];case"C":return eO(Math.floor(e.getFullYear()/100),c);case"D":return JI(n.formats.D||"%m/%d/%y",e,n);case"d":return eO(e.getDate(),c);case"e":return e.getDate();case"F":return JI(n.formats.F||"%Y-%m-%d",e,n);case"H":return eO(e.getHours(),c);case"h":return n.shortMonths[e.getMonth()];case"I":return eO(nO(e),c);case"j":return d=new Date(e.getFullYear(),0,1),a=Math.ceil((e.getTime()-d.getTime())/864e5),eO(a,3);case"k":return eO(e.getHours(),void 0===c?" ":c);case"L":return eO(Math.floor(r%1e3),3);case"l":return eO(nO(e),void 0===c?" ":c);case"M":return eO(e.getMinutes(),c);case"m":return eO(e.getMonth()+1,c);case"n":return"\n";case"o":return String(e.getDate())+iO(e.getDate());case"P":case"p":return"";case"R":return JI(n.formats.R||"%H:%M",e,n);case"r":return JI(n.formats.r||"%I:%M:%S %p",e,n);case"S":return eO(e.getSeconds(),c);case"s":return Math.floor(r/1e3);case"T":return JI(n.formats.T||"%H:%M:%S",e,n);case"t":return"\t";case"U":return eO(rO(e,"sunday"),c);case"u":return 0===(s=e.getDay())?7:s;case"v":return JI(n.formats.v||"%e-%b-%Y",e,n);case"W":return eO(rO(e,"monday"),c);case"w":return e.getDay();case"Y":return e.getFullYear();case"y":return(f=String(e.getFullYear())).slice(f.length-2);case"Z":return i.utc?"GMT":(h=e.toString().match(/\((\w+)\)/))&&h[1]||"";case"z":return i.utc?"+0000":((u="number"==typeof i.timezone?i.timezone:-e.getTimezoneOffset())<0?"-":"+")+eO(Math.abs(u/60))+eO(u%60);default:return o}})},tO=function(t){var e=6e4*(t.getTimezoneOffset()||0);return new Date(t.getTime()+e)},eO=function(t,e,n){"number"==typeof e&&(n=e,e="0"),e=null==e?"0":e,n=null==n?2:n;var i=String(t);if(e)for(;i.length12&&(e-=12),e},iO=function(t){var e=t%10,n=t%100;if(n>=11&&n<=13||0===e||e>=4)return"th";switch(e){case 1:return"st";case 2:return"nd";case 3:return"rd"}},rO=function(t,e){e=e||"sunday";var n=t.getDay();"monday"===e&&(0===n?n=6:n--);var i=new Date(t.getFullYear(),0,1),r=Math.floor((t.getTime()-i.getTime())/864e5);return Math.floor((r+7-n)/7)},oO=function(t){return t.replace(/./g,function(t){switch(t){case"a":case"A":return"%p";case"b":case"d":case"m":case"w":case"W":case"y":case"Y":return"%"+t;case"c":return"%FT%TZ";case"D":return"%a";case"e":return"%z";case"f":return"%I:%M";case"F":return"%F";case"h":case"g":return"%I";case"H":case"G":return"%H";case"i":return"%M";case"I":return"";case"j":return"%d";case"l":return"%A";case"L":return"";case"M":return"%b";case"n":return"%m";case"N":return"%b";case"o":return"%W";case"O":return"%z";case"P":return"%R %p";case"r":return"%a, %d %b %Y %T %z";case"s":return"%S";case"S":case"t":return"";case"T":return"%Z";case"u":return"0";case"U":return"";case"z":return"%j";case"Z":return"z";default:return t}})},aO=function(t,e,n){var i;if(void 0===n&&(n=null),"None"===e||null==e)e=7226578800,i=django.gettext("Never");else{var r=django.get_format(t);n&&(r+=n),i=QI(oO(r),new Date(1e3*e))}return i},sO=function(t){return"yes"===t||!0===t||"true"===t||1===t},lO={days:ZI,shortDays:$I(ZI),months:KI,shortMonths:$I(KI),AM:"AM",PM:"PM",am:"am",pm:"pm"},uO=n(8774),cO=n.n(uO),hO=function(){if("undefined"!=typeof Map)return Map;function t(t,e){var n=-1;return t.some(function(t,i){return t[0]===e&&(n=i,!0)}),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var n=t(this.__entries__,e),i=this.__entries__[n];return i&&i[1]},e.prototype.set=function(e,n){var i=t(this.__entries__,e);~i?this.__entries__[i][1]=n:this.__entries__.push([e,n])},e.prototype.delete=function(e){var n=this.__entries__,i=t(n,e);~i&&n.splice(i,1)},e.prototype.has=function(e){return!!~t(this.__entries__,e)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,e){void 0===e&&(e=null);for(var n=0,i=this.__entries__;n0},t.prototype.connect_=function(){dO&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),mO?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){dO&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(t){var e=t.propertyName,n=void 0===e?"":e;gO.some(function(t){return!!~n.indexOf(t)})&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),yO=function(t,e){for(var n=0,i=Object.keys(e);n0},t}(),IO="undefined"!=typeof WeakMap?new WeakMap:new hO,OO=function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=vO.getInstance(),i=new AO(e,n,this);IO.set(this,i)};["observe","unobserve","disconnect"].forEach(function(t){OO.prototype[t]=function(){var e;return(e=IO.get(this))[t].apply(e,arguments)}});var TO=void 0!==fO.ResizeObserver?fO.ResizeObserver:OO,DO=function(){function t(e){s(this,t),this.changes=e}return a(t,[{key:"notEmpty",value:function(t){if(this.changes[t]){var e=this.changes[t].currentValue;if(null!=e)return Ed(e)}return Of}},{key:"has",value:function(t){return this.changes[t]?Ed(this.changes[t].currentValue):Of}},{key:"notFirst",value:function(t){return this.changes[t]&&!this.changes[t].isFirstChange()?Ed(this.changes[t].currentValue):Of}},{key:"notFirstAndEmpty",value:function(t){if(this.changes[t]&&!this.changes[t].isFirstChange()){var e=this.changes[t].currentValue;if(null!=e)return Ed(e)}return Of}}],[{key:"of",value:function(e){return new t(e)}}]),t}(),PO=new _i("NGX_ECHARTS_CONFIG"),EO=function(){var t=function(){function t(e,n,i){s(this,t),this.el=n,this.ngZone=i,this.autoResize=!0,this.loadingType="default",this.chartInit=new Nu,this.optionsError=new Nu,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartPieSelectChanged=this.createLazyEvent("pieselectchanged"),this.chartPieSelected=this.createLazyEvent("pieselected"),this.chartPieUnselected=this.createLazyEvent("pieunselected"),this.chartMapSelectChanged=this.createLazyEvent("mapselectchanged"),this.chartMapSelected=this.createLazyEvent("mapselected"),this.chartMapUnselected=this.createLazyEvent("mapunselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartFocusNodeAdjacency=this.createLazyEvent("focusnodeadjacency"),this.chartUnfocusNodeAdjacency=this.createLazyEvent("unfocusnodeadjacency"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.echarts=e.echarts}return a(t,[{key:"ngOnChanges",value:function(t){var e=this,n=DO.of(t);n.notFirstAndEmpty("options").subscribe(function(t){return e.onOptionsChange(t)}),n.notFirstAndEmpty("merge").subscribe(function(t){return e.setOption(t)}),n.has("loading").subscribe(function(t){return e.toggleLoading(!!t)}),n.notFirst("theme").subscribe(function(){return e.refreshChart()})}},{key:"ngOnInit",value:function(){var t=this;this.autoResize&&(this.resizeSub=new TO(function(){t.animationFrameID=window.requestAnimationFrame(function(){return t.resize()})}),this.resizeSub.observe(this.el.nativeElement))}},{key:"ngOnDestroy",value:function(){this.resizeSub&&(this.resizeSub.unobserve(this.el.nativeElement),window.cancelAnimationFrame(this.animationFrameID)),this.dispose()}},{key:"ngAfterViewInit",value:function(){var t=this;setTimeout(function(){return t.initChart()})}},{key:"dispose",value:function(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}},{key:"resize",value:function(){this.chart&&this.chart.resize()}},{key:"toggleLoading",value:function(t){this.chart&&(t?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading())}},{key:"setOption",value:function(t,e){if(this.chart)try{this.chart.setOption(t,e)}catch(n){console.error(n),this.optionsError.emit(n)}}},{key:"refreshChart",value:function(){return AI(this,void 0,void 0,cO().mark(function t(){return cO().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return this.dispose(),t.next=3,this.initChart();case 3:case"end":return t.stop()}},t,this)}))}},{key:"createChart",value:function(){var t=this,e=this.el.nativeElement;if(window&&window.getComputedStyle){var n=window.getComputedStyle(e,null).getPropertyValue("height");n&&"0px"!==n||e.style.height&&"0px"!==e.style.height||(e.style.height="400px")}return this.ngZone.runOutsideAngular(function(){return("function"==typeof t.echarts?t.echarts:function(){return Promise.resolve(t.echarts)})().then(function(n){return(0,n.init)(e,t.theme,t.initOpts)})})}},{key:"initChart",value:function(){return AI(this,void 0,void 0,cO().mark(function t(){return cO().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.onOptionsChange(this.options);case 2:this.merge&&this.chart&&this.setOption(this.merge);case 3:case"end":return t.stop()}},t,this)}))}},{key:"onOptionsChange",value:function(t){return AI(this,void 0,void 0,cO().mark(function e(){return cO().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:if(!this.chart){e.next=6;break}this.setOption(this.options,!0),e.next=11;break;case 6:return e.next=8,this.createChart();case 8:this.chart=e.sent,this.chartInit.emit(this.chart),this.setOption(this.options,!0);case 11:case"end":return e.stop()}},e,this)}))}},{key:"createLazyEvent",value:function(t){var e=this;return this.chartInit.pipe(Pf(function(n){return new V(function(i){return n.on(t,function(t){return e.ngZone.run(function(){return i.next(t)})}),function(){e.chart&&(e.chart.isDisposed()||n.off(t))}})}))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(PO),cs(Al),cs(kc))},t.\u0275dir=me({type:t,selectors:[["echarts"],["","echarts",""]],inputs:{autoResize:"autoResize",loadingType:"loadingType",options:"options",theme:"theme",loading:"loading",initOpts:"initOpts",merge:"merge",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartPieSelectChanged:"chartPieSelectChanged",chartPieSelected:"chartPieSelected",chartPieUnselected:"chartPieUnselected",chartMapSelectChanged:"chartMapSelectChanged",chartMapSelected:"chartMapSelected",chartMapUnselected:"chartMapUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartFocusNodeAdjacency:"chartFocusNodeAdjacency",chartUnfocusNodeAdjacency:"chartUnfocusNodeAdjacency",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],features:[Te]}),t}(),RO=function(){var t=function(){function t(){s(this,t)}return a(t,null,[{key:"forRoot",value:function(e){return{ngModule:t,providers:[{provide:PO,useValue:e}]}}},{key:"forChild",value:function(){return{ngModule:t}}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[]]}),t}();function LO(t,e){if(1&t&&(fs(0,"div",21),fs(1,"div",11),gs(2,"img",3),fs(3,"div",12),Qs(4),ps(),ps(),fs(5,"div",13),fs(6,"a",15),fs(7,"uds-translate"),Qs(8,"View service pools"),ps(),ps(),ps(),ps()),2&t){var n=Is(2);Po(2),hs("src",n.api.staticURL("admin/img/icons/logs.png"),Or),Po(2),tl(" ",n.data.restrained," ")}}function NO(t,e){if(1&t){var n=_s();fs(0,"div"),fs(1,"div",8),fs(2,"div",9),fs(3,"div",10),fs(4,"div",11),gs(5,"img",3),fs(6,"div",12),Qs(7),ps(),ps(),fs(8,"div",13),fs(9,"a",14),fs(10,"uds-translate"),Qs(11,"View authenticators"),ps(),ps(),ps(),ps(),fs(12,"div",10),fs(13,"div",11),gs(14,"img",3),fs(15,"div",12),Qs(16),ps(),ps(),fs(17,"div",13),fs(18,"a",15),fs(19,"uds-translate"),Qs(20,"View service pools"),ps(),ps(),ps(),ps(),fs(21,"div",10),fs(22,"div",11),gs(23,"img",3),fs(24,"div",12),Qs(25),ps(),ps(),fs(26,"div",13),fs(27,"a",15),fs(28,"uds-translate"),Qs(29,"View service pools"),ps(),ps(),ps(),ps(),ls(30,LO,9,2,"div",16),ps(),fs(31,"div",17),fs(32,"div",18),fs(33,"div",19),fs(34,"uds-translate"),Qs(35,"Assigned services chart"),ps(),ps(),fs(36,"div",20),ks("chartInit",function(t){return en(n),Is().chartInit("assigned",t)}),ps(),ps(),fs(37,"div",18),fs(38,"div",19),fs(39,"uds-translate"),Qs(40,"In use services chart"),ps(),ps(),fs(41,"div",20),ks("chartInit",function(t){return en(n),Is().chartInit("inuse",t)}),ps(),ps(),ps(),ps(),ps()}if(2&t){var i=Is();Po(5),hs("src",i.api.staticURL("admin/img/icons/authenticators.png"),Or),Po(2),tl(" ",i.data.users," "),Po(7),hs("src",i.api.staticURL("admin/img/icons/pools.png"),Or),Po(2),tl(" ",i.data.pools," "),Po(7),hs("src",i.api.staticURL("admin/img/icons/services.png"),Or),Po(2),tl(" ",i.data.user_services," "),Po(5),hs("ngIf",i.data.restrained),Po(6),hs("options",i.assignedChartOpts),Po(5),hs("options",i.inuseChartOpts)}}function FO(t,e){1&t&&(fs(0,"div",22),fs(1,"div",23),fs(2,"div",24),fs(3,"uds-translate"),Qs(4,"UDS Administration"),ps(),ps(),fs(5,"div",25),fs(6,"p"),fs(7,"uds-translate"),Qs(8,"You are accessing UDS Administration as staff member."),ps(),ps(),fs(9,"p"),fs(10,"uds-translate"),Qs(11,"This means that you have restricted access to elements."),ps(),ps(),fs(12,"p"),fs(13,"uds-translate"),Qs(14,"In order to increase your access privileges, please contact your local UDS administrator. "),ps(),ps(),gs(15,"br"),fs(16,"p"),fs(17,"uds-translate"),Qs(18,"Thank you."),ps(),ps(),ps(),ps(),ps())}var zO=function(){function t(t,e){this.api=t,this.rest=e,this.data={},this.assignedChartInstance=null,this.assignedChartOpts={},this.inuseChartOpts={},this.inuseChartInstance=null}return t.prototype.onResize=function(t){this.assignedChartInstance&&this.assignedChartInstance.resize(),this.inuseChartInstance&&this.inuseChartInstance.resize()},t.prototype.ngOnInit=function(){var t=this;if(this.api.user.isAdmin){this.rest.system.information().subscribe(function(e){t.data={users:django.gettext("#USR_NUMBER# users, #GRP_NUMBER# groups").replace("#USR_NUMBER#",e.users).replace("#GRP_NUMBER#",e.groups),pools:django.gettext("#POOLS_NUMBER# service pools").replace("#POOLS_NUMBER#",e.service_pools),user_services:django.gettext("#SERVICES_NUMBER# user services").replace("#SERVICES_NUMBER#",e.user_services)},e.restrained_services_pools>0&&(t.data.restrained=django.gettext("#RESTRAINED_NUMBER# restrained services!").replace("#RESTRAINED_NUMBER#",e.restrained_services_pools))});for(var e=function(e){n.rest.system.stats(e).subscribe(function(n){var i={tooltip:{trigger:"axis"},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:n.map(function(t){return aO("SHORT_DATE_FORMAT",new Date(t.stamp))}),boundaryGap:!1},yAxis:{type:"value",boundaryGap:!1},series:[{name:"assigned"===e?django.gettext("Assigned services"):django.gettext("Services in use"),type:"line",smooth:!0,areaStyle:{},data:n.map(function(t){return t.value})}]};"assigned"===e?t.assignedChartOpts=i:t.inuseChartOpts=i})},n=this,i=0,r=["assigned","inuse"];i enter",[Tb({opacity:0,transform:"translateY(-5px)"}),Ib("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},rT=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t}),t}(),oT=new _i("MatHint"),aT=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["mat-label"]]}),t}(),sT=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["mat-placeholder"]]}),t}(),lT=new _i("MatPrefix"),uT=new _i("MatSuffix"),cT=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["","matSuffix",""]],features:[_l([{provide:uT,useExisting:t}])]}),t}(),hT=0,dT=Pk(function(){return function t(e){s(this,t),this._elementRef=e}}(),"primary"),fT=new _i("MAT_FORM_FIELD_DEFAULT_OPTIONS"),pT=new _i("MatFormField"),gT=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l,u,c){var h;return s(this,n),(h=e.call(this,t))._elementRef=t,h._changeDetectorRef=i,h._dir=o,h._defaults=a,h._platform=l,h._ngZone=u,h._outlineGapCalculationNeededImmediately=!1,h._outlineGapCalculationNeededOnStable=!1,h._destroyed=new U,h._showAlwaysAnimate=!1,h._subscriptAnimationState="",h._hintLabel="",h._hintLabelId="mat-hint-".concat(hT++),h._labelId="mat-form-field-label-".concat(hT++),h.floatLabel=h._getDefaultFloatLabelState(),h._animationsEnabled="NoopAnimations"!==c,h.appearance=a&&a.appearance?a.appearance:"legacy",h._hideRequiredMarker=!(!a||null==a.hideRequiredMarker)&&a.hideRequiredMarker,h}return a(n,[{key:"appearance",get:function(){return this._appearance},set:function(t){var e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(t){this._hideRequiredMarker=vv(t)}},{key:"_shouldAlwaysFloat",value:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}},{key:"_canLabelFloat",value:function(){return"never"!==this.floatLabel}},{key:"hintLabel",get:function(){return this._hintLabel},set:function(t){this._hintLabel=t,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(t){this._explicitFormFieldControl=t}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var t=this;this._validateControlChild();var e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(e.controlType)),e.stateChanges.pipe(Vf(null)).subscribe(function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()}),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(Xv(this._destroyed)).subscribe(function(){return t._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.pipe(Xv(t._destroyed)).subscribe(function(){t._outlineGapCalculationNeededOnStable&&t.updateOutlineGap()})}),dt(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){t._outlineGapCalculationNeededOnStable=!0,t._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Vf(null)).subscribe(function(){t._processHints(),t._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Vf(null)).subscribe(function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Xv(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?t._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return t.updateOutlineGap()})}):t.updateOutlineGap()})}},{key:"ngAfterContentChecked",value:function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}},{key:"ngAfterViewInit",value:function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete()}},{key:"_shouldForward",value:function(t){var e=this._control?this._control.ngControl:null;return e&&e[t]}},{key:"_hasPlaceholder",value:function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}},{key:"_hasLabel",value:function(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}},{key:"_shouldLabelFloat",value:function(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}},{key:"_hideControlPlaceholder",value:function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}},{key:"_hasFloatingLabel",value:function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}},{key:"_getDisplayedMessages",value:function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}},{key:"_animateAndLockLabel",value:function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Cv(this._label.nativeElement,"transitionend").pipe(Nf(1)).subscribe(function(){t._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}},{key:"_validatePlaceholders",value:function(){}},{key:"_processHints",value:function(){this._validateHints(),this._syncDescribedByIds()}},{key:"_validateHints",value:function(){}},{key:"_getDefaultFloatLabelState",value:function(){return this._defaults&&this._defaults.floatLabel||"auto"}},{key:"_syncDescribedByIds",value:function(){if(this._control){var t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push.apply(t,b(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find(function(t){return"start"===t.align}):null,n=this._hintChildren?this._hintChildren.find(function(t){return"end"===t.align}):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&t.push.apply(t,b(this._errorChildren.map(function(t){return t.id})));this._control.setDescribedByIds(t)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var t=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&this._platform.isBrowser)if(this._isAttachedToDOM()){var e=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=i.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),l=t.children,u=this._getStartEnd(l[0].getBoundingClientRect()),c=0,h=0;h0?.75*c+10:0}for(var d=0;d void",Lb("@transformPanel",[Rb()],{optional:!0}))]),transformPanel:Ab("transformPanel",[Db("void",Tb({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Db("showing",Tb({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Db("showing-multiple",Tb({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Eb("void => *",Ib("120ms cubic-bezier(0, 0, 0.2, 1)")),Eb("* => void",Ib("100ms 25ms linear",Tb({opacity:0})))])},AT=0,IT=256,OT=new _i("mat-select-scroll-strategy"),TT=new _i("MAT_SELECT_CONFIG"),DT={provide:OT,deps:[b_],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},PT=function t(e,n){s(this,t),this.source=e,this.value=n},ET=Ek(Rk(Dk(Lk(function(){return function t(e,n,i,r,o){s(this,t),this._elementRef=e,this._defaultErrorStateMatcher=n,this._parentForm=i,this._parentFormGroup=r,this.ngControl=o}}())))),RT=new _i("MatSelectTrigger"),LT=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["mat-select-trigger"]],features:[_l([{provide:RT,useExisting:t}])]}),t}(),NT=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l,u,c,h,f,p,g,m,v){var y,_,x,w;return s(this,n),(y=e.call(this,a,o,u,c,f))._viewportRuler=t,y._changeDetectorRef=i,y._ngZone=r,y._dir=l,y._parentFormField=h,y.ngControl=f,y._liveAnnouncer=m,y._defaultOptions=v,y._panelOpen=!1,y._compareWith=function(t,e){return t===e},y._uid="mat-select-".concat(AT++),y._triggerAriaLabelledBy=null,y._destroy=new U,y._onChange=function(){},y._onTouched=function(){},y._valueId="mat-select-value-".concat(AT++),y._panelDoneAnimatingStream=new U,y._overlayPanelClass=(null===(_=y._defaultOptions)||void 0===_?void 0:_.overlayPanelClass)||"",y._focused=!1,y.controlType="mat-select",y._required=!1,y._multiple=!1,y._disableOptionCentering=null!==(w=null===(x=y._defaultOptions)||void 0===x?void 0:x.disableOptionCentering)&&void 0!==w&&w,y.ariaLabel="",y.optionSelectionChanges=Df(function(){var t=y.options;return t?t.changes.pipe(Vf(t),Pf(function(){return dt.apply(void 0,b(t.map(function(t){return t.onSelectionChange})))})):y._ngZone.onStable.pipe(Nf(1),Pf(function(){return y.optionSelectionChanges}))}),y.openedChange=new Nu,y._openedStream=y.openedChange.pipe(Ld(function(t){return t}),q(function(){})),y._closedStream=y.openedChange.pipe(Ld(function(t){return!t}),q(function(){})),y.selectionChange=new Nu,y.valueChange=new Nu,y.ngControl&&(y.ngControl.valueAccessor=d(y)),null!=(null==v?void 0:v.typeaheadDebounceInterval)&&(y._typeaheadDebounceInterval=v.typeaheadDebounceInterval),y._scrollStrategyFactory=g,y._scrollStrategy=y._scrollStrategyFactory(),y.tabIndex=parseInt(p)||0,y.id=y.id,y}return a(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()}},{key:"required",get:function(){return this._required},set:function(t){this._required=vv(t),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(t){this._multiple=vv(t)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(t){this._disableOptionCentering=vv(t)}},{key:"compareWith",get:function(){return this._compareWith},set:function(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(t){(t!==this._value||this._multiple&&Array.isArray(t))&&(this.options&&this._setSelectionByValue(t),this._value=t)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(t){this._typeaheadDebounceInterval=yv(t)}},{key:"id",get:function(){return this._id},set:function(t){this._id=t||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var t=this;this._selectionModel=new _y(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Fv(),Xv(this._destroy)).subscribe(function(){return t._panelDoneAnimating(t.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var t=this;this._initKeyManager(),this._selectionModel.changed.pipe(Xv(this._destroy)).subscribe(function(t){t.added.forEach(function(t){return t.select()}),t.removed.forEach(function(t){return t.deselect()})}),this.options.changes.pipe(Vf(null),Xv(this._destroy)).subscribe(function(){t._resetOptions(),t._initializeSelection()})}},{key:"ngDoCheck",value:function(){var t=this._getTriggerAriaLabelledby();if(t!==this._triggerAriaLabelledBy){var e=this._elementRef.nativeElement;this._triggerAriaLabelledBy=t,t?e.setAttribute("aria-labelledby",t):e.removeAttribute("aria-labelledby")}this.ngControl&&this.updateErrorState()}},{key:"ngOnChanges",value:function(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this._typeaheadDebounceInterval)}},{key:"ngOnDestroy",value:function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()}},{key:"toggle",value:function(){this.panelOpen?this.close():this.open()}},{key:"open",value:function(){this._canOpen()&&(this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck())}},{key:"close",value:function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())}},{key:"writeValue",value:function(t){this.value=t}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var t=this._selectionModel.selected.map(function(t){return t.viewValue});return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))}},{key:"_handleClosedKeydown",value:function(t){var e=t.keyCode,n=e===Uy||e===jy||e===Hy||e===Gy,i=e===Ny||e===zy,r=this._keyManager;if(!r.isTyping()&&i&&!Wy(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){var o=this.selected;r.onKeydown(t);var a=this.selected;a&&o!==a&&this._liveAnnouncer.announce(a.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(t){var e=this._keyManager,n=t.keyCode,i=n===Uy||n===jy,r=e.isTyping();if(i&&t.altKey)t.preventDefault(),this.close();else if(r||n!==Ny&&n!==zy||!e.activeItem||Wy(t))if(!r&&this._multiple&&65===n&&t.ctrlKey){t.preventDefault();var o=this.options.some(function(t){return!t.disabled&&!t.selected});this.options.forEach(function(t){t.disabled||(o?t.select():t.deselect())})}else{var a=e.activeItemIndex;e.onKeydown(t),this._multiple&&i&&t.shiftKey&&e.activeItem&&e.activeItemIndex!==a&&e.activeItem._selectViaInteraction()}else t.preventDefault(),e.activeItem._selectViaInteraction()}},{key:"_onFocus",value:function(){this.disabled||(this._focused=!0,this.stateChanges.next())}},{key:"_onBlur",value:function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}},{key:"_onAttached",value:function(){var t=this;this._overlayDir.positionChange.pipe(Nf(1)).subscribe(function(){t._changeDetectorRef.detectChanges(),t._positioningSettled()})}},{key:"_getPanelTheme",value:function(){return this._parentFormField?"mat-".concat(this._parentFormField.color):""}},{key:"empty",get:function(){return!this._selectionModel||this._selectionModel.isEmpty()}},{key:"_initializeSelection",value:function(){var t=this;Promise.resolve().then(function(){t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value),t.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(t){var e=this;if(this._selectionModel.selected.forEach(function(t){return t.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&t)Array.isArray(t),t.forEach(function(t){return e._selectValue(t)}),this._sortValues();else{var n=this._selectValue(t);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectValue",value:function(t){var e=this,n=this.options.find(function(n){if(e._selectionModel.isSelected(n))return!1;try{return null!=n.value&&e._compareWith(n.value,t)}catch(i){return!1}});return n&&this._selectionModel.select(n),n}},{key:"_initKeyManager",value:function(){var t=this;this._keyManager=new Z_(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Xv(this._destroy)).subscribe(function(){t.panelOpen&&(!t.multiple&&t._keyManager.activeItem&&t._keyManager.activeItem._selectViaInteraction(),t.focus(),t.close())}),this._keyManager.change.pipe(Xv(this._destroy)).subscribe(function(){t._panelOpen&&t.panel?t._scrollOptionIntoView(t._keyManager.activeItemIndex||0):t._panelOpen||t.multiple||!t._keyManager.activeItem||t._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var t=this,e=dt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Xv(e)).subscribe(function(e){t._onSelect(e.source,e.isUserInput),e.isUserInput&&!t.multiple&&t._panelOpen&&(t.close(),t.focus())}),dt.apply(void 0,b(this.options.map(function(t){return t._stateChanges}))).pipe(Xv(e)).subscribe(function(){t._changeDetectorRef.markForCheck(),t.stateChanges.next()})}},{key:"_onSelect",value:function(t,e){var n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var t=this;if(this.multiple){var e=this.options.toArray();this._selectionModel.sort(function(n,i){return t.sortComparator?t.sortComparator(n,i,e):e.indexOf(n)-e.indexOf(i)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(t){var e;e=this.multiple?this.selected.map(function(t){return t.value}):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(this._getChangeEvent(e)),this._changeDetectorRef.markForCheck()}},{key:"_highlightCorrectOption",value:function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}},{key:"_canOpen",value:function(){var t;return!this._panelOpen&&!this.disabled&&(null===(t=this.options)||void 0===t?void 0:t.length)>0}},{key:"focus",value:function(t){this._elementRef.nativeElement.focus(t)}},{key:"_getPanelAriaLabelledby",value:function(){var t;if(this.ariaLabel)return null;var e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId();return this.ariaLabelledby?(e?e+" ":"")+this.ariaLabelledby:e}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var t;if(this.ariaLabel)return null;var e=null===(t=this._parentFormField)||void 0===t?void 0:t.getLabelId(),n=(e?e+" ":"")+this._valueId;return this.ariaLabelledby&&(n+=" "+this.ariaLabelledby),n}},{key:"_panelDoneAnimating",value:function(t){this.openedChange.emit(t)}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(ET);return t.\u0275fac=function(e){return new(e||t)(cs(wy),cs(Jl),cs(kc),cs(Kk),cs(Al),cs(py,8),cs(dM,8),cs(wM,8),cs(pT,8),cs(zS,10),mi("tabindex"),cs(OT),cs(db),cs(TT,8))},t.\u0275dir=me({type:t,viewQuery:function(t,e){var n;1&t&&(Zu(vT,5),Zu(yT,5),Zu(C_,5)),2&t&&(Xu(n=$u())&&(e.trigger=n.first),Xu(n=$u())&&(e.panel=n.first),Xu(n=$u())&&(e._overlayDir=n.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],id:"id",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",typeaheadDebounceInterval:"typeaheadDebounceInterval",panelClass:"panelClass",ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[qa,Te]}),t}(),FT=function(){var t=function(t){u(n,t);var e=p(n);function n(){var t;return s(this,n),(t=e.apply(this,arguments))._scrollTop=0,t._triggerFontSize=0,t._transformOrigin="top",t._offsetY=0,t._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],t}return a(n,[{key:"_calculateOverlayScroll",value:function(t,e,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)}},{key:"ngOnInit",value:function(){var t=this;r(i(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(Xv(this._destroy)).subscribe(function(){t.panelOpen&&(t._triggerRect=t.trigger.nativeElement.getBoundingClientRect(),t._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var t=this;r(i(n.prototype),"_canOpen",this).call(this)&&(r(i(n.prototype),"open",this).call(this),this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._calculateOverlayPosition(),this._ngZone.onStable.pipe(Nf(1)).subscribe(function(){t._triggerFontSize&&t._overlayDir.overlayRef&&t._overlayDir.overlayRef.overlayElement&&(t._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(t._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(t){var e=_C(t,this.options,this.optionGroups),n=this._getItemHeight();this.panel.nativeElement.scrollTop=bC((t+e)*n,n,this.panel.nativeElement.scrollTop,IT)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(t){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),r(i(n.prototype),"_panelDoneAnimating",this).call(this,t)}},{key:"_getChangeEvent",value:function(t){return new PT(this,t)}},{key:"_calculateOverlayOffsetX",value:function(){var t,e=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)t=40;else if(this.disableOptionCentering)t=16;else{var o=this._selectionModel.selected[0]||this.options.first;t=o&&o.group?32:16}i||(t*=-1);var a=0-(e.left+t-(i?r:0)),s=e.right+t-n.width+(i?0:r);a>0?t+=a+8:s>0&&(t-=s+8),this._overlayDir.offsetX=Math.round(t),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(t,e,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(IT/r);return this.disableOptionCentering?0:(i=0===this._scrollTop?t*r:this._scrollTop===n?(t-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-IT)%r):e-r/2,Math.round(-1*i-o))}},{key:"_checkOverlayWithinViewport",value:function(t){var e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*e,IT)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,t):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(t,e){var n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(t,e,n){var i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var t,e=this._getItemHeight(),n=this._getItemCount(),i=Math.min(n*e,IT),r=n*e-i;t=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),t+=_C(t,this.options,this.optionGroups);var o=i/2;this._scrollTop=this._calculateOverlayScroll(t,o,r),this._offsetY=this._calculateOverlayOffsetY(t,o,r),this._checkOverlayWithinViewport(r)}},{key:"_getOriginBasedOnOption",value:function(){var t=this._getItemHeight(),e=(t-this._triggerRect.height)/2,n=Math.abs(this._offsetY)-e+t/2;return"50% ".concat(n,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(NT);return t.\u0275fac=function(){var e;return function(n){return(e||(e=pi(t)))(n||t)}}(),t.\u0275cmp=ce({type:t,selectors:[["mat-select"]],contentQueries:function(t,e,n){var i;1&t&&(Ku(n,RT,5),Ku(n,yC,5),Ku(n,pC,5)),2&t&&(Xu(i=$u())&&(e.customTrigger=i.first),Xu(i=$u())&&(e.options=i),Xu(i=$u())&&(e.optionGroups=i))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(t,e){1&t&&ks("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e._onFocus()})("blur",function(){return e._onBlur()}),2&t&&(as("id",e.id)("tabindex",e.tabIndex)("aria-controls",e.panelOpen?e.id+"-panel":null)("aria-expanded",e.panelOpen)("aria-label",e.ariaLabel||null)("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),Hs("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty)("mat-select-multiple",e.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[_l([{provide:rT,useExisting:t},{provide:cC,useExisting:t}]),qa],ngContentSelectors:ST,decls:9,vars:12,consts:[["cdk-overlay-origin","",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder mat-select-min-line",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder","mat-select-min-line"],[1,"mat-select-value-text",3,"ngSwitch"],["class","mat-select-min-line",4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-min-line"],[1,"mat-select-panel-wrap"],["role","listbox","tabindex","-1",3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(Ts(CT),fs(0,"div",0,1),ks("click",function(){return e.toggle()}),fs(3,"div",2),ls(4,_T,2,1,"span",3),ls(5,wT,3,2,"span",4),ps(),fs(6,"div",5),gs(7,"div",6),ps(),ps(),ls(8,kT,4,14,"ng-template",7),ks("backdropClick",function(){return e.close()})("attach",function(){return e._onAttached()})("detach",function(){return e.close()})),2&t){var n=us(1);as("aria-owns",e.panelOpen?e.id+"-panel":null),Po(3),hs("ngSwitch",e.empty),as("id",e._valueId),Po(1),hs("ngSwitchCase",!0),Po(1),hs("ngSwitchCase",!1),Po(3),hs("cdkConnectedOverlayPanelClass",e._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[k_,Lh,Nh,C_,Fh,Ah],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px;outline:0}.cdk-high-contrast-active .mat-select-panel{outline:solid 1px}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}.mat-select-min-line:empty::before{content:" ";white-space:pre;width:1px}\n'],encapsulation:2,data:{animation:[MT.transformPanelWrap,MT.transformPanel]},changeDetection:0}),t}(),zT=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[DT],imports:[[Yh,M_,xC,Tk],ky,mT,xC,Tk]}),t}(),VT={tooltipState:Ab("state",[Db("initial, void, hidden",Tb({opacity:0,transform:"scale(0)"})),Db("visible",Tb({transform:"scale(1)"})),Eb("* => visible",Ib("200ms cubic-bezier(0, 0, 0.2, 1)",Pb([Tb({opacity:0,transform:"scale(0)",offset:0}),Tb({opacity:.5,transform:"scale(0.99)",offset:.5}),Tb({opacity:1,transform:"scale(1)",offset:1})]))),Eb("* => hidden",Ib("100ms cubic-bezier(0, 0, 0.2, 1)",Tb({opacity:0})))])},BT="tooltip-panel",HT=uy({passive:!0}),jT=new _i("mat-tooltip-scroll-strategy"),GT={provide:jT,deps:[b_],useFactory:function(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},UT=new _i("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),WT=function(){var t=function(){function t(e,n,i,r,o,a,l,u,c,h,d,f){var p=this;s(this,t),this._overlay=e,this._elementRef=n,this._scrollDispatcher=i,this._viewContainerRef=r,this._ngZone=o,this._platform=a,this._ariaDescriber=l,this._focusMonitor=u,this._dir=h,this._defaultOptions=d,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this._viewportMargin=8,this._cssClassPrefix="mat",this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new U,this._handleKeydown=function(t){p._isTooltipVisible()&&t.keyCode===Fy&&!Wy(t)&&(t.preventDefault(),t.stopPropagation(),p._ngZone.run(function(){return p.hide(0)}))},this._scrollStrategy=c,this._document=f,d&&(d.position&&(this.position=d.position),d.touchGestures&&(this.touchGestures=d.touchGestures)),h.change.pipe(Xv(this._destroyed)).subscribe(function(){p._overlayRef&&p._updatePosition(p._overlayRef)}),o.runOutsideAngular(function(){n.nativeElement.addEventListener("keydown",p._handleKeydown)})}return a(t,[{key:"position",get:function(){return this._position},set:function(t){var e;t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(e=this._tooltipInstance)||void 0===e||e.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(t){this._disabled=vv(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"message",get:function(){return this._message},set:function(t){var e=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=t?String(t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){e._ariaDescriber.describe(e._elementRef.nativeElement,e.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var t=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Xv(this._destroyed)).subscribe(function(e){e?"keyboard"===e&&t._ngZone.run(function(){return t.show()}):t._ngZone.run(function(){return t.hide(0)})})}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(function(e){var n=y(e,2);t.removeEventListener(n[0],n[1],HT)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message,"tooltip"),this._focusMonitor.stopMonitoring(t)}},{key:"show",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.showDelay;if(!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new My(this._tooltipComponent,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Xv(this._destroyed)).subscribe(function(){return t._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(e)}}},{key:"hide",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(t)}},{key:"toggle",value:function(){this._isTooltipVisible()?this.hide():this.show()}},{key:"_isTooltipVisible",value:function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}},{key:"_createOverlay",value:function(){var t=this;if(this._overlayRef)return this._overlayRef;var e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(e);return n.positionChanges.pipe(Xv(this._destroyed)).subscribe(function(e){t._updateCurrentPositionClass(e.connectionPair),t._tooltipInstance&&e.scrollableViewProperties.isOverlayClipped&&t._tooltipInstance.isVisible()&&t._ngZone.run(function(){return t.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"".concat(this._cssClassPrefix,"-").concat(BT),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Xv(this._destroyed)).subscribe(function(){return t._detach()}),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(t){var e=t.getConfig().positionStrategy,n=this._getOrigin(),i=this._getOverlayPosition();e.withPositions([this._addOffset(Object.assign(Object.assign({},n.main),i.main)),this._addOffset(Object.assign(Object.assign({},n.fallback),i.fallback))])}},{key:"_addOffset",value:function(t){return t}},{key:"_getOrigin",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n||"below"==n?t={originX:"center",originY:"above"==n?"top":"bottom"}:"before"==n||"left"==n&&e||"right"==n&&!e?t={originX:"start",originY:"center"}:("after"==n||"right"==n&&e||"left"==n&&!e)&&(t={originX:"end",originY:"center"});var i=this._invertPosition(t.originX,t.originY);return{main:t,fallback:{originX:i.x,originY:i.y}}}},{key:"_getOverlayPosition",value:function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;"above"==n?t={overlayX:"center",overlayY:"bottom"}:"below"==n?t={overlayX:"center",overlayY:"top"}:"before"==n||"left"==n&&e||"right"==n&&!e?t={overlayX:"end",overlayY:"center"}:("after"==n||"right"==n&&e||"left"==n&&!e)&&(t={overlayX:"start",overlayY:"center"});var i=this._invertPosition(t.overlayX,t.overlayY);return{main:t,fallback:{overlayX:i.x,overlayY:i.y}}}},{key:"_updateTooltipMessage",value:function(){var t=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(Nf(1),Xv(this._destroyed)).subscribe(function(){t._tooltipInstance&&t._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}},{key:"_updateCurrentPositionClass",value:function(t){var e,n=t.overlayY,i=t.originX;if((e="center"===n?this._dir&&"rtl"===this._dir.value?"end"===i?"left":"right":"start"===i?"left":"right":"bottom"===n&&"top"===t.originY?"above":"below")!==this._currentPosition){var r=this._overlayRef;if(r){var o="".concat(this._cssClassPrefix,"-").concat(BT,"-");r.removePanelClass(o+this._currentPosition),r.addPanelClass(o+e)}this._currentPosition=e}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var t=this;!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){t._setupPointerExitEventsIfNeeded(),t.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){t._setupPointerExitEventsIfNeeded(),clearTimeout(t._touchstartTimeout),t._touchstartTimeout=setTimeout(function(){return t.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var t,e=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var n=[];if(this._platformSupportsMouseEvents())n.push(["mouseleave",function(){return e.hide()}],["wheel",function(t){return e._wheelListener(t)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var i=function(){clearTimeout(e._touchstartTimeout),e.hide(e._defaultOptions.touchendHideDelay)};n.push(["touchend",i],["touchcancel",i])}this._addListeners(n),(t=this._passiveListeners).push.apply(t,n)}}},{key:"_addListeners",value:function(t){var e=this;t.forEach(function(t){var n=y(t,2);e._elementRef.nativeElement.addEventListener(n[0],n[1],HT)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(t){if(this._isTooltipVisible()){var e=this._document.elementFromPoint(t.clientX,t.clientY),n=this._elementRef.nativeElement;e===n||n.contains(e)||this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var t=this.touchGestures;if("off"!==t){var e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==t&&e.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(b_),cs(Al),cs(xy),cs(cu),cs(kc),cs(oy),cs(W_),cs(mb),cs(void 0),cs(py),cs(void 0),cs(oh))},t.\u0275dir=me({type:t,inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),t}(),YT=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l,u,c,h,d,f,p){var g;return s(this,n),(g=e.call(this,t,i,r,o,a,l,u,c,h,d,f,p))._tooltipComponent=XT,g}return n}(WT);return t.\u0275fac=function(e){return new(e||t)(cs(b_),cs(Al),cs(xy),cs(cu),cs(kc),cs(oy),cs(W_),cs(mb),cs(jT),cs(py,8),cs(UT,8),cs(oh))},t.\u0275dir=me({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[qa]}),t}(),qT=function(){var t=function(){function t(e){s(this,t),this._changeDetectorRef=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new U}return a(t,[{key:"show",value:function(t){var e=this;clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){e._visibility="visible",e._showTimeoutId=void 0,e._onShow(),e._markForCheck()},t)}},{key:"hide",value:function(t){var e=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){e._visibility="hidden",e._hideTimeoutId=void 0,e._markForCheck()},t)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return"visible"===this._visibility}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete()}},{key:"_animationStart",value:function(){this._closeOnInteraction=!1}},{key:"_animationDone",value:function(t){var e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_onShow",value:function(){}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Jl))},t.\u0275dir=me({type:t}),t}(),XT=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i){var r;return s(this,n),(r=e.call(this,t))._breakpointObserver=i,r._isHandset=r._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),r}return n}(qT);return t.\u0275fac=function(e){return new(e||t)(cs(Jl),cs(sI))},t.\u0275cmp=ce({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&ks("click",function(){return e._handleBodyInteraction()},!1,Br)("auxclick",function(){return e._handleBodyInteraction()},!1,Br),2&t&&Bs("zoom","visible"===e._visibility?1:null)},features:[qa],decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var n;1&t&&(fs(0,"div",0),ks("@state.start",function(){return e._animationStart()})("@state.done",function(t){return e._animationDone(t)}),Tu(1,"async"),Qs(2),ps()),2&t&&(Hs("mat-tooltip-handset",null==(n=Du(1,5,e._isHandset))?null:n.matches),hs("ngClass",e.tooltipClass)("@state",e._visibility),Po(2),Js(e.message))},directives:[Ah],pipes:[jh],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[VT.tooltipState]},changeDetection:0}),t}(),ZT=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[GT],imports:[[wb,Yh,M_,Tk],Tk,ky]}),t}();function KT(t,e){if(1&t&&(fs(0,"mat-option",19),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n),Po(1),tl(" ",n," ")}}function $T(t,e){if(1&t){var n=_s();fs(0,"mat-form-field",16),fs(1,"mat-select",17),ks("selectionChange",function(t){return en(n),Is(2)._changePageSize(t.value)}),ls(2,KT,2,2,"mat-option",18),ps(),ps()}if(2&t){var i=Is(2);hs("appearance",i._formFieldAppearance)("color",i.color),Po(1),hs("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),Po(1),hs("ngForOf",i._displayedPageSizeOptions)}}function QT(t,e){if(1&t&&(fs(0,"div",20),Qs(1),ps()),2&t){var n=Is(2);Po(1),Js(n.pageSize)}}function JT(t,e){if(1&t&&(fs(0,"div",12),fs(1,"div",13),Qs(2),ps(),ls(3,$T,3,6,"mat-form-field",14),ls(4,QT,2,1,"div",15),ps()),2&t){var n=Is();Po(2),tl(" ",n._intl.itemsPerPageLabel," "),Po(1),hs("ngIf",n._displayedPageSizeOptions.length>1),Po(1),hs("ngIf",n._displayedPageSizeOptions.length<=1)}}function tD(t,e){if(1&t){var n=_s();fs(0,"button",21),ks("click",function(){return en(n),Is().firstPage()}),Tn(),fs(1,"svg",7),gs(2,"path",22),ps(),ps()}if(2&t){var i=Is();hs("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),as("aria-label",i._intl.firstPageLabel)}}function eD(t,e){if(1&t){var n=_s();Tn(),Dn(),fs(0,"button",23),ks("click",function(){return en(n),Is().lastPage()}),Tn(),fs(1,"svg",7),gs(2,"path",24),ps(),ps()}if(2&t){var i=Is();hs("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),as("aria-label",i._intl.lastPageLabel)}}var nD=function(){var t=function t(){s(this,t),this.changes=new U,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(t,e,n){if(0==n||0==e)return"0 of ".concat(n);var i=t*e,r=i<(n=Math.max(n,0))?Math.min(i+e,n):i+e;return"".concat(i+1," \u2013 ").concat(r," of ").concat(n)}};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Pt({factory:function(){return new t},token:t,providedIn:"root"}),t}(),iD={provide:nD,deps:[[new Wi,new Yi,nD]],useFactory:function(t){return t||new nD}},rD=new _i("MAT_PAGINATOR_DEFAULT_OPTIONS"),oD=Dk(Nk(function(){return function t(){s(this,t)}}())),aD=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;if(s(this,n),(o=e.call(this))._intl=t,o._changeDetectorRef=i,o._pageIndex=0,o._length=0,o._pageSizeOptions=[],o._hidePageSize=!1,o._showFirstLastButtons=!1,o.page=new Nu,o._intlChanges=t.changes.subscribe(function(){return o._changeDetectorRef.markForCheck()}),r){var a=r.pageSize,l=r.pageSizeOptions,u=r.hidePageSize,c=r.showFirstLastButtons;null!=a&&(o._pageSize=a),null!=l&&(o._pageSizeOptions=l),null!=u&&(o._hidePageSize=u),null!=c&&(o._showFirstLastButtons=c)}return o}return a(n,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(t){this._pageIndex=Math.max(yv(t),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(t){this._length=yv(t),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(t){this._pageSize=Math.max(yv(t),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(t){this._pageSizeOptions=(t||[]).map(function(t){return yv(t)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(t){this._hidePageSize=vv(t)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(t){this._showFirstLastButtons=vv(t)}},{key:"ngOnInit",value:function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}},{key:"ngOnDestroy",value:function(){this._intlChanges.unsubscribe()}},{key:"nextPage",value:function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var t=this.getNumberOfPages()-1;return this.pageIndex=o.length&&(a=0),o[a]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(fD);return t.\u0275fac=function(e){return new(e||t)(cs(dD,8))},t.\u0275dir=me({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[qa,Te]}),t}(),gD=Ak.ENTERING+" "+Mk.STANDARD_CURVE,mD={indicator:Ab("indicator",[Db("active-asc, asc",Tb({transform:"translateY(0px)"})),Db("active-desc, desc",Tb({transform:"translateY(10px)"})),Eb("active-asc <=> active-desc",Ib(gD))]),leftPointer:Ab("leftPointer",[Db("active-asc, asc",Tb({transform:"rotate(-45deg)"})),Db("active-desc, desc",Tb({transform:"rotate(45deg)"})),Eb("active-asc <=> active-desc",Ib(gD))]),rightPointer:Ab("rightPointer",[Db("active-asc, asc",Tb({transform:"rotate(45deg)"})),Db("active-desc, desc",Tb({transform:"rotate(-45deg)"})),Eb("active-asc <=> active-desc",Ib(gD))]),arrowOpacity:Ab("arrowOpacity",[Db("desc-to-active, asc-to-active, active",Tb({opacity:1})),Db("desc-to-hint, asc-to-hint, hint",Tb({opacity:.54})),Db("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",Tb({opacity:0})),Eb("* => asc, * => desc, * => active, * => hint, * => void",Ib("0ms")),Eb("* <=> *",Ib(gD))]),arrowPosition:Ab("arrowPosition",[Eb("* => desc-to-hint, * => desc-to-active",Ib(gD,Pb([Tb({transform:"translateY(-25%)"}),Tb({transform:"translateY(0)"})]))),Eb("* => hint-to-desc, * => active-to-desc",Ib(gD,Pb([Tb({transform:"translateY(0)"}),Tb({transform:"translateY(25%)"})]))),Eb("* => asc-to-hint, * => asc-to-active",Ib(gD,Pb([Tb({transform:"translateY(25%)"}),Tb({transform:"translateY(0)"})]))),Eb("* => hint-to-asc, * => active-to-asc",Ib(gD,Pb([Tb({transform:"translateY(0)"}),Tb({transform:"translateY(-25%)"})]))),Db("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",Tb({transform:"translateY(0)"})),Db("hint-to-desc, active-to-desc, desc",Tb({transform:"translateY(-25%)"})),Db("hint-to-asc, active-to-asc, asc",Tb({transform:"translateY(25%)"}))]),allowChildren:Ab("allowChildren",[Eb("* <=> *",[Lb("@*",Rb(),{optional:!0})])])},vD=function(){var t=function t(){s(this,t),this.changes=new U};return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Pt({factory:function(){return new t},token:t,providedIn:"root"}),t}(),yD={provide:vD,deps:[[new Wi,new Yi,vD]],useFactory:function(t){return t||new vD}},_D=Dk(function(){return function t(){s(this,t)}}()),bD=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l){var u;return s(this,n),(u=e.call(this))._intl=t,u._changeDetectorRef=i,u._sort=r,u._columnDef=o,u._focusMonitor=a,u._elementRef=l,u._showIndicatorHint=!1,u._viewState={},u._arrowDirection="",u._disableViewStateAnimation=!1,u.arrowPosition="after",u._handleStateChanges(),u}return a(n,[{key:"disableClear",get:function(){return this._disableClear},set:function(t){this._disableClear=vv(t)}},{key:"ngOnInit",value:function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)}},{key:"ngAfterViewInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(e){var n=!!e;n!==t._showIndicatorHint&&(t._setIndicatorHintVisible(n),t._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(t){this._viewState=t||{},this._disableViewStateAnimation&&(this._viewState={toState:t.toState})}},{key:"_toggleOnInteraction",value:function(){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0)}},{key:"_handleClick",value:function(){this._isDisabled()||this._sort.sort(this)}},{key:"_handleKeydown",value:function(t){this._isDisabled()||t.keyCode!==zy&&t.keyCode!==Ny||(t.preventDefault(),this._toggleOnInteraction())}},{key:"_isSorted",value:function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)}},{key:"_getArrowDirectionState",value:function(){return"".concat(this._isSorted()?"active-":"").concat(this._arrowDirection)}},{key:"_getArrowViewState",value:function(){var t=this._viewState.fromState;return(t?"".concat(t,"-to-"):"")+this._viewState.toState}},{key:"_updateArrowDirection",value:function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start}},{key:"_isDisabled",value:function(){return this._sort.disabled||this.disabled}},{key:"_getAriaSortAttribute",value:function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":"none"}},{key:"_renderArrow",value:function(){return!this._isDisabled()||this._isSorted()}},{key:"_handleStateChanges",value:function(){var t=this;this._rerenderSubscription=dt(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){t._isSorted()&&(t._updateArrowDirection(),"hint"!==t._viewState.toState&&"active"!==t._viewState.toState||(t._disableViewStateAnimation=!0),t._setAnimationTransitionState({fromState:t._arrowDirection,toState:"active"}),t._showIndicatorHint=!1),!t._isSorted()&&t._viewState&&"active"===t._viewState.toState&&(t._disableViewStateAnimation=!1,t._setAnimationTransitionState({fromState:"active",toState:t._arrowDirection})),t._changeDetectorRef.markForCheck()})}}]),n}(_D);return t.\u0275fac=function(e){return new(e||t)(cs(vD),cs(Jl),cs(pD,8),cs("MAT_SORT_HEADER_COLUMN_DEF",8),cs(mb),cs(Al))},t.\u0275cmp=ce({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(t,e){1&t&&ks("click",function(){return e._handleClick()})("keydown",function(t){return e._handleKeydown(t)})("mouseenter",function(){return e._setIndicatorHintVisible(!0)})("mouseleave",function(){return e._setIndicatorHintVisible(!1)}),2&t&&(as("aria-sort",e._getAriaSortAttribute()),Hs("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",arrowPosition:"arrowPosition",disableClear:"disableClear",id:["mat-sort-header","id"],start:"start"},exportAs:["matSortHeader"],features:[qa],attrs:uD,ngContentSelectors:hD,decls:4,vars:6,consts:[["role","button",1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(Ts(),fs(0,"div",0),fs(1,"div",1),Ds(2),ps(),ls(3,cD,6,6,"div",2),ps()),2&t&&(Hs("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),as("tabindex",e._isDisabled()?null:0),Po(3),hs("ngIf",e._renderArrow()))},directives:[Dh],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-content{text-align:center;display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}.cdk-high-contrast-active .mat-sort-header-stem{width:0;border-left:solid 2px}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}.cdk-high-contrast-active .mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}.cdk-high-contrast-active .mat-sort-header-pointer-left,.cdk-high-contrast-active .mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}\n"],encapsulation:2,data:{animation:[mD.indicator,mD.leftPointer,mD.rightPointer,mD.arrowOpacity,mD.arrowPosition,mD.allowChildren]},changeDetection:0}),t}(),xD=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[yD],imports:[[Yh,Tk]]}),t}(),wD=[[["caption"]],[["colgroup"],["col"]]],kD=["caption","colgroup, col"];function CD(t){return function(t){u(n,t);var e=p(n);function n(){var t;s(this,n);for(var i=arguments.length,r=new Array(i),o=0;o4&&void 0!==arguments[4])||arguments[4],a=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],l=arguments.length>6?arguments[6]:void 0;s(this,t),this._isNativeHtmlTable=e,this._stickCellCss=n,this.direction=i,this._coalescedStyleScheduler=r,this._isBrowser=o,this._needsPositionStickyOnElement=a,this._positionListener=l,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(n,"-border-elem-top"),bottom:"".concat(n,"-border-elem-bottom"),left:"".concat(n,"-border-elem-left"),right:"".concat(n,"-border-elem-right")}}return a(t,[{key:"clearStickyPositioning",value:function(t,e){var n,i=this,r=[],o=v(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(a.nodeType===a.ELEMENT_NODE){r.push(a);for(var s=0;s3&&void 0!==arguments[3])||arguments[3];if(t.length&&this._isBrowser&&(e.some(function(t){return t})||n.some(function(t){return t}))){var o=t[0],a=o.children.length,s=this._getCellWidths(o,r),l=this._getStickyStartColumnPositions(s,e),u=this._getStickyEndColumnPositions(s,n),c=e.lastIndexOf(!0),h=n.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var r,o="rtl"===i.direction,d=o?"right":"left",f=o?"left":"right",p=v(t);try{for(p.s();!(r=p.n()).done;)for(var g=r.value,m=0;m1&&void 0!==arguments[1])||arguments[1];if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var n=[],i=t.children,r=0;r0;r--)e[r]&&(n[r]=i,i+=t[r]);return n}}]),t}(),ZD=new _i("CDK_SPL"),KD=function(){var t=function t(e,n){s(this,t),this.viewContainer=e,this.elementRef=n};return t.\u0275fac=function(e){return new(e||t)(cs(cu),cs(Al))},t.\u0275dir=me({type:t,selectors:[["","rowOutlet",""]]}),t}(),$D=function(){var t=function t(e,n){s(this,t),this.viewContainer=e,this.elementRef=n};return t.\u0275fac=function(e){return new(e||t)(cs(cu),cs(Al))},t.\u0275dir=me({type:t,selectors:[["","headerRowOutlet",""]]}),t}(),QD=function(){var t=function t(e,n){s(this,t),this.viewContainer=e,this.elementRef=n};return t.\u0275fac=function(e){return new(e||t)(cs(cu),cs(Al))},t.\u0275dir=me({type:t,selectors:[["","footerRowOutlet",""]]}),t}(),JD=function(){var t=function t(e,n){s(this,t),this.viewContainer=e,this.elementRef=n};return t.\u0275fac=function(e){return new(e||t)(cs(cu),cs(Al))},t.\u0275dir=me({type:t,selectors:[["","noDataRowOutlet",""]]}),t}(),tP=function(){var t=function(){function t(e,n,i,r,o,a,l,u,c,h,d){s(this,t),this._differs=e,this._changeDetectorRef=n,this._elementRef=i,this._dir=o,this._platform=l,this._viewRepeater=u,this._coalescedStyleScheduler=c,this._viewportRuler=h,this._stickyPositioningListener=d,this._onDestroy=new U,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._stickyColumnStylesNeedReset=!0,this._forceRecalculateCellWidths=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this.needsPositionStickyOnElement=!0,this._isShowingNoDataRow=!1,this._multiTemplateDataRows=!1,this._fixedLayout=!1,this.viewChange=new yf({start:0,end:Number.MAX_VALUE}),r||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=a,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return a(t,[{key:"trackBy",get:function(){return this._trackByFn},set:function(t){this._trackByFn=t}},{key:"dataSource",get:function(){return this._dataSource},set:function(t){this._dataSource!==t&&this._switchDataSource(t)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(t){this._multiTemplateDataRows=vv(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(t){this._fixedLayout=vv(t),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var t=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(e,n){return t.trackBy?t.trackBy(n.dataIndex,n.data):n}),this._viewportRuler.change().pipe(Xv(this._onDestroy)).subscribe(function(){t._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var t=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||t,this._forceRecalculateCellWidths=t,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}},{key:"ngOnDestroy",value:function(){this._rowOutlet.viewContainer.clear(),this._noDataRowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),vy(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var t=this;this._renderRows=this._getAllRenderRows();var e=this._dataDiffer.diff(this._renderRows);if(e){var n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,n,function(e,n,i){return t._getEmbeddedViewArgs(e.item,i)},function(t){return t.item.data},function(e){1===e.operation&&e.context&&t._renderCellTemplateForItem(e.record.item.rowDef,e.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(function(t){n.get(t.currentIndex).context.$implicit=t.item.data}),this._updateNoDataRow(),this.updateStickyColumnStyles()}else this._updateNoDataRow()}},{key:"addColumnDef",value:function(t){this._customColumnDefs.add(t)}},{key:"removeColumnDef",value:function(t){this._customColumnDefs.delete(t)}},{key:"addRowDef",value:function(t){this._customRowDefs.add(t)}},{key:"removeRowDef",value:function(t){this._customRowDefs.delete(t)}},{key:"addHeaderRowDef",value:function(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(t){this._customNoDataRow=t}},{key:"updateStickyHeaderRowStyles",value:function(){var t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");var n=this._headerRowDefs.map(function(t){return t.sticky});this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,n,"top"),this._headerRowDefs.forEach(function(t){return t.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");var n=this._footerRowDefs.map(function(t){return t.sticky});this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(function(t){return t.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var t=this,e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(b(e),b(n),b(i)),["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach(function(e,n){t._addStickyColumnStyles([e],t._headerRowDefs[n])}),this._rowDefs.forEach(function(e){for(var i=[],r=0;r0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(e,n){return t._renderRow(t._headerRowOutlet,e,n)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var t=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(e,n){return t._renderRow(t._footerRowOutlet,e,n)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(t,e){var n=this,i=Array.from(e.columns||[]).map(function(t){return n._columnDefsByName.get(t)}),r=i.map(function(t){return t.sticky}),o=i.map(function(t){return t.stickyEnd});this._stickyStyler.updateStickyColumns(t,r,o,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(t){for(var e=[],n=0;n3&&void 0!==arguments[3]?arguments[3]:{},r=t.viewContainer.createEmbeddedView(e.template,i,n);return this._renderCellTemplateForItem(e,i),r}},{key:"_renderCellTemplateForItem",value:function(t,e){var n,i=v(this._getCellTemplates(t));try{for(i.s();!(n=i.n()).done;)GD.mostRecentCellOutlet&&GD.mostRecentCellOutlet._viewContainer.createEmbeddedView(n.value,e)}catch(r){i.e(r)}finally{i.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var t=this._rowOutlet.viewContainer,e=0,n=t.length;e0&&void 0!==arguments[0]?arguments[0]:[];return s(this,n),(t=e.call(this))._renderData=new yf([]),t._filter=new yf(""),t._internalPageChanges=new U,t._renderChangesSubscription=null,t.sortingDataAccessor=function(t,e){var n=t[e];if(_v(n)){var i=Number(n);return ia?u=1:o0)){var i=Math.ceil(n.length/n.pageSize)-1||0,r=Math.min(n.pageIndex,i);r!==n.pageIndex&&(n.pageIndex=r,e._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var t;null===(t=this._renderChangesSubscription)||void 0===t||t.unsubscribe(),this._renderChangesSubscription=null}}]),n}(my));function yP(t){return t instanceof Date&&!isNaN(+t)}function _P(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bv,n=yP(t),i=n?+t-e.now():Math.abs(t);return function(t){return t.lift(new bP(i,e))}}var bP=function(){function t(e,n){s(this,t),this.delay=e,this.scheduler=n}return a(t,[{key:"call",value:function(t,e){return e.subscribe(new xP(t,this.delay,this.scheduler))}}]),t}(),xP=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,t)).delay=i,o.scheduler=r,o.queue=[],o.active=!1,o.errored=!1,o}return a(n,[{key:"_schedule",value:function(t){this.active=!0,this.destination.add(t.schedule(n.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))}},{key:"scheduleNotification",value:function(t){if(!0!==this.errored){var e=this.scheduler,n=new wP(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}}},{key:"_next",value:function(t){this.scheduleNotification(ty.createNext(t))}},{key:"_error",value:function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()}},{key:"_complete",value:function(){this.scheduleNotification(ty.createComplete()),this.unsubscribe()}}],[{key:"dispatch",value:function(t){for(var e=t.source,n=e.queue,i=t.scheduler,r=t.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1}}]),n}(R),wP=function t(e,n){s(this,t),this.time=e,this.notification=n},kP=uy({passive:!0}),CP=function(){var t=function(){function t(e,n){s(this,t),this._platform=e,this._ngZone=n,this._monitoredElements=new Map}return a(t,[{key:"monitor",value:function(t){var e=this;if(!this._platform.isBrowser)return Of;var n=wv(t),i=this._monitoredElements.get(n);if(i)return i.subject;var r=new U,o="cdk-text-field-autofilled",a=function(t){"cdk-text-field-autofill-start"!==t.animationName||n.classList.contains(o)?"cdk-text-field-autofill-end"===t.animationName&&n.classList.contains(o)&&(n.classList.remove(o),e._ngZone.run(function(){return r.next({target:t.target,isAutofilled:!1})})):(n.classList.add(o),e._ngZone.run(function(){return r.next({target:t.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){n.addEventListener("animationstart",a,kP),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:r,unlisten:function(){n.removeEventListener("animationstart",a,kP)}}),r}},{key:"stopMonitoring",value:function(t){var e=wv(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}},{key:"ngOnDestroy",value:function(){var t=this;this._monitoredElements.forEach(function(e,n){return t.stopMonitoring(n)})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(oy),Fi(kc))},t.\u0275prov=Pt({factory:function(){return new t(Fi(oy),Fi(kc))},token:t,providedIn:"root"}),t}(),SP=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[ay]]}),t}(),MP=new _i("MAT_INPUT_VALUE_ACCESSOR"),AP=["button","checkbox","file","hidden","image","radio","range","reset","submit"],IP=0,OP=Lk(function(){return function t(e,n,i,r){s(this,t),this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}}()),TP=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l,u,c,h,d){var f;s(this,n),(f=e.call(this,l,o,a,r))._elementRef=t,f._platform=i,f.ngControl=r,f._autofillMonitor=c,f._formField=d,f._uid="mat-input-".concat(IP++),f.focused=!1,f.stateChanges=new U,f.controlType="mat-input",f.autofilled=!1,f._disabled=!1,f._required=!1,f._type="text",f._readonly=!1,f._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(t){return ly().has(t)});var p=f._elementRef.nativeElement,g=p.nodeName.toLowerCase();return f._inputValueAccessor=u||p,f._previousNativeValue=f.value,f.id=f.id,i.IOS&&h.runOutsideAngular(function(){t.nativeElement.addEventListener("keyup",function(t){var e=t.target;e.value||0!==e.selectionStart||0!==e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),f._isServer=!f._platform.isBrowser,f._isNativeSelect="select"===g,f._isTextarea="textarea"===g,f._isInFormField=!!d,f._isNativeSelect&&(f.controlType=p.multiple?"mat-native-select-multiple":"mat-native-select"),f}return a(n,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(t){this._disabled=vv(t),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(t){this._id=t||this._uid}},{key:"required",get:function(){return this._required},set:function(t){this._required=vv(t)}},{key:"type",get:function(){return this._type},set:function(t){this._type=t||"text",this._validateType(),!this._isTextarea&&ly().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(t){this._readonly=vv(t)}},{key:"ngAfterViewInit",value:function(){var t=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(e){t.autofilled=e.isAutofilled,t.stateChanges.next()})}},{key:"ngOnChanges",value:function(){this.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(t){this._elementRef.nativeElement.focus(t)}},{key:"_focusChanged",value:function(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var t,e,n=(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(n!==this._previousPlaceholder){var i=this._elementRef.nativeElement;this._previousPlaceholder=n,n?i.setAttribute("placeholder",n):i.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}},{key:"_validateType",value:function(){AP.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var 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}},{key:"setDescribedByIds",value:function(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}}]),n}(OP);return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(oy),cs(zS,10),cs(dM,8),cs(wM,8),cs(Kk),cs(MP,10),cs(CP),cs(kc),cs(pT,8))},t.\u0275dir=me({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&&ks("focus",function(){return e._focusChanged(!0)})("blur",function(){return e._focusChanged(!1)})("input",function(){return e._onInput()}),2&t&&(nl("disabled",e.disabled)("required",e.required),as("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.empty&&e.required?null:e.errorState)("aria-required",e.required),Hs("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:[_l([{provide:rT,useExisting:t}]),qa,Te]}),t}(),DP=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[Kk],imports:[[SP,mT,Tk],SP,mT]}),t}(),PP=["searchSelectInput"],EP=["innerSelectSearch"];function RP(t,e){if(1&t){var n=_s();fs(0,"button",6),ks("click",function(){return en(n),Is()._reset(!0)}),fs(1,"i",7),Qs(2,"close"),ps(),ps()}}var LP=function(t){return{"mat-select-search-inner-multiple":t}},NP=function(){function t(t,e){this.matSelect=t,this.changeDetectorRef=e,this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.clearSearchInput=!0,this.disableInitialFocus=!1,this.changed=new Nu,this.overlayClassSet=!1,this.change=new Nu,this._onDestroy=new U}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){var t=this,e="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(e):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,e]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[e]=!0):this.matSelect.panelClass=e,this.matSelect.openedChange.pipe(_P(1),Xv(this._onDestroy)).subscribe(function(e){e?(t.getWidth(),t.disableInitialFocus||t._focus()):t.clearSearchInput&&t._reset()}),this.matSelect.openedChange.pipe(Nf(1)).pipe(Xv(this._onDestroy)).subscribe(function(){t._options=t.matSelect.options,t._options.changes.pipe(Xv(t._onDestroy)).subscribe(function(){var e=t.matSelect._keyManager;e&&t.matSelect.panelOpen&&setTimeout(function(){e.setFirstItemActive(),t.getWidth()},1)})}),this.change.pipe(Xv(this._onDestroy)).subscribe(function(){t.changeDetectorRef.detectChanges()}),this.initMultipleHandling()},t.prototype.ngOnDestroy=function(){this._onDestroy.next(),this._onDestroy.complete()},t.prototype.ngAfterViewInit=function(){var t=this;setTimeout(function(){t.setOverlayClass()}),this.matSelect.openedChange.pipe(Nf(1),Xv(this._onDestroy)).subscribe(function(){t.matSelect.options.changes.pipe(Xv(t._onDestroy)).subscribe(function(){t.changeDetectorRef.markForCheck()})})},t.prototype._handleKeydown=function(t){(t.key&&1===t.key.length||t.keyCode>=65&&t.keyCode<=90||t.keyCode>=48&&t.keyCode<=57||t.keyCode===zy)&&t.stopPropagation()},t.prototype.writeValue=function(t){t!==this._value&&(this._value=t,this.change.emit(t))},t.prototype.onInputChange=function(t){t.value!==this._value&&(this.initMultiSelectedValues(),this._value=t.value,this.changed.emit(t.value),this.change.emit(t.value))},t.prototype.onBlur=function(t){this.writeValue(t.value)},t.prototype._focus=function(){if(this.searchSelectInput&&this.matSelect.panel){var t=this.matSelect.panel.nativeElement,e=t.scrollTop;this.searchSelectInput.nativeElement.focus(),t.scrollTop=e}},t.prototype._reset=function(t){this.searchSelectInput&&(this.searchSelectInput.nativeElement.value="",this.onInputChange(""),t&&this._focus())},t.prototype.initMultiSelectedValues=function(){this.matSelect.multiple&&!this._value&&(this.previousSelectedValues=this.matSelect.options.filter(function(t){return t.selected}).map(function(t){return t.value}))},t.prototype.setOverlayClass=function(){var t=this;this.overlayClassSet||(this.matSelect.openedChange.pipe(Xv(this._onDestroy)).subscribe(function(e){if(e){for(var n=t.searchSelectInput.nativeElement,i=void 0;n=n.parentElement;)if(n.classList.contains("cdk-overlay-pane")){i=n;break}i&&i.classList.add("cdk-overlay-pane-select-search")}}),this.overlayClassSet=!0)},t.prototype.initMultipleHandling=function(){var t=this;this.matSelect.valueChange.pipe(Xv(this._onDestroy)).subscribe(function(e){if(t.matSelect.multiple){var n=!1;if(t._value&&t._value.length&&t.previousSelectedValues&&Array.isArray(t.previousSelectedValues)){e&&Array.isArray(e)||(e=[]);var i=t.matSelect.options.map(function(t){return t.value});t.previousSelectedValues.forEach(function(t){-1===e.indexOf(t)&&-1===i.indexOf(t)&&(e.push(t),n=!0)})}n&&t.matSelect._onChange(e),t.previousSelectedValues=e}})},t.prototype.getWidth=function(){if(this.innerSelectSearch&&this.innerSelectSearch.nativeElement){for(var t,e=this.innerSelectSearch.nativeElement;e=e.parentElement;)if(e.classList.contains("mat-select-panel")){t=e;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}},t.\u0275fac=function(e){return new(e||t)(cs(FT),cs(Jl))},t.\u0275cmp=ce({type:t,selectors:[["uds-mat-select-search"]],viewQuery:function(t,e){if(1&t&&(Zu(PP,7,Al),Zu(EP,7,Al)),2&t){var n=void 0;Xu(n=$u())&&(e.searchSelectInput=n.first),Xu(n=$u())&&(e.innerSelectSearch=n.first)}},inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",disableInitialFocus:"disableInitialFocus"},outputs:{changed:"changed"},features:[_l([{provide:cS,useExisting:St(function(){return t}),multi:!0}])],decls:6,vars:5,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["matInput","","autocomplete","off",1,"mat-select-search-input",3,"placeholder","keydown","input","blur"],["searchSelectInput",""],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[1,"material-icons"]],template:function(t,e){1&t&&(gs(0,"input",0),fs(1,"div",1,2),fs(3,"input",3,4),ks("keydown",function(t){return e._handleKeydown(t)})("input",function(t){return e.onInputChange(t.target)})("blur",function(t){return e.onBlur(t.target)}),ps(),ls(5,RP,3,0,"button",5),ps()),2&t&&(Po(1),hs("ngClass",Su(3,LP,e.matSelect.multiple)),Po(2),hs("placeholder",e.placeholderLabel),Po(2),hs("ngIf",e.value))},directives:[TP,Ah,Dh,ZC],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:0}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 36px 16px 16px;box-sizing:border-box}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px} .cdk-overlay-pane-select-search{margin-top:-50px}"],changeDetection:0}),t}();function FP(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"New user permission for"),ps())}function zP(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"New group permission for"),ps())}function VP(t,e){if(1&t&&(fs(0,"mat-option",11),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),Js(n.text)}}function BP(t,e){if(1&t){var n=_s();fs(0,"uds-mat-select-search",12),ks("changed",function(t){return en(n),Is().filterUser=t}),ps()}}function HP(t,e){if(1&t&&(fs(0,"mat-option",11),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),Js(n.text)}}function jP(t,e){if(1&t&&(fs(0,"mat-option",11),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),Js(n.text)}}var GP=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.data=i,this.filterUser="",this.authenticators=[],this.entities=[],this.permissions=[{id:"1",text:django.gettext("Read only")},{id:"2",text:django.gettext("Full Access")}],this.authenticator="",this.entity="",this.permission="1",this.onSave=new Nu(!0)}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"50%";return e.gui.dialog.open(t,{width:r,data:{type:n,item:i},disableClose:!0}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.summary().subscribe(function(e){e.forEach(function(e){t.authenticators.push({id:e.id,text:e.name})})})},t.prototype.changeAuth=function(t){var e=this;this.entities.length=0,this.entity="",this.rest.authenticators.detail(t,this.data.type+"s").summary().subscribe(function(t){t.forEach(function(t){e.entities.push({id:t.id,text:t.name})})})},t.prototype.save=function(){this.onSave.emit({authenticator:this.authenticator,entity:this.entity,permissision:this.permission}),this.dialogRef.close()},t.prototype.filteredEntities=function(){var t=this,e=new Array;return this.entities.forEach(function(n){t.filterUser&&!n.text.toLocaleLowerCase().includes(t.filterUser.toLocaleLowerCase())||e.push(n)}),e},t.prototype.getFieldLabel=function(t){return"user"===t?django.gettext("User"):"group"===t?django.gettext("Group"):"auth"===t?django.gettext("Authenticator"):django.gettext("Permission")},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-new-permission"]],decls:24,vars:13,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],[3,"innerHTML"],["titleGroup",""],[1,"container"],[3,"placeholder","ngModel","valueChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"placeholder","ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"]],template:function(t,e){if(1&t&&(fs(0,"h4",0),ls(1,FP,2,0,"uds-translate",1),gs(2,"b",2),ls(3,zP,2,0,"ng-template",null,3,ec),ps(),fs(5,"mat-dialog-content"),fs(6,"div",4),fs(7,"mat-form-field"),fs(8,"mat-select",5),ks("valueChange",function(t){return e.changeAuth(t)})("ngModelChange",function(t){return e.authenticator=t}),ls(9,VP,2,2,"mat-option",6),ps(),ps(),fs(10,"mat-form-field"),fs(11,"mat-select",7),ks("ngModelChange",function(t){return e.entity=t}),ls(12,BP,1,0,"uds-mat-select-search",8),ls(13,HP,2,2,"mat-option",6),ps(),ps(),fs(14,"mat-form-field"),fs(15,"mat-select",7),ks("ngModelChange",function(t){return e.permission=t}),ls(16,jP,2,2,"mat-option",6),ps(),ps(),ps(),ps(),fs(17,"mat-dialog-actions"),fs(18,"button",9),fs(19,"uds-translate"),Qs(20,"Cancel"),ps(),ps(),fs(21,"button",10),ks("click",function(){return e.save()}),fs(22,"uds-translate"),Qs(23,"Ok"),ps(),ps(),ps()),2&t){var n=us(4);Po(1),hs("ngIf","user"===e.data.type)("ngIfElse",n),Po(1),hs("innerHTML",e.data.item.name,Ir),Po(6),hs("placeholder",e.getFieldLabel("auth"))("ngModel",e.authenticator),Po(1),hs("ngForOf",e.authenticators),Po(2),hs("placeholder",e.getFieldLabel(e.data.type))("ngModel",e.entity),Po(1),hs("ngIf",e.entities.length>10),Po(1),hs("ngForOf",e.filteredEntities()),Po(2),hs("placeholder",e.getFieldLabel("perm"))("ngModel",e.permission),Po(1),hs("ngForOf",e.permissions)}},directives:[zC,Dh,VC,gT,FT,BS,gM,Oh,BC,ZC,FC,QC,yC,NP],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function UP(t,e){if(1&t){var n=_s();fs(0,"div",11),fs(1,"div",12),Qs(2),ps(),fs(3,"div",13),Qs(4),fs(5,"a",14),ks("click",function(){var t=en(n).$implicit;return Is(2).revokePermission(t)}),fs(6,"i",15),Qs(7,"close"),ps(),ps(),ps(),ps()}if(2&t){var i=e.$implicit;Po(2),el(" ",i.entity_name,"@",i.auth_name," "),Po(2),tl(" ",i.perm_name," \xa0")}}function WP(t,e){if(1&t){var n=_s();fs(0,"div",7),fs(1,"div",8),fs(2,"div",9),ks("click",function(t){var e=en(n).$implicit;return Is().newPermission(e),t.preventDefault()}),fs(3,"uds-translate"),Qs(4,"New permission..."),ps(),ps(),ls(5,UP,8,3,"div",10),ps(),ps()}if(2&t){var i=e.$implicit;Po(5),hs("ngForOf",i)}}var YP=function(t,e){return[t,e]},qP=function(){function t(t,e,n){this.api=t,this.dialogRef=e,this.data=n,this.userPermissions=[],this.groupPermissions=[]}return t.launch=function(e,n,i){var r=window.innerWidth<800?"90%":"60%";e.gui.dialog.open(t,{width:r,data:{rest:n,item:i},disableClose:!1})},t.prototype.ngOnInit=function(){this.reload()},t.prototype.reload=function(){var t=this;this.data.rest.getPermissions(this.data.item.id).subscribe(function(e){t.updatePermissions(e)})},t.prototype.updatePermissions=function(t){var e=this;this.userPermissions.length=0,this.groupPermissions.length=0,t.forEach(function(t){"user"===t.type?e.userPermissions.push(t):e.groupPermissions.push(t)})},t.prototype.revokePermission=function(t){var e=this;this.api.gui.yesno(django.gettext("Remove"),django.gettext("Confirm revokation of permission")+" "+t.entity_name+"@"+t.auth_name+" "+t.perm_name+"").subscribe(function(n){n&&e.data.rest.revokePermission([t.id]).subscribe(function(t){e.reload()})})},t.prototype.newPermission=function(t){var e=this,n=t===this.userPermissions?"user":"group";GP.launch(this.api,n,this.data.item).subscribe(function(t){e.data.rest.addPermission(e.data.item.id,n+"s",t.entity,t.permissision).subscribe(function(t){e.reload()})})},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-permissions-form"]],decls:17,vars:5,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"titles"],[1,"title"],[1,"permissions"],["class","content",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","primary"],[1,"content"],[1,"perms"],[1,"perm","new",3,"click"],["class","perm",4,"ngFor","ngForOf"],[1,"perm"],[1,"owner"],[1,"permission"],[3,"click"],[1,"material-icons"]],template:function(t,e){1&t&&(fs(0,"h4",0),fs(1,"uds-translate"),Qs(2,"Permissions for"),ps(),Qs(3,"\xa0"),gs(4,"b",1),ps(),fs(5,"mat-dialog-content"),fs(6,"div",2),fs(7,"uds-translate",3),Qs(8,"Users"),ps(),fs(9,"uds-translate",3),Qs(10,"Groups"),ps(),ps(),fs(11,"div",4),ls(12,WP,6,1,"div",5),ps(),ps(),fs(13,"mat-dialog-actions"),fs(14,"button",6),fs(15,"uds-translate"),Qs(16,"Ok"),ps(),ps(),ps()),2&t&&(Po(4),hs("innerHTML",e.data.item.name,Ir),Po(8),hs("ngForOf",Mu(2,YP,e.userPermissions,e.groupPermissions)))},directives:[zC,QC,VC,Oh,BC,ZC,FC],styles:[".titles[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;margin-bottom:.4rem}.title[_ngcontent-%COMP%]{font-size:1.4rem}.permissions[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start}.perms[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:0 1px 4px 0 rgba(0,0,0,.14);margin-bottom:1rem;margin-right:1rem;padding:.5rem}.perm[_ngcontent-%COMP%]{font-family:Courier New,Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.perm[_ngcontent-%COMP%]:hover:not(.new){background-color:#333;color:#fff;cursor:default}.owner[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.new[_ngcontent-%COMP%]{color:blue;justify-content:center}.new[_ngcontent-%COMP%]:hover{color:#fff;background-color:blue;cursor:pointer}.content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}(),XP=n(9595),ZP=function(t){return void 0!==t.changingThisBreaksApplicationSecurity&&(t=t.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),'"'+(t=""+t).replace('"','""')+'"'},KP=function(t){var e="";t.columns.forEach(function(t){e+=ZP(t.title)+","}),e=e.slice(0,-1)+"\r\n",t.dataSource.data.forEach(function(n){t.columns.forEach(function(t){var i=n[t.name];switch(t.type){case WA.DATE:i=aO("SHORT_DATE_FORMAT",i);break;case WA.DATETIME:i=aO("SHORT_DATETIME_FORMAT",i);break;case WA.DATETIMESEC:i=aO("SHORT_DATE_FORMAT",i," H:i:s");break;case WA.TIME:i=aO("TIME_FORMAT",i)}e+=ZP(i)+","}),e=e.slice(0,-1)+"\r\n"});var n=new Blob([e],{type:"text/csv"});setTimeout(function(){(0,XP.saveAs)(n,t.title+".csv")},100)},$P=function(){function t(e,n){s(this,t),this._document=n;var i=this._textarea=this._document.createElement("textarea"),r=i.style;r.position="fixed",r.top=r.opacity="0",r.left="-999em",i.setAttribute("aria-hidden","true"),i.value=e,this._document.body.appendChild(i)}return a(t,[{key:"copy",value:function(){var t=this._textarea,e=!1;try{if(t){var n=this._document.activeElement;t.select(),t.setSelectionRange(0,t.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch(yH){}return e}},{key:"destroy",value:function(){var t=this._textarea;t&&(t.parentNode&&t.parentNode.removeChild(t),this._textarea=void 0)}}]),t}(),QP=function(){var t=function(){function t(e){s(this,t),this._document=e}return a(t,[{key:"copy",value:function(t){var e=this.beginCopy(t),n=e.copy();return e.destroy(),n}},{key:"beginCopy",value:function(t){return new $P(t,this._document)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(oh))},t.\u0275prov=Pt({factory:function(){return new t(Fi(oh))},token:t,providedIn:"root"}),t}(),JP=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({}),t}();function tE(t,e){if(1&t&&(Tn(),gs(0,"circle",3)),2&t){var n=Is();Bs("animation-name","mat-progress-spinner-stroke-rotate-"+n._spinnerAnimationLabel)("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),as("r",n._getCircleRadius())}}function eE(t,e){if(1&t&&(Tn(),gs(0,"circle",3)),2&t){var n=Is();Bs("stroke-dashoffset",n._getStrokeDashOffset(),"px")("stroke-dasharray",n._getStrokeCircumference(),"px")("stroke-width",n._getCircleStrokeWidth(),"%"),as("r",n._getCircleRadius())}}var nE=Pk(function(){return function t(e){s(this,t),this._elementRef=e}}(),"primary"),iE=new _i("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),rE=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a){var l;s(this,n),(l=e.call(this,t))._elementRef=t,l._document=r,l._diameter=100,l._value=0,l._fallbackAnimation=!1,l.mode="determinate";var u=n._diameters;return l._spinnerAnimationLabel=l._getSpinnerAnimationLabel(),u.has(r.head)||u.set(r.head,new Set([100])),l._fallbackAnimation=i.EDGE||i.TRIDENT,l._noopAnimations="NoopAnimations"===o&&!!a&&!a._forceAnimations,a&&(a.diameter&&(l.diameter=a.diameter),a.strokeWidth&&(l.strokeWidth=a.strokeWidth)),l}return a(n,[{key:"diameter",get:function(){return this._diameter},set:function(t){this._diameter=yv(t),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(t){this._strokeWidth=yv(t)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(t){this._value=Math.max(0,Math.min(100,yv(t)))}},{key:"ngOnInit",value:function(){var t=this._elementRef.nativeElement;this._styleRoot=hy(t)||this._document.head,this._attachStyleNode();var e="mat-progress-spinner-indeterminate".concat(this._fallbackAnimation?"-fallback":"","-animation");t.classList.add(e)}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var t=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(t," ").concat(t)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._getStrokeCircumference():null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_attachStyleNode",value:function(){var t=this._styleRoot,e=this._diameter,i=n._diameters,r=i.get(t);if(!r||!r.has(e)){var o=this._document.createElement("style");o.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),o.textContent=this._getAnimationText(),t.appendChild(o),r||(r=new Set,i.set(t,r)),r.add(e)}}},{key:"_getAnimationText",value:function(){var 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,"".concat(.95*t)).replace(/END_VALUE/g,"".concat(.2*t)).replace(/DIAMETER/g,"".concat(this._spinnerAnimationLabel))}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}}]),n}(nE);return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(oy),cs(oh,8),cs(yk,8),cs(iE))},t.\u0275cmp=ce({type:t,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(as("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),Bs("width",e.diameter,"px")("height",e.diameter,"px"),Hs("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",mode:"mode",diameter:"diameter",strokeWidth:"strokeWidth",value:"value"},exportAs:["matProgressSpinner"],features:[qa],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",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&&(Tn(),fs(0,"svg",0),ls(1,tE,1,9,"circle",1),ls(2,eE,1,7,"circle",2),ps()),2&t&&(Bs("width",e.diameter,"px")("height",e.diameter,"px"),hs("ngSwitch","indeterminate"===e.mode),as("viewBox",e._getViewBox()),Po(1),hs("ngSwitchCase",!0),Po(1),hs("ngSwitchCase",!1))},directives:[Lh,Nh],styles:[".mat-progress-spinner{display:block;position:relative;overflow:hidden}.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;stroke:CanvasText}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{animation:mat-progress-spinner-linear-rotate 2000ms linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] svg{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] svg{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] svg{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"],encapsulation:2,changeDetection:0}),t._diameters=new WeakMap,t}(),oE=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[Tk,Yh],Tk]}),t}(),aE=["mat-menu-item",""],sE=["*"];function lE(t,e){if(1&t){var n=_s();fs(0,"div",0),ks("keydown",function(t){return en(n),Is()._handleKeydown(t)})("click",function(){return en(n),Is().closed.emit("click")})("@transformMenu.start",function(t){return en(n),Is()._onAnimationStart(t)})("@transformMenu.done",function(t){return en(n),Is()._onAnimationDone(t)}),fs(1,"div",1),Ds(2),ps(),ps()}if(2&t){var i=Is();hs("id",i.panelId)("ngClass",i._classList)("@transformMenu",i._panelAnimationState),as("aria-label",i.ariaLabel||null)("aria-labelledby",i.ariaLabelledby||null)("aria-describedby",i.ariaDescribedby||null)}}var uE={transformMenu:Ab("transformMenu",[Db("void",Tb({opacity:0,transform:"scale(0.8)"})),Eb("void => enter",Ib("120ms cubic-bezier(0, 0, 0.2, 1)",Tb({opacity:1,transform:"scale(1)"}))),Eb("* => void",Ib("100ms 25ms linear",Tb({opacity:0})))]),fadeInItems:Ab("fadeInItems",[Db("showing",Tb({opacity:1})),Eb("void => *",[Tb({opacity:0}),Ib("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},cE=new _i("MatMenuContent"),hE=function(){var t=function(){function t(e,n,i,r,o,a,l){s(this,t),this._template=e,this._componentFactoryResolver=n,this._appRef=i,this._injector=r,this._viewContainerRef=o,this._document=a,this._changeDetectorRef=l,this._attached=new U}return a(t,[{key:"attach",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._portal||(this._portal=new Ay(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Ty(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));var e=this._template.elementRef.nativeElement;e.parentNode.insertBefore(this._outlet.outletElement,e),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,t),this._attached.next()}},{key:"detach",value:function(){this._portal.isAttached&&this._portal.detach()}},{key:"ngOnDestroy",value:function(){this._outlet&&this._outlet.dispose()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(ru),cs(kl),cs(Yc),cs(Wa),cs(cu),cs(oh),cs(Jl))},t.\u0275dir=me({type:t,selectors:[["ng-template","matMenuContent",""]],features:[_l([{provide:cE,useExisting:t}])]}),t}(),dE=new _i("MAT_MENU_PANEL"),fE=Ek(Dk(function(){return function t(){s(this,t)}}())),pE=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this))._elementRef=t,a._focusMonitor=r,a._parentMenu=o,a.role="menuitem",a._hovered=new U,a._focused=new U,a._highlighted=!1,a._triggersSubmenu=!1,o&&o.addItem&&o.addItem(d(a)),a}return a(n,[{key:"focus",value:function(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e),this._focused.next(this)}},{key:"ngAfterViewInit",value:function(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}},{key:"ngOnDestroy",value:function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}},{key:"_getTabIndex",value:function(){return this.disabled?"-1":"0"}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_checkDisabled",value:function(t){this.disabled&&(t.preventDefault(),t.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var t,e,n=this._elementRef.nativeElement.cloneNode(!0),i=n.querySelectorAll("mat-icon, .material-icons"),r=0;r0&&void 0!==arguments[0]?arguments[0]:"program";this.lazyContent?this._ngZone.onStable.pipe(Nf(1)).subscribe(function(){return t._focusFirstItem(e)}):this._focusFirstItem(e)}},{key:"_focusFirstItem",value:function(t){var e=this._keyManager;if(e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(t){var e=this,n=Math.min(this._baseElevation+t,24),i="".concat(this._elevationPrefix).concat(n),r=Object.keys(this._classList).find(function(t){return t.startsWith(e._elevationPrefix)});r&&r!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[i]=!0,this._previousElevation=i)}},{key:"setPositionClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(t){this._animationDone.next(t),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var t=this;this._allItems.changes.pipe(Vf(this._allItems)).subscribe(function(e){t._directDescendantItems.reset(e.filter(function(e){return e._parentMenu===t})),t._directDescendantItems.notifyOnChanges()})}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(kc),cs(gE))},t.\u0275dir=me({type:t,contentQueries:function(t,e,n){var i;1&t&&(Ku(n,cE,5),Ku(n,pE,5),Ku(n,pE,4)),2&t&&(Xu(i=$u())&&(e.lazyContent=i.first),Xu(i=$u())&&(e._allItems=i),Xu(i=$u())&&(e.items=i))},viewQuery:function(t,e){var n;1&t&&Zu(ru,5),2&t&&Xu(n=$u())&&(e.templateRef=n.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"]},outputs:{closed:"closed",close:"close"}}),t}(),yE=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,t,i,r))._elevationPrefix="mat-elevation-z",o._baseElevation=4,o}return n}(vE);return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(kc),cs(gE))},t.\u0275cmp=ce({type:t,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(t,e){2&t&&as("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[_l([{provide:dE,useExisting:t}]),qa],ngContentSelectors:sE,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(Ts(),ls(0,lE,3,6,"ng-template"))},directives:[Ah],styles:['mat-menu{display:none}.mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-menu-panel{outline:solid 1px}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;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}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}.cdk-high-contrast-active .mat-menu-item{margin-top:1px}.cdk-high-contrast-active .mat-menu-item.cdk-program-focused,.cdk-high-contrast-active .mat-menu-item.cdk-keyboard-focused,.cdk-high-contrast-active .mat-menu-item-highlighted{outline:dotted 1px}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:"";display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}\n'],encapsulation:2,data:{animation:[uE.transformMenu,uE.fadeInItems]},changeDetection:0}),t}(),_E=new _i("mat-menu-scroll-strategy"),bE={provide:_E,deps:[b_],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},xE=uy({passive:!0}),wE=function(){var t=function(){function t(e,n,i,r,o,a,l,u){var c=this;s(this,t),this._overlay=e,this._element=n,this._viewContainerRef=i,this._menuItemInstance=a,this._dir=l,this._focusMonitor=u,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=A.EMPTY,this._hoverSubscription=A.EMPTY,this._menuCloseSubscription=A.EMPTY,this._handleTouchStart=function(t){rb(t)||(c._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new Nu,this.onMenuOpen=this.menuOpened,this.menuClosed=new Nu,this.onMenuClose=this.menuClosed,this._scrollStrategy=r,this._parentMaterialMenu=o instanceof vE?o:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,xE),a&&(a._triggersSubmenu=this.triggersSubmenu())}return a(t,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(t){this.menu=t}},{key:"menu",get:function(){return this._menu},set:function(t){var e=this;t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.subscribe(function(t){e._destroyMenu(t),"click"!==t&&"tab"!==t||!e._parentMaterialMenu||e._parentMaterialMenu.closed.emit(t)})))}},{key:"ngAfterContentInit",value:function(){this._checkMenu(),this._handleHover()}},{key:"ngOnDestroy",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,xE),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}},{key:"menuOpen",get:function(){return this._menuOpen}},{key:"dir",get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"triggersSubmenu",value:function(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}},{key:"toggleMenu",value:function(){return this._menuOpen?this.closeMenu():this.openMenu()}},{key:"openMenu",value:function(){var t=this;if(!this._menuOpen){this._checkMenu();var e=this._createOverlay(),n=e.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return t.closeMenu()}),this._initMenu(),this.menu instanceof vE&&this.menu._startAnimation()}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(t,e){this._focusMonitor&&t?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)}},{key:"updatePosition",value:function(){var t;null===(t=this._overlayRef)||void 0===t||t.updatePosition()}},{key:"_destroyMenu",value:function(t){var e=this;if(this._overlayRef&&this.menuOpen){var n=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),!this.restoreFocus||"keydown"!==t&&this._openedBy&&this.triggersSubmenu()||this.focus(this._openedBy),this._openedBy=void 0,n instanceof vE?(n._resetAnimation(),n.lazyContent?n._animationDone.pipe(Ld(function(t){return"void"===t.toState}),Nf(1),Xv(n.lazyContent._attached)).subscribe({next:function(){return n.lazyContent.detach()},complete:function(){return e._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),n.lazyContent&&n.lazyContent.detach())}}},{key:"_initMenu",value:function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this.menu.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}},{key:"_setMenuElevation",value:function(){if(this.menu.setElevation){for(var t=0,e=this.menu.parentMenu;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}}},{key:"_setIsMenuOpen",value:function(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new t_({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this.menu.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}},{key:"_subscribeToPositions",value:function(t){var e=this;this.menu.setPositionClasses&&t.positionChanges.subscribe(function(t){e.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})}},{key:"_setPosition",value:function(t){var e=y("before"===this.menu.xPosition?["end","start"]:["start","end"],2),n=e[0],i=e[1],r=y("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),o=r[0],a=r[1],s=o,l=a,u=n,c=i,h=0;this.triggersSubmenu()?(c=n="before"===this.menu.xPosition?"start":"end",i=u="end"===n?"start":"end",h="bottom"===o?8:-8):this.menu.overlapTrigger||(s="top"===o?"bottom":"top",l="top"===a?"bottom":"top"),t.withPositions([{originX:n,originY:s,overlayX:u,overlayY:o,offsetY:h},{originX:i,originY:s,overlayX:c,overlayY:o,offsetY:h},{originX:n,originY:l,overlayX:u,overlayY:a,offsetY:-h},{originX:i,originY:l,overlayX:c,overlayY:a,offsetY:-h}])}},{key:"_menuClosingActions",value:function(){var t=this,e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return dt(e,this._parentMaterialMenu?this._parentMaterialMenu.closed:Ed(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Ld(function(e){return e!==t._menuItemInstance}),Ld(function(){return t._menuOpen})):Ed(),n)}},{key:"_handleMousedown",value:function(t){ib(t)||(this._openedBy=0===t.button?"mouse":void 0,this.triggersSubmenu()&&t.preventDefault())}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;e!==Ny&&e!==zy||(this._openedBy="keyboard"),this.triggersSubmenu()&&(e===Gy&&"ltr"===this.dir||e===Hy&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var t=this;this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Ld(function(e){return e===t._menuItemInstance&&!e.disabled}),_P(0,Nv)).subscribe(function(){t._openedBy="mouse",t.menu instanceof vE&&t.menu._isAnimating?t.menu._animationDone.pipe(Nf(1),_P(0,Nv),Xv(t._parentMaterialMenu._hovered())).subscribe(function(){return t.openMenu()}):t.openMenu()}))}},{key:"_getPortal",value:function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new Ay(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(b_),cs(Al),cs(cu),cs(_E),cs(dE,8),cs(pE,10),cs(py,8),cs(mb))},t.\u0275dir=me({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:2,hostBindings:function(t,e){1&t&&ks("mousedown",function(t){return e._handleMousedown(t)})("keydown",function(t){return e._handleKeydown(t)})("click",function(t){return e._handleClick(t)}),2&t&&as("aria-expanded",e.menuOpen||null)("aria-controls",e.menuOpen?e.menu.panelId:null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t}(),kE=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[bE],imports:[Tk]}),t}(),CE=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[bE],imports:[[Yh,Tk,sC,M_,kE],ky,Tk,kE]}),t}(),SE=function(){var t=function(){function t(){s(this,t),this._vertical=!1,this._inset=!1}return a(t,[{key:"vertical",get:function(){return this._vertical},set:function(t){this._vertical=vv(t)}},{key:"inset",get:function(){return this._inset},set:function(t){this._inset=vv(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(as("aria-orientation",e.vertical?"vertical":"horizontal"),Hs("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}\n"],encapsulation:2,changeDetection:0}),t}(),ME=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[Tk],Tk]}),t}(),AE=function(){function t(){}return t.prototype.transform=function(t,e){return t.sort(void 0===e?function(t,e){return t>e?1:-1}:function(t,n){return t[e]>n[e]?1:-1})},t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=ve({name:"sort",type:t,pure:!0}),t}(),IE=["trigger"];function OE(t,e){1&t&&gs(0,"img",36),2&t&&hs("src",Is().icon,Or)}function TE(t,e){if(1&t){var n=_s();fs(0,"button",46),ks("click",function(){var t=en(n).$implicit,e=Is(5);return e.newAction.emit({param:t,table:e})}),ps()}if(2&t){var i=e.$implicit,r=Is(5);hs("innerHTML",r.api.safeString(r.api.gui.icon(i.icon)+i.name),Ir)}}function DE(t,e){if(1&t&&(ms(0),fs(1,"button",42),Qs(2),ps(),fs(3,"mat-menu",43,44),ls(5,TE,1,1,"button",45),Tu(6,"sort"),ps(),vs()),2&t){var n=e.$implicit,i=us(4);Po(1),hs("matMenuTriggerFor",i),Po(1),Js(n.key),Po(1),hs("overlapTrigger",!1),Po(2),hs("ngForOf",Pu(6,4,n.value,"name"))}}function PE(t,e){if(1&t&&(ms(0),fs(1,"mat-menu",37,38),ls(3,DE,7,7,"ng-container",39),Tu(4,"keyvalue"),ps(),fs(5,"a",40),fs(6,"i",17),Qs(7,"insert_drive_file"),ps(),fs(8,"span",41),fs(9,"uds-translate"),Qs(10,"New"),ps(),ps(),fs(11,"i",17),Qs(12,"arrow_drop_down"),ps(),ps(),vs()),2&t){var n=us(2),i=Is(3);Po(1),hs("overlapTrigger",!1),Po(2),hs("ngForOf",Du(4,3,i.grpTypes)),Po(2),hs("matMenuTriggerFor",n)}}function EE(t,e){if(1&t){var n=_s();fs(0,"button",46),ks("click",function(){var t=en(n).$implicit,e=Is(4);return e.newAction.emit({param:t,table:e})}),ps()}if(2&t){var i=e.$implicit,r=Is(4);hs("innerHTML",r.api.safeString(r.api.gui.icon(i.icon)+i.name),Ir)}}function RE(t,e){if(1&t&&(ms(0),fs(1,"mat-menu",37,38),ls(3,EE,1,1,"button",45),Tu(4,"sort"),ps(),fs(5,"a",40),fs(6,"i",17),Qs(7,"insert_drive_file"),ps(),fs(8,"span",41),fs(9,"uds-translate"),Qs(10,"New"),ps(),ps(),fs(11,"i",17),Qs(12,"arrow_drop_down"),ps(),ps(),vs()),2&t){var n=us(2),i=Is(3);Po(1),hs("overlapTrigger",!1),Po(2),hs("ngForOf",Pu(4,3,i.oTypes,"name")),Po(2),hs("matMenuTriggerFor",n)}}function LE(t,e){if(1&t&&(ms(0),ls(1,PE,13,5,"ng-container",8),ls(2,RE,13,6,"ng-container",8),vs()),2&t){var n=Is(2);Po(1),hs("ngIf",n.newGrouped),Po(1),hs("ngIf",!n.newGrouped)}}function NE(t,e){if(1&t){var n=_s();ms(0),fs(1,"a",47),ks("click",function(){en(n);var t=Is(2);return t.newAction.emit({param:void 0,table:t})}),fs(2,"i",17),Qs(3,"insert_drive_file"),ps(),fs(4,"span",41),fs(5,"uds-translate"),Qs(6,"New"),ps(),ps(),ps(),vs()}}function FE(t,e){if(1&t&&(ms(0),ls(1,LE,3,2,"ng-container",8),ls(2,NE,7,0,"ng-container",8),vs()),2&t){var n=Is();Po(1),hs("ngIf",void 0!==n.oTypes&&0!==n.oTypes.length),Po(1),hs("ngIf",void 0!==n.oTypes&&0===n.oTypes.length)}}function zE(t,e){if(1&t){var n=_s();ms(0),fs(1,"a",48),ks("click",function(){en(n);var t=Is();return t.emitIfSelection(t.editAction)}),fs(2,"i",17),Qs(3,"edit"),ps(),fs(4,"span",41),fs(5,"uds-translate"),Qs(6,"Edit"),ps(),ps(),ps(),vs()}if(2&t){var i=Is();Po(1),hs("disabled",1!==i.selection.selected.length)}}function VE(t,e){if(1&t){var n=_s();ms(0),fs(1,"a",48),ks("click",function(){return en(n),Is().permissions()}),fs(2,"i",17),Qs(3,"perm_identity"),ps(),fs(4,"span",41),fs(5,"uds-translate"),Qs(6,"Permissions"),ps(),ps(),ps(),vs()}if(2&t){var i=Is();Po(1),hs("disabled",1!==i.selection.selected.length)}}function BE(t,e){if(1&t){var n=_s();fs(0,"a",50),ks("click",function(){var t=en(n).$implicit;return Is(2).emitCustom(t)}),ps()}if(2&t){var i=e.$implicit;hs("disabled",Is(2).isCustomDisabled(i))("innerHTML",i.html,Ir)}}function HE(t,e){if(1&t&&(ms(0),ls(1,BE,1,2,"a",49),vs()),2&t){var n=Is();Po(1),hs("ngForOf",n.getcustomButtons())}}function jE(t,e){if(1&t){var n=_s();ms(0),fs(1,"a",51),ks("click",function(){return en(n),Is().export()}),fs(2,"i",17),Qs(3,"import_export"),ps(),fs(4,"span",41),fs(5,"uds-translate"),Qs(6,"Export"),ps(),ps(),ps(),vs()}}function GE(t,e){if(1&t){var n=_s();ms(0),fs(1,"a",52),ks("click",function(){en(n);var t=Is();return t.emitIfSelection(t.deleteAction,!0)}),fs(2,"i",17),Qs(3,"delete_forever"),ps(),fs(4,"span",41),fs(5,"uds-translate"),Qs(6,"Delete"),ps(),ps(),ps(),vs()}if(2&t){var i=Is();Po(1),hs("disabled",i.selection.isEmpty())}}function UE(t,e){if(1&t){var n=_s();fs(0,"button",53),ks("click",function(){en(n);var t=Is();return t.filterText="",t.applyFilter()}),fs(1,"i",17),Qs(2,"close"),ps(),ps()}}function WE(t,e){1&t&&gs(0,"mat-header-cell")}function YE(t,e){1&t&&(fs(0,"i",17),Qs(1,"check_box"),ps())}function qE(t,e){1&t&&(fs(0,"i",17),Qs(1,"check_box_outline_blank"),ps())}function XE(t,e){if(1&t){var n=_s();fs(0,"mat-cell",56),ks("click",function(t){var e=en(n).$implicit;return Is(2).clickRow(e,t)}),ls(1,YE,2,0,"i",57),ls(2,qE,2,0,"ng-template",null,58,ec),ps()}if(2&t){var i=e.$implicit,r=us(3),o=Is(2);Po(1),hs("ngIf",o.selection.isSelected(i))("ngIfElse",r)}}function ZE(t,e){1&t&&(ms(0,54),ls(1,WE,1,0,"mat-header-cell",22),ls(2,XE,4,2,"mat-cell",55),vs())}function KE(t,e){1&t&&gs(0,"mat-header-cell")}function $E(t,e){if(1&t){var n=_s();fs(0,"mat-cell"),fs(1,"div",59),ks("click",function(t){var e=en(n).$implicit,i=Is();return i.detailAction.emit({param:e,table:i}),t.stopPropagation()}),fs(2,"i",17),Qs(3,"subdirectory_arrow_right"),ps(),ps(),ps()}}function QE(t,e){if(1&t&&(fs(0,"mat-header-cell",63),Qs(1),ps()),2&t){var n=Is().$implicit;Po(1),Js(n.title)}}function JE(t,e){if(1&t){var n=_s();fs(0,"mat-cell",64),ks("click",function(t){var e=en(n).$implicit;return Is(2).clickRow(e,t)})("contextmenu",function(t){var e=en(n).$implicit,i=Is().$implicit;return Is().onContextMenu(e,i,t)}),gs(1,"div",65),ps()}if(2&t){var i=e.$implicit,r=Is().$implicit,o=Is();Po(1),hs("innerHtml",o.getRowColumn(i,r),Ir)}}function tR(t,e){1&t&&(ms(0,60),ls(1,QE,2,1,"mat-header-cell",61),ls(2,JE,2,1,"mat-cell",62),vs()),2&t&&Ps("matColumnDef",e.$implicit.name)}function eR(t,e){1&t&&gs(0,"mat-header-row")}function nR(t,e){if(1&t&&gs(0,"mat-row",66),2&t){var n=e.$implicit;hs("ngClass",Is().rowClass(n))}}function iR(t,e){if(1&t&&(fs(0,"div",67),Qs(1),fs(2,"uds-translate"),Qs(3,"Selected items"),ps(),ps()),2&t){var n=Is();Po(1),tl(" ",n.selection.selected.length," ")}}function rR(t,e){if(1&t){var n=_s();fs(0,"button",71),ks("click",function(){return en(n),Is(2).copyToClipboard()}),fs(1,"i",72),Qs(2,"content_copy"),ps(),fs(3,"uds-translate"),Qs(4,"Copy"),ps(),ps()}}function oR(t,e){if(1&t){var n=_s();fs(0,"button",71),ks("click",function(){en(n);var t=Is().item,e=Is();return e.detailAction.emit({param:t,table:e})}),fs(1,"i",72),Qs(2,"subdirectory_arrow_right"),ps(),fs(3,"uds-translate"),Qs(4,"Detail"),ps(),ps()}}function aR(t,e){if(1&t){var n=_s();fs(0,"button",71),ks("click",function(){en(n);var t=Is(2);return t.emitIfSelection(t.editAction)}),fs(1,"i",72),Qs(2,"edit"),ps(),fs(3,"uds-translate"),Qs(4,"Edit"),ps(),ps()}}function sR(t,e){if(1&t){var n=_s();fs(0,"button",71),ks("click",function(){return en(n),Is(2).permissions()}),fs(1,"i",72),Qs(2,"perm_identity"),ps(),fs(3,"uds-translate"),Qs(4,"Permissions"),ps(),ps()}}function lR(t,e){if(1&t){var n=_s();fs(0,"button",73),ks("click",function(){var t=en(n).$implicit;return Is(2).emitCustom(t)}),ps()}if(2&t){var i=e.$implicit;hs("disabled",Is(2).isCustomDisabled(i))("innerHTML",i.html,Ir)}}function uR(t,e){if(1&t){var n=_s();fs(0,"button",74),ks("click",function(){en(n);var t=Is(2);return t.emitIfSelection(t.deleteAction)}),fs(1,"i",72),Qs(2,"delete_forever"),ps(),fs(3,"uds-translate"),Qs(4,"Delete"),ps(),ps()}}function cR(t,e){if(1&t){var n=_s();fs(0,"button",73),ks("click",function(){var t=en(n).$implicit;return Is(3).emitCustom(t)}),ps()}if(2&t){var i=e.$implicit;hs("disabled",Is(3).isCustomDisabled(i))("innerHTML",i.html,Ir)}}function hR(t,e){if(1&t&&(ms(0),gs(1,"mat-divider"),ls(2,cR,1,2,"button",69),vs()),2&t){var n=Is(2);Po(2),hs("ngForOf",n.getCustomAccelerators())}}function dR(t,e){if(1&t&&(ls(0,rR,5,0,"button",68),ls(1,oR,5,0,"button",68),ls(2,aR,5,0,"button",68),ls(3,sR,5,0,"button",68),ls(4,lR,1,2,"button",69),ls(5,uR,5,0,"button",70),ls(6,hR,3,1,"ng-container",8)),2&t){var n=Is();hs("ngIf",!0===n.allowCopy),Po(1),hs("ngIf",n.detailAction.observers.length>0),Po(1),hs("ngIf",n.editAction.observers.length>0),Po(1),hs("ngIf",!0===n.hasPermissions),Po(1),hs("ngForOf",n.getCustomMenu()),Po(1),hs("ngIf",n.deleteAction.observers.length>0),Po(1),hs("ngIf",n.hasAccelerators)}}var fR=function(){return[5,10,25,100,1e3]},pR=function(){function t(t,e){this.api=t,this.clipboard=e,this.pageSize=10,this.newGrouped=!1,this.allowCopy=!0,this.loaded=new Nu,this.rowSelected=new Nu,this.newAction=new Nu,this.editAction=new Nu,this.deleteAction=new Nu,this.customButtonAction=new Nu,this.detailAction=new Nu,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.rowStyleInfo=null,this.dataSource=new vP([]),this.firstLoad=!0,this.loading=!1,this.lastClickInfo={time:0,x:-1e4,y:-1e4},this.clipValue="",this.contextMenuPosition={x:"0px",y:"0px"},this.filterText=""}return t.prototype.ngOnInit=function(){var t=this;this.hasCustomButtons=void 0!==this.customButtons&&0!==this.customButtons.length&&0!==this.customButtonAction.observers.length&&this.getcustomButtons().length>0,this.hasAccelerators=this.getCustomAccelerators().length>0,this.hasButtons=this.hasCustomButtons||0!==this.detailAction.observers.length||0!==this.editAction.observers.length||this.hasPermissions||0!==this.deleteAction.observers.length,this.hasActions=this.hasButtons||void 0!==this.customButtons&&this.customButtons.length>0,this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sortingDataAccessor=function(t,e){if(!(e in t))return"";var n=t[e];return"number"==typeof n?n:"string"==typeof n?n.toLocaleLowerCase():(null===n&&(n=7226578800),n.changingThisBreaksApplicationSecurity&&(n=n.changingThisBreaksApplicationSecurity),(""+n).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase())},this.dataSource.filterPredicate=function(e,n){try{t.columns.forEach(function(t){if((""+e[t.name]).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase().includes(n))throw Error()})}catch(i){return!0}return!1},this.dataSource.sort.active=this.api.getFromStorage(this.tableId+"sort-column")||"name",this.dataSource.sort.direction=this.api.getFromStorage(this.tableId+"sort-direction")||"asc",this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.selection=new _y(!0===this.multiSelect,[]);var e=this.rest.permision();0==(e&II.MANAGEMENT)&&(this.newAction.observers.length=0,this.editAction.observers.length=0,this.deleteAction.observers.length=0,this.customButtonAction.observers.length=0),e!==II.ALL&&(this.hasPermissions=!1),void 0!==this.icon&&(this.icon=this.api.staticURL("admin/img/icons/"+this.icon+".png")),this.rest.types().subscribe(function(e){t.rest.tableInfo().subscribe(function(n){t.initialize(n,e)})})},t.prototype.initialize=function(t,e){var n=this;this.oTypes=e,this.types=new Map,this.grpTypes=new Map,e.forEach(function(t){n.types.set(t.type,t),void 0!==t.group&&(n.grpTypes.has(t.group)||n.grpTypes.set(t.group,[]),n.grpTypes.get(t.group).push(t))}),this.rowStyleInfo=void 0!==t["row-style"]&&void 0!==t["row-style"].field?t["row-style"]:null,this.title=t.title,this.subtitle=t.subtitle||"",this.hasButtons&&this.displayedColumns.push("selection-column");var i=[];t.fields.forEach(function(t){for(var e in t)if(t.hasOwnProperty(e)){var r=t[e];i.push({name:e,title:r.title,type:void 0===r.type?WA.ALPHANUMERIC:r.type,dict:r.dict}),(void 0===r.visible||r.visible)&&n.displayedColumns.push(e)}}),this.columns=i,this.detailAction.observers.length>0&&this.displayedColumns.push("detail-column"),this.overview()},t.prototype.overview=function(){var t=this;this.loading||(this.selection.clear(),this.dataSource.data=[],this.loading=!0,this.rest.overview().subscribe(function(e){t.loading=!1,void 0!==t.onItem&&e.forEach(function(e){t.onItem(e)}),t.dataSource.data=e,t.loaded.emit({param:t.firstLoad,table:t}),t.firstLoad=!1},function(e){t.loading=!1}))},t.prototype.getcustomButtons=function(){return this.customButtons?this.customButtons.filter(function(t){return t.type!==YA.ONLY_MENU&&t.type!==YA.ACCELERATOR}):[]},t.prototype.getCustomMenu=function(){return this.customButtons?this.customButtons.filter(function(t){return t.type!==YA.ACCELERATOR}):[]},t.prototype.getCustomAccelerators=function(){return this.customButtons?this.customButtons.filter(function(t){return t.type===YA.ACCELERATOR}):[]},t.prototype.getRowColumn=function(t,e){var n=t[e.name];switch(e.type){case WA.IMAGE:return this.api.safeString(this.api.gui.icon(n,"48px"));case WA.DATE:n=aO("SHORT_DATE_FORMAT",n);break;case WA.DATETIME:n=aO("SHORT_DATETIME_FORMAT",n);break;case WA.TIME:n=aO("TIME_FORMAT",n);break;case WA.DATETIMESEC:n=aO("SHORT_DATE_FORMAT",n," H:i:s");break;case WA.ICON:try{n=this.api.gui.icon(this.types.get(t.type).icon)+n}catch(i){}return this.api.safeString(n);case WA.CALLBACK:break;case WA.DICTIONARY:try{n=e.dict[n]}catch(i){n=""}}return n},t.prototype.applyFilter=function(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()},t.prototype.sortChanged=function(t){this.api.putOnStorage(this.tableId+"sort-column",t.active),this.api.putOnStorage(this.tableId+"sort-direction",t.direction)},t.prototype.copyToClipboard=function(){this.clipboard.copy(this.clipValue||"")},t.prototype.rowClass=function(t){var e=[];return this.selection.isSelected(t)&&e.push("selected"),null!==this.rowStyleInfo&&e.push(this.rowStyleInfo.prefix+t[this.rowStyleInfo.field]),e},t.prototype.emitIfSelection=function(t,e){void 0===e&&(e=!1);var n=this.selection.selected.length;n>0&&(!0!==e&&1!==n||t.emit({table:this,param:n}))},t.prototype.isCustomDisabled=function(t){switch(t.type){case void 0:case YA.SINGLE_SELECT:return 1!==this.selection.selected.length||!0===t.disabled;case YA.MULTI_SELECT:return this.selection.isEmpty()||!0===t.disabled;default:return!1}},t.prototype.emitCustom=function(t){(this.selection.selected.length||t.type===YA.ALWAYS)&&(t.type===YA.ACCELERATOR?this.api.navigation.goto(t.id,this.selection.selected[0],t.acceleratorProperties):this.customButtonAction.emit({param:t,table:this}))},t.prototype.clickRow=function(t,e){var n=(new Date).getTime();if((this.detailAction.observers.length||this.editAction.observers.length)&&Math.abs(this.lastClickInfo.x-e.x)<16&&Math.abs(this.lastClickInfo.y-e.y)<16&&n-this.lastClickInfo.time<250)return this.selection.clear(),this.selection.select(t),void(this.detailAction.observers.length?this.detailAction.emit({param:t,table:this}):this.emitIfSelection(this.editAction,!1));this.lastClickInfo={time:n,x:e.x,y:e.y},this.doSelect(t,e)},t.prototype.doSelect=function(t,e){if(e.ctrlKey)this.lastSel=t,this.selection.toggle(t);else if(e.shiftKey){if(this.selection.isEmpty())this.selection.toggle(t);else if(this.selection.clear(),this.lastSel!==t)for(var n=!1,i=0,r=this.dataSource.sortData(this.dataSource.data,this.dataSource.sort);i/,"")),this.clipValue=""+i,this.hasActions&&(this.selection.clear(),this.selection.select(t),this.contextMenuPosition.x=n.clientX+"px",this.contextMenuPosition.y=n.clientY+"px",this.contextMenu.menuData={item:t},this.contextMenu.openMenu())},t.prototype.selectElement=function(t,e){var n=this;this.dataSource.sortData(this.dataSource.data,this.dataSource.sort).forEach(function(i,r){if(i[t]===e){var o=Math.floor(r/n.paginator.pageSize);n.selection.select(i),n.paginator.pageIndex=o,n.paginator.page.next({pageIndex:o,pageSize:n.paginator.pageSize,length:n.paginator.length})}})},t.prototype.export=function(){KP(this)},t.prototype.permissions=function(){this.selection.selected.length&&qP.launch(this.api,this.rest,this.selection.selected[0])},t.prototype.keyDown=function(t){switch(t.keyCode){case By:this.paginator.firstPage(),t.preventDefault();break;case Vy:this.paginator.lastPage(),t.preventDefault();break;case Gy:this.paginator.nextPage(),t.preventDefault();break;case Hy:this.paginator.previousPage(),t.preventDefault()}},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(QP))},t.\u0275cmp=ce({type:t,selectors:[["uds-table"]],viewQuery:function(t,e){if(1&t&&(Zu(IE,7),Zu(sD,7),Zu(pD,7)),2&t){var n=void 0;Xu(n=$u())&&(e.contextMenu=n.first),Xu(n=$u())&&(e.paginator=n.first),Xu(n=$u())&&(e.sort=n.first)}},inputs:{rest:"rest",onItem:"onItem",icon:"icon",multiSelect:"multiSelect",allowExport:"allowExport",hasPermissions:"hasPermissions",customButtons:"customButtons",tableId:"tableId",pageSize:"pageSize",newGrouped:"newGrouped",allowCopy:"allowCopy"},outputs:{loaded:"loaded",rowSelected:"rowSelected",newAction:"newAction",editAction:"editAction",deleteAction:"deleteAction",customButtonAction:"customButtonAction",detailAction:"detailAction"},decls:50,vars:28,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src",4,"ngIf"],[1,"card-subtitle"],[1,"card-content"],[1,"header"],[1,"buttons"],[4,"ngIf"],[1,"navigation"],[1,"filter"],["matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],[1,"material-icons"],["tabindex","0",1,"table",3,"keydown"],["matSort","",3,"dataSource","matSortChange"],["matColumnDef","selection-column",4,"ngIf"],["matColumnDef","detail-column"],[4,"matHeaderCellDef"],[4,"matCellDef"],[3,"matColumnDef",4,"ngFor","ngForOf"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[3,"hidden"],[1,"loading"],["mode","indeterminate"],[1,"footer"],["class","selection",4,"ngIf"],[2,"position","fixed",3,"matMenuTriggerFor"],["trigger","matMenuTrigger"],["contextMenu","matMenu"],["matMenuContent",""],[3,"src"],[1,"wide-menu",3,"overlapTrigger"],["newMenu","matMenu"],[4,"ngFor","ngForOf"],["mat-raised-button","","color","primary",3,"matMenuTriggerFor"],[1,"button-text"],["mat-menu-item","",3,"matMenuTriggerFor"],[3,"overlapTrigger"],["sub_menu","matMenu"],["mat-menu-item","",3,"innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","",3,"innerHTML","click"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","",3,"disabled","click"],["mat-raised-button","",3,"disabled","innerHTML","click",4,"ngFor","ngForOf"],["mat-raised-button","",3,"disabled","innerHTML","click"],["mat-raised-button","",3,"click"],["mat-raised-button","","color","warn",3,"disabled","click"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["matColumnDef","selection-column"],[3,"click",4,"matCellDef"],[3,"click"],["class","material-icons",4,"ngIf","ngIfElse"],["uncheck",""],[1,"detail-launcher",3,"click"],[3,"matColumnDef"],["mat-sort-header","",4,"matHeaderCellDef"],[3,"click","contextmenu",4,"matCellDef"],["mat-sort-header",""],[3,"click","contextmenu"],[3,"innerHtml"],[3,"ngClass"],[1,"selection"],["mat-menu-item","",3,"click",4,"ngIf"],["mat-menu-item","",3,"disabled","innerHTML","click",4,"ngFor","ngForOf"],["mat-menu-item","","class","menu-warn",3,"click",4,"ngIf"],["mat-menu-item","",3,"click"],[1,"material-icons","spaced"],["mat-menu-item","",3,"disabled","innerHTML","click"],["mat-menu-item","",1,"menu-warn",3,"click"]],template:function(t,e){if(1&t&&(fs(0,"div",0),fs(1,"div",1),fs(2,"div",2),ls(3,OE,1,1,"img",3),Qs(4),ps(),fs(5,"div",4),Qs(6),ps(),ps(),fs(7,"div",5),fs(8,"div",6),fs(9,"div",7),ls(10,FE,3,2,"ng-container",8),ls(11,zE,7,1,"ng-container",8),ls(12,VE,7,1,"ng-container",8),ls(13,HE,2,1,"ng-container",8),ls(14,jE,7,0,"ng-container",8),ls(15,GE,7,1,"ng-container",8),ps(),fs(16,"div",9),fs(17,"div",10),fs(18,"uds-translate"),Qs(19,"Filter"),ps(),Qs(20,"\xa0 "),fs(21,"mat-form-field"),fs(22,"input",11),ks("keyup",function(){return e.applyFilter()})("ngModelChange",function(t){return e.filterText=t}),ps(),ls(23,UE,3,0,"button",12),ps(),ps(),fs(24,"div",13),gs(25,"mat-paginator",14),ps(),fs(26,"div",15),fs(27,"a",16),ks("click",function(){return e.overview()}),fs(28,"i",17),Qs(29,"autorenew"),ps(),ps(),ps(),ps(),ps(),fs(30,"div",18),ks("keydown",function(t){return e.keyDown(t)}),fs(31,"mat-table",19),ks("matSortChange",function(t){return e.sortChanged(t)}),ls(32,ZE,3,0,"ng-container",20),ms(33,21),ls(34,KE,1,0,"mat-header-cell",22),ls(35,$E,4,0,"mat-cell",23),vs(),ls(36,tR,3,1,"ng-container",24),ls(37,eR,1,0,"mat-header-row",25),ls(38,nR,1,1,"mat-row",26),ps(),fs(39,"div",27),fs(40,"div",28),gs(41,"mat-progress-spinner",29),ps(),ps(),ps(),fs(42,"div",30),Qs(43," \xa0 "),ls(44,iR,4,1,"div",31),ps(),ps(),gs(45,"div",32,33),fs(47,"mat-menu",null,34),ls(49,dR,7,7,"ng-template",35),ps(),ps()),2&t){var n=us(48);Po(3),hs("ngIf",void 0!==e.icon),Po(1),tl(" ",e.title," "),Po(2),tl(" ",e.subtitle," "),Po(4),hs("ngIf",e.newAction.observers.length>0),Po(1),hs("ngIf",e.editAction.observers.length>0),Po(1),hs("ngIf",!0===e.hasPermissions),Po(1),hs("ngIf",e.hasCustomButtons),Po(1),hs("ngIf",!0===e.allowExport),Po(1),hs("ngIf",e.deleteAction.observers.length>0),Po(7),hs("ngModel",e.filterText),Po(1),hs("ngIf",e.filterText),Po(2),hs("pageSize",e.pageSize)("hidePageSize",!0)("pageSizeOptions",Cu(27,fR))("showFirstLastButtons",!0),Po(6),hs("dataSource",e.dataSource),Po(1),hs("ngIf",e.hasButtons),Po(4),hs("ngForOf",e.columns),Po(1),hs("matHeaderRowDef",e.displayedColumns),Po(1),hs("matRowDefColumns",e.displayedColumns),Po(1),hs("hidden",!e.loading),Po(5),hs("ngIf",e.hasButtons&&e.selection.selected.length>0),Po(1),Bs("left",e.contextMenuPosition.x)("top",e.contextMenuPosition.y),hs("matMenuTriggerFor",n)}},directives:[Dh,QC,gT,TP,fS,BS,gM,sD,KC,oP,pD,lP,sP,aP,Oh,hP,dP,rE,wE,yE,hE,pE,ZC,cT,uP,cP,bD,fP,pP,Ah,SE],pipes:[Uh,AE],styles:[".mat-badge-content[_ngcontent-%COMP%]{font-weight:600;font-size:12px;font-family:Roboto,Helvetica Neue,sans-serif}.mat-badge-small[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{font-size:9px}.mat-badge-large[_ngcontent-%COMP%] .mat-badge-content[_ngcontent-%COMP%]{font-size:24px}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h2[_ngcontent-%COMP%], .mat-title[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font:500 20px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h3[_ngcontent-%COMP%], .mat-subheading-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font:400 16px/28px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h4[_ngcontent-%COMP%], .mat-subheading-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font:400 15px/24px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h5[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font:400 calc(14px * .83) /20px Roboto,Helvetica Neue,sans-serif;margin:0 0 12px}.mat-h6[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font:400 calc(14px * .67) /20px Roboto,Helvetica Neue,sans-serif;margin:0 0 12px}.mat-body-2[_ngcontent-%COMP%], .mat-body-strong[_ngcontent-%COMP%]{font:500 14px/24px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-body[_ngcontent-%COMP%], .mat-body-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%]{font:400 14px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-body-1[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 12px}.mat-caption[_ngcontent-%COMP%], .mat-small[_ngcontent-%COMP%]{font:400 12px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-display-4[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-4[_ngcontent-%COMP%]{font:300 112px/112px Roboto,Helvetica Neue,sans-serif;letter-spacing:-.05em;margin:0 0 56px}.mat-display-3[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-3[_ngcontent-%COMP%]{font:400 56px/56px Roboto,Helvetica Neue,sans-serif;letter-spacing:-.02em;margin:0 0 64px}.mat-display-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-2[_ngcontent-%COMP%]{font:400 45px/48px Roboto,Helvetica Neue,sans-serif;letter-spacing:-.005em;margin:0 0 64px}.mat-display-1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-display-1[_ngcontent-%COMP%]{font:400 34px/40px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 64px}.mat-bottom-sheet-container[_ngcontent-%COMP%]{font:400 14px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-button[_ngcontent-%COMP%], .mat-fab[_ngcontent-%COMP%], .mat-flat-button[_ngcontent-%COMP%], .mat-icon-button[_ngcontent-%COMP%], .mat-mini-fab[_ngcontent-%COMP%], .mat-raised-button[_ngcontent-%COMP%], .mat-stroked-button[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:500}.mat-button-toggle[_ngcontent-%COMP%], .mat-card[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-card-title[_ngcontent-%COMP%]{font-size:24px;font-weight:500}.mat-card-header[_ngcontent-%COMP%] .mat-card-title[_ngcontent-%COMP%]{font-size:20px}.mat-card-content[_ngcontent-%COMP%], .mat-card-subtitle[_ngcontent-%COMP%]{font-size:14px}.mat-checkbox[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-checkbox-layout[_ngcontent-%COMP%] .mat-checkbox-label[_ngcontent-%COMP%]{line-height:24px}.mat-chip[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-chip[_ngcontent-%COMP%] .mat-chip-remove.mat-icon[_ngcontent-%COMP%], .mat-chip[_ngcontent-%COMP%] .mat-chip-trailing-icon.mat-icon[_ngcontent-%COMP%]{font-size:18px}.mat-table[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-header-cell[_ngcontent-%COMP%]{font-size:12px;font-weight:500}.mat-cell[_ngcontent-%COMP%], .mat-footer-cell[_ngcontent-%COMP%]{font-size:14px}.mat-calendar[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-calendar-body[_ngcontent-%COMP%]{font-size:13px}.mat-calendar-body-label[_ngcontent-%COMP%], .mat-calendar-period-button[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-calendar-table-header[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-size:11px;font-weight:400}.mat-dialog-title[_ngcontent-%COMP%]{font:500 20px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-expansion-panel-header[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:15px;font-weight:400}.mat-expansion-panel-content[_ngcontent-%COMP%]{font:400 14px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-form-field[_ngcontent-%COMP%]{font-size:inherit;font-weight:400;line-height:1.125;font-family:Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:1.34375em}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:150%;line-height:1.125}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{height:1.5em;width:1.5em}.mat-form-field-prefix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%], .mat-form-field-suffix[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{height:1.125em;line-height:1.125}.mat-form-field-infix[_ngcontent-%COMP%]{padding:.5em 0;border-top:.84375em solid transparent}.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.34375em) scale(.75);width:133.3333333333%}.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.34374em) scale(.75);width:133.3333433333%}.mat-form-field-label-wrapper[_ngcontent-%COMP%]{top:-.84375em;padding-top:.84375em}.mat-form-field-label[_ngcontent-%COMP%]{top:1.34375em}.mat-form-field-underline[_ngcontent-%COMP%]{bottom:1.34375em}.mat-form-field-subscript-wrapper[_ngcontent-%COMP%]{font-size:75%;margin-top:.6666666667em;top:calc(100% - 1.7916666667em)}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-wrapper[_ngcontent-%COMP%]{padding-bottom:1.25em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:.4375em 0}.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.001px);-ms-transform:translateY(-1.28125em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-form-field-autofill-control[_ngcontent-%COMP%]:-webkit-autofill + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00101px);-ms-transform:translateY(-1.28124em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00102px);-ms-transform:translateY(-1.28123em) scale(.75);width:133.3333533333%}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.28125em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-underline[_ngcontent-%COMP%]{bottom:1.25em}.mat-form-field-appearance-legacy[_ngcontent-%COMP%] .mat-form-field-subscript-wrapper[_ngcontent-%COMP%]{margin-top:.5416666667em;top:calc(100% - 1.6666666667em)}@media print{.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28122em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-form-field-autofill-control[_ngcontent-%COMP%]:-webkit-autofill + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.28121em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.2812em) scale(.75)}}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:.25em 0 .75em}.mat-form-field-appearance-fill[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.09375em;margin-top:-.5em}.mat-form-field-appearance-fill.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-fill.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-fill.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-.59374em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-outline[_ngcontent-%COMP%] .mat-form-field-infix[_ngcontent-%COMP%]{padding:1em 0}.mat-form-field-appearance-outline[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{top:1.84375em;margin-top:-.25em}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%], .mat-form-field-appearance-outline.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[_ngcontent-%COMP%]:focus + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-outline.mat-form-field-can-float[_ngcontent-%COMP%] .mat-input-server[label][_ngcontent-%COMP%]:not(:label-shown) + .mat-form-field-label-wrapper[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{transform:translateY(-1.59374em) scale(.75);width:133.3333433333%}.mat-grid-tile-footer[_ngcontent-%COMP%], .mat-grid-tile-header[_ngcontent-%COMP%]{font-size:14px}.mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%], .mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2), .mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}input.mat-input-element[_ngcontent-%COMP%]{margin-top:-.0625em}.mat-menu-item[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:400}.mat-paginator[_ngcontent-%COMP%], .mat-paginator-page-size[_ngcontent-%COMP%] .mat-select-trigger[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:12px}.mat-radio-button[_ngcontent-%COMP%], .mat-select[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-select-trigger[_ngcontent-%COMP%]{height:1.125em}.mat-slide-toggle-content[_ngcontent-%COMP%], .mat-slider-thumb-label-text[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-slider-thumb-label-text[_ngcontent-%COMP%]{font-size:12px;font-weight:500}.mat-stepper-horizontal[_ngcontent-%COMP%], .mat-stepper-vertical[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-step-label[_ngcontent-%COMP%]{font-size:14px;font-weight:400}.mat-step-sub-label-error[_ngcontent-%COMP%]{font-weight:400}.mat-step-label-error[_ngcontent-%COMP%]{font-size:14px}.mat-step-label-selected[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-tab-group[_ngcontent-%COMP%], .mat-tab-label[_ngcontent-%COMP%], .mat-tab-link[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-tab-label[_ngcontent-%COMP%], .mat-tab-link[_ngcontent-%COMP%]{font-size:14px;font-weight:500}.mat-toolbar[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h1[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h2[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h3[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h5[_ngcontent-%COMP%], .mat-toolbar[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font:500 20px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0}.mat-tooltip[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:10px;padding-top:6px;padding-bottom:6px}.mat-tooltip-handset[_ngcontent-%COMP%]{font-size:14px;padding-top:8px;padding-bottom:8px}.mat-list-item[_ngcontent-%COMP%], .mat-list-option[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{font-size:16px}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:14px}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{font-size:16px}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:14px}.mat-list-base[_ngcontent-%COMP%] .mat-subheader[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:500}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%]{font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%]{font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense][_ngcontent-%COMP%] .mat-list-option[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2){font-size:12px}.mat-list-base[dense][_ngcontent-%COMP%] .mat-subheader[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:12px;font-weight:500}.mat-option[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:16px}.mat-optgroup-label[_ngcontent-%COMP%]{font:500 14px/24px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-simple-snackbar[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px}.mat-simple-snackbar-action[_ngcontent-%COMP%]{line-height:1;font-family:inherit;font-size:inherit;font-weight:500}.mat-tree[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-nested-tree-node[_ngcontent-%COMP%], .mat-tree-node[_ngcontent-%COMP%]{font-weight:400;font-size:14px}.mat-ripple[_ngcontent-%COMP%]{overflow:hidden;position:relative}.mat-ripple[_ngcontent-%COMP%]:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded[_ngcontent-%COMP%]{overflow:visible}.mat-ripple-element[_ngcontent-%COMP%]{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale(0)}.cdk-high-contrast-active[_ngcontent-%COMP%] .mat-ripple-element[_ngcontent-%COMP%]{display:none}.cdk-visually-hidden[_ngcontent-%COMP%]{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%], .cdk-overlay-container[_ngcontent-%COMP%]{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container[_ngcontent-%COMP%]{position:fixed;z-index:1000}.cdk-overlay-container[_ngcontent-%COMP%]:empty{display:none}.cdk-global-overlay-wrapper[_ngcontent-%COMP%], .cdk-overlay-pane[_ngcontent-%COMP%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{pointer-events:auto;box-sizing:border-box;max-width:100%;max-height:100%}.cdk-overlay-backdrop[_ngcontent-%COMP%]{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:1}.cdk-high-contrast-active[_ngcontent-%COMP%] .cdk-overlay-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:.6}.cdk-overlay-dark-backdrop[_ngcontent-%COMP%]{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop[_ngcontent-%COMP%], .cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0}.cdk-overlay-connected-position-bounding-box[_ngcontent-%COMP%]{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock[_ngcontent-%COMP%]{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize[_ngcontent-%COMP%]{resize:none}textarea.cdk-textarea-autosize-measuring[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox[_ngcontent-%COMP%]{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@-webkit-keyframes cdk-text-field-autofill-start{\n }@keyframes cdk-text-field-autofill-start{\n }@-webkit-keyframes cdk-text-field-autofill-end{\n }@keyframes cdk-text-field-autofill-end{\n }.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{-webkit-animation:cdk-text-field-autofill-start 0s 1ms;animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){-webkit-animation:cdk-text-field-autofill-end 0s 1ms;animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%], .mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.header[_ngcontent-%COMP%]{justify-content:space-between;margin:1rem 1rem 0}.buttons[_ngcontent-%COMP%], .header[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.buttons[_ngcontent-%COMP%]{flex-direction:row;align-items:center}.buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:1em;margin-bottom:1em}.buttons[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin-right:.4rem}.buttons[_ngcontent-%COMP%] .mat-raised-button[_ngcontent-%COMP%]:hover:not([disabled]){background-color:#fafafa;color:#000}button.mat-menu-item[_ngcontent-%COMP%]{height:32px;line-height:32px}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0 1rem;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.footer[_ngcontent-%COMP%]{margin:1em;display:flex;justify-content:flex-end}mat-cell[_ngcontent-%COMP%]:first-of-type, mat-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:.5rem}mat-row[_ngcontent-%COMP%]:hover{background-color:#a0b0d0;cursor:pointer}mat-table[_ngcontent-%COMP%]{width:100%;font-weight:300}.mat-column-detail-column[_ngcontent-%COMP%]{max-width:1.5rem;justify-content:center;color:#000!important;padding-right:.5rem}.detail-launcher[_ngcontent-%COMP%]{display:none}.mat-row[_ngcontent-%COMP%]:hover .detail-launcher[_ngcontent-%COMP%]{display:block}.mat-column-selection-column[_ngcontent-%COMP%]{max-width:2rem;justify-content:center;color:#000!important}.menu-warn[_ngcontent-%COMP%]{color:red}.menu-link[_ngcontent-%COMP%]{color:blue}.loading[_ngcontent-%COMP%]{margin-top:2rem;margin-bottom:2rem;display:flex;justify-content:center} .mat-menu-panel{min-height:48px} .mat-paginator-range-label{min-width:6em} .dark-theme .mat-paginator-container{background-color:#303030} .dark-theme .buttons .mat-raised-button:hover:not([disabled]){background-color:#303030;color:#fff} .dark-theme .mat-column-detail-column{color:#fff!important} .dark-theme .mat-column-selection-column{color:#fff!important} .dark-theme .menu-warn{color:red} .dark-theme .menu-link{color:blue}"]}),t}(),gR='pause'+django.gettext("Maintenance")+"",mR='pause'+django.gettext("Exit maintenance mode")+"",vR='pause'+django.gettext("Enter maintenance mode")+"",yR=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.cButtons=[{id:"maintenance",html:gR,type:YA.SINGLE_SELECT}]}return t.prototype.ngOnInit=function(){},Object.defineProperty(t.prototype,"customButtons",{get:function(){return this.api.user.isAdmin?this.cButtons:[]},enumerable:!1,configurable:!0}),t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New provider"),!0)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit provider"),!0)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete provider"))},t.prototype.onMaintenance=function(t){var e=this,n=t.table.selection.selected[0],i=n.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.yesno(django.gettext("Maintenance mode for")+" "+n.name,i).subscribe(function(i){i&&e.rest.providers.maintenance(n.id).subscribe(function(){t.table.overview()})})},t.prototype.onRowSelect=function(t){var e=t.table;this.customButtons[0].html=e.selection.selected.length>1||0===e.selection.selected.length?gR:e.selection.selected[0].maintenance_mode?mR:vR},t.prototype.onDetail=function(t){this.api.navigation.gotoService(t.param.id)},t.prototype.processElement=function(t){t.maintenance_state=t.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("provider"))},t.\u0275fac=function(e){return new(e||t)(cs(mg),cs(XI),cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-services"]],decls:1,vars:7,consts:[["tableId","service-providers","icon","providers",3,"rest","onItem","multiSelect","allowExport","hasPermissions","customButtons","pageSize","customButtonAction","newAction","editAction","deleteAction","rowSelected","detailAction","loaded"]],template:function(t,e){1&t&&(fs(0,"uds-table",0),ks("customButtonAction",function(t){return e.onMaintenance(t)})("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("rowSelected",function(t){return e.onRowSelect(t)})("detailAction",function(t){return e.onDetail(t)})("loaded",function(t){return e.onLoad(t)}),ps()),2&t&&hs("rest",e.rest.providers)("onItem",e.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)},directives:[pR],styles:[".row-maintenance-true>mat-cell{color:orange!important} .mat-column-maintenance_state, .mat-column-services_count, .mat-column-user_services_count{max-width:7rem;justify-content:center}"]}),t}(),_R=function(){function t(t,e,n,i){this.title=t,this.data=e,this.columns=n,this.id=i,this.columnsDefinition=Array.from(n,function(t){var e={};return e[t.field]={visible:!0,title:t.title,type:void 0===t.type?WA.ALPHANUMERIC:t.type},e})}return t.prototype.get=function(t){return Of},t.prototype.getLogs=function(t){return Of},t.prototype.overview=function(t){return"function"==typeof this.data?this.data():Ed([])},t.prototype.summary=function(t){return this.overview()},t.prototype.put=function(t,e){return Of},t.prototype.create=function(t){return Of},t.prototype.save=function(t,e){return Of},t.prototype.test=function(t,e){return Of},t.prototype.delete=function(t){return Of},t.prototype.permision=function(){return II.ALL},t.prototype.getPermissions=function(t){return Of},t.prototype.addPermission=function(t,e,n,i){return Of},t.prototype.revokePermission=function(t){return Of},t.prototype.types=function(){return Ed([])},t.prototype.gui=function(t){return Of},t.prototype.callback=function(t,e){return Of},t.prototype.tableInfo=function(){return Ed({fields:this.columnsDefinition,title:this.title})},t.prototype.detail=function(t,e){return null},t.prototype.invoke=function(t,e){return Of},t}();function bR(t,e){if(1&t){var n=_s();fs(0,"button",24),ks("click",function(){en(n);var t=Is();return t.filterText="",t.applyFilter()}),fs(1,"i",8),Qs(2,"close"),ps(),ps()}}function xR(t,e){if(1&t&&(fs(0,"mat-header-cell",28),Qs(1),ps()),2&t){var n=Is().$implicit;Po(1),Js(n)}}function wR(t,e){if(1&t&&(fs(0,"mat-cell"),gs(1,"div",29),ps()),2&t){var n=e.$implicit,i=Is().$implicit,r=Is();Po(1),hs("innerHtml",r.getRowColumn(n,i),Ir)}}function kR(t,e){1&t&&(ms(0,25),ls(1,xR,2,1,"mat-header-cell",26),ls(2,wR,2,1,"mat-cell",27),vs()),2&t&&hs("matColumnDef",e.$implicit)}function CR(t,e){1&t&&gs(0,"mat-header-row")}function SR(t,e){if(1&t&&gs(0,"mat-row",30),2&t){var n=e.$implicit;hs("ngClass",Is().rowClass(n))}}var MR=function(){return[5,10,25,100,1e3]},AR=function(){function t(t){this.api=t,this.pageSize=10,this.filterText="",this.title="Logs",this.displayedColumns=["date","level","source","message"],this.columns=[],this.dataSource=new vP([]),this.selection=new _y}return t.prototype.ngOnInit=function(){var t=this;this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sort.active=this.api.getFromStorage("logs-sort-column")||"date",this.dataSource.sort.direction=this.api.getFromStorage("logs-sort-direction")||"desc",this.displayedColumns.forEach(function(e){t.columns.push({name:e,title:e,type:"date"===e?WA.DATETIMESEC:WA.ALPHANUMERIC})}),this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.overview()},t.prototype.overview=function(){var t=this;this.rest.getLogs(this.itemId).subscribe(function(e){t.dataSource.data=e})},t.prototype.selectElement=function(t,e){},t.prototype.getRowColumn=function(t,e){var n=t[e];return"date"===e?n=aO("SHORT_DATE_FORMAT",n," H:i:s"):"level"===e&&(n={1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"}[n]||"OTHER"),n},t.prototype.rowClass=function(t){return["level-"+t.level]},t.prototype.applyFilter=function(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()},t.prototype.sortChanged=function(t){this.api.putOnStorage("logs-sort-column",t.active),this.api.putOnStorage("logs-sort-direction",t.direction)},t.prototype.export=function(){KP(this)},t.prototype.keyDown=function(t){switch(t.keyCode){case By:this.paginator.firstPage(),t.preventDefault();break;case Vy:this.paginator.lastPage(),t.preventDefault();break;case Gy:this.paginator.nextPage(),t.preventDefault();break;case Hy:this.paginator.previousPage(),t.preventDefault()}},t.\u0275fac=function(e){return new(e||t)(cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-logs-table"]],viewQuery:function(t,e){if(1&t&&(Zu(sD,7),Zu(pD,7)),2&t){var n=void 0;Xu(n=$u())&&(e.paginator=n.first),Xu(n=$u())&&(e.sort=n.first)}},inputs:{rest:"rest",itemId:"itemId",tableId:"tableId",pageSize:"pageSize"},decls:36,vars:12,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src"],[1,"card-content"],[1,"header"],[1,"buttons"],["mat-raised-button","",3,"click"],[1,"material-icons"],[1,"button-text"],[1,"navigation"],[1,"filter"],["matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],["tabindex","0",1,"table",3,"keydown"],["matSort","",3,"dataSource","matSortChange"],[3,"matColumnDef",4,"ngFor","ngForOf"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[1,"footer"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[3,"matColumnDef"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["mat-sort-header",""],[3,"innerHtml"],[3,"ngClass"]],template:function(t,e){1&t&&(fs(0,"div",0),fs(1,"div",1),fs(2,"div",2),gs(3,"img",3),Qs(4," \xa0"),fs(5,"uds-translate"),Qs(6,"Logs"),ps(),ps(),ps(),fs(7,"div",4),fs(8,"div",5),fs(9,"div",6),fs(10,"a",7),ks("click",function(){return e.export()}),fs(11,"i",8),Qs(12,"import_export"),ps(),fs(13,"span",9),fs(14,"uds-translate"),Qs(15,"Export"),ps(),ps(),ps(),ps(),fs(16,"div",10),fs(17,"div",11),fs(18,"uds-translate"),Qs(19,"Filter"),ps(),Qs(20,"\xa0 "),fs(21,"mat-form-field"),fs(22,"input",12),ks("keyup",function(){return e.applyFilter()})("ngModelChange",function(t){return e.filterText=t}),ps(),ls(23,bR,3,0,"button",13),ps(),ps(),fs(24,"div",14),gs(25,"mat-paginator",15),ps(),fs(26,"div",16),fs(27,"a",17),ks("click",function(){return e.overview()}),fs(28,"i",8),Qs(29,"autorenew"),ps(),ps(),ps(),ps(),ps(),fs(30,"div",18),ks("keydown",function(t){return e.keyDown(t)}),fs(31,"mat-table",19),ks("matSortChange",function(t){return e.sortChanged(t)}),ls(32,kR,3,1,"ng-container",20),ls(33,CR,1,0,"mat-header-row",21),ls(34,SR,1,1,"mat-row",22),ps(),ps(),gs(35,"div",23),ps(),ps()),2&t&&(Po(3),hs("src",e.api.staticURL("admin/img/icons/logs.png"),Or),Po(19),hs("ngModel",e.filterText),Po(1),hs("ngIf",e.filterText),Po(2),hs("pageSize",e.pageSize)("hidePageSize",!0)("pageSizeOptions",Cu(11,MR))("showFirstLastButtons",!0),Po(6),hs("dataSource",e.dataSource),Po(1),hs("ngForOf",e.displayedColumns),Po(1),hs("matHeaderRowDef",e.displayedColumns),Po(1),hs("matRowDefColumns",e.displayedColumns))},directives:[QC,KC,gT,TP,fS,BS,gM,Dh,sD,oP,pD,Oh,hP,dP,ZC,cT,lP,sP,aP,uP,bD,cP,fP,pP,Ah],styles:[".header[_ngcontent-%COMP%]{justify-content:space-between;margin:1rem 1rem 0}.header[_ngcontent-%COMP%], .navigation[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.navigation[_ngcontent-%COMP%]{justify-content:flex-start}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0 1rem;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;user-select:none}.mat-column-date[_ngcontent-%COMP%]{max-width:160px}.mat-column-level[_ngcontent-%COMP%]{max-width:96px;text-align:center}.mat-column-source[_ngcontent-%COMP%]{max-width:128px} .level-60000>.mat-cell{color:#ff1e1e!important} .level-50000>.mat-cell{color:#ff1e1e!important} .level-40000>.mat-cell{color:#d65014!important}"]}),t}();function IR(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Services pools"),ps())}function OR(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Logs"),ps())}var TR=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],DR=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.customButtons=[iI.getGotoButton(ZA,"id")],this.services=i.services,this.service=i.service}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{service:i,services:n},disableClose:!1})},t.prototype.ngOnInit=function(){var t=this;this.servicePools=new _R(django.gettext("Service pools"),function(){return t.services.invoke(t.service.id+"/servicesPools")},TR,this.service.id+"infopsls")},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-information"]],decls:17,vars:8,consts:[["mat-dialog-title",""],["mat-tab-label",""],[3,"rest","customButtons","pageSize"],[1,"content"],[3,"rest","itemId","tableId","pageSize"],["mat-raised-button","","mat-dialog-close","","color","primary"]],template:function(t,e){1&t&&(fs(0,"h4",0),fs(1,"uds-translate"),Qs(2,"Information for"),ps(),Qs(3),ps(),fs(4,"mat-dialog-content"),fs(5,"mat-tab-group"),fs(6,"mat-tab"),ls(7,IR,2,0,"ng-template",1),gs(8,"uds-table",2),ps(),fs(9,"mat-tab"),ls(10,OR,2,0,"ng-template",1),fs(11,"div",3),gs(12,"uds-logs-table",4),ps(),ps(),ps(),ps(),fs(13,"mat-dialog-actions"),fs(14,"button",5),fs(15,"uds-translate"),Qs(16,"Ok"),ps(),ps(),ps()),2&t&&(Po(3),tl(" ",e.service.name,"\n"),Po(5),hs("rest",e.servicePools)("customButtons",e.customButtons)("pageSize",6),Po(4),hs("rest",e.services)("itemId",e.service.id)("tableId","serviceInfo-d-log"+e.service.id)("pageSize",5))},directives:[zC,QC,VC,hA,eA,QM,pR,AR,BC,ZC,FC],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.mat-column-count[_ngcontent-%COMP%], .mat-column-image[_ngcontent-%COMP%], .mat-column-state[_ngcontent-%COMP%]{max-width:7rem;justify-content:center}.navigation[_ngcontent-%COMP%]{margin-top:1rem;display:flex;justify-content:flex-end;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}"]}),t}();function PR(t,e){if(1&t&&(fs(0,"div",3),gs(1,"div",4),gs(2,"div",5),ps()),2&t){var n=e.$implicit;Po(1),hs("innerHTML",n.gui.label,Ir),Po(1),hs("innerHTML",n.value,Ir)}}var ER=function(){function t(t){this.api=t,this.displayables=null}return t.prototype.ngOnInit=function(){this.processFields()},t.prototype.processFields=function(){var t=this;if(!this.gui||!this.value)return[];var e=this.gui.filter(function(t){return t.gui.type!==oS.HIDDEN});e.forEach(function(e){var n=t.value[e.name];switch(e.gui.type){case oS.CHECKBOX:e.value=n?django.gettext("Yes"):django.gettext("No");break;case oS.PASSWORD:e.value=django.gettext("(hidden)");break;case oS.CHOICE:var i=aS.locateChoice(n,e);e.value=i.text;break;case oS.MULTI_CHOICE:e.value=django.gettext("Selected items :")+n.length;break;case oS.IMAGECHOICE:i=aS.locateChoice(n,e),e.value=t.api.safeString(t.api.gui.icon(i.img)+" "+i.text);break;default:e.value=n}""!==e.value&&null!=e.value||(e.value="(empty)")}),this.displayables=e},t.\u0275fac=function(e){return new(e||t)(cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-information"]],inputs:{value:"value",gui:"gui"},decls:4,vars:1,consts:[[1,"card"],[1,"card-content"],["class","item",4,"ngFor","ngForOf"],[1,"item"],[1,"label",3,"innerHTML"],[1,"value",3,"innerHTML"]],template:function(t,e){1&t&&(fs(0,"div",0),fs(1,"div",1),ls(2,PR,3,2,"div",2),ps(),gs(3,"div"),ps()),2&t&&(Po(2),hs("ngForOf",e.displayables))},directives:[Oh],styles:[".card-content[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column}.item[_ngcontent-%COMP%]{padding-bottom:.5rem;display:flex}.label[_ngcontent-%COMP%]{font-weight:700;width:32rem;overflow-x:hidden;text-overflow:ellipsis;text-align:end;margin-right:1rem;align-self:center}"]}),t}();function RR(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Summary"),ps())}function LR(t,e){if(1&t&&gs(0,"uds-information",15),2&t){var n=Is(2);hs("value",n.provider)("gui",n.gui)}}function NR(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Services"),ps())}function FR(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Usage"),ps())}function zR(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Logs"),ps())}function VR(t,e){if(1&t){var n=_s();fs(0,"div",6),fs(1,"div",7),fs(2,"mat-tab-group",8),ks("selectedIndexChange",function(t){return en(n),Is().selectedTab=t}),fs(3,"mat-tab"),ls(4,RR,2,0,"ng-template",9),fs(5,"div",10),ls(6,LR,1,2,"uds-information",11),ps(),ps(),fs(7,"mat-tab"),ls(8,NR,2,0,"ng-template",9),fs(9,"div",10),fs(10,"uds-table",12),ks("newAction",function(t){return en(n),Is().onNewService(t)})("editAction",function(t){return en(n),Is().onEditService(t)})("deleteAction",function(t){return en(n),Is().onDeleteService(t)})("customButtonAction",function(t){return en(n),Is().onInformation(t)})("loaded",function(t){return en(n),Is().onLoad(t)}),ps(),ps(),ps(),fs(11,"mat-tab"),ls(12,FR,2,0,"ng-template",9),fs(13,"div",10),fs(14,"uds-table",13),ks("deleteAction",function(t){return en(n),Is().onDeleteUsage(t)}),ps(),ps(),ps(),fs(15,"mat-tab"),ls(16,zR,2,0,"ng-template",9),fs(17,"div",10),gs(18,"uds-logs-table",14),ps(),ps(),ps(),ps(),ps()}if(2&t){var i=Is();Po(2),hs("selectedIndex",i.selectedTab)("@.disabled",!0),Po(4),hs("ngIf",i.provider&&i.gui),Po(4),hs("rest",i.services)("multiSelect",!0)("allowExport",!0)("customButtons",i.customButtons)("pageSize",i.api.config.admin.page_size)("tableId","providers-d-services"+i.provider.id),Po(4),hs("rest",i.usage)("multiSelect",!0)("allowExport",!0)("pageSize",i.api.config.admin.page_size)("tableId","providers-d-usage"+i.provider.id),Po(4),hs("rest",i.services.parentModel)("itemId",i.provider.id)("tableId","providers-d-log"+i.provider.id)}}var BR=function(t){return["/providers",t]},HR=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:YA.ONLY_MENU}],this.provider=null,this.selectedTab=1}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("provider");this.services=this.rest.providers.detail(e,"services"),this.usage=this.rest.providers.detail(e,"usage"),this.services.parentModel.get(e).subscribe(function(e){t.provider=e,t.services.parentModel.gui(e.type).subscribe(function(e){t.gui=e})})},t.prototype.onInformation=function(t){DR.launch(this.api,this.services,t.table.selection.selected[0])},t.prototype.onNewService=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New service"),!1)},t.prototype.onEditService=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit service"),!1)},t.prototype.onDeleteService=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete service"))},t.prototype.onDeleteUsage=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete user service"))},t.prototype.onLoad=function(t){if(!0===t.param){var e=this.route.snapshot.paramMap.get("service");if(void 0!==e){this.selectedTab=1;var n=t.table;n.dataSource.data.forEach(function(t){t.id===e&&n.selection.select(t)})}}},t.\u0275fac=function(e){return new(e||t)(cs(mg),cs(XI),cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-services-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","providers",3,"rest","multiSelect","allowExport","customButtons","pageSize","tableId","newAction","editAction","deleteAction","customButtonAction","loaded"],["icon","usage",3,"rest","multiSelect","allowExport","pageSize","tableId","deleteAction"],[3,"rest","itemId","tableId"],[3,"value","gui"]],template:function(t,e){1&t&&(fs(0,"div",0),fs(1,"div",1),fs(2,"a",2),fs(3,"i",3),Qs(4,"arrow_back"),ps(),ps(),Qs(5," \xa0"),gs(6,"img",4),Qs(7),ps(),ls(8,VR,19,17,"div",5),ps()),2&t&&(Po(2),hs("routerLink",Su(4,BR,e.services.parentId)),Po(4),hs("src",e.api.staticURL("admin/img/icons/services.png"),Or),Po(1),tl(" \xa0",null==e.provider?null:e.provider.name," "),Po(1),hs("ngIf",null!==e.provider))},directives:[qm,Dh,hA,eA,QM,pR,AR,QC,ER],styles:[""]}),t}(),jR=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("authenticator")},t.prototype.onDetail=function(t){this.api.navigation.gotoAuthenticatorDetail(t.param.id)},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Authenticator"),!0)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Authenticator"),!0)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Authenticator"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("authenticator"))},t.prototype.processElement=function(t){t.visible=this.api.yesno(t.visible)},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(mg),cs(XI))},t.\u0275cmp=ce({type:t,selectors:[["uds-authenticators"]],decls:2,vars:6,consts:[["icon","authenticators",3,"rest","multiSelect","allowExport","hasPermissions","onItem","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(fs(0,"div"),fs(1,"uds-table",0),ks("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("detailAction",function(t){return e.onDetail(t)})("loaded",function(t){return e.onLoad(t)}),ps(),ps()),2&t&&(Po(1),hs("rest",e.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",e.processElement)("pageSize",e.api.config.admin.page_size))},directives:[pR],styles:[""]}),t}(),GR=["panel"];function UR(t,e){if(1&t&&(fs(0,"div",0,1),Ds(2),ps()),2&t){var n=e.id,i=Is();hs("id",i.id)("ngClass",i._classList),as("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(n))}}var WR=["*"],YR=0,qR=function t(e,n){s(this,t),this.source=e,this.option=n},XR=Ek(function(){return function t(){s(this,t)}}()),ZR=new _i("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),KR=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o){var a;return s(this,n),(a=e.call(this))._changeDetectorRef=t,a._elementRef=i,a._activeOptionChanges=A.EMPTY,a.showPanel=!1,a._isOpen=!1,a.displayWith=null,a.optionSelected=new Nu,a.opened=new Nu,a.closed=new Nu,a.optionActivated=new Nu,a._classList={},a.id="mat-autocomplete-".concat(YR++),a.inertGroups=(null==o?void 0:o.SAFARI)||!1,a._autoActiveFirstOption=!!r.autoActiveFirstOption,a}return a(n,[{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(t){this._autoActiveFirstOption=vv(t)}},{key:"classList",set:function(t){this._classList=t&&t.length?kv(t).reduce(function(t,e){return t[e]=!0,t},{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}},{key:"ngAfterContentInit",value:function(){var t=this;this._keyManager=new Z_(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(function(e){t.optionActivated.emit({source:t,option:t.options.toArray()[e]||null})}),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}},{key:"_getScrollTop",value:function(){return this.panel?this.panel.nativeElement.scrollTop:0}},{key:"_setVisibility",value:function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}},{key:"_emitSelectEvent",value:function(t){var e=new qR(this,t);this.optionSelected.emit(e)}},{key:"_getPanelAriaLabelledby",value:function(t){return this.ariaLabel?null:this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}},{key:"_setVisibilityClasses",value:function(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}]),n}(XR);return t.\u0275fac=function(e){return new(e||t)(cs(Jl),cs(Al),cs(ZR),cs(oy))},t.\u0275dir=me({type:t,viewQuery:function(t,e){var n;1&t&&(Zu(ru,7),Zu(GR,5)),2&t&&(Xu(n=$u())&&(e.template=n.first),Xu(n=$u())&&(e.panel=n.first))},inputs:{displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[qa]}),t}(),$R=function(){var t=function(t){u(n,t);var e=p(n);function n(){var t;return s(this,n),(t=e.apply(this,arguments))._visibleClass="mat-autocomplete-visible",t._hiddenClass="mat-autocomplete-hidden",t}return n}(KR);return t.\u0275fac=function(){var e;return function(n){return(e||(e=pi(t)))(n||t)}}(),t.\u0275cmp=ce({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,n){var i;1&t&&(Ku(n,pC,5),Ku(n,yC,5)),2&t&&(Xu(i=$u())&&(e.optionGroups=i),Xu(i=$u())&&(e.options=i))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[_l([{provide:cC,useExisting:t}]),qa],ngContentSelectors:WR,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(Ts(),ls(0,UR,3,4,"ng-template"))},directives:[Ah],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}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),t}(),QR=new _i("mat-autocomplete-scroll-strategy"),JR={provide:QR,deps:[b_],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},tL={provide:cS,useExisting:St(function(){return nL}),multi:!0},eL=function(){var t=function(){function t(e,n,i,r,o,a,l,u,c,h,d){var f=this;s(this,t),this._element=e,this._overlay=n,this._viewContainerRef=i,this._zone=r,this._changeDetectorRef=o,this._dir=l,this._formField=u,this._document=c,this._viewportRuler=h,this._defaults=d,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=A.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new U,this._windowBlurHandler=function(){f._canOpenOnNextFocus=f._document.activeElement!==f._element.nativeElement||f.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Df(function(){return f.autocomplete&&f.autocomplete.options?dt.apply(void 0,b(f.autocomplete.options.map(function(t){return t.onSelectionChange}))):f._zone.onStable.pipe(Nf(1),Pf(function(){return f.optionSelections}))}),this._scrollStrategy=a}return a(t,[{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(t){this._autocompleteDisabled=vv(t)}},{key:"ngAfterViewInit",value:function(){var t=this,e=this._getWindow();void 0!==e&&this._zone.runOutsideAngular(function(){return e.addEventListener("blur",t._windowBlurHandler)})}},{key:"ngOnChanges",value:function(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}},{key:"panelOpen",get:function(){return this._overlayAttached&&this.autocomplete.showPanel}},{key:"openPanel",value:function(){this._attachOverlay(),this._floatLabel()}},{key:"closePanel",value:function(){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())}},{key:"updatePosition",value:function(){this._overlayAttached&&this._overlayRef.updatePosition()}},{key:"panelClosingActions",get:function(){var t=this;return dt(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Ld(function(){return t._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Ld(function(){return t._overlayAttached})):Ed()).pipe(q(function(t){return t instanceof mC?t:null}))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}},{key:"_getOutsideClickStream",value:function(){var t=this;return dt(Cv(this._document,"click"),Cv(this._document,"auxclick"),Cv(this._document,"touchend")).pipe(Ld(function(e){var n=t._isInsideShadowRoot&&e.composedPath?e.composedPath()[0]:e.target,i=t._formField?t._formField._elementRef.nativeElement:null,r=t.connectedTo?t.connectedTo.elementRef.nativeElement:null;return t._overlayAttached&&n!==t._element.nativeElement&&(!i||!i.contains(n))&&(!r||!r.contains(n))&&!!t._overlayRef&&!t._overlayRef.overlayElement.contains(n)}))}},{key:"writeValue",value:function(t){var e=this;Promise.resolve(null).then(function(){return e._setTriggerValue(t)})}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this._element.nativeElement.disabled=t}},{key:"_handleKeydown",value:function(t){var e=t.keyCode;if(e!==Fy||Wy(t)||t.preventDefault(),this.activeOption&&e===Ny&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){var n=this.autocomplete._keyManager.activeItem,i=e===jy||e===Uy;this.panelOpen||9===e?this.autocomplete._keyManager.onKeydown(t):i&&this._canOpen()&&this.openPanel(),(i||this.autocomplete._keyManager.activeItem!==n)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}},{key:"_handleInput",value:function(t){var e=t.target,n=e.value;"number"===e.type&&(n=""==n?null:parseFloat(n)),this._previousValue!==n&&(this._previousValue=n,this._onChange(n),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}},{key:"_handleFocus",value:function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}},{key:"_floatLabel",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}},{key:"_resetLabel",value:function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}},{key:"_subscribeToClosingActions",value:function(){var t=this;return dt(this._zone.onStable.pipe(Nf(1)),this.autocomplete.options.changes.pipe(rp(function(){return t._positionStrategy.reapplyLastPosition()}),_P(0))).pipe(Pf(function(){var e=t.panelOpen;return t._resetActiveItem(),t.autocomplete._setVisibility(),t.panelOpen&&(t._overlayRef.updatePosition(),e!==t.panelOpen&&t.autocomplete.opened.emit()),t.panelClosingActions}),Nf(1)).subscribe(function(e){return t._setValueAndClose(e)})}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(t){var e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,n=null!=e?e:"";this._formField?this._formField._control.value=n:this._element.nativeElement.value=n,this._previousValue=n}},{key:"_setValueAndClose",value:function(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()}},{key:"_clearPreviousSelectedOption",value:function(t){this.autocomplete.options.forEach(function(e){e!==t&&e.selected&&e.deselect()})}},{key:"_attachOverlay",value:function(){var t,e=this;null==this._isInsideShadowRoot&&(this._isInsideShadowRoot=!!hy(this._element.nativeElement));var n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new Ay(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t.getLabelId()}),n=this._overlay.create(this._getOverlayConfig()),this._overlayRef=n,n.keydownEvents().subscribe(function(t){(t.keyCode===Fy&&!Wy(t)||t.keyCode===jy&&Wy(t,"altKey"))&&(e._resetActiveItem(),e._closeKeyEventStream.next(),t.stopPropagation(),t.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(function(){e.panelOpen&&n&&n.updateSize({width:e._getPanelWidth()})})),n&&!n.hasAttached()&&(n.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var i=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&i!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){var t;return new t_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}},{key:"_getOverlayPosition",value:function(){var t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}},{key:"_setStrategyPositions",value:function(t){var e,n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],i=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:i},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:i}];e="above"===this.position?r:"below"===this.position?n:[].concat(n,r),t.withPositions(e)}},{key:"_getConnectedElement",value:function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}},{key:"_getPanelWidth",value:function(){return this.autocomplete.panelWidth||this._getHostWidth()}},{key:"_getHostWidth",value:function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}},{key:"_resetActiveItem",value:function(){var t=this.autocomplete;t.autoActiveFirstOption?t._keyManager.setFirstItemActive():t._keyManager.setActiveItem(-1)}},{key:"_canOpen",value:function(){var t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}},{key:"_scrollToOption",value:function(t){var e=this.autocomplete,n=_C(t,e.options,e.optionGroups);if(0===t&&1===n)e._setScrollTop(0);else if(e.panel){var i=e.options.toArray()[t];if(i){var r=i._getHostElement(),o=bC(r.offsetTop,r.offsetHeight,e._getScrollTop(),e.panel.nativeElement.offsetHeight);e._setScrollTop(o)}}}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(b_),cs(cu),cs(kc),cs(Jl),cs(QR),cs(py,8),cs(pT,9),cs(oh,8),cs(wy),cs(ZR,8))},t.\u0275dir=me({type:t,inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},features:[Te]}),t}(),nL=function(){var t=function(t){u(n,t);var e=p(n);function n(){var t;return s(this,n),(t=e.apply(this,arguments))._aboveClass="mat-autocomplete-panel-above",t}return n}(eL);return t.\u0275fac=function(){var e;return function(n){return(e||(e=pi(t)))(n||t)}}(),t.\u0275dir=me({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&ks("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&&as("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:[_l([tL]),qa]}),t}(),iL=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[JR],imports:[[M_,xC,Tk,Yh],ky,xC,Tk]}),t}();function rL(t,e){if(1&t&&(fs(0,"div"),fs(1,"uds-translate"),Qs(2,"Edit user"),ps(),Qs(3),ps()),2&t){var n=Is();Po(3),tl(" ",n.user.name," ")}}function oL(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"New user"),ps())}function aL(t,e){if(1&t){var n=_s();fs(0,"mat-form-field"),fs(1,"mat-label"),Qs(2),ps(),fs(3,"input",19),ks("ngModelChange",function(t){return en(n),Is().user.name=t}),ps(),ps()}if(2&t){var i=Is();Po(2),tl(" ",i.authenticator.type_info.userNameLabel," "),Po(1),hs("ngModel",i.user.name)("disabled",i.user.id)}}function sL(t,e){if(1&t&&(fs(0,"mat-option",22),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),el(" ",n.id," (",n.name,") ")}}function lL(t,e){if(1&t){var n=_s();fs(0,"mat-form-field"),fs(1,"mat-label"),Qs(2),ps(),fs(3,"input",20),ks("ngModelChange",function(t){return en(n),Is().user.name=t})("input",function(t){return en(n),Is().filterUser(t)}),ps(),fs(4,"mat-autocomplete",null,21),ls(6,sL,2,3,"mat-option",16),ps(),ps()}if(2&t){var i=us(5),r=Is();Po(2),tl(" ",r.authenticator.type_info.userNameLabel," "),Po(1),hs("ngModel",r.user.name)("matAutocomplete",i),Po(3),hs("ngForOf",r.users)}}function uL(t,e){if(1&t){var n=_s();fs(0,"mat-form-field"),fs(1,"mat-label"),Qs(2),ps(),fs(3,"input",23),ks("ngModelChange",function(t){return en(n),Is().user.password=t}),ps(),ps()}if(2&t){var i=Is();Po(2),tl(" ",i.authenticator.type_info.passwordLabel," "),Po(1),hs("ngModel",i.user.password)}}function cL(t,e){if(1&t&&(fs(0,"mat-option",22),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.name," ")}}var hL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Nu(!0),this.users=[],this.authenticator=i.authenticator,this.user={id:void 0,name:"",real_name:"",comments:"",state:"A",is_admin:!1,staff_member:!1,password:"",role:"user",groups:[]},void 0!==i.user&&(this.user.id=i.user.id,this.user.name=i.user.name)}return t.launch=function(e,n,i){var r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,user:i},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.detail(this.authenticator.id,"groups").overview().subscribe(function(e){t.groups=e}),this.user.id&&this.rest.authenticators.detail(this.authenticator.id,"users").get(this.user.id).subscribe(function(e){t.user=e,t.user.role=e.is_admin?"admin":e.staff_member?"staff":"user"},function(e){t.dialogRef.close()})},t.prototype.roleChanged=function(t){this.user.is_admin="admin"===t,this.user.staff_member="admin"===t||"staff"===t},t.prototype.filterUser=function(t){var e=this;this.rest.authenticators.search(this.authenticator.id,"user",t.target.value,100).subscribe(function(t){e.users.length=0,t.forEach(function(t){e.users.push(t)})})},t.prototype.save=function(){var t=this;this.rest.authenticators.detail(this.authenticator.id,"users").save(this.user).subscribe(function(e){t.dialogRef.close(),t.onSave.emit(!0)})},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-new-user"]],decls:60,vars:11,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["nousertitle",""],[1,"content"],[4,"ngIf"],["type","text","matInput","","autocomplete","new-real_name",3,"ngModel","ngModelChange"],["type","text","matInput","","autocomplete","new-comments",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["value","A"],["value","I"],["value","B"],[3,"ngModel","ngModelChange","valueChange"],["value","admin"],["value","staff"],["value","user"],["multiple","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["type","text","matInput","","autocomplete","new-username",3,"ngModel","disabled","ngModelChange"],["type","text","aria-label","Number","matInput","",3,"ngModel","matAutocomplete","ngModelChange","input"],["auto","matAutocomplete"],[3,"value"],["type","password","matInput","","autocomplete","new-password",3,"ngModel","ngModelChange"]],template:function(t,e){if(1&t&&(fs(0,"h4",0),ls(1,rL,4,1,"div",1),ls(2,oL,2,0,"ng-template",null,2,ec),ps(),fs(4,"mat-dialog-content"),fs(5,"div",3),ls(6,aL,4,3,"mat-form-field",4),ls(7,lL,7,4,"mat-form-field",4),fs(8,"mat-form-field"),fs(9,"mat-label"),fs(10,"uds-translate"),Qs(11,"Real name"),ps(),ps(),fs(12,"input",5),ks("ngModelChange",function(t){return e.user.real_name=t}),ps(),ps(),fs(13,"mat-form-field"),fs(14,"mat-label"),fs(15,"uds-translate"),Qs(16,"Comments"),ps(),ps(),fs(17,"input",6),ks("ngModelChange",function(t){return e.user.comments=t}),ps(),ps(),fs(18,"mat-form-field"),fs(19,"mat-label"),fs(20,"uds-translate"),Qs(21,"State"),ps(),ps(),fs(22,"mat-select",7),ks("ngModelChange",function(t){return e.user.state=t}),fs(23,"mat-option",8),fs(24,"uds-translate"),Qs(25,"Enabled"),ps(),ps(),fs(26,"mat-option",9),fs(27,"uds-translate"),Qs(28,"Disabled"),ps(),ps(),fs(29,"mat-option",10),fs(30,"uds-translate"),Qs(31,"Blocked"),ps(),ps(),ps(),ps(),fs(32,"mat-form-field"),fs(33,"mat-label"),fs(34,"uds-translate"),Qs(35,"Role"),ps(),ps(),fs(36,"mat-select",11),ks("ngModelChange",function(t){return e.user.role=t})("valueChange",function(t){return e.roleChanged(t)}),fs(37,"mat-option",12),fs(38,"uds-translate"),Qs(39,"Admin"),ps(),ps(),fs(40,"mat-option",13),fs(41,"uds-translate"),Qs(42,"Staff member"),ps(),ps(),fs(43,"mat-option",14),fs(44,"uds-translate"),Qs(45,"User"),ps(),ps(),ps(),ps(),ls(46,uL,4,2,"mat-form-field",4),fs(47,"mat-form-field"),fs(48,"mat-label"),fs(49,"uds-translate"),Qs(50,"Groups"),ps(),ps(),fs(51,"mat-select",15),ks("ngModelChange",function(t){return e.user.groups=t}),ls(52,cL,2,2,"mat-option",16),ps(),ps(),ps(),ps(),fs(53,"mat-dialog-actions"),fs(54,"button",17),fs(55,"uds-translate"),Qs(56,"Cancel"),ps(),ps(),fs(57,"button",18),ks("click",function(){return e.save()}),fs(58,"uds-translate"),Qs(59,"Ok"),ps(),ps(),ps()),2&t){var n=us(3);Po(1),hs("ngIf",e.user.id)("ngIfElse",n),Po(5),hs("ngIf",!1===e.authenticator.type_info.canSearchUsers||e.user.id),Po(1),hs("ngIf",!0===e.authenticator.type_info.canSearchUsers&&!e.user.id),Po(5),hs("ngModel",e.user.real_name),Po(5),hs("ngModel",e.user.comments),Po(5),hs("ngModel",e.user.state),Po(14),hs("ngModel",e.user.role),Po(10),hs("ngIf",e.authenticator.type_info.needsPassword),Po(5),hs("ngModel",e.user.groups),Po(1),hs("ngForOf",e.groups)}},directives:[zC,Dh,VC,gT,aT,QC,TP,fS,BS,gM,FT,yC,Oh,BC,ZC,FC,nL,$R],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}(),dL=["thumbContainer"],fL=["toggleBar"],pL=["input"],gL=function(t){return{enterDuration:t}},mL=["*"],vL=new _i("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),yL=0,_L={provide:cS,useExisting:St(function(){return wL}),multi:!0},bL=function t(e,n){s(this,t),this.source=e,this.checked=n},xL=Rk(Pk(Ek(Dk(function(){return function t(e){s(this,t),this._elementRef=e}}())))),wL=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l){var u;return s(this,n),(u=e.call(this,t))._focusMonitor=i,u._changeDetectorRef=r,u.defaults=a,u._onChange=function(t){},u._onTouched=function(){},u._uniqueId="mat-slide-toggle-".concat(++yL),u._required=!1,u._checked=!1,u.name=null,u.id=u._uniqueId,u.labelPosition="after",u.ariaLabel=null,u.ariaLabelledby=null,u.change=new Nu,u.toggleChange=new Nu,u.tabIndex=parseInt(o)||0,u.color=u.defaultColor=a.color||"accent",u._noopAnimations="NoopAnimations"===l,u}return a(n,[{key:"required",get:function(){return this._required},set:function(t){this._required=vv(t)}},{key:"checked",get:function(){return this._checked},set:function(t){this._checked=vv(t),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"ngAfterContentInit",value:function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(e){"keyboard"===e||"program"===e?t._inputElement.nativeElement.focus():e||Promise.resolve().then(function(){return t._onTouched()})})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_onChangeEvent",value:function(t){t.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}},{key:"_onInputClick",value:function(t){t.stopPropagation()}},{key:"writeValue",value:function(t){this.checked=!!t}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this._changeDetectorRef.markForCheck()}},{key:"focus",value:function(t,e){e?this._focusMonitor.focusVia(this._inputElement,e,t):this._inputElement.nativeElement.focus(t)}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(new bL(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}}]),n}(xL);return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(mb),cs(Jl),mi("tabindex"),cs(vL),cs(yk,8))},t.\u0275cmp=ce({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var n;1&t&&(Zu(dL,5),Zu(fL,5),Zu(pL,5)),2&t&&(Xu(n=$u())&&(e._thumbEl=n.first),Xu(n=$u())&&(e._thumbBarEl=n.first),Xu(n=$u())&&(e._inputElement=n.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){2&t&&(nl("id",e.id),as("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),Hs("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable",e._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[_l([_L]),qa],ngContentSelectors:mL,decls:16,vars:19,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,e){if(1&t&&(Ts(),fs(0,"label",0,1),fs(2,"div",2,3),fs(4,"input",4,5),ks("change",function(t){return e._onChangeEvent(t)})("click",function(t){return e._onInputClick(t)}),ps(),fs(6,"div",6,7),gs(8,"div",8),fs(9,"div",9),gs(10,"div",10),ps(),ps(),ps(),fs(11,"span",11,12),ks("cdkObserveContent",function(){return e._onLabelTextChange()}),fs(13,"span",13),Qs(14,"\xa0"),ps(),Ds(15),ps(),ps()),2&t){var n=us(1),i=us(12);as("for",e.inputId),Po(2),Hs("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),Po(2),hs("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),as("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),Po(5),hs("matRippleTrigger",n)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Su(17,gL,e._noopAnimations?0:150))}},directives:[aC,N_],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px, 0, 0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px, 0, 0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar,.mat-slide-toggle-bar{margin-right:8px;margin-left:0}[dir=rtl] .mat-slide-toggle-bar,.mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0, 0, 0);transition:all 80ms linear;transition-property:transform}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media(hover: none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}.cdk-high-contrast-active .mat-slide-toggle-thumb,.cdk-high-contrast-active .mat-slide-toggle-bar{border:1px solid}.cdk-high-contrast-active .mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:2px dotted;outline-offset:5px}\n"],encapsulation:2,changeDetection:0}),t}(),kL={provide:mS,useExisting:St(function(){return CL}),multi:!0},CL=function(){var t=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return n}(MM);return t.\u0275fac=function(){var e;return function(n){return(e||(e=pi(t)))(n||t)}}(),t.\u0275dir=me({type:t,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[_l([kL]),qa]}),t}(),SL=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({}),t}(),ML=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[SL,sC,Tk,F_],SL,Tk]}),t}();function AL(t,e){if(1&t&&(fs(0,"div"),fs(1,"uds-translate"),Qs(2,"Edit group"),ps(),Qs(3),ps()),2&t){var n=Is();Po(3),tl(" ",n.group.name," ")}}function IL(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"New group"),ps())}function OL(t,e){if(1&t){var n=_s();fs(0,"mat-form-field"),fs(1,"mat-label"),Qs(2),ps(),fs(3,"input",13),ks("ngModelChange",function(t){return en(n),Is(2).group.name=t}),ps(),ps()}if(2&t){var i=Is(2);Po(2),tl(" ",i.authenticator.type_info.groupNameLabel," "),Po(1),hs("ngModel",i.group.name)("disabled",i.group.id)}}function TL(t,e){if(1&t&&(fs(0,"mat-option",17),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),el(" ",n.id," (",n.name,") ")}}function DL(t,e){if(1&t){var n=_s();fs(0,"mat-form-field"),fs(1,"mat-label"),Qs(2),ps(),fs(3,"input",14),ks("ngModelChange",function(t){return en(n),Is(2).group.name=t})("input",function(t){return en(n),Is(2).filterGroup(t)}),ps(),fs(4,"mat-autocomplete",null,15),ls(6,TL,2,3,"mat-option",16),ps(),ps()}if(2&t){var i=us(5),r=Is(2);Po(2),tl(" ",r.authenticator.type_info.groupNameLabel," "),Po(1),hs("ngModel",r.group.name)("matAutocomplete",i),Po(3),hs("ngForOf",r.fltrGroup)}}function PL(t,e){if(1&t&&(ms(0),ls(1,OL,4,3,"mat-form-field",12),ls(2,DL,7,4,"mat-form-field",12),vs()),2&t){var n=Is();Po(1),hs("ngIf",!1===n.authenticator.type_info.canSearchGroups||n.group.id),Po(1),hs("ngIf",!0===n.authenticator.type_info.canSearchGroups&&!n.group.id)}}function EL(t,e){if(1&t){var n=_s();fs(0,"mat-form-field"),fs(1,"mat-label"),fs(2,"uds-translate"),Qs(3,"Meta group name"),ps(),ps(),fs(4,"input",13),ks("ngModelChange",function(t){return en(n),Is().group.name=t}),ps(),ps()}if(2&t){var i=Is();Po(4),hs("ngModel",i.group.name)("disabled",i.group.id)}}function RL(t,e){if(1&t&&(fs(0,"mat-option",17),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.name," ")}}function LL(t,e){if(1&t){var n=_s();ms(0),fs(1,"mat-form-field"),fs(2,"mat-label"),fs(3,"uds-translate"),Qs(4,"Service Pools"),ps(),ps(),fs(5,"mat-select",18),ks("ngModelChange",function(t){return en(n),Is().group.pools=t}),ls(6,RL,2,2,"mat-option",16),ps(),ps(),vs()}if(2&t){var i=Is();Po(5),hs("ngModel",i.group.pools),Po(1),hs("ngForOf",i.servicePools)}}function NL(t,e){if(1&t&&(fs(0,"mat-option",17),Qs(1),ps()),2&t){var n=Is().$implicit;hs("value",n.id),Po(1),tl(" ",n.name," ")}}function FL(t,e){if(1&t&&(ms(0),ls(1,NL,2,2,"mat-option",22),vs()),2&t){var n=e.$implicit;Po(1),hs("ngIf","group"===n.type)}}function zL(t,e){if(1&t){var n=_s();fs(0,"div",19),fs(1,"span",20),fs(2,"uds-translate"),Qs(3,"Match mode"),ps(),ps(),fs(4,"mat-slide-toggle",6),ks("ngModelChange",function(t){return en(n),Is().group.meta_if_any=t}),Qs(5),ps(),ps(),fs(6,"mat-form-field"),fs(7,"mat-label"),fs(8,"uds-translate"),Qs(9,"Selected Groups"),ps(),ps(),fs(10,"mat-select",18),ks("ngModelChange",function(t){return en(n),Is().group.groups=t}),ls(11,FL,2,1,"ng-container",21),ps(),ps()}if(2&t){var i=Is();Po(4),hs("ngModel",i.group.meta_if_any),Po(1),tl(" ",i.getMatchValue()," "),Po(5),hs("ngModel",i.group.groups),Po(1),hs("ngForOf",i.groups)}}var VL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Nu(!0),this.fltrGroup=[],this.authenticator=i.authenticator,this.group={id:void 0,type:i.groupType,name:"",comments:"",meta_if_any:!1,state:"A",groups:[],pools:[]},void 0!==i.group&&(this.group.id=i.group.id,this.group.type=i.group.type,this.group.name=i.group.name)}return t.launch=function(e,n,i,r){var o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,groupType:i,group:r},disableClose:!0}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this,e=this.rest.authenticators.detail(this.authenticator.id,"groups");void 0!==this.group.id&&e.get(this.group.id).subscribe(function(e){t.group=e},function(e){t.dialogRef.close()}),"meta"===this.group.type?e.summary().subscribe(function(e){return t.groups=e}):this.rest.servicesPools.summary().subscribe(function(e){return t.servicePools=e})},t.prototype.filterGroup=function(t){var e=this;this.rest.authenticators.search(this.authenticator.id,"group",t.target.value,100).subscribe(function(t){e.fltrGroup.length=0,t.forEach(function(t){e.fltrGroup.push(t)})})},t.prototype.getMatchValue=function(){return this.group.meta_if_any?django.gettext("Any"):django.gettext("All")},t.prototype.save=function(){var t=this;this.rest.authenticators.detail(this.authenticator.id,"groups").save(this.group).subscribe(function(e){t.dialogRef.close(),t.onSave.emit(!0)})},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-new-group"]],decls:35,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["nousertitle",""],[1,"content"],["metafirst",""],["type","text","matInput","",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["value","A"],["value","I"],["metasecond",""],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[4,"ngIf"],["type","text","matInput","",3,"ngModel","disabled","ngModelChange"],["type","text","aria-label","Number","matInput","",3,"ngModel","matAutocomplete","ngModelChange","input"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["multiple","",3,"ngModel","ngModelChange"],[1,"mat-form-field-infix"],[1,"label-match"],[4,"ngFor","ngForOf"],[3,"value",4,"ngIf"]],template:function(t,e){if(1&t&&(fs(0,"h4",0),ls(1,AL,4,1,"div",1),ls(2,IL,2,0,"ng-template",null,2,ec),ps(),fs(4,"mat-dialog-content"),fs(5,"div",3),ls(6,PL,3,2,"ng-container",1),ls(7,EL,5,2,"ng-template",null,4,ec),fs(9,"mat-form-field"),fs(10,"mat-label"),fs(11,"uds-translate"),Qs(12,"Comments"),ps(),ps(),fs(13,"input",5),ks("ngModelChange",function(t){return e.group.comments=t}),ps(),ps(),fs(14,"mat-form-field"),fs(15,"mat-label"),fs(16,"uds-translate"),Qs(17,"State"),ps(),ps(),fs(18,"mat-select",6),ks("ngModelChange",function(t){return e.group.state=t}),fs(19,"mat-option",7),fs(20,"uds-translate"),Qs(21,"Enabled"),ps(),ps(),fs(22,"mat-option",8),fs(23,"uds-translate"),Qs(24,"Disabled"),ps(),ps(),ps(),ps(),ls(25,LL,7,2,"ng-container",1),ls(26,zL,12,4,"ng-template",null,9,ec),ps(),ps(),fs(28,"mat-dialog-actions"),fs(29,"button",10),fs(30,"uds-translate"),Qs(31,"Cancel"),ps(),ps(),fs(32,"button",11),ks("click",function(){return e.save()}),fs(33,"uds-translate"),Qs(34,"Ok"),ps(),ps(),ps()),2&t){var n=us(3),i=us(8),r=us(27);Po(1),hs("ngIf",e.group.id)("ngIfElse",n),Po(5),hs("ngIf","group"===e.group.type)("ngIfElse",i),Po(7),hs("ngModel",e.group.comments),Po(5),hs("ngModel",e.group.state),Po(7),hs("ngIf","group"===e.group.type)("ngIfElse",r)}},directives:[zC,Dh,VC,gT,aT,QC,TP,fS,BS,gM,FT,yC,BC,ZC,FC,nL,$R,Oh,wL],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}.label-match[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}"]}),t}();function BL(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Groups"),ps())}function HL(t,e){if(1&t&&(fs(0,"mat-tab"),ls(1,BL,2,0,"ng-template",3),gs(2,"uds-table",4),ps()),2&t){var n=Is();Po(2),hs("rest",n.group)("pageSize",6)}}function jL(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Services Pools"),ps())}function GL(t,e){if(1&t&&(fs(0,"mat-tab"),ls(1,jL,2,0,"ng-template",3),gs(2,"uds-table",4),ps()),2&t){var n=Is();Po(2),hs("rest",n.servicesPools)("pageSize",6)}}function UL(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Assigned Services"),ps())}function WL(t,e){if(1&t&&(fs(0,"mat-tab"),ls(1,UL,2,0,"ng-template",3),gs(2,"uds-table",4),ps()),2&t){var n=Is();Po(2),hs("rest",n.userServices)("pageSize",6)}}var YL=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],qL=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],XL=[{field:"unique_id",title:django.gettext("Unique ID")},{field:"friendly_name",title:django.gettext("Friendly Name")},{field:"in_use",title:django.gettext("In Use")},{field:"ip",title:django.gettext("IP")},{field:"pool",title:django.gettext("Services Pool")}],ZL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.users=i.users,this.user=i.user}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{users:n,user:i},disableClose:!1})},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.detail(this.users.parentId,"users").get(this.user.id).subscribe(function(e){t.group=new _R(django.gettext("Groups"),function(){return t.rest.authenticators.detail(t.users.parentId,"groups").overview().pipe(q(function(t){return t.filter(function(t){return e.groups.includes(t.id)})}))},YL,t.user.id+"infogrp"),t.servicesPools=new _R(django.gettext("Services Pools"),function(){return t.users.invoke(t.user.id+"/servicesPools")},qL,t.user.id+"infopool"),t.userServices=new _R(django.gettext("Assigned services"),function(){return t.users.invoke(t.user.id+"/userServices").pipe(q(function(e){return e.map(function(e){return e.in_use=t.api.yesno(e.in_use),e})}))},XL,t.user.id+"userservpool")})},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-user-information"]],decls:13,vars:4,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],[3,"rest","pageSize"]],template:function(t,e){1&t&&(fs(0,"h4",0),fs(1,"uds-translate"),Qs(2,"Information for"),ps(),Qs(3),ps(),fs(4,"mat-dialog-content"),fs(5,"mat-tab-group"),ls(6,HL,3,2,"mat-tab",1),ls(7,GL,3,2,"mat-tab",1),ls(8,WL,3,2,"mat-tab",1),ps(),ps(),fs(9,"mat-dialog-actions"),fs(10,"button",2),fs(11,"uds-translate"),Qs(12,"Ok"),ps(),ps(),ps()),2&t&&(Po(3),tl(" ",e.user.name,"\n"),Po(3),hs("ngIf",e.group),Po(1),hs("ngIf",e.servicesPools),Po(1),hs("ngIf",e.userServices))},directives:[zC,QC,VC,hA,Dh,BC,ZC,FC,eA,QM,pR],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function KL(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Services Pools"),ps())}function $L(t,e){if(1&t&&(fs(0,"mat-tab"),ls(1,KL,2,0,"ng-template",3),gs(2,"uds-table",4),ps()),2&t){var n=Is();Po(2),hs("rest",n.servicesPools)("pageSize",6)}}function QL(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Users"),ps())}function JL(t,e){if(1&t&&(fs(0,"mat-tab"),ls(1,QL,2,0,"ng-template",3),gs(2,"uds-table",4),ps()),2&t){var n=Is();Po(2),hs("rest",n.users)("pageSize",6)}}function tN(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Groups"),ps())}function eN(t,e){if(1&t&&(fs(0,"mat-tab"),ls(1,tN,2,0,"ng-template",3),gs(2,"uds-table",4),ps()),2&t){var n=Is();Po(2),hs("rest",n.groups)("pageSize",6)}}var nN=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],iN=[{field:"name",title:django.gettext("Name")},{field:"real_name",title:django.gettext("Real Name")},{field:"state",title:django.gettext("state")},{field:"last_access",title:django.gettext("Last access"),type:WA.DATETIME}],rN=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],oN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.data=i}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{group:i,groups:n},disableClose:!1})},t.prototype.ngOnInit=function(){var t=this,e=this.rest.authenticators.detail(this.data.groups.parentId,"groups");this.servicesPools=new _R(django.gettext("Service pools"),function(){return e.invoke(t.data.group.id+"/servicesPools")},nN,this.data.group.id+"infopls"),this.users=new _R(django.gettext("Users"),function(){return e.invoke(t.data.group.id+"/users").pipe(q(function(t){return t.map(function(t){return t.state="A"===t.state?django.gettext("Enabled"):"I"===t.state?django.gettext("Disabled"):django.gettext("Blocked"),t})}))},iN,this.data.group.id+"infousr"),"meta"===this.data.group.type&&(this.groups=new _R(django.gettext("Groups"),function(){return e.overview().pipe(q(function(e){return e.filter(function(e){return t.data.group.groups.includes(e.id)})}))},rN,this.data.group.id+"infogrps"))},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-group-information"]],decls:12,vars:3,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],[3,"rest","pageSize"]],template:function(t,e){1&t&&(fs(0,"h4",0),fs(1,"uds-translate"),Qs(2,"Information for"),ps(),ps(),fs(3,"mat-dialog-content"),fs(4,"mat-tab-group"),ls(5,$L,3,2,"mat-tab",1),ls(6,JL,3,2,"mat-tab",1),ls(7,eN,3,2,"mat-tab",1),ps(),ps(),fs(8,"mat-dialog-actions"),fs(9,"button",2),fs(10,"uds-translate"),Qs(11,"Ok"),ps(),ps(),ps()),2&t&&(Po(5),hs("ngIf",e.servicesPools),Po(1),hs("ngIf",e.users),Po(1),hs("ngIf",e.groups))},directives:[zC,QC,VC,hA,Dh,BC,ZC,FC,eA,QM,pR],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function aN(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Summary"),ps())}function sN(t,e){if(1&t&&gs(0,"uds-information",16),2&t){var n=Is(2);hs("value",n.authenticator)("gui",n.gui)}}function lN(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Users"),ps())}function uN(t,e){if(1&t){var n=_s();fs(0,"uds-table",17),ks("loaded",function(t){return en(n),Is(2).onLoad(t)})("newAction",function(t){return en(n),Is(2).onNewUser(t)})("editAction",function(t){return en(n),Is(2).onEditUser(t)})("deleteAction",function(t){return en(n),Is(2).onDeleteUser(t)})("customButtonAction",function(t){return en(n),Is(2).onUserInformation(t)}),ps()}if(2&t){var i=Is(2);hs("rest",i.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+i.authenticator.id)("customButtons",i.customButtons)("pageSize",i.api.config.admin.page_size)}}function cN(t,e){if(1&t){var n=_s();fs(0,"uds-table",18),ks("loaded",function(t){return en(n),Is(2).onLoad(t)})("editAction",function(t){return en(n),Is(2).onEditUser(t)})("deleteAction",function(t){return en(n),Is(2).onDeleteUser(t)})("customButtonAction",function(t){return en(n),Is(2).onUserInformation(t)}),ps()}if(2&t){var i=Is(2);hs("rest",i.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+i.authenticator.id)("customButtons",i.customButtons)("pageSize",i.api.config.admin.page_size)}}function hN(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Groups"),ps())}function dN(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Logs"),ps())}function fN(t,e){if(1&t){var n=_s();fs(0,"div",6),fs(1,"div",7),fs(2,"mat-tab-group",8),ks("selectedIndexChange",function(t){return en(n),Is().selectedTab=t}),fs(3,"mat-tab"),ls(4,aN,2,0,"ng-template",9),fs(5,"div",10),ls(6,sN,1,2,"uds-information",11),ps(),ps(),fs(7,"mat-tab"),ls(8,lN,2,0,"ng-template",9),fs(9,"div",10),ls(10,uN,1,6,"uds-table",12),ls(11,cN,1,6,"uds-table",13),ps(),ps(),fs(12,"mat-tab"),ls(13,hN,2,0,"ng-template",9),fs(14,"div",10),fs(15,"uds-table",14),ks("loaded",function(t){return en(n),Is().onLoad(t)})("newAction",function(t){return en(n),Is().onNewGroup(t)})("editAction",function(t){return en(n),Is().onEditGroup(t)})("deleteAction",function(t){return en(n),Is().onDeleteGroup(t)})("customButtonAction",function(t){return en(n),Is().onGroupInformation(t)}),ps(),ps(),ps(),fs(16,"mat-tab"),ls(17,dN,2,0,"ng-template",9),fs(18,"div",10),gs(19,"uds-logs-table",15),ps(),ps(),ps(),ps(),ps()}if(2&t){var i=Is();Po(2),hs("selectedIndex",i.selectedTab)("@.disabled",!0),Po(4),hs("ngIf",i.authenticator&&i.gui),Po(4),hs("ngIf",i.authenticator.type_info.canCreateUsers),Po(1),hs("ngIf",!i.authenticator.type_info.canCreateUsers),Po(4),hs("rest",i.groups)("multiSelect",!0)("allowExport",!0)("customButtons",i.customButtons)("tableId","authenticators-d-groups"+i.authenticator.id)("pageSize",i.api.config.admin.page_size),Po(4),hs("rest",i.rest.authenticators)("itemId",i.authenticator.id)("tableId","authenticators-d-log"+i.authenticator.id)}}var pN=function(t){return["/authenticators",t]},gN=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:YA.ONLY_MENU}],this.authenticator=null,this.selectedTab=1,this.selectedTab=this.route.snapshot.paramMap.get("group")?2:1}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("authenticator");this.users=this.rest.authenticators.detail(e,"users"),this.groups=this.rest.authenticators.detail(e,"groups"),this.rest.authenticators.get(e).subscribe(function(e){t.authenticator=e,t.rest.authenticators.gui(e.type).subscribe(function(e){t.gui=e})})},t.prototype.onLoad=function(t){if(!0===t.param){var e=this.route.snapshot.paramMap.get("user"),n=this.route.snapshot.paramMap.get("group");t.table.selectElement("id",e||n)}},t.prototype.processElement=function(t){t.maintenance_state=t.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")},t.prototype.onNewUser=function(t){hL.launch(this.api,this.authenticator).subscribe(function(e){return t.table.overview()})},t.prototype.onEditUser=function(t){hL.launch(this.api,this.authenticator,t.table.selection.selected[0]).subscribe(function(e){return t.table.overview()})},t.prototype.onDeleteUser=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete user"))},t.prototype.onNewGroup=function(t){VL.launch(this.api,this.authenticator,t.param.type).subscribe(function(e){return t.table.overview()})},t.prototype.onEditGroup=function(t){VL.launch(this.api,this.authenticator,t.param.type,t.table.selection.selected[0]).subscribe(function(e){return t.table.overview()})},t.prototype.onDeleteGroup=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete group"))},t.prototype.onUserInformation=function(t){ZL.launch(this.api,this.users,t.table.selection.selected[0])},t.prototype.onGroupInformation=function(t){oN.launch(this.api,this.groups,t.table.selection.selected[0])},t.\u0275fac=function(e){return new(e||t)(cs(mg),cs(XI),cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-authenticators-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction"],[3,"rest","itemId","tableId"],[3,"value","gui"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","newAction","editAction","deleteAction","customButtonAction"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","loaded","editAction","deleteAction","customButtonAction"]],template:function(t,e){1&t&&(fs(0,"div",0),fs(1,"div",1),fs(2,"a",2),fs(3,"i",3),Qs(4,"arrow_back"),ps(),ps(),Qs(5," \xa0"),gs(6,"img",4),Qs(7),ps(),ls(8,fN,20,14,"div",5),ps()),2&t&&(Po(2),hs("routerLink",Su(4,pN,e.authenticator?e.authenticator.id:"")),Po(4),hs("src",e.api.staticURL("admin/img/icons/services.png"),Or),Po(1),tl(" \xa0",null==e.authenticator?null:e.authenticator.name," "),Po(1),hs("ngIf",e.authenticator))},directives:[qm,Dh,hA,eA,QM,pR,AR,QC,ER],styles:[""]}),t}(),mN=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("osmanager")},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New OS Manager"),!1)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit OS Manager"),!1)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete OS Manager"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("osmanager"))},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(mg),cs(XI))},t.\u0275cmp=ce({type:t,selectors:[["uds-osmanagers"]],decls:2,vars:5,consts:[["icon","osmanagers",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(fs(0,"div"),fs(1,"uds-table",0),ks("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("loaded",function(t){return e.onLoad(t)}),ps(),ps()),2&t&&(Po(1),hs("rest",e.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",e.api.config.admin.page_size))},directives:[pR],styles:[""]}),t}(),vN=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("transport")},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Transport"))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Transport"))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Transport"))},t.prototype.processElement=function(t){try{t.allowed_oss=t.allowed_oss.map(function(t){return t.id}).join(", ")}catch(e){t.allowed_oss=""}},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("transport"))},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(mg),cs(XI))},t.\u0275cmp=ce({type:t,selectors:[["uds-transports"]],decls:2,vars:7,consts:[["icon","transports",3,"rest","multiSelect","allowExport","hasPermissions","newGrouped","onItem","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(fs(0,"div"),fs(1,"uds-table",0),ks("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("loaded",function(t){return e.onLoad(t)}),ps(),ps()),2&t&&(Po(1),hs("rest",e.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",e.processElement)("pageSize",e.api.config.admin.page_size))},directives:[pR],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]}),t}(),yN=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("network")},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Network"),!1)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Network"),!1)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Network"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("network"))},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(mg),cs(XI))},t.\u0275cmp=ce({type:t,selectors:[["uds-networks"]],decls:2,vars:5,consts:[["icon","networks",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(fs(0,"div"),fs(1,"uds-table",0),ks("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("loaded",function(t){return e.onLoad(t)}),ps(),ps()),2&t&&(Po(1),hs("rest",e.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",e.api.config.admin.page_size))},directives:[pR],styles:[""]}),t}(),_N=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("proxy")},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Proxy"),!0)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Proxy"),!0)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Proxy"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("proxy"))},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(mg),cs(XI))},t.\u0275cmp=ce({type:t,selectors:[["uds-proxies"]],decls:2,vars:5,consts:[["icon","proxy",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(fs(0,"div"),fs(1,"uds-table",0),ks("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("loaded",function(t){return e.onLoad(t)}),ps(),ps()),2&t&&(Po(1),hs("rest",e.rest.proxy)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",e.api.config.admin.page_size))},directives:[pR],styles:[""]}),t}(),bN=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[iI.getGotoButton(qA,"provider_id"),iI.getGotoButton(XA,"provider_id","service_id"),iI.getGotoButton(JA,"osmanager_id"),iI.getGotoButton(eI,"pool_group_id")],this.editing=!1}return t.prototype.ngOnInit=function(){},t.prototype.onChange=function(t){var e=this,n=["initial_srvs","cache_l1_srvs","max_srvs"];if(null===t.on||"service_id"===t.on.field.name){if(""===t.all.service_id.value)return t.all.osmanager_id.gui.values.length=0,void n.forEach(function(e){return t.all[e].gui.rdonly=!0});this.rest.providers.service(t.all.service_id.value).subscribe(function(i){t.all.allow_users_reset.gui.rdonly=!i.info.can_reset,t.all.osmanager_id.gui.values.length=0,e.editing||(t.all.osmanager_id.gui.rdonly=!i.info.needs_manager),!0===i.info.needs_manager?e.rest.osManagers.overview().subscribe(function(e){e.forEach(function(e){e.servicesTypes.forEach(function(n){i.info.servicesTypeProvided.includes(n)&&t.all.osmanager_id.gui.values.push({id:e.id,text:e.name})})}),t.all.osmanager_id.value=t.all.osmanager_id.gui.values.length>0?t.all.osmanager_id.value||t.all.osmanager_id.gui.values[0].id:""}):(t.all.osmanager_id.gui.values.push({id:"",text:django.gettext("(This service does not requires an OS Manager)")}),t.all.osmanager_id.value=""),n.forEach(function(e){return t.all[e].gui.rdonly=!i.info.uses_cache}),t.all.cache_l2_srvs.gui.rdonly=!1===i.info.uses_cache||!1===i.info.uses_cache_l2,t.all.publish_on_save&&(t.all.publish_on_save.gui.rdonly=!i.info.needs_publication)}),n.forEach(function(e){t.all[e].gui.rdonly=!0})}},t.prototype.onNew=function(t){var e=this;this.editing=!1,this.api.gui.forms.typedNewForm(t,django.gettext("New service Pool"),!1,[{name:"publish_on_save",value:!0,gui:{label:django.gettext("Publish on creation"),tooltip:django.gettext("If selected, will initiate the publication inmediatly after creation"),type:oS.CHECKBOX,order:150,defvalue:"true"}}]).subscribe(function(t){return e.onChange(t)})},t.prototype.onEdit=function(t){var e=this;this.editing=!0,this.api.gui.forms.typedEditForm(t,django.gettext("Edit Service Pool"),!1).subscribe(function(t){return e.onChange(t)})},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete service pool"))},t.prototype.processElement=function(t){t.visible=this.api.yesno(t.visible),t.show_transports=this.api.yesno(t.show_transports),t.restrained?(t.name='warning '+this.api.gui.icon(t.info.icon)+t.name,t.state="T"):(t.name=this.api.gui.icon(t.info.icon)+t.name,t.meta_member.length>0&&(t.state="V")),t.name=this.api.safeString(t.name),t.pool_group_name=this.api.safeString(this.api.gui.icon(t.pool_group_thumb)+t.pool_group_name)},t.prototype.onDetail=function(t){this.api.navigation.gotoServicePoolDetail(t.param.id)},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("pool"))},t.\u0275fac=function(e){return new(e||t)(cs(mg),cs(XI),cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-pools"]],decls:1,vars:7,consts:[["icon","pools",3,"rest","multiSelect","allowExport","hasPermissions","onItem","customButtons","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(fs(0,"uds-table",0),ks("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("detailAction",function(t){return e.onDetail(t)})("loaded",function(t){return e.onLoad(t)}),ps()),2&t&&hs("rest",e.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",e.processElement)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)},directives:[pR],styles:[".mat-column-state, .mat-column-usage, .mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible{max-width:7rem;justify-content:center} .mat-column-show_transports{max-width:10rem;justify-content:center} .mat-column-pool_group_name{max-width:12rem} .row-state-T>.mat-cell{color:#d65014!important}"]}),t}();function xN(t,e){if(1&t&&(fs(0,"mat-option",8),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.name," ")}}function wN(t,e){if(1&t){var n=_s();fs(0,"uds-mat-select-search",9),ks("changed",function(t){return en(n),Is().userFilter=t}),ps()}}function kN(t,e){if(1&t&&(fs(0,"mat-option",8),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.name," ")}}var CN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Nu(!0),this.auths=[],this.users=[],this.userFilter="",this.userService=i.userService,this.userServices=i.userServices}return t.launch=function(e,n,i){var r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,userServices:i},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.authId=this.userService.owner_info.auth_id||"",this.userId=this.userService.owner_info.user_id||"",this.rest.authenticators.summary().subscribe(function(e){t.auths=e,t.authChanged()})},t.prototype.changeAuth=function(t){this.userId="",this.authChanged()},t.prototype.filteredUsers=function(){var t=this;if(!this.userFilter)return this.users;var e=new Array;return this.users.forEach(function(n){(""===t.userFilter||n.name.toLocaleLowerCase().includes(t.userFilter.toLocaleLowerCase()))&&e.push(n)}),e},t.prototype.save=function(){var t=this;""!==this.userId&&""!==this.authId?this.userServices.save({id:this.userService.id,auth_id:this.authId,user_id:this.userId}).subscribe(function(){t.dialogRef.close(),t.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))},t.prototype.authChanged=function(){var t=this;this.rest.authenticators.detail(this.authId,"users").summary().subscribe(function(e){t.users=e})},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-change-assigned-service-owner"]],decls:25,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"]],template:function(t,e){1&t&&(fs(0,"h4",0),fs(1,"uds-translate"),Qs(2,"Change owner of assigned service"),ps(),ps(),fs(3,"mat-dialog-content"),fs(4,"div",1),fs(5,"mat-form-field"),fs(6,"mat-label"),fs(7,"uds-translate"),Qs(8,"Authenticator"),ps(),ps(),fs(9,"mat-select",2),ks("ngModelChange",function(t){return e.authId=t})("selectionChange",function(t){return e.changeAuth(t)}),ls(10,xN,2,2,"mat-option",3),ps(),ps(),fs(11,"mat-form-field"),fs(12,"mat-label"),fs(13,"uds-translate"),Qs(14,"User"),ps(),ps(),fs(15,"mat-select",4),ks("ngModelChange",function(t){return e.userId=t}),ls(16,wN,1,0,"uds-mat-select-search",5),ls(17,kN,2,2,"mat-option",3),ps(),ps(),ps(),ps(),fs(18,"mat-dialog-actions"),fs(19,"button",6),fs(20,"uds-translate"),Qs(21,"Cancel"),ps(),ps(),fs(22,"button",7),ks("click",function(){return e.save()}),fs(23,"uds-translate"),Qs(24,"Ok"),ps(),ps(),ps()),2&t&&(Po(9),hs("ngModel",e.authId),Po(1),hs("ngForOf",e.auths),Po(5),hs("ngModel",e.userId),Po(1),hs("ngIf",e.users.length>10),Po(1),hs("ngForOf",e.filteredUsers()))},directives:[zC,QC,VC,gT,aT,FT,BS,gM,Oh,Dh,BC,ZC,FC,yC,NP],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}();function SN(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"New access rule for"),ps())}function MN(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Edit access rule for"),ps())}function AN(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Default fallback access for"),ps())}function IN(t,e){if(1&t){var n=_s();fs(0,"uds-mat-select-search",11),ks("changed",function(t){return en(n),Is(2).calendarsFilter=t}),ps()}}function ON(t,e){if(1&t&&(fs(0,"mat-option",12),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.name," ")}}function TN(t,e){if(1&t){var n=_s();ms(0),fs(1,"mat-form-field"),fs(2,"mat-label"),fs(3,"uds-translate"),Qs(4,"Priority"),ps(),ps(),fs(5,"input",8),ks("ngModelChange",function(t){return en(n),Is().accessRule.priority=t}),ps(),ps(),fs(6,"mat-form-field"),fs(7,"mat-label"),fs(8,"uds-translate"),Qs(9,"Calendar"),ps(),ps(),fs(10,"mat-select",3),ks("ngModelChange",function(t){return en(n),Is().accessRule.calendarId=t}),ls(11,IN,1,0,"uds-mat-select-search",9),ls(12,ON,2,2,"mat-option",10),ps(),ps(),vs()}if(2&t){var i=Is();Po(5),hs("ngModel",i.accessRule.priority),Po(5),hs("ngModel",i.accessRule.calendarId),Po(1),hs("ngIf",i.calendars.length>10),Po(1),hs("ngForOf",i.filtered(i.calendars,i.calendarsFilter))}}var DN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Nu(!0),this.calendars=[],this.calendarsFilter="",this.pool=i.pool,this.model=i.model,this.accessRule={id:void 0,priority:0,access:"ALLOW",calendarId:""},i.accessRule&&(this.accessRule.id=i.accessRule.id)}return t.launch=function(e,n,i,r){var o=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:i,accessRule:r},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.calendars.summary().subscribe(function(e){t.calendars=e}),void 0!==this.accessRule.id&&-1!==this.accessRule.id?this.model.get(this.accessRule.id).subscribe(function(e){t.accessRule=e}):-1===this.accessRule.id&&this.model.parentModel.getFallbackAccess(this.pool.id).subscribe(function(e){return t.accessRule.access=e})},t.prototype.filtered=function(t,e){return e?t.filter(function(t){return t.name.toLocaleLowerCase().includes(e.toLocaleLowerCase())}):t},t.prototype.save=function(){var t=this,e=function(){t.dialogRef.close(),t.onSave.emit(!0)};-1!==this.accessRule.id?this.model.save(this.accessRule).subscribe(e):this.model.parentModel.setFallbackAccess(this.pool.id,this.accessRule.access).subscribe(e)},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-pools-access-calendars"]],decls:24,vars:6,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],[3,"ngModel","ngModelChange"],["value","ALLOW"],["value","DENY"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(fs(0,"h4",0),ls(1,SN,2,0,"uds-translate",1),ls(2,MN,2,0,"uds-translate",1),ls(3,AN,2,0,"uds-translate",1),Qs(4),ps(),fs(5,"mat-dialog-content"),fs(6,"div",2),ls(7,TN,13,4,"ng-container",1),fs(8,"mat-form-field"),fs(9,"mat-label"),fs(10,"uds-translate"),Qs(11,"Action"),ps(),ps(),fs(12,"mat-select",3),ks("ngModelChange",function(t){return e.accessRule.access=t}),fs(13,"mat-option",4),Qs(14," ALLOW "),ps(),fs(15,"mat-option",5),Qs(16," DENY "),ps(),ps(),ps(),ps(),ps(),fs(17,"mat-dialog-actions"),fs(18,"button",6),fs(19,"uds-translate"),Qs(20,"Cancel"),ps(),ps(),fs(21,"button",7),ks("click",function(){return e.save()}),fs(22,"uds-translate"),Qs(23,"Ok"),ps(),ps(),ps()),2&t&&(Po(1),hs("ngIf",void 0===e.accessRule.id),Po(1),hs("ngIf",void 0!==e.accessRule.id&&-1!==e.accessRule.id),Po(1),hs("ngIf",-1===e.accessRule.id),Po(1),tl(" ",e.pool.name,"\n"),Po(3),hs("ngIf",-1!==e.accessRule.id),Po(5),hs("ngModel",e.accessRule.access))},directives:[zC,Dh,VC,gT,aT,QC,FT,BS,gM,yC,BC,ZC,FC,TP,yM,fS,Oh,NP],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}();function PN(t,e){if(1&t&&(fs(0,"mat-option",8),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.name," ")}}function EN(t,e){if(1&t){var n=_s();fs(0,"uds-mat-select-search",9),ks("changed",function(t){return en(n),Is().groupFilter=t}),ps()}}function RN(t,e){if(1&t&&(ms(0),Qs(1),vs()),2&t){var n=Is().$implicit;Po(1),tl(" (",n.comments,")")}}function LN(t,e){if(1&t&&(fs(0,"mat-option",8),Qs(1),ls(2,RN,2,1,"ng-container",10),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.name,""),Po(1),hs("ngIf",n.comments)}}var NN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Nu(!0),this.model=null,this.auths=[],this.groups=[],this.groupFilter="",this.authId="",this.groupId="",this.pool=i.pool,this.model=i.model}return t.launch=function(e,n,i){var r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:i},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.summary().subscribe(function(e){t.auths=e,t.authChanged()})},t.prototype.changeAuth=function(t){this.groupId="",this.authChanged()},t.prototype.filteredGroups=function(){var t=this;return!this.groupFilter||this.groupFilter.length<3?this.groups:this.groups.filter(function(e){return e.name.toLocaleLowerCase().includes(t.groupFilter.toLocaleLowerCase())})},t.prototype.save=function(){var t=this;""!==this.groupId&&""!==this.authId?this.model.create({id:this.groupId}).subscribe(function(){t.dialogRef.close(),t.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid group"))},t.prototype.authChanged=function(){var t=this;""!==this.authId&&this.rest.authenticators.detail(this.authId,"groups").summary().subscribe(function(e){t.groups=e})},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-pools-add-group"]],decls:26,vars:6,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"],[4,"ngIf"]],template:function(t,e){1&t&&(fs(0,"h4",0),fs(1,"uds-translate"),Qs(2,"New group for"),ps(),Qs(3),ps(),fs(4,"mat-dialog-content"),fs(5,"div",1),fs(6,"mat-form-field"),fs(7,"mat-label"),fs(8,"uds-translate"),Qs(9,"Authenticator"),ps(),ps(),fs(10,"mat-select",2),ks("ngModelChange",function(t){return e.authId=t})("selectionChange",function(t){return e.changeAuth(t)}),ls(11,PN,2,2,"mat-option",3),ps(),ps(),fs(12,"mat-form-field"),fs(13,"mat-label"),fs(14,"uds-translate"),Qs(15,"Group"),ps(),ps(),fs(16,"mat-select",4),ks("ngModelChange",function(t){return e.groupId=t}),ls(17,EN,1,0,"uds-mat-select-search",5),ls(18,LN,3,3,"mat-option",3),ps(),ps(),ps(),ps(),fs(19,"mat-dialog-actions"),fs(20,"button",6),fs(21,"uds-translate"),Qs(22,"Cancel"),ps(),ps(),fs(23,"button",7),ks("click",function(){return e.save()}),fs(24,"uds-translate"),Qs(25,"Ok"),ps(),ps(),ps()),2&t&&(Po(3),tl(" ",e.pool.name,"\n"),Po(7),hs("ngModel",e.authId),Po(1),hs("ngForOf",e.auths),Po(5),hs("ngModel",e.groupId),Po(1),hs("ngIf",e.groups.length>10),Po(1),hs("ngForOf",e.filteredGroups()))},directives:[zC,QC,VC,gT,aT,FT,BS,gM,Oh,Dh,BC,ZC,FC,yC,NP],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}();function FN(t,e){if(1&t){var n=_s();fs(0,"uds-mat-select-search",7),ks("changed",function(t){return en(n),Is().transportsFilter=t}),ps()}}function zN(t,e){if(1&t&&(ms(0),Qs(1),vs()),2&t){var n=Is().$implicit;Po(1),tl(" (",n.comments,")")}}function VN(t,e){if(1&t&&(fs(0,"mat-option",8),Qs(1),ls(2,zN,2,1,"ng-container",9),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.name,""),Po(1),hs("ngIf",n.comments)}}var BN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Nu(!0),this.transports=[],this.transportsFilter="",this.transportId="",this.servicePool=i.servicePool}return t.launch=function(e,n){var i=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.transports.summary().subscribe(function(e){t.transports=e.filter(function(e){return t.servicePool.info.allowedProtocols.includes(e.protocol)})})},t.prototype.filteredTransports=function(){var t=this;return this.transportsFilter?this.transports.filter(function(e){return e.name.toLocaleLowerCase().includes(t.transportsFilter.toLocaleLowerCase())}):this.transports},t.prototype.save=function(){var t=this;""!==this.transportId?this.rest.servicesPools.detail(this.servicePool.id,"transports").create({id:this.transportId}).subscribe(function(){t.dialogRef.close(),t.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid transport"))},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-pools-add-transport"]],decls:20,vars:4,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"],[4,"ngIf"]],template:function(t,e){1&t&&(fs(0,"h4",0),fs(1,"uds-translate"),Qs(2,"New transport for"),ps(),Qs(3),ps(),fs(4,"mat-dialog-content"),fs(5,"div",1),fs(6,"mat-form-field"),fs(7,"mat-label"),fs(8,"uds-translate"),Qs(9,"Transport"),ps(),ps(),fs(10,"mat-select",2),ks("ngModelChange",function(t){return e.transportId=t}),ls(11,FN,1,0,"uds-mat-select-search",3),ls(12,VN,3,3,"mat-option",4),ps(),ps(),ps(),ps(),fs(13,"mat-dialog-actions"),fs(14,"button",5),fs(15,"uds-translate"),Qs(16,"Cancel"),ps(),ps(),fs(17,"button",6),ks("click",function(){return e.save()}),fs(18,"uds-translate"),Qs(19,"Ok"),ps(),ps(),ps()),2&t&&(Po(3),tl(" ",e.servicePool.name,"\n"),Po(7),hs("ngModel",e.transportId),Po(1),hs("ngIf",e.transports.length>10),Po(1),hs("ngForOf",e.filteredTransports()))},directives:[zC,QC,VC,gT,aT,FT,BS,gM,Dh,Oh,BC,ZC,FC,NP,yC],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}(),HN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Nu(!0),this.reason="",this.servicePool=i.servicePool}return t.launch=function(e,n){var i=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){},t.prototype.save=function(){var t=this;this.rest.servicesPools.detail(this.servicePool.id,"publications").invoke("publish","changelog="+encodeURIComponent(this.reason)).subscribe(function(){t.dialogRef.close(),t.onSave.emit(!0)})},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-pools-new-publication"]],decls:18,vars:2,consts:[["mat-dialog-title",""],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,e){1&t&&(fs(0,"h4",0),fs(1,"uds-translate"),Qs(2,"New publication for"),ps(),Qs(3),ps(),fs(4,"mat-dialog-content"),fs(5,"div",1),fs(6,"mat-form-field"),fs(7,"mat-label"),fs(8,"uds-translate"),Qs(9,"Comments"),ps(),ps(),fs(10,"input",2),ks("ngModelChange",function(t){return e.reason=t}),ps(),ps(),ps(),ps(),fs(11,"mat-dialog-actions"),fs(12,"button",3),fs(13,"uds-translate"),Qs(14,"Cancel"),ps(),ps(),fs(15,"button",4),ks("click",function(){return e.save()}),fs(16,"uds-translate"),Qs(17,"Ok"),ps(),ps(),ps()),2&t&&(Po(3),tl(" ",e.servicePool.name,"\n"),Po(7),hs("ngModel",e.reason))},directives:[zC,QC,VC,gT,aT,TP,fS,BS,gM,BC,ZC,FC],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}(),jN=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Nu(!0),this.servicePool=i.servicePool}return t.launch=function(e,n){var i=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1})},t.prototype.ngOnInit=function(){this.changeLogPubs=this.rest.servicesPools.detail(this.servicePool.id,"changelog")},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-pools-publications-changelog"]],decls:11,vars:4,consts:[["mat-dialog-title",""],["icon","publications",3,"rest","allowExport","tableId"],["changeLog",""],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(t,e){1&t&&(fs(0,"h4",0),fs(1,"uds-translate"),Qs(2,"Changelog of"),ps(),Qs(3),ps(),fs(4,"mat-dialog-content"),gs(5,"uds-table",1,2),ps(),fs(7,"mat-dialog-actions"),fs(8,"button",3),fs(9,"uds-translate"),Qs(10,"Ok"),ps(),ps(),ps()),2&t&&(Po(3),tl(" ",e.servicePool.name,"\n"),Po(2),hs("rest",e.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+e.servicePool.id))},directives:[zC,QC,VC,pR,BC,ZC,FC],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function GN(t,e){1&t&&(ms(0),fs(1,"uds-translate"),Qs(2,"Edit action for"),ps(),vs())}function UN(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"New action for"),ps())}function WN(t,e){if(1&t){var n=_s();fs(0,"uds-mat-select-search",14),ks("changed",function(t){return en(n),Is().calendarsFilter=t}),ps()}}function YN(t,e){if(1&t&&(fs(0,"mat-option",15),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.name," ")}}function qN(t,e){if(1&t&&(fs(0,"mat-option",15),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.description," ")}}function XN(t,e){if(1&t){var n=_s();fs(0,"uds-mat-select-search",14),ks("changed",function(t){return en(n),Is(2).transportsFilter=t}),ps()}}function ZN(t,e){if(1&t&&(fs(0,"mat-option",15),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.name," ")}}function KN(t,e){if(1&t){var n=_s();ms(0),fs(1,"mat-form-field"),fs(2,"mat-label"),fs(3,"uds-translate"),Qs(4,"Transport"),ps(),ps(),fs(5,"mat-select",4),ks("ngModelChange",function(t){return en(n),Is().paramValue=t}),ls(6,XN,1,0,"uds-mat-select-search",5),ls(7,ZN,2,2,"mat-option",6),ps(),ps(),vs()}if(2&t){var i=Is();Po(5),hs("ngModel",i.paramValue),Po(1),hs("ngIf",i.transports.length>10),Po(1),hs("ngForOf",i.filtered(i.transports,i.transportsFilter))}}function $N(t,e){if(1&t&&(fs(0,"mat-option",15),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.name," ")}}function QN(t,e){if(1&t){var n=_s();fs(0,"uds-mat-select-search",14),ks("changed",function(t){return en(n),Is(2).groupsFilter=t}),ps()}}function JN(t,e){if(1&t&&(fs(0,"mat-option",15),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",Is(2).authenticator+"@"+n.id),Po(1),tl(" ",n.name," ")}}function tF(t,e){if(1&t){var n=_s();ms(0),fs(1,"mat-form-field"),fs(2,"mat-label"),fs(3,"uds-translate"),Qs(4,"Authenticator"),ps(),ps(),fs(5,"mat-select",10),ks("ngModelChange",function(t){return en(n),Is().authenticator=t})("valueChange",function(t){return en(n),Is().changedAuthenticator(t)}),ls(6,$N,2,2,"mat-option",6),ps(),ps(),fs(7,"mat-form-field"),fs(8,"mat-label"),fs(9,"uds-translate"),Qs(10,"Group"),ps(),ps(),fs(11,"mat-select",4),ks("ngModelChange",function(t){return en(n),Is().paramValue=t}),ls(12,QN,1,0,"uds-mat-select-search",5),ls(13,JN,2,2,"mat-option",6),ps(),ps(),vs()}if(2&t){var i=Is();Po(5),hs("ngModel",i.authenticator),Po(1),hs("ngForOf",i.authenticators),Po(5),hs("ngModel",i.paramValue),Po(1),hs("ngIf",i.groups.length>10),Po(1),hs("ngForOf",i.filtered(i.groups,i.groupsFilter))}}function eF(t,e){if(1&t){var n=_s();ms(0),fs(1,"div",8),fs(2,"span",16),Qs(3),ps(),Qs(4,"\xa0 "),fs(5,"mat-slide-toggle",4),ks("ngModelChange",function(t){return en(n),Is().paramValue=t}),ps(),ps(),vs()}if(2&t){var i=Is();Po(3),Js(i.parameter.description),Po(2),hs("ngModel",i.paramValue)}}function nF(t,e){if(1&t){var n=_s();ms(0),fs(1,"mat-form-field"),fs(2,"mat-label"),Qs(3),ps(),fs(4,"input",17),ks("ngModelChange",function(t){return en(n),Is().paramValue=t}),ps(),ps(),vs()}if(2&t){var i=Is();Po(3),tl(" ",i.parameter.description," "),Po(1),hs("type",i.parameter.type)("ngModel",i.paramValue)}}var iF=function(){return["transport","group","bool"]},rF=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Nu(!0),this.calendars=[],this.actionList=[],this.authenticators=[],this.transports=[],this.groups=[],this.paramsDict={},this.calendarsFilter="",this.groupsFilter="",this.transportsFilter="",this.authenticator="",this.parameter={},this.paramValue="",this.servicePool=i.servicePool,this.scheduledAction={id:void 0,action:"",calendar:"",calendarId:"",atStart:!0,eventsOffset:0,params:{}},void 0!==i.scheduledAction&&(this.scheduledAction.id=i.scheduledAction.id)}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n,scheduledAction:i},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.summary().subscribe(function(e){return t.authenticators=e}),this.rest.transports.summary().subscribe(function(e){return t.transports=e}),this.rest.calendars.summary().subscribe(function(e){return t.calendars=e}),this.rest.servicesPools.actionsList(this.servicePool.id).subscribe(function(e){t.actionList=e,t.actionList.forEach(function(e){t.paramsDict[e.id]=e.params[0]}),void 0!==t.scheduledAction.id&&t.rest.servicesPools.detail(t.servicePool.id,"actions").get(t.scheduledAction.id).subscribe(function(e){t.scheduledAction=e,t.changedAction(t.scheduledAction.action)})})},t.prototype.filtered=function(t,e){return e?t.filter(function(t){return t.name.toLocaleLowerCase().includes(e.toLocaleLowerCase())}):t},t.prototype.changedAction=function(t){if(this.parameter=this.paramsDict[t],void 0!==this.parameter&&(this.paramValue=this.scheduledAction.params[this.parameter.name],void 0===this.paramValue&&(this.paramValue=!1!==this.parameter.default&&(this.parameter.default||"")),"group"===this.parameter.type)){var e=this.paramValue.split("@");2!==e.length&&(e=["",""]),this.authenticator=e[0],this.changedAuthenticator(this.authenticator)}},t.prototype.changedAuthenticator=function(t){var e=this;t&&this.rest.authenticators.detail(t,"groups").summary().subscribe(function(t){return e.groups=t})},t.prototype.save=function(){var t=this;this.scheduledAction.params={},this.parameter&&(this.scheduledAction.params[this.parameter.name]=this.paramValue),this.rest.servicesPools.detail(this.servicePool.id,"actions").save(this.scheduledAction).subscribe(function(){t.dialogRef.close(),t.onSave.emit(!0)})},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-pools-scheduled-action"]],decls:42,vars:16,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["editTitle",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number",3,"ngModel","ngModelChange"],[1,"mat-form-field-infix"],[1,"label-atstart"],[3,"ngModel","ngModelChange","valueChange"],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"],[1,"label"],["matInput","",3,"type","ngModel","ngModelChange"]],template:function(t,e){if(1&t&&(fs(0,"h4",0),ls(1,GN,3,0,"ng-container",1),ls(2,UN,2,0,"ng-template",null,2,ec),Qs(4),ps(),fs(5,"mat-dialog-content"),fs(6,"div",3),fs(7,"mat-form-field"),fs(8,"mat-label"),fs(9,"uds-translate"),Qs(10,"Calendar"),ps(),ps(),fs(11,"mat-select",4),ks("ngModelChange",function(t){return e.scheduledAction.calendarId=t}),ls(12,WN,1,0,"uds-mat-select-search",5),ls(13,YN,2,2,"mat-option",6),ps(),ps(),fs(14,"mat-form-field"),fs(15,"mat-label"),fs(16,"uds-translate"),Qs(17,"Events offset (minutes)"),ps(),ps(),fs(18,"input",7),ks("ngModelChange",function(t){return e.scheduledAction.eventsOffset=t}),ps(),ps(),fs(19,"div",8),fs(20,"span",9),fs(21,"uds-translate"),Qs(22,"At the beginning of the interval?"),ps(),ps(),fs(23,"mat-slide-toggle",4),ks("ngModelChange",function(t){return e.scheduledAction.atStart=t}),Qs(24),ps(),ps(),fs(25,"mat-form-field"),fs(26,"mat-label"),fs(27,"uds-translate"),Qs(28,"Action"),ps(),ps(),fs(29,"mat-select",10),ks("ngModelChange",function(t){return e.scheduledAction.action=t})("valueChange",function(t){return e.changedAction(t)}),ls(30,qN,2,2,"mat-option",6),ps(),ps(),ls(31,KN,8,3,"ng-container",11),ls(32,tF,14,5,"ng-container",11),ls(33,eF,6,2,"ng-container",11),ls(34,nF,5,3,"ng-container",11),ps(),ps(),fs(35,"mat-dialog-actions"),fs(36,"button",12),fs(37,"uds-translate"),Qs(38,"Cancel"),ps(),ps(),fs(39,"button",13),ks("click",function(){return e.save()}),fs(40,"uds-translate"),Qs(41,"Ok"),ps(),ps(),ps()),2&t){var n=us(3);Po(1),hs("ngIf",void 0!==e.scheduledAction.id)("ngIfElse",n),Po(3),tl(" ",e.servicePool.name,"\n"),Po(7),hs("ngModel",e.scheduledAction.calendarId),Po(1),hs("ngIf",e.calendars.length>10),Po(1),hs("ngForOf",e.filtered(e.calendars,e.calendarsFilter)),Po(5),hs("ngModel",e.scheduledAction.eventsOffset),Po(5),hs("ngModel",e.scheduledAction.atStart),Po(1),tl(" ",e.api.yesno(e.scheduledAction.atStart)," "),Po(5),hs("ngModel",e.scheduledAction.action),Po(1),hs("ngForOf",e.actionList),Po(1),hs("ngIf","transport"===(null==e.parameter?null:e.parameter.type)),Po(1),hs("ngIf","group"===(null==e.parameter?null:e.parameter.type)),Po(1),hs("ngIf","bool"===(null==e.parameter?null:e.parameter.type)),Po(1),hs("ngIf",(null==e.parameter?null:e.parameter.type)&&!Cu(15,iF).includes(e.parameter.type))}},directives:[zC,Dh,VC,gT,aT,QC,FT,BS,gM,Oh,TP,yM,fS,wL,BC,ZC,FC,NP,yC],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}.label-atstart[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}"]}),t}(),oF=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Nu(!0),this.userService=i.userService,this.model=i.model}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,model:i},disableClose:!1})},t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-pools-userservices-log"]],decls:10,vars:4,consts:[["mat-dialog-title",""],[3,"rest","itemId","tableId"],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(t,e){1&t&&(fs(0,"h4",0),fs(1,"uds-translate"),Qs(2,"Logs of"),ps(),Qs(3),ps(),fs(4,"mat-dialog-content"),gs(5,"uds-logs-table",1),ps(),fs(6,"mat-dialog-actions"),fs(7,"button",2),fs(8,"uds-translate"),Qs(9,"Ok"),ps(),ps(),ps()),2&t&&(Po(3),tl(" ",e.userService.name,"\n"),Po(2),hs("rest",e.model)("itemId",e.userService.id)("tableId","servicePools-d-uslog"+e.userService.id))},directives:[zC,QC,VC,AR,BC,ZC,FC],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function aF(t,e){if(1&t){var n=_s();fs(0,"uds-mat-select-search",8),ks("changed",function(t){return en(n),Is().assignablesServicesFilter=t}),ps()}}function sF(t,e){if(1&t&&(fs(0,"mat-option",9),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.text," ")}}function lF(t,e){if(1&t&&(fs(0,"mat-option",9),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.name," ")}}function uF(t,e){if(1&t){var n=_s();fs(0,"uds-mat-select-search",8),ks("changed",function(t){return en(n),Is().userFilter=t}),ps()}}function cF(t,e){if(1&t&&(fs(0,"mat-option",9),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.name," ")}}var hF=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Nu(!0),this.auths=[],this.assignablesServices=[],this.assignablesServicesFilter="",this.users=[],this.userFilter="",this.servicePool=i.servicePool}return t.launch=function(e,n){var i=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.authId="",this.userId="",this.rest.authenticators.summary().subscribe(function(e){t.auths=e,t.authChanged()}),this.rest.servicesPools.listAssignables(this.servicePool.id).subscribe(function(e){t.assignablesServices=e})},t.prototype.changeAuth=function(t){this.userId="",this.authChanged()},t.prototype.filteredUsers=function(){var t=this;if(!this.userFilter)return this.users;var e=new Array;return this.users.forEach(function(n){n.name.toLocaleLowerCase().includes(t.userFilter.toLocaleLowerCase())&&e.push(n)}),e},t.prototype.filteredAssignables=function(){var t=this;if(!this.assignablesServicesFilter)return this.assignablesServices;var e=new Array;return this.assignablesServices.forEach(function(n){n.text.toLocaleLowerCase().includes(t.assignablesServicesFilter.toLocaleLowerCase())&&e.push(n)}),e},t.prototype.save=function(){var t=this;""!==this.userId&&""!==this.authId?this.rest.servicesPools.createFromAssignable(this.servicePool.id,this.userId,this.serviceId).subscribe(function(e){t.dialogRef.close(),t.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))},t.prototype.authChanged=function(){var t=this;this.authId&&this.rest.authenticators.detail(this.authId,"users").summary().subscribe(function(e){t.users=e})},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-assign-service-to-owner"]],decls:32,vars:8,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange","selectionChange"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(fs(0,"h4",0),fs(1,"uds-translate"),Qs(2,"Assign service to user manually"),ps(),ps(),fs(3,"mat-dialog-content"),fs(4,"div",1),fs(5,"mat-form-field"),fs(6,"mat-label"),fs(7,"uds-translate"),Qs(8,"Service"),ps(),ps(),fs(9,"mat-select",2),ks("ngModelChange",function(t){return e.serviceId=t}),ls(10,aF,1,0,"uds-mat-select-search",3),ls(11,sF,2,2,"mat-option",4),ps(),ps(),fs(12,"mat-form-field"),fs(13,"mat-label"),fs(14,"uds-translate"),Qs(15,"Authenticator"),ps(),ps(),fs(16,"mat-select",5),ks("ngModelChange",function(t){return e.authId=t})("selectionChange",function(t){return e.changeAuth(t)}),ls(17,lF,2,2,"mat-option",4),ps(),ps(),fs(18,"mat-form-field"),fs(19,"mat-label"),fs(20,"uds-translate"),Qs(21,"User"),ps(),ps(),fs(22,"mat-select",2),ks("ngModelChange",function(t){return e.userId=t}),ls(23,uF,1,0,"uds-mat-select-search",3),ls(24,cF,2,2,"mat-option",4),ps(),ps(),ps(),ps(),fs(25,"mat-dialog-actions"),fs(26,"button",6),fs(27,"uds-translate"),Qs(28,"Cancel"),ps(),ps(),fs(29,"button",7),ks("click",function(){return e.save()}),fs(30,"uds-translate"),Qs(31,"Ok"),ps(),ps(),ps()),2&t&&(Po(9),hs("ngModel",e.serviceId),Po(1),hs("ngIf",e.assignablesServices.length>10),Po(1),hs("ngForOf",e.filteredAssignables()),Po(5),hs("ngModel",e.authId),Po(1),hs("ngForOf",e.auths),Po(5),hs("ngModel",e.userId),Po(1),hs("ngIf",e.users.length>10),Po(1),hs("ngForOf",e.filteredUsers()))},directives:[zC,QC,VC,gT,aT,FT,BS,gM,Dh,Oh,BC,ZC,FC,NP,yC],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}(),dF=function(){function t(t){this.rest=t,this.chart=null}return t.prototype.onResize=function(t){this.chart&&this.chart.resize()},t.prototype.ngOnInit=function(){var t=this;this.rest.system.stats("complete",this.poolUuid).subscribe(function(e){t.options={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:e.assigned.map(function(t){return aO("SHORT_DATETIME_FORMAT",new Date(t.stamp))}),boundaryGap:!1},yAxis:{type:"value",boundaryGap:!1},series:[{name:django.gettext("Assigned"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:e.assigned.map(function(t){return t.value})},{name:django.gettext("Cached"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:e.cached.map(function(t){return t.value})},{name:django.gettext("In use"),type:"line",smooth:!0,data:e.inuse.map(function(t){return t.value})}]}})},t.prototype.chartInit=function(t){this.chart=t},t.\u0275fac=function(e){return new(e||t)(cs(XI))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-pools-charts"]],hostBindings:function(t,e){1&t&&ks("resize",function(t){return e.onResize(t)},!1,zr)},inputs:{poolUuid:"poolUuid"},decls:2,vars:1,consts:[[1,"statistics-chart"],["echarts","","theme","dark-digerati",3,"options","chartInit"]],template:function(t,e){1&t&&(fs(0,"div",0),fs(1,"div",1),ks("chartInit",function(t){return e.chartInit(t)}),ps(),ps()),2&t&&(Po(1),hs("options",e.options))},directives:[EO],styles:[""]}),t}();function fF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Summary"),ps())}function pF(t,e){if(1&t&&gs(0,"uds-information",21),2&t){var n=Is(2);hs("value",n.servicePool)("gui",n.gui)}}function gF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Assigned services"),ps())}function mF(t,e){if(1&t){var n=_s();fs(0,"uds-table",22),ks("customButtonAction",function(t){return en(n),Is(2).onCustomAssigned(t)})("deleteAction",function(t){return en(n),Is(2).onDeleteAssigned(t)}),ps()}if(2&t){var i=Is(2);hs("rest",i.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",i.processsAssignedElement)("tableId","servicePools-d-services"+i.servicePool.id)("customButtons",i.customButtonsAssignedServices)("pageSize",i.api.config.admin.page_size)}}function vF(t,e){if(1&t){var n=_s();fs(0,"uds-table",23),ks("customButtonAction",function(t){return en(n),Is(2).onCustomAssigned(t)})("newAction",function(t){return en(n),Is(2).onNewAssigned(t)})("deleteAction",function(t){return en(n),Is(2).onDeleteAssigned(t)}),ps()}if(2&t){var i=Is(2);hs("rest",i.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",i.processsAssignedElement)("tableId","servicePools-d-services"+i.servicePool.id)("customButtons",i.customButtonsAssignedServices)("pageSize",i.api.config.admin.page_size)}}function yF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Cache"),ps())}function _F(t,e){if(1&t){var n=_s();fs(0,"mat-tab"),ls(1,yF,2,0,"ng-template",9),fs(2,"div",10),fs(3,"uds-table",24),ks("customButtonAction",function(t){return en(n),Is(2).onCustomCached(t)})("deleteAction",function(t){return en(n),Is(2).onDeleteCache(t)}),ps(),ps(),ps()}if(2&t){var i=Is(2);Po(3),hs("rest",i.cache)("multiSelect",!0)("allowExport",!0)("onItem",i.processsCacheElement)("tableId","servicePools-d-cache"+i.servicePool.id)("customButtons",i.customButtonsCachedServices)("pageSize",i.api.config.admin.page_size)}}function bF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Groups"),ps())}function xF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Transports"),ps())}function wF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Publications"),ps())}function kF(t,e){if(1&t){var n=_s();fs(0,"mat-tab"),ls(1,wF,2,0,"ng-template",9),fs(2,"div",10),fs(3,"uds-table",25),ks("customButtonAction",function(t){return en(n),Is(2).onCustomPublication(t)})("newAction",function(t){return en(n),Is(2).onNewPublication(t)})("rowSelected",function(t){return en(n),Is(2).onPublicationRowSelect(t)}),ps(),ps(),ps()}if(2&t){var i=Is(2);Po(3),hs("rest",i.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+i.servicePool.id)("customButtons",i.customButtonsPublication)("pageSize",i.api.config.admin.page_size)}}function CF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Scheduled actions"),ps())}function SF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Access calendars"),ps())}function MF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Charts"),ps())}function AF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Logs"),ps())}function IF(t,e){if(1&t){var n=_s();fs(0,"div",6),fs(1,"div",7),fs(2,"mat-tab-group",8),ks("selectedIndexChange",function(t){return en(n),Is().selectedTab=t}),fs(3,"mat-tab"),ls(4,fF,2,0,"ng-template",9),fs(5,"div",10),ls(6,pF,1,2,"uds-information",11),ps(),ps(),fs(7,"mat-tab"),ls(8,gF,2,0,"ng-template",9),fs(9,"div",10),ls(10,mF,1,7,"uds-table",12),ls(11,vF,1,7,"ng-template",null,13,ec),ps(),ps(),ls(13,_F,4,7,"mat-tab",14),fs(14,"mat-tab"),ls(15,bF,2,0,"ng-template",9),fs(16,"div",10),fs(17,"uds-table",15),ks("newAction",function(t){return en(n),Is().onNewGroup(t)})("deleteAction",function(t){return en(n),Is().onDeleteGroup(t)}),ps(),ps(),ps(),fs(18,"mat-tab"),ls(19,xF,2,0,"ng-template",9),fs(20,"div",10),fs(21,"uds-table",16),ks("newAction",function(t){return en(n),Is().onNewTransport(t)})("deleteAction",function(t){return en(n),Is().onDeleteTransport(t)}),ps(),ps(),ps(),ls(22,kF,4,6,"mat-tab",14),fs(23,"mat-tab"),ls(24,CF,2,0,"ng-template",9),fs(25,"div",10),fs(26,"uds-table",17),ks("customButtonAction",function(t){return en(n),Is().onCustomScheduleAction(t)})("newAction",function(t){return en(n),Is().onNewScheduledAction(t)})("editAction",function(t){return en(n),Is().onEditScheduledAction(t)})("deleteAction",function(t){return en(n),Is().onDeleteScheduledAction(t)}),ps(),ps(),ps(),fs(27,"mat-tab"),ls(28,SF,2,0,"ng-template",9),fs(29,"div",10),fs(30,"uds-table",18),ks("newAction",function(t){return en(n),Is().onNewAccessCalendar(t)})("editAction",function(t){return en(n),Is().onEditAccessCalendar(t)})("deleteAction",function(t){return en(n),Is().onDeleteAccessCalendar(t)})("loaded",function(t){return en(n),Is().onAccessCalendarLoad(t)}),ps(),ps(),ps(),fs(31,"mat-tab"),ls(32,MF,2,0,"ng-template",9),fs(33,"div",10),gs(34,"uds-service-pools-charts",19),ps(),ps(),fs(35,"mat-tab"),ls(36,AF,2,0,"ng-template",9),fs(37,"div",10),gs(38,"uds-logs-table",20),ps(),ps(),ps(),ps(),ps()}if(2&t){var i=us(12),r=Is();Po(2),hs("selectedIndex",r.selectedTab)("@.disabled",!0),Po(4),hs("ngIf",r.servicePool&&r.gui),Po(4),hs("ngIf",!1===r.servicePool.info.must_assign_manually)("ngIfElse",i),Po(3),hs("ngIf",r.cache),Po(4),hs("rest",r.groups)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonsGroups)("tableId","servicePools-d-groups"+r.servicePool.id)("pageSize",r.api.config.admin.page_size),Po(4),hs("rest",r.transports)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonsTransports)("tableId","servicePools-d-transports"+r.servicePool.id)("pageSize",r.api.config.admin.page_size),Po(1),hs("ngIf",r.publications),Po(4),hs("rest",r.scheduledActions)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-actions"+r.servicePool.id)("customButtons",r.customButtonsScheduledAction)("onItem",r.processsCalendarOrScheduledElement)("pageSize",r.api.config.admin.page_size),Po(4),hs("rest",r.accessCalendars)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonAccessCalendars)("tableId","servicePools-d-access"+r.servicePool.id)("onItem",r.processsCalendarOrScheduledElement)("pageSize",r.api.config.admin.page_size),Po(4),hs("poolUuid",r.servicePool.id),Po(4),hs("rest",r.rest.servicesPools)("itemId",r.servicePool.id)("tableId","servicePools-d-log"+r.servicePool.id)("pageSize",r.api.config.admin.page_size)}}var OF=function(t){return["/pools","service-pools",t]},TF='event'+django.gettext("Logs")+"",DF='computer'+django.gettext("VNC")+"",PF='schedule'+django.gettext("Launch now")+"",EF='perm_identity'+django.gettext("Change owner")+"",RF='perm_identity'+django.gettext("Assign service")+"",LF='cancel'+django.gettext("Cancel")+"",NF='event'+django.gettext("Changelog")+"",FF=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtonsScheduledAction=[{id:"launch-action",html:PF,type:YA.SINGLE_SELECT},iI.getGotoButton(tI,"calendarId")],this.customButtonAccessCalendars=[iI.getGotoButton(tI,"calendarId")],this.customButtonsAssignedServices=[{id:"change-owner",html:EF,type:YA.SINGLE_SELECT},{id:"log",html:TF,type:YA.SINGLE_SELECT},{id:"vnc",html:DF,type:YA.ONLY_MENU},iI.getGotoButton(KA,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:TF,type:YA.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:LF,type:YA.SINGLE_SELECT},{id:"changelog",html:NF,type:YA.ALWAYS}],this.customButtonsGroups=[iI.getGotoButton($A,"auth_id","id")],this.customButtonsTransports=[iI.getGotoButton(QA,"id")],this.servicePool=null,this.gui=null,this.selectedTab=1}return t.cleanInvalidSelections=function(t){return t.table.selection.selected.filter(function(t){return["E","R","M","S","C"].includes(t.state)}).forEach(function(e){return t.table.selection.deselect(e)}),t.table.selection.isEmpty()},t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("pool");this.assignedServices=this.rest.servicesPools.detail(e,"services"),this.groups=this.rest.servicesPools.detail(e,"groups"),this.transports=this.rest.servicesPools.detail(e,"transports"),this.scheduledActions=this.rest.servicesPools.detail(e,"actions"),this.accessCalendars=this.rest.servicesPools.detail(e,"access"),this.rest.servicesPools.get(e).subscribe(function(n){t.servicePool=n,t.cache=t.servicePool.info.uses_cache?t.rest.servicesPools.detail(e,"cache"):null,t.publications=t.servicePool.info.needs_publication?t.rest.servicesPools.detail(e,"publications"):null,t.servicePool.info.can_list_assignables&&t.customButtonsAssignedServices.push({id:"assign-service",html:RF,type:YA.ALWAYS}),t.rest.servicesPools.gui().subscribe(function(e){t.gui=e.filter(function(e){return!(!1===t.servicePool.info.uses_cache&&["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"].includes(e.name)||!1===t.servicePool.info.uses_cache_l2&&"cache_l2_srvs"===e.name||!1===t.servicePool.info.needs_manager&&"osmanager_id"===e.name)})})})},t.prototype.onNewAssigned=function(t){},t.prototype.vnc=function(t){var e=new Blob(["[connection]\nhost="+t.ip+"\nport=5900\n"],{type:"application/extension-vnc"});setTimeout(function(){(0,XP.saveAs)(e,t.ip+".vnc")},100)},t.prototype.onCustomAssigned=function(t){var e=t.table.selection.selected[0];if("change-owner"===t.param.id){if(["E","R","M","S","C"].includes(e.state))return;CN.launch(this.api,e,this.assignedServices).subscribe(function(e){return t.table.overview()})}else"log"===t.param.id?oF.launch(this.api,e,this.assignedServices):"assign-service"===t.param.id?hF.launch(this.api,this.servicePool).subscribe(function(e){return t.table.overview()}):"vnc"===t.param.id&&this.vnc(e)},t.prototype.onCustomCached=function(t){"log"===t.param.id&&oF.launch(this.api,t.table.selection.selected[0],this.cache)},t.prototype.processsAssignedElement=function(t){t.in_use=this.api.yesno(t.in_use),t.origState=t.state,"U"===t.state&&(t.state=""!==t.os_state&&"U"!==t.os_state?"Z":"U")},t.prototype.onDeleteAssigned=function(e){t.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned service"))},t.prototype.onDeleteCache=function(e){t.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete cached service"))},t.prototype.processsCacheElement=function(t){t.origState=t.state,"U"===t.state&&(t.state=""!==t.os_state&&"U"!==t.os_state?"Z":"U")},t.prototype.onNewGroup=function(t){NN.launch(this.api,this.servicePool,this.groups).subscribe(function(e){return t.table.overview()})},t.prototype.onDeleteGroup=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned group"))},t.prototype.onNewTransport=function(t){BN.launch(this.api,this.servicePool).subscribe(function(e){return t.table.overview()})},t.prototype.onDeleteTransport=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned transport"))},t.prototype.onNewPublication=function(t){HN.launch(this.api,this.servicePool).subscribe(function(e){t.table.overview()})},t.prototype.onPublicationRowSelect=function(t){1===t.table.selection.selected.length&&(this.customButtonsPublication[0].disabled=!["P","W","L","K"].includes(t.table.selection.selected[0].state))},t.prototype.onCustomPublication=function(t){var e=this;"cancel-publication"===t.param.id?this.api.gui.yesno(django.gettext("Publication"),django.gettext("Cancel publication?"),!0).subscribe(function(n){n&&e.publications.invoke(t.table.selection.selected[0].id+"/cancel").subscribe(function(n){e.api.gui.snackbar.open(django.gettext("Publication canceled"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()})}):"changelog"===t.param.id&&jN.launch(this.api,this.servicePool)},t.prototype.onNewScheduledAction=function(t){rF.launch(this.api,this.servicePool).subscribe(function(e){return t.table.overview()})},t.prototype.onEditScheduledAction=function(t){rF.launch(this.api,this.servicePool,t.table.selection.selected[0]).subscribe(function(e){return t.table.overview()})},t.prototype.onDeleteScheduledAction=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete scheduled action"))},t.prototype.onCustomScheduleAction=function(t){var e=this;this.api.gui.yesno(django.gettext("Execute scheduled action"),django.gettext("Execute scheduled action right now?")).subscribe(function(n){n&&e.scheduledActions.invoke(t.table.selection.selected[0].id+"/execute").subscribe(function(){e.api.gui.snackbar.open(django.gettext("Scheduled action executed"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()})})},t.prototype.onNewAccessCalendar=function(t){DN.launch(this.api,this.servicePool,this.accessCalendars).subscribe(function(e){return t.table.overview()})},t.prototype.onEditAccessCalendar=function(t){DN.launch(this.api,this.servicePool,this.accessCalendars,t.table.selection.selected[0]).subscribe(function(e){return t.table.overview()})},t.prototype.onDeleteAccessCalendar=function(t){-1!==t.table.selection.selected[0].id?this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(t)},t.prototype.onAccessCalendarLoad=function(t){var e=this;this.rest.servicesPools.getFallbackAccess(this.servicePool.id).subscribe(function(n){var i=t.table.dataSource.data.filter(function(t){return!0});i.push({id:-1,calendar:"-",priority:e.api.safeString('10000000FallBack'),access:n}),t.table.dataSource.data=i})},t.prototype.processsCalendarOrScheduledElement=function(t){t.name=t.calendar,t.atStart=this.api.yesno(t.atStart)},t.\u0275fac=function(e){return new(e||t)(cs(mg),cs(XI),cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-service-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction",4,"ngIf","ngIfElse"],["manually_assigned",""],[4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","newAction","deleteAction"],["icon","transports",3,"rest","multiSelect","allowExport","customButtons","tableId","pageSize","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","customButtons","onItem","pageSize","customButtonAction","newAction","editAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","customButtons","tableId","onItem","pageSize","newAction","editAction","deleteAction","loaded"],[3,"poolUuid"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","newAction","deleteAction"],["icon","cached",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","publications",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","customButtonAction","newAction","rowSelected"]],template:function(t,e){1&t&&(fs(0,"div",0),fs(1,"div",1),fs(2,"a",2),fs(3,"i",3),Qs(4,"arrow_back"),ps(),ps(),Qs(5," \xa0"),gs(6,"img",4),Qs(7),ps(),ls(8,IF,39,38,"div",5),ps()),2&t&&(Po(2),hs("routerLink",Su(4,OF,e.servicePool?e.servicePool.id:"")),Po(4),hs("src",e.api.staticURL("admin/img/icons/pools.png"),Or),Po(1),tl(" \xa0",null==e.servicePool?null:e.servicePool.name," "),Po(1),hs("ngIf",null!==e.servicePool))},directives:[qm,Dh,hA,eA,QM,pR,dF,AR,QC,ER],styles:[".mat-column-state{max-width:10rem;justify-content:center} .mat-column-cache_level, .mat-column-in_use, .mat-column-priority, .mat-column-revision{max-width:7rem;justify-content:center} .mat-column-access, .mat-column-creation_date, .mat-column-publish_date, .mat-column-state_date, .mat-column-trans_type{max-width:9rem} .mat-column-owner{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-all;word-break:break-word} .row-state-S>.mat-cell{color:gray!important} .row-state-C>.mat-cell{color:gray!important} .row-state-E>.mat-cell{color:red!important} .row-state-R>.mat-cell{color:orange!important}"]}),t}(),zF=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New meta pool"))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit meta pool"))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete meta pool"))},t.prototype.onDetail=function(t){this.api.navigation.gotoMetapoolDetail(t.param.id)},t.prototype.processElement=function(t){t.visible=this.api.yesno(t.visible),t.name=this.api.safeString(this.api.gui.icon(t.thumb)+t.name),t.pool_group_name=this.api.safeString(this.api.gui.icon(t.pool_group_thumb)+t.pool_group_name)},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("metapool"))},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(mg),cs(XI))},t.\u0275cmp=ce({type:t,selectors:[["uds-meta-pools"]],decls:2,vars:6,consts:[["icon","metas",3,"rest","multiSelect","allowExport","onItem","hasPermissions","pageSize","detailAction","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(fs(0,"div"),fs(1,"uds-table",0),ks("detailAction",function(t){return e.onDetail(t)})("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("loaded",function(t){return e.onLoad(t)}),ps(),ps()),2&t&&(Po(1),hs("rest",e.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("hasPermissions",!0)("pageSize",e.api.config.admin.page_size))},directives:[pR],styles:[".mat-column-pool_group_name, .mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible{max-width:7rem;justify-content:center}"]}),t}();function VF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"New member pool"),ps())}function BF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Edit member pool"),ps())}function HF(t,e){if(1&t){var n=_s();fs(0,"uds-mat-select-search",11),ks("changed",function(t){return en(n),Is().servicePoolsFilter=t}),ps()}}function jF(t,e){if(1&t&&(fs(0,"mat-option",12),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.name," ")}}var GF=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Nu(!0),this.servicePools=[],this.servicePoolsFilter="",this.model=i.model,this.memberPool={id:void 0,priority:0,pool_id:"",enabled:!0},i.memberPool&&(this.memberPool.id=i.memberPool.id)}return t.launch=function(e,n,i){var r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{memberPool:i,model:n},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.servicesPools.summary().subscribe(function(e){return t.servicePools=e}),this.memberPool.id&&this.model.get(this.memberPool.id).subscribe(function(e){return t.memberPool=e})},t.prototype.filtered=function(t,e){return e?t.filter(function(t){return t.name.toLocaleLowerCase().includes(e.toLocaleLowerCase())}):t},t.prototype.save=function(){var t=this;this.memberPool.pool_id?this.model.save(this.memberPool).subscribe(function(){t.dialogRef.close(),t.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid service pool"))},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-meta-pools-service-pools"]],decls:30,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[1,"mat-form-field-infix"],[1,"label-enabled"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(fs(0,"h4",0),ls(1,VF,2,0,"uds-translate",1),ls(2,BF,2,0,"uds-translate",1),ps(),fs(3,"mat-dialog-content"),fs(4,"div",2),fs(5,"mat-form-field"),fs(6,"mat-label"),fs(7,"uds-translate"),Qs(8,"Priority"),ps(),ps(),fs(9,"input",3),ks("ngModelChange",function(t){return e.memberPool.priority=t}),ps(),ps(),fs(10,"mat-form-field"),fs(11,"mat-label"),fs(12,"uds-translate"),Qs(13,"Service pool"),ps(),ps(),fs(14,"mat-select",4),ks("ngModelChange",function(t){return e.memberPool.pool_id=t}),ls(15,HF,1,0,"uds-mat-select-search",5),ls(16,jF,2,2,"mat-option",6),ps(),ps(),fs(17,"div",7),fs(18,"span",8),fs(19,"uds-translate"),Qs(20,"Enabled?"),ps(),ps(),fs(21,"mat-slide-toggle",4),ks("ngModelChange",function(t){return e.memberPool.enabled=t}),Qs(22),ps(),ps(),ps(),ps(),fs(23,"mat-dialog-actions"),fs(24,"button",9),fs(25,"uds-translate"),Qs(26,"Cancel"),ps(),ps(),fs(27,"button",10),ks("click",function(){return e.save()}),fs(28,"uds-translate"),Qs(29,"Ok"),ps(),ps(),ps()),2&t&&(Po(1),hs("ngIf",!(null!=e.memberPool&&e.memberPool.id)),Po(1),hs("ngIf",null==e.memberPool?null:e.memberPool.id),Po(7),hs("ngModel",e.memberPool.priority),Po(5),hs("ngModel",e.memberPool.pool_id),Po(1),hs("ngIf",e.servicePools.length>10),Po(1),hs("ngForOf",e.filtered(e.servicePools,e.servicePoolsFilter)),Po(5),hs("ngModel",e.memberPool.enabled),Po(1),tl(" ",e.api.yesno(e.memberPool.enabled)," "))},directives:[zC,Dh,VC,gT,aT,QC,TP,yM,fS,BS,gM,FT,Oh,wL,BC,ZC,FC,NP,yC],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}.label-enabled[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}"]}),t}();function UF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Summary"),ps())}function WF(t,e){if(1&t&&gs(0,"uds-information",17),2&t){var n=Is(2);hs("value",n.metaPool)("gui",n.gui)}}function YF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Service pools"),ps())}function qF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Assigned services"),ps())}function XF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Groups"),ps())}function ZF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Access calendars"),ps())}function KF(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Logs"),ps())}function $F(t,e){if(1&t){var n=_s();fs(0,"div",6),fs(1,"div",7),fs(2,"mat-tab-group",8),ks("selectedIndexChange",function(t){return en(n),Is().selectedTab=t}),fs(3,"mat-tab"),ls(4,UF,2,0,"ng-template",9),fs(5,"div",10),ls(6,WF,1,2,"uds-information",11),ps(),ps(),fs(7,"mat-tab"),ls(8,YF,2,0,"ng-template",9),fs(9,"div",10),fs(10,"uds-table",12),ks("newAction",function(t){return en(n),Is().onNewMemberPool(t)})("editAction",function(t){return en(n),Is().onEditMemberPool(t)})("deleteAction",function(t){return en(n),Is().onDeleteMemberPool(t)}),ps(),ps(),ps(),fs(11,"mat-tab"),ls(12,qF,2,0,"ng-template",9),fs(13,"div",10),fs(14,"uds-table",13),ks("customButtonAction",function(t){return en(n),Is().onCustomAssigned(t)})("deleteAction",function(t){return en(n),Is().onDeleteAssigned(t)}),ps(),ps(),ps(),fs(15,"mat-tab"),ls(16,XF,2,0,"ng-template",9),fs(17,"div",10),fs(18,"uds-table",14),ks("newAction",function(t){return en(n),Is().onNewGroup(t)})("deleteAction",function(t){return en(n),Is().onDeleteGroup(t)}),ps(),ps(),ps(),fs(19,"mat-tab"),ls(20,ZF,2,0,"ng-template",9),fs(21,"div",10),fs(22,"uds-table",15),ks("newAction",function(t){return en(n),Is().onNewAccessCalendar(t)})("editAction",function(t){return en(n),Is().onEditAccessCalendar(t)})("deleteAction",function(t){return en(n),Is().onDeleteAccessCalendar(t)})("loaded",function(t){return en(n),Is().onAccessCalendarLoad(t)}),ps(),ps(),ps(),fs(23,"mat-tab"),ls(24,KF,2,0,"ng-template",9),fs(25,"div",10),gs(26,"uds-logs-table",16),ps(),ps(),ps(),ps(),ps()}if(2&t){var i=Is();Po(2),hs("selectedIndex",i.selectedTab)("@.disabled",!0),Po(4),hs("ngIf",i.metaPool&&i.gui),Po(4),hs("rest",i.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",i.processElement)("customButtons",i.customButtons)("tableId","metaPools-d-members"+i.metaPool.id)("pageSize",i.api.config.admin.page_size),Po(4),hs("rest",i.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+i.metaPool.id)("customButtons",i.customButtonsAssignedServices)("pageSize",i.api.config.admin.page_size),Po(4),hs("rest",i.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+i.metaPool.id)("pageSize",i.api.config.admin.page_size),Po(4),hs("rest",i.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+i.metaPool.id)("pageSize",i.api.config.admin.page_size)("onItem",i.processsCalendarItem),Po(4),hs("rest",i.rest.metaPools)("itemId",i.metaPool.id)("tableId","metaPools-d-log"+i.metaPool.id)("pageSize",i.api.config.admin.page_size)}}var QF=function(t){return["/pools","meta-pools",t]},JF=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[iI.getGotoButton(ZA,"pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:EF,type:YA.SINGLE_SELECT},{id:"log",html:TF,type:YA.SINGLE_SELECT},iI.getGotoButton(KA,"owner_info.auth_id","owner_info.user_id")],this.metaPool=null,this.gui=null,this.selectedTab=1}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("metapool");this.rest.metaPools.get(e).subscribe(function(n){t.metaPool=n,t.rest.metaPools.gui().subscribe(function(e){t.gui=e}),t.memberPools=t.rest.metaPools.detail(e,"pools"),t.memberUserServices=t.rest.metaPools.detail(e,"services"),t.groups=t.rest.metaPools.detail(e,"groups"),t.accessCalendars=t.rest.metaPools.detail(e,"access")})},t.prototype.onNewMemberPool=function(t){GF.launch(this.api,this.memberPools).subscribe(function(){return t.table.overview()})},t.prototype.onEditMemberPool=function(t){GF.launch(this.api,this.memberPools,t.table.selection.selected[0]).subscribe(function(){return t.table.overview()})},t.prototype.onDeleteMemberPool=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Remove member pool"))},t.prototype.onCustomAssigned=function(t){var e=t.table.selection.selected[0];if("change-owner"===t.param.id){if(["E","R","M","S","C"].includes(e.state))return;CN.launch(this.api,e,this.memberUserServices).subscribe(function(e){return t.table.overview()})}else"log"===t.param.id&&oF.launch(this.api,e,this.memberUserServices)},t.prototype.onDeleteAssigned=function(t){FF.cleanInvalidSelections(t)||this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned service"))},t.prototype.onNewGroup=function(t){NN.launch(this.api,this.metaPool.id,this.groups).subscribe(function(e){return t.table.overview()})},t.prototype.onDeleteGroup=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned group"))},t.prototype.onNewAccessCalendar=function(t){DN.launch(this.api,this.metaPool,this.accessCalendars).subscribe(function(e){return t.table.overview()})},t.prototype.onEditAccessCalendar=function(t){DN.launch(this.api,this.metaPool,this.accessCalendars,t.table.selection.selected[0]).subscribe(function(e){return t.table.overview()})},t.prototype.onDeleteAccessCalendar=function(t){console.log("ID",t.table.selection.selected[0].id),-1!==t.table.selection.selected[0].id?this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(t)},t.prototype.onAccessCalendarLoad=function(t){var e=this;this.rest.metaPools.getFallbackAccess(this.metaPool.id).subscribe(function(n){var i=t.table.dataSource.data.filter(function(t){return!0});i.push({id:-1,calendar:"-",priority:e.api.safeString('10000000FallBack'),access:n}),t.table.dataSource.data=i})},t.prototype.processElement=function(t){t.enabled=this.api.yesno(t.enabled)},t.prototype.processsCalendarItem=function(t){t.name=t.calendar,t.atStart=this.api.yesno(t.atStart)},t.\u0275fac=function(e){return new(e||t)(cs(mg),cs(XI),cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-meta-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","customButtons","tableId","pageSize","newAction","editAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","tableId","customButtons","pageSize","customButtonAction","deleteAction"],["icon","groups",3,"rest","multiSelect","allowExport","tableId","pageSize","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","pageSize","onItem","newAction","editAction","deleteAction","loaded"],[3,"rest","itemId","tableId","pageSize"],[3,"value","gui"]],template:function(t,e){1&t&&(fs(0,"div",0),fs(1,"div",1),fs(2,"a",2),fs(3,"i",3),Qs(4,"arrow_back"),ps(),ps(),Qs(5," \xa0"),gs(6,"img",4),Qs(7),ps(),ls(8,$F,27,31,"div",5),ps()),2&t&&(Po(2),hs("routerLink",Su(4,QF,e.metaPool?e.metaPool.id:"")),Po(4),hs("src",e.api.staticURL("admin/img/icons/metas.png"),Or),Po(1),tl(" ",null==e.metaPool?null:e.metaPool.name," "),Po(1),hs("ngIf",e.metaPool))},directives:[qm,Dh,hA,eA,QM,pR,AR,QC,ER],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]}),t}(),tz=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New pool group"),!1).subscribe(function(e){return t.table.overview()})},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit pool group"),!1).subscribe(function(e){return t.table.overview()})},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete pool group"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("poolgroup"))},t.\u0275fac=function(e){return new(e||t)(cs(mg),cs(XI),cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-pool-groups"]],decls:1,vars:5,consts:[["icon","spool-group",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(fs(0,"uds-table",0),ks("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("loaded",function(t){return e.onLoad(t)}),ps()),2&t&&hs("rest",e.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",e.api.config.admin.page_size)},directives:[pR],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]}),t}(),ez=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New calendar"))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit calendar"))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar"))},t.prototype.onDetail=function(t){this.api.navigation.gotoCalendarDetail(t.param.id)},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("calendar"))},t.\u0275fac=function(e){return new(e||t)(cs(mg),cs(XI),cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-calendars"]],decls:1,vars:5,consts:[["icon","calendars",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(fs(0,"uds-table",0),ks("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("detailAction",function(t){return e.onDetail(t)})("loaded",function(t){return e.onLoad(t)}),ps()),2&t&&hs("rest",e.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",e.api.config.admin.page_size)},directives:[pR],styles:[""]}),t}(),nz=["mat-calendar-body",""];function iz(t,e){if(1&t&&(fs(0,"tr",2),fs(1,"td",3),Qs(2),ps(),ps()),2&t){var n=Is();Po(1),Bs("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),as("colspan",n.numCols),Po(1),tl(" ",n.label," ")}}function rz(t,e){if(1&t&&(fs(0,"td",7),Qs(1),ps()),2&t){var n=Is(2);Bs("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),as("colspan",n._firstRowOffset),Po(1),tl(" ",n._firstRowOffset>=n.labelMinRequiredCells?n.label:""," ")}}function oz(t,e){if(1&t){var n=_s();fs(0,"td",8),ks("click",function(t){var e=en(n).$implicit;return Is(2)._cellClicked(e,t)}),fs(1,"div",9),Qs(2),ps(),gs(3,"div",10),ps()}if(2&t){var i=e.$implicit,r=e.index,o=Is().index,a=Is();Bs("width",a._cellWidth)("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),Hs("mat-calendar-body-disabled",!i.enabled)("mat-calendar-body-active",a._isActiveCell(o,r))("mat-calendar-body-range-start",a._isRangeStart(i.compareValue))("mat-calendar-body-range-end",a._isRangeEnd(i.compareValue))("mat-calendar-body-in-range",a._isInRange(i.compareValue))("mat-calendar-body-comparison-bridge-start",a._isComparisonBridgeStart(i.compareValue,o,r))("mat-calendar-body-comparison-bridge-end",a._isComparisonBridgeEnd(i.compareValue,o,r))("mat-calendar-body-comparison-start",a._isComparisonStart(i.compareValue))("mat-calendar-body-comparison-end",a._isComparisonEnd(i.compareValue))("mat-calendar-body-in-comparison-range",a._isInComparisonRange(i.compareValue))("mat-calendar-body-preview-start",a._isPreviewStart(i.compareValue))("mat-calendar-body-preview-end",a._isPreviewEnd(i.compareValue))("mat-calendar-body-in-preview",a._isInPreview(i.compareValue)),hs("ngClass",i.cssClasses)("tabindex",a._isActiveCell(o,r)?0:-1),as("data-mat-row",o)("data-mat-col",r)("aria-label",i.ariaLabel)("aria-disabled",!i.enabled||null)("aria-selected",a._isSelected(i.compareValue)),Po(1),Hs("mat-calendar-body-selected",a._isSelected(i.compareValue))("mat-calendar-body-comparison-identical",a._isComparisonIdentical(i.compareValue))("mat-calendar-body-today",a.todayValue===i.compareValue),Po(1),tl(" ",i.displayValue," ")}}function az(t,e){if(1&t&&(fs(0,"tr",4),ls(1,rz,2,6,"td",5),ls(2,oz,4,46,"td",6),ps()),2&t){var n=e.$implicit,i=e.index,r=Is();Po(1),hs("ngIf",0===i&&r._firstRowOffset),Po(1),hs("ngForOf",n)}}function sz(t,e){if(1&t&&(fs(0,"th",5),fs(1,"abbr",6),Qs(2),ps(),ps()),2&t){var n=e.$implicit;as("aria-label",n.long),Po(1),as("title",n.long),Po(1),Js(n.narrow)}}var lz=["*"];function uz(t,e){}function cz(t,e){if(1&t){var n=_s();fs(0,"mat-month-view",5),ks("activeDateChange",function(t){return en(n),Is().activeDate=t})("_userSelection",function(t){return en(n),Is()._dateSelected(t)}),ps()}if(2&t){var i=Is();hs("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)("dateClass",i.dateClass)("comparisonStart",i.comparisonStart)("comparisonEnd",i.comparisonEnd)}}function hz(t,e){if(1&t){var n=_s();fs(0,"mat-year-view",6),ks("activeDateChange",function(t){return en(n),Is().activeDate=t})("monthSelected",function(t){return en(n),Is()._monthSelectedInYearView(t)})("selectedChange",function(t){return en(n),Is()._goToDateInView(t,"month")}),ps()}if(2&t){var i=Is();hs("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)("dateClass",i.dateClass)}}function dz(t,e){if(1&t){var n=_s();fs(0,"mat-multi-year-view",7),ks("activeDateChange",function(t){return en(n),Is().activeDate=t})("yearSelected",function(t){return en(n),Is()._yearSelectedInMultiYearView(t)})("selectedChange",function(t){return en(n),Is()._goToDateInView(t,"year")}),ps()}if(2&t){var i=Is();hs("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)("dateClass",i.dateClass)}}function fz(t,e){}var pz=["button"];function gz(t,e){1&t&&(Tn(),fs(0,"svg",3),gs(1,"path",4),ps())}var mz=[[["","matDatepickerToggleIcon",""]]],vz=["[matDatepickerToggleIcon]"],yz=function(){var t=function(){function t(){s(this,t),this.changes=new U,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.closeCalendarLabel="Close calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 24 years",this.nextMultiYearLabel="Next 24 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}return a(t,[{key:"formatYearRange",value:function(t,e){return"".concat(t," \u2013 ").concat(e)}}]),t}();return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=Pt({factory:function(){return new t},token:t,providedIn:"root"}),t}(),_z=function t(e,n,i,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,l=arguments.length>6?arguments[6]:void 0;s(this,t),this.value=e,this.displayValue=n,this.ariaLabel=i,this.enabled=r,this.cssClasses=o,this.compareValue=a,this.rawValue=l},bz=function(){var t=function(){function t(e,n){var i=this;s(this,t),this._elementRef=e,this._ngZone=n,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new Nu,this.previewChange=new Nu,this._enterHandler=function(t){if(i._skipNextFocus&&"focus"===t.type)i._skipNextFocus=!1;else if(t.target&&i.isRange){var e=i._getCellFromElement(t.target);e&&i._ngZone.run(function(){return i.previewChange.emit({value:e.enabled?e:null,event:t})})}},this._leaveHandler=function(t){null!==i.previewEnd&&i.isRange&&t.target&&xz(t.target)&&i._ngZone.run(function(){return i.previewChange.emit({value:null,event:t})})},n.runOutsideAngular(function(){var t=e.nativeElement;t.addEventListener("mouseenter",i._enterHandler,!0),t.addEventListener("focus",i._enterHandler,!0),t.addEventListener("mouseleave",i._leaveHandler,!0),t.addEventListener("blur",i._leaveHandler,!0)})}return a(t,[{key:"_cellClicked",value:function(t,e){t.enabled&&this.selectedValueChange.emit({value:t.value,event:e})}},{key:"_isSelected",value:function(t){return this.startValue===t||this.endValue===t}},{key:"ngOnChanges",value:function(t){var e=t.numCols,n=this.rows,i=this.numCols;(t.rows||e)&&(this._firstRowOffset=n&&n.length&&n[0].length?i-n[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding="".concat(50*this.cellAspectRatio/i,"%")),!e&&this._cellWidth||(this._cellWidth="".concat(100/i,"%"))}},{key:"ngOnDestroy",value:function(){var t=this._elementRef.nativeElement;t.removeEventListener("mouseenter",this._enterHandler,!0),t.removeEventListener("focus",this._enterHandler,!0),t.removeEventListener("mouseleave",this._leaveHandler,!0),t.removeEventListener("blur",this._leaveHandler,!0)}},{key:"_isActiveCell",value:function(t,e){var n=t*this.numCols+e;return t&&(n-=this._firstRowOffset),n==this.activeCell}},{key:"_focusActiveCell",value:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.pipe(Nf(1)).subscribe(function(){var n=t._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(e||(t._skipNextFocus=!0),n.focus())})})}},{key:"_isRangeStart",value:function(t){return wz(t,this.startValue,this.endValue)}},{key:"_isRangeEnd",value:function(t){return kz(t,this.startValue,this.endValue)}},{key:"_isInRange",value:function(t){return Cz(t,this.startValue,this.endValue,this.isRange)}},{key:"_isComparisonStart",value:function(t){return wz(t,this.comparisonStart,this.comparisonEnd)}},{key:"_isComparisonBridgeStart",value:function(t,e,n){if(!this._isComparisonStart(t)||this._isRangeStart(t)||!this._isInRange(t))return!1;var i=this.rows[e][n-1];if(!i){var r=this.rows[e-1];i=r&&r[r.length-1]}return i&&!this._isRangeEnd(i.compareValue)}},{key:"_isComparisonBridgeEnd",value:function(t,e,n){if(!this._isComparisonEnd(t)||this._isRangeEnd(t)||!this._isInRange(t))return!1;var i=this.rows[e][n+1];if(!i){var r=this.rows[e+1];i=r&&r[0]}return i&&!this._isRangeStart(i.compareValue)}},{key:"_isComparisonEnd",value:function(t){return kz(t,this.comparisonStart,this.comparisonEnd)}},{key:"_isInComparisonRange",value:function(t){return Cz(t,this.comparisonStart,this.comparisonEnd,this.isRange)}},{key:"_isComparisonIdentical",value:function(t){return this.comparisonStart===this.comparisonEnd&&t===this.comparisonStart}},{key:"_isPreviewStart",value:function(t){return wz(t,this.previewStart,this.previewEnd)}},{key:"_isPreviewEnd",value:function(t){return kz(t,this.previewStart,this.previewEnd)}},{key:"_isInPreview",value:function(t){return Cz(t,this.previewStart,this.previewEnd,this.isRange)}},{key:"_getCellFromElement",value:function(t){var e;if(xz(t)?e=t:xz(t.parentNode)&&(e=t.parentNode),e){var n=e.getAttribute("data-mat-row"),i=e.getAttribute("data-mat-col");if(n&&i)return this.rows[parseInt(n)][parseInt(i)]}return null}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(kc))},t.\u0275cmp=ce({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",previewStart:"previewStart",previewEnd:"previewEnd",label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[Te],attrs:nz,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","mat-calendar-body-range-start","mat-calendar-body-range-end","mat-calendar-body-in-range","mat-calendar-body-comparison-bridge-start","mat-calendar-body-comparison-bridge-end","mat-calendar-body-comparison-start","mat-calendar-body-comparison-end","mat-calendar-body-in-comparison-range","mat-calendar-body-preview-start","mat-calendar-body-preview-end","mat-calendar-body-in-preview","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],[1,"mat-calendar-body-cell-preview"]],template:function(t,e){1&t&&(ls(0,iz,3,6,"tr",0),ls(1,az,3,2,"tr",1)),2&t&&(hs("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}[dir=rtl] .mat-calendar-body-label{text-align:right}@media(hover: none){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){background-color:transparent}}\n'],encapsulation:2,changeDetection:0}),t}();function xz(t){return"TD"===t.nodeName}function wz(t,e,n){return null!==n&&e!==n&&t=e&&t===n}function Cz(t,e,n,i){return i&&null!==e&&null!==n&&e!==n&&t>=e&&t<=n}var Sz=function t(e,n){s(this,t),this.start=e,this.end=n},Mz=function(){var t=function(){function t(e,n){s(this,t),this.selection=e,this._adapter=n,this._selectionChanged=new U,this.selectionChanged=this._selectionChanged,this.selection=e}return a(t,[{key:"updateSelection",value:function(t,e){var n=this.selection;this.selection=t,this._selectionChanged.next({selection:t,source:e,oldValue:n})}},{key:"ngOnDestroy",value:function(){this._selectionChanged.complete()}},{key:"_isValidDateInstance",value:function(t){return this._adapter.isDateInstance(t)&&this._adapter.isValid(t)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(Fi(void 0),Fi(Vk))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),Az=function(){var t=function(t){u(n,t);var e=p(n);function n(t){return s(this,n),e.call(this,null,t)}return a(n,[{key:"add",value:function(t){r(i(n.prototype),"updateSelection",this).call(this,t,this)}},{key:"isValid",value:function(){return null!=this.selection&&this._isValidDateInstance(this.selection)}},{key:"isComplete",value:function(){return null!=this.selection}},{key:"clone",value:function(){var t=new n(this._adapter);return t.updateSelection(this.selection,this),t}}]),n}(Mz);return t.\u0275fac=function(e){return new(e||t)(Fi(Vk))},t.\u0275prov=Pt({token:t,factory:t.\u0275fac}),t}(),Iz={provide:Mz,deps:[[new Wi,new Yi,Mz],Vk],useFactory:function(t,e){return t||new Az(e)}},Oz=new _i("MAT_DATE_RANGE_SELECTION_STRATEGY"),Tz=function(){var t=function(){function t(e,n,i,r,o){s(this,t),this._changeDetectorRef=e,this._dateFormats=n,this._dateAdapter=i,this._dir=r,this._rangeStrategy=o,this._rerenderSubscription=A.EMPTY,this.selectedChange=new Nu,this._userSelection=new Nu,this.activeDateChange=new Nu,this._activeDate=this._dateAdapter.today()}return a(t,[{key:"activeDate",get:function(){return this._activeDate},set:function(t){var e=this._activeDate,n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(t){this._selected=t instanceof Sz?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setRanges(this._selected)}},{key:"minDate",get:function(){return this._minDate},set:function(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"maxDate",get:function(){return this._maxDate},set:function(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"ngAfterContentInit",value:function(){var t=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Vf(null)).subscribe(function(){return t._init()})}},{key:"ngOnChanges",value:function(t){var e=t.comparisonStart||t.comparisonEnd;e&&!e.firstChange&&this._setRanges(this.selected)}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_dateSelected",value:function(t){var e,n,i=t.value,r=this._dateAdapter.getYear(this.activeDate),o=this._dateAdapter.getMonth(this.activeDate),a=this._dateAdapter.createDate(r,o,i);this._selected instanceof Sz?(e=this._getDateInCurrentMonth(this._selected.start),n=this._getDateInCurrentMonth(this._selected.end)):e=n=this._getDateInCurrentMonth(this._selected),e===i&&n===i||this.selectedChange.emit(a),this._userSelection.emit({value:a,event:t.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}},{key:"_handleCalendarBodyKeydown",value:function(t){var e=this._activeDate,n=this._isRtl();switch(t.keyCode){case Hy:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?1:-1);break;case Gy:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?-1:1);break;case jy:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case Uy:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case By:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case Vy:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case Ny:case zy:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:t}),t.preventDefault()));case Fy:return void(null==this._previewEnd||Wy(t)||(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:t}),t.preventDefault(),t.stopPropagation()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()}},{key:"_init",value:function(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();var t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}},{key:"_focusActiveCell",value:function(t){this._matCalendarBody._focusActiveCell(t)}},{key:"_previewChanged",value:function(t){var e=t.value;if(this._rangeStrategy){var n=this._rangeStrategy.createPreview(e?e.rawValue:null,this.selected,t.event);this._previewStart=this._getCellCompareValue(n.start),this._previewEnd=this._getCellCompareValue(n.end),this._changeDetectorRef.detectChanges()}}},{key:"_initWeekdays",value:function(){var t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow"),n=this._dateAdapter.getDayOfWeekNames("long").map(function(t,n){return{long:t,narrow:e[n]}});this._weekdays=n.slice(t).concat(n.slice(0,t))}},{key:"_createWeekCells",value:function(){var t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(var n=0,i=this._firstWeekOffset;n=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(t))}},{key:"_getDateInCurrentMonth",value:function(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null}},{key:"_hasSameMonthAndYear",value:function(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))}},{key:"_getCellCompareValue",value:function(t){if(t){var e=this._dateAdapter.getYear(t),n=this._dateAdapter.getMonth(t),i=this._dateAdapter.getDate(t);return new Date(e,n,i).getTime()}return null}},{key:"_isRtl",value:function(){return this._dir&&"rtl"===this._dir.value}},{key:"_setRanges",value:function(t){t instanceof Sz?(this._rangeStart=this._getCellCompareValue(t.start),this._rangeEnd=this._getCellCompareValue(t.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(t),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Jl),cs(Bk,8),cs(Vk,8),cs(py,8),cs(Oz,8))},t.\u0275cmp=ce({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){var n;1&t&&Zu(bz,5),2&t&&Xu(n=$u())&&(e._matCalendarBody=n.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[Te],decls:7,vars:13,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keydown"],["scope","col"],[1,"mat-calendar-abbr"]],template:function(t,e){1&t&&(fs(0,"table",0),fs(1,"thead",1),fs(2,"tr"),ls(3,sz,3,3,"th",2),ps(),fs(4,"tr"),gs(5,"th",3),ps(),ps(),fs(6,"tbody",4),ks("selectedValueChange",function(t){return e._dateSelected(t)})("previewChange",function(t){return e._previewChanged(t)})("keydown",function(t){return e._handleCalendarBodyKeydown(t)}),ps(),ps()),2&t&&(Po(3),hs("ngForOf",e._weekdays),Po(3),hs("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("startValue",e._rangeStart)("endValue",e._rangeEnd)("comparisonStart",e._comparisonRangeStart)("comparisonEnd",e._comparisonRangeEnd)("previewStart",e._previewStart)("previewEnd",e._previewEnd)("isRange",e._isRange)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[Oh,bz],encapsulation:2,changeDetection:0}),t}(),Dz=24,Pz=function(){var t=function(){function t(e,n,i){s(this,t),this._changeDetectorRef=e,this._dateAdapter=n,this._dir=i,this._rerenderSubscription=A.EMPTY,this.selectedChange=new Nu,this.yearSelected=new Nu,this.activeDateChange=new Nu,this._activeDate=this._dateAdapter.today()}return a(t,[{key:"activeDate",get:function(){return this._activeDate},set:function(t){var e=this._activeDate,n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),Ez(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(t){this._selected=t instanceof Sz?t:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t)),this._setSelectedYear(t)}},{key:"minDate",get:function(){return this._minDate},set:function(t){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"maxDate",get:function(){return this._maxDate},set:function(t){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"ngAfterContentInit",value:function(){var t=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(Vf(null)).subscribe(function(){return t._init()})}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_init",value:function(){var t=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var e=this._dateAdapter.getYear(this._activeDate)-Rz(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var n=0,i=[];nthis._dateAdapter.getYear(this.maxDate)||this.minDate&&tn||t===n&&e>i}return!1}},{key:"_isYearAndMonthBeforeMinDate",value:function(t,e){if(this.minDate){var n=this._dateAdapter.getYear(this.minDate),i=this._dateAdapter.getMonth(this.minDate);return t enter-dropdown",Ib("120ms cubic-bezier(0, 0, 0.2, 1)",Pb([Tb({opacity:0,transform:"scale(1, 0.8)"}),Tb({opacity:1,transform:"scale(1, 1)"})]))),Eb("void => enter-dialog",Ib("150ms cubic-bezier(0, 0, 0.2, 1)",Pb([Tb({opacity:0,transform:"scale(0.7)"}),Tb({transform:"none",opacity:1})]))),Eb("* => void",Ib("100ms linear",Tb({opacity:0})))]),fadeInCalendar:Ab("fadeInCalendar",[Db("void",Tb({opacity:0})),Db("enter",Tb({opacity:1})),Eb("void => *",Ib("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},Hz=0,jz=new _i("mat-datepicker-scroll-strategy"),Gz={provide:jz,deps:[b_],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},Uz=Pk(function(){return function t(e){s(this,t),this._elementRef=e}}()),Wz=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l){var u;return s(this,n),(u=e.call(this,t))._changeDetectorRef=i,u._globalModel=r,u._dateAdapter=o,u._rangeSelectionStrategy=a,u._subscriptions=new A,u._animationDone=new U,u._actionsPortal=null,u._closeButtonText=l.closeCalendarLabel,u}return a(n,[{key:"ngOnInit",value:function(){this._model=this._actionsPortal?this._globalModel.clone():this._globalModel,this._animationState=this.datepicker.touchUi?"enter-dialog":"enter-dropdown"}},{key:"ngAfterViewInit",value:function(){var t=this;this._subscriptions.add(this.datepicker.stateChanges.subscribe(function(){t._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}},{key:"ngOnDestroy",value:function(){this._subscriptions.unsubscribe(),this._animationDone.complete()}},{key:"_handleUserSelection",value:function(t){var e=this._model.selection,n=t.value,i=e instanceof Sz;if(i&&this._rangeSelectionStrategy){var r=this._rangeSelectionStrategy.selectionFinished(n,e,t.event);this._model.updateSelection(r,this)}else!n||!i&&this._dateAdapter.sameDate(n,e)||this._model.add(n);this._model&&!this._model.isComplete()||this._actionsPortal||this.datepicker.close()}},{key:"_startExitAnimation",value:function(){this._animationState="void",this._changeDetectorRef.markForCheck()}},{key:"_getSelected",value:function(){return this._model.selection}},{key:"_applyPendingSelection",value:function(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}}]),n}(Uz);return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(Jl),cs(Mz),cs(Vk),cs(Oz,8),cs(yz))},t.\u0275cmp=ce({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){var n;1&t&&Zu(Vz,5),2&t&&Xu(n=$u())&&(e._calendar=n.first)},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){1&t&&Cs("@transformPanel.done",function(){return e._animationDone.next()}),2&t&&(il("@transformPanel",e._animationState),Hs("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[qa],decls:5,vars:20,consts:[["cdkTrapFocus","",1,"mat-datepicker-content-container"],[3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","yearSelected","monthSelected","viewChanged","_userSelection"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"color","focus","blur","click"]],template:function(t,e){1&t&&(fs(0,"div",0),fs(1,"mat-calendar",1),ks("yearSelected",function(t){return e.datepicker._selectYear(t)})("monthSelected",function(t){return e.datepicker._selectMonth(t)})("viewChanged",function(t){return e.datepicker._viewChanged(t)})("_userSelection",function(t){return e._handleUserSelection(t)}),ps(),ls(2,fz,0,0,"ng-template",2),fs(3,"button",3),ks("focus",function(){return e._closeButtonFocused=!0})("blur",function(){return e._closeButtonFocused=!1})("click",function(){return e.datepicker.close()}),Qs(4),ps(),ps()),2&t&&(Hs("mat-datepicker-content-container-with-actions",e._actionsPortal),Po(1),hs("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._getMinDate())("maxDate",e.datepicker._getMaxDate())("dateFilter",e.datepicker._getDateFilter())("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e._getSelected())("dateClass",e.datepicker.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("@fadeInCalendar","enter"),Po(1),hs("cdkPortalOutlet",e._actionsPortal),Po(1),Hs("cdk-visually-hidden",!e._closeButtonFocused),hs("color",e.color||"primary"),Po(1),Js(e._closeButtonText))},directives:[nb,Vz,Ah,Py,ZC],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.ng-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;position:relative;overflow:visible}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}}\n"],encapsulation:2,data:{animation:[Bz.transformPanel,Bz.fadeInCalendar]},changeDetection:0}),t}(),Yz=function(){var t=function(){function t(e,n,i,r,o,a,l,u,c){s(this,t),this._overlay=n,this._ngZone=i,this._viewContainerRef=r,this._dateAdapter=a,this._dir=l,this._model=c,this._inputStateChanges=A.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new Nu,this.monthSelected=new Nu,this.viewChanged=new Nu(!0),this.openedStream=new Nu,this.closedStream=new Nu,this._opened=!1,this.id="mat-datepicker-".concat(Hz++),this._focusedElementBeforeOpen=null,this._backdropHarnessClass="".concat(this.id,"-backdrop"),this.stateChanges=new U,this._scrollStrategy=o}return a(t,[{key:"startAt",get:function(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)},set:function(t){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(t))}},{key:"color",get:function(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)},set:function(t){this._color=t}},{key:"touchUi",get:function(){return this._touchUi},set:function(t){this._touchUi=vv(t)}},{key:"disabled",get:function(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled},set:function(t){var e=vv(t);e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}},{key:"restoreFocus",get:function(){return this._restoreFocus},set:function(t){this._restoreFocus=vv(t)}},{key:"panelClass",get:function(){return this._panelClass},set:function(t){this._panelClass=kv(t)}},{key:"opened",get:function(){return this._opened},set:function(t){vv(t)?this.open():this.close()}},{key:"_getMinDate",value:function(){return this.datepickerInput&&this.datepickerInput.min}},{key:"_getMaxDate",value:function(){return this.datepickerInput&&this.datepickerInput.max}},{key:"_getDateFilter",value:function(){return this.datepickerInput&&this.datepickerInput.dateFilter}},{key:"ngOnChanges",value:function(t){var e=t.xPosition||t.yPosition;if(e&&!e.firstChange&&this._overlayRef){var n=this._overlayRef.getConfig().positionStrategy;n instanceof h_&&(this._setConnectedPositions(n),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}},{key:"ngOnDestroy",value:function(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}},{key:"select",value:function(t){this._model.add(t)}},{key:"_selectYear",value:function(t){this.yearSelected.emit(t)}},{key:"_selectMonth",value:function(t){this.monthSelected.emit(t)}},{key:"_viewChanged",value:function(t){this.viewChanged.emit(t)}},{key:"registerInput",value:function(t){var e=this;return this._inputStateChanges.unsubscribe(),this.datepickerInput=t,this._inputStateChanges=t.stateChanges.subscribe(function(){return e.stateChanges.next(void 0)}),this._model}},{key:"registerActions",value:function(t){this._actionsPortal=t}},{key:"removeActions",value:function(t){t===this._actionsPortal&&(this._actionsPortal=null)}},{key:"open",value:function(){this._opened||this.disabled||(this._focusedElementBeforeOpen=dy(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}},{key:"close",value:function(){var t=this;if(this._opened){if(this._componentRef){var e=this._componentRef.instance;e._startExitAnimation(),e._animationDone.pipe(Nf(1)).subscribe(function(){return t._destroyOverlay()})}var n=function(){t._opened&&(t._opened=!1,t.closedStream.emit(),t._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(n)):n()}}},{key:"_applyPendingSelection",value:function(){var t,e;null===(e=null===(t=this._componentRef)||void 0===t?void 0:t.instance)||void 0===e||e._applyPendingSelection()}},{key:"_forwardContentValues",value:function(t){t.datepicker=this,t.color=this.color,t._actionsPortal=this._actionsPortal}},{key:"_openOverlay",value:function(){var t=this;this._destroyOverlay();var e=this.touchUi,n=this.datepickerInput.getOverlayLabelId(),i=new My(Wz,this._viewContainerRef),r=this._overlayRef=this._overlay.create(new t_({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-".concat(e?"dialog":"popup")})),o=r.overlayElement;o.setAttribute("role","dialog"),n&&o.setAttribute("aria-labelledby",n),e&&o.setAttribute("aria-modal","true"),this._getCloseStream(r).subscribe(function(e){e&&e.preventDefault(),t.close()}),this._componentRef=r.attach(i),this._forwardContentValues(this._componentRef.instance),e||this._ngZone.onStable.pipe(Nf(1)).subscribe(function(){return r.updatePosition()})}},{key:"_destroyOverlay",value:function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}},{key:"_getDialogStrategy",value:function(){return this._overlay.position().global().centerHorizontally().centerVertically()}},{key:"_getDropdownStrategy",value:function(){var t=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(t)}},{key:"_setConnectedPositions",value:function(t){var e="end"===this.xPosition?"end":"start",n="start"===e?"end":"start",i="above"===this.yPosition?"bottom":"top",r="top"===i?"bottom":"top";return t.withPositions([{originX:e,originY:r,overlayX:e,overlayY:i},{originX:e,originY:i,overlayX:e,overlayY:r},{originX:n,originY:r,overlayX:n,overlayY:i},{originX:n,originY:i,overlayX:n,overlayY:r}])}},{key:"_getCloseStream",value:function(t){var e=this;return dt(t.backdropClick(),t.detachments(),t.keydownEvents().pipe(Ld(function(t){return t.keyCode===Fy&&!Wy(t)||e.datepickerInput&&Wy(t,"altKey")&&t.keyCode===jy})))}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(b_),cs(kc),cs(cu),cs(jz),cs(Vk,8),cs(py,8),cs(oh,8),cs(Mz))},t.\u0275dir=me({type:t,inputs:{startView:"startView",xPosition:"xPosition",yPosition:"yPosition",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",restoreFocus:"restoreFocus",panelClass:"panelClass",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Te]}),t}(),qz=function(){var t=function(t){u(n,t);var e=p(n);function n(){return s(this,n),e.apply(this,arguments)}return n}(Yz);return t.\u0275fac=function(){var e;return function(n){return(e||(e=pi(t)))(n||t)}}(),t.\u0275cmp=ce({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[_l([Iz,{provide:Yz,useExisting:t}]),qa],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t}(),Xz=function t(e,n){s(this,t),this.target=e,this.targetElement=n,this.value=this.target.value},Zz=function(){var t=function(){function t(e,n,i){var r=this;s(this,t),this._elementRef=e,this._dateAdapter=n,this._dateFormats=i,this.dateChange=new Nu,this.dateInput=new Nu,this.stateChanges=new U,this._onTouched=function(){},this._validatorOnChange=function(){},this._cvaOnChange=function(){},this._valueChangesSubscription=A.EMPTY,this._localeSubscription=A.EMPTY,this._parseValidator=function(){return r._lastValueValid?null:{matDatepickerParse:{text:r._elementRef.nativeElement.value}}},this._filterValidator=function(t){var e=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(t.value));return!e||r._matchesFilter(e)?null:{matDatepickerFilter:!0}},this._minValidator=function(t){var e=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(t.value)),n=r._getMinDate();return!n||!e||r._dateAdapter.compareDate(n,e)<=0?null:{matDatepickerMin:{min:n,actual:e}}},this._maxValidator=function(t){var e=r._dateAdapter.getValidDateOrNull(r._dateAdapter.deserialize(t.value)),n=r._getMaxDate();return!n||!e||r._dateAdapter.compareDate(n,e)>=0?null:{matDatepickerMax:{max:n,actual:e}}},this._lastValueValid=!1,this._localeSubscription=n.localeChanges.subscribe(function(){r._assignValueProgrammatically(r.value)})}return a(t,[{key:"value",get:function(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue},set:function(t){this._assignValueProgrammatically(t)}},{key:"disabled",get:function(){return!!this._disabled||this._parentDisabled()},set:function(t){var e=vv(t),n=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this.stateChanges.next(void 0)),e&&this._isInitialized&&n.blur&&n.blur()}},{key:"_getValidators",value:function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}},{key:"_registerModel",value:function(t){var e=this;this._model=t,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(function(t){if(e._shouldHandleChangeEvent(t)){var n=e._getValueFromModel(t.selection);e._lastValueValid=e._isValidValue(n),e._cvaOnChange(n),e._onTouched(),e._formatValue(n),e.dateInput.emit(new Xz(e,e._elementRef.nativeElement)),e.dateChange.emit(new Xz(e,e._elementRef.nativeElement))}})}},{key:"ngAfterViewInit",value:function(){this._isInitialized=!0}},{key:"ngOnChanges",value:function(t){(function(t,e){for(var n=0,i=Object.keys(t);n2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.multiple||!this.selected||t.checked||(this.selected.checked=!1),this._selectionModel?e?this._selectionModel.select(t):this._selectionModel.deselect(t):r=!0,r?Promise.resolve().then(function(){return n._updateModelValue(i)}):this._updateModelValue(i)}},{key:"_isSelected",value:function(t){return this._selectionModel&&this._selectionModel.isSelected(t)}},{key:"_isPrechecked",value:function(t){return void 0!==this._rawValue&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(function(e){return null!=t.value&&e===t.value}):t.value===this._rawValue)}},{key:"_setSelectionByValue",value:function(t){var e=this;this._rawValue=t,this._buttonToggles&&(this.multiple&&t?(Array.isArray(t),this._clearSelection(),t.forEach(function(t){return e._selectValue(t)})):(this._clearSelection(),this._selectValue(t)))}},{key:"_clearSelection",value:function(){this._selectionModel.clear(),this._buttonToggles.forEach(function(t){return t.checked=!1})}},{key:"_selectValue",value:function(t){var e=this._buttonToggles.find(function(e){return null!=e.value&&e.value===t});e&&(e.checked=!0,this._selectionModel.select(e))}},{key:"_updateModelValue",value:function(t){t&&this._emitChangeEvent(),this.valueChange.emit(this.value)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Jl),cs(rV,8))},t.\u0275dir=me({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,e,n){var i;1&t&&Ku(n,hV,5),2&t&&Xu(i=$u())&&(e._buttonToggles=i)},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(t,e){2&t&&(as("aria-disabled",e.disabled),Hs("mat-button-toggle-vertical",e.vertical)("mat-button-toggle-group-appearance-standard","standard"===e.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[_l([aV,{provide:oV,useExisting:t}])]}),t}(),cV=Ek(function(){return function t(){s(this,t)}}()),hV=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l){var u;s(this,n),(u=e.call(this))._changeDetectorRef=i,u._elementRef=r,u._focusMonitor=o,u._isSingleSelector=!1,u._checked=!1,u.ariaLabelledby=null,u._disabled=!1,u.change=new Nu;var c=Number(a);return u.tabIndex=c||0===c?c:null,u.buttonToggleGroup=t,u.appearance=l&&l.appearance?l.appearance:"standard",u}return a(n,[{key:"buttonId",get:function(){return"".concat(this.id,"-button")}},{key:"appearance",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance},set:function(t){this._appearance=t}},{key:"checked",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked},set:function(t){var e=vv(t);e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}},{key:"disabled",get:function(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled},set:function(t){this._disabled=vv(t)}},{key:"ngOnInit",value:function(){var t=this.buttonToggleGroup;this._isSingleSelector=t&&!t.multiple,this.id=this.id||"mat-button-toggle-".concat(sV++),this._isSingleSelector&&(this.name=t.name),t&&(t._isPrechecked(this)?this.checked=!0:t._isSelected(this)!==this._checked&&t._syncButtonToggle(this,this._checked))}},{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){var t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)}},{key:"focus",value:function(t){this._buttonElement.nativeElement.focus(t)}},{key:"_onButtonClick",value:function(){var t=!!this._isSingleSelector||!this._checked;t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new lV(this,this.value))}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),n}(cV);return t.\u0275fac=function(e){return new(e||t)(cs(oV,8),cs(Jl),cs(Al),cs(mb),mi("tabindex"),cs(rV,8))},t.\u0275cmp=ce({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(t,e){var n;1&t&&Zu(nV,5),2&t&&Xu(n=$u())&&(e._buttonElement=n.first)},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(t,e){1&t&&ks("focus",function(){return e.focus()}),2&t&&(as("aria-label",null)("aria-labelledby",null)("id",e.id)("name",null),Hs("mat-button-toggle-standalone",!e.buttonToggleGroup)("mat-button-toggle-checked",e.checked)("mat-button-toggle-disabled",e.disabled)("mat-button-toggle-appearance-standard","standard"===e.appearance))},inputs:{disableRipple:"disableRipple",ariaLabelledby:["aria-labelledby","ariaLabelledby"],tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled",id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],value:"value"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[qa],ngContentSelectors:iV,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,e){if(1&t&&(Ts(),fs(0,"button",0,1),ks("click",function(){return e._onButtonClick()}),fs(2,"span",2),Ds(3),ps(),ps(),gs(4,"span",3),gs(5,"span",4)),2&t){var n=us(1);hs("id",e.buttonId)("disabled",e.disabled||null),as("tabindex",e.disabled?-1:e.tabIndex)("aria-pressed",e.checked)("name",e.name||null)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),Po(5),hs("matRippleTrigger",n)("matRippleDisabled",e.disableRipple||e.disabled)}},directives:[aC],styles:[".mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-button-toggle-standalone,.cdk-high-contrast-active .mat-button-toggle-group{outline:solid 1px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:4px}.cdk-high-contrast-active .mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.cdk-high-contrast-active .mat-button-toggle-group-appearance-standard{outline:0}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}.cdk-high-contrast-active .mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:.5}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}.cdk-high-contrast-active .mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.5}@media(hover: none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{border-radius:inherit;pointer-events:none;opacity:0;top:0;left:0;right:0;bottom:0;position:absolute}.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px}.cdk-high-contrast-active .mat-button-toggle-checked .mat-button-toggle-focus-overlay{opacity:.5;height:0}.cdk-high-contrast-active .mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}\n"],encapsulation:2,changeDetection:0}),t}(),dV=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[Tk,sC],Tk]}),t}();function fV(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Edit rule"),ps())}function pV(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"New rule"),ps())}function gV(t,e){if(1&t&&(fs(0,"mat-option",22),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.value," ")}}function mV(t,e){if(1&t&&(fs(0,"mat-option",22),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.value," ")}}function vV(t,e){if(1&t&&(fs(0,"mat-button-toggle",22),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.value," ")}}function yV(t,e){if(1&t){var n=_s();fs(0,"div",23),fs(1,"span",24),fs(2,"uds-translate"),Qs(3,"Weekdays"),ps(),ps(),fs(4,"mat-button-toggle-group",25),ks("ngModelChange",function(t){return en(n),Is().wDays=t}),ls(5,vV,2,2,"mat-button-toggle",8),ps(),ps()}if(2&t){var i=Is();Po(4),hs("ngModel",i.wDays),Po(1),hs("ngForOf",i.weekDays)}}function _V(t,e){if(1&t){var n=_s();fs(0,"mat-form-field",9),fs(1,"mat-label"),fs(2,"uds-translate"),Qs(3,"Repeat every"),ps(),ps(),fs(4,"input",6),ks("ngModelChange",function(t){return en(n),Is().rule.interval=t}),ps(),fs(5,"div",26),Qs(6),ps(),ps()}if(2&t){var i=Is();Po(4),hs("ngModel",i.rule.interval),Po(2),tl("\xa0",i.frequency(),"")}}var bV={DAILY:[django.gettext("day"),django.gettext("days"),django.gettext("Daily")],WEEKLY:[django.gettext("week"),django.gettext("weeks"),django.gettext("Weekly")],MONTHLY:[django.gettext("month"),django.gettext("months"),django.gettext("Monthly")],YEARLY:[django.gettext("year"),django.gettext("years"),django.gettext("Yearly")],WEEKDAYS:["","",django.gettext("Weekdays")]},xV={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},wV=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],kV=function(t,e){void 0===e&&(e=!1);for(var n=new Array,i=0;i<7;i++)1&t&&n.push(wV[i].substr(0,e?100:3)),t>>=1;return n.length?n.join(", "):django.gettext("(no days)")},CV=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.dunits=Object.keys(xV).map(function(t){return{id:t,value:xV[t]}}),this.freqs=Object.keys(bV).map(function(t){return{id:t,value:bV[t][2]}}),this.weekDays=wV.map(function(t,e){return{id:1<0?" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+xV[this.rule.duration_unit]:django.gettext("with no duration")}return t.replace("$FIELD",n)},t.prototype.save=function(){var t=this;this.rules.save(this.rule).subscribe(function(){t.dialogRef.close(),t.onSave.emit(!0)})},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-calendar-rule"]],decls:73,vars:21,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"oneThird"],["matInput","","type","time",3,"ngModel","ngModelChange"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"oneHalf"],["matInput","",3,"matDatepicker","ngModel","ngModelChange"],["matSuffix","",3,"for"],["startDatePicker",""],["matInput","",3,"matDatepicker","ngModel","placeholder","ngModelChange"],["endDatePicker",""],[1,"weekdays"],[3,"ngModel","ngModelChange","valueChange"],["class","oneHalf mat-form-field-infix",4,"ngIf"],["class","oneHalf",4,"ngIf"],[1,"info"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"disabled","click"],[3,"value"],[1,"oneHalf","mat-form-field-infix"],[1,"label-weekdays"],["multiple","",3,"ngModel","ngModelChange"],["matSuffix",""]],template:function(t,e){if(1&t&&(fs(0,"h4",0),ls(1,fV,2,0,"uds-translate",1),ls(2,pV,2,0,"uds-translate",1),ps(),fs(3,"mat-dialog-content"),fs(4,"div",2),fs(5,"mat-form-field"),fs(6,"mat-label"),fs(7,"uds-translate"),Qs(8,"Name"),ps(),ps(),fs(9,"input",3),ks("ngModelChange",function(t){return e.rule.name=t}),ps(),ps(),fs(10,"mat-form-field"),fs(11,"mat-label"),fs(12,"uds-translate"),Qs(13,"Comments"),ps(),ps(),fs(14,"input",3),ks("ngModelChange",function(t){return e.rule.comments=t}),ps(),ps(),fs(15,"h3"),fs(16,"uds-translate"),Qs(17,"Event"),ps(),ps(),fs(18,"mat-form-field",4),fs(19,"mat-label"),fs(20,"uds-translate"),Qs(21,"Start time"),ps(),ps(),fs(22,"input",5),ks("ngModelChange",function(t){return e.startTime=t}),ps(),ps(),fs(23,"mat-form-field",4),fs(24,"mat-label"),fs(25,"uds-translate"),Qs(26,"Duration"),ps(),ps(),fs(27,"input",6),ks("ngModelChange",function(t){return e.rule.duration=t}),ps(),ps(),fs(28,"mat-form-field",4),fs(29,"mat-label"),fs(30,"uds-translate"),Qs(31,"Duration units"),ps(),ps(),fs(32,"mat-select",7),ks("ngModelChange",function(t){return e.rule.duration_unit=t}),ls(33,gV,2,2,"mat-option",8),ps(),ps(),fs(34,"h3"),Qs(35," Repetition "),ps(),fs(36,"mat-form-field",9),fs(37,"mat-label"),fs(38,"uds-translate"),Qs(39," Start date "),ps(),ps(),fs(40,"input",10),ks("ngModelChange",function(t){return e.startDate=t}),ps(),gs(41,"mat-datepicker-toggle",11),gs(42,"mat-datepicker",null,12),ps(),fs(44,"mat-form-field",9),fs(45,"mat-label"),fs(46,"uds-translate"),Qs(47," Repeat until date "),ps(),ps(),fs(48,"input",13),ks("ngModelChange",function(t){return e.endDate=t}),ps(),gs(49,"mat-datepicker-toggle",11),gs(50,"mat-datepicker",null,14),ps(),fs(52,"div",15),fs(53,"mat-form-field",9),fs(54,"mat-label"),fs(55,"uds-translate"),Qs(56,"Frequency"),ps(),ps(),fs(57,"mat-select",16),ks("ngModelChange",function(t){return e.rule.frequency=t})("valueChange",function(){return e.rule.interval=1}),ls(58,mV,2,2,"mat-option",8),ps(),ps(),ls(59,yV,6,2,"div",17),ls(60,_V,7,2,"mat-form-field",18),ps(),fs(61,"h3"),fs(62,"uds-translate"),Qs(63,"Summary"),ps(),ps(),fs(64,"div",19),Qs(65),ps(),ps(),ps(),fs(66,"mat-dialog-actions"),fs(67,"button",20),fs(68,"uds-translate"),Qs(69,"Cancel"),ps(),ps(),fs(70,"button",21),ks("click",function(){return e.save()}),fs(71,"uds-translate"),Qs(72,"Ok"),ps(),ps(),ps()),2&t){var n=us(43),i=us(51);Po(1),hs("ngIf",e.rule.id),Po(1),hs("ngIf",!e.rule.id),Po(7),hs("ngModel",e.rule.name),Po(5),hs("ngModel",e.rule.comments),Po(8),hs("ngModel",e.startTime),Po(5),hs("ngModel",e.rule.duration),Po(5),hs("ngModel",e.rule.duration_unit),Po(1),hs("ngForOf",e.dunits),Po(7),hs("matDatepicker",n)("ngModel",e.startDate),Po(1),hs("for",n),Po(7),hs("matDatepicker",i)("ngModel",e.endDate)("placeholder",e.FOREVER_STRING),Po(1),hs("for",i),Po(8),hs("ngModel",e.rule.frequency),Po(1),hs("ngForOf",e.freqs),Po(1),hs("ngIf","WEEKDAYS"===e.rule.frequency),Po(1),hs("ngIf","WEEKDAYS"!==e.rule.frequency),Po(5),tl(" ",e.summary()," "),Po(5),hs("disabled",null!==e.updateRuleData()||""===e.rule.name)}},directives:[zC,Dh,VC,gT,aT,QC,TP,fS,BS,gM,yM,FT,Oh,Qz,tV,cT,qz,BC,ZC,FC,yC,uV,hV],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{width:100%;margin-top:.5rem;display:flex;flex-wrap:wrap}.mat-form-field[_ngcontent-%COMP%]:not(.oneThird):not(.oneHalf){width:100%}.mat-form-field.oneThird[_ngcontent-%COMP%]{width:31%;margin-right:2%}.mat-form-field.oneHalf[_ngcontent-%COMP%]{width:48%;margin-right:2%}h3[_ngcontent-%COMP%]{width:100%;margin-top:.3rem;margin-bottom:1rem}.weekdays[_ngcontent-%COMP%]{width:100%;display:flex;align-items:flex-end}.label-weekdays[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}.mat-datepicker-toggle[_ngcontent-%COMP%]{color:#00f}.mat-button-toggle-checked[_ngcontent-%COMP%]{background-color:rgba(35,35,133,.5);color:#fff}"]}),t}();function SV(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Rules"),ps())}function MV(t,e){if(1&t){var n=_s();fs(0,"div",6),fs(1,"div",7),fs(2,"mat-tab-group",8),fs(3,"mat-tab"),ls(4,SV,2,0,"ng-template",9),fs(5,"div",10),fs(6,"uds-table",11),ks("newAction",function(t){return en(n),Is().onNewRule(t)})("editAction",function(t){return en(n),Is().onEditRule(t)})("deleteAction",function(t){return en(n),Is().onDeleteRule(t)}),ps(),ps(),ps(),ps(),ps(),ps()}if(2&t){var i=Is();Po(2),hs("@.disabled",!0),Po(4),hs("rest",i.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",i.processElement)("tableId","calendars-d-rules"+i.calendar.id)("pageSize",i.api.config.admin.page_size)}}var AV=function(t){return["/pools","calendars",t]},IV=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("calendar");this.rest.calendars.get(e).subscribe(function(e){t.calendar=e,t.calendarRules=t.rest.calendars.detail(e.id,"rules")})},t.prototype.onNewRule=function(t){CV.launch(this.api,this.calendarRules).subscribe(function(){return t.table.overview()})},t.prototype.onEditRule=function(t){CV.launch(this.api,this.calendarRules,t.table.selection.selected[0]).subscribe(function(){return t.table.overview()})},t.prototype.onDeleteRule=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar rule"))},t.prototype.processElement=function(t){!function(t){t.interval="WEEKDAYS"===t.frequency?kV(t.interval):t.interval+" "+bV[t.frequency][django.pluralidx(t.interval)],t.duration=t.duration+" "+xV[t.duration_unit]}(t)},t.\u0275fac=function(e){return new(e||t)(cs(mg),cs(XI),cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-calendars-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","pageSize","newAction","editAction","deleteAction"]],template:function(t,e){1&t&&(fs(0,"div",0),fs(1,"div",1),fs(2,"a",2),fs(3,"i",3),Qs(4,"arrow_back"),ps(),ps(),Qs(5," \xa0"),gs(6,"img",4),Qs(7),ps(),ls(8,MV,7,7,"div",5),ps()),2&t&&(Po(2),hs("routerLink",Su(4,AV,e.calendar?e.calendar.id:"")),Po(4),hs("src",e.api.staticURL("admin/img/icons/calendars.png"),Or),Po(1),tl(" ",null==e.calendar?null:e.calendar.name," "),Po(1),hs("ngIf",e.calendar))},directives:[qm,Dh,hA,eA,QM,pR,QC],styles:[".mat-column-end, .mat-column-start{max-width:9rem} .mat-column-frequency{max-width:9rem} .mat-column-duration, .mat-column-interval{max-width:11rem}"]}),t}(),OV='event'+django.gettext("Set time mark")+"",TV=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.cButtons=[{id:"timemark",html:OV,type:YA.SINGLE_SELECT}]}return t.prototype.ngOnInit=function(){},Object.defineProperty(t.prototype,"customButtons",{get:function(){return this.api.user.isAdmin?this.cButtons:[]},enumerable:!1,configurable:!0}),t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New account"))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit account"))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete account"))},t.prototype.onTimeMark=function(t){var e=this,n=t.table.selection.selected[0];this.api.gui.yesno(django.gettext("Time mark"),django.gettext("Set time mark for $NAME to current date/time?").replace("$NAME",n.name)).subscribe(function(i){i&&e.rest.accounts.timemark(n.id).subscribe(function(){e.api.gui.snackbar.open(django.gettext("Time mark stablished"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()})})},t.prototype.onDetail=function(t){this.api.navigation.gotoAccountDetail(t.param.id)},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("account"))},t.prototype.processElement=function(t){t.time_mark=78793200===t.time_mark?django.gettext("No time mark"):aO("SHORT_DATE_FORMAT",t.time_mark)},t.\u0275fac=function(e){return new(e||t)(cs(mg),cs(XI),cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-accounts"]],decls:1,vars:7,consts:[["icon","accounts",3,"rest","multiSelect","allowExport","hasPermissions","customButtons","pageSize","onItem","customButtonAction","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(fs(0,"uds-table",0),ks("customButtonAction",function(t){return e.onTimeMark(t)})("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("detailAction",function(t){return e.onDetail(t)})("loaded",function(t){return e.onLoad(t)}),ps()),2&t&&hs("rest",e.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",e.customButtons)("pageSize",e.api.config.admin.page_size)("onItem",e.processElement)},directives:[pR],styles:[""]}),t}();function DV(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Account usage"),ps())}function PV(t,e){if(1&t){var n=_s();fs(0,"div",6),fs(1,"div",7),fs(2,"mat-tab-group",8),fs(3,"mat-tab"),ls(4,DV,2,0,"ng-template",9),fs(5,"div",10),fs(6,"uds-table",11),ks("deleteAction",function(t){return en(n),Is().onDeleteUsage(t)}),ps(),ps(),ps(),ps(),ps(),ps()}if(2&t){var i=Is();Po(2),hs("@.disabled",!0),Po(4),hs("rest",i.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",i.processElement)("tableId","account-d-usage"+i.account.id)}}var EV=function(t){return["/pools","accounts",t]},RV=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("account");this.rest.accounts.get(e).subscribe(function(e){t.account=e,t.accountUsage=t.rest.accounts.detail(e.id,"usage")})},t.prototype.onDeleteUsage=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete account usage"))},t.prototype.processElement=function(t){t.running=this.api.yesno(t.running)},t.\u0275fac=function(e){return new(e||t)(cs(mg),cs(XI),cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-accounts-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","accounts",3,"rest","multiSelect","allowExport","onItem","tableId","deleteAction"]],template:function(t,e){1&t&&(fs(0,"div",0),fs(1,"div",1),fs(2,"a",2),fs(3,"i",3),Qs(4,"arrow_back"),ps(),ps(),Qs(5," \xa0"),gs(6,"img",4),Qs(7),ps(),ls(8,PV,7,6,"div",5),ps()),2&t&&(Po(2),hs("routerLink",Su(4,EV,e.account?e.account.id:"")),Po(4),hs("src",e.api.staticURL("admin/img/icons/accounts.png"),Or),Po(1),tl(" ",null==e.account?null:e.account.name," "),Po(1),hs("ngIf",e.account))},directives:[qm,Dh,hA,eA,QM,pR,QC],styles:[""]}),t}();function LV(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"New image for"),ps())}function NV(t,e){1&t&&(fs(0,"uds-translate"),Qs(1,"Edit for"),ps())}var FV=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Nu(!0),this.preview="",this.image={id:void 0,data:"",name:""},i.image&&(this.image.id=i.image.id)}return t.launch=function(e,n){void 0===n&&(n=null);var i=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:n},disableClose:!0}).componentInstance.onSave},t.prototype.onFileChanged=function(t){var e=this,n=t.target.files[0];if(n.size>262144)this.api.gui.alert(django.gettext("Error"),django.gettext("Image is too big (max. upload size is 256Kb)"));else if(["image/jpeg","image/png","image/gif"].includes(n.type)){var i=new FileReader;i.onload=function(t){var r=i.result;e.preview=r,e.image.data=r.substr(r.indexOf("base64,")+7),e.image.name||(e.image.name=n.name)},i.readAsDataURL(n)}else this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG and GIF"))},t.prototype.ngOnInit=function(){var t=this;this.image.id&&this.rest.gallery.get(this.image.id).subscribe(function(e){switch(t.image=e,t.image.data.substr(2)){case"iV":t.preview="data:image/png;base64,"+t.image.data;break;case"/9":t.preview="data:image/jpeg;base64,"+t.image.data;break;default:t.preview="data:image/gif;base64,"+t.image.data}})},t.prototype.background=function(){var t=this.api.config.image_size[0],e=this.api.config.image_size[1],n={"width.px":t,"height.px":e,"background-size":t+"px "+e+"px"};return this.preview&&(n["background-image"]="url("+this.preview+")"),n},t.prototype.save=function(){var t=this;this.image.name&&this.image.data?this.rest.gallery.save(this.image).subscribe(function(){t.api.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),t.dialogRef.close(),t.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, provide a name and a image"))},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-gallery-image"]],decls:32,vars:7,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],["type","file",2,"display","none",3,"change"],["fileInput",""],["matInput","","type","text",3,"hidden","click"],[1,"preview",3,"click"],[1,"image-preview",3,"ngStyle"],[1,"help"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,e){if(1&t){var n=_s();fs(0,"h4",0),ls(1,LV,2,0,"uds-translate",1),ls(2,NV,2,0,"uds-translate",1),ps(),fs(3,"mat-dialog-content"),fs(4,"div",2),fs(5,"mat-form-field"),fs(6,"mat-label"),fs(7,"uds-translate"),Qs(8,"Image name"),ps(),ps(),fs(9,"input",3),ks("ngModelChange",function(t){return e.image.name=t}),ps(),ps(),fs(10,"input",4,5),ks("change",function(t){return e.onFileChanged(t)}),ps(),fs(12,"mat-form-field"),fs(13,"mat-label"),fs(14,"uds-translate"),Qs(15,"Image (click to change)"),ps(),ps(),fs(16,"input",6),ks("click",function(){return en(n),us(11).click()}),ps(),fs(17,"div",7),ks("click",function(){return en(n),us(11).click()}),gs(18,"div",8),ps(),ps(),fs(19,"div",9),fs(20,"uds-translate"),Qs(21,' For optimal results, use "squared" images. '),ps(),fs(22,"uds-translate"),Qs(23," The image will be resized on upload to "),ps(),Qs(24),ps(),ps(),ps(),fs(25,"mat-dialog-actions"),fs(26,"button",10),fs(27,"uds-translate"),Qs(28,"Cancel"),ps(),ps(),fs(29,"button",11),ks("click",function(){return e.save()}),fs(30,"uds-translate"),Qs(31,"Ok"),ps(),ps(),ps()}2&t&&(Po(1),hs("ngIf",!e.image.id),Po(1),hs("ngIf",e.image.id),Po(7),hs("ngModel",e.image.name),Po(7),hs("hidden",!0),Po(2),hs("ngStyle",e.background()),Po(6),el(" ",e.api.config.image_size[0],"x",e.api.config.image_size[1]," "))},directives:[zC,Dh,VC,gT,aT,QC,TP,fS,BS,gM,zh,BC,ZC,FC],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%], .preview[_ngcontent-%COMP%]{width:100%}.preview[_ngcontent-%COMP%]{display:flex;justify-content:flex-start}.image-preview[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.3)}"]}),t}(),zV=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){FV.launch(this.api).subscribe(function(){return t.table.overview()})},t.prototype.onEdit=function(t){FV.launch(this.api,t.table.selection.selected[0]).subscribe(function(){return t.table.overview()})},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete image"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("image"))},t.\u0275fac=function(e){return new(e||t)(cs(mg),cs(XI),cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-gallery"]],decls:1,vars:5,consts:[["icon","gallery",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(fs(0,"uds-table",0),ks("newAction",function(t){return e.onNew(t)})("editAction",function(t){return e.onEdit(t)})("deleteAction",function(t){return e.onDelete(t)})("loaded",function(t){return e.onLoad(t)}),ps()),2&t&&hs("rest",e.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",e.api.config.admin.page_size)},directives:[pR],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]}),t}(),VV='assessment'+django.gettext("Generate report")+"",BV=function(){function t(t,e){this.rest=t,this.api=e,this.customButtons=[{id:"genreport",html:VV,type:YA.SINGLE_SELECT}]}return t.prototype.ngOnInit=function(){},t.prototype.generateReport=function(t){var e=this,n=new Nu;n.subscribe(function(n){e.api.gui.snackbar.open(django.gettext("Generating report...")),e.rest.reports.save(n,t.table.selection.selected[0].id).subscribe(function(t){for(var n=t.encoded?window.atob(t.data):t.data,i=n.length,r=new Uint8Array(i),o=0;o div[_ngcontent-%COMP%]{width:50%}.mat-form-field[_ngcontent-%COMP%]{width:100%}input[readonly][_ngcontent-%COMP%]{background-color:#e0e0e0}.slider-label[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}.config-footer[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;margin-top:2rem;margin-bottom:2rem}"]}),t}()},{path:"tools/tokens/actor",component:function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(mg),cs(XI))},t.\u0275cmp=ce({type:t,selectors:[["uds-actor-tokens"]],decls:2,vars:4,consts:[["icon","accounts",3,"rest","multiSelect","allowExport","pageSize","deleteAction"]],template:function(t,e){1&t&&(fs(0,"div"),fs(1,"uds-table",0),ks("deleteAction",function(t){return e.onDelete(t)}),ps(),ps()),2&t&&(Po(1),hs("rest",e.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",e.api.config.admin.page_size))},directives:[pR],styles:[""]}),t}()},{path:"tools/tokens/tunnel",component:function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete tunnel token - USE WITH EXTREME CAUTION!!!"))},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(mg),cs(XI))},t.\u0275cmp=ce({type:t,selectors:[["uds-tunnel-tokens"]],decls:2,vars:4,consts:[["icon","proxy",3,"rest","multiSelect","allowExport","pageSize","deleteAction"]],template:function(t,e){1&t&&(fs(0,"div"),fs(1,"uds-table",0),ks("deleteAction",function(t){return e.onDelete(t)}),ps(),ps()),2&t&&(Po(1),hs("rest",e.rest.tunnelToken)("multiSelect",!0)("allowExport",!0)("pageSize",e.api.config.admin.page_size))},directives:[pR],styles:[""]}),t}()}]},{path:"**",redirectTo:"summary"}],rB=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[av.forRoot(iB,{relativeLinkResolution:"legacy"})],av]}),t}(),oB=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({}),t}(),aB=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[sC,Tk,F_,oB],Tk,oB]}),t}(),sB=["*"],lB=new _i("MatChipRemove"),uB=new _i("MatChipAvatar"),cB=new _i("MatChipTrailingIcon"),hB=Rk(Pk(Ek(function t(e){s(this,t),this._elementRef=e}),"primary"),-1),dB=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l,u,c){var h;return s(this,n),(h=e.call(this,t))._elementRef=t,h._ngZone=i,h._changeDetectorRef=a,h._hasFocus=!1,h.chipListSelectable=!0,h._chipListMultiple=!1,h._chipListDisabled=!1,h._selected=!1,h._selectable=!0,h._disabled=!1,h._removable=!0,h._onFocus=new U,h._onBlur=new U,h.selectionChange=new Nu,h.destroyed=new Nu,h.removed=new Nu,h._addHostClassName(),h._chipRippleTarget=l.createElement("div"),h._chipRippleTarget.classList.add("mat-chip-ripple"),h._elementRef.nativeElement.appendChild(h._chipRippleTarget),h._chipRipple=new nC(d(h),i,h._chipRippleTarget,r),h._chipRipple.setupTriggerEvents(t),h.rippleConfig=o||{},h._animationsDisabled="NoopAnimations"===u,h.tabIndex=null!=c&&parseInt(c)||-1,h}return a(n,[{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(t){var e=vv(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(t){this._value=t}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(t){this._selectable=vv(t)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(t){this._disabled=vv(t)}},{key:"removable",get:function(){return this._removable},set:function(t){this._removable=vv(t)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}},{key:"_addHostClassName",value:function(){var t="mat-basic-chip",e=this._elementRef.nativeElement;e.hasAttribute(t)||e.tagName.toLowerCase()===t?e.classList.add(t):e.classList.add("mat-standard-chip")}},{key:"ngOnDestroy",value:function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}},{key:"select",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"deselect",value:function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}},{key:"selectViaInteraction",value:function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}},{key:"toggleSelected",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(t),this._changeDetectorRef.markForCheck(),this.selected}},{key:"focus",value:function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}},{key:"remove",value:function(){this.removable&&this.removed.emit({chip:this})}},{key:"_handleClick",value:function(t){this.disabled?t.preventDefault():t.stopPropagation()}},{key:"_handleKeydown",value:function(t){if(!this.disabled)switch(t.keyCode){case 46:case 8:this.remove(),t.preventDefault();break;case zy:this.selectable&&this.toggleSelected(!0),t.preventDefault()}}},{key:"_blur",value:function(){var t=this;this._ngZone.onStable.pipe(Nf(1)).subscribe(function(){t._ngZone.run(function(){t._hasFocus=!1,t._onBlur.next({chip:t})})})}},{key:"_dispatchSelectionChange",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})}}]),n}(hB);return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(kc),cs(oy),cs(oC,8),cs(Jl),cs(oh),cs(yk,8),mi("tabindex"))},t.\u0275dir=me({type:t,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,n){var i;1&t&&(Ku(n,uB,5),Ku(n,cB,5),Ku(n,lB,5)),2&t&&(Xu(i=$u())&&(e.avatar=i.first),Xu(i=$u())&&(e.trailingIcon=i.first),Xu(i=$u())&&(e.removeIcon=i.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(t,e){1&t&&ks("click",function(t){return e._handleClick(t)})("keydown",function(t){return e._handleKeydown(t)})("focus",function(){return e.focus()})("blur",function(){return e._blur()}),2&t&&(as("tabindex",e.disabled?null:e.tabIndex)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),Hs("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[qa]}),t}(),fB=function(){var t=function(){function t(e,n){s(this,t),this._parentChip=e,"BUTTON"===n.nativeElement.nodeName&&n.nativeElement.setAttribute("type","button")}return a(t,[{key:"_handleClick",value:function(t){var e=this._parentChip;e.removable&&!e.disabled&&e.remove(),t.stopPropagation()}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(dB),cs(Al))},t.\u0275dir=me({type:t,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(t,e){1&t&&ks("click",function(t){return e._handleClick(t)})},features:[_l([{provide:lB,useExisting:t}])]}),t}(),pB=new _i("mat-chips-default-options"),gB=Lk(function(){return function t(e,n,i,r){s(this,t),this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}}()),mB=0,vB=function t(e,n){s(this,t),this.source=e,this.value=n},yB=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r,o,a,l,u){var c;return s(this,n),(c=e.call(this,l,o,a,u))._elementRef=t,c._changeDetectorRef=i,c._dir=r,c.ngControl=u,c.controlType="mat-chip-list",c._lastDestroyedChipIndex=null,c._destroyed=new U,c._uid="mat-chip-list-".concat(mB++),c._tabIndex=0,c._userTabIndex=null,c._onTouched=function(){},c._onChange=function(){},c._multiple=!1,c._compareWith=function(t,e){return t===e},c._required=!1,c._disabled=!1,c.ariaOrientation="horizontal",c._selectable=!0,c.change=new Nu,c.valueChange=new Nu,c.ngControl&&(c.ngControl.valueAccessor=d(c)),c}return a(n,[{key:"selected",get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(t){this._multiple=vv(t),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(t){this.writeValue(t),this._value=t}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){return this._required},set:function(t){this._required=vv(t),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()}},{key:"focused",get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}},{key:"empty",get:function(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}},{key:"shouldLabelFloat",get:function(){return!this.empty||this.focused}},{key:"disabled",get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(t){this._disabled=vv(t),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(t){var e=this;this._selectable=vv(t),this.chips&&this.chips.forEach(function(t){return t.chipListSelectable=e._selectable})}},{key:"tabIndex",set:function(t){this._userTabIndex=t,this._tabIndex=t}},{key:"chipSelectionChanges",get:function(){return dt.apply(void 0,b(this.chips.map(function(t){return t.selectionChange})))}},{key:"chipFocusChanges",get:function(){return dt.apply(void 0,b(this.chips.map(function(t){return t._onFocus})))}},{key:"chipBlurChanges",get:function(){return dt.apply(void 0,b(this.chips.map(function(t){return t._onBlur})))}},{key:"chipRemoveChanges",get:function(){return dt.apply(void 0,b(this.chips.map(function(t){return t.destroyed})))}},{key:"ngAfterContentInit",value:function(){var t=this;this._keyManager=new K_(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Xv(this._destroyed)).subscribe(function(e){return t._keyManager.withHorizontalOrientation(e)}),this._keyManager.tabOut.pipe(Xv(this._destroyed)).subscribe(function(){t._allowFocusEscape()}),this.chips.changes.pipe(Vf(null),Xv(this._destroyed)).subscribe(function(){t.disabled&&Promise.resolve().then(function(){t._syncChipsState()}),t._resetChips(),t._initializeSelection(),t._updateTabIndex(),t._updateFocusForDestroyedChips(),t.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new _y(this.multiple,void 0,!1),this.stateChanges.next()}},{key:"ngDoCheck",value:function(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}},{key:"ngOnDestroy",value:function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}},{key:"registerInput",value:function(t){this._chipInput=t,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",t.id)}},{key:"setDescribedByIds",value:function(t){this._ariaDescribedby=t.join(" ")}},{key:"writeValue",value:function(t){this.chips&&this._setSelectionByValue(t,!1)}},{key:"registerOnChange",value:function(t){this._onChange=t}},{key:"registerOnTouched",value:function(t){this._onTouched=t}},{key:"setDisabledState",value:function(t){this.disabled=t,this.stateChanges.next()}},{key:"onContainerClick",value:function(t){this._originatesFromChip(t)||this.focus()}},{key:"focus",value:function(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))}},{key:"_focusInput",value:function(t){this._chipInput&&this._chipInput.focus(t)}},{key:"_keydown",value:function(t){var e=t.target;e&&e.classList.contains("mat-chip")&&(this._keyManager.onKeydown(t),this.stateChanges.next())}},{key:"_updateTabIndex",value:function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}},{key:"_updateFocusForDestroyedChips",value:function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(t){return t>=0&&t1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(t){return t.deselect()}),Array.isArray(t))t.forEach(function(t){return e._selectValue(t,n)}),this._sortValues();else{var i=this._selectValue(t,n);i&&n&&this._keyManager.setActiveItem(i)}}},{key:"_selectValue",value:function(t){var e=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.chips.find(function(n){return null!=n.value&&e._compareWith(n.value,t)});return i&&(n?i.selectViaInteraction():i.select(),this._selectionModel.select(i)),i}},{key:"_initializeSelection",value:function(){var t=this;Promise.resolve().then(function(){(t.ngControl||t._value)&&(t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value,!1),t.stateChanges.next())})}},{key:"_clearSelection",value:function(t){this._selectionModel.clear(),this.chips.forEach(function(e){e!==t&&e.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var t=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(e){e.selected&&t._selectionModel.select(e)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(t){var e;e=Array.isArray(this.selected)?this.selected.map(function(t){return t.value}):this.selected?this.selected.value:t,this._value=e,this.change.emit(new vB(this,e)),this.valueChange.emit(e),this._onChange(e),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var t=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){t.focused||t._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var t=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){t._tabIndex=t._userTabIndex||0,t._changeDetectorRef.markForCheck()}))}},{key:"_resetChips",value:function(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}},{key:"_dropSubscriptions",value:function(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}},{key:"_listenToChipsSelection",value:function(){var t=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(e){e.source.selected?t._selectionModel.select(e.source):t._selectionModel.deselect(e.source),t.multiple||t.chips.forEach(function(e){!t._selectionModel.isSelected(e)&&e.selected&&e.deselect()}),e.isUserInput&&t._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var t=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(e){var n=t.chips.toArray().indexOf(e.chip);t._isValidIndex(n)&&t._keyManager.updateActiveItem(n),t.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){t._blur(),t.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var t=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(e){var n=e.chip,i=t.chips.toArray().indexOf(e.chip);t._isValidIndex(i)&&n._hasFocus&&(t._lastDestroyedChipIndex=i)})}},{key:"_originatesFromChip",value:function(t){for(var e=t.target;e&&e!==this._elementRef.nativeElement;){if(e.classList.contains("mat-chip"))return!0;e=e.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(t){return t._hasFocus})}},{key:"_syncChipsState",value:function(){var t=this;this.chips&&this.chips.forEach(function(e){e._chipListDisabled=t._disabled,e._chipListMultiple=t.multiple})}}]),n}(gB);return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(Jl),cs(py,8),cs(dM,8),cs(wM,8),cs(Kk),cs(zS,10))},t.\u0275cmp=ce({type:t,selectors:[["mat-chip-list"]],contentQueries:function(t,e,n){var i;1&t&&Ku(n,dB,5),2&t&&Xu(i=$u())&&(e.chips=i)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(t,e){1&t&&ks("focus",function(){return e.focus()})("blur",function(){return e._blur()})("keydown",function(t){return e._keydown(t)}),2&t&&(nl("id",e._uid),as("tabindex",e.disabled?null:e._tabIndex)("aria-describedby",e._ariaDescribedby||null)("aria-required",e.role?e.required:null)("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-multiselectable",e.multiple)("role",e.role)("aria-orientation",e.ariaOrientation),Hs("mat-chip-list-disabled",e.disabled)("mat-chip-list-invalid",e.errorState)("mat-chip-list-required",e.required))},inputs:{ariaOrientation:["aria-orientation","ariaOrientation"],multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",selectable:"selectable",tabIndex:"tabIndex",errorStateMatcher:"errorStateMatcher"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[_l([{provide:rT,useExisting:t}]),qa],ngContentSelectors:sB,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(t,e){1&t&&(Ts(),fs(0,"div",0),Ds(1),ps())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;transform:translateZ(0);border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove.mat-icon{width:18px;height:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),t}(),_B=0,bB=function(){var t=function(){function t(e,n){s(this,t),this._elementRef=e,this._defaultOptions=n,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new Nu,this.placeholder="",this.id="mat-chip-list-input-".concat(_B++),this._disabled=!1,this.inputElement=this._elementRef.nativeElement}return a(t,[{key:"chipList",set:function(t){t&&(this._chipList=t,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(t){this._addOnBlur=vv(t)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(t){this._disabled=vv(t)}},{key:"empty",get:function(){return!this.inputElement.value}},{key:"ngOnChanges",value:function(){this._chipList.stateChanges.next()}},{key:"ngOnDestroy",value:function(){this.chipEnd.complete()}},{key:"ngAfterContentInit",value:function(){this._focusLastChipOnBackspace=this.empty}},{key:"_keydown",value:function(t){if(t){if(9!==t.keyCode||Wy(t,"shiftKey")||this._chipList._allowFocusEscape(),8===t.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void t.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(t)}},{key:"_keyup",value:function(t){!this._focusLastChipOnBackspace&&8===t.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,t.preventDefault())}},{key:"_blur",value:function(){this.addOnBlur&&this._emitChipEnd(),this.focused=!1,this._chipList.focused||this._chipList._blur(),this._chipList.stateChanges.next()}},{key:"_focus",value:function(){this.focused=!0,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(t){!this.inputElement.value&&t&&this._chipList._keydown(t),t&&!this._isSeparatorKey(t)||(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==t||t.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(t){this.inputElement.focus(t)}},{key:"clear",value:function(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}},{key:"_isSeparatorKey",value:function(t){return!Wy(t)&&new Set(this.separatorKeyCodes).has(t.keyCode)}}]),t}();return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(pB))},t.\u0275dir=me({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(t,e){1&t&&ks("keydown",function(t){return e._keydown(t)})("keyup",function(t){return e._keyup(t)})("blur",function(){return e._blur()})("focus",function(){return e._focus()})("input",function(){return e._onInput()}),2&t&&(nl("id",e.id),as("disabled",e.disabled||null)("placeholder",e.placeholder||null)("aria-invalid",e._chipList&&e._chipList.ngControl?e._chipList.ngControl.invalid:null)("aria-required",e._chipList&&e._chipList.required||null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[Te]}),t}(),xB={separatorKeyCodes:[Ny]},wB=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[Kk,{provide:pB,useValue:xB}],imports:[[Tk]]}),t}(),kB=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({}),t}(),CB=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[Yh,Tk,kB,Ey]]}),t}(),SB=["*",[["mat-toolbar-row"]]],MB=["*","mat-toolbar-row"],AB=Pk(function(){return function t(e){s(this,t),this._elementRef=e}}()),IB=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=me({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t}(),OB=function(){var t=function(t){u(n,t);var e=p(n);function n(t,i,r){var o;return s(this,n),(o=e.call(this,t))._platform=i,o._document=r,o}return a(n,[{key:"ngAfterViewInit",value:function(){var t=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return t._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(AB);return t.\u0275fac=function(e){return new(e||t)(cs(Al),cs(oy),cs(oh))},t.\u0275cmp=ce({type:t,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){var i;1&t&&Ku(n,IB,5),2&t&&Xu(i=$u())&&(e._toolbarRows=i)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&Hs("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[qa],ngContentSelectors:MB,decls:2,vars:0,template:function(t,e){1&t&&(Ts(SB),Ds(0),Ds(1,1))},styles:[".cdk-high-contrast-active .mat-toolbar{outline:solid 1px}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}\n"],encapsulation:2,changeDetection:0}),t}(),TB=function(){var t=function t(){s(this,t)};return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({imports:[[Tk],Tk]}),t}(),DB=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t}),t.\u0275inj=Et({providers:[{provide:fT,useValue:{floatLabel:"always"}},{provide:zk,useValue:udsData.language}],imports:[Yh,TM,DM,TB,$C,CE,ZT,CB,jC,mT,DP,zT,eV,Zk,gP,lD,xD,oE,aB,yA,wB,dV,ML,iL,yI,ME,JP]}),t}();function PB(t,e){if(1&t){var n=_s();fs(0,"button",6),ks("click",function(){var t=en(n).$implicit;return Is().changeLang(t)}),Qs(1),ps()}if(2&t){var i=e.$implicit;Po(1),Js(i.name)}}function EB(t,e){if(1&t&&(fs(0,"button",12),fs(1,"i",7),Qs(2,"face"),ps(),Qs(3),ps()),2&t){var n=Is();hs("matMenuTriggerFor",us(7)),Po(3),Js(n.api.user.user)}}function RB(t,e){if(1&t&&(fs(0,"button",18),Qs(1),fs(2,"i",7),Qs(3,"arrow_drop_down"),ps(),ps()),2&t){var n=Is();hs("matMenuTriggerFor",us(7)),Po(1),tl("",n.api.user.user," ")}}var LB=function(){function t(t){this.api=t,this.isNavbarCollapsed=!0;var e=t.config.language;this.langs=[];for(var n=0,i=t.config.available_languages;n .mat-button[_ngcontent-%COMP%]{padding-left:1.5rem}.submenu2[_ngcontent-%COMP%] > .mat-button[_ngcontent-%COMP%]{padding-left:1.8rem}.icon[_ngcontent-%COMP%]{width:24px;margin:0 1em 0 0} .dark-theme .sidebar{box-shadow:0 16px 38px -12px rgba(48,48,48,.56),0 4px 25px 0 rgba(48,48,48,.12),0 8px 10px -5px rgba(48,48,48,.2)} .dark-theme .sidebar:hover .sidebar-link{color:#fff!important}"]}),t}();function BB(t,e){1&t&&gs(0,"div",1),2&t&&hs("innerHTML",Is().messages,Ir)}var HB=function(){function t(t){this.api=t,this.messages="",this.visible=!1}return t.prototype.ngOnInit=function(){var t=this;if(this.api.notices.length>0){var e='
';this.messages='
'+e+this.api.notices.map(function(t){return t.replace(/ /gm," ").replace(/([A-Z]+[A-Z]+)/gm,"$1").replace(/([0-9]+)/gm,"$1")}).join("
"+e)+"
",this.api.gui.alert("",this.messages,0,"80%").subscribe(function(){t.visible=!0})}},t.\u0275fac=function(e){return new(e||t)(cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-notices"]],decls:1,vars:1,consts:[["class","notice",3,"innerHTML",4,"ngIf"],[1,"notice",3,"innerHTML"]],template:function(t,e){1&t&&ls(0,BB,1,1,"div",0),2&t&&hs("ngIf",e.visible)},directives:[Dh],styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:#4682b4;border-radius:3px;box-shadow:0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(70,93,156,.4);box-sizing:border-box;color:#fff;margin:1rem 2rem 0;padding:15px;word-wrap:break-word;display:flex;flex-direction:column} .warn-notice{display:block;width:100%;text-align:center;font-size:1.1em;margin-bottom:.5rem}"]}),t}(),jB=function(){function t(){}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-footer"]],decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(t,e){1&t&&(fs(0,"div"),Qs(1,"\xa9 2012-2020 "),fs(2,"a",0),Qs(3,"Virtual Cable S.L.U."),ps(),ps())},styles:[""]}),t}(),GB=function(){function t(t){this.api=t,this.title="UDS Admin",this.blackTheme=!1}return t.prototype.handleKeyboardEvent=function(t){t.altKey&&t.ctrlKey&&"b"===t.key&&(this.blackTheme=!this.blackTheme,this.api.switchTheme(this.blackTheme))},t.prototype.ngOnInit=function(){this.api.switchTheme(this.blackTheme)},t.\u0275fac=function(e){return new(e||t)(cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-root"]],hostBindings:function(t,e){1&t&&ks("keydown",function(t){return e.handleKeyboardEvent(t)},!1,Vr)},decls:8,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(t,e){1&t&&(gs(0,"uds-navbar"),gs(1,"uds-sidebar"),fs(2,"div",0),fs(3,"div",1),gs(4,"uds-notices"),gs(5,"router-outlet"),ps(),fs(6,"div",2),gs(7,"uds-footer"),ps(),ps())},directives:[LB,VB,HB,Zm,jB],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:calc(100% - 56px - 8px);margin:4rem auto auto 56px;padding-left:8px;overflow-x:hidden}"]}),t}(),UB=function(t){function e(){var e=t.call(this)||this;return e.itemsPerPageLabel=django.gettext("Items per page"),e}return MI(e,t),e.\u0275prov=Pt({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(nD),WB=function(){function t(){this.changed=new Nu}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:7,consts:[["appearance","standard"],["matInput","","type","text",3,"ngModel","placeholder","required","disabled","maxlength","autocomplete","ngModelChange","change"]],template:function(t,e){1&t&&(fs(0,"mat-form-field",0),fs(1,"mat-label"),Qs(2),ps(),fs(3,"input",1),ks("ngModelChange",function(t){return e.field.value=t})("change",function(){return e.changed.emit(e)}),ps(),ps()),2&t&&(Po(2),tl(" ",e.field.gui.label," "),Po(1),hs("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly)("maxlength",e.field.gui.length||128)("autocomplete","new-"+e.field.name))},directives:[gT,aT,TP,fS,BS,gM,SM,IM],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]}),t}(),YB=function(){function t(){this.changed=new Nu}return t.prototype.ngOnInit=function(){this.field.value||0===this.field.value||(this.field.value=this.field.gui.defvalue)},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field-numeric"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","always"],["matInput","","type","number",3,"ngModel","placeholder","required","disabled","ngModelChange","change"]],template:function(t,e){1&t&&(fs(0,"mat-form-field",0),fs(1,"mat-label"),Qs(2),ps(),fs(3,"input",1),ks("ngModelChange",function(t){return e.field.value=t})("change",function(){return e.changed.emit(e)}),ps(),ps()),2&t&&(Po(2),tl(" ",e.field.gui.label," "),Po(1),hs("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly))},directives:[gT,aT,TP,yM,fS,BS,gM,SM],styles:[""]}),t}(),qB=function(){function t(){this.changed=new Nu,this.passwordType="password"}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:6,consts:[["appearance","standard","floatLabel","always"],["matInput","","autocomplete","new-password",3,"ngModel","placeholder","required","disabled","type","ngModelChange","change"],["mat-button","","matSuffix","","mat-icon-button","",3,"click"],["matSuffix","",1,"material-icons"]],template:function(t,e){1&t&&(fs(0,"mat-form-field",0),fs(1,"mat-label"),Qs(2),ps(),fs(3,"input",1),ks("ngModelChange",function(t){return e.field.value=t})("change",function(){return e.changed.emit(e)}),ps(),fs(4,"a",2),ks("click",function(){return e.passwordType="text"===e.passwordType?"password":"text"}),fs(5,"i",3),Qs(6,"remove_red_eye"),ps(),ps(),ps()),2&t&&(Po(2),tl(" ",e.field.gui.label," "),Po(1),hs("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly)("type",e.passwordType))},directives:[gT,aT,TP,fS,BS,gM,SM,KC,cT],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]}),t}(),XB=function(){function t(){}return t.prototype.ngOnInit=function(){""!==this.field.value&&void 0!==this.field.value||(this.field.value=this.field.gui.defvalue)},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field-hidden"]],inputs:{field:"field"},decls:0,vars:0,template:function(t,e){},styles:[""]}),t}(),ZB=function(){function t(){}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field-textbox"]],inputs:{field:"field",value:"value"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","auto"],["matInput","","type","text",3,"ngModel","placeholder","required","readonly","ngModelChange"]],template:function(t,e){1&t&&(fs(0,"mat-form-field",0),fs(1,"mat-label"),Qs(2),ps(),fs(3,"textarea",1),ks("ngModelChange",function(t){return e.field.value=t}),ps(),ps()),2&t&&(Po(2),tl(" ",e.field.gui.label," "),Po(1),hs("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",e.field.gui.required)("readonly",e.field.gui.rdonly))},directives:[gT,aT,TP,fS,BS,gM,SM],styles:[""]}),t}();function KB(t,e){if(1&t){var n=_s();fs(0,"uds-mat-select-search",3),ks("changed",function(t){return en(n),Is().filter=t}),ps()}}function $B(t,e){if(1&t&&(fs(0,"mat-option",4),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.text," ")}}var QB=function(){function t(){this.changed=new Nu,this.filter=""}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,""===this.field.value&&this.field.gui.values.length>0&&(this.field.value=this.field.gui.values[0].id),this.field.value=""+this.field.value},t.prototype.filteredValues=function(){if(!this.filter)return this.field.gui.values;var t=this.filter.toLocaleLowerCase();return this.field.gui.values.filter(function(e){return e.text.toLocaleLowerCase().includes(t)})},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:7,consts:[[3,"ngModel","placeholder","required","disabled","ngModelChange","valueChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(fs(0,"mat-form-field"),fs(1,"mat-label"),Qs(2),ps(),fs(3,"mat-select",0),ks("ngModelChange",function(t){return e.field.value=t})("valueChange",function(){return e.changed.emit(e)}),ls(4,KB,1,0,"uds-mat-select-search",1),ls(5,$B,2,2,"mat-option",2),ps(),ps()),2&t&&(Po(2),tl(" ",e.field.gui.label," "),Po(1),hs("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),Po(1),hs("ngIf",e.field.gui.values.length>10),Po(1),hs("ngForOf",e.filteredValues()))},directives:[gT,aT,FT,BS,gM,SM,Dh,Oh,NP,yC],styles:[""]}),t}();function JB(t,e){if(1&t){var n=_s();fs(0,"uds-mat-select-search",3),ks("changed",function(t){return en(n),Is().filter=t}),ps()}}function tH(t,e){if(1&t&&(fs(0,"mat-option",4),Qs(1),ps()),2&t){var n=e.$implicit;hs("value",n.id),Po(1),tl(" ",n.text," ")}}var eH=function(){function t(){this.changed=new Nu,this.filter=""}return t.prototype.ngOnInit=function(){this.field.value=void 0,void 0!==this.field.values?this.field.values.forEach(function(t,e,n){n[e]=""+t.id}):this.field.values=new Array},t.prototype.filteredValues=function(){if(!this.filter)return this.field.gui.values;var t=this.filter.toLocaleLowerCase();return this.field.gui.values.filter(function(e){return e.text.toLocaleLowerCase().includes(t)})},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field-multichoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:7,consts:[["multiple","",3,"ngModel","placeholder","required","disabled","ngModelChange","valueChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(fs(0,"mat-form-field"),fs(1,"mat-label"),Qs(2),ps(),fs(3,"mat-select",0),ks("ngModelChange",function(t){return e.field.values=t})("valueChange",function(){return e.changed.emit(e)}),ls(4,JB,1,0,"uds-mat-select-search",1),ls(5,tH,2,2,"mat-option",2),ps(),ps()),2&t&&(Po(2),tl(" ",e.field.gui.label," "),Po(1),hs("ngModel",e.field.values)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),Po(1),hs("ngIf",e.field.gui.values.length>10),Po(1),hs("ngForOf",e.filteredValues()))},directives:[gT,aT,FT,BS,gM,SM,Dh,Oh,NP,yC],styles:[""]}),t}();function nH(t,e){if(1&t){var n=_s();fs(0,"div",12),fs(1,"div",13),Qs(2),ps(),fs(3,"div",14),Qs(4," \xa0"),fs(5,"a",15),ks("click",function(){var t=en(n).index;return Is().removeElement(t)}),fs(6,"i",16),Qs(7,"close"),ps(),ps(),ps(),ps()}if(2&t){var i=e.$implicit;Po(2),tl(" ",i," ")}}var iH=function(){function t(t,e,n,i){var r=this;this.api=t,this.rest=e,this.dialogRef=n,this.data=i,this.values=[],this.input="",this.onSave=new Nu(!0),this.data.values.forEach(function(t){return r.values.push(t)})}return t.launch=function(e,n,i){var r=window.innerWidth<800?"50%":"30%";return e.gui.dialog.open(t,{width:r,data:{title:n,values:i},disableClose:!0}).componentInstance.onSave},t.prototype.addElements=function(){var t=this;this.input.split(",").forEach(function(e){t.values.push(e)}),this.input=""},t.prototype.checkKey=function(t){"Enter"===t.code&&this.addElements()},t.prototype.removeAll=function(){this.values.length=0},t.prototype.removeElement=function(t){this.values.splice(t,1)},t.prototype.save=function(){var t=this;this.data.values.length=0,this.values.forEach(function(e){return t.data.values.push(e)}),this.onSave.emit(this.values),this.dialogRef.close()},t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)(cs(kI),cs(XI),cs(IC),cs(TC))},t.\u0275cmp=ce({type:t,selectors:[["uds-editlist-editor"]],decls:23,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[1,"list"],["class","elem",4,"ngFor","ngForOf"],[1,"buttons"],["mat-raised-button","","color","warn",3,"click"],[1,"input"],[1,"example-full-width"],["type","text","matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","",1,"material-icons",3,"click"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[1,"elem"],[1,"val"],[1,"remove"],[3,"click"],[1,"material-icons"]],template:function(t,e){1&t&&(fs(0,"h4",0),Qs(1),ps(),fs(2,"mat-dialog-content"),fs(3,"div",1),fs(4,"div",2),ls(5,nH,8,1,"div",3),ps(),fs(6,"div",4),fs(7,"button",5),ks("click",function(){return e.removeAll()}),fs(8,"uds-translate"),Qs(9,"Remove all"),ps(),ps(),ps(),fs(10,"div",6),fs(11,"mat-form-field",7),fs(12,"input",8),ks("keyup",function(t){return e.checkKey(t)})("ngModelChange",function(t){return e.input=t}),ps(),fs(13,"button",9),ks("click",function(){return e.addElements()}),fs(14,"uds-translate"),Qs(15,"Add"),ps(),ps(),ps(),ps(),ps(),ps(),fs(16,"mat-dialog-actions"),fs(17,"button",10),fs(18,"uds-translate"),Qs(19,"Cancel"),ps(),ps(),fs(20,"button",11),ks("click",function(){return e.save()}),fs(21,"uds-translate"),Qs(22,"Ok"),ps(),ps(),ps()),2&t&&(Po(1),tl(" ",e.data.title,"\n"),Po(4),hs("ngForOf",e.values),Po(7),hs("ngModel",e.input))},directives:[zC,VC,Oh,ZC,QC,gT,TP,fS,BS,gM,cT,BC,FC],styles:[".content[_ngcontent-%COMP%]{width:100%;justify-content:space-between;justify-self:center}.content[_ngcontent-%COMP%], .list[_ngcontent-%COMP%]{display:flex;flex-direction:column}.list[_ngcontent-%COMP%]{margin:1rem;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:0 1px 4px 0 rgba(0,0,0,.14);padding:.5rem}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:1rem}.input[_ngcontent-%COMP%]{margin:0 1rem}.elem[_ngcontent-%COMP%]{font-family:Courier New,Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.elem[_ngcontent-%COMP%]:hover{background-color:#333;color:#fff;cursor:default}.val[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}(),rH=function(){function t(t){this.api=t,this.changed=new Nu}return t.prototype.ngOnInit=function(){},t.prototype.launch=function(){var t=this;void 0===this.field.values&&(this.field.values=[]),iH.launch(this.api,this.field.gui.label,this.field.values).subscribe(function(e){t.changed.emit({field:t.field})})},t.prototype.getValue=function(){if(void 0===this.field.values)return"";var t=this.field.values.filter(function(t,e,n){return e<5}).join(", ");return this.field.values.length>5&&(t+=django.gettext(", (%i more items)").replace("%i",""+(this.field.values.length-5))),t},t.\u0275fac=function(e){return new(e||t)(cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-field-editlist"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","always"],["matInput","","type","text",1,"editlist",3,"readonly","value","placeholder","disabled","click"]],template:function(t,e){1&t&&(fs(0,"mat-form-field",0),fs(1,"mat-label"),Qs(2),ps(),fs(3,"input",1),ks("click",function(){return e.launch()}),ps(),ps()),2&t&&(Po(2),tl(" ",e.field.gui.label," "),Po(1),hs("readonly",!0)("value",e.getValue())("placeholder",e.field.gui.tooltip)("disabled",!0===e.field.gui.rdonly))},directives:[gT,aT,TP],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]}),t}(),oH=function(){function t(){this.changed=new Nu}return t.prototype.ngOnInit=function(){var t;this.field.value=sO(""===(t=this.field.value)||null==t?this.field.gui.defvalue:this.field.value)},t.prototype.getValue=function(){return sO(this.field.value)?django.gettext("Yes"):django.gettext("No")},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field-checkbox"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:5,vars:5,consts:[[1,"mat-form-field-infix"],[1,"label"],[3,"ngModel","required","disabled","ngModelChange","change"]],template:function(t,e){1&t&&(fs(0,"div",0),fs(1,"span",1),Qs(2),ps(),fs(3,"mat-slide-toggle",2),ks("ngModelChange",function(t){return e.field.value=t})("change",function(){return e.changed.emit(e)}),Qs(4),ps(),ps()),2&t&&(Po(2),Js(e.field.gui.label),Po(1),hs("ngModel",e.field.value)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),Po(1),tl(" ",e.getValue()," "))},directives:[wL,CL,BS,gM,SM],styles:[".label[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}"]}),t}();function aH(t,e){if(1&t&&gs(0,"div",5),2&t){var n=Is().$implicit;hs("innerHTML",Is().asIcon(n),Ir)}}function sH(t,e){if(1&t&&(fs(0,"div"),ls(1,aH,1,1,"div",4),ps()),2&t){var n=e.$implicit,i=Is();Po(1),hs("ngIf",n.id==i.field.value)}}function lH(t,e){if(1&t){var n=_s();fs(0,"uds-mat-select-search",6),ks("changed",function(t){return en(n),Is().filter=t}),ps()}}function uH(t,e){if(1&t&&(fs(0,"mat-option",7),gs(1,"div",5),ps()),2&t){var n=e.$implicit,i=Is();hs("value",n.id),Po(1),hs("innerHTML",i.asIcon(n),Ir)}}var cH=function(){function t(t){this.api=t,this.changed=new Nu,this.filter=""}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,""===this.field.value&&this.field.gui.values.length>=0&&(this.field.value=this.field.gui.values[0].id)},t.prototype.asIcon=function(t){return this.api.safeString(this.api.gui.icon(t.img)+t.text)},t.prototype.filteredValues=function(){if(!this.filter)return this.field.gui.values;var t=this.filter.toLocaleLowerCase();return this.field.gui.values.filter(function(e){return e.text.toLocaleLowerCase().includes(t)})},t.\u0275fac=function(e){return new(e||t)(cs(kI))},t.\u0275cmp=ce({type:t,selectors:[["uds-field-imgchoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:8,vars:8,consts:[[3,"placeholder","ngModel","required","disabled","valueChange","ngModelChange"],[4,"ngFor","ngForOf"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(fs(0,"mat-form-field"),fs(1,"mat-label"),Qs(2),ps(),fs(3,"mat-select",0),ks("valueChange",function(){return e.changed.emit(e)})("ngModelChange",function(t){return e.field.value=t}),fs(4,"mat-select-trigger"),ls(5,sH,2,1,"div",1),ps(),ls(6,lH,1,0,"uds-mat-select-search",2),ls(7,uH,2,2,"mat-option",3),ps(),ps()),2&t&&(Po(2),tl(" ",e.field.gui.label," "),Po(1),hs("placeholder",e.field.gui.tooltip)("ngModel",e.field.value)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),Po(2),hs("ngForOf",e.field.gui.values),Po(1),hs("ngIf",e.field.gui.values.length>10),Po(1),hs("ngForOf",e.filteredValues()))},directives:[gT,aT,FT,BS,gM,SM,LT,Oh,Dh,NP,yC],styles:[""]}),t}(),hH=function(){function t(){this.changed=new Nu,this.value=new Date}return Object.defineProperty(t.prototype,"date",{get:function(){return this.value},set:function(t){this.value!==t&&(this.value=t,this.field.value=QI("%Y-%m-%d",this.value))},enumerable:!1,configurable:!0}),t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,"2000-01-01"===this.field.value?this.field.value=QI("%Y-01-01"):"2000-01-01"===this.field.value&&(this.field.value=QI("%Y-12-31"));var t=this.field.value.split("-");3===t.length&&(this.value=new Date(+t[0],+t[1]-1,+t[2]))},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field-date"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:6,consts:[[1,"oneHalf"],["matInput","",3,"matDatepicker","ngModel","placeholder","disabled","ngModelChange"],["matSuffix","",3,"for"],["endDatePicker",""]],template:function(t,e){if(1&t&&(fs(0,"mat-form-field",0),fs(1,"mat-label"),Qs(2),ps(),fs(3,"input",1),ks("ngModelChange",function(t){return e.date=t}),ps(),gs(4,"mat-datepicker-toggle",2),gs(5,"mat-datepicker",null,3),ps()),2&t){var n=us(6);Po(2),tl(" ",e.field.gui.label," "),Po(1),hs("matDatepicker",n)("ngModel",e.date)("placeholder",e.field.gui.tooltip)("disabled",!0===e.field.gui.rdonly),Po(1),hs("for",n)}},directives:[gT,aT,TP,Qz,fS,BS,gM,tV,cT,qz],styles:[""]}),t}();function dH(t,e){if(1&t){var n=_s();fs(0,"mat-chip",5),ks("removed",function(){var t=en(n).$implicit;return Is().remove(t)}),Qs(1),fs(2,"i",6),Qs(3,"cancel"),ps(),ps()}if(2&t){var i=e.$implicit,r=Is();hs("selectable",!1)("removable",!0!==r.field.gui.rdonly),Po(1),tl(" ",i," ")}}var fH,pH,gH,mH=function(){function t(){this.changed=new Nu,this.separatorKeysCodes=[Ny,188]}return t.prototype.ngOnInit=function(){void 0===this.field.values&&(this.field.values=new Array,this.field.value=void 0),this.field.values.forEach(function(t,e,n){""===t.trim()&&n.splice(e,1)})},t.prototype.add=function(t){var e=t.input,n=t.value;(n||"").trim()&&this.field.values.push(n.trim()),e&&(e.value="")},t.prototype.remove=function(t){var e=this.field.values.indexOf(t);e>=0&&this.field.values.splice(e,1)},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=ce({type:t,selectors:[["uds-field-tags"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:8,consts:[["appearance","standard","floatLabel","always"],[3,"selectable","disabled","change"],["chipList",""],[3,"selectable","removable","removed",4,"ngFor","ngForOf"],[3,"placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],[3,"selectable","removable","removed"],["matChipRemove","",1,"material-icons"]],template:function(t,e){if(1&t&&(fs(0,"mat-form-field",0),fs(1,"mat-label"),Qs(2),ps(),fs(3,"mat-chip-list",1,2),ks("change",function(){return e.changed.emit(e)}),ls(5,dH,4,3,"mat-chip",3),fs(6,"input",4),ks("matChipInputTokenEnd",function(t){return e.add(t)}),ps(),ps(),ps()),2&t){var n=us(4);Po(2),tl(" ",e.field.gui.label," "),Po(1),hs("selectable",!1)("disabled",!0===e.field.gui.rdonly),Po(2),hs("ngForOf",e.field.values),Po(1),hs("placeholder",e.field.gui.tooltip)("matChipInputFor",n)("matChipInputSeparatorKeyCodes",e.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},directives:[gT,aT,yB,Oh,bB,dB,fB],styles:[".mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]}),t}(),vH=(n(1419),function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=pe({type:t,bootstrap:[GB]}),t.\u0275inj=Et({providers:[kI,XI,{provide:nD,useClass:UB}],imports:[[Pd,vf,rB,wk,DB,RO.forRoot({echarts:function(){return Promise.resolve().then(n.bind(n,9737))}})]]}),t}());fH=[Lh,YT,Nh,WB,ZB,YB,qB,XB,QB,eH,rH,oH,cH,hH,mH],pH=[],(gH=DA.\u0275cmp).directiveDefs=function(){return fH.map(he)},gH.pipeDefs=function(){return pH.map(de)},function(){if(Lc)throw new Error("Cannot enable prod mode after platform setup.");Rc=!1}(),Td().bootstrapModule(vH).catch(function(t){return console.log(t)})},8774:function(t,e,n){t.exports=n(5579)}},function(t){"use strict";t(t.s=6262)}]); \ No newline at end of file diff --git a/server/src/uds/static/admin/styles.css b/server/src/uds/static/admin/styles.css index 3b2c7f37..7a85ac9d 100644 --- a/server/src/uds/static/admin/styles.css +++ b/server/src/uds/static/admin/styles.css @@ -1 +1,5 @@ -.mat-badge-content{font-weight:600;font-size:12px;font-family:Roboto,Helvetica Neue,sans-serif}.mat-badge-small .mat-badge-content{font-size:9px}.mat-badge-large .mat-badge-content{font-size:24px}.mat-h1,.mat-headline,.mat-typography h1{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h2,.mat-title,.mat-typography h2{font:500 20px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h3,.mat-subheading-2,.mat-typography h3{font:400 16px/28px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h4,.mat-subheading-1,.mat-typography h4{font:400 15px/24px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h5,.mat-typography h5{font:400 calc(14px * .83)/20px Roboto,Helvetica Neue,sans-serif;margin:0 0 12px}.mat-h6,.mat-typography h6{font:400 calc(14px * .67)/20px Roboto,Helvetica Neue,sans-serif;margin:0 0 12px}.mat-body-2,.mat-body-strong{font:500 14px/24px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-body,.mat-body-1,.mat-typography{font:400 14px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-body-1 p,.mat-body p,.mat-typography p{margin:0 0 12px}.mat-caption,.mat-small{font:400 12px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-display-4,.mat-typography .mat-display-4{font:300 112px/112px Roboto,Helvetica Neue,sans-serif;letter-spacing:-.05em;margin:0 0 56px}.mat-display-3,.mat-typography .mat-display-3{font:400 56px/56px Roboto,Helvetica Neue,sans-serif;letter-spacing:-.02em;margin:0 0 64px}.mat-display-2,.mat-typography .mat-display-2{font:400 45px/48px Roboto,Helvetica Neue,sans-serif;letter-spacing:-.005em;margin:0 0 64px}.mat-display-1,.mat-typography .mat-display-1{font:400 34px/40px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 64px}.mat-bottom-sheet-container{font:400 14px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-button,.mat-fab,.mat-flat-button,.mat-icon-button,.mat-mini-fab,.mat-raised-button,.mat-stroked-button{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:500}.mat-button-toggle,.mat-card{font-family:Roboto,Helvetica Neue,sans-serif}.mat-card-title{font-size:24px;font-weight:500}.mat-card-header .mat-card-title{font-size:20px}.mat-card-content,.mat-card-subtitle{font-size:14px}.mat-checkbox{font-family:Roboto,Helvetica Neue,sans-serif}.mat-checkbox-layout .mat-checkbox-label{line-height:24px}.mat-chip{font-size:14px;font-weight:500}.mat-chip .mat-chip-remove.mat-icon,.mat-chip .mat-chip-trailing-icon.mat-icon{font-size:18px}.mat-table{font-family:Roboto,Helvetica Neue,sans-serif}.mat-header-cell{font-size:12px;font-weight:500}.mat-cell,.mat-footer-cell{font-size:14px}.mat-calendar{font-family:Roboto,Helvetica Neue,sans-serif}.mat-calendar-body{font-size:13px}.mat-calendar-body-label,.mat-calendar-period-button{font-size:14px;font-weight:500}.mat-calendar-table-header th{font-size:11px;font-weight:400}.mat-dialog-title{font:500 20px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-expansion-panel-header{font-family:Roboto,Helvetica Neue,sans-serif;font-size:15px;font-weight:400}.mat-expansion-panel-content{font:400 14px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-form-field{font-size:inherit;font-weight:400;line-height:1.125;font-family:Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-form-field-wrapper{padding-bottom:1.34375em}.mat-form-field-prefix .mat-icon,.mat-form-field-suffix .mat-icon{font-size:150%;line-height:1.125}.mat-form-field-prefix .mat-icon-button,.mat-form-field-suffix .mat-icon-button{height:1.5em;width:1.5em}.mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-suffix .mat-icon-button .mat-icon{height:1.125em;line-height:1.125}.mat-form-field-infix{padding:.5em 0;border-top:.84375em solid transparent}.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.34375em) scale(.75);width:133.3333333333%}.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.34374em) scale(.75);width:133.3333433333%}.mat-form-field-label-wrapper{top:-.84375em;padding-top:.84375em}.mat-form-field-label{top:1.34375em}.mat-form-field-underline{bottom:1.34375em}.mat-form-field-subscript-wrapper{font-size:75%;margin-top:.6666666667em;top:calc(100% - 1.7916666667em)}.mat-form-field-appearance-legacy .mat-form-field-wrapper{padding-bottom:1.25em}.mat-form-field-appearance-legacy .mat-form-field-infix{padding:.4375em 0}.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.001px);-ms-transform:translateY(-1.28125em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00101px);-ms-transform:translateY(-1.28124em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00102px);-ms-transform:translateY(-1.28123em) scale(.75);width:133.3333533333%}.mat-form-field-appearance-legacy .mat-form-field-label{top:1.28125em}.mat-form-field-appearance-legacy .mat-form-field-underline{bottom:1.25em}.mat-form-field-appearance-legacy .mat-form-field-subscript-wrapper{margin-top:.5416666667em;top:calc(100% - 1.6666666667em)}@media print{.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.28122em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.28121em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.2812em) scale(.75)}}.mat-form-field-appearance-fill .mat-form-field-infix{padding:.25em 0 .75em}.mat-form-field-appearance-fill .mat-form-field-label{top:1.09375em;margin-top:-.5em}.mat-form-field-appearance-fill.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-appearance-fill.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-fill.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-.59374em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-outline .mat-form-field-infix{padding:1em 0}.mat-form-field-appearance-outline .mat-form-field-label{top:1.84375em;margin-top:-.25em}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-appearance-outline.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-outline.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.59374em) scale(.75);width:133.3333433333%}.mat-grid-tile-footer,.mat-grid-tile-header{font-size:14px}.mat-grid-tile-footer .mat-line,.mat-grid-tile-header .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-footer .mat-line:nth-child(n+2),.mat-grid-tile-header .mat-line:nth-child(n+2){font-size:12px}input.mat-input-element{margin-top:-.0625em}.mat-menu-item{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:400}.mat-paginator,.mat-paginator-page-size .mat-select-trigger{font-family:Roboto,Helvetica Neue,sans-serif;font-size:12px}.mat-radio-button,.mat-select{font-family:Roboto,Helvetica Neue,sans-serif}.mat-select-trigger{height:1.125em}.mat-slide-toggle-content,.mat-slider-thumb-label-text{font-family:Roboto,Helvetica Neue,sans-serif}.mat-slider-thumb-label-text{font-size:12px;font-weight:500}.mat-stepper-horizontal,.mat-stepper-vertical{font-family:Roboto,Helvetica Neue,sans-serif}.mat-step-label{font-size:14px;font-weight:400}.mat-step-sub-label-error{font-weight:400}.mat-step-label-error{font-size:14px}.mat-step-label-selected{font-size:14px;font-weight:500}.mat-tab-group,.mat-tab-label,.mat-tab-link{font-family:Roboto,Helvetica Neue,sans-serif}.mat-tab-label,.mat-tab-link{font-size:14px;font-weight:500}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font:500 20px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0}.mat-tooltip{font-family:Roboto,Helvetica Neue,sans-serif;font-size:10px;padding-top:6px;padding-bottom:6px}.mat-tooltip-handset{font-size:14px;padding-top:8px;padding-bottom:8px}.mat-list-item,.mat-list-option{font-family:Roboto,Helvetica Neue,sans-serif}.mat-list-base .mat-list-item{font-size:16px}.mat-list-base .mat-list-item .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base .mat-list-item .mat-line:nth-child(n+2){font-size:14px}.mat-list-base .mat-list-option{font-size:16px}.mat-list-base .mat-list-option .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base .mat-list-option .mat-line:nth-child(n+2){font-size:14px}.mat-list-base .mat-subheader{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:500}.mat-list-base[dense] .mat-list-item{font-size:12px}.mat-list-base[dense] .mat-list-item .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense] .mat-list-item .mat-line:nth-child(n+2){font-size:12px}.mat-list-base[dense] .mat-list-option{font-size:12px}.mat-list-base[dense] .mat-list-option .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense] .mat-list-option .mat-line:nth-child(n+2){font-size:12px}.mat-list-base[dense] .mat-subheader{font-family:Roboto,Helvetica Neue,sans-serif;font-size:12px;font-weight:500}.mat-option{font-family:Roboto,Helvetica Neue,sans-serif;font-size:16px}.mat-optgroup-label{font:500 14px/24px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-simple-snackbar{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px}.mat-simple-snackbar-action{line-height:1;font-family:inherit;font-size:inherit;font-weight:500}.mat-tree{font-family:Roboto,Helvetica Neue,sans-serif}.mat-nested-tree-node,.mat-tree-node{font-weight:400;font-size:14px}.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale(0)}.cdk-high-contrast-active .mat-ripple-element{display:none}.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none}.cdk-global-overlay-wrapper,.cdk-overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper,.cdk-overlay-pane{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{pointer-events:auto;box-sizing:border-box;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop,.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@-webkit-keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-start{/*!*/}@-webkit-keyframes cdk-text-field-autofill-end{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{-webkit-animation:cdk-text-field-autofill-start 0s 1ms;animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){-webkit-animation:cdk-text-field-autofill-end 0s 1ms;animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator,.mat-mdc-focus-indicator{position:relative}.mat-ripple-element{background-color:rgba(0,0,0,.1)}.mat-option{color:rgba(0,0,0,.87)}.mat-option:focus:not(.mat-option-disabled),.mat-option:hover:not(.mat-option-disabled){background:rgba(0,0,0,.04)}.mat-option.mat-selected:not(.mat-option-multiple):not(.mat-option-disabled){background:rgba(0,0,0,.04)}.mat-option.mat-active{background:rgba(0,0,0,.04);color:rgba(0,0,0,.87)}.mat-option.mat-option-disabled{color:rgba(0,0,0,.38)}.mat-primary .mat-option.mat-selected:not(.mat-option-disabled){color:#3f51b5}.mat-accent .mat-option.mat-selected:not(.mat-option-disabled){color:#ff4081}.mat-warn .mat-option.mat-selected:not(.mat-option-disabled){color:#f44336}.mat-optgroup-label{color:rgba(0,0,0,.54)}.mat-optgroup-disabled .mat-optgroup-label{color:rgba(0,0,0,.38)}.mat-pseudo-checkbox{color:rgba(0,0,0,.54)}.mat-pseudo-checkbox:after{color:#fafafa}.mat-pseudo-checkbox-disabled{color:#b0b0b0}.mat-primary .mat-pseudo-checkbox-checked,.mat-primary .mat-pseudo-checkbox-indeterminate{background:#3f51b5}.mat-accent .mat-pseudo-checkbox-checked,.mat-accent .mat-pseudo-checkbox-indeterminate,.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-indeterminate{background:#ff4081}.mat-warn .mat-pseudo-checkbox-checked,.mat-warn .mat-pseudo-checkbox-indeterminate{background:#f44336}.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background:#b0b0b0}.mat-app-background{background-color:#fafafa;color:rgba(0,0,0,.87)}.mat-elevation-z0{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-elevation-z1{box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.mat-elevation-z2{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-elevation-z3{box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12)}.mat-elevation-z4{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.mat-elevation-z5{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 5px 8px 0 rgba(0,0,0,.14),0 1px 14px 0 rgba(0,0,0,.12)}.mat-elevation-z6{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-elevation-z7{box-shadow:0 4px 5px -2px rgba(0,0,0,.2),0 7px 10px 1px rgba(0,0,0,.14),0 2px 16px 1px rgba(0,0,0,.12)}.mat-elevation-z8{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.mat-elevation-z9{box-shadow:0 5px 6px -3px rgba(0,0,0,.2),0 9px 12px 1px rgba(0,0,0,.14),0 3px 16px 2px rgba(0,0,0,.12)}.mat-elevation-z10{box-shadow:0 6px 6px -3px rgba(0,0,0,.2),0 10px 14px 1px rgba(0,0,0,.14),0 4px 18px 3px rgba(0,0,0,.12)}.mat-elevation-z11{box-shadow:0 6px 7px -4px rgba(0,0,0,.2),0 11px 15px 1px rgba(0,0,0,.14),0 4px 20px 3px rgba(0,0,0,.12)}.mat-elevation-z12{box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-elevation-z13{box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 13px 19px 2px rgba(0,0,0,.14),0 5px 24px 4px rgba(0,0,0,.12)}.mat-elevation-z14{box-shadow:0 7px 9px -4px rgba(0,0,0,.2),0 14px 21px 2px rgba(0,0,0,.14),0 5px 26px 4px rgba(0,0,0,.12)}.mat-elevation-z15{box-shadow:0 8px 9px -5px rgba(0,0,0,.2),0 15px 22px 2px rgba(0,0,0,.14),0 6px 28px 5px rgba(0,0,0,.12)}.mat-elevation-z16{box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)}.mat-elevation-z17{box-shadow:0 8px 11px -5px rgba(0,0,0,.2),0 17px 26px 2px rgba(0,0,0,.14),0 6px 32px 5px rgba(0,0,0,.12)}.mat-elevation-z18{box-shadow:0 9px 11px -5px rgba(0,0,0,.2),0 18px 28px 2px rgba(0,0,0,.14),0 7px 34px 6px rgba(0,0,0,.12)}.mat-elevation-z19{box-shadow:0 9px 12px -6px rgba(0,0,0,.2),0 19px 29px 2px rgba(0,0,0,.14),0 7px 36px 6px rgba(0,0,0,.12)}.mat-elevation-z20{box-shadow:0 10px 13px -6px rgba(0,0,0,.2),0 20px 31px 3px rgba(0,0,0,.14),0 8px 38px 7px rgba(0,0,0,.12)}.mat-elevation-z21{box-shadow:0 10px 13px -6px rgba(0,0,0,.2),0 21px 33px 3px rgba(0,0,0,.14),0 8px 40px 7px rgba(0,0,0,.12)}.mat-elevation-z22{box-shadow:0 10px 14px -6px rgba(0,0,0,.2),0 22px 35px 3px rgba(0,0,0,.14),0 8px 42px 7px rgba(0,0,0,.12)}.mat-elevation-z23{box-shadow:0 11px 14px -7px rgba(0,0,0,.2),0 23px 36px 3px rgba(0,0,0,.14),0 9px 44px 8px rgba(0,0,0,.12)}.mat-elevation-z24{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12)}.mat-theme-loaded-marker{display:none}.mat-autocomplete-panel{background:#fff;color:rgba(0,0,0,.87)}.mat-autocomplete-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.mat-autocomplete-panel .mat-option.mat-selected:not(.mat-active):not(:hover){background:#fff}.mat-autocomplete-panel .mat-option.mat-selected:not(.mat-active):not(:hover):not(.mat-option-disabled){color:rgba(0,0,0,.87)}.mat-badge{position:relative}.mat-badge-hidden .mat-badge-content{display:none}.mat-badge-content{position:absolute;text-align:center;display:inline-block;border-radius:50%;transition:transform .2s ease-in-out;transform:scale(.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;pointer-events:none}.mat-badge-content._mat-animation-noopable,.ng-animate-disabled .mat-badge-content{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:16px;height:16px;line-height:16px}.mat-badge-small.mat-badge-above .mat-badge-content{top:-8px}.mat-badge-small.mat-badge-below .mat-badge-content{bottom:-8px}.mat-badge-small.mat-badge-before .mat-badge-content{left:-16px}[dir=rtl] .mat-badge-small.mat-badge-before .mat-badge-content{left:auto;right:-16px}.mat-badge-small.mat-badge-after .mat-badge-content{right:-16px}[dir=rtl] .mat-badge-small.mat-badge-after .mat-badge-content{right:auto;left:-16px}.mat-badge-small.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-8px}[dir=rtl] .mat-badge-small.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-8px}.mat-badge-small.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-8px}[dir=rtl] .mat-badge-small.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-8px}.mat-badge-medium .mat-badge-content{width:22px;height:22px;line-height:22px}.mat-badge-medium.mat-badge-above .mat-badge-content{top:-11px}.mat-badge-medium.mat-badge-below .mat-badge-content{bottom:-11px}.mat-badge-medium.mat-badge-before .mat-badge-content{left:-22px}[dir=rtl] .mat-badge-medium.mat-badge-before .mat-badge-content{left:auto;right:-22px}.mat-badge-medium.mat-badge-after .mat-badge-content{right:-22px}[dir=rtl] .mat-badge-medium.mat-badge-after .mat-badge-content{right:auto;left:-22px}.mat-badge-medium.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-11px}[dir=rtl] .mat-badge-medium.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-11px}.mat-badge-medium.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-11px}[dir=rtl] .mat-badge-medium.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-11px}.mat-badge-large .mat-badge-content{width:28px;height:28px;line-height:28px}.mat-badge-large.mat-badge-above .mat-badge-content{top:-14px}.mat-badge-large.mat-badge-below .mat-badge-content{bottom:-14px}.mat-badge-large.mat-badge-before .mat-badge-content{left:-28px}[dir=rtl] .mat-badge-large.mat-badge-before .mat-badge-content{left:auto;right:-28px}.mat-badge-large.mat-badge-after .mat-badge-content{right:-28px}[dir=rtl] .mat-badge-large.mat-badge-after .mat-badge-content{right:auto;left:-28px}.mat-badge-large.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-14px}[dir=rtl] .mat-badge-large.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-14px}.mat-badge-large.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-14px}[dir=rtl] .mat-badge-large.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-14px}.mat-badge-content{color:#fff;background:#3f51b5}.cdk-high-contrast-active .mat-badge-content{outline:1px solid;border-radius:0}.mat-badge-accent .mat-badge-content{background:#ff4081;color:#fff}.mat-badge-warn .mat-badge-content{color:#fff;background:#f44336}.mat-badge-disabled .mat-badge-content{background:#b9b9b9;color:rgba(0,0,0,.38)}.mat-bottom-sheet-container{box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12);background:#fff;color:rgba(0,0,0,.87)}.mat-button,.mat-icon-button,.mat-stroked-button{color:inherit;background:transparent}.mat-button.mat-primary,.mat-icon-button.mat-primary,.mat-stroked-button.mat-primary{color:#3f51b5}.mat-button.mat-accent,.mat-icon-button.mat-accent,.mat-stroked-button.mat-accent{color:#ff4081}.mat-button.mat-warn,.mat-icon-button.mat-warn,.mat-stroked-button.mat-warn{color:#f44336}.mat-button.mat-accent.mat-button-disabled,.mat-button.mat-button-disabled.mat-button-disabled,.mat-button.mat-primary.mat-button-disabled,.mat-button.mat-warn.mat-button-disabled,.mat-icon-button.mat-accent.mat-button-disabled,.mat-icon-button.mat-button-disabled.mat-button-disabled,.mat-icon-button.mat-primary.mat-button-disabled,.mat-icon-button.mat-warn.mat-button-disabled,.mat-stroked-button.mat-accent.mat-button-disabled,.mat-stroked-button.mat-button-disabled.mat-button-disabled,.mat-stroked-button.mat-primary.mat-button-disabled,.mat-stroked-button.mat-warn.mat-button-disabled{color:rgba(0,0,0,.26)}.mat-button.mat-primary .mat-button-focus-overlay,.mat-icon-button.mat-primary .mat-button-focus-overlay,.mat-stroked-button.mat-primary .mat-button-focus-overlay{background-color:#3f51b5}.mat-button.mat-accent .mat-button-focus-overlay,.mat-icon-button.mat-accent .mat-button-focus-overlay,.mat-stroked-button.mat-accent .mat-button-focus-overlay{background-color:#ff4081}.mat-button.mat-warn .mat-button-focus-overlay,.mat-icon-button.mat-warn .mat-button-focus-overlay,.mat-stroked-button.mat-warn .mat-button-focus-overlay{background-color:#f44336}.mat-button.mat-button-disabled .mat-button-focus-overlay,.mat-icon-button.mat-button-disabled .mat-button-focus-overlay,.mat-stroked-button.mat-button-disabled .mat-button-focus-overlay{background-color:transparent}.mat-button .mat-ripple-element,.mat-icon-button .mat-ripple-element,.mat-stroked-button .mat-ripple-element{opacity:.1;background-color:currentColor}.mat-button-focus-overlay{background:#000}.mat-stroked-button:not(.mat-button-disabled){border-color:rgba(0,0,0,.12)}.mat-fab,.mat-flat-button,.mat-mini-fab,.mat-raised-button{color:rgba(0,0,0,.87);background-color:#fff}.mat-fab.mat-accent,.mat-fab.mat-primary,.mat-fab.mat-warn,.mat-flat-button.mat-accent,.mat-flat-button.mat-primary,.mat-flat-button.mat-warn,.mat-mini-fab.mat-accent,.mat-mini-fab.mat-primary,.mat-mini-fab.mat-warn,.mat-raised-button.mat-accent,.mat-raised-button.mat-primary,.mat-raised-button.mat-warn{color:#fff}.mat-fab.mat-accent.mat-button-disabled,.mat-fab.mat-button-disabled.mat-button-disabled,.mat-fab.mat-primary.mat-button-disabled,.mat-fab.mat-warn.mat-button-disabled,.mat-flat-button.mat-accent.mat-button-disabled,.mat-flat-button.mat-button-disabled.mat-button-disabled,.mat-flat-button.mat-primary.mat-button-disabled,.mat-flat-button.mat-warn.mat-button-disabled,.mat-mini-fab.mat-accent.mat-button-disabled,.mat-mini-fab.mat-button-disabled.mat-button-disabled,.mat-mini-fab.mat-primary.mat-button-disabled,.mat-mini-fab.mat-warn.mat-button-disabled,.mat-raised-button.mat-accent.mat-button-disabled,.mat-raised-button.mat-button-disabled.mat-button-disabled,.mat-raised-button.mat-primary.mat-button-disabled,.mat-raised-button.mat-warn.mat-button-disabled{color:rgba(0,0,0,.26)}.mat-fab.mat-primary,.mat-flat-button.mat-primary,.mat-mini-fab.mat-primary,.mat-raised-button.mat-primary{background-color:#3f51b5}.mat-fab.mat-accent,.mat-flat-button.mat-accent,.mat-mini-fab.mat-accent,.mat-raised-button.mat-accent{background-color:#ff4081}.mat-fab.mat-warn,.mat-flat-button.mat-warn,.mat-mini-fab.mat-warn,.mat-raised-button.mat-warn{background-color:#f44336}.mat-fab.mat-accent.mat-button-disabled,.mat-fab.mat-button-disabled.mat-button-disabled,.mat-fab.mat-primary.mat-button-disabled,.mat-fab.mat-warn.mat-button-disabled,.mat-flat-button.mat-accent.mat-button-disabled,.mat-flat-button.mat-button-disabled.mat-button-disabled,.mat-flat-button.mat-primary.mat-button-disabled,.mat-flat-button.mat-warn.mat-button-disabled,.mat-mini-fab.mat-accent.mat-button-disabled,.mat-mini-fab.mat-button-disabled.mat-button-disabled,.mat-mini-fab.mat-primary.mat-button-disabled,.mat-mini-fab.mat-warn.mat-button-disabled,.mat-raised-button.mat-accent.mat-button-disabled,.mat-raised-button.mat-button-disabled.mat-button-disabled,.mat-raised-button.mat-primary.mat-button-disabled,.mat-raised-button.mat-warn.mat-button-disabled{background-color:rgba(0,0,0,.12)}.mat-fab.mat-accent .mat-ripple-element,.mat-fab.mat-primary .mat-ripple-element,.mat-fab.mat-warn .mat-ripple-element,.mat-flat-button.mat-accent .mat-ripple-element,.mat-flat-button.mat-primary .mat-ripple-element,.mat-flat-button.mat-warn .mat-ripple-element,.mat-mini-fab.mat-accent .mat-ripple-element,.mat-mini-fab.mat-primary .mat-ripple-element,.mat-mini-fab.mat-warn .mat-ripple-element,.mat-raised-button.mat-accent .mat-ripple-element,.mat-raised-button.mat-primary .mat-ripple-element,.mat-raised-button.mat-warn .mat-ripple-element{background-color:rgba(255,255,255,.1)}.mat-flat-button:not([class*=mat-elevation-z]),.mat-stroked-button:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-raised-button:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-raised-button:not(.mat-button-disabled):active:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.mat-raised-button.mat-button-disabled:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-fab:not([class*=mat-elevation-z]),.mat-mini-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-fab:not(.mat-button-disabled):active:not([class*=mat-elevation-z]),.mat-mini-fab:not(.mat-button-disabled):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-fab.mat-button-disabled:not([class*=mat-elevation-z]),.mat-mini-fab.mat-button-disabled:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-button-toggle-group,.mat-button-toggle-standalone{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-button-toggle-group-appearance-standard,.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{box-shadow:none}.mat-button-toggle{color:rgba(0,0,0,.38)}.mat-button-toggle .mat-button-toggle-focus-overlay{background-color:rgba(0,0,0,.12)}.mat-button-toggle-appearance-standard{color:rgba(0,0,0,.87);background:#fff}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:#000}.mat-button-toggle-group-appearance-standard .mat-button-toggle+.mat-button-toggle{border-left:1px solid rgba(0,0,0,.12)}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle+.mat-button-toggle{border-left:none;border-right:1px solid rgba(0,0,0,.12)}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle+.mat-button-toggle{border-left:none;border-right:none;border-top:1px solid rgba(0,0,0,.12)}.mat-button-toggle-checked{background-color:#e0e0e0;color:rgba(0,0,0,.54)}.mat-button-toggle-checked.mat-button-toggle-appearance-standard{color:rgba(0,0,0,.87)}.mat-button-toggle-disabled{color:rgba(0,0,0,.26);background-color:#eee}.mat-button-toggle-disabled.mat-button-toggle-appearance-standard{background:#fff}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:#bdbdbd}.mat-button-toggle-group-appearance-standard,.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{border:1px solid rgba(0,0,0,.12)}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{line-height:48px}.mat-card{background:#fff;color:rgba(0,0,0,.87)}.mat-card:not([class*=mat-elevation-z]){box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.mat-card.mat-card-flat:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-card-subtitle{color:rgba(0,0,0,.54)}.mat-checkbox-frame{border-color:rgba(0,0,0,.54)}.mat-checkbox-checkmark{fill:#fafafa}.mat-checkbox-checkmark-path{stroke:#fafafa!important}.mat-checkbox-mixedmark{background-color:#fafafa}.mat-checkbox-checked.mat-primary .mat-checkbox-background,.mat-checkbox-indeterminate.mat-primary .mat-checkbox-background{background-color:#3f51b5}.mat-checkbox-checked.mat-accent .mat-checkbox-background,.mat-checkbox-indeterminate.mat-accent .mat-checkbox-background{background-color:#ff4081}.mat-checkbox-checked.mat-warn .mat-checkbox-background,.mat-checkbox-indeterminate.mat-warn .mat-checkbox-background{background-color:#f44336}.mat-checkbox-disabled.mat-checkbox-checked .mat-checkbox-background,.mat-checkbox-disabled.mat-checkbox-indeterminate .mat-checkbox-background{background-color:#b0b0b0}.mat-checkbox-disabled:not(.mat-checkbox-checked) .mat-checkbox-frame{border-color:#b0b0b0}.mat-checkbox-disabled .mat-checkbox-label{color:rgba(0,0,0,.54)}.mat-checkbox .mat-ripple-element{background-color:#000}.mat-checkbox-checked:not(.mat-checkbox-disabled).mat-primary .mat-ripple-element,.mat-checkbox:active:not(.mat-checkbox-disabled).mat-primary .mat-ripple-element{background:#3f51b5}.mat-checkbox-checked:not(.mat-checkbox-disabled).mat-accent .mat-ripple-element,.mat-checkbox:active:not(.mat-checkbox-disabled).mat-accent .mat-ripple-element{background:#ff4081}.mat-checkbox-checked:not(.mat-checkbox-disabled).mat-warn .mat-ripple-element,.mat-checkbox:active:not(.mat-checkbox-disabled).mat-warn .mat-ripple-element{background:#f44336}.mat-chip.mat-standard-chip{background-color:#e0e0e0;color:rgba(0,0,0,.87)}.mat-chip.mat-standard-chip .mat-chip-remove{color:rgba(0,0,0,.87);opacity:.4}.mat-chip.mat-standard-chip:not(.mat-chip-disabled):active{box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12)}.mat-chip.mat-standard-chip:not(.mat-chip-disabled) .mat-chip-remove:hover{opacity:.54}.mat-chip.mat-standard-chip.mat-chip-disabled{opacity:.4}.mat-chip.mat-standard-chip:after{background:#000}.mat-chip.mat-standard-chip.mat-chip-selected.mat-primary{background-color:#3f51b5;color:#fff}.mat-chip.mat-standard-chip.mat-chip-selected.mat-primary .mat-chip-remove{color:#fff;opacity:.4}.mat-chip.mat-standard-chip.mat-chip-selected.mat-primary .mat-ripple-element{background-color:rgba(255,255,255,.1)}.mat-chip.mat-standard-chip.mat-chip-selected.mat-warn{background-color:#f44336;color:#fff}.mat-chip.mat-standard-chip.mat-chip-selected.mat-warn .mat-chip-remove{color:#fff;opacity:.4}.mat-chip.mat-standard-chip.mat-chip-selected.mat-warn .mat-ripple-element{background-color:rgba(255,255,255,.1)}.mat-chip.mat-standard-chip.mat-chip-selected.mat-accent{background-color:#ff4081;color:#fff}.mat-chip.mat-standard-chip.mat-chip-selected.mat-accent .mat-chip-remove{color:#fff;opacity:.4}.mat-chip.mat-standard-chip.mat-chip-selected.mat-accent .mat-ripple-element{background-color:rgba(255,255,255,.1)}.mat-table{background:#fff}.mat-table-sticky,.mat-table tbody,.mat-table tfoot,.mat-table thead,[mat-footer-row],[mat-header-row],[mat-row],mat-footer-row,mat-header-row,mat-row{background:inherit}mat-footer-row,mat-header-row,mat-row,td.mat-cell,td.mat-footer-cell,th.mat-header-cell{border-bottom-color:rgba(0,0,0,.12)}.mat-header-cell{color:rgba(0,0,0,.54)}.mat-cell,.mat-footer-cell{color:rgba(0,0,0,.87)}.mat-calendar-arrow{border-top-color:rgba(0,0,0,.54)}.mat-datepicker-content .mat-calendar-next-button,.mat-datepicker-content .mat-calendar-previous-button,.mat-datepicker-toggle{color:rgba(0,0,0,.54)}.mat-calendar-table-header{color:rgba(0,0,0,.38)}.mat-calendar-table-header-divider:after{background:rgba(0,0,0,.12)}.mat-calendar-body-label{color:rgba(0,0,0,.54)}.mat-calendar-body-cell-content,.mat-date-range-input-separator{color:rgba(0,0,0,.87);border-color:transparent}.mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:rgba(0,0,0,.38)}.mat-form-field-disabled .mat-date-range-input-separator{color:rgba(0,0,0,.38)}.mat-calendar-body-in-preview{color:rgba(0,0,0,.24)}.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:rgba(0,0,0,.38)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:rgba(0,0,0,.18)}.mat-calendar-body-in-range:before{background:rgba(63,81,181,.2)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range:before{background:rgba(249,171,0,.2)}.mat-calendar-body-comparison-bridge-start:before,[dir=rtl] .mat-calendar-body-comparison-bridge-end:before{background:linear-gradient(90deg,rgba(63,81,181,.2) 50%,rgba(249,171,0,.2) 0)}.mat-calendar-body-comparison-bridge-end:before,[dir=rtl] .mat-calendar-body-comparison-bridge-start:before{background:linear-gradient(270deg,rgba(63,81,181,.2) 50%,rgba(249,171,0,.2) 0)}.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range:after,.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical{background:#a8dab5}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.mat-calendar-body-selected{background-color:#3f51b5;color:#fff}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(63,81,181,.4)}.mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:rgba(63,81,181,.3)}.mat-datepicker-content{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);background-color:#fff;color:rgba(0,0,0,.87)}.mat-datepicker-content.mat-accent .mat-calendar-body-in-range:before{background:rgba(255,64,129,.2)}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-identical,.mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range:before{background:rgba(249,171,0,.2)}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-bridge-start:before,.mat-datepicker-content.mat-accent [dir=rtl] .mat-calendar-body-comparison-bridge-end:before{background:linear-gradient(90deg,rgba(255,64,129,.2) 50%,rgba(249,171,0,.2) 0)}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-bridge-end:before,.mat-datepicker-content.mat-accent [dir=rtl] .mat-calendar-body-comparison-bridge-start:before{background:linear-gradient(270deg,rgba(255,64,129,.2) 50%,rgba(249,171,0,.2) 0)}.mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range.mat-calendar-body-in-range:after,.mat-datepicker-content.mat-accent .mat-calendar-body-in-range>.mat-calendar-body-comparison-identical{background:#a8dab5}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.mat-datepicker-content.mat-accent .mat-calendar-body-selected{background-color:#ff4081;color:#fff}.mat-datepicker-content.mat-accent .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(255,64,129,.4)}.mat-datepicker-content.mat-accent .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.mat-datepicker-content.mat-accent .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.mat-datepicker-content.mat-accent .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.mat-datepicker-content.mat-accent .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:rgba(255,64,129,.3)}.mat-datepicker-content.mat-warn .mat-calendar-body-in-range:before{background:rgba(244,67,54,.2)}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-identical,.mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range:before{background:rgba(249,171,0,.2)}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-bridge-start:before,.mat-datepicker-content.mat-warn [dir=rtl] .mat-calendar-body-comparison-bridge-end:before{background:linear-gradient(90deg,rgba(244,67,54,.2) 50%,rgba(249,171,0,.2) 0)}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-bridge-end:before,.mat-datepicker-content.mat-warn [dir=rtl] .mat-calendar-body-comparison-bridge-start:before{background:linear-gradient(270deg,rgba(244,67,54,.2) 50%,rgba(249,171,0,.2) 0)}.mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range.mat-calendar-body-in-range:after,.mat-datepicker-content.mat-warn .mat-calendar-body-in-range>.mat-calendar-body-comparison-identical{background:#a8dab5}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.mat-datepicker-content.mat-warn .mat-calendar-body-selected{background-color:#f44336;color:#fff}.mat-datepicker-content.mat-warn .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(244,67,54,.4)}.mat-datepicker-content.mat-warn .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.mat-datepicker-content.mat-warn .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.mat-datepicker-content.mat-warn .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.mat-datepicker-content.mat-warn .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:rgba(244,67,54,.3)}.mat-datepicker-content-touch{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12)}.mat-datepicker-toggle-active{color:#3f51b5}.mat-datepicker-toggle-active.mat-accent{color:#ff4081}.mat-datepicker-toggle-active.mat-warn{color:#f44336}.mat-date-range-input-inner[disabled]{color:rgba(0,0,0,.38)}.mat-dialog-container{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);background:#fff;color:rgba(0,0,0,.87)}.mat-divider{border-top-color:rgba(0,0,0,.12)}.mat-divider-vertical{border-right-color:rgba(0,0,0,.12)}.mat-expansion-panel{background:#fff;color:rgba(0,0,0,.87)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-action-row{border-top-color:rgba(0,0,0,.12)}.mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true]),.mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true]),.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true]){background:rgba(0,0,0,.04)}@media(hover:none){.mat-expansion-panel:not(.mat-expanded):not([aria-disabled=true]) .mat-expansion-panel-header:hover{background:#fff}}.mat-expansion-panel-header-title{color:rgba(0,0,0,.87)}.mat-expansion-indicator:after,.mat-expansion-panel-header-description{color:rgba(0,0,0,.54)}.mat-expansion-panel-header[aria-disabled=true]{color:rgba(0,0,0,.26)}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title{color:inherit}.mat-expansion-panel-header{height:48px}.mat-expansion-panel-header.mat-expanded{height:64px}.mat-form-field-label,.mat-hint{color:rgba(0,0,0,.6)}.mat-form-field.mat-focused .mat-form-field-label{color:#3f51b5}.mat-form-field.mat-focused .mat-form-field-label.mat-accent{color:#ff4081}.mat-form-field.mat-focused .mat-form-field-label.mat-warn{color:#f44336}.mat-focused .mat-form-field-required-marker{color:#ff4081}.mat-form-field-ripple{background-color:rgba(0,0,0,.87)}.mat-form-field.mat-focused .mat-form-field-ripple{background-color:#3f51b5}.mat-form-field.mat-focused .mat-form-field-ripple.mat-accent{background-color:#ff4081}.mat-form-field.mat-focused .mat-form-field-ripple.mat-warn{background-color:#f44336}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid) .mat-form-field-infix:after{color:#3f51b5}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-accent .mat-form-field-infix:after{color:#ff4081}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-warn .mat-form-field-infix:after{color:#f44336}.mat-form-field.mat-form-field-invalid .mat-form-field-label,.mat-form-field.mat-form-field-invalid .mat-form-field-label.mat-accent,.mat-form-field.mat-form-field-invalid .mat-form-field-label .mat-form-field-required-marker{color:#f44336}.mat-form-field.mat-form-field-invalid .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple.mat-accent{background-color:#f44336}.mat-error{color:#f44336}.mat-form-field-appearance-legacy .mat-form-field-label,.mat-form-field-appearance-legacy .mat-hint{color:rgba(0,0,0,.54)}.mat-form-field-appearance-legacy .mat-form-field-underline{background-color:rgba(0,0,0,.42)}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(90deg,rgba(0,0,0,.42) 0,rgba(0,0,0,.42) 33%,transparent 0);background-size:4px 100%;background-repeat:repeat-x}.mat-form-field-appearance-standard .mat-form-field-underline{background-color:rgba(0,0,0,.42)}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(90deg,rgba(0,0,0,.42) 0,rgba(0,0,0,.42) 33%,transparent 0);background-size:4px 100%;background-repeat:repeat-x}.mat-form-field-appearance-fill .mat-form-field-flex{background-color:rgba(0,0,0,.04)}.mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{background-color:rgba(0,0,0,.02)}.mat-form-field-appearance-fill .mat-form-field-underline:before{background-color:rgba(0,0,0,.42)}.mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-label{color:rgba(0,0,0,.38)}.mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-underline:before{background-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline{color:rgba(0,0,0,.12)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{color:rgba(0,0,0,.87)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{color:#3f51b5}.mat-form-field-appearance-outline.mat-focused.mat-accent .mat-form-field-outline-thick{color:#ff4081}.mat-form-field-appearance-outline.mat-focused.mat-warn .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid.mat-form-field-invalid .mat-form-field-outline-thick{color:#f44336}.mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-label{color:rgba(0,0,0,.38)}.mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:rgba(0,0,0,.06)}.mat-icon.mat-primary{color:#3f51b5}.mat-icon.mat-accent{color:#ff4081}.mat-icon.mat-warn{color:#f44336}.mat-form-field-type-mat-native-select .mat-form-field-infix:after{color:rgba(0,0,0,.54)}.mat-form-field-type-mat-native-select.mat-form-field-disabled .mat-form-field-infix:after,.mat-input-element:disabled{color:rgba(0,0,0,.38)}.mat-input-element{caret-color:#3f51b5}.mat-input-element::placeholder{color:rgba(0,0,0,.42)}.mat-input-element::-moz-placeholder{color:rgba(0,0,0,.42)}.mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,.42)}.mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,.42)}.mat-form-field.mat-accent .mat-input-element{caret-color:#ff4081}.mat-form-field-invalid .mat-input-element,.mat-form-field.mat-warn .mat-input-element{caret-color:#f44336}.mat-form-field-type-mat-native-select.mat-form-field-invalid .mat-form-field-infix:after{color:#f44336}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{color:rgba(0,0,0,.87)}.mat-list-base .mat-subheader{color:rgba(0,0,0,.54)}.mat-list-item-disabled{background-color:#eee}.mat-action-list .mat-list-item:focus,.mat-action-list .mat-list-item:hover,.mat-list-option:focus,.mat-list-option:hover,.mat-nav-list .mat-list-item:focus,.mat-nav-list .mat-list-item:hover{background:rgba(0,0,0,.04)}.mat-list-single-selected-option,.mat-list-single-selected-option:focus,.mat-list-single-selected-option:hover{background:rgba(0,0,0,.12)}.mat-menu-panel{background:#fff}.mat-menu-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.mat-menu-item{background:transparent;color:rgba(0,0,0,.87)}.mat-menu-item[disabled],.mat-menu-item[disabled] .mat-icon-no-color,.mat-menu-item[disabled]:after{color:rgba(0,0,0,.38)}.mat-menu-item-submenu-trigger:after,.mat-menu-item .mat-icon-no-color{color:rgba(0,0,0,.54)}.mat-menu-item-highlighted:not([disabled]),.mat-menu-item.cdk-keyboard-focused:not([disabled]),.mat-menu-item.cdk-program-focused:not([disabled]),.mat-menu-item:hover:not([disabled]){background:rgba(0,0,0,.04)}.mat-paginator{background:#fff}.mat-paginator,.mat-paginator-page-size .mat-select-trigger{color:rgba(0,0,0,.54)}.mat-paginator-decrement,.mat-paginator-increment{border-top:2px solid rgba(0,0,0,.54);border-right:2px solid rgba(0,0,0,.54)}.mat-paginator-first,.mat-paginator-last{border-top:2px solid rgba(0,0,0,.54)}.mat-icon-button[disabled] .mat-paginator-decrement,.mat-icon-button[disabled] .mat-paginator-first,.mat-icon-button[disabled] .mat-paginator-increment,.mat-icon-button[disabled] .mat-paginator-last{border-color:rgba(0,0,0,.38)}.mat-paginator-container{min-height:56px}.mat-progress-bar-background{fill:#cbd0e9}.mat-progress-bar-buffer{background-color:#cbd0e9}.mat-progress-bar-fill:after{background-color:#3f51b5}.mat-progress-bar.mat-accent .mat-progress-bar-background{fill:#fbccdc}.mat-progress-bar.mat-accent .mat-progress-bar-buffer{background-color:#fbccdc}.mat-progress-bar.mat-accent .mat-progress-bar-fill:after{background-color:#ff4081}.mat-progress-bar.mat-warn .mat-progress-bar-background{fill:#f9ccc9}.mat-progress-bar.mat-warn .mat-progress-bar-buffer{background-color:#f9ccc9}.mat-progress-bar.mat-warn .mat-progress-bar-fill:after{background-color:#f44336}.mat-progress-spinner circle,.mat-spinner circle{stroke:#3f51b5}.mat-progress-spinner.mat-accent circle,.mat-spinner.mat-accent circle{stroke:#ff4081}.mat-progress-spinner.mat-warn circle,.mat-spinner.mat-warn circle{stroke:#f44336}.mat-radio-outer-circle{border-color:rgba(0,0,0,.54)}.mat-radio-button.mat-primary.mat-radio-checked .mat-radio-outer-circle{border-color:#3f51b5}.mat-radio-button.mat-primary.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-primary .mat-radio-inner-circle,.mat-radio-button.mat-primary .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-primary:active .mat-radio-persistent-ripple{background-color:#3f51b5}.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#ff4081}.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-accent .mat-radio-inner-circle,.mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-accent:active .mat-radio-persistent-ripple{background-color:#ff4081}.mat-radio-button.mat-warn.mat-radio-checked .mat-radio-outer-circle{border-color:#f44336}.mat-radio-button.mat-warn.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-warn .mat-radio-inner-circle,.mat-radio-button.mat-warn .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-warn:active .mat-radio-persistent-ripple{background-color:#f44336}.mat-radio-button.mat-radio-disabled.mat-radio-checked .mat-radio-outer-circle,.mat-radio-button.mat-radio-disabled .mat-radio-outer-circle{border-color:rgba(0,0,0,.38)}.mat-radio-button.mat-radio-disabled .mat-radio-inner-circle,.mat-radio-button.mat-radio-disabled .mat-radio-ripple .mat-ripple-element{background-color:rgba(0,0,0,.38)}.mat-radio-button.mat-radio-disabled .mat-radio-label-content{color:rgba(0,0,0,.38)}.mat-radio-button .mat-ripple-element{background-color:#000}.mat-select-value{color:rgba(0,0,0,.87)}.mat-select-placeholder{color:rgba(0,0,0,.42)}.mat-select-disabled .mat-select-value{color:rgba(0,0,0,.38)}.mat-select-arrow{color:rgba(0,0,0,.54)}.mat-select-panel{background:#fff}.mat-select-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.mat-select-panel .mat-option.mat-selected:not(.mat-option-multiple){background:rgba(0,0,0,.12)}.mat-form-field.mat-focused.mat-primary .mat-select-arrow{color:#3f51b5}.mat-form-field.mat-focused.mat-accent .mat-select-arrow{color:#ff4081}.mat-form-field.mat-focused.mat-warn .mat-select-arrow,.mat-form-field .mat-select.mat-select-invalid .mat-select-arrow{color:#f44336}.mat-form-field .mat-select.mat-select-disabled .mat-select-arrow{color:rgba(0,0,0,.38)}.mat-drawer-container{background-color:#fafafa;color:rgba(0,0,0,.87)}.mat-drawer{color:rgba(0,0,0,.87)}.mat-drawer,.mat-drawer.mat-drawer-push{background-color:#fff}.mat-drawer:not(.mat-drawer-side){box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)}.mat-drawer-side{border-right:1px solid rgba(0,0,0,.12)}.mat-drawer-side.mat-drawer-end{border-left:1px solid rgba(0,0,0,.12);border-right:none}[dir=rtl] .mat-drawer-side{border-left:1px solid rgba(0,0,0,.12);border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-left:none;border-right:1px solid rgba(0,0,0,.12)}.mat-drawer-backdrop.mat-drawer-shown{background-color:rgba(0,0,0,.6)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb{background-color:#ff4081}.mat-slide-toggle.mat-checked .mat-slide-toggle-bar{background-color:rgba(255,64,129,.54)}.mat-slide-toggle.mat-checked .mat-ripple-element{background-color:#ff4081}.mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-thumb{background-color:#3f51b5}.mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-bar{background-color:rgba(63,81,181,.54)}.mat-slide-toggle.mat-primary.mat-checked .mat-ripple-element{background-color:#3f51b5}.mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-thumb{background-color:#f44336}.mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-bar{background-color:rgba(244,67,54,.54)}.mat-slide-toggle.mat-warn.mat-checked .mat-ripple-element{background-color:#f44336}.mat-slide-toggle:not(.mat-checked) .mat-ripple-element{background-color:#000}.mat-slide-toggle-thumb{box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);background-color:#fafafa}.mat-slide-toggle-bar{background-color:rgba(0,0,0,.38)}.mat-slider-track-background{background-color:rgba(0,0,0,.26)}.mat-primary .mat-slider-thumb,.mat-primary .mat-slider-thumb-label,.mat-primary .mat-slider-track-fill{background-color:#3f51b5}.mat-primary .mat-slider-thumb-label-text{color:#fff}.mat-primary .mat-slider-focus-ring{background-color:rgba(63,81,181,.2)}.mat-accent .mat-slider-thumb,.mat-accent .mat-slider-thumb-label,.mat-accent .mat-slider-track-fill{background-color:#ff4081}.mat-accent .mat-slider-thumb-label-text{color:#fff}.mat-accent .mat-slider-focus-ring{background-color:rgba(255,64,129,.2)}.mat-warn .mat-slider-thumb,.mat-warn .mat-slider-thumb-label,.mat-warn .mat-slider-track-fill{background-color:#f44336}.mat-warn .mat-slider-thumb-label-text{color:#fff}.mat-warn .mat-slider-focus-ring{background-color:rgba(244,67,54,.2)}.cdk-focused .mat-slider-track-background,.mat-slider:hover .mat-slider-track-background{background-color:rgba(0,0,0,.38)}.mat-slider-disabled .mat-slider-thumb,.mat-slider-disabled .mat-slider-track-background,.mat-slider-disabled .mat-slider-track-fill{background-color:rgba(0,0,0,.26)}.mat-slider-disabled:hover .mat-slider-track-background{background-color:rgba(0,0,0,.26)}.mat-slider-min-value .mat-slider-focus-ring{background-color:rgba(0,0,0,.12)}.mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb,.mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb-label{background-color:rgba(0,0,0,.87)}.mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb,.mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb-label{background-color:rgba(0,0,0,.26)}.mat-slider-min-value:not(.mat-slider-thumb-label-showing) .mat-slider-thumb{border-color:rgba(0,0,0,.26);background-color:transparent}.mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused .mat-slider-thumb,.mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover .mat-slider-thumb{border-color:rgba(0,0,0,.38)}.mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused.mat-slider-disabled .mat-slider-thumb,.mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover.mat-slider-disabled .mat-slider-thumb{border-color:rgba(0,0,0,.26)}.mat-slider-has-ticks .mat-slider-wrapper:after{border-color:rgba(0,0,0,.7)}.mat-slider-horizontal .mat-slider-ticks{background-image:repeating-linear-gradient(90deg,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent);background-image:-moz-repeating-linear-gradient(.0001deg,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent)}.mat-slider-vertical .mat-slider-ticks{background-image:repeating-linear-gradient(180deg,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent)}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused,.mat-step-header:hover{background-color:rgba(0,0,0,.04)}@media(hover:none){.mat-step-header:hover{background:none}}.mat-step-header .mat-step-label,.mat-step-header .mat-step-optional{color:rgba(0,0,0,.54)}.mat-step-header .mat-step-icon{background-color:rgba(0,0,0,.54);color:#fff}.mat-step-header .mat-step-icon-selected,.mat-step-header .mat-step-icon-state-done,.mat-step-header .mat-step-icon-state-edit{background-color:#3f51b5;color:#fff}.mat-step-header.mat-accent .mat-step-icon{color:#fff}.mat-step-header.mat-accent .mat-step-icon-selected,.mat-step-header.mat-accent .mat-step-icon-state-done,.mat-step-header.mat-accent .mat-step-icon-state-edit{background-color:#ff4081;color:#fff}.mat-step-header.mat-warn .mat-step-icon{color:#fff}.mat-step-header.mat-warn .mat-step-icon-selected,.mat-step-header.mat-warn .mat-step-icon-state-done,.mat-step-header.mat-warn .mat-step-icon-state-edit{background-color:#f44336;color:#fff}.mat-step-header .mat-step-icon-state-error{background-color:transparent;color:#f44336}.mat-step-header .mat-step-label.mat-step-label-active{color:rgba(0,0,0,.87)}.mat-step-header .mat-step-label.mat-step-label-error{color:#f44336}.mat-stepper-horizontal,.mat-stepper-vertical{background-color:#fff}.mat-stepper-vertical-line:before{border-left-color:rgba(0,0,0,.12)}.mat-horizontal-stepper-header:after,.mat-horizontal-stepper-header:before,.mat-stepper-horizontal-line{border-top-color:rgba(0,0,0,.12)}.mat-horizontal-stepper-header{height:72px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header,.mat-vertical-stepper-header{padding:24px}.mat-stepper-vertical-line:before{top:-16px;bottom:-16px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:after,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:before{top:36px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{top:36px}.mat-sort-header-arrow{color:#757575}.mat-tab-header,.mat-tab-nav-bar{border-bottom:1px solid rgba(0,0,0,.12)}.mat-tab-group-inverted-header .mat-tab-header,.mat-tab-group-inverted-header .mat-tab-nav-bar{border-top:1px solid rgba(0,0,0,.12);border-bottom:none}.mat-tab-label,.mat-tab-link{color:rgba(0,0,0,.87)}.mat-tab-label.mat-tab-disabled,.mat-tab-link.mat-tab-disabled{color:rgba(0,0,0,.38)}.mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.87)}.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.38)}.mat-tab-group[class*=mat-background-] .mat-tab-header,.mat-tab-nav-bar[class*=mat-background-]{border-bottom:none;border-top:none}.mat-tab-group.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(197,202,233,.3)}.mat-tab-group.mat-primary .mat-ink-bar,.mat-tab-nav-bar.mat-primary .mat-ink-bar{background-color:#3f51b5}.mat-tab-group.mat-primary.mat-background-primary>.mat-tab-header .mat-ink-bar,.mat-tab-group.mat-primary.mat-background-primary>.mat-tab-link-container .mat-ink-bar,.mat-tab-nav-bar.mat-primary.mat-background-primary>.mat-tab-header .mat-ink-bar,.mat-tab-nav-bar.mat-primary.mat-background-primary>.mat-tab-link-container .mat-ink-bar{background-color:#fff}.mat-tab-group.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,128,171,.3)}.mat-tab-group.mat-accent .mat-ink-bar,.mat-tab-nav-bar.mat-accent .mat-ink-bar{background-color:#ff4081}.mat-tab-group.mat-accent.mat-background-accent>.mat-tab-header .mat-ink-bar,.mat-tab-group.mat-accent.mat-background-accent>.mat-tab-link-container .mat-ink-bar,.mat-tab-nav-bar.mat-accent.mat-background-accent>.mat-tab-header .mat-ink-bar,.mat-tab-nav-bar.mat-accent.mat-background-accent>.mat-tab-link-container .mat-ink-bar{background-color:#fff}.mat-tab-group.mat-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,205,210,.3)}.mat-tab-group.mat-warn .mat-ink-bar,.mat-tab-nav-bar.mat-warn .mat-ink-bar{background-color:#f44336}.mat-tab-group.mat-warn.mat-background-warn>.mat-tab-header .mat-ink-bar,.mat-tab-group.mat-warn.mat-background-warn>.mat-tab-link-container .mat-ink-bar,.mat-tab-nav-bar.mat-warn.mat-background-warn>.mat-tab-header .mat-ink-bar,.mat-tab-nav-bar.mat-warn.mat-background-warn>.mat-tab-link-container .mat-ink-bar{background-color:#fff}.mat-tab-group.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(197,202,233,.3)}.mat-tab-group.mat-background-primary>.mat-tab-header,.mat-tab-group.mat-background-primary>.mat-tab-header-pagination,.mat-tab-group.mat-background-primary>.mat-tab-link-container,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container{background-color:#3f51b5}.mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-label,.mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-tab-link,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-label,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-tab-link{color:#fff}.mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-tab-link.mat-tab-disabled{color:rgba(255,255,255,.4)}.mat-tab-group.mat-background-primary>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-primary>.mat-tab-header .mat-focus-indicator:before,.mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-focus-indicator:before{border-color:#fff}.mat-tab-group.mat-background-primary>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:rgba(255,255,255,.4)}.mat-tab-group.mat-background-primary>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-group.mat-background-primary>.mat-tab-header .mat-ripple-element,.mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-ripple-element,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-ripple-element,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-ripple-element{background-color:rgba(255,255,255,.12)}.mat-tab-group.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,128,171,.3)}.mat-tab-group.mat-background-accent>.mat-tab-header,.mat-tab-group.mat-background-accent>.mat-tab-header-pagination,.mat-tab-group.mat-background-accent>.mat-tab-link-container,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container{background-color:#ff4081}.mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-label,.mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-tab-link,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-label,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-tab-link{color:#fff}.mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-tab-link.mat-tab-disabled{color:rgba(255,255,255,.4)}.mat-tab-group.mat-background-accent>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-accent>.mat-tab-header .mat-focus-indicator:before,.mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-focus-indicator:before{border-color:#fff}.mat-tab-group.mat-background-accent>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:rgba(255,255,255,.4)}.mat-tab-group.mat-background-accent>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-group.mat-background-accent>.mat-tab-header .mat-ripple-element,.mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-ripple-element,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-ripple-element,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-ripple-element{background-color:rgba(255,255,255,.12)}.mat-tab-group.mat-background-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,205,210,.3)}.mat-tab-group.mat-background-warn>.mat-tab-header,.mat-tab-group.mat-background-warn>.mat-tab-header-pagination,.mat-tab-group.mat-background-warn>.mat-tab-link-container,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container{background-color:#f44336}.mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-label,.mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-tab-link,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-label,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-tab-link{color:#fff}.mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-tab-link.mat-tab-disabled{color:rgba(255,255,255,.4)}.mat-tab-group.mat-background-warn>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-warn>.mat-tab-header .mat-focus-indicator:before,.mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-focus-indicator:before{border-color:#fff}.mat-tab-group.mat-background-warn>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:rgba(255,255,255,.4)}.mat-tab-group.mat-background-warn>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-group.mat-background-warn>.mat-tab-header .mat-ripple-element,.mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-ripple-element,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-ripple-element,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-ripple-element{background-color:rgba(255,255,255,.12)}.mat-toolbar{background:#f5f5f5;color:rgba(0,0,0,.87)}.mat-toolbar.mat-primary{background:#3f51b5;color:#fff}.mat-toolbar.mat-accent{background:#ff4081;color:#fff}.mat-toolbar.mat-warn{background:#f44336;color:#fff}.mat-toolbar .mat-focused .mat-form-field-ripple,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-form-field-underline{background-color:currentColor}.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-select-value{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media(max-width:599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}.mat-tooltip{background:rgba(97,97,97,.9)}.mat-tree{background:#fff}.mat-nested-tree-node,.mat-tree-node{color:rgba(0,0,0,.87)}.mat-tree-node{min-height:48px}.mat-snack-bar-container{color:rgba(255,255,255,.7);background:#323232;box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-simple-snackbar-action{color:#ff4081}body,html{margin:0;font-family:Roboto,Helvetica,Arial,sans-serif;height:100%;background-color:#eee}.app-loading .logo{width:113px;height:120px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHEAAAB4CAYAAADFcR0YAAAYNElEQVR4nO2deXwT1drHT2nSlFK6JHNOAPX6XlQuive6wEWRrS2iLOJFSpq0ySC2CoKg4AI06ZKyoywCBUVR3NFeRUrbOQMIFSjpnGHTq6C4XVH09RUXWhFBpc/7R7pMli5Jk061/X0+zz/9TGfOPN+c55zznGdmEOpUpzrVqU51CqGiIhRZui8+saQi8S+llYYrS1yGgSLDQ4VKPHo7M4zf/S5J3XeM8NJxwrOPyNQyFzd149bEqUs3xk+d+1js1HtzYqfaHoyZapoRMyXFouXrLCktypZs0o0datIOHJIa3XuQCenVvtc/rIS9sbhU4pIp46aKEllOGdkiMnyQyuQUlfEFUcY1/mz7AVyzrYKrKdycWDPn0TjgZ3eDUZO6QoolukWWbNbV+LMUs+5csln3YbJFV5ycFr0o2Rw1YfDtqJfaflJVb5YnJJQxboAg4YmUkUcowxtFhvdQhk+KMoGW2s5DBLbtx7DmlUR4cHEcTJgaA0NTo2FIqg6GmaIhKa1l8II2s+58iiXalWLWrUoyR1mGpequUNu3YZUg6a+iMl5MGT4uyvg0ZeSsu1e1HJo3wNUvJcK4zK4wIj0aks0tcbzOj4UKqu5CikV3Jtmiez8lLSpdbX+HRMUVXHehkgymjKykDP8QLCx/RhmBh5fGwU3jPSGMsGhhhEUDw9MxDM7oAzdmXAM3ZAyEgdabYIB1GPS3jYb+tjENZr0VBliHwkDrILghYwAMsl0HQyZdA0P5K2C4tRekpHeHEeYIGGHuAiPMGkixRLU8NFuiv042ayf1N6F4tVkEowhBIvNFmZxoTU9ryhY9meDV86JgpAVBf9touHTyejBmFgOXuQv0WRWQmMUgIesgxGcdasQOQ0KmDPj+D6FnzjdwUe7XcHHOZ3CJ/Rhcmn0ILpuzC/o9sAYGTLkLhvF9YWQagpvTUC3UFvXQT4enRSerDaWlihAqyWAqk1PhAKfshen3d1OExxgYaB0KOHMnxGW9AwlZMiRksZbbPQcAP3ISejh/gh751X7sJzA6z4LReR5IQQ30zD8DfR56E/pPvRuG8n0hKYPUtqOZXpoWlYMQ6qI2pCYlMrw0nPCUECdMjakNWbFw+Z0LIT7rUODwMiUwTH8PjDnfNwGwaag986vg0uzD0Hf2JrgxayyMTEOQYtE2MRGK2qQ2p0YlyNw9bQGwzu6xx0KKRQfX2syQkHUgMHhZDBKyJNDPOAo9nWcCgNe0GZ2/wKX2YzB48g2QYolpahmzUW1ePhL3cj3bEqAoE1j7ih5GmCOh112vBd4DsyTgZn0cYO9rIcj8M2B0/gZ9Zz8PSdaLGpn96i4MN+tGq83NQwLDM9oa4luHjXBfng4Md9LAIGZKYJj5YVgAetsljk8gOT3RP0hz9Pdqc/PQYy/Grd9+oG0hijKB3Uc4mLAkB+IzWx5O9TOOhTSENh1ez8JfHB+7lyp+lyBRuWqzq5dlruYNQcJtDlGUCZS4/gL9HtwK8S0AmHjPQTDm/tgmAJV25aynGxsjv+k/DsWozQ8hhFD6vMgt2YUxsONg20PcfoCD1/f0hYum7YH4zCbCaqYEZM5XbRJGfcx5FobZevuGVbPuXLJJM1xtfgghhGx27dO8QwtPFyeq0ht3HOBgfekwME6paHQiY7jvKPRoozDqG1bPQ79Z6+HmNOQbUtN096vNDyGEkC1bO413aOHugijYVoFhuwogdx40wMynZ0BcI+Oj0X5KFYBu+wl65lX5h2iOelZtfgghhPiHEeEdWrBma+G+pdGg1vi461AiZK6bC13vfMdzLJx6RJWx0LM3noNhtst9QmqyJfpttfnVy2bX/Jt3aIF3aCFnfTegrO0hijIBQeoJKQVPes5Ip/8HeuRXqQzxLNx013A/EHXvq82uXqbZSM87ND/yDi3Y7FpY/Woc7DpsVAEkhjf2XgF/myVA97sO1kJ8T1WAdRAHZY70ya8mm3WfqM3OQza79gGbXVNTF1o3FieCGuvH7QcwvFnRG3rdu88Ncdq70COvnfbE9gYRIYRsdk1lXVjNckbB629zqoRVUcaw4s1bQX+3BIlTDreDMfEXGMpf5Q/iEbWZ+WjcFBRjs2t+qAur0xfrYMdBNcIqgR0HDTB/sxmibEfB6PhOZYjnYYSfBX+yWbddbWZ+ZcuOHK8Mq3NXx6jUGwnsOpQAU5+YDYbZn6mz0M+vhh75P8ElOSdhpMl3iZFi1j2tNq9GZbNrN9eFVd6hhZUvx8EOFcZHUSYgMiOMXbwGuNxzqo2HfR7e5nedmGLRPaw2qyZlc2g/r4OYPlcDL4h6VSY6okzg7cPdYciynUDyf1YllF49cxmMMHtD1F0Yboq6Q21OTSrDjq7lHZqf60BOztXCq28ZVAutxa7L4IYVB8GY37ZhlRT8Dv+cwsMIcxfvUPrzsFTtdWpzalZWh2aBMqzOXBYNgqRSWJUxbHVdAX+df6pNQZKCGhjKX+tbg2OO/n7IWJSoNqMWiXdoSuogZszTgL2wm2phdccBPby29zrot+STNuyNZyE5PcHfePiR2mxarDuykUE5PvIOLSze1F21sCrKBJ7fPRh6OdsG4iWOjyA5Pd7PprDuKbXZBCRbduR4JcRJOVrYVJaoyh6kKBN462ACvFh+E/Rd/HnYQ+tlc3ZDcnqsn22oqFS1uQQs3q7J9gZZtNugWmjdLmN46e2B0GfhScB54Zu19p39vN+d/UEm1FVtJkHJ5tCUK0FOW6SDbfvV2boSZXdlgMh6wahCCr0KvvvGmFf9dY+8qu+MeVXVxvzq30IB8e8zFvkrzfg/tVkErQn3oUvT50ScqYNos2shuzAGdh1RJzXnNgzbD2B4dU8/Gd0Bhvh5p3sb7T9cTXKrBxlzqm8z5lbl9MivKjPmVVUHDrEKrp86xc94GP2a2iyCUvl/k6K/+OGOq1/def171mxNfW9Mn6eBZc/HqjY+Ko0yvNdZjjSN3YNx3unebqjVHxjzqqqNedW/Nw3xNNyYOcpfznR6W/q+1Tp69Fb90f+OyX7/xJgDR0+MhQ9PjoO1r10BNrvn+PhsiTo1On5AFrXkvvRzvr+Y5Pw43phftapHXtUX/iD2zPsBhvJ9vQHWDDdpBoXb7yER+2CE4f0TY54/emIseNu7n42GGUvjQDk+Ts7TQqlLvfHRC2RZoPfbI++0yTvk9sz73mf3ItkSfWqYKfqv4fB5SASwsuvRE2NNR0+M2eoPXp0dPzkKKt5LBqs9AXiHpn58nL5Y125AigyvDdgBMz/WGfOqN7ohnoFLs//jk/hONus+bNcz04INvU6989no3499cVsjAMfA8ZMjoexQDtyz6RSkLS+rh1hn+Ru6qQ+w1gTGLQvGD8bcqhyj8xxcNesZ390Ls25bqP0eUqVndzk/OU8HL5T9A+QPR8IHX7phHv/yFjjyqQm2sIVw/4ufwJhVABMKAVILATIW2IB3II+Jzvo3EmDnITVnrATcL3MgIEr4gYAdkVSuwQU1B/tPvdsn8Z2Uprs3DK4PnWwO7WfuzWANTFscC8+WXA3HvxwNT+1+DrKe+RYmFgJMWOuG12A1YMvtA7yji0ePfLZUnRodfzDLJP3IQH2RsBDuHzrpWvB+XjHJhHqEw/chk7J0kXdoIWMugrSVDP61xhucp01cfRL4nHgPiPcu1MHWfWrV6PhaCSPXBOKLRCdcnWL2rqmJ/jZcvg+ZrHbtTCUI3o7AtPJAkwDrzLxsHfD2hrBqzdbCQyu7wluqh9X6HvlVsdTN2FJfDDZxf/OzPlwRTv+HROY56EpviOblpS2COGE9gHX+bcA7IjxAFjyl3taVjzF8sKW+GJ6mG+cNMcmkvTac/g+ZvCFali6H1HXNQ0wtBEhd+yvY8q/xmLFOytHCMyXtZXwkQGW8uSV+SDZ3fcQL4ld/mNeM2ewaqQFkBGQssLQcYiFA2koX8I4Yj/GRd2hhm0udh3X8hNWaMsZlNOeHQSbUNcmseyDZrNuQbIl+LdkSZW8L/4dEvENToHS+La9vQBAnrAOwLF0JkxTjo82uhfuWRENpZftIBFBGzpa4DBep7euwyTpPcwtv1/xaDyC3J0xcc6rFEOssY+HdPsuOhc/Etqew2v5K8EOl9IcQx9s139U7P6c7mFZKAUOcuOZbsOX19hgfLXM18PTWBNipUlW5H5Dt4yHRcIi3a7Y29KBIsCwrDBhiaiGA6fF3YVI28uiNk3O18PIOveoARZmAyMg3RUUoUm1/h0XumtM6x2vA6kwOCmLqOgDLo0/7hNUHHms/46MgkfZdxd0a8Q7tYeVSY+Lqr4IDWfg7WAtGA++IbMgEZWsh94luKj0D6R1Sybk/bW+0ZUferoQY6FLDY3xcex54R5zH+GjN1sKaovh2MdGhksGmtr/DIvfTw9ovGsJgFJge/zTI3ghgWnUIeEc3j7Cama/mM5DK3tiyBMAfUla7ZrHS6emL50BqYU3QINOXOD16o82uhWmLo9XPrzJ8pKgcx6rt73ApgrdrqhuWG3qYuOa7oCGmrgOwFiR5JMozsjXg3BCrajaHyuTbkvLunNrODpt4R+S4ht6IwFowBiasDxJiIUDq2jO160evivJS9QqtqEzOi3u5nmr7OmxKmoyibXaN7LmzsTV4iIUAaSu2A+/QeY6PzigodWFVJjpUxhf+1Gk4hBCyzdOM8synXgmpa8+2CmT6kgLP/Ue7FmY91lWl3ohPb9kfS9T2c9jFO7RFyt6YvujhoJccqYXuRLm14FaP9SPv0MLjm+PVgPiBIOnj1PZx2DVuCoqpq8Gp32t89LlWgZy4+iTwudgnLff621zbhlVG3kQIRajt4zaRzRGZarNrfm/Y4SBgevzjVoVV83LRI6za7FqYskDXprNVKnEWtX3bprLZtRuUm8bW/AGQWvhbq8KqZcl8j7IOm10LS55rowdZGflMbZ+qIptDs78BZBewOoe1qjemrv0FrM6bfKoB3tgT/mxOiYT/3N+HakzmR9BldW+eqtuucmdzggdpevxTj/yqO5ujCy9EiSxX25eqyurQ3ujZcyIgfXF2qxIBaSv3+YyPC5/pHp5JDsPHnM52/sWZtpA1O/JOT5Ao6A1kt9VA+qJ7PfKrmflRULQ7tO/PoTL+UG3ftStZHZplniB1YFm2LugeOXHtGeBzDB5h9cEVXWF3qJ5GZuQzYW8sVttv7U42h/Y5n3rVZauDHx9XujzCavo8DRS+ntDq98t19sBmZLNrX/SeXaYvcQadDMhYYPYIq1MW6KC4IviSDsrw9j/zdlPIpHz7VEPx8SQIZg8ybcUu4HNiPCY5a1+LDy4JwMjLavvmDyXeoX3K7XT3O1N5B4KM+akwcc2PAYO05f3VZ5ITRC8sqG1ax0irhUo2u+ZRzx6pAVvuxYGl6NYBpC9d4LmBPE8DK16Oh50tfVNHpeFmtX3xR1UEQghZHdpZyjyru0fFQtry11scXtNW/cfjcQDeoYV7CqKaneBQhk+WyXiY2o74Uyh9rmaId4/kHVFgnT8OJhb+3vxyY3W1b/FxXhT8u7zxdByVccWfutRCDVkeRJfwDu0x7wkP74gF8/ISSF17vokMToVHOOUdWrgzVwsvbW+kgpyRNzuzMGHS+Fkogc/WrPLtlZFgdQ4C8/Ji91JkneeYaHUOAu/q8TtztfCi6A0R11AZT1b7PjuEbPbIScpXUiuTA7a8PmB+dBNMXP2/YFp1HKwFN4P361XqwulruwzK8a+6jHED1L63DqWMeai399v+67a0eDtyT2TsyGN/UWlZzijl+PfGFtbdoPY9dVhl2DXJNoemyh+oxsy9xIiDnQeNIMhkmtr30CmEkMmEoqzZmjyP2p1GzGbXwsOrusKOg4SVuAwD1W57p7xkmo5i3dta7i/H+QM4c1k0FL2lf1AQkE7t9naqGfHzNCm8PfIJm0Ozh7drXNZszVsPLNOteu8LcpnabetUEOo/BWnVbkOnOtWpTnWqU53q1B9eRUUoqsRl6EsruaQyxt1GJTyGMv0gQdJfHP6Ll+NYyshLVCY7RYZ3UwkvCPU1yhjXR2S4hMpkJ2V4nyDpb2zm+AFUxm9TmexsqYky2UFlUiwy/DyVuccEhmcKzDC+hJFrwrFWpFLiPwSGZ4oyFijDPzRfs0M+pwwXiYy7t8yV+PeQNubN8oQEysjnigRxaUgvgGqhMHK2/hqV3O1NHi/jUaEoN6QM/y7K5IzIyHeijF8trTRc2dp7ESR9nMjwbiqTn5u4brXI8E9NAD0ryoRtY/GheUt/LcT/Nuyx4ZKQnFghd89quGmhkhvX1PGUkVu9Nm43izKXK0hcnre5/07mizJeRSW8iTIsUhnLIsMfU4arfPcQMRUrueuDuQ9ayd3u2S7ys8jwHkHmHhIrues3bPBdpxa54vRCJTdOYOQJUcYf+LaHuzuYtnio/UPENaJk+Fcg1ysqQpFFrjh9sQtfXibjUVQmxV77ib9SGa8L5JyU6QfVv+zd7ac9xS58eUDtKsexAjOkUBl/7dVz1wRyHh/9ESDSSjKhtW3Yukd/CZVxhVdY2+Wv9/htk0zOKSoCpNa8VUqQ9HFUxp8oIs2FYF4eX6+OArFWEZRxs71CdbM9soxxGZ7/YxjR2oYUueL07rG6/gf1ftAn62AQ3eeXcLYHFAkPafJ4mWxQHh+qdggMz1Cet0zGwX1+oSNCLClBMSLDHysceKKZ9rwSDoh0v+GfVMZfU5mcooycFSRyS1An6ogQEUJIlPB9inv+ranCYZHhpUqIIdxkjigqQlF1FnTlXUeF6HSiLl6THGdjx5Ywco3XMuWdMsb1CXWbglZHhYgQQlTGhxUzziZrUKlEpvtZ0D9DKxP+JxxtC0gdGaJ7AV5/30eaWzYIDM8VZfyj94KdMlwtyligMs4RJHKLKOv7lbgMF5WUoJhwtNtHHRkilfE85eSmJWu/EglfQSW8wA2ukZQfI7+IMv5KlMl7lJG3RIaXUma4I2xPHHdwiPc3rP3Iqaa+L+xPoqzvRyW8QJQJExn5P1HGpz2SAn4NnxYZt15w4etC9mqxjgxRkMjDiut8FShEpTZsQNrSffG9BRc3nEoGm8DwIspwqSjjLxoDWruzsbHVifCODJEyslKZMQnXC9qdTtSFVnJJAiNPUIarqIwveM12fyuTSGrQF+jgEHcpJidiWz0hVeIyDKQyXuceOz1SgMF9PMUbYjj2E0td5CZlg9sLRK/QthK17SPeEVRK/IfHBInhnwRJf1XAZ/JJQTF8LNStFSRyS+0Gbd01hjZ1fJtkbBg3VtEDLggSnui3LTLeTGV8mDJ8gDLu0VD3VoEZxnv8mCQyPagTUYYPKH8NRUUoKqQNlck0ZUObG3vaAGIEZaRSuSR4YTvq5u9AUSZM4Zs94Rg3RZmcafhBcY8FdRLKuHyF034VmCEllI2srYGpX1Q3357wQhSYYbwyMlBGHmnsWFEiTymXB0Uu1DWUbUEIIY9SD4YXBnWSF7ajbl4DbMg+3kElPER5bkHmrM3+TxghiowbqxyfqYzLA2k/lfCSULUFIYQESX+j8l5FifDBn0zmHvIc6LGptQ0sk3EP5a+MMny8yBXX7CdawwGxpATFuKvTPO7xy6179Jc09X9F5ThWZPhIqH2DEELC3lisXEdShn9oVYmjsxxpRBkLofrVlUn6kcoJE5XJuZYWKPlAZIY7gm2HKOv7UcblU0be9QKxt6WLbHe1niL8yuS8yPDS4gque7DtKpNIqsjwR54JAJwW7Pk8RBkWvTILZ6iM768dCyKQ/2l4/d/LKg03UEZcnuGZfBtItt8bosDIpNJ98YlFrjh9Y1Ym4x5lrsS/uyvL8FzKyNbGygYpI85AZ5ml++J7eye/qUzOU0aepBXc37z84O2jCIRQhLMcaYRKbPaG566xwXcF0p5mJUg40/uXWxcOKcMiZdwLlJEnqUw2UIY3Uka2iDJhPrWYDP8kMPJEIN+rR8i3ZLG15u5FeL8gcXmt+bLMlv2xhMq4UFkb4/VjP0wZLqOMvKT0j8hwicjwMb9tk/HbZTIeFWybmtSmchQtVJLByqxGAE47KUjcrKKdifEoiAU0lfCY1oHDp0UZ76eMrBAkckvRzsT4EFaBRxRXcN0p49JFRqQg2/ejIOPHi1348pZW24VElOkHiYy7270NQ54UGX6eMvKKKJGnRIksF2TuoTLG3RaKL7ds2IC0W1h3Q1Ph09sESR+n0scpI8RK7vrapLeDSni1KJGnqIw310UskeGlAsMzKSO3dr69qgPr/wEIWo9ONIJi0AAAAABJRU5ErkJggg==)}i.material-icons{vertical-align:middle!important}i.spaced{margin-right:.5rem}.highlight{color:red}.mat-toolbar.mat-primary{background:#f8f8f8;color:#000}.mat-toolbar-row,.mat-toolbar-single-row{height:64px!important}.mat-row{min-height:40px}.mat-menu-panel.wide-menu{max-width:none;max-height:none}.mat-form-field-disabled{cursor:not-allowed}input:disabled{cursor:not-allowed}.card{background-color:#fff;border-color:#333;border-radius:6px;box-shadow:0 1px 4px 0 rgba(0,0,0,.14);color:#333;display:flex;flex-direction:column;margin:2rem 1rem 1rem}.card,.card-header{box-sizing:border-box}.card-header{background-image:linear-gradient(60deg,#4766bc,#465d9c);border-bottom-color:#fff;border-radius:3px;box-shadow:0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(70,93,156,.4);color:#fff;font-size:1.2rem;font-weight:300;margin:-1rem 1rem 0;padding:15px}.card-header img{width:1.2rem;vertical-align:top;margin-top:2px}.card-title>a{color:#fff}.card-subtitle{font-size:.9rem;margin-left:1.4rem}.detail>.title{margin:1rem;padding:1rem;background-image:linear-gradient(60deg,#4766bc,#465d9c);border-bottom-color:#fff;border-radius:3px;box-shadow:0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(70,93,156,.4);box-sizing:border-box;color:#fff;font-size:1.2rem;font-weight:300}.detail>.title img{width:2rem;vertical-align:top;margin-top:-4px}.detail>.title a{color:#ff0}.detail>.card{margin-top:0}.mat-menu-content .mat-menu-item:hover{background-color:#e8e8e8} \ No newline at end of file +.mat-badge-content{font-weight:600;font-size:12px;font-family:Roboto,Helvetica Neue,sans-serif}.mat-badge-small .mat-badge-content{font-size:9px}.mat-badge-large .mat-badge-content{font-size:24px}.mat-h1,.mat-headline,.mat-typography h1{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h2,.mat-title,.mat-typography h2{font:500 20px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h3,.mat-subheading-2,.mat-typography h3{font:400 16px/28px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h4,.mat-subheading-1,.mat-typography h4{font:400 15px/24px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.mat-h5,.mat-typography h5{font:400 calc(14px * .83) /20px Roboto,Helvetica Neue,sans-serif;margin:0 0 12px}.mat-h6,.mat-typography h6{font:400 calc(14px * .67) /20px Roboto,Helvetica Neue,sans-serif;margin:0 0 12px}.mat-body-2,.mat-body-strong{font:500 14px/24px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-body,.mat-body-1,.mat-typography{font:400 14px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-body-1 p,.mat-body p,.mat-typography p{margin:0 0 12px}.mat-caption,.mat-small{font:400 12px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-display-4,.mat-typography .mat-display-4{font:300 112px/112px Roboto,Helvetica Neue,sans-serif;letter-spacing:-.05em;margin:0 0 56px}.mat-display-3,.mat-typography .mat-display-3{font:400 56px/56px Roboto,Helvetica Neue,sans-serif;letter-spacing:-.02em;margin:0 0 64px}.mat-display-2,.mat-typography .mat-display-2{font:400 45px/48px Roboto,Helvetica Neue,sans-serif;letter-spacing:-.005em;margin:0 0 64px}.mat-display-1,.mat-typography .mat-display-1{font:400 34px/40px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 64px}.mat-bottom-sheet-container{font:400 14px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-button,.mat-fab,.mat-flat-button,.mat-icon-button,.mat-mini-fab,.mat-raised-button,.mat-stroked-button{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:500}.mat-button-toggle,.mat-card{font-family:Roboto,Helvetica Neue,sans-serif}.mat-card-title{font-size:24px;font-weight:500}.mat-card-header .mat-card-title{font-size:20px}.mat-card-content,.mat-card-subtitle{font-size:14px}.mat-checkbox{font-family:Roboto,Helvetica Neue,sans-serif}.mat-checkbox-layout .mat-checkbox-label{line-height:24px}.mat-chip{font-size:14px;font-weight:500}.mat-chip .mat-chip-remove.mat-icon,.mat-chip .mat-chip-trailing-icon.mat-icon{font-size:18px}.mat-table{font-family:Roboto,Helvetica Neue,sans-serif}.mat-header-cell{font-size:12px;font-weight:500}.mat-cell,.mat-footer-cell{font-size:14px}.mat-calendar{font-family:Roboto,Helvetica Neue,sans-serif}.mat-calendar-body{font-size:13px}.mat-calendar-body-label,.mat-calendar-period-button{font-size:14px;font-weight:500}.mat-calendar-table-header th{font-size:11px;font-weight:400}.mat-dialog-title{font:500 20px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-expansion-panel-header{font-family:Roboto,Helvetica Neue,sans-serif;font-size:15px;font-weight:400}.mat-expansion-panel-content{font:400 14px/20px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-form-field{font-size:inherit;font-weight:400;line-height:1.125;font-family:Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-form-field-wrapper{padding-bottom:1.34375em}.mat-form-field-prefix .mat-icon,.mat-form-field-suffix .mat-icon{font-size:150%;line-height:1.125}.mat-form-field-prefix .mat-icon-button,.mat-form-field-suffix .mat-icon-button{height:1.5em;width:1.5em}.mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-suffix .mat-icon-button .mat-icon{height:1.125em;line-height:1.125}.mat-form-field-infix{padding:.5em 0;border-top:.84375em solid transparent}.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.34375em) scale(.75);width:133.3333333333%}.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.34374em) scale(.75);width:133.3333433333%}.mat-form-field-label-wrapper{top:-.84375em;padding-top:.84375em}.mat-form-field-label{top:1.34375em}.mat-form-field-underline{bottom:1.34375em}.mat-form-field-subscript-wrapper{font-size:75%;margin-top:.6666666667em;top:calc(100% - 1.7916666667em)}.mat-form-field-appearance-legacy .mat-form-field-wrapper{padding-bottom:1.25em}.mat-form-field-appearance-legacy .mat-form-field-infix{padding:.4375em 0}.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.001px);-ms-transform:translateY(-1.28125em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00101px);-ms-transform:translateY(-1.28124em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.28125em) scale(.75) perspective(100px) translateZ(.00102px);-ms-transform:translateY(-1.28123em) scale(.75);width:133.3333533333%}.mat-form-field-appearance-legacy .mat-form-field-label{top:1.28125em}.mat-form-field-appearance-legacy .mat-form-field-underline{bottom:1.25em}.mat-form-field-appearance-legacy .mat-form-field-subscript-wrapper{margin-top:.5416666667em;top:calc(100% - 1.6666666667em)}@media print{.mat-form-field-appearance-legacy.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.28122em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.28121em) scale(.75)}.mat-form-field-appearance-legacy.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.2812em) scale(.75)}}.mat-form-field-appearance-fill .mat-form-field-infix{padding:.25em 0 .75em}.mat-form-field-appearance-fill .mat-form-field-label{top:1.09375em;margin-top:-.5em}.mat-form-field-appearance-fill.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-appearance-fill.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-fill.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-.59374em) scale(.75);width:133.3333433333%}.mat-form-field-appearance-outline .mat-form-field-infix{padding:1em 0}.mat-form-field-appearance-outline .mat-form-field-label{top:1.84375em;margin-top:-.25em}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label,.mat-form-field-appearance-outline.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.59375em) scale(.75);width:133.3333333333%}.mat-form-field-appearance-outline.mat-form-field-can-float .mat-input-server[label]:not(:label-shown)+.mat-form-field-label-wrapper .mat-form-field-label{transform:translateY(-1.59374em) scale(.75);width:133.3333433333%}.mat-grid-tile-footer,.mat-grid-tile-header{font-size:14px}.mat-grid-tile-footer .mat-line,.mat-grid-tile-header .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-footer .mat-line:nth-child(n+2),.mat-grid-tile-header .mat-line:nth-child(n+2){font-size:12px}input.mat-input-element{margin-top:-.0625em}.mat-menu-item{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:400}.mat-paginator,.mat-paginator-page-size .mat-select-trigger{font-family:Roboto,Helvetica Neue,sans-serif;font-size:12px}.mat-radio-button,.mat-select{font-family:Roboto,Helvetica Neue,sans-serif}.mat-select-trigger{height:1.125em}.mat-slide-toggle-content,.mat-slider-thumb-label-text{font-family:Roboto,Helvetica Neue,sans-serif}.mat-slider-thumb-label-text{font-size:12px;font-weight:500}.mat-stepper-horizontal,.mat-stepper-vertical{font-family:Roboto,Helvetica Neue,sans-serif}.mat-step-label{font-size:14px;font-weight:400}.mat-step-sub-label-error{font-weight:400}.mat-step-label-error{font-size:14px}.mat-step-label-selected{font-size:14px;font-weight:500}.mat-tab-group,.mat-tab-label,.mat-tab-link{font-family:Roboto,Helvetica Neue,sans-serif}.mat-tab-label,.mat-tab-link{font-size:14px;font-weight:500}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font:500 20px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0}.mat-tooltip{font-family:Roboto,Helvetica Neue,sans-serif;font-size:10px;padding-top:6px;padding-bottom:6px}.mat-tooltip-handset{font-size:14px;padding-top:8px;padding-bottom:8px}.mat-list-item,.mat-list-option{font-family:Roboto,Helvetica Neue,sans-serif}.mat-list-base .mat-list-item{font-size:16px}.mat-list-base .mat-list-item .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base .mat-list-item .mat-line:nth-child(n+2){font-size:14px}.mat-list-base .mat-list-option{font-size:16px}.mat-list-base .mat-list-option .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base .mat-list-option .mat-line:nth-child(n+2){font-size:14px}.mat-list-base .mat-subheader{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px;font-weight:500}.mat-list-base[dense] .mat-list-item{font-size:12px}.mat-list-base[dense] .mat-list-item .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense] .mat-list-item .mat-line:nth-child(n+2){font-size:12px}.mat-list-base[dense] .mat-list-option{font-size:12px}.mat-list-base[dense] .mat-list-option .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-list-base[dense] .mat-list-option .mat-line:nth-child(n+2){font-size:12px}.mat-list-base[dense] .mat-subheader{font-family:Roboto,Helvetica Neue,sans-serif;font-size:12px;font-weight:500}.mat-option{font-family:Roboto,Helvetica Neue,sans-serif;font-size:16px}.mat-optgroup-label{font:500 14px/24px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal}.mat-simple-snackbar{font-family:Roboto,Helvetica Neue,sans-serif;font-size:14px}.mat-simple-snackbar-action{line-height:1;font-family:inherit;font-size:inherit;font-weight:500}.mat-tree{font-family:Roboto,Helvetica Neue,sans-serif}.mat-nested-tree-node,.mat-tree-node{font-weight:400;font-size:14px}.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0,0,.2,1);transform:scale(0)}.cdk-high-contrast-active .mat-ripple-element{display:none}.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none}.cdk-global-overlay-wrapper,.cdk-overlay-container{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper,.cdk-overlay-pane{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{pointer-events:auto;box-sizing:border-box;max-width:100%;max-height:100%}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:1}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}.cdk-overlay-transparent-backdrop,.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:0}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0!important;box-sizing:content-box!important;height:auto!important;overflow:hidden!important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0!important;box-sizing:content-box!important;height:0!important}@-webkit-keyframes cdk-text-field-autofill-start{ + /*!*/}@keyframes cdk-text-field-autofill-start{ + /*!*/}@-webkit-keyframes cdk-text-field-autofill-end{ + /*!*/}@keyframes cdk-text-field-autofill-end{ + /*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{-webkit-animation:cdk-text-field-autofill-start 0s 1ms;animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){-webkit-animation:cdk-text-field-autofill-end 0s 1ms;animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator,.mat-mdc-focus-indicator{position:relative}.mat-ripple-element{background-color:rgba(0,0,0,.1)}.mat-option{color:rgba(0,0,0,.87)}.mat-option:focus:not(.mat-option-disabled),.mat-option:hover:not(.mat-option-disabled){background:rgba(0,0,0,.04)}.mat-option.mat-selected:not(.mat-option-multiple):not(.mat-option-disabled){background:rgba(0,0,0,.04)}.mat-option.mat-active{background:rgba(0,0,0,.04);color:rgba(0,0,0,.87)}.mat-option.mat-option-disabled{color:rgba(0,0,0,.38)}.mat-primary .mat-option.mat-selected:not(.mat-option-disabled){color:#3f51b5}.mat-accent .mat-option.mat-selected:not(.mat-option-disabled){color:#ff4081}.mat-warn .mat-option.mat-selected:not(.mat-option-disabled){color:#f44336}.mat-optgroup-label{color:rgba(0,0,0,.54)}.mat-optgroup-disabled .mat-optgroup-label{color:rgba(0,0,0,.38)}.mat-pseudo-checkbox{color:rgba(0,0,0,.54)}.mat-pseudo-checkbox:after{color:#fafafa}.mat-pseudo-checkbox-disabled{color:#b0b0b0}.mat-primary .mat-pseudo-checkbox-checked,.mat-primary .mat-pseudo-checkbox-indeterminate{background:#3f51b5}.mat-accent .mat-pseudo-checkbox-checked,.mat-accent .mat-pseudo-checkbox-indeterminate,.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-indeterminate{background:#ff4081}.mat-warn .mat-pseudo-checkbox-checked,.mat-warn .mat-pseudo-checkbox-indeterminate{background:#f44336}.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background:#b0b0b0}.mat-app-background{background-color:#fafafa;color:rgba(0,0,0,.87)}.mat-elevation-z0{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-elevation-z1{box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.mat-elevation-z2{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-elevation-z3{box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12)}.mat-elevation-z4{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.mat-elevation-z5{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 5px 8px 0 rgba(0,0,0,.14),0 1px 14px 0 rgba(0,0,0,.12)}.mat-elevation-z6{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-elevation-z7{box-shadow:0 4px 5px -2px rgba(0,0,0,.2),0 7px 10px 1px rgba(0,0,0,.14),0 2px 16px 1px rgba(0,0,0,.12)}.mat-elevation-z8{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.mat-elevation-z9{box-shadow:0 5px 6px -3px rgba(0,0,0,.2),0 9px 12px 1px rgba(0,0,0,.14),0 3px 16px 2px rgba(0,0,0,.12)}.mat-elevation-z10{box-shadow:0 6px 6px -3px rgba(0,0,0,.2),0 10px 14px 1px rgba(0,0,0,.14),0 4px 18px 3px rgba(0,0,0,.12)}.mat-elevation-z11{box-shadow:0 6px 7px -4px rgba(0,0,0,.2),0 11px 15px 1px rgba(0,0,0,.14),0 4px 20px 3px rgba(0,0,0,.12)}.mat-elevation-z12{box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-elevation-z13{box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 13px 19px 2px rgba(0,0,0,.14),0 5px 24px 4px rgba(0,0,0,.12)}.mat-elevation-z14{box-shadow:0 7px 9px -4px rgba(0,0,0,.2),0 14px 21px 2px rgba(0,0,0,.14),0 5px 26px 4px rgba(0,0,0,.12)}.mat-elevation-z15{box-shadow:0 8px 9px -5px rgba(0,0,0,.2),0 15px 22px 2px rgba(0,0,0,.14),0 6px 28px 5px rgba(0,0,0,.12)}.mat-elevation-z16{box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)}.mat-elevation-z17{box-shadow:0 8px 11px -5px rgba(0,0,0,.2),0 17px 26px 2px rgba(0,0,0,.14),0 6px 32px 5px rgba(0,0,0,.12)}.mat-elevation-z18{box-shadow:0 9px 11px -5px rgba(0,0,0,.2),0 18px 28px 2px rgba(0,0,0,.14),0 7px 34px 6px rgba(0,0,0,.12)}.mat-elevation-z19{box-shadow:0 9px 12px -6px rgba(0,0,0,.2),0 19px 29px 2px rgba(0,0,0,.14),0 7px 36px 6px rgba(0,0,0,.12)}.mat-elevation-z20{box-shadow:0 10px 13px -6px rgba(0,0,0,.2),0 20px 31px 3px rgba(0,0,0,.14),0 8px 38px 7px rgba(0,0,0,.12)}.mat-elevation-z21{box-shadow:0 10px 13px -6px rgba(0,0,0,.2),0 21px 33px 3px rgba(0,0,0,.14),0 8px 40px 7px rgba(0,0,0,.12)}.mat-elevation-z22{box-shadow:0 10px 14px -6px rgba(0,0,0,.2),0 22px 35px 3px rgba(0,0,0,.14),0 8px 42px 7px rgba(0,0,0,.12)}.mat-elevation-z23{box-shadow:0 11px 14px -7px rgba(0,0,0,.2),0 23px 36px 3px rgba(0,0,0,.14),0 9px 44px 8px rgba(0,0,0,.12)}.mat-elevation-z24{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12)}.mat-autocomplete-panel{background:#fff;color:rgba(0,0,0,.87)}.mat-autocomplete-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.mat-autocomplete-panel .mat-option.mat-selected:not(.mat-active):not(:hover){background:#fff}.mat-autocomplete-panel .mat-option.mat-selected:not(.mat-active):not(:hover):not(.mat-option-disabled){color:rgba(0,0,0,.87)}.mat-badge{position:relative}.mat-badge-hidden .mat-badge-content{display:none}.mat-badge-content{position:absolute;text-align:center;display:inline-block;border-radius:50%;transition:transform .2s ease-in-out;transform:scale(.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;pointer-events:none}.mat-badge-content._mat-animation-noopable,.ng-animate-disabled .mat-badge-content{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:16px;height:16px;line-height:16px}.mat-badge-small.mat-badge-above .mat-badge-content{top:-8px}.mat-badge-small.mat-badge-below .mat-badge-content{bottom:-8px}.mat-badge-small.mat-badge-before .mat-badge-content{left:-16px}[dir=rtl] .mat-badge-small.mat-badge-before .mat-badge-content{left:auto;right:-16px}.mat-badge-small.mat-badge-after .mat-badge-content{right:-16px}[dir=rtl] .mat-badge-small.mat-badge-after .mat-badge-content{right:auto;left:-16px}.mat-badge-small.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-8px}[dir=rtl] .mat-badge-small.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-8px}.mat-badge-small.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-8px}[dir=rtl] .mat-badge-small.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-8px}.mat-badge-medium .mat-badge-content{width:22px;height:22px;line-height:22px}.mat-badge-medium.mat-badge-above .mat-badge-content{top:-11px}.mat-badge-medium.mat-badge-below .mat-badge-content{bottom:-11px}.mat-badge-medium.mat-badge-before .mat-badge-content{left:-22px}[dir=rtl] .mat-badge-medium.mat-badge-before .mat-badge-content{left:auto;right:-22px}.mat-badge-medium.mat-badge-after .mat-badge-content{right:-22px}[dir=rtl] .mat-badge-medium.mat-badge-after .mat-badge-content{right:auto;left:-22px}.mat-badge-medium.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-11px}[dir=rtl] .mat-badge-medium.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-11px}.mat-badge-medium.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-11px}[dir=rtl] .mat-badge-medium.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-11px}.mat-badge-large .mat-badge-content{width:28px;height:28px;line-height:28px}.mat-badge-large.mat-badge-above .mat-badge-content{top:-14px}.mat-badge-large.mat-badge-below .mat-badge-content{bottom:-14px}.mat-badge-large.mat-badge-before .mat-badge-content{left:-28px}[dir=rtl] .mat-badge-large.mat-badge-before .mat-badge-content{left:auto;right:-28px}.mat-badge-large.mat-badge-after .mat-badge-content{right:-28px}[dir=rtl] .mat-badge-large.mat-badge-after .mat-badge-content{right:auto;left:-28px}.mat-badge-large.mat-badge-overlap.mat-badge-before .mat-badge-content{left:-14px}[dir=rtl] .mat-badge-large.mat-badge-overlap.mat-badge-before .mat-badge-content{left:auto;right:-14px}.mat-badge-large.mat-badge-overlap.mat-badge-after .mat-badge-content{right:-14px}[dir=rtl] .mat-badge-large.mat-badge-overlap.mat-badge-after .mat-badge-content{right:auto;left:-14px}.mat-badge-content{color:#fff;background:#3f51b5}.cdk-high-contrast-active .mat-badge-content{outline:1px solid;border-radius:0}.mat-badge-accent .mat-badge-content{background:#ff4081;color:#fff}.mat-badge-warn .mat-badge-content{color:#fff;background:#f44336}.mat-badge-disabled .mat-badge-content{background:#b9b9b9;color:rgba(0,0,0,.38)}.mat-bottom-sheet-container{box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12);background:#fff;color:rgba(0,0,0,.87)}.mat-button,.mat-icon-button,.mat-stroked-button{color:inherit;background:transparent}.mat-button.mat-primary,.mat-icon-button.mat-primary,.mat-stroked-button.mat-primary{color:#3f51b5}.mat-button.mat-accent,.mat-icon-button.mat-accent,.mat-stroked-button.mat-accent{color:#ff4081}.mat-button.mat-warn,.mat-icon-button.mat-warn,.mat-stroked-button.mat-warn{color:#f44336}.mat-button.mat-accent.mat-button-disabled,.mat-button.mat-button-disabled.mat-button-disabled,.mat-button.mat-primary.mat-button-disabled,.mat-button.mat-warn.mat-button-disabled,.mat-icon-button.mat-accent.mat-button-disabled,.mat-icon-button.mat-button-disabled.mat-button-disabled,.mat-icon-button.mat-primary.mat-button-disabled,.mat-icon-button.mat-warn.mat-button-disabled,.mat-stroked-button.mat-accent.mat-button-disabled,.mat-stroked-button.mat-button-disabled.mat-button-disabled,.mat-stroked-button.mat-primary.mat-button-disabled,.mat-stroked-button.mat-warn.mat-button-disabled{color:rgba(0,0,0,.26)}.mat-button.mat-primary .mat-button-focus-overlay,.mat-icon-button.mat-primary .mat-button-focus-overlay,.mat-stroked-button.mat-primary .mat-button-focus-overlay{background-color:#3f51b5}.mat-button.mat-accent .mat-button-focus-overlay,.mat-icon-button.mat-accent .mat-button-focus-overlay,.mat-stroked-button.mat-accent .mat-button-focus-overlay{background-color:#ff4081}.mat-button.mat-warn .mat-button-focus-overlay,.mat-icon-button.mat-warn .mat-button-focus-overlay,.mat-stroked-button.mat-warn .mat-button-focus-overlay{background-color:#f44336}.mat-button.mat-button-disabled .mat-button-focus-overlay,.mat-icon-button.mat-button-disabled .mat-button-focus-overlay,.mat-stroked-button.mat-button-disabled .mat-button-focus-overlay{background-color:transparent}.mat-button .mat-ripple-element,.mat-icon-button .mat-ripple-element,.mat-stroked-button .mat-ripple-element{opacity:.1;background-color:currentColor}.mat-button-focus-overlay{background:#000}.mat-stroked-button:not(.mat-button-disabled){border-color:rgba(0,0,0,.12)}.mat-fab,.mat-flat-button,.mat-mini-fab,.mat-raised-button{color:rgba(0,0,0,.87);background-color:#fff}.mat-fab.mat-accent,.mat-fab.mat-primary,.mat-fab.mat-warn,.mat-flat-button.mat-accent,.mat-flat-button.mat-primary,.mat-flat-button.mat-warn,.mat-mini-fab.mat-accent,.mat-mini-fab.mat-primary,.mat-mini-fab.mat-warn,.mat-raised-button.mat-accent,.mat-raised-button.mat-primary,.mat-raised-button.mat-warn{color:#fff}.mat-fab.mat-accent.mat-button-disabled,.mat-fab.mat-button-disabled.mat-button-disabled,.mat-fab.mat-primary.mat-button-disabled,.mat-fab.mat-warn.mat-button-disabled,.mat-flat-button.mat-accent.mat-button-disabled,.mat-flat-button.mat-button-disabled.mat-button-disabled,.mat-flat-button.mat-primary.mat-button-disabled,.mat-flat-button.mat-warn.mat-button-disabled,.mat-mini-fab.mat-accent.mat-button-disabled,.mat-mini-fab.mat-button-disabled.mat-button-disabled,.mat-mini-fab.mat-primary.mat-button-disabled,.mat-mini-fab.mat-warn.mat-button-disabled,.mat-raised-button.mat-accent.mat-button-disabled,.mat-raised-button.mat-button-disabled.mat-button-disabled,.mat-raised-button.mat-primary.mat-button-disabled,.mat-raised-button.mat-warn.mat-button-disabled{color:rgba(0,0,0,.26)}.mat-fab.mat-primary,.mat-flat-button.mat-primary,.mat-mini-fab.mat-primary,.mat-raised-button.mat-primary{background-color:#3f51b5}.mat-fab.mat-accent,.mat-flat-button.mat-accent,.mat-mini-fab.mat-accent,.mat-raised-button.mat-accent{background-color:#ff4081}.mat-fab.mat-warn,.mat-flat-button.mat-warn,.mat-mini-fab.mat-warn,.mat-raised-button.mat-warn{background-color:#f44336}.mat-fab.mat-accent.mat-button-disabled,.mat-fab.mat-button-disabled.mat-button-disabled,.mat-fab.mat-primary.mat-button-disabled,.mat-fab.mat-warn.mat-button-disabled,.mat-flat-button.mat-accent.mat-button-disabled,.mat-flat-button.mat-button-disabled.mat-button-disabled,.mat-flat-button.mat-primary.mat-button-disabled,.mat-flat-button.mat-warn.mat-button-disabled,.mat-mini-fab.mat-accent.mat-button-disabled,.mat-mini-fab.mat-button-disabled.mat-button-disabled,.mat-mini-fab.mat-primary.mat-button-disabled,.mat-mini-fab.mat-warn.mat-button-disabled,.mat-raised-button.mat-accent.mat-button-disabled,.mat-raised-button.mat-button-disabled.mat-button-disabled,.mat-raised-button.mat-primary.mat-button-disabled,.mat-raised-button.mat-warn.mat-button-disabled{background-color:rgba(0,0,0,.12)}.mat-fab.mat-accent .mat-ripple-element,.mat-fab.mat-primary .mat-ripple-element,.mat-fab.mat-warn .mat-ripple-element,.mat-flat-button.mat-accent .mat-ripple-element,.mat-flat-button.mat-primary .mat-ripple-element,.mat-flat-button.mat-warn .mat-ripple-element,.mat-mini-fab.mat-accent .mat-ripple-element,.mat-mini-fab.mat-primary .mat-ripple-element,.mat-mini-fab.mat-warn .mat-ripple-element,.mat-raised-button.mat-accent .mat-ripple-element,.mat-raised-button.mat-primary .mat-ripple-element,.mat-raised-button.mat-warn .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.mat-flat-button:not([class*=mat-elevation-z]),.mat-stroked-button:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-raised-button:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-raised-button:not(.mat-button-disabled):active:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.mat-raised-button.mat-button-disabled:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-fab:not([class*=mat-elevation-z]),.mat-mini-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-fab:not(.mat-button-disabled):active:not([class*=mat-elevation-z]),.mat-mini-fab:not(.mat-button-disabled):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-fab.mat-button-disabled:not([class*=mat-elevation-z]),.mat-mini-fab.mat-button-disabled:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-button-toggle-group,.mat-button-toggle-standalone{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-button-toggle-group-appearance-standard,.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{box-shadow:none}.mat-button-toggle{color:rgba(0,0,0,.38)}.mat-button-toggle .mat-button-toggle-focus-overlay{background-color:rgba(0,0,0,.12)}.mat-button-toggle-appearance-standard{color:rgba(0,0,0,.87);background:#fff}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:#000}.mat-button-toggle-group-appearance-standard .mat-button-toggle+.mat-button-toggle{border-left:1px solid rgba(0,0,0,.12)}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle+.mat-button-toggle{border-left:none;border-right:1px solid rgba(0,0,0,.12)}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle+.mat-button-toggle{border-left:none;border-right:none;border-top:1px solid rgba(0,0,0,.12)}.mat-button-toggle-checked{background-color:#e0e0e0;color:rgba(0,0,0,.54)}.mat-button-toggle-checked.mat-button-toggle-appearance-standard{color:rgba(0,0,0,.87)}.mat-button-toggle-disabled{color:rgba(0,0,0,.26);background-color:#eee}.mat-button-toggle-disabled.mat-button-toggle-appearance-standard{background:#fff}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:#bdbdbd}.mat-button-toggle-group-appearance-standard,.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{border:1px solid rgba(0,0,0,.12)}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{line-height:48px}.mat-card{background:#fff;color:rgba(0,0,0,.87)}.mat-card:not([class*=mat-elevation-z]){box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.mat-card.mat-card-flat:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-card-subtitle{color:rgba(0,0,0,.54)}.mat-checkbox-frame{border-color:rgba(0,0,0,.54)}.mat-checkbox-checkmark{fill:#fafafa}.mat-checkbox-checkmark-path{stroke:#fafafa!important}.mat-checkbox-mixedmark{background-color:#fafafa}.mat-checkbox-checked.mat-primary .mat-checkbox-background,.mat-checkbox-indeterminate.mat-primary .mat-checkbox-background{background-color:#3f51b5}.mat-checkbox-checked.mat-accent .mat-checkbox-background,.mat-checkbox-indeterminate.mat-accent .mat-checkbox-background{background-color:#ff4081}.mat-checkbox-checked.mat-warn .mat-checkbox-background,.mat-checkbox-indeterminate.mat-warn .mat-checkbox-background{background-color:#f44336}.mat-checkbox-disabled.mat-checkbox-checked .mat-checkbox-background,.mat-checkbox-disabled.mat-checkbox-indeterminate .mat-checkbox-background{background-color:#b0b0b0}.mat-checkbox-disabled:not(.mat-checkbox-checked) .mat-checkbox-frame{border-color:#b0b0b0}.mat-checkbox-disabled .mat-checkbox-label{color:rgba(0,0,0,.54)}.mat-checkbox .mat-ripple-element{background-color:#000}.mat-checkbox-checked:not(.mat-checkbox-disabled).mat-primary .mat-ripple-element,.mat-checkbox:active:not(.mat-checkbox-disabled).mat-primary .mat-ripple-element{background:#3f51b5}.mat-checkbox-checked:not(.mat-checkbox-disabled).mat-accent .mat-ripple-element,.mat-checkbox:active:not(.mat-checkbox-disabled).mat-accent .mat-ripple-element{background:#ff4081}.mat-checkbox-checked:not(.mat-checkbox-disabled).mat-warn .mat-ripple-element,.mat-checkbox:active:not(.mat-checkbox-disabled).mat-warn .mat-ripple-element{background:#f44336}.mat-chip.mat-standard-chip{background-color:#e0e0e0;color:rgba(0,0,0,.87)}.mat-chip.mat-standard-chip .mat-chip-remove{color:rgba(0,0,0,.87);opacity:.4}.mat-chip.mat-standard-chip:not(.mat-chip-disabled):active{box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12)}.mat-chip.mat-standard-chip:not(.mat-chip-disabled) .mat-chip-remove:hover{opacity:.54}.mat-chip.mat-standard-chip.mat-chip-disabled{opacity:.4}.mat-chip.mat-standard-chip:after{background:#000}.mat-chip.mat-standard-chip.mat-chip-selected.mat-primary{background-color:#3f51b5;color:#fff}.mat-chip.mat-standard-chip.mat-chip-selected.mat-primary .mat-chip-remove{color:#fff;opacity:.4}.mat-chip.mat-standard-chip.mat-chip-selected.mat-primary .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.mat-chip.mat-standard-chip.mat-chip-selected.mat-warn{background-color:#f44336;color:#fff}.mat-chip.mat-standard-chip.mat-chip-selected.mat-warn .mat-chip-remove{color:#fff;opacity:.4}.mat-chip.mat-standard-chip.mat-chip-selected.mat-warn .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.mat-chip.mat-standard-chip.mat-chip-selected.mat-accent{background-color:#ff4081;color:#fff}.mat-chip.mat-standard-chip.mat-chip-selected.mat-accent .mat-chip-remove{color:#fff;opacity:.4}.mat-chip.mat-standard-chip.mat-chip-selected.mat-accent .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.mat-table{background:#fff}.mat-table-sticky,.mat-table tbody,.mat-table tfoot,.mat-table thead,[mat-footer-row],[mat-header-row],[mat-row],mat-footer-row,mat-header-row,mat-row{background:inherit}mat-footer-row,mat-header-row,mat-row,td.mat-cell,td.mat-footer-cell,th.mat-header-cell{border-bottom-color:rgba(0,0,0,.12)}.mat-header-cell{color:rgba(0,0,0,.54)}.mat-cell,.mat-footer-cell{color:rgba(0,0,0,.87)}.mat-calendar-arrow{border-top-color:rgba(0,0,0,.54)}.mat-datepicker-content .mat-calendar-next-button,.mat-datepicker-content .mat-calendar-previous-button,.mat-datepicker-toggle{color:rgba(0,0,0,.54)}.mat-calendar-table-header{color:rgba(0,0,0,.38)}.mat-calendar-table-header-divider:after{background:rgba(0,0,0,.12)}.mat-calendar-body-label{color:rgba(0,0,0,.54)}.mat-calendar-body-cell-content,.mat-date-range-input-separator{color:rgba(0,0,0,.87);border-color:transparent}.mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:rgba(0,0,0,.38)}.mat-form-field-disabled .mat-date-range-input-separator{color:rgba(0,0,0,.38)}.mat-calendar-body-in-preview{color:rgba(0,0,0,.24)}.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:rgba(0,0,0,.38)}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:rgba(0,0,0,.18)}.mat-calendar-body-in-range:before{background:rgba(63,81,181,.2)}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range:before{background:rgba(249,171,0,.2)}.mat-calendar-body-comparison-bridge-start:before,[dir=rtl] .mat-calendar-body-comparison-bridge-end:before{background:linear-gradient(90deg,rgba(63,81,181,.2) 50%,rgba(249,171,0,.2) 0)}.mat-calendar-body-comparison-bridge-end:before,[dir=rtl] .mat-calendar-body-comparison-bridge-start:before{background:linear-gradient(270deg,rgba(63,81,181,.2) 50%,rgba(249,171,0,.2) 0)}.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range:after,.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical{background:#a8dab5}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.mat-calendar-body-selected{background-color:#3f51b5;color:#fff}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(63,81,181,.4)}.mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:rgba(63,81,181,.3)}.mat-datepicker-content{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);background-color:#fff;color:rgba(0,0,0,.87)}.mat-datepicker-content.mat-accent .mat-calendar-body-in-range:before{background:rgba(255,64,129,.2)}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-identical,.mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range:before{background:rgba(249,171,0,.2)}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-bridge-start:before,.mat-datepicker-content.mat-accent [dir=rtl] .mat-calendar-body-comparison-bridge-end:before{background:linear-gradient(90deg,rgba(255,64,129,.2) 50%,rgba(249,171,0,.2) 0)}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-bridge-end:before,.mat-datepicker-content.mat-accent [dir=rtl] .mat-calendar-body-comparison-bridge-start:before{background:linear-gradient(270deg,rgba(255,64,129,.2) 50%,rgba(249,171,0,.2) 0)}.mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range.mat-calendar-body-in-range:after,.mat-datepicker-content.mat-accent .mat-calendar-body-in-range>.mat-calendar-body-comparison-identical{background:#a8dab5}.mat-datepicker-content.mat-accent .mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.mat-datepicker-content.mat-accent .mat-calendar-body-selected{background-color:#ff4081;color:#fff}.mat-datepicker-content.mat-accent .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(255,64,129,.4)}.mat-datepicker-content.mat-accent .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.mat-datepicker-content.mat-accent .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.mat-datepicker-content.mat-accent .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.mat-datepicker-content.mat-accent .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:rgba(255,64,129,.3)}.mat-datepicker-content.mat-warn .mat-calendar-body-in-range:before{background:rgba(244,67,54,.2)}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-identical,.mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range:before{background:rgba(249,171,0,.2)}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-bridge-start:before,.mat-datepicker-content.mat-warn [dir=rtl] .mat-calendar-body-comparison-bridge-end:before{background:linear-gradient(90deg,rgba(244,67,54,.2) 50%,rgba(249,171,0,.2) 0)}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-bridge-end:before,.mat-datepicker-content.mat-warn [dir=rtl] .mat-calendar-body-comparison-bridge-start:before{background:linear-gradient(270deg,rgba(244,67,54,.2) 50%,rgba(249,171,0,.2) 0)}.mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range.mat-calendar-body-in-range:after,.mat-datepicker-content.mat-warn .mat-calendar-body-in-range>.mat-calendar-body-comparison-identical{background:#a8dab5}.mat-datepicker-content.mat-warn .mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.mat-datepicker-content.mat-warn .mat-calendar-body-selected{background-color:#f44336;color:#fff}.mat-datepicker-content.mat-warn .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(244,67,54,.4)}.mat-datepicker-content.mat-warn .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.mat-datepicker-content.mat-warn .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.mat-datepicker-content.mat-warn .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.mat-datepicker-content.mat-warn .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:rgba(244,67,54,.3)}.mat-datepicker-content-touch{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12)}.mat-datepicker-toggle-active{color:#3f51b5}.mat-datepicker-toggle-active.mat-accent{color:#ff4081}.mat-datepicker-toggle-active.mat-warn{color:#f44336}.mat-date-range-input-inner[disabled]{color:rgba(0,0,0,.38)}.mat-dialog-container{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);background:#fff;color:rgba(0,0,0,.87)}.mat-divider{border-top-color:rgba(0,0,0,.12)}.mat-divider-vertical{border-right-color:rgba(0,0,0,.12)}.mat-expansion-panel{background:#fff;color:rgba(0,0,0,.87)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-action-row{border-top-color:rgba(0,0,0,.12)}.mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true]),.mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true]),.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true]){background:rgba(0,0,0,.04)}@media (hover:none){.mat-expansion-panel:not(.mat-expanded):not([aria-disabled=true]) .mat-expansion-panel-header:hover{background:#fff}}.mat-expansion-panel-header-title{color:rgba(0,0,0,.87)}.mat-expansion-indicator:after,.mat-expansion-panel-header-description{color:rgba(0,0,0,.54)}.mat-expansion-panel-header[aria-disabled=true]{color:rgba(0,0,0,.26)}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title{color:inherit}.mat-expansion-panel-header{height:48px}.mat-expansion-panel-header.mat-expanded{height:64px}.mat-form-field-label,.mat-hint{color:rgba(0,0,0,.6)}.mat-form-field.mat-focused .mat-form-field-label{color:#3f51b5}.mat-form-field.mat-focused .mat-form-field-label.mat-accent{color:#ff4081}.mat-form-field.mat-focused .mat-form-field-label.mat-warn{color:#f44336}.mat-focused .mat-form-field-required-marker{color:#ff4081}.mat-form-field-ripple{background-color:rgba(0,0,0,.87)}.mat-form-field.mat-focused .mat-form-field-ripple{background-color:#3f51b5}.mat-form-field.mat-focused .mat-form-field-ripple.mat-accent{background-color:#ff4081}.mat-form-field.mat-focused .mat-form-field-ripple.mat-warn{background-color:#f44336}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid) .mat-form-field-infix:after{color:#3f51b5}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-accent .mat-form-field-infix:after{color:#ff4081}.mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-warn .mat-form-field-infix:after{color:#f44336}.mat-form-field.mat-form-field-invalid .mat-form-field-label,.mat-form-field.mat-form-field-invalid .mat-form-field-label.mat-accent,.mat-form-field.mat-form-field-invalid .mat-form-field-label .mat-form-field-required-marker{color:#f44336}.mat-form-field.mat-form-field-invalid .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple.mat-accent{background-color:#f44336}.mat-error{color:#f44336}.mat-form-field-appearance-legacy .mat-form-field-label,.mat-form-field-appearance-legacy .mat-hint{color:rgba(0,0,0,.54)}.mat-form-field-appearance-legacy .mat-form-field-underline{background-color:rgba(0,0,0,.42)}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(90deg,rgba(0,0,0,.42) 0,rgba(0,0,0,.42) 33%,transparent 0);background-size:4px 100%;background-repeat:repeat-x}.mat-form-field-appearance-standard .mat-form-field-underline{background-color:rgba(0,0,0,.42)}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(90deg,rgba(0,0,0,.42) 0,rgba(0,0,0,.42) 33%,transparent 0);background-size:4px 100%;background-repeat:repeat-x}.mat-form-field-appearance-fill .mat-form-field-flex{background-color:rgba(0,0,0,.04)}.mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{background-color:rgba(0,0,0,.02)}.mat-form-field-appearance-fill .mat-form-field-underline:before{background-color:rgba(0,0,0,.42)}.mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-label{color:rgba(0,0,0,.38)}.mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-underline:before{background-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline{color:rgba(0,0,0,.12)}.mat-form-field-appearance-outline .mat-form-field-outline-thick{color:rgba(0,0,0,.87)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{color:#3f51b5}.mat-form-field-appearance-outline.mat-focused.mat-accent .mat-form-field-outline-thick{color:#ff4081}.mat-form-field-appearance-outline.mat-focused.mat-warn .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid.mat-form-field-invalid .mat-form-field-outline-thick{color:#f44336}.mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-label{color:rgba(0,0,0,.38)}.mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:rgba(0,0,0,.06)}.mat-icon.mat-primary{color:#3f51b5}.mat-icon.mat-accent{color:#ff4081}.mat-icon.mat-warn{color:#f44336}.mat-form-field-type-mat-native-select .mat-form-field-infix:after{color:rgba(0,0,0,.54)}.mat-form-field-type-mat-native-select.mat-form-field-disabled .mat-form-field-infix:after,.mat-input-element:disabled{color:rgba(0,0,0,.38)}.mat-input-element{caret-color:#3f51b5}.mat-input-element::placeholder{color:rgba(0,0,0,.42)}.mat-input-element::-moz-placeholder{color:rgba(0,0,0,.42)}.mat-input-element::-webkit-input-placeholder{color:rgba(0,0,0,.42)}.mat-input-element:-ms-input-placeholder{color:rgba(0,0,0,.42)}.mat-form-field.mat-accent .mat-input-element{caret-color:#ff4081}.mat-form-field-invalid .mat-input-element,.mat-form-field.mat-warn .mat-input-element{caret-color:#f44336}.mat-form-field-type-mat-native-select.mat-form-field-invalid .mat-form-field-infix:after{color:#f44336}.mat-list-base .mat-list-item,.mat-list-base .mat-list-option{color:rgba(0,0,0,.87)}.mat-list-base .mat-subheader{color:rgba(0,0,0,.54)}.mat-list-item-disabled{background-color:#eee}.mat-action-list .mat-list-item:focus,.mat-action-list .mat-list-item:hover,.mat-list-option:focus,.mat-list-option:hover,.mat-nav-list .mat-list-item:focus,.mat-nav-list .mat-list-item:hover{background:rgba(0,0,0,.04)}.mat-list-single-selected-option,.mat-list-single-selected-option:focus,.mat-list-single-selected-option:hover{background:rgba(0,0,0,.12)}.mat-menu-panel{background:#fff}.mat-menu-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.mat-menu-item{background:transparent;color:rgba(0,0,0,.87)}.mat-menu-item[disabled],.mat-menu-item[disabled] .mat-icon-no-color,.mat-menu-item[disabled]:after{color:rgba(0,0,0,.38)}.mat-menu-item-submenu-trigger:after,.mat-menu-item .mat-icon-no-color{color:rgba(0,0,0,.54)}.mat-menu-item-highlighted:not([disabled]),.mat-menu-item.cdk-keyboard-focused:not([disabled]),.mat-menu-item.cdk-program-focused:not([disabled]),.mat-menu-item:hover:not([disabled]){background:rgba(0,0,0,.04)}.mat-paginator{background:#fff}.mat-paginator,.mat-paginator-page-size .mat-select-trigger{color:rgba(0,0,0,.54)}.mat-paginator-decrement,.mat-paginator-increment{border-top:2px solid rgba(0,0,0,.54);border-right:2px solid rgba(0,0,0,.54)}.mat-paginator-first,.mat-paginator-last{border-top:2px solid rgba(0,0,0,.54)}.mat-icon-button[disabled] .mat-paginator-decrement,.mat-icon-button[disabled] .mat-paginator-first,.mat-icon-button[disabled] .mat-paginator-increment,.mat-icon-button[disabled] .mat-paginator-last{border-color:rgba(0,0,0,.38)}.mat-paginator-container{min-height:56px}.mat-progress-bar-background{fill:#cbd0e9}.mat-progress-bar-buffer{background-color:#cbd0e9}.mat-progress-bar-fill:after{background-color:#3f51b5}.mat-progress-bar.mat-accent .mat-progress-bar-background{fill:#fbccdc}.mat-progress-bar.mat-accent .mat-progress-bar-buffer{background-color:#fbccdc}.mat-progress-bar.mat-accent .mat-progress-bar-fill:after{background-color:#ff4081}.mat-progress-bar.mat-warn .mat-progress-bar-background{fill:#f9ccc9}.mat-progress-bar.mat-warn .mat-progress-bar-buffer{background-color:#f9ccc9}.mat-progress-bar.mat-warn .mat-progress-bar-fill:after{background-color:#f44336}.mat-progress-spinner circle,.mat-spinner circle{stroke:#3f51b5}.mat-progress-spinner.mat-accent circle,.mat-spinner.mat-accent circle{stroke:#ff4081}.mat-progress-spinner.mat-warn circle,.mat-spinner.mat-warn circle{stroke:#f44336}.mat-radio-outer-circle{border-color:rgba(0,0,0,.54)}.mat-radio-button.mat-primary.mat-radio-checked .mat-radio-outer-circle{border-color:#3f51b5}.mat-radio-button.mat-primary.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-primary .mat-radio-inner-circle,.mat-radio-button.mat-primary .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-primary:active .mat-radio-persistent-ripple{background-color:#3f51b5}.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#ff4081}.mat-radio-button.mat-accent.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-accent .mat-radio-inner-circle,.mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-accent:active .mat-radio-persistent-ripple{background-color:#ff4081}.mat-radio-button.mat-warn.mat-radio-checked .mat-radio-outer-circle{border-color:#f44336}.mat-radio-button.mat-warn.mat-radio-checked .mat-radio-persistent-ripple,.mat-radio-button.mat-warn .mat-radio-inner-circle,.mat-radio-button.mat-warn .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.mat-radio-button.mat-warn:active .mat-radio-persistent-ripple{background-color:#f44336}.mat-radio-button.mat-radio-disabled.mat-radio-checked .mat-radio-outer-circle,.mat-radio-button.mat-radio-disabled .mat-radio-outer-circle{border-color:rgba(0,0,0,.38)}.mat-radio-button.mat-radio-disabled .mat-radio-inner-circle,.mat-radio-button.mat-radio-disabled .mat-radio-ripple .mat-ripple-element{background-color:rgba(0,0,0,.38)}.mat-radio-button.mat-radio-disabled .mat-radio-label-content{color:rgba(0,0,0,.38)}.mat-radio-button .mat-ripple-element{background-color:#000}.mat-select-value{color:rgba(0,0,0,.87)}.mat-select-placeholder{color:rgba(0,0,0,.42)}.mat-select-disabled .mat-select-value{color:rgba(0,0,0,.38)}.mat-select-arrow{color:rgba(0,0,0,.54)}.mat-select-panel{background:#fff}.mat-select-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.mat-select-panel .mat-option.mat-selected:not(.mat-option-multiple){background:rgba(0,0,0,.12)}.mat-form-field.mat-focused.mat-primary .mat-select-arrow{color:#3f51b5}.mat-form-field.mat-focused.mat-accent .mat-select-arrow{color:#ff4081}.mat-form-field.mat-focused.mat-warn .mat-select-arrow,.mat-form-field .mat-select.mat-select-invalid .mat-select-arrow{color:#f44336}.mat-form-field .mat-select.mat-select-disabled .mat-select-arrow{color:rgba(0,0,0,.38)}.mat-drawer-container{background-color:#fafafa;color:rgba(0,0,0,.87)}.mat-drawer{color:rgba(0,0,0,.87)}.mat-drawer,.mat-drawer.mat-drawer-push{background-color:#fff}.mat-drawer:not(.mat-drawer-side){box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)}.mat-drawer-side{border-right:1px solid rgba(0,0,0,.12)}.mat-drawer-side.mat-drawer-end{border-left:1px solid rgba(0,0,0,.12);border-right:none}[dir=rtl] .mat-drawer-side{border-left:1px solid rgba(0,0,0,.12);border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-left:none;border-right:1px solid rgba(0,0,0,.12)}.mat-drawer-backdrop.mat-drawer-shown{background-color:rgba(0,0,0,.6)}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb{background-color:#ff4081}.mat-slide-toggle.mat-checked .mat-slide-toggle-bar{background-color:rgba(255,64,129,.54)}.mat-slide-toggle.mat-checked .mat-ripple-element{background-color:#ff4081}.mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-thumb{background-color:#3f51b5}.mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-bar{background-color:rgba(63,81,181,.54)}.mat-slide-toggle.mat-primary.mat-checked .mat-ripple-element{background-color:#3f51b5}.mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-thumb{background-color:#f44336}.mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-bar{background-color:rgba(244,67,54,.54)}.mat-slide-toggle.mat-warn.mat-checked .mat-ripple-element{background-color:#f44336}.mat-slide-toggle:not(.mat-checked) .mat-ripple-element{background-color:#000}.mat-slide-toggle-thumb{box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);background-color:#fafafa}.mat-slide-toggle-bar{background-color:rgba(0,0,0,.38)}.mat-slider-track-background{background-color:rgba(0,0,0,.26)}.mat-primary .mat-slider-thumb,.mat-primary .mat-slider-thumb-label,.mat-primary .mat-slider-track-fill{background-color:#3f51b5}.mat-primary .mat-slider-thumb-label-text{color:#fff}.mat-primary .mat-slider-focus-ring{background-color:rgba(63,81,181,.2)}.mat-accent .mat-slider-thumb,.mat-accent .mat-slider-thumb-label,.mat-accent .mat-slider-track-fill{background-color:#ff4081}.mat-accent .mat-slider-thumb-label-text{color:#fff}.mat-accent .mat-slider-focus-ring{background-color:rgba(255,64,129,.2)}.mat-warn .mat-slider-thumb,.mat-warn .mat-slider-thumb-label,.mat-warn .mat-slider-track-fill{background-color:#f44336}.mat-warn .mat-slider-thumb-label-text{color:#fff}.mat-warn .mat-slider-focus-ring{background-color:rgba(244,67,54,.2)}.cdk-focused .mat-slider-track-background,.mat-slider:hover .mat-slider-track-background{background-color:rgba(0,0,0,.38)}.mat-slider-disabled .mat-slider-thumb,.mat-slider-disabled .mat-slider-track-background,.mat-slider-disabled .mat-slider-track-fill{background-color:rgba(0,0,0,.26)}.mat-slider-disabled:hover .mat-slider-track-background{background-color:rgba(0,0,0,.26)}.mat-slider-min-value .mat-slider-focus-ring{background-color:rgba(0,0,0,.12)}.mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb,.mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb-label{background-color:rgba(0,0,0,.87)}.mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb,.mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb-label{background-color:rgba(0,0,0,.26)}.mat-slider-min-value:not(.mat-slider-thumb-label-showing) .mat-slider-thumb{border-color:rgba(0,0,0,.26);background-color:transparent}.mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused .mat-slider-thumb,.mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover .mat-slider-thumb{border-color:rgba(0,0,0,.38)}.mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused.mat-slider-disabled .mat-slider-thumb,.mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover.mat-slider-disabled .mat-slider-thumb{border-color:rgba(0,0,0,.26)}.mat-slider-has-ticks .mat-slider-wrapper:after{border-color:rgba(0,0,0,.7)}.mat-slider-horizontal .mat-slider-ticks{background-image:repeating-linear-gradient(90deg,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent);background-image:-moz-repeating-linear-gradient(.0001deg,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent)}.mat-slider-vertical .mat-slider-ticks{background-image:repeating-linear-gradient(180deg,rgba(0,0,0,.7),rgba(0,0,0,.7) 2px,transparent 0,transparent)}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused,.mat-step-header:hover{background-color:rgba(0,0,0,.04)}@media (hover:none){.mat-step-header:hover{background:none}}.mat-step-header .mat-step-label,.mat-step-header .mat-step-optional{color:rgba(0,0,0,.54)}.mat-step-header .mat-step-icon{background-color:rgba(0,0,0,.54);color:#fff}.mat-step-header .mat-step-icon-selected,.mat-step-header .mat-step-icon-state-done,.mat-step-header .mat-step-icon-state-edit{background-color:#3f51b5;color:#fff}.mat-step-header.mat-accent .mat-step-icon{color:#fff}.mat-step-header.mat-accent .mat-step-icon-selected,.mat-step-header.mat-accent .mat-step-icon-state-done,.mat-step-header.mat-accent .mat-step-icon-state-edit{background-color:#ff4081;color:#fff}.mat-step-header.mat-warn .mat-step-icon{color:#fff}.mat-step-header.mat-warn .mat-step-icon-selected,.mat-step-header.mat-warn .mat-step-icon-state-done,.mat-step-header.mat-warn .mat-step-icon-state-edit{background-color:#f44336;color:#fff}.mat-step-header .mat-step-icon-state-error{background-color:transparent;color:#f44336}.mat-step-header .mat-step-label.mat-step-label-active{color:rgba(0,0,0,.87)}.mat-step-header .mat-step-label.mat-step-label-error{color:#f44336}.mat-stepper-horizontal,.mat-stepper-vertical{background-color:#fff}.mat-stepper-vertical-line:before{border-left-color:rgba(0,0,0,.12)}.mat-horizontal-stepper-header:after,.mat-horizontal-stepper-header:before,.mat-stepper-horizontal-line{border-top-color:rgba(0,0,0,.12)}.mat-horizontal-stepper-header{height:72px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header,.mat-vertical-stepper-header{padding:24px}.mat-stepper-vertical-line:before{top:-16px;bottom:-16px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:after,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:before{top:36px}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{top:36px}.mat-sort-header-arrow{color:#757575}.mat-tab-header,.mat-tab-nav-bar{border-bottom:1px solid rgba(0,0,0,.12)}.mat-tab-group-inverted-header .mat-tab-header,.mat-tab-group-inverted-header .mat-tab-nav-bar{border-top:1px solid rgba(0,0,0,.12);border-bottom:none}.mat-tab-label,.mat-tab-link{color:rgba(0,0,0,.87)}.mat-tab-label.mat-tab-disabled,.mat-tab-link.mat-tab-disabled{color:rgba(0,0,0,.38)}.mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.87)}.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:rgba(0,0,0,.38)}.mat-tab-group[class*=mat-background-] .mat-tab-header,.mat-tab-nav-bar[class*=mat-background-]{border-bottom:none;border-top:none}.mat-tab-group.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(197,202,233,.3)}.mat-tab-group.mat-primary .mat-ink-bar,.mat-tab-nav-bar.mat-primary .mat-ink-bar{background-color:#3f51b5}.mat-tab-group.mat-primary.mat-background-primary>.mat-tab-header .mat-ink-bar,.mat-tab-group.mat-primary.mat-background-primary>.mat-tab-link-container .mat-ink-bar,.mat-tab-nav-bar.mat-primary.mat-background-primary>.mat-tab-header .mat-ink-bar,.mat-tab-nav-bar.mat-primary.mat-background-primary>.mat-tab-link-container .mat-ink-bar{background-color:#fff}.mat-tab-group.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,128,171,.3)}.mat-tab-group.mat-accent .mat-ink-bar,.mat-tab-nav-bar.mat-accent .mat-ink-bar{background-color:#ff4081}.mat-tab-group.mat-accent.mat-background-accent>.mat-tab-header .mat-ink-bar,.mat-tab-group.mat-accent.mat-background-accent>.mat-tab-link-container .mat-ink-bar,.mat-tab-nav-bar.mat-accent.mat-background-accent>.mat-tab-header .mat-ink-bar,.mat-tab-nav-bar.mat-accent.mat-background-accent>.mat-tab-link-container .mat-ink-bar{background-color:#fff}.mat-tab-group.mat-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,205,210,.3)}.mat-tab-group.mat-warn .mat-ink-bar,.mat-tab-nav-bar.mat-warn .mat-ink-bar{background-color:#f44336}.mat-tab-group.mat-warn.mat-background-warn>.mat-tab-header .mat-ink-bar,.mat-tab-group.mat-warn.mat-background-warn>.mat-tab-link-container .mat-ink-bar,.mat-tab-nav-bar.mat-warn.mat-background-warn>.mat-tab-header .mat-ink-bar,.mat-tab-nav-bar.mat-warn.mat-background-warn>.mat-tab-link-container .mat-ink-bar{background-color:#fff}.mat-tab-group.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(197,202,233,.3)}.mat-tab-group.mat-background-primary>.mat-tab-header,.mat-tab-group.mat-background-primary>.mat-tab-header-pagination,.mat-tab-group.mat-background-primary>.mat-tab-link-container,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container{background-color:#3f51b5}.mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-label,.mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-tab-link,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-label,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-tab-link{color:#fff}.mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-tab-link.mat-tab-disabled{color:hsla(0,0%,100%,.4)}.mat-tab-group.mat-background-primary>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-primary>.mat-tab-header .mat-focus-indicator:before,.mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-focus-indicator:before{border-color:#fff}.mat-tab-group.mat-background-primary>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:hsla(0,0%,100%,.4)}.mat-tab-group.mat-background-primary>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-group.mat-background-primary>.mat-tab-header .mat-ripple-element,.mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-ripple-element,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-ripple-element,.mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-ripple-element{background-color:hsla(0,0%,100%,.12)}.mat-tab-group.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,128,171,.3)}.mat-tab-group.mat-background-accent>.mat-tab-header,.mat-tab-group.mat-background-accent>.mat-tab-header-pagination,.mat-tab-group.mat-background-accent>.mat-tab-link-container,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container{background-color:#ff4081}.mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-label,.mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-tab-link,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-label,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-tab-link{color:#fff}.mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-tab-link.mat-tab-disabled{color:hsla(0,0%,100%,.4)}.mat-tab-group.mat-background-accent>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-accent>.mat-tab-header .mat-focus-indicator:before,.mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-focus-indicator:before{border-color:#fff}.mat-tab-group.mat-background-accent>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:hsla(0,0%,100%,.4)}.mat-tab-group.mat-background-accent>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-group.mat-background-accent>.mat-tab-header .mat-ripple-element,.mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-ripple-element,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-ripple-element,.mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-ripple-element{background-color:hsla(0,0%,100%,.12)}.mat-tab-group.mat-background-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-group.mat-background-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.mat-tab-nav-bar.mat-background-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,205,210,.3)}.mat-tab-group.mat-background-warn>.mat-tab-header,.mat-tab-group.mat-background-warn>.mat-tab-header-pagination,.mat-tab-group.mat-background-warn>.mat-tab-link-container,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container{background-color:#f44336}.mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-label,.mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-tab-link,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-label,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-tab-link{color:#fff}.mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-tab-link.mat-tab-disabled,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-label.mat-tab-disabled,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-tab-link.mat-tab-disabled{color:hsla(0,0%,100%,.4)}.mat-tab-group.mat-background-warn>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-warn>.mat-tab-header .mat-focus-indicator:before,.mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-focus-indicator:before,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-focus-indicator:before{border-color:#fff}.mat-tab-group.mat-background-warn>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:hsla(0,0%,100%,.4)}.mat-tab-group.mat-background-warn>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-group.mat-background-warn>.mat-tab-header .mat-ripple-element,.mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-ripple-element,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination .mat-ripple-element,.mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-ripple-element,.mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-ripple-element{background-color:hsla(0,0%,100%,.12)}.mat-toolbar{background:#f5f5f5;color:rgba(0,0,0,.87)}.mat-toolbar.mat-primary{background:#3f51b5;color:#fff}.mat-toolbar.mat-accent{background:#ff4081;color:#fff}.mat-toolbar.mat-warn{background:#f44336;color:#fff}.mat-toolbar .mat-focused .mat-form-field-ripple,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-form-field-underline{background-color:currentColor}.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-select-value{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media (max-width:599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}.mat-tooltip{background:rgba(97,97,97,.9)}.mat-tree{background:#fff}.mat-nested-tree-node,.mat-tree-node{color:rgba(0,0,0,.87)}.mat-tree-node{min-height:48px}.mat-snack-bar-container{color:hsla(0,0%,100%,.7);background:#323232;box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-simple-snackbar-action{color:#ff4081}body,html{margin:0;font-family:Roboto,Helvetica,Arial,sans-serif;height:100%}body{background-color:#ededed}.app-loading .logo{width:113px;height:120px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHEAAAB4CAYAAADFcR0YAAAYNElEQVR4nO2deXwT1drHT2nSlFK6JHNOAPX6XlQuive6wEWRrS2iLOJFSpq0ySC2CoKg4AI06ZKyoywCBUVR3NFeRUrbOQMIFSjpnGHTq6C4XVH09RUXWhFBpc/7R7pMli5Jk061/X0+zz/9TGfOPN+c55zznGdmEOpUpzrVqU51CqGiIhRZui8+saQi8S+llYYrS1yGgSLDQ4VKPHo7M4zf/S5J3XeM8NJxwrOPyNQyFzd149bEqUs3xk+d+1js1HtzYqfaHoyZapoRMyXFouXrLCktypZs0o0datIOHJIa3XuQCenVvtc/rIS9sbhU4pIp46aKEllOGdkiMnyQyuQUlfEFUcY1/mz7AVyzrYKrKdycWDPn0TjgZ3eDUZO6QoolukWWbNbV+LMUs+5csln3YbJFV5ycFr0o2Rw1YfDtqJfaflJVb5YnJJQxboAg4YmUkUcowxtFhvdQhk+KMoGW2s5DBLbtx7DmlUR4cHEcTJgaA0NTo2FIqg6GmaIhKa1l8II2s+58iiXalWLWrUoyR1mGpequUNu3YZUg6a+iMl5MGT4uyvg0ZeSsu1e1HJo3wNUvJcK4zK4wIj0aks0tcbzOj4UKqu5CikV3Jtmiez8lLSpdbX+HRMUVXHehkgymjKykDP8QLCx/RhmBh5fGwU3jPSGMsGhhhEUDw9MxDM7oAzdmXAM3ZAyEgdabYIB1GPS3jYb+tjENZr0VBliHwkDrILghYwAMsl0HQyZdA0P5K2C4tRekpHeHEeYIGGHuAiPMGkixRLU8NFuiv042ayf1N6F4tVkEowhBIvNFmZxoTU9ryhY9meDV86JgpAVBf9touHTyejBmFgOXuQv0WRWQmMUgIesgxGcdasQOQ0KmDPj+D6FnzjdwUe7XcHHOZ3CJ/Rhcmn0ILpuzC/o9sAYGTLkLhvF9YWQagpvTUC3UFvXQT4enRSerDaWlihAqyWAqk1PhAKfshen3d1OExxgYaB0KOHMnxGW9AwlZMiRksZbbPQcAP3ISejh/gh751X7sJzA6z4LReR5IQQ30zD8DfR56E/pPvRuG8n0hKYPUtqOZXpoWlYMQ6qI2pCYlMrw0nPCUECdMjakNWbFw+Z0LIT7rUODwMiUwTH8PjDnfNwGwaag986vg0uzD0Hf2JrgxayyMTEOQYtE2MRGK2qQ2p0YlyNw9bQGwzu6xx0KKRQfX2syQkHUgMHhZDBKyJNDPOAo9nWcCgNe0GZ2/wKX2YzB48g2QYolpahmzUW1ePhL3cj3bEqAoE1j7ih5GmCOh112vBd4DsyTgZn0cYO9rIcj8M2B0/gZ9Zz8PSdaLGpn96i4MN+tGq83NQwLDM9oa4luHjXBfng4Md9LAIGZKYJj5YVgAetsljk8gOT3RP0hz9Pdqc/PQYy/Grd9+oG0hijKB3Uc4mLAkB+IzWx5O9TOOhTSENh1ez8JfHB+7lyp+lyBRuWqzq5dlruYNQcJtDlGUCZS4/gL9HtwK8S0AmHjPQTDm/tgmAJV25aynGxsjv+k/DsWozQ8hhFD6vMgt2YUxsONg20PcfoCD1/f0hYum7YH4zCbCaqYEZM5XbRJGfcx5FobZevuGVbPuXLJJM1xtfgghhGx27dO8QwtPFyeq0ht3HOBgfekwME6paHQiY7jvKPRoozDqG1bPQ79Z6+HmNOQbUtN096vNDyGEkC1bO413aOHugijYVoFhuwogdx40wMynZ0BcI+Oj0X5KFYBu+wl65lX5h2iOelZtfgghhPiHEeEdWrBma+G+pdGg1vi461AiZK6bC13vfMdzLJx6RJWx0LM3noNhtst9QmqyJfpttfnVy2bX/Jt3aIF3aCFnfTegrO0hijIBQeoJKQVPes5Ip/8HeuRXqQzxLNx013A/EHXvq82uXqbZSM87ND/yDi3Y7FpY/Woc7DpsVAEkhjf2XgF/myVA97sO1kJ8T1WAdRAHZY70ya8mm3WfqM3OQza79gGbXVNTF1o3FieCGuvH7QcwvFnRG3rdu88Ncdq70COvnfbE9gYRIYRsdk1lXVjNckbB629zqoRVUcaw4s1bQX+3BIlTDreDMfEXGMpf5Q/iEbWZ+WjcFBRjs2t+qAur0xfrYMdBNcIqgR0HDTB/sxmibEfB6PhOZYjnYYSfBX+yWbddbWZ+ZcuOHK8Mq3NXx6jUGwnsOpQAU5+YDYbZn6mz0M+vhh75P8ElOSdhpMl3iZFi1j2tNq9GZbNrN9eFVd6hhZUvx8EOFcZHUSYgMiOMXbwGuNxzqo2HfR7e5nedmGLRPaw2qyZlc2g/r4OYPlcDL4h6VSY6okzg7cPdYciynUDyf1YllF49cxmMMHtD1F0Yboq6Q21OTSrDjq7lHZqf60BOztXCq28ZVAutxa7L4IYVB8GY37ZhlRT8Dv+cwsMIcxfvUPrzsFTtdWpzalZWh2aBMqzOXBYNgqRSWJUxbHVdAX+df6pNQZKCGhjKX+tbg2OO/n7IWJSoNqMWiXdoSuogZszTgL2wm2phdccBPby29zrot+STNuyNZyE5PcHfePiR2mxarDuykUE5PvIOLSze1F21sCrKBJ7fPRh6OdsG4iWOjyA5Pd7PprDuKbXZBCRbduR4JcRJOVrYVJaoyh6kKBN462ACvFh+E/Rd/HnYQ+tlc3ZDcnqsn22oqFS1uQQs3q7J9gZZtNugWmjdLmN46e2B0GfhScB54Zu19p39vN+d/UEm1FVtJkHJ5tCUK0FOW6SDbfvV2boSZXdlgMh6wahCCr0KvvvGmFf9dY+8qu+MeVXVxvzq30IB8e8zFvkrzfg/tVkErQn3oUvT50ScqYNos2shuzAGdh1RJzXnNgzbD2B4dU8/Gd0Bhvh5p3sb7T9cTXKrBxlzqm8z5lbl9MivKjPmVVUHDrEKrp86xc94GP2a2iyCUvl/k6K/+OGOq1/def171mxNfW9Mn6eBZc/HqjY+Ko0yvNdZjjSN3YNx3unebqjVHxjzqqqNedW/Nw3xNNyYOcpfznR6W/q+1Tp69Fb90f+OyX7/xJgDR0+MhQ9PjoO1r10BNrvn+PhsiTo1On5AFrXkvvRzvr+Y5Pw43phftapHXtUX/iD2zPsBhvJ9vQHWDDdpBoXb7yER+2CE4f0TY54/emIseNu7n42GGUvjQDk+Ts7TQqlLvfHRC2RZoPfbI++0yTvk9sz73mf3ItkSfWqYKfqv4fB5SASwsuvRE2NNR0+M2eoPXp0dPzkKKt5LBqs9AXiHpn58nL5Y125AigyvDdgBMz/WGfOqN7ohnoFLs//jk/hONus+bNcz04INvU6989no3499cVsjAMfA8ZMjoexQDtyz6RSkLS+rh1hn+Ru6qQ+w1gTGLQvGD8bcqhyj8xxcNesZ390Ls25bqP0eUqVndzk/OU8HL5T9A+QPR8IHX7phHv/yFjjyqQm2sIVw/4ufwJhVABMKAVILATIW2IB3II+Jzvo3EmDnITVnrATcL3MgIEr4gYAdkVSuwQU1B/tPvdsn8Z2Uprs3DK4PnWwO7WfuzWANTFscC8+WXA3HvxwNT+1+DrKe+RYmFgJMWOuG12A1YMvtA7yji0ePfLZUnRodfzDLJP3IQH2RsBDuHzrpWvB+XjHJhHqEw/chk7J0kXdoIWMugrSVDP61xhucp01cfRL4nHgPiPcu1MHWfWrV6PhaCSPXBOKLRCdcnWL2rqmJ/jZcvg+ZrHbtTCUI3o7AtPJAkwDrzLxsHfD2hrBqzdbCQyu7wluqh9X6HvlVsdTN2FJfDDZxf/OzPlwRTv+HROY56EpviOblpS2COGE9gHX+bcA7IjxAFjyl3taVjzF8sKW+GJ6mG+cNMcmkvTac/g+ZvCFali6H1HXNQ0wtBEhd+yvY8q/xmLFOytHCMyXtZXwkQGW8uSV+SDZ3fcQL4ld/mNeM2ewaqQFkBGQssLQcYiFA2koX8I4Yj/GRd2hhm0udh3X8hNWaMsZlNOeHQSbUNcmseyDZrNuQbIl+LdkSZW8L/4dEvENToHS+La9vQBAnrAOwLF0JkxTjo82uhfuWRENpZftIBFBGzpa4DBep7euwyTpPcwtv1/xaDyC3J0xcc6rFEOssY+HdPsuOhc/Etqew2v5K8EOl9IcQx9s139U7P6c7mFZKAUOcuOZbsOX19hgfLXM18PTWBNipUlW5H5Dt4yHRcIi3a7Y29KBIsCwrDBhiaiGA6fF3YVI28uiNk3O18PIOveoARZmAyMg3RUUoUm1/h0XumtM6x2vA6kwOCmLqOgDLo0/7hNUHHms/46MgkfZdxd0a8Q7tYeVSY+Lqr4IDWfg7WAtGA++IbMgEZWsh94luKj0D6R1Sybk/bW+0ZUferoQY6FLDY3xcex54R5zH+GjN1sKaovh2MdGhksGmtr/DIvfTw9ovGsJgFJge/zTI3ghgWnUIeEc3j7Cama/mM5DK3tiyBMAfUla7ZrHS6emL50BqYU3QINOXOD16o82uhWmLo9XPrzJ8pKgcx6rt73ApgrdrqhuWG3qYuOa7oCGmrgOwFiR5JMozsjXg3BCrajaHyuTbkvLunNrODpt4R+S4ht6IwFowBiasDxJiIUDq2jO160evivJS9QqtqEzOi3u5nmr7OmxKmoyibXaN7LmzsTV4iIUAaSu2A+/QeY6PzigodWFVJjpUxhf+1Gk4hBCyzdOM8synXgmpa8+2CmT6kgLP/Ue7FmY91lWl3ohPb9kfS9T2c9jFO7RFyt6YvujhoJccqYXuRLm14FaP9SPv0MLjm+PVgPiBIOnj1PZx2DVuCoqpq8Gp32t89LlWgZy4+iTwudgnLff621zbhlVG3kQIRajt4zaRzRGZarNrfm/Y4SBgevzjVoVV83LRI6za7FqYskDXprNVKnEWtX3bprLZtRuUm8bW/AGQWvhbq8KqZcl8j7IOm10LS55rowdZGflMbZ+qIptDs78BZBewOoe1qjemrv0FrM6bfKoB3tgT/mxOiYT/3N+HakzmR9BldW+eqtuucmdzggdpevxTj/yqO5ujCy9EiSxX25eqyurQ3ujZcyIgfXF2qxIBaSv3+YyPC5/pHp5JDsPHnM52/sWZtpA1O/JOT5Ao6A1kt9VA+qJ7PfKrmflRULQ7tO/PoTL+UG3ftStZHZplniB1YFm2LugeOXHtGeBzDB5h9cEVXWF3qJ5GZuQzYW8sVttv7U42h/Y5n3rVZauDHx9XujzCavo8DRS+ntDq98t19sBmZLNrX/SeXaYvcQadDMhYYPYIq1MW6KC4IviSDsrw9j/zdlPIpHz7VEPx8SQIZg8ybcUu4HNiPCY5a1+LDy4JwMjLavvmDyXeoX3K7XT3O1N5B4KM+akwcc2PAYO05f3VZ5ITRC8sqG1ax0irhUo2u+ZRzx6pAVvuxYGl6NYBpC9d4LmBPE8DK16Oh50tfVNHpeFmtX3xR1UEQghZHdpZyjyru0fFQtry11scXtNW/cfjcQDeoYV7CqKaneBQhk+WyXiY2o74Uyh9rmaId4/kHVFgnT8OJhb+3vxyY3W1b/FxXhT8u7zxdByVccWfutRCDVkeRJfwDu0x7wkP74gF8/ISSF17vokMToVHOOUdWrgzVwsvbW+kgpyRNzuzMGHS+Fkogc/WrPLtlZFgdQ4C8/Ji91JkneeYaHUOAu/q8TtztfCi6A0R11AZT1b7PjuEbPbIScpXUiuTA7a8PmB+dBNMXP2/YFp1HKwFN4P361XqwulruwzK8a+6jHED1L63DqWMeai399v+67a0eDtyT2TsyGN/UWlZzijl+PfGFtbdoPY9dVhl2DXJNoemyh+oxsy9xIiDnQeNIMhkmtr30CmEkMmEoqzZmjyP2p1GzGbXwsOrusKOg4SVuAwD1W57p7xkmo5i3dta7i/H+QM4c1k0FL2lf1AQkE7t9naqGfHzNCm8PfIJm0Ozh7drXNZszVsPLNOteu8LcpnabetUEOo/BWnVbkOnOtWpTnWqU53q1B9eRUUoqsRl6EsruaQyxt1GJTyGMv0gQdJfHP6Ll+NYyshLVCY7RYZ3UwkvCPU1yhjXR2S4hMpkJ2V4nyDpb2zm+AFUxm9TmexsqYky2UFlUiwy/DyVuccEhmcKzDC+hJFrwrFWpFLiPwSGZ4oyFijDPzRfs0M+pwwXiYy7t8yV+PeQNubN8oQEysjnigRxaUgvgGqhMHK2/hqV3O1NHi/jUaEoN6QM/y7K5IzIyHeijF8trTRc2dp7ESR9nMjwbiqTn5u4brXI8E9NAD0ryoRtY/GheUt/LcT/Nuyx4ZKQnFghd89quGmhkhvX1PGUkVu9Nm43izKXK0hcnre5/07mizJeRSW8iTIsUhnLIsMfU4arfPcQMRUrueuDuQ9ayd3u2S7ys8jwHkHmHhIrues3bPBdpxa54vRCJTdOYOQJUcYf+LaHuzuYtnio/UPENaJk+Fcg1ysqQpFFrjh9sQtfXibjUVQmxV77ib9SGa8L5JyU6QfVv+zd7ac9xS58eUDtKsexAjOkUBl/7dVz1wRyHh/9ESDSSjKhtW3Yukd/CZVxhVdY2+Wv9/htk0zOKSoCpNa8VUqQ9HFUxp8oIs2FYF4eX6+OArFWEZRxs71CdbM9soxxGZ7/YxjR2oYUueL07rG6/gf1ftAn62AQ3eeXcLYHFAkPafJ4mWxQHh+qdggMz1Cet0zGwX1+oSNCLClBMSLDHysceKKZ9rwSDoh0v+GfVMZfU5mcooycFSRyS1An6ogQEUJIlPB9inv+ranCYZHhpUqIIdxkjigqQlF1FnTlXUeF6HSiLl6THGdjx5Ywco3XMuWdMsb1CXWbglZHhYgQQlTGhxUzziZrUKlEpvtZ0D9DKxP+JxxtC0gdGaJ7AV5/30eaWzYIDM8VZfyj94KdMlwtyligMs4RJHKLKOv7lbgMF5WUoJhwtNtHHRkilfE85eSmJWu/EglfQSW8wA2ukZQfI7+IMv5KlMl7lJG3RIaXUma4I2xPHHdwiPc3rP3Iqaa+L+xPoqzvRyW8QJQJExn5P1HGpz2SAn4NnxYZt15w4etC9mqxjgxRkMjDiut8FShEpTZsQNrSffG9BRc3nEoGm8DwIspwqSjjLxoDWruzsbHVifCODJEyslKZMQnXC9qdTtSFVnJJAiNPUIarqIwveM12fyuTSGrQF+jgEHcpJidiWz0hVeIyDKQyXuceOz1SgMF9PMUbYjj2E0td5CZlg9sLRK/QthK17SPeEVRK/IfHBInhnwRJf1XAZ/JJQTF8LNStFSRyS+0Gbd01hjZ1fJtkbBg3VtEDLggSnui3LTLeTGV8mDJ8gDLu0VD3VoEZxnv8mCQyPagTUYYPKH8NRUUoKqQNlck0ZUObG3vaAGIEZaRSuSR4YTvq5u9AUSZM4Zs94Rg3RZmcafhBcY8FdRLKuHyF034VmCEllI2srYGpX1Q3357wQhSYYbwyMlBGHmnsWFEiTymXB0Uu1DWUbUEIIY9SD4YXBnWSF7ajbl4DbMg+3kElPER5bkHmrM3+TxghiowbqxyfqYzLA2k/lfCSULUFIYQESX+j8l5FifDBn0zmHvIc6LGptQ0sk3EP5a+MMny8yBXX7CdawwGxpATFuKvTPO7xy6179Jc09X9F5ThWZPhIqH2DEELC3lisXEdShn9oVYmjsxxpRBkLofrVlUn6kcoJE5XJuZYWKPlAZIY7gm2HKOv7UcblU0be9QKxt6WLbHe1niL8yuS8yPDS4gque7DtKpNIqsjwR54JAJwW7Pk8RBkWvTILZ6iM768dCyKQ/2l4/d/LKg03UEZcnuGZfBtItt8bosDIpNJ98YlFrjh9Y1Ym4x5lrsS/uyvL8FzKyNbGygYpI85AZ5ml++J7eye/qUzOU0aepBXc37z84O2jCIRQhLMcaYRKbPaG566xwXcF0p5mJUg40/uXWxcOKcMiZdwLlJEnqUw2UIY3Uka2iDJhPrWYDP8kMPJEIN+rR8i3ZLG15u5FeL8gcXmt+bLMlv2xhMq4UFkb4/VjP0wZLqOMvKT0j8hwicjwMb9tk/HbZTIeFWybmtSmchQtVJLByqxGAE47KUjcrKKdifEoiAU0lfCY1oHDp0UZ76eMrBAkckvRzsT4EFaBRxRXcN0p49JFRqQg2/ejIOPHi1348pZW24VElOkHiYy7270NQ54UGX6eMvKKKJGnRIksF2TuoTLG3RaKL7ds2IC0W1h3Q1Ph09sESR+n0scpI8RK7vrapLeDSni1KJGnqIw310UskeGlAsMzKSO3dr69qgPr/wEIWo9ONIJi0AAAAABJRU5ErkJggg==)}i.material-icons{vertical-align:middle!important}i.spaced{margin-right:.5rem}.highlight{color:red}.mat-toolbar.mat-primary{background:#fafafa;color:#000}.mat-toolbar-row,.mat-toolbar-single-row{height:64px!important}.mat-row{min-height:40px}.mat-menu-panel.wide-menu{max-width:none;max-height:none}.mat-form-field-disabled{cursor:not-allowed}input:disabled{cursor:not-allowed}.card{background-color:#fafafa;border-color:#000;border-radius:6px;box-shadow:0 1px 4px 0 rgba(0,0,0,.14);color:#000;display:flex;flex-direction:column;margin:2rem 1rem 1rem}.card,.card-header{box-sizing:border-box}.card-header{background-image:linear-gradient(60deg,#4766bc,#465d9c);border-bottom-color:#fff;border-radius:3px;box-shadow:0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(70,93,156,.4);color:#fff;font-size:1.2rem;font-weight:300;margin:-1rem 1rem 0;padding:15px}.card-header img{width:1.2rem;vertical-align:top;margin-top:2px}.card-title>a{color:#000}.card-subtitle{font-size:.9rem;margin-left:1.4rem}.detail>.title{margin:1rem;padding:1rem;background-image:linear-gradient(60deg,#4766bc,#465d9c);border-bottom-color:#fff;border-radius:3px;box-shadow:0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(70,93,156,.4);box-sizing:border-box;color:#fff;font-size:1.2rem;font-weight:300}.detail>.title img{width:2rem;vertical-align:top;margin-top:-4px}.detail>.title a{color:#ff0}.detail>.card{margin-top:0}.mat-menu-content .mat-menu-item:hover{background-color:#e1e1e1}.dark-theme .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.dark-theme .mat-option{color:#fff}.dark-theme .mat-option:focus:not(.mat-option-disabled),.dark-theme .mat-option:hover:not(.mat-option-disabled){background:hsla(0,0%,100%,.04)}.dark-theme .mat-option.mat-selected:not(.mat-option-multiple):not(.mat-option-disabled){background:hsla(0,0%,100%,.04)}.dark-theme .mat-option.mat-active{background:hsla(0,0%,100%,.04);color:#fff}.dark-theme .mat-option.mat-option-disabled{color:hsla(0,0%,100%,.5)}.dark-theme .mat-primary .mat-option.mat-selected:not(.mat-option-disabled){color:#3f51b5}.dark-theme .mat-accent .mat-option.mat-selected:not(.mat-option-disabled){color:#ff4081}.dark-theme .mat-warn .mat-option.mat-selected:not(.mat-option-disabled){color:#f44336}.dark-theme .mat-optgroup-label{color:hsla(0,0%,100%,.7)}.dark-theme .mat-optgroup-disabled .mat-optgroup-label{color:hsla(0,0%,100%,.5)}.dark-theme .mat-pseudo-checkbox{color:hsla(0,0%,100%,.7)}.dark-theme .mat-pseudo-checkbox:after{color:#303030}.dark-theme .mat-pseudo-checkbox-disabled{color:#686868}.dark-theme .mat-primary .mat-pseudo-checkbox-checked,.dark-theme .mat-primary .mat-pseudo-checkbox-indeterminate{background:#3f51b5}.dark-theme .mat-accent .mat-pseudo-checkbox-checked,.dark-theme .mat-accent .mat-pseudo-checkbox-indeterminate,.dark-theme .mat-pseudo-checkbox-checked,.dark-theme .mat-pseudo-checkbox-indeterminate{background:#ff4081}.dark-theme .mat-warn .mat-pseudo-checkbox-checked,.dark-theme .mat-warn .mat-pseudo-checkbox-indeterminate{background:#f44336}.dark-theme .mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.dark-theme .mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background:#686868}.dark-theme.mat-app-background,.dark-theme .mat-app-background{background-color:#303030;color:#fff}.dark-theme .mat-elevation-z0{box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.dark-theme .mat-elevation-z1{box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.dark-theme .mat-elevation-z2{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.dark-theme .mat-elevation-z3{box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12)}.dark-theme .mat-elevation-z4{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.dark-theme .mat-elevation-z5{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 5px 8px 0 rgba(0,0,0,.14),0 1px 14px 0 rgba(0,0,0,.12)}.dark-theme .mat-elevation-z6{box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.dark-theme .mat-elevation-z7{box-shadow:0 4px 5px -2px rgba(0,0,0,.2),0 7px 10px 1px rgba(0,0,0,.14),0 2px 16px 1px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z8{box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z9{box-shadow:0 5px 6px -3px rgba(0,0,0,.2),0 9px 12px 1px rgba(0,0,0,.14),0 3px 16px 2px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z10{box-shadow:0 6px 6px -3px rgba(0,0,0,.2),0 10px 14px 1px rgba(0,0,0,.14),0 4px 18px 3px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z11{box-shadow:0 6px 7px -4px rgba(0,0,0,.2),0 11px 15px 1px rgba(0,0,0,.14),0 4px 20px 3px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z12{box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z13{box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 13px 19px 2px rgba(0,0,0,.14),0 5px 24px 4px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z14{box-shadow:0 7px 9px -4px rgba(0,0,0,.2),0 14px 21px 2px rgba(0,0,0,.14),0 5px 26px 4px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z15{box-shadow:0 8px 9px -5px rgba(0,0,0,.2),0 15px 22px 2px rgba(0,0,0,.14),0 6px 28px 5px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z16{box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z17{box-shadow:0 8px 11px -5px rgba(0,0,0,.2),0 17px 26px 2px rgba(0,0,0,.14),0 6px 32px 5px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z18{box-shadow:0 9px 11px -5px rgba(0,0,0,.2),0 18px 28px 2px rgba(0,0,0,.14),0 7px 34px 6px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z19{box-shadow:0 9px 12px -6px rgba(0,0,0,.2),0 19px 29px 2px rgba(0,0,0,.14),0 7px 36px 6px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z20{box-shadow:0 10px 13px -6px rgba(0,0,0,.2),0 20px 31px 3px rgba(0,0,0,.14),0 8px 38px 7px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z21{box-shadow:0 10px 13px -6px rgba(0,0,0,.2),0 21px 33px 3px rgba(0,0,0,.14),0 8px 40px 7px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z22{box-shadow:0 10px 14px -6px rgba(0,0,0,.2),0 22px 35px 3px rgba(0,0,0,.14),0 8px 42px 7px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z23{box-shadow:0 11px 14px -7px rgba(0,0,0,.2),0 23px 36px 3px rgba(0,0,0,.14),0 9px 44px 8px rgba(0,0,0,.12)}.dark-theme .mat-elevation-z24{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12)}.mat-theme-loaded-marker{display:none}.dark-theme .mat-autocomplete-panel{background:#424242;color:#fff}.dark-theme .mat-autocomplete-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.dark-theme .mat-autocomplete-panel .mat-option.mat-selected:not(.mat-active):not(:hover){background:#424242}.dark-theme .mat-autocomplete-panel .mat-option.mat-selected:not(.mat-active):not(:hover):not(.mat-option-disabled){color:#fff}.dark-theme .mat-badge-content{color:#fff;background:#3f51b5}.cdk-high-contrast-active .dark-theme .mat-badge-content{outline:1px solid;border-radius:0}.dark-theme .mat-badge-accent .mat-badge-content{background:#ff4081;color:#fff}.dark-theme .mat-badge-warn .mat-badge-content{color:#fff;background:#f44336}.dark-theme .mat-badge-disabled .mat-badge-content{background:#6e6e6e;color:hsla(0,0%,100%,.5)}.dark-theme .mat-bottom-sheet-container{box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12);background:#424242;color:#fff}.dark-theme .mat-button,.dark-theme .mat-icon-button,.dark-theme .mat-stroked-button{color:inherit;background:transparent}.dark-theme .mat-button.mat-primary,.dark-theme .mat-icon-button.mat-primary,.dark-theme .mat-stroked-button.mat-primary{color:#3f51b5}.dark-theme .mat-button.mat-accent,.dark-theme .mat-icon-button.mat-accent,.dark-theme .mat-stroked-button.mat-accent{color:#ff4081}.dark-theme .mat-button.mat-warn,.dark-theme .mat-icon-button.mat-warn,.dark-theme .mat-stroked-button.mat-warn{color:#f44336}.dark-theme .mat-button.mat-accent.mat-button-disabled,.dark-theme .mat-button.mat-button-disabled.mat-button-disabled,.dark-theme .mat-button.mat-primary.mat-button-disabled,.dark-theme .mat-button.mat-warn.mat-button-disabled,.dark-theme .mat-icon-button.mat-accent.mat-button-disabled,.dark-theme .mat-icon-button.mat-button-disabled.mat-button-disabled,.dark-theme .mat-icon-button.mat-primary.mat-button-disabled,.dark-theme .mat-icon-button.mat-warn.mat-button-disabled,.dark-theme .mat-stroked-button.mat-accent.mat-button-disabled,.dark-theme .mat-stroked-button.mat-button-disabled.mat-button-disabled,.dark-theme .mat-stroked-button.mat-primary.mat-button-disabled,.dark-theme .mat-stroked-button.mat-warn.mat-button-disabled{color:hsla(0,0%,100%,.3)}.dark-theme .mat-button.mat-primary .mat-button-focus-overlay,.dark-theme .mat-icon-button.mat-primary .mat-button-focus-overlay,.dark-theme .mat-stroked-button.mat-primary .mat-button-focus-overlay{background-color:#3f51b5}.dark-theme .mat-button.mat-accent .mat-button-focus-overlay,.dark-theme .mat-icon-button.mat-accent .mat-button-focus-overlay,.dark-theme .mat-stroked-button.mat-accent .mat-button-focus-overlay{background-color:#ff4081}.dark-theme .mat-button.mat-warn .mat-button-focus-overlay,.dark-theme .mat-icon-button.mat-warn .mat-button-focus-overlay,.dark-theme .mat-stroked-button.mat-warn .mat-button-focus-overlay{background-color:#f44336}.dark-theme .mat-button.mat-button-disabled .mat-button-focus-overlay,.dark-theme .mat-icon-button.mat-button-disabled .mat-button-focus-overlay,.dark-theme .mat-stroked-button.mat-button-disabled .mat-button-focus-overlay{background-color:transparent}.dark-theme .mat-button .mat-ripple-element,.dark-theme .mat-icon-button .mat-ripple-element,.dark-theme .mat-stroked-button .mat-ripple-element{opacity:.1;background-color:currentColor}.dark-theme .mat-button-focus-overlay{background:#fff}.dark-theme .mat-stroked-button:not(.mat-button-disabled){border-color:hsla(0,0%,100%,.12)}.dark-theme .mat-fab,.dark-theme .mat-flat-button,.dark-theme .mat-mini-fab,.dark-theme .mat-raised-button{color:#fff;background-color:#424242}.dark-theme .mat-fab.mat-accent,.dark-theme .mat-fab.mat-primary,.dark-theme .mat-fab.mat-warn,.dark-theme .mat-flat-button.mat-accent,.dark-theme .mat-flat-button.mat-primary,.dark-theme .mat-flat-button.mat-warn,.dark-theme .mat-mini-fab.mat-accent,.dark-theme .mat-mini-fab.mat-primary,.dark-theme .mat-mini-fab.mat-warn,.dark-theme .mat-raised-button.mat-accent,.dark-theme .mat-raised-button.mat-primary,.dark-theme .mat-raised-button.mat-warn{color:#fff}.dark-theme .mat-fab.mat-accent.mat-button-disabled,.dark-theme .mat-fab.mat-button-disabled.mat-button-disabled,.dark-theme .mat-fab.mat-primary.mat-button-disabled,.dark-theme .mat-fab.mat-warn.mat-button-disabled,.dark-theme .mat-flat-button.mat-accent.mat-button-disabled,.dark-theme .mat-flat-button.mat-button-disabled.mat-button-disabled,.dark-theme .mat-flat-button.mat-primary.mat-button-disabled,.dark-theme .mat-flat-button.mat-warn.mat-button-disabled,.dark-theme .mat-mini-fab.mat-accent.mat-button-disabled,.dark-theme .mat-mini-fab.mat-button-disabled.mat-button-disabled,.dark-theme .mat-mini-fab.mat-primary.mat-button-disabled,.dark-theme .mat-mini-fab.mat-warn.mat-button-disabled,.dark-theme .mat-raised-button.mat-accent.mat-button-disabled,.dark-theme .mat-raised-button.mat-button-disabled.mat-button-disabled,.dark-theme .mat-raised-button.mat-primary.mat-button-disabled,.dark-theme .mat-raised-button.mat-warn.mat-button-disabled{color:hsla(0,0%,100%,.3)}.dark-theme .mat-fab.mat-primary,.dark-theme .mat-flat-button.mat-primary,.dark-theme .mat-mini-fab.mat-primary,.dark-theme .mat-raised-button.mat-primary{background-color:#3f51b5}.dark-theme .mat-fab.mat-accent,.dark-theme .mat-flat-button.mat-accent,.dark-theme .mat-mini-fab.mat-accent,.dark-theme .mat-raised-button.mat-accent{background-color:#ff4081}.dark-theme .mat-fab.mat-warn,.dark-theme .mat-flat-button.mat-warn,.dark-theme .mat-mini-fab.mat-warn,.dark-theme .mat-raised-button.mat-warn{background-color:#f44336}.dark-theme .mat-fab.mat-accent.mat-button-disabled,.dark-theme .mat-fab.mat-button-disabled.mat-button-disabled,.dark-theme .mat-fab.mat-primary.mat-button-disabled,.dark-theme .mat-fab.mat-warn.mat-button-disabled,.dark-theme .mat-flat-button.mat-accent.mat-button-disabled,.dark-theme .mat-flat-button.mat-button-disabled.mat-button-disabled,.dark-theme .mat-flat-button.mat-primary.mat-button-disabled,.dark-theme .mat-flat-button.mat-warn.mat-button-disabled,.dark-theme .mat-mini-fab.mat-accent.mat-button-disabled,.dark-theme .mat-mini-fab.mat-button-disabled.mat-button-disabled,.dark-theme .mat-mini-fab.mat-primary.mat-button-disabled,.dark-theme .mat-mini-fab.mat-warn.mat-button-disabled,.dark-theme .mat-raised-button.mat-accent.mat-button-disabled,.dark-theme .mat-raised-button.mat-button-disabled.mat-button-disabled,.dark-theme .mat-raised-button.mat-primary.mat-button-disabled,.dark-theme .mat-raised-button.mat-warn.mat-button-disabled{background-color:hsla(0,0%,100%,.12)}.dark-theme .mat-fab.mat-accent .mat-ripple-element,.dark-theme .mat-fab.mat-primary .mat-ripple-element,.dark-theme .mat-fab.mat-warn .mat-ripple-element,.dark-theme .mat-flat-button.mat-accent .mat-ripple-element,.dark-theme .mat-flat-button.mat-primary .mat-ripple-element,.dark-theme .mat-flat-button.mat-warn .mat-ripple-element,.dark-theme .mat-mini-fab.mat-accent .mat-ripple-element,.dark-theme .mat-mini-fab.mat-primary .mat-ripple-element,.dark-theme .mat-mini-fab.mat-warn .mat-ripple-element,.dark-theme .mat-raised-button.mat-accent .mat-ripple-element,.dark-theme .mat-raised-button.mat-primary .mat-ripple-element,.dark-theme .mat-raised-button.mat-warn .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.dark-theme .mat-flat-button:not([class*=mat-elevation-z]),.dark-theme .mat-stroked-button:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.dark-theme .mat-raised-button:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.dark-theme .mat-raised-button:not(.mat-button-disabled):active:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.dark-theme .mat-raised-button.mat-button-disabled:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.dark-theme .mat-fab:not([class*=mat-elevation-z]),.dark-theme .mat-mini-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.dark-theme .mat-fab:not(.mat-button-disabled):active:not([class*=mat-elevation-z]),.dark-theme .mat-mini-fab:not(.mat-button-disabled):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.dark-theme .mat-fab.mat-button-disabled:not([class*=mat-elevation-z]),.dark-theme .mat-mini-fab.mat-button-disabled:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.dark-theme .mat-button-toggle-group,.dark-theme .mat-button-toggle-standalone{box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.dark-theme .mat-button-toggle-group-appearance-standard,.dark-theme .mat-button-toggle-standalone.mat-button-toggle-appearance-standard{box-shadow:none}.dark-theme .mat-button-toggle{color:hsla(0,0%,100%,.5)}.dark-theme .mat-button-toggle .mat-button-toggle-focus-overlay{background-color:hsla(0,0%,100%,.12)}.dark-theme .mat-button-toggle-appearance-standard{color:#fff;background:#424242}.dark-theme .mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:#fff}.dark-theme .mat-button-toggle-group-appearance-standard .mat-button-toggle+.mat-button-toggle{border-left:1px solid hsla(0,0%,100%,.12)}.dark-theme [dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle+.mat-button-toggle{border-left:none;border-right:1px solid hsla(0,0%,100%,.12)}.dark-theme .mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle+.mat-button-toggle{border-left:none;border-right:none;border-top:1px solid hsla(0,0%,100%,.12)}.dark-theme .mat-button-toggle-checked{background-color:#212121;color:hsla(0,0%,100%,.7)}.dark-theme .mat-button-toggle-checked.mat-button-toggle-appearance-standard{color:#fff}.dark-theme .mat-button-toggle-disabled{color:hsla(0,0%,100%,.3);background-color:#000}.dark-theme .mat-button-toggle-disabled.mat-button-toggle-appearance-standard{background:#424242}.dark-theme .mat-button-toggle-disabled.mat-button-toggle-checked{background-color:#424242}.dark-theme .mat-button-toggle-group-appearance-standard,.dark-theme .mat-button-toggle-standalone.mat-button-toggle-appearance-standard{border:1px solid hsla(0,0%,100%,.12)}.dark-theme .mat-card{background:#424242;color:#fff}.dark-theme .mat-card:not([class*=mat-elevation-z]){box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12)}.dark-theme .mat-card.mat-card-flat:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.dark-theme .mat-card-subtitle{color:hsla(0,0%,100%,.7)}.dark-theme .mat-checkbox-frame{border-color:hsla(0,0%,100%,.7)}.dark-theme .mat-checkbox-checkmark{fill:#303030}.dark-theme .mat-checkbox-checkmark-path{stroke:#303030!important}.dark-theme .mat-checkbox-mixedmark{background-color:#303030}.dark-theme .mat-checkbox-checked.mat-primary .mat-checkbox-background,.dark-theme .mat-checkbox-indeterminate.mat-primary .mat-checkbox-background{background-color:#3f51b5}.dark-theme .mat-checkbox-checked.mat-accent .mat-checkbox-background,.dark-theme .mat-checkbox-indeterminate.mat-accent .mat-checkbox-background{background-color:#ff4081}.dark-theme .mat-checkbox-checked.mat-warn .mat-checkbox-background,.dark-theme .mat-checkbox-indeterminate.mat-warn .mat-checkbox-background{background-color:#f44336}.dark-theme .mat-checkbox-disabled.mat-checkbox-checked .mat-checkbox-background,.dark-theme .mat-checkbox-disabled.mat-checkbox-indeterminate .mat-checkbox-background{background-color:#686868}.dark-theme .mat-checkbox-disabled:not(.mat-checkbox-checked) .mat-checkbox-frame{border-color:#686868}.dark-theme .mat-checkbox-disabled .mat-checkbox-label{color:hsla(0,0%,100%,.7)}.dark-theme .mat-checkbox .mat-ripple-element{background-color:#fff}.dark-theme .mat-checkbox-checked:not(.mat-checkbox-disabled).mat-primary .mat-ripple-element,.dark-theme .mat-checkbox:active:not(.mat-checkbox-disabled).mat-primary .mat-ripple-element{background:#3f51b5}.dark-theme .mat-checkbox-checked:not(.mat-checkbox-disabled).mat-accent .mat-ripple-element,.dark-theme .mat-checkbox:active:not(.mat-checkbox-disabled).mat-accent .mat-ripple-element{background:#ff4081}.dark-theme .mat-checkbox-checked:not(.mat-checkbox-disabled).mat-warn .mat-ripple-element,.dark-theme .mat-checkbox:active:not(.mat-checkbox-disabled).mat-warn .mat-ripple-element{background:#f44336}.dark-theme .mat-chip.mat-standard-chip{background-color:#616161;color:#fff}.dark-theme .mat-chip.mat-standard-chip .mat-chip-remove{color:#fff;opacity:.4}.dark-theme .mat-chip.mat-standard-chip:not(.mat-chip-disabled):active{box-shadow:0 3px 3px -2px rgba(0,0,0,.2),0 3px 4px 0 rgba(0,0,0,.14),0 1px 8px 0 rgba(0,0,0,.12)}.dark-theme .mat-chip.mat-standard-chip:not(.mat-chip-disabled) .mat-chip-remove:hover{opacity:.54}.dark-theme .mat-chip.mat-standard-chip.mat-chip-disabled{opacity:.4}.dark-theme .mat-chip.mat-standard-chip:after{background:#fff}.dark-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-primary{background-color:#3f51b5;color:#fff}.dark-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-primary .mat-chip-remove{color:#fff;opacity:.4}.dark-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-primary .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.dark-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-warn{background-color:#f44336;color:#fff}.dark-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-warn .mat-chip-remove{color:#fff;opacity:.4}.dark-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-warn .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.dark-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-accent{background-color:#ff4081;color:#fff}.dark-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-accent .mat-chip-remove{color:#fff;opacity:.4}.dark-theme .mat-chip.mat-standard-chip.mat-chip-selected.mat-accent .mat-ripple-element{background-color:hsla(0,0%,100%,.1)}.dark-theme .mat-table{background:#424242}.dark-theme .mat-table-sticky,.dark-theme .mat-table tbody,.dark-theme .mat-table tfoot,.dark-theme .mat-table thead,.dark-theme [mat-footer-row],.dark-theme [mat-header-row],.dark-theme [mat-row],.dark-theme mat-footer-row,.dark-theme mat-header-row,.dark-theme mat-row{background:inherit}.dark-theme mat-footer-row,.dark-theme mat-header-row,.dark-theme mat-row,.dark-theme td.mat-cell,.dark-theme td.mat-footer-cell,.dark-theme th.mat-header-cell{border-bottom-color:hsla(0,0%,100%,.12)}.dark-theme .mat-header-cell{color:hsla(0,0%,100%,.7)}.dark-theme .mat-cell,.dark-theme .mat-footer-cell{color:#fff}.dark-theme .mat-calendar-arrow{border-top-color:#fff}.dark-theme .mat-datepicker-content .mat-calendar-next-button,.dark-theme .mat-datepicker-content .mat-calendar-previous-button,.dark-theme .mat-datepicker-toggle{color:#fff}.dark-theme .mat-calendar-table-header{color:hsla(0,0%,100%,.5)}.dark-theme .mat-calendar-table-header-divider:after{background:hsla(0,0%,100%,.12)}.dark-theme .mat-calendar-body-label{color:hsla(0,0%,100%,.7)}.dark-theme .mat-calendar-body-cell-content,.dark-theme .mat-date-range-input-separator{color:#fff;border-color:transparent}.dark-theme .mat-calendar-body-disabled>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:hsla(0,0%,100%,.5)}.dark-theme .mat-form-field-disabled .mat-date-range-input-separator{color:hsla(0,0%,100%,.5)}.dark-theme .mat-calendar-body-in-preview{color:hsla(0,0%,100%,.24)}.dark-theme .mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:hsla(0,0%,100%,.5)}.dark-theme .mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:hsla(0,0%,100%,.3)}.dark-theme .mat-calendar-body-in-range:before{background:rgba(63,81,181,.2)}.dark-theme .mat-calendar-body-comparison-identical,.dark-theme .mat-calendar-body-in-comparison-range:before{background:rgba(249,171,0,.2)}.dark-theme .mat-calendar-body-comparison-bridge-start:before,.dark-theme [dir=rtl] .mat-calendar-body-comparison-bridge-end:before{background:linear-gradient(90deg,rgba(63,81,181,.2) 50%,rgba(249,171,0,.2) 0)}.dark-theme .mat-calendar-body-comparison-bridge-end:before,.dark-theme [dir=rtl] .mat-calendar-body-comparison-bridge-start:before{background:linear-gradient(270deg,rgba(63,81,181,.2) 50%,rgba(249,171,0,.2) 0)}.dark-theme .mat-calendar-body-in-comparison-range.mat-calendar-body-in-range:after,.dark-theme .mat-calendar-body-in-range>.mat-calendar-body-comparison-identical{background:#a8dab5}.dark-theme .mat-calendar-body-comparison-identical.mat-calendar-body-selected,.dark-theme .mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.dark-theme .mat-calendar-body-selected{background-color:#3f51b5;color:#fff}.dark-theme .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(63,81,181,.4)}.dark-theme .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.dark-theme .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.dark-theme .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.dark-theme .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:rgba(63,81,181,.3)}.dark-theme .mat-datepicker-content{box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12);background-color:#424242;color:#fff}.dark-theme .mat-datepicker-content.mat-accent .mat-calendar-body-in-range:before{background:rgba(255,64,129,.2)}.dark-theme .mat-datepicker-content.mat-accent .mat-calendar-body-comparison-identical,.dark-theme .mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range:before{background:rgba(249,171,0,.2)}.dark-theme .mat-datepicker-content.mat-accent .mat-calendar-body-comparison-bridge-start:before,.dark-theme .mat-datepicker-content.mat-accent [dir=rtl] .mat-calendar-body-comparison-bridge-end:before{background:linear-gradient(90deg,rgba(255,64,129,.2) 50%,rgba(249,171,0,.2) 0)}.dark-theme .mat-datepicker-content.mat-accent .mat-calendar-body-comparison-bridge-end:before,.dark-theme .mat-datepicker-content.mat-accent [dir=rtl] .mat-calendar-body-comparison-bridge-start:before{background:linear-gradient(270deg,rgba(255,64,129,.2) 50%,rgba(249,171,0,.2) 0)}.dark-theme .mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range.mat-calendar-body-in-range:after,.dark-theme .mat-datepicker-content.mat-accent .mat-calendar-body-in-range>.mat-calendar-body-comparison-identical{background:#a8dab5}.dark-theme .mat-datepicker-content.mat-accent .mat-calendar-body-comparison-identical.mat-calendar-body-selected,.dark-theme .mat-datepicker-content.mat-accent .mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.dark-theme .mat-datepicker-content.mat-accent .mat-calendar-body-selected{background-color:#ff4081;color:#fff}.dark-theme .mat-datepicker-content.mat-accent .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(255,64,129,.4)}.dark-theme .mat-datepicker-content.mat-accent .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.dark-theme .mat-datepicker-content.mat-accent .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.dark-theme .mat-datepicker-content.mat-accent .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.dark-theme .mat-datepicker-content.mat-accent .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:rgba(255,64,129,.3)}.dark-theme .mat-datepicker-content.mat-warn .mat-calendar-body-in-range:before{background:rgba(244,67,54,.2)}.dark-theme .mat-datepicker-content.mat-warn .mat-calendar-body-comparison-identical,.dark-theme .mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range:before{background:rgba(249,171,0,.2)}.dark-theme .mat-datepicker-content.mat-warn .mat-calendar-body-comparison-bridge-start:before,.dark-theme .mat-datepicker-content.mat-warn [dir=rtl] .mat-calendar-body-comparison-bridge-end:before{background:linear-gradient(90deg,rgba(244,67,54,.2) 50%,rgba(249,171,0,.2) 0)}.dark-theme .mat-datepicker-content.mat-warn .mat-calendar-body-comparison-bridge-end:before,.dark-theme .mat-datepicker-content.mat-warn [dir=rtl] .mat-calendar-body-comparison-bridge-start:before{background:linear-gradient(270deg,rgba(244,67,54,.2) 50%,rgba(249,171,0,.2) 0)}.dark-theme .mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range.mat-calendar-body-in-range:after,.dark-theme .mat-datepicker-content.mat-warn .mat-calendar-body-in-range>.mat-calendar-body-comparison-identical{background:#a8dab5}.dark-theme .mat-datepicker-content.mat-warn .mat-calendar-body-comparison-identical.mat-calendar-body-selected,.dark-theme .mat-datepicker-content.mat-warn .mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:#46a35e}.dark-theme .mat-datepicker-content.mat-warn .mat-calendar-body-selected{background-color:#f44336;color:#fff}.dark-theme .mat-datepicker-content.mat-warn .mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:rgba(244,67,54,.4)}.dark-theme .mat-datepicker-content.mat-warn .mat-calendar-body-today.mat-calendar-body-selected{box-shadow:inset 0 0 0 1px #fff}.dark-theme .mat-datepicker-content.mat-warn .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.dark-theme .mat-datepicker-content.mat-warn .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.dark-theme .mat-datepicker-content.mat-warn .mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:rgba(244,67,54,.3)}.dark-theme .mat-datepicker-content-touch{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12)}.dark-theme .mat-datepicker-toggle-active{color:#3f51b5}.dark-theme .mat-datepicker-toggle-active.mat-accent{color:#ff4081}.dark-theme .mat-datepicker-toggle-active.mat-warn{color:#f44336}.dark-theme .mat-date-range-input-inner[disabled]{color:hsla(0,0%,100%,.5)}.dark-theme .mat-dialog-container{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);background:#424242;color:#fff}.dark-theme .mat-divider{border-top-color:hsla(0,0%,100%,.12)}.dark-theme .mat-divider-vertical{border-right-color:hsla(0,0%,100%,.12)}.dark-theme .mat-expansion-panel{background:#424242;color:#fff}.dark-theme .mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.dark-theme .mat-action-row{border-top-color:hsla(0,0%,100%,.12)}.dark-theme .mat-expansion-panel .mat-expansion-panel-header.cdk-keyboard-focused:not([aria-disabled=true]),.dark-theme .mat-expansion-panel .mat-expansion-panel-header.cdk-program-focused:not([aria-disabled=true]),.dark-theme .mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:hover:not([aria-disabled=true]){background:hsla(0,0%,100%,.04)}@media (hover:none){.dark-theme .mat-expansion-panel:not(.mat-expanded):not([aria-disabled=true]) .mat-expansion-panel-header:hover{background:#424242}}.dark-theme .mat-expansion-panel-header-title{color:#fff}.dark-theme .mat-expansion-indicator:after,.dark-theme .mat-expansion-panel-header-description{color:hsla(0,0%,100%,.7)}.dark-theme .mat-expansion-panel-header[aria-disabled=true]{color:hsla(0,0%,100%,.3)}.dark-theme .mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description,.dark-theme .mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title{color:inherit}.dark-theme .mat-form-field-label,.dark-theme .mat-hint{color:hsla(0,0%,100%,.7)}.dark-theme .mat-form-field.mat-focused .mat-form-field-label{color:#3f51b5}.dark-theme .mat-form-field.mat-focused .mat-form-field-label.mat-accent{color:#ff4081}.dark-theme .mat-form-field.mat-focused .mat-form-field-label.mat-warn{color:#f44336}.dark-theme .mat-focused .mat-form-field-required-marker{color:#ff4081}.dark-theme .mat-form-field-ripple{background-color:#fff}.dark-theme .mat-form-field.mat-focused .mat-form-field-ripple{background-color:#3f51b5}.dark-theme .mat-form-field.mat-focused .mat-form-field-ripple.mat-accent{background-color:#ff4081}.dark-theme .mat-form-field.mat-focused .mat-form-field-ripple.mat-warn{background-color:#f44336}.dark-theme .mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid) .mat-form-field-infix:after{color:#3f51b5}.dark-theme .mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-accent .mat-form-field-infix:after{color:#ff4081}.dark-theme .mat-form-field-type-mat-native-select.mat-focused:not(.mat-form-field-invalid).mat-warn .mat-form-field-infix:after{color:#f44336}.dark-theme .mat-form-field.mat-form-field-invalid .mat-form-field-label,.dark-theme .mat-form-field.mat-form-field-invalid .mat-form-field-label.mat-accent,.dark-theme .mat-form-field.mat-form-field-invalid .mat-form-field-label .mat-form-field-required-marker{color:#f44336}.dark-theme .mat-form-field.mat-form-field-invalid .mat-form-field-ripple,.dark-theme .mat-form-field.mat-form-field-invalid .mat-form-field-ripple.mat-accent{background-color:#f44336}.dark-theme .mat-error{color:#f44336}.dark-theme .mat-form-field-appearance-legacy .mat-form-field-label,.dark-theme .mat-form-field-appearance-legacy .mat-hint{color:hsla(0,0%,100%,.7)}.dark-theme .mat-form-field-appearance-legacy .mat-form-field-underline{background-color:hsla(0,0%,100%,.7)}.dark-theme .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(90deg,hsla(0,0%,100%,.7) 0,hsla(0,0%,100%,.7) 33%,transparent 0);background-size:4px 100%;background-repeat:repeat-x}.dark-theme .mat-form-field-appearance-standard .mat-form-field-underline{background-color:hsla(0,0%,100%,.7)}.dark-theme .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-image:linear-gradient(90deg,hsla(0,0%,100%,.7) 0,hsla(0,0%,100%,.7) 33%,transparent 0);background-size:4px 100%;background-repeat:repeat-x}.dark-theme .mat-form-field-appearance-fill .mat-form-field-flex{background-color:hsla(0,0%,100%,.1)}.dark-theme .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{background-color:hsla(0,0%,100%,.05)}.dark-theme .mat-form-field-appearance-fill .mat-form-field-underline:before{background-color:hsla(0,0%,100%,.5)}.dark-theme .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-label{color:hsla(0,0%,100%,.5)}.dark-theme .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-underline:before{background-color:transparent}.dark-theme .mat-form-field-appearance-outline .mat-form-field-outline{color:hsla(0,0%,100%,.3)}.dark-theme .mat-form-field-appearance-outline .mat-form-field-outline-thick{color:#fff}.dark-theme .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{color:#3f51b5}.dark-theme .mat-form-field-appearance-outline.mat-focused.mat-accent .mat-form-field-outline-thick{color:#ff4081}.dark-theme .mat-form-field-appearance-outline.mat-focused.mat-warn .mat-form-field-outline-thick,.dark-theme .mat-form-field-appearance-outline.mat-form-field-invalid.mat-form-field-invalid .mat-form-field-outline-thick{color:#f44336}.dark-theme .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-label{color:hsla(0,0%,100%,.5)}.dark-theme .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:hsla(0,0%,100%,.15)}.dark-theme .mat-icon.mat-primary{color:#3f51b5}.dark-theme .mat-icon.mat-accent{color:#ff4081}.dark-theme .mat-icon.mat-warn{color:#f44336}.dark-theme .mat-form-field-type-mat-native-select .mat-form-field-infix:after{color:hsla(0,0%,100%,.7)}.dark-theme .mat-form-field-type-mat-native-select.mat-form-field-disabled .mat-form-field-infix:after,.dark-theme .mat-input-element:disabled{color:hsla(0,0%,100%,.5)}.dark-theme .mat-input-element{caret-color:#3f51b5}.dark-theme .mat-input-element::placeholder{color:hsla(0,0%,100%,.5)}.dark-theme .mat-input-element::-moz-placeholder{color:hsla(0,0%,100%,.5)}.dark-theme .mat-input-element::-webkit-input-placeholder{color:hsla(0,0%,100%,.5)}.dark-theme .mat-input-element:-ms-input-placeholder{color:hsla(0,0%,100%,.5)}.dark-theme .mat-input-element option{color:rgba(0,0,0,.87)}.dark-theme .mat-input-element option:disabled{color:rgba(0,0,0,.38)}.dark-theme .mat-form-field.mat-accent .mat-input-element{caret-color:#ff4081}.dark-theme .mat-form-field-invalid .mat-input-element,.dark-theme .mat-form-field.mat-warn .mat-input-element{caret-color:#f44336}.dark-theme .mat-form-field-type-mat-native-select.mat-form-field-invalid .mat-form-field-infix:after{color:#f44336}.dark-theme .mat-list-base .mat-list-item,.dark-theme .mat-list-base .mat-list-option{color:#fff}.dark-theme .mat-list-base .mat-subheader{color:hsla(0,0%,100%,.7)}.dark-theme .mat-list-item-disabled{background-color:#000}.dark-theme .mat-action-list .mat-list-item:focus,.dark-theme .mat-action-list .mat-list-item:hover,.dark-theme .mat-list-option:focus,.dark-theme .mat-list-option:hover,.dark-theme .mat-nav-list .mat-list-item:focus,.dark-theme .mat-nav-list .mat-list-item:hover{background:hsla(0,0%,100%,.04)}.dark-theme .mat-list-single-selected-option,.dark-theme .mat-list-single-selected-option:focus,.dark-theme .mat-list-single-selected-option:hover{background:hsla(0,0%,100%,.12)}.dark-theme .mat-menu-panel{background:#424242}.dark-theme .mat-menu-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.dark-theme .mat-menu-item{background:transparent;color:#fff}.dark-theme .mat-menu-item[disabled],.dark-theme .mat-menu-item[disabled] .mat-icon-no-color,.dark-theme .mat-menu-item[disabled]:after{color:hsla(0,0%,100%,.5)}.dark-theme .mat-menu-item-submenu-trigger:after,.dark-theme .mat-menu-item .mat-icon-no-color{color:#fff}.dark-theme .mat-menu-item-highlighted:not([disabled]),.dark-theme .mat-menu-item.cdk-keyboard-focused:not([disabled]),.dark-theme .mat-menu-item.cdk-program-focused:not([disabled]),.dark-theme .mat-menu-item:hover:not([disabled]){background:hsla(0,0%,100%,.04)}.dark-theme .mat-paginator{background:#424242}.dark-theme .mat-paginator,.dark-theme .mat-paginator-page-size .mat-select-trigger{color:hsla(0,0%,100%,.7)}.dark-theme .mat-paginator-decrement,.dark-theme .mat-paginator-increment{border-top:2px solid #fff;border-right:2px solid #fff}.dark-theme .mat-paginator-first,.dark-theme .mat-paginator-last{border-top:2px solid #fff}.dark-theme .mat-icon-button[disabled] .mat-paginator-decrement,.dark-theme .mat-icon-button[disabled] .mat-paginator-first,.dark-theme .mat-icon-button[disabled] .mat-paginator-increment,.dark-theme .mat-icon-button[disabled] .mat-paginator-last{border-color:hsla(0,0%,100%,.5)}.dark-theme .mat-progress-bar-background{fill:#343851}.dark-theme .mat-progress-bar-buffer{background-color:#343851}.dark-theme .mat-progress-bar-fill:after{background-color:#3f51b5}.dark-theme .mat-progress-bar.mat-accent .mat-progress-bar-background{fill:#643444}.dark-theme .mat-progress-bar.mat-accent .mat-progress-bar-buffer{background-color:#643444}.dark-theme .mat-progress-bar.mat-accent .mat-progress-bar-fill:after{background-color:#ff4081}.dark-theme .mat-progress-bar.mat-warn .mat-progress-bar-background{fill:#613532}.dark-theme .mat-progress-bar.mat-warn .mat-progress-bar-buffer{background-color:#613532}.dark-theme .mat-progress-bar.mat-warn .mat-progress-bar-fill:after{background-color:#f44336}.dark-theme .mat-progress-spinner circle,.dark-theme .mat-spinner circle{stroke:#3f51b5}.dark-theme .mat-progress-spinner.mat-accent circle,.dark-theme .mat-spinner.mat-accent circle{stroke:#ff4081}.dark-theme .mat-progress-spinner.mat-warn circle,.dark-theme .mat-spinner.mat-warn circle{stroke:#f44336}.dark-theme .mat-radio-outer-circle{border-color:hsla(0,0%,100%,.7)}.dark-theme .mat-radio-button.mat-primary.mat-radio-checked .mat-radio-outer-circle{border-color:#3f51b5}.dark-theme .mat-radio-button.mat-primary.mat-radio-checked .mat-radio-persistent-ripple,.dark-theme .mat-radio-button.mat-primary .mat-radio-inner-circle,.dark-theme .mat-radio-button.mat-primary .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.dark-theme .mat-radio-button.mat-primary:active .mat-radio-persistent-ripple{background-color:#3f51b5}.dark-theme .mat-radio-button.mat-accent.mat-radio-checked .mat-radio-outer-circle{border-color:#ff4081}.dark-theme .mat-radio-button.mat-accent.mat-radio-checked .mat-radio-persistent-ripple,.dark-theme .mat-radio-button.mat-accent .mat-radio-inner-circle,.dark-theme .mat-radio-button.mat-accent .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.dark-theme .mat-radio-button.mat-accent:active .mat-radio-persistent-ripple{background-color:#ff4081}.dark-theme .mat-radio-button.mat-warn.mat-radio-checked .mat-radio-outer-circle{border-color:#f44336}.dark-theme .mat-radio-button.mat-warn.mat-radio-checked .mat-radio-persistent-ripple,.dark-theme .mat-radio-button.mat-warn .mat-radio-inner-circle,.dark-theme .mat-radio-button.mat-warn .mat-radio-ripple .mat-ripple-element:not(.mat-radio-persistent-ripple),.dark-theme .mat-radio-button.mat-warn:active .mat-radio-persistent-ripple{background-color:#f44336}.dark-theme .mat-radio-button.mat-radio-disabled.mat-radio-checked .mat-radio-outer-circle,.dark-theme .mat-radio-button.mat-radio-disabled .mat-radio-outer-circle{border-color:hsla(0,0%,100%,.5)}.dark-theme .mat-radio-button.mat-radio-disabled .mat-radio-inner-circle,.dark-theme .mat-radio-button.mat-radio-disabled .mat-radio-ripple .mat-ripple-element{background-color:hsla(0,0%,100%,.5)}.dark-theme .mat-radio-button.mat-radio-disabled .mat-radio-label-content{color:hsla(0,0%,100%,.5)}.dark-theme .mat-radio-button .mat-ripple-element{background-color:#fff}.dark-theme .mat-select-value{color:#fff}.dark-theme .mat-select-disabled .mat-select-value,.dark-theme .mat-select-placeholder{color:hsla(0,0%,100%,.5)}.dark-theme .mat-select-arrow{color:hsla(0,0%,100%,.7)}.dark-theme .mat-select-panel{background:#424242}.dark-theme .mat-select-panel:not([class*=mat-elevation-z]){box-shadow:0 2px 4px -1px rgba(0,0,0,.2),0 4px 5px 0 rgba(0,0,0,.14),0 1px 10px 0 rgba(0,0,0,.12)}.dark-theme .mat-select-panel .mat-option.mat-selected:not(.mat-option-multiple){background:hsla(0,0%,100%,.12)}.dark-theme .mat-form-field.mat-focused.mat-primary .mat-select-arrow{color:#3f51b5}.dark-theme .mat-form-field.mat-focused.mat-accent .mat-select-arrow{color:#ff4081}.dark-theme .mat-form-field.mat-focused.mat-warn .mat-select-arrow,.dark-theme .mat-form-field .mat-select.mat-select-invalid .mat-select-arrow{color:#f44336}.dark-theme .mat-form-field .mat-select.mat-select-disabled .mat-select-arrow{color:hsla(0,0%,100%,.5)}.dark-theme .mat-drawer-container{background-color:#303030;color:#fff}.dark-theme .mat-drawer{color:#fff}.dark-theme .mat-drawer,.dark-theme .mat-drawer.mat-drawer-push{background-color:#424242}.dark-theme .mat-drawer:not(.mat-drawer-side){box-shadow:0 8px 10px -5px rgba(0,0,0,.2),0 16px 24px 2px rgba(0,0,0,.14),0 6px 30px 5px rgba(0,0,0,.12)}.dark-theme .mat-drawer-side{border-right:1px solid hsla(0,0%,100%,.12)}.dark-theme .mat-drawer-side.mat-drawer-end{border-left:1px solid hsla(0,0%,100%,.12);border-right:none}.dark-theme [dir=rtl] .mat-drawer-side{border-left:1px solid hsla(0,0%,100%,.12);border-right:none}.dark-theme [dir=rtl] .mat-drawer-side.mat-drawer-end{border-left:none;border-right:1px solid hsla(0,0%,100%,.12)}.dark-theme .mat-drawer-backdrop.mat-drawer-shown{background-color:hsla(0,0%,74%,.6)}.dark-theme .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb{background-color:#ff4081}.dark-theme .mat-slide-toggle.mat-checked .mat-slide-toggle-bar{background-color:rgba(255,64,129,.54)}.dark-theme .mat-slide-toggle.mat-checked .mat-ripple-element{background-color:#ff4081}.dark-theme .mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-thumb{background-color:#3f51b5}.dark-theme .mat-slide-toggle.mat-primary.mat-checked .mat-slide-toggle-bar{background-color:rgba(63,81,181,.54)}.dark-theme .mat-slide-toggle.mat-primary.mat-checked .mat-ripple-element{background-color:#3f51b5}.dark-theme .mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-thumb{background-color:#f44336}.dark-theme .mat-slide-toggle.mat-warn.mat-checked .mat-slide-toggle-bar{background-color:rgba(244,67,54,.54)}.dark-theme .mat-slide-toggle.mat-warn.mat-checked .mat-ripple-element{background-color:#f44336}.dark-theme .mat-slide-toggle:not(.mat-checked) .mat-ripple-element{background-color:#fff}.dark-theme .mat-slide-toggle-thumb{box-shadow:0 2px 1px -1px rgba(0,0,0,.2),0 1px 1px 0 rgba(0,0,0,.14),0 1px 3px 0 rgba(0,0,0,.12);background-color:#bdbdbd}.dark-theme .mat-slide-toggle-bar{background-color:hsla(0,0%,100%,.5)}.dark-theme .mat-slider-track-background{background-color:hsla(0,0%,100%,.3)}.dark-theme .mat-primary .mat-slider-thumb,.dark-theme .mat-primary .mat-slider-thumb-label,.dark-theme .mat-primary .mat-slider-track-fill{background-color:#3f51b5}.dark-theme .mat-primary .mat-slider-thumb-label-text{color:#fff}.dark-theme .mat-primary .mat-slider-focus-ring{background-color:rgba(63,81,181,.2)}.dark-theme .mat-accent .mat-slider-thumb,.dark-theme .mat-accent .mat-slider-thumb-label,.dark-theme .mat-accent .mat-slider-track-fill{background-color:#ff4081}.dark-theme .mat-accent .mat-slider-thumb-label-text{color:#fff}.dark-theme .mat-accent .mat-slider-focus-ring{background-color:rgba(255,64,129,.2)}.dark-theme .mat-warn .mat-slider-thumb,.dark-theme .mat-warn .mat-slider-thumb-label,.dark-theme .mat-warn .mat-slider-track-fill{background-color:#f44336}.dark-theme .mat-warn .mat-slider-thumb-label-text{color:#fff}.dark-theme .mat-warn .mat-slider-focus-ring{background-color:rgba(244,67,54,.2)}.dark-theme .cdk-focused .mat-slider-track-background,.dark-theme .mat-slider:hover .mat-slider-track-background{background-color:hsla(0,0%,100%,.3)}.dark-theme .mat-slider-disabled .mat-slider-thumb,.dark-theme .mat-slider-disabled .mat-slider-track-background,.dark-theme .mat-slider-disabled .mat-slider-track-fill{background-color:hsla(0,0%,100%,.3)}.dark-theme .mat-slider-disabled:hover .mat-slider-track-background{background-color:hsla(0,0%,100%,.3)}.dark-theme .mat-slider-min-value .mat-slider-focus-ring{background-color:hsla(0,0%,100%,.12)}.dark-theme .mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb,.dark-theme .mat-slider-min-value.mat-slider-thumb-label-showing .mat-slider-thumb-label{background-color:#fff}.dark-theme .mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb,.dark-theme .mat-slider-min-value.mat-slider-thumb-label-showing.cdk-focused .mat-slider-thumb-label{background-color:hsla(0,0%,100%,.3)}.dark-theme .mat-slider-min-value:not(.mat-slider-thumb-label-showing) .mat-slider-thumb{border-color:hsla(0,0%,100%,.3);background-color:transparent}.dark-theme .mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused .mat-slider-thumb,.dark-theme .mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover .mat-slider-thumb{border-color:hsla(0,0%,100%,.3)}.dark-theme .mat-slider-min-value:not(.mat-slider-thumb-label-showing).cdk-focused.mat-slider-disabled .mat-slider-thumb,.dark-theme .mat-slider-min-value:not(.mat-slider-thumb-label-showing):hover.mat-slider-disabled .mat-slider-thumb{border-color:hsla(0,0%,100%,.3)}.dark-theme .mat-slider-has-ticks .mat-slider-wrapper:after{border-color:hsla(0,0%,100%,.7)}.dark-theme .mat-slider-horizontal .mat-slider-ticks{background-image:repeating-linear-gradient(90deg,hsla(0,0%,100%,.7),hsla(0,0%,100%,.7) 2px,transparent 0,transparent);background-image:-moz-repeating-linear-gradient(.0001deg,hsla(0,0%,100%,.7),hsla(0,0%,100%,.7) 2px,transparent 0,transparent)}.dark-theme .mat-slider-vertical .mat-slider-ticks{background-image:repeating-linear-gradient(180deg,hsla(0,0%,100%,.7),hsla(0,0%,100%,.7) 2px,transparent 0,transparent)}.dark-theme .mat-step-header.cdk-keyboard-focused,.dark-theme .mat-step-header.cdk-program-focused,.dark-theme .mat-step-header:hover{background-color:hsla(0,0%,100%,.04)}@media (hover:none){.dark-theme .mat-step-header:hover{background:none}}.dark-theme .mat-step-header .mat-step-label,.dark-theme .mat-step-header .mat-step-optional{color:hsla(0,0%,100%,.7)}.dark-theme .mat-step-header .mat-step-icon{background-color:hsla(0,0%,100%,.7);color:#fff}.dark-theme .mat-step-header .mat-step-icon-selected,.dark-theme .mat-step-header .mat-step-icon-state-done,.dark-theme .mat-step-header .mat-step-icon-state-edit{background-color:#3f51b5;color:#fff}.dark-theme .mat-step-header.mat-accent .mat-step-icon{color:#fff}.dark-theme .mat-step-header.mat-accent .mat-step-icon-selected,.dark-theme .mat-step-header.mat-accent .mat-step-icon-state-done,.dark-theme .mat-step-header.mat-accent .mat-step-icon-state-edit{background-color:#ff4081;color:#fff}.dark-theme .mat-step-header.mat-warn .mat-step-icon{color:#fff}.dark-theme .mat-step-header.mat-warn .mat-step-icon-selected,.dark-theme .mat-step-header.mat-warn .mat-step-icon-state-done,.dark-theme .mat-step-header.mat-warn .mat-step-icon-state-edit{background-color:#f44336;color:#fff}.dark-theme .mat-step-header .mat-step-icon-state-error{background-color:transparent;color:#f44336}.dark-theme .mat-step-header .mat-step-label.mat-step-label-active{color:#fff}.dark-theme .mat-step-header .mat-step-label.mat-step-label-error{color:#f44336}.dark-theme .mat-stepper-horizontal,.dark-theme .mat-stepper-vertical{background-color:#424242}.dark-theme .mat-stepper-vertical-line:before{border-left-color:hsla(0,0%,100%,.12)}.dark-theme .mat-horizontal-stepper-header:after,.dark-theme .mat-horizontal-stepper-header:before,.dark-theme .mat-stepper-horizontal-line{border-top-color:hsla(0,0%,100%,.12)}.dark-theme .mat-sort-header-arrow{color:#c6c6c6}.dark-theme .mat-tab-header,.dark-theme .mat-tab-nav-bar{border-bottom:1px solid hsla(0,0%,100%,.12)}.dark-theme .mat-tab-group-inverted-header .mat-tab-header,.dark-theme .mat-tab-group-inverted-header .mat-tab-nav-bar{border-top:1px solid hsla(0,0%,100%,.12);border-bottom:none}.dark-theme .mat-tab-label,.dark-theme .mat-tab-link{color:#fff}.dark-theme .mat-tab-label.mat-tab-disabled,.dark-theme .mat-tab-link.mat-tab-disabled{color:hsla(0,0%,100%,.5)}.dark-theme .mat-tab-header-pagination-chevron{border-color:#fff}.dark-theme .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:hsla(0,0%,100%,.5)}.dark-theme .mat-tab-group[class*=mat-background-] .mat-tab-header,.dark-theme .mat-tab-nav-bar[class*=mat-background-]{border-bottom:none;border-top:none}.dark-theme .mat-tab-group.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(197,202,233,.3)}.dark-theme .mat-tab-group.mat-primary .mat-ink-bar,.dark-theme .mat-tab-nav-bar.mat-primary .mat-ink-bar{background-color:#3f51b5}.dark-theme .mat-tab-group.mat-primary.mat-background-primary>.mat-tab-header .mat-ink-bar,.dark-theme .mat-tab-group.mat-primary.mat-background-primary>.mat-tab-link-container .mat-ink-bar,.dark-theme .mat-tab-nav-bar.mat-primary.mat-background-primary>.mat-tab-header .mat-ink-bar,.dark-theme .mat-tab-nav-bar.mat-primary.mat-background-primary>.mat-tab-link-container .mat-ink-bar{background-color:#fff}.dark-theme .mat-tab-group.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,128,171,.3)}.dark-theme .mat-tab-group.mat-accent .mat-ink-bar,.dark-theme .mat-tab-nav-bar.mat-accent .mat-ink-bar{background-color:#ff4081}.dark-theme .mat-tab-group.mat-accent.mat-background-accent>.mat-tab-header .mat-ink-bar,.dark-theme .mat-tab-group.mat-accent.mat-background-accent>.mat-tab-link-container .mat-ink-bar,.dark-theme .mat-tab-nav-bar.mat-accent.mat-background-accent>.mat-tab-header .mat-ink-bar,.dark-theme .mat-tab-nav-bar.mat-accent.mat-background-accent>.mat-tab-link-container .mat-ink-bar{background-color:#fff}.dark-theme .mat-tab-group.mat-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,205,210,.3)}.dark-theme .mat-tab-group.mat-warn .mat-ink-bar,.dark-theme .mat-tab-nav-bar.mat-warn .mat-ink-bar{background-color:#f44336}.dark-theme .mat-tab-group.mat-warn.mat-background-warn>.mat-tab-header .mat-ink-bar,.dark-theme .mat-tab-group.mat-warn.mat-background-warn>.mat-tab-link-container .mat-ink-bar,.dark-theme .mat-tab-nav-bar.mat-warn.mat-background-warn>.mat-tab-header .mat-ink-bar,.dark-theme .mat-tab-nav-bar.mat-warn.mat-background-warn>.mat-tab-link-container .mat-ink-bar{background-color:#fff}.dark-theme .mat-tab-group.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-background-primary .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(197,202,233,.3)}.dark-theme .mat-tab-group.mat-background-primary>.mat-tab-header,.dark-theme .mat-tab-group.mat-background-primary>.mat-tab-header-pagination,.dark-theme .mat-tab-group.mat-background-primary>.mat-tab-link-container,.dark-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header,.dark-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination,.dark-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container{background-color:#3f51b5}.dark-theme .mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-label,.dark-theme .mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-tab-link,.dark-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-label,.dark-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-tab-link{color:#fff}.dark-theme .mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-label.mat-tab-disabled,.dark-theme .mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-tab-link.mat-tab-disabled,.dark-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-label.mat-tab-disabled,.dark-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-tab-link.mat-tab-disabled{color:hsla(0,0%,100%,.4)}.dark-theme .mat-tab-group.mat-background-primary>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.dark-theme .mat-tab-group.mat-background-primary>.mat-tab-header .mat-focus-indicator:before,.dark-theme .mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-chevron,.dark-theme .mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-focus-indicator:before,.dark-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.dark-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-focus-indicator:before,.dark-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-chevron,.dark-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-focus-indicator:before{border-color:#fff}.dark-theme .mat-tab-group.mat-background-primary>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.dark-theme .mat-tab-group.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.dark-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.dark-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:hsla(0,0%,100%,.4)}.dark-theme .mat-tab-group.mat-background-primary>.mat-tab-header-pagination .mat-ripple-element,.dark-theme .mat-tab-group.mat-background-primary>.mat-tab-header .mat-ripple-element,.dark-theme .mat-tab-group.mat-background-primary>.mat-tab-link-container .mat-ripple-element,.dark-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header-pagination .mat-ripple-element,.dark-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-header .mat-ripple-element,.dark-theme .mat-tab-nav-bar.mat-background-primary>.mat-tab-link-container .mat-ripple-element{background-color:hsla(0,0%,100%,.12)}.dark-theme .mat-tab-group.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-background-accent .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,128,171,.3)}.dark-theme .mat-tab-group.mat-background-accent>.mat-tab-header,.dark-theme .mat-tab-group.mat-background-accent>.mat-tab-header-pagination,.dark-theme .mat-tab-group.mat-background-accent>.mat-tab-link-container,.dark-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header,.dark-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination,.dark-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container{background-color:#ff4081}.dark-theme .mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-label,.dark-theme .mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-tab-link,.dark-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-label,.dark-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-tab-link{color:#fff}.dark-theme .mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-label.mat-tab-disabled,.dark-theme .mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-tab-link.mat-tab-disabled,.dark-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-label.mat-tab-disabled,.dark-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-tab-link.mat-tab-disabled{color:hsla(0,0%,100%,.4)}.dark-theme .mat-tab-group.mat-background-accent>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.dark-theme .mat-tab-group.mat-background-accent>.mat-tab-header .mat-focus-indicator:before,.dark-theme .mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-chevron,.dark-theme .mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-focus-indicator:before,.dark-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.dark-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-focus-indicator:before,.dark-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-chevron,.dark-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-focus-indicator:before{border-color:#fff}.dark-theme .mat-tab-group.mat-background-accent>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.dark-theme .mat-tab-group.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.dark-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.dark-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:hsla(0,0%,100%,.4)}.dark-theme .mat-tab-group.mat-background-accent>.mat-tab-header-pagination .mat-ripple-element,.dark-theme .mat-tab-group.mat-background-accent>.mat-tab-header .mat-ripple-element,.dark-theme .mat-tab-group.mat-background-accent>.mat-tab-link-container .mat-ripple-element,.dark-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header-pagination .mat-ripple-element,.dark-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-header .mat-ripple-element,.dark-theme .mat-tab-nav-bar.mat-background-accent>.mat-tab-link-container .mat-ripple-element{background-color:hsla(0,0%,100%,.12)}.dark-theme .mat-tab-group.mat-background-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-background-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-background-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-group.mat-background-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-label.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-label.cdk-program-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-link.cdk-keyboard-focused:not(.mat-tab-disabled),.dark-theme .mat-tab-nav-bar.mat-background-warn .mat-tab-link.cdk-program-focused:not(.mat-tab-disabled){background-color:rgba(255,205,210,.3)}.dark-theme .mat-tab-group.mat-background-warn>.mat-tab-header,.dark-theme .mat-tab-group.mat-background-warn>.mat-tab-header-pagination,.dark-theme .mat-tab-group.mat-background-warn>.mat-tab-link-container,.dark-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header,.dark-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination,.dark-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container{background-color:#f44336}.dark-theme .mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-label,.dark-theme .mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-tab-link,.dark-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-label,.dark-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-tab-link{color:#fff}.dark-theme .mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-label.mat-tab-disabled,.dark-theme .mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-tab-link.mat-tab-disabled,.dark-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-label.mat-tab-disabled,.dark-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-tab-link.mat-tab-disabled{color:hsla(0,0%,100%,.4)}.dark-theme .mat-tab-group.mat-background-warn>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.dark-theme .mat-tab-group.mat-background-warn>.mat-tab-header .mat-focus-indicator:before,.dark-theme .mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-chevron,.dark-theme .mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-focus-indicator:before,.dark-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination .mat-tab-header-pagination-chevron,.dark-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-focus-indicator:before,.dark-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-chevron,.dark-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-focus-indicator:before{border-color:#fff}.dark-theme .mat-tab-group.mat-background-warn>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.dark-theme .mat-tab-group.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.dark-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron,.dark-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-tab-header-pagination-disabled .mat-tab-header-pagination-chevron{border-color:hsla(0,0%,100%,.4)}.dark-theme .mat-tab-group.mat-background-warn>.mat-tab-header-pagination .mat-ripple-element,.dark-theme .mat-tab-group.mat-background-warn>.mat-tab-header .mat-ripple-element,.dark-theme .mat-tab-group.mat-background-warn>.mat-tab-link-container .mat-ripple-element,.dark-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header-pagination .mat-ripple-element,.dark-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-header .mat-ripple-element,.dark-theme .mat-tab-nav-bar.mat-background-warn>.mat-tab-link-container .mat-ripple-element{background-color:hsla(0,0%,100%,.12)}.dark-theme .mat-toolbar{background:#212121;color:#fff}.dark-theme .mat-toolbar.mat-primary{background:#3f51b5}.dark-theme .mat-toolbar.mat-accent{background:#ff4081;color:#fff}.dark-theme .mat-toolbar.mat-warn{background:#f44336;color:#fff}.dark-theme .mat-toolbar .mat-focused .mat-form-field-ripple,.dark-theme .mat-toolbar .mat-form-field-ripple,.dark-theme .mat-toolbar .mat-form-field-underline{background-color:currentColor}.dark-theme .mat-toolbar .mat-focused .mat-form-field-label,.dark-theme .mat-toolbar .mat-form-field-label,.dark-theme .mat-toolbar .mat-form-field.mat-focused .mat-select-arrow,.dark-theme .mat-toolbar .mat-select-arrow,.dark-theme .mat-toolbar .mat-select-value{color:inherit}.dark-theme .mat-toolbar .mat-input-element{caret-color:currentColor}.dark-theme .mat-tooltip{background:rgba(97,97,97,.9)}.dark-theme .mat-tree{background:#424242}.dark-theme .mat-nested-tree-node,.dark-theme .mat-tree-node{color:#fff}.dark-theme .mat-snack-bar-container{color:rgba(0,0,0,.87);background:#fafafa;box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.dark-theme .mat-simple-snackbar-action{color:inherit}.dark-theme body,.dark-theme html{background-color:#303030}.dark-theme .mat-toolbar.mat-primary{background:#303030;color:#fff}.dark-theme .card{background-color:#303030;border-color:#666;box-shadow:0 1px 4px 0 hsla(0,0%,100%,.14);color:#fff}.dark-theme .card-header{background-image:linear-gradient(60deg,#4766bc,#465d9c);border-bottom-color:#fff;box-shadow:0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(70,93,156,.4);color:#fff}.dark-theme .card-title>a{color:#fff}.dark-theme .card-subtitle{font-size:.9rem;margin-left:1.4rem}.dark-theme .detail>.title{background-image:linear-gradient(60deg,#4766bc,#465d9c);border-bottom-color:#fff;box-shadow:0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(70,93,156,.4);color:#fff}.dark-theme .detail>.title a{color:#ff0}.dark-theme .mat-menu-content .mat-menu-item:hover{background-color:#171717} \ No newline at end of file diff --git a/server/src/uds/templates/uds/admin/index.html b/server/src/uds/templates/uds/admin/index.html index d31c1228..54ae4e3a 100644 --- a/server/src/uds/templates/uds/admin/index.html +++ b/server/src/uds/templates/uds/admin/index.html @@ -48,10 +48,14 @@ 0% { stroke-dasharray: 1, 200; stroke-dashoffset: 0; - } 50% { + } + + 50% { stroke-dasharray: 89, 200; stroke-dashoffset: -35px; - } 100% { + } + + 100% { stroke-dasharray: 89, 200; stroke-dashoffset: -124px; } @@ -78,9 +82,9 @@ - + - +
@@ -90,7 +94,7 @@
- + \ No newline at end of file