diff --git a/server/src/uds/__init__.py b/server/src/uds/__init__.py index bbb2af93..4090bbca 100644 --- a/server/src/uds/__init__.py +++ b/server/src/uds/__init__.py @@ -108,3 +108,5 @@ def extend_sqlite(connection, **kwargs): connection.connection.create_function("MIN", 2, min) connection.connection.create_function("MAX", 2, max) connection.connection.create_function("CEIL", 1, math.ceil) + connection.connection.create_function("FLOOR", 1, math.floor) + diff --git a/server/src/uds/admin/views/__init__.py b/server/src/uds/admin/views/__init__.py index 73486578..f7b847b5 100644 --- a/server/src/uds/admin/views/__init__.py +++ b/server/src/uds/admin/views/__init__.py @@ -44,6 +44,9 @@ logger = logging.getLogger(__name__) CSRF_FIELD = 'csrfmiddlewaretoken' +CSRF_FIELD = 'csrfmiddlewaretoken' + + @denyBrowsers(browsers=['ie<10']) @webLoginRequired(admin=True) def index(request): diff --git a/server/src/uds/static/admin/main.js b/server/src/uds/static/admin/main.js index c6dafb22..ddff6cb0 100644 --- a/server/src/uds/static/admin/main.js +++ b/server/src/uds/static/admin/main.js @@ -1 +1 @@ -(self.webpackChunkuds=self.webpackChunkuds||[]).push([[179],{9473:function(Ul,$r,Ht){Ul.exports=Ht(7854)},133:function(Ul,$r,Ht){"use strict";function qe(i){return(qe=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)})(i)}function ca(i,s){for(;!Object.prototype.hasOwnProperty.call(i,s)&&null!==(i=qe(i)););return i}function Ye(){return Ye="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(s,r,n){var l=ca(s,r);if(l){var c=Object.getOwnPropertyDescriptor(l,r);return c.get?c.get.call(arguments.length<3?s:n):c.value}},Ye.apply(this,arguments)}function Po(i,s){for(var r=0;ri.length)&&(s=i.length);for(var r=0,n=new Array(s);r=i.length?{done:!0}:{done:!1,value:i[n++]}},e:function(M){throw M},f:l}}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 _,c=!0,p=!1;return{s:function(){r=r.call(i)},n:function(){var M=r.next();return c=M.done,M},e:function(M){p=!0,_=M},f:function(){try{!c&&null!=r.return&&r.return()}finally{if(p)throw _}}}}function Pr(i,s){return function as(i){if(Array.isArray(i))return i}(i)||function xc(i,s){var r=null==i?null:"undefined"!=typeof Symbol&&i[Symbol.iterator]||i["@@iterator"];if(null!=r){var p,_,n=[],l=!0,c=!1;try{for(r=r.call(i);!(l=(p=r.next()).done)&&(n.push(p.value),!s||n.length!==s);l=!0);}catch(w){c=!0,_=w}finally{try{!l&&null!=r.return&&r.return()}finally{if(c)throw _}}return n}}(i,s)||Ci(i,s)||function Ag(){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 ed(i,s,r){return s in i?Object.defineProperty(i,s,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[s]=r,i}function yt(i){return function td(i){if(Array.isArray(i))return de(i)}(i)||function jl(i){if("undefined"!=typeof Symbol&&null!=i[Symbol.iterator]||null!=i["@@iterator"])return Array.from(i)}(i)||Ci(i)||function YS(){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 os(i,s,r){return(os=Er()?Reflect.construct:function(l,c,p){var _=[null];_.push.apply(_,c);var M=new(Function.bind.apply(l,_));return p&&_t(M,p.prototype),M}).apply(null,arguments)}function Qr(i){var s="function"==typeof Map?new Map:void 0;return Qr=function(n){if(null===n||!function yb(i){return-1!==Function.toString.call(i).indexOf("[native code]")}(n))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==s){if(s.has(n))return s.get(n);s.set(n,l)}function l(){return os(n,arguments,qe(this).constructor)}return l.prototype=Object.create(n.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),_t(l,n)},Qr(i)}function Hn(i){return"function"==typeof i}function Eg(i){var r=i(function(l){Error.call(l),l.stack=(new Error).stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var it=Eg(function(i){return function(r){i(this),this.message=r?"".concat(r.length," errors occurred during unsubscription:\n").concat(r.map(function(n,l){return"".concat(l+1,") ").concat(n.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=r}});function Fe(i,s){if(i){var r=i.indexOf(s);0<=r&&i.splice(r,1)}}var i,Te=function(){function i(s){R(this,i),this.initialTeardown=s,this.closed=!1,this._parentage=null,this._finalizers=null}return L(i,[{key:"unsubscribe",value:function(){var r;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n)){var c,l=qt(n);try{for(l.s();!(c=l.n()).done;)c.value.remove(this)}catch(F){l.e(F)}finally{l.f()}}else n.remove(this);var _=this.initialTeardown;if(Hn(_))try{_()}catch(F){r=F instanceof it?F.errors:[F]}var w=this._finalizers;if(w){this._finalizers=null;var A,M=qt(w);try{for(M.s();!(A=M.n()).done;){var O=A.value;try{bn(O)}catch(F){r=null!=r?r:[],F instanceof it?r=[].concat(yt(r),yt(F.errors)):r.push(F)}}}catch(F){M.e(F)}finally{M.f()}}if(r)throw new it(r)}}},{key:"add",value:function(r){var n;if(r&&r!==this)if(this.closed)bn(r);else{if(r instanceof i){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(r)}}},{key:"_hasParent",value:function(r){var n=this._parentage;return n===r||Array.isArray(n)&&n.includes(r)}},{key:"_addParent",value:function(r){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(r),n):n?[n,r]:r}},{key:"_removeParent",value:function(r){var n=this._parentage;n===r?this._parentage=null:Array.isArray(n)&&Fe(n,r)}},{key:"remove",value:function(r){var n=this._finalizers;n&&Fe(n,r),r instanceof i&&r._removeParent(this)}}]),i}();Te.EMPTY=((i=new Te).closed=!0,i);var At=Te.EMPTY;function kn(i){return i instanceof Te||i&&"closed"in i&&Hn(i.remove)&&Hn(i.add)&&Hn(i.unsubscribe)}function bn(i){Hn(i)?i():i.unsubscribe()}var Ii={setTimeout:function(i){function s(r,n){return i.apply(this,arguments)}return s.toString=function(){return i.toString()},s}(function(i,s){for(var r=Ii.delegate,n=arguments.length,l=new Array(n>2?n-2:0),c=2;c0}},{key:"_trySubscribe",value:function(c){return this._throwIfClosed(),Ye(qe(n.prototype),"_trySubscribe",this).call(this,c)}},{key:"_subscribe",value:function(c){return this._throwIfClosed(),this._checkFinalizedStatuses(c),this._innerSubscribe(c)}},{key:"_innerSubscribe",value:function(c){var p=this,M=this.observers;return this.hasError||this.isStopped?At:(this.currentObservers=null,M.push(c),new Te(function(){p.currentObservers=null,Fe(M,c)}))}},{key:"_checkFinalizedStatuses",value:function(c){var w=this.isStopped;this.hasError?c.error(this.thrownError):w&&c.complete()}},{key:"asObservable",value:function(){var c=new Jn;return c.source=this,c}}]),n}(Jn);return i.create=function(s,r){return new ot(s,r)},i}(),ot=function(i){se(r,i);var s=ue(r);function r(n,l){var c;return R(this,r),(c=s.call(this)).destination=n,c.source=l,c}return L(r,[{key:"next",value:function(l){var c,p;null===(p=null===(c=this.destination)||void 0===c?void 0:c.next)||void 0===p||p.call(c,l)}},{key:"error",value:function(l){var c,p;null===(p=null===(c=this.destination)||void 0===c?void 0:c.error)||void 0===p||p.call(c,l)}},{key:"complete",value:function(){var l,c;null===(c=null===(l=this.destination)||void 0===l?void 0:l.complete)||void 0===c||c.call(l)}},{key:"_subscribe",value:function(l){var c,p;return null!==(p=null===(c=this.source)||void 0===c?void 0:c.subscribe(l))&&void 0!==p?p:At}}]),r}(Xe);function Dt(i){return Hn(null==i?void 0:i.lift)}function gr(i){return function(s){if(Dt(s))return s.lift(function(r){try{return i(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function ve(i,s,r,n,l){return new rt(i,s,r,n,l)}var rt=function(i){se(r,i);var s=ue(r);function r(n,l,c,p,_,w){var M,A,O,F;return R(this,r),(F=s.call(this,n)).onFinalize=_,F.shouldUnsubscribe=w,F._next=l?function(Y){try{l(Y)}catch($){n.error($)}}:Ye((M=an(F),qe(r.prototype)),"_next",M),F._error=p?function(Y){try{p(Y)}catch($){n.error($)}finally{this.unsubscribe()}}:Ye((A=an(F),qe(r.prototype)),"_error",A),F._complete=c?function(){try{c()}catch(Y){n.error(Y)}finally{this.unsubscribe()}}:Ye((O=an(F),qe(r.prototype)),"_complete",O),F}return L(r,[{key:"unsubscribe",value:function(){var l;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var c=this.closed;Ye(qe(r.prototype),"unsubscribe",this).call(this),!c&&(null===(l=this.onFinalize)||void 0===l||l.call(this))}}}]),r}(qS);function on(i,s){return gr(function(r,n){var l=0;r.subscribe(ve(n,function(c){n.next(i.call(s,c,l++))}))})}var Ct=Ht(9473),pp=Ht.n(Ct);function Zt(i,s,r,n){return new(r||(r=Promise))(function(c,p){function _(A){try{M(n.next(A))}catch(O){p(O)}}function w(A){try{M(n.throw(A))}catch(O){p(O)}}function M(A){A.done?c(A.value):function l(c){return c instanceof r?c:new r(function(p){p(c)})}(A.value).then(_,w)}M((n=n.apply(i,s||[])).next())})}function Ke(i){return this instanceof Ke?(this.v=i,this):new Ke(i)}function JS(i,s,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l,n=r.apply(i,s||[]),c=[];return l={},p("next"),p("throw"),p("return"),l[Symbol.asyncIterator]=function(){return this},l;function p(F){n[F]&&(l[F]=function(Y){return new Promise(function($,oe){c.push([F,Y,$,oe])>1||_(F,Y)})})}function _(F,Y){try{!function w(F){F.value instanceof Ke?Promise.resolve(F.value.v).then(M,A):O(c[0][2],F)}(n[F](Y))}catch($){O(c[0][3],$)}}function M(F){_("next",F)}function A(F){_("throw",F)}function O(F,Y){F(Y),c.shift(),c.length&&_(c[0][0],c[0][1])}}function vp(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,s=i[Symbol.asyncIterator];return s?s.call(i):(i=function Ce(i){var s="function"==typeof Symbol&&Symbol.iterator,r=s&&i[s],n=0;if(r)return r.call(i);if(i&&"number"==typeof i.length)return{next:function(){return i&&n>=i.length&&(i=void 0),{value:i&&i[n++],done:!i}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(c){r[c]=i[c]&&function(p){return new Promise(function(_,w){!function l(c,p,_,w){Promise.resolve(w).then(function(M){c({value:M,done:_})},p)}(_,w,(p=i[c](p)).done,p.value)})}}}var gp=function(s){return s&&"number"==typeof s.length&&"function"!=typeof s};function Lg(i){return Hn(null==i?void 0:i.then)}function fa(i){return Hn(i[XS])}function Io(i){return Symbol.asyncIterator&&Hn(null==i?void 0:i[Symbol.asyncIterator])}function eM(i){return new TypeError("You provided ".concat(null!==i&&"object"==typeof i?"an invalid object":"'".concat(i,"'")," where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."))}var nd=function Fg(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function tM(i){return Hn(null==i?void 0:i[nd])}function $e(i){return JS(this,arguments,pp().mark(function s(){var r,n,l;return pp().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:r=i.getReader(),_.prev=1;case 2:return _.next=5,Ke(r.read());case 5:if(l=(n=_.sent).value,!n.done){_.next=12;break}return _.next=11,Ke(void 0);case 11:return _.abrupt("return",_.sent);case 12:return _.next=14,Ke(l);case 14:return _.next=16,_.sent;case 16:_.next=2;break;case 18:return _.prev=18,r.releaseLock(),_.finish(18);case 21:case"end":return _.stop()}},s,null,[[1,,18,21]])}))}function Ng(i){return Hn(null==i?void 0:i.getReader)}function ji(i){if(i instanceof Jn)return i;if(null!=i){if(fa(i))return function nM(i){return new Jn(function(s){var r=i[XS]();if(Hn(r.subscribe))return r.subscribe(s);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(i);if(gp(i))return function je(i){return new Jn(function(s){for(var r=0;r3&&void 0!==arguments[3]?arguments[3]:0,l=arguments.length>4&&void 0!==arguments[4]&&arguments[4],c=s.schedule(function(){r(),l?i.add(this.schedule(null,n)):this.unsubscribe()},n);if(i.add(c),!l)return c}function Jq(i,s,r,n,l,c,p,_){var w=[],M=0,A=0,O=!1,F=function(){O&&!w.length&&!M&&s.complete()},Y=function(le){return M2&&void 0!==arguments[2]?arguments[2]:1/0;return Hn(s)?Ri(function(n,l){return on(function(c,p){return s(n,c,l,p)})(ji(i(n,l)))},r):("number"==typeof s&&(r=s),gr(function(n,l){return Jq(n,l,i,r)}))}function kb(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0;return Ri(Ec,i)}var Sr=new Jn(function(i){return i.complete()});function $H(i){return i&&Hn(i.schedule)}function Db(i){return i[i.length-1]}function UP(i){return Hn(Db(i))?i.pop():void 0}function xb(i){return $H(Db(i))?i.pop():void 0}function eZ(i,s){return"number"==typeof Db(i)?i.pop():s}function QH(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return gr(function(r,n){r.subscribe(ve(n,function(l){return Pc(n,i,function(){return n.next(l)},s)},function(){return Pc(n,i,function(){return n.complete()},s)},function(l){return Pc(n,i,function(){return n.error(l)},s)}))})}function Vg(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return gr(function(r,n){n.add(i.schedule(function(){return r.subscribe(n)},s))})}function jP(i,s){if(!i)throw new Error("Iterable cannot be null");return new Jn(function(r){Pc(r,s,function(){var n=i[Symbol.asyncIterator]();Pc(r,s,function(){n.next().then(function(l){l.done?r.complete():r.next(l.value)})},0,!0)})})}function Wi(i,s){return s?function oZ(i,s){if(null!=i){if(fa(i))return function tZ(i,s){return ji(i).pipe(Vg(s),QH(s))}(i,s);if(gp(i))return function rZ(i,s){return new Jn(function(r){var n=0;return s.schedule(function(){n===i.length?r.complete():(r.next(i[n++]),r.closed||this.schedule())})})}(i,s);if(Lg(i))return function nZ(i,s){return ji(i).pipe(Vg(s),QH(s))}(i,s);if(Io(i))return jP(i,s);if(tM(i))return function iZ(i,s){return new Jn(function(r){var n;return Pc(r,s,function(){n=i[nd](),Pc(r,s,function(){var l,c;try{var p=n.next();l=p.value,c=p.done}catch(_){return void r.error(_)}c?r.complete():r.next(l)},0,!0)}),function(){return Hn(null==n?void 0:n.return)&&n.return()}})}(i,s);if(Ng(i))return function aZ(i,s){return jP($e(i),s)}(i,s)}throw eM(i)}(i,s):ji(i)}function Rr(){for(var i=arguments.length,s=new Array(i),r=0;r2?r-2:0),l=2;l ".concat(r," ").concat(n," ").concat(s," <=Actual]")))}(s,i,null,"!=")}function Ue(i){return{token:i.token,providedIn:i.providedIn||null,factory:i.factory,value:void 0}}function St(i){return{providers:i.providers||[],imports:i.imports||[]}}function Ug(i){return qP(i,Wa)||qP(i,Pb)}function qP(i,s){return i.hasOwnProperty(s)?i[s]:null}function Eb(i){return i&&(i.hasOwnProperty(oM)||i.hasOwnProperty(nz))?i[oM]:null}var Ob,Wa=ur({"\u0275prov":ur}),oM=ur({"\u0275inj":ur}),Pb=ur({ngInjectableDef:ur}),nz=ur({ngInjectorDef:ur}),It=function(){return(It=It||{})[It.Default=0]="Default",It[It.Host=1]="Host",It[It.Self=2]="Self",It[It.SkipSelf=4]="SkipSelf",It[It.Optional=8]="Optional",It}();function rz(){return Ob}function Mu(i){var s=Ob;return Ob=i,s}function XP(i,s,r){var n=Ug(i);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:r&It.Optional?null:void 0!==s?s:void qs(Zn(i),"Injector")}function ku(i){return{toString:i}.toString()}var Zs=function(){return(Zs=Zs||{})[Zs.OnPush=0]="OnPush",Zs[Zs.Default=1]="Default",Zs}(),Ya=function(){return function(i){i[i.Emulated=0]="Emulated",i[i.None=2]="None",i[i.ShadowDom=3]="ShadowDom"}(Ya||(Ya={})),Ya}(),iz="undefined"!=typeof globalThis&&globalThis,$P="undefined"!=typeof window&&window,az="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,QP="undefined"!=typeof global&&global,cr=iz||QP||$P||az,rd={},mr=[],jg=ur({"\u0275cmp":ur}),sM=ur({"\u0275dir":ur}),Rb=ur({"\u0275pipe":ur}),Lb=ur({"\u0275mod":ur}),Xs=ur({"\u0275fac":ur}),Wg=ur({__NG_ELEMENT_ID__:ur}),Fb=0;function ke(i){return ku(function(){var r={},n={type:i.type,providersResolver:null,decls:i.decls,vars:i.vars,factory:null,template:i.template||null,consts:i.consts||null,ngContentSelectors:i.ngContentSelectors,hostBindings:i.hostBindings||null,hostVars:i.hostVars||0,hostAttrs:i.hostAttrs||null,contentQueries:i.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:i.exportAs||null,onPush:i.changeDetection===Zs.OnPush,directiveDefs:null,pipeDefs:null,selectors:i.selectors||mr,viewQuery:i.viewQuery||null,features:i.features||null,data:i.data||{},encapsulation:i.encapsulation||Ya.Emulated,id:"c",styles:i.styles||mr,_:null,setInput:null,schemas:i.schemas||null,tView:null},l=i.directives,c=i.features,p=i.pipes;return n.id+=Fb++,n.inputs=JP(i.inputs,r),n.outputs=JP(i.outputs),c&&c.forEach(function(_){return _(n)}),n.directiveDefs=l?function(){return("function"==typeof l?l():l).map(id)}:null,n.pipeDefs=p?function(){return("function"==typeof p?p():p).map(lM)}:null,n})}function id(i){return Li(i)||function Du(i){return i[sM]||null}(i)}function lM(i){return function Yl(i){return i[Rb]||null}(i)}var Nb={};function Mt(i){return ku(function(){var s={type:i.type,bootstrap:i.bootstrap||mr,declarations:i.declarations||mr,imports:i.imports||mr,exports:i.exports||mr,transitiveCompileScopes:null,schemas:i.schemas||null,id:i.id||null};return null!=i.id&&(Nb[i.id]=i.type),s})}function JP(i,s){if(null==i)return rd;var r={};for(var n in i)if(i.hasOwnProperty(n)){var l=i[n],c=l;Array.isArray(l)&&(c=l[1],l=l[0]),r[l]=n,s&&(s[l]=c)}return r}var be=ke;function qi(i){return{type:i.type,name:i.name,factory:null,pure:!1!==i.pure,onDestroy:i.type.prototype.ngOnDestroy||null}}function Li(i){return i[jg]||null}function Fi(i,s){var r=i[Lb]||null;if(!r&&!0===s)throw new Error("Type ".concat(Zn(i)," does not have '\u0275mod' property."));return r}function go(i){return Array.isArray(i)&&"object"==typeof i[1]}function us(i){return Array.isArray(i)&&!0===i[1]}function Lo(i){return 0!=(8&i.flags)}function Hb(i){return 2==(2&i.flags)}function Nc(i){return 1==(1&i.flags)}function Fo(i){return null!==i.template}function wp(i){return 0!=(512&i[2])}function fs(i,s){return i.hasOwnProperty(Xs)?i[Xs]:null}var iO=function(){function i(s,r,n){R(this,i),this.previousValue=s,this.currentValue=r,this.firstChange=n}return L(i,[{key:"isFirstChange",value:function(){return this.firstChange}}]),i}();function xn(){return Xg}function Xg(i){return i.type.prototype.ngOnChanges&&(i.setInput=CZ),fM}function fM(){var i=oO(this),s=null==i?void 0:i.current;if(s){var r=i.previous;if(r===rd)i.previous=s;else for(var n in s)r[n]=s[n];i.current=null,this.ngOnChanges(s)}}function CZ(i,s,r,n){var l=oO(i)||function fz(i,s){return i[aO]=s}(i,{previous:rd,current:null}),c=l.current||(l.current={}),p=l.previous,_=this.declaredInputs[r],w=p[_];c[_]=new iO(w&&w.currentValue,s,p===rd),i[n]=s}xn.ngInherit=!0;var aO="__ngSimpleChanges__";function oO(i){return i[aO]||null}var pM=void 0;function Yb(){return void 0!==pM?pM:"undefined"!=typeof document?document:void 0}function ni(i){return!!i.listen}var qb={createRenderer:function(s,r){return Yb()}};function ri(i){for(;Array.isArray(i);)i=i[0];return i}function Kg(i,s){return ri(s[i])}function ds(i,s){return ri(s[i.index])}function ld(i,s){return i.data[s]}function Tu(i,s){return i[s]}function Bo(i,s){var r=s[i];return go(r)?r:r[0]}function $g(i){return 4==(4&i[2])}function Mp(i){return 128==(128&i[2])}function hs(i,s){return null==s?null:i[s]}function Zb(i){i[18]=0}function Qg(i,s){i[5]+=s;for(var r=i,n=i[3];null!==n&&(1===s&&1===r[5]||-1===s&&0===r[5]);)n[5]+=s,r=n,n=n[3]}var nn={lFrame:nm(null),bindingsEnabled:!0};function Xb(){return nn.bindingsEnabled}function Oe(){return nn.lFrame.lView}function zn(){return nn.lFrame.tView}function he(i){return nn.lFrame.contextLView=i,i[8]}function di(){for(var i=_M();null!==i&&64===i.type;)i=i.parent;return i}function _M(){return nn.lFrame.currentTNode}function ps(i,s){var r=nn.lFrame;r.currentTNode=i,r.isParent=s}function yM(){return nn.lFrame.isParent}function em(){nn.lFrame.isParent=!1}function ha(){var i=nn.lFrame,s=i.bindingRootIndex;return-1===s&&(s=i.bindingRootIndex=i.tView.bindingStartIndex),s}function Eu(){return nn.lFrame.bindingIndex++}function Qs(i){var s=nn.lFrame,r=s.bindingIndex;return s.bindingIndex=s.bindingIndex+i,r}function bz(i,s){var r=nn.lFrame;r.bindingIndex=r.bindingRootIndex=i,vO(s)}function vO(i){nn.lFrame.currentDirectiveIndex=i}function xp(i){var s=nn.lFrame.currentDirectiveIndex;return-1===s?null:i[s]}function Kb(){return nn.lFrame.currentQueryIndex}function tm(i){nn.lFrame.currentQueryIndex=i}function bM(i){var s=i[1];return 2===s.type?s.declTNode:1===s.type?i[6]:null}function gO(i,s,r){if(r&It.SkipSelf){for(var n=s,l=i;!(null!==(n=n.parent)||r&It.Host||null===(n=bM(l))||(l=l[15],10&n.type)););if(null===n)return!1;s=n,i=l}var c=nn.lFrame=Tp();return c.currentTNode=s,c.lView=i,!0}function ka(i){var s=Tp(),r=i[1];nn.lFrame=s,s.currentTNode=r.firstChild,s.lView=i,s.tView=r,s.contextLView=i,s.bindingIndex=r.bindingStartIndex,s.inI18n=!1}function Tp(){var i=nn.lFrame,s=null===i?null:i.child;return null===s?nm(i):s}function nm(i){var s={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:i,child:null,inI18n:!1};return null!==i&&(i.child=s),s}function Js(){var i=nn.lFrame;return nn.lFrame=i.parent,i.currentTNode=null,i.lView=null,i}var vs=Js;function el(){var i=Js();i.isParent=!0,i.tView=null,i.selectedIndex=-1,i.contextLView=null,i.elementDepthCount=0,i.currentDirectiveIndex=-1,i.currentNamespace=null,i.bindingRootIndex=-1,i.bindingIndex=-1,i.currentQueryIndex=0}function $b(i){var s=nn.lFrame.contextLView=function ud(i,s){for(;i>0;)s=s[15],i--;return s}(i,nn.lFrame.contextLView);return s[8]}function Da(){return nn.lFrame.selectedIndex}function Pu(i){nn.lFrame.selectedIndex=i}function Wr(){var i=nn.lFrame;return ld(i.tView,i.selectedIndex)}function Bi(){nn.lFrame.currentNamespace="svg"}function Zl(){!function CM(){nn.lFrame.currentNamespace=null}()}function Vo(i,s){for(var r=s.directiveStart,n=s.directiveEnd;r=n)break}else s[w]<0&&(i[18]+=65536),(_>11>16&&(3&i[2])===s){i[2]+=2048;try{c.call(_)}finally{}}}else try{c.call(_)}finally{}}var nl=L(function i(s,r,n){R(this,i),this.factory=s,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n});function xa(i,s,r){for(var n=ni(i),l=0;ls){p=c-1;break}}}for(;c>16}(i),n=s;r>0;)n=n[15],r--;return n}var sm=!0;function Ap(i){var s=sm;return sm=i,s}var kM=0;function md(i,s){var r=TM(i,s);if(-1!==r)return r;var n=s[1];n.firstCreatePass&&(i.injectorIndex=s.length,xM(n.data,i),xM(s,null),xM(n.blueprint,null));var l=Jb(i,s),c=i.injectorIndex;if(am(l))for(var p=om(l),_=Ou(l,s),w=_[1].data,M=0;M<8;M++)s[c+M]=_[p+M]|w[p+M];return s[c+8]=l,c}function xM(i,s){i.push(0,0,0,0,0,0,0,0,s)}function TM(i,s){return-1===i.injectorIndex||i.parent&&i.parent.injectorIndex===i.injectorIndex||null===s[i.injectorIndex+8]?-1:i.injectorIndex}function Jb(i,s){if(i.parent&&-1!==i.parent.injectorIndex)return i.parent.injectorIndex;for(var r=0,n=null,l=s;null!==l;){var c=l[1],p=c.type;if(null===(n=2===p?c.declTNode:1===p?l[6]:null))return-1;if(r++,l=l[15],-1!==n.injectorIndex)return n.injectorIndex|r<<16}return-1}function e0(i,s,r){!function DM(i,s,r){var n;"string"==typeof r?n=r.charCodeAt(0)||0:r.hasOwnProperty(Wg)&&(n=r[Wg]),null==n&&(n=r[Wg]=kM++);var l=255&n;s.data[i+(l>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:It.Default,l=arguments.length>4?arguments[4]:void 0;if(null!==i){var c=PM(r);if("function"==typeof c){if(!gO(s,i,n))return n&It.Host?AM(l,r,n):EM(s,r,n,l);try{var p=c(n);if(null!=p||n&It.Optional)return p;qs(r)}finally{vs()}}else if("number"==typeof c){var _=null,w=TM(i,s),M=-1,A=n&It.Host?s[16][6]:null;for((-1===w||n&It.SkipSelf)&&(-1!==(M=-1===w?Jb(i,s):s[w+8])&&bO(n,!1)?(_=s[1],w=om(M),s=Ou(M,s)):w=-1);-1!==w;){var O=s[1];if(yO(c,w,O.data)){var F=kz(w,s,r,_,n,A);if(F!==lm)return F}-1!==(M=s[w+8])&&bO(n,s[1].data[w+8]===A)&&yO(c,w,s)?(_=O,w=om(M),s=Ou(M,s)):w=-1}}}return EM(s,r,n,l)}var lm={};function _d(){return new Ep(di(),Oe())}function kz(i,s,r,n,l,c){var p=s[1],_=p.data[i+8],A=t0(_,p,r,null==n?Hb(_)&&sm:n!=p&&0!=(3&_.type),l&It.Host&&c===_);return null!==A?um(s,p,A,_):lm}function t0(i,s,r,n,l){for(var c=i.providerIndexes,p=s.data,_=1048575&c,w=i.directiveStart,A=c>>20,F=l?_+A:i.directiveEnd,Y=n?_:_+A;Y=w&&$.type===r)return Y}if(l){var oe=p[w];if(oe&&Fo(oe)&&oe.type===r)return w}return null}function um(i,s,r,n){var l=i[r],c=s.data;if(function fd(i){return i instanceof nl}(l)){var p=l;p.resolving&&function Tb(i,s){var r=s?". Dependency path: ".concat(s.join(" > ")," > ").concat(i):"";throw new st(-200,"Circular dependency in DI detected for ".concat(i).concat(r))}(ei(c[r]));var _=Ap(p.canSeeViewProviders);p.resolving=!0;var w=p.injectImpl?Mu(p.injectImpl):null;gO(i,n,It.Default);try{l=i[r]=p.factory(void 0,c,i,n),s.firstCreatePass&&r>=n.directiveStart&&function Cz(i,s,r){var n=s.type.prototype,c=n.ngOnInit,p=n.ngDoCheck;if(n.ngOnChanges){var _=Xg(s);(r.preOrderHooks||(r.preOrderHooks=[])).push(i,_),(r.preOrderCheckHooks||(r.preOrderCheckHooks=[])).push(i,_)}c&&(r.preOrderHooks||(r.preOrderHooks=[])).push(0-i,c),p&&((r.preOrderHooks||(r.preOrderHooks=[])).push(i,p),(r.preOrderCheckHooks||(r.preOrderCheckHooks=[])).push(i,p))}(r,c[r],s)}finally{null!==w&&Mu(w),Ap(_),p.resolving=!1,vs()}}return l}function PM(i){if("string"==typeof i)return i.charCodeAt(0)||0;var s=i.hasOwnProperty(Wg)?i[Wg]:void 0;return"number"==typeof s?s>=0?255&s:_d:s}function yO(i,s,r){return!!(r[s+(i>>5)]&1<=i.length?i.push(r):i.splice(s,0,r)}function cm(i,s){return s>=i.length-1?i.pop():i.splice(s,1)[0]}function Rp(i,s){for(var r=[],n=0;n=0?i[1|n]=r:function Cd(i,s,r,n){var l=i.length;if(l==s)i.push(r,n);else if(1===l)i.push(n,i[0]),i[0]=r;else{for(l--,i.push(i[l-1],i[l]);l>s;)i[l]=i[l-2],l--;i[s]=r,i[s+1]=n}}(i,n=~n,s,r),n}function NM(i,s){var r=Lp(i,s);if(r>=0)return i[1|r]}function Lp(i,s){return function DO(i,s,r){for(var n=0,l=i.length>>r;l!==n;){var c=n+(l-n>>1),p=i[c<s?l=c:n=c+1}return~(l<1&&void 0!==arguments[1]?arguments[1]:It.Default;if(void 0===Sd){var r="";throw new st(203,r)}return null===Sd?XP(i,void 0,s):Sd.get(i,s&It.Optional?null:void 0,s)}function ge(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:It.Default;return(rz()||Pz)(ln(i),s)}var HM=ge;function zM(i){for(var s=[],r=0;r3&&void 0!==arguments[3]?arguments[3]:null;i=i&&"\n"===i.charAt(0)&&"\u0275"==i.charAt(1)?i.substr(2):i;var l=Zn(s);if(Array.isArray(s))l=s.map(Zn).join(" -> ");else if("object"==typeof s){var c=[];for(var p in s)if(s.hasOwnProperty(p)){var _=s[p];c.push(p+":"+("string"==typeof _?JSON.stringify(_):Zn(_)))}l="{".concat(c.join(", "),"}")}return"".concat(r).concat(n?"("+n+")":"","[").concat(l,"]: ").concat(i.replace(wd,"\n "))}("\n"+i.message,l,r,n),i.ngTokenPath=l,i[r0]=null,i}var Np,u0,gm=Md(Zi("Inject",function(i){return{token:i}}),-1),ai=Md(Zi("Optional"),8),Kl=Md(Zi("SkipSelf"),4);function Dd(i){var s;return(null===(s=function l0(){if(void 0===Np&&(Np=null,cr.trustedTypes))try{Np=cr.trustedTypes.createPolicy("angular",{createHTML:function(s){return s},createScript:function(s){return s},createScriptURL:function(s){return s}})}catch(i){}return Np}())||void 0===s?void 0:s.createHTML(i))||i}function NO(i){var s;return(null===(s=function c0(){if(void 0===u0&&(u0=null,cr.trustedTypes))try{u0=cr.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(s){return s},createScript:function(s){return s},createScriptURL:function(s){return s}})}catch(i){}return u0}())||void 0===s?void 0:s.createHTML(i))||i}var xd=function(){function i(s){R(this,i),this.changingThisBreaksApplicationSecurity=s}return L(i,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),i}(),Nz=function(i){se(r,i);var s=ue(r);function r(){return R(this,r),s.apply(this,arguments)}return L(r,[{key:"getTypeName",value:function(){return"HTML"}}]),r}(xd),Bz=function(i){se(r,i);var s=ue(r);function r(){return R(this,r),s.apply(this,arguments)}return L(r,[{key:"getTypeName",value:function(){return"Style"}}]),r}(xd),VO=function(i){se(r,i);var s=ue(r);function r(){return R(this,r),s.apply(this,arguments)}return L(r,[{key:"getTypeName",value:function(){return"Script"}}]),r}(xd),WM=function(i){se(r,i);var s=ue(r);function r(){return R(this,r),s.apply(this,arguments)}return L(r,[{key:"getTypeName",value:function(){return"URL"}}]),r}(xd),Td=function(i){se(r,i);var s=ue(r);function r(){return R(this,r),s.apply(this,arguments)}return L(r,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),r}(xd);function Ta(i){return i instanceof xd?i.changingThisBreaksApplicationSecurity:i}function sl(i,s){var r=HO(i);if(null!=r&&r!==s){if("ResourceURL"===r&&"URL"===s)return!0;throw new Error("Required a safe ".concat(s,", got a ").concat(r," (see https://g.co/ng/security#xss)"))}return r===s}function HO(i){return i instanceof xd&&i.getTypeName()||null}var bo=function(){function i(s){R(this,i),this.inertDocumentHelper=s}return L(i,[{key:"getInertBodyElement",value:function(r){r=""+r;try{var n=(new window.DOMParser).parseFromString(Dd(r),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(r):(n.removeChild(n.firstChild),n)}catch(l){return null}}}]),i}(),ZM=function(){function i(s){if(R(this,i),this.defaultDoc=s,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var r=this.inertDocument.createElement("html");this.inertDocument.appendChild(r);var n=this.inertDocument.createElement("body");r.appendChild(n)}}return L(i,[{key:"getInertBodyElement",value:function(r){var n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Dd(r),n;var l=this.inertDocument.createElement("body");return l.innerHTML=Dd(r),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(l),l}},{key:"stripCustomNsAttrs",value:function(r){for(var n=r.attributes,l=n.length-1;0"),!0}},{key:"endElement",value:function(r){var n=r.nodeName.toLowerCase();Lu.hasOwnProperty(n)&&!$M.hasOwnProperty(n)&&(this.buf.push(""))}},{key:"chars",value:function(r){this.buf.push(p0(r))}},{key:"checkClobberedElement",value:function(r,n){if(n&&(r.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(r.outerHTML));return n}}]),i}(),Od=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Fu=/([^\#-~ |!])/g;function p0(i){return i.replace(/&/g,"&").replace(Od,function(s){return"&#"+(1024*(s.charCodeAt(0)-55296)+(s.charCodeAt(1)-56320)+65536)+";"}).replace(Fu,function(s){return"&#"+s.charCodeAt(0)+";"}).replace(//g,">")}function v0(i,s){var r=null;try{ul=ul||function qa(i){var s=new ZM(i);return function XM(){try{return!!(new window.DOMParser).parseFromString(Dd(""),"text/html")}catch(i){return!1}}()?new bo(s):s}(i);var n=s?String(s):"";r=ul.getInertBodyElement(n);var l=5,c=n;do{if(0===l)throw new Error("Failed to sanitize html because the input is unstable");l--,n=c,c=r.innerHTML,r=ul.getInertBodyElement(n)}while(n!==c);return Dd((new Pd).sanitizeChildren(Id(r)||r))}finally{if(r)for(var w=Id(r)||r;w.firstChild;)w.removeChild(w.firstChild)}}function Id(i){return"content"in i&&function JM(i){return i.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===i.nodeName}(i)?i.content:null}var br=function(){return(br=br||{})[br.NONE=0]="NONE",br[br.HTML=1]="HTML",br[br.STYLE=2]="STYLE",br[br.SCRIPT=3]="SCRIPT",br[br.URL=4]="URL",br[br.RESOURCE_URL=5]="RESOURCE_URL",br}();function Xi(i){var s=cl();return s?NO(s.sanitize(br.HTML,i)||""):sl(i,"HTML")?NO(Ta(i)):v0(Yb(),$t(i))}function Qt(i){var s=cl();return s?s.sanitize(br.URL,i)||"":sl(i,"URL")?Ta(i):Hc($t(i))}function cl(){var i=Oe();return i&&i[12]}var Go="__ngContext__";function Ea(i,s){i[Go]=s}function tk(i){var s=function ym(i){return i[Go]||null}(i);return s?Array.isArray(s)?s:s.lView:null}function rk(i){return i.ngOriginalError}function Zz(i){for(var s=arguments.length,r=new Array(s>1?s-1:0),n=1;n0&&(i[r-1][4]=n[4]);var c=cm(i,10+s);!function Za(i,s){jo(i,s,s[11],2,null,null),s[0]=null,s[6]=null}(n[1],n);var p=c[19];null!==p&&p.detachView(c[1]),n[3]=null,n[4]=null,n[2]&=-129}return n}}function qp(i,s){if(!(256&s[2])){var r=s[11];ni(r)&&r.destroyNode&&jo(i,s,r,3,null,null),function n4(i){var s=i[13];if(!s)return jc(i[1],i);for(;s;){var r=null;if(go(s))r=s[13];else{var n=s[10];n&&(r=n)}if(!r){for(;s&&!s[4]&&s!==i;)go(s)&&jc(s[1],s),s=s[3];null===s&&(s=i),go(s)&&jc(s[1],s),r=s&&s[4]}s=r}}(s)}}function jc(i,s){if(!(256&s[2])){s[2]&=-129,s[2]|=256,function rI(i,s){var r;if(null!=i&&null!=(r=i.destroyHooks))for(var n=0;n=0?n[l=M]():n[l=-M].unsubscribe(),c+=2}else{var A=n[l=r[c+1]];r[c].call(A)}if(null!==n){for(var O=l+1;Oc?"":l[O+1].toLowerCase();var Y=8&n?F:null;if(Y&&-1!==pk(Y,M,0)||2&n&&M!==F){if(fl(n))return!1;p=!0}}}}else{if(!p&&!fl(n)&&!fl(w))return!1;if(p&&fl(w))continue;p=!1,n=w|1&n}}return fl(n)||p}function fl(i){return 0==(1&i)}function lI(i,s,r,n){if(null===s)return-1;var l=0;if(n||!r){for(var c=!1;l-1)for(r++;r2&&void 0!==arguments[2]&&arguments[2],n=0;n0?'="'+_+'"':"")+"]"}else 8&n?l+="."+p:4&n&&(l+=" "+p);else""!==l&&!fl(p)&&(s+=gk(c,l),l=""),n=p,c=c||!fl(n);r++}return""!==l&&(s+=gk(c,l)),s}var Kt={};function G(i){cI(zn(),Oe(),Da()+i,!1)}function cI(i,s,r,n){if(!n)if(3==(3&s[2])){var c=i.preOrderCheckHooks;null!==c&&rm(s,c,r)}else{var p=i.preOrderHooks;null!==p&&gs(s,p,0,r)}Pu(r)}function Tm(i,s){return i<<17|s<<2}function dl(i){return i>>17&32767}function Am(i){return 2|i}function Ut(i){return(131068&i)>>2}function nr(i,s){return-131069&i|s<<2}function ru(i){return 1|i}function Im(i,s){var r=i.contentQueries;if(null!==r)for(var n=0;n20&&cI(i,s,20,!1),r(n,l)}finally{Pu(c)}}function wk(i,s,r){if(Lo(s))for(var l=s.directiveEnd,c=s.directiveStart;c2&&void 0!==arguments[2]?arguments[2]:ds,n=s.localNames;if(null!==n)for(var l=s.index+1,c=0;c0;){var r=i[--s];if("number"==typeof r&&r<0)return r}return 0})(_)!=w&&_.push(w),_.push(n,l,p)}}function xk(i,s){null!==i.hostBindings&&i.hostBindings(1,s)}function z0(i,s){s.flags|=2,(i.components||(i.components=[])).push(s.index)}function y4(i,s,r){if(r){if(s.exportAs)for(var n=0;n0&&tv(r)}}function tv(i){for(var s=vt(i);null!==s;s=wm(s))for(var r=10;r0&&tv(n)}var p=i[1].components;if(null!==p)for(var _=0;_0&&tv(w)}}function EI(i,s){var r=Bo(s,i),n=r[1];(function Yd(i,s){for(var r=s.length;r1&&void 0!==arguments[1]?arguments[1]:pm;if(n===pm){var l=new Error("NullInjectorError: No provider for ".concat(Zn(r),"!"));throw l.name="NullInjectorError",l}return n}}]),i}(),Cs=new Ae("Set Injector scope."),qo={},LI={},ws=void 0;function Kd(){return void 0===ws&&(ws=new Yo),ws}function Ji(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0,l=Rk(i,s,r,n);return l._resolveInjectorDefTypes(),l}function Rk(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;return new M4(i,r,s||Kd(),n)}var M4=function(){function i(s,r,n){var l=this,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;R(this,i),this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var p=[];r&&al(r,function(w){return l.processProvider(w,s,r)}),al([s],function(w){return l.processInjectorType(w,[],p)}),this.records.set(Qi,$d(void 0,this));var _=this.records.get(Cs);this.scope=null!=_?_.value:null,this.source=c||("object"==typeof s?null:Zn(s))}return L(i,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(r){return r.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pm,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:It.Default;this.assertNotDestroyed();var c=ii(this),p=Mu(void 0);try{if(!(l&It.SkipSelf)){var _=this.records.get(r);if(void 0===_){var w=Hk(r)&&Ug(r);_=w&&this.injectableDefInScope(w)?$d(U0(r),qo):null,this.records.set(r,_)}if(null!=_)return this.hydrate(r,_)}var M=l&It.Self?Kd():this.parent;return M.get(r,n=l&It.Optional&&n===pm?null:n)}catch(O){if("NullInjectorError"===O.name){var A=O[r0]=O[r0]||[];if(A.unshift(Zn(r)),c)throw O;return Oz(O,r,"R3InjectorError",this.source)}throw O}finally{Mu(p),ii(c)}}},{key:"_resolveInjectorDefTypes",value:function(){var r=this;this.injectorDefTypes.forEach(function(n){return r.get(n)})}},{key:"toString",value:function(){var r=[];return this.records.forEach(function(l,c){return r.push(Zn(c))}),"R3Injector[".concat(r.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new st(205,!1)}},{key:"processInjectorType",value:function(r,n,l){var c=this;if(!(r=ln(r)))return!1;var p=Eb(r),_=null==p&&r.ngModule||void 0,w=void 0===_?r:_,O=-1!==l.indexOf(w);if(void 0!==_&&(p=Eb(_)),null==p)return!1;if(null!=p.imports&&!O){var F;l.push(w);try{al(p.imports,function(ae){c.processInjectorType(ae,n,l)&&(void 0===F&&(F=[]),F.push(ae))})}finally{}if(void 0!==F)for(var Y=function(we){var De=F[we],Ee=De.ngModule,We=De.providers;al(We,function(bt){return c.processProvider(bt,Ee,We||mr)})},$=0;$0)throw Rp(s,"?"),new st(204,!1);var n=function aM(i){var s=i&&(i[Wa]||i[Pb]);if(s){var r=function ZP(i){if(i.hasOwnProperty("name"))return i.name;var s=(""+i).match(/^function\s*([^\s(]+)/);return null===s?"":s[1]}(i);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(r,'" 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(r,'" class.')),s}return null}(i);return null!==n?function(){return n.factory(i)}:function(){return new i}}(i);throw new st(204,!1)}function FI(i,s,r){var n=void 0;if(iv(i)){var l=ln(i);return fs(l)||U0(l)}if(Nk(i))n=function(){return ln(i.useValue)};else if(function k4(i){return!(!i||!i.useFactory)}(i))n=function(){return i.useFactory.apply(i,yt(zM(i.deps||[])))};else if(function Bk(i){return!(!i||!i.useExisting)}(i))n=function(){return ge(ln(i.useExisting))};else{var c=ln(i&&(i.useClass||i.provide));if(!function D4(i){return!!i.deps}(i))return fs(c)||U0(c);n=function(){return os(c,yt(zM(i.deps)))}}return n}function $d(i,s){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:i,value:s,multi:r?[]:void 0}}function Nk(i){return null!==i&&"object"==typeof i&&vm in i}function iv(i){return"function"==typeof i}function Hk(i){return"function"==typeof i||"object"==typeof i&&i instanceof Ae}var kr=function(){var i=function(){function s(){R(this,s)}return L(s,null,[{key:"create",value:function(n,l){var c;if(Array.isArray(n))return Ji({name:""},l,n,"");var p=null!==(c=n.name)&&void 0!==c?c:"";return Ji({name:p},n.parent,n.providers,p)}}]),s}();return i.THROW_IF_NOT_FOUND=pm,i.NULL=new Yo,i.\u0275prov=Ue({token:i,providedIn:"any",factory:function(){return ge(Qi)}}),i.__NG_ELEMENT_ID__=-1,i}();function F4(i,s){Vo(tk(i)[1],di())}function Re(i){for(var s=function qI(i){return Object.getPrototypeOf(i.prototype).constructor}(i.type),r=!0,n=[i];s;){var l=void 0;if(Fo(i))l=s.\u0275cmp||s.\u0275dir;else{if(s.\u0275cmp)throw new st(903,"");l=s.\u0275dir}if(l){if(r){n.push(l);var p=i;p.inputs=Qd(i.inputs),p.declaredInputs=Qd(i.declaredInputs),p.outputs=Qd(i.outputs);var _=l.hostBindings;_&&Pa(i,_);var w=l.viewQuery,M=l.contentQueries;if(w&&ZI(i,w),M&&Gk(i,M),Hg(i.inputs,l.inputs),Hg(i.declaredInputs,l.declaredInputs),Hg(i.outputs,l.outputs),Fo(l)&&l.data.animation){var A=i.data;A.animation=(A.animation||[]).concat(l.data.animation)}}var O=l.features;if(O)for(var F=0;F=0;n--){var l=i[n];l.hostVars=s+=l.hostVars,l.hostAttrs=Vc(l.hostAttrs,r=Vc(r,l.hostAttrs))}}(n)}function Qd(i){return i===rd?{}:i===mr?[]:i}function ZI(i,s){var r=i.viewQuery;i.viewQuery=r?function(n,l){s(n,l),r(n,l)}:s}function Gk(i,s){var r=i.contentQueries;i.contentQueries=r?function(n,l,c){s(n,l,c),r(n,l,c)}:s}function Pa(i,s){var r=i.hostBindings;i.hostBindings=r?function(n,l){s(n,l),r(n,l)}:s}var Y0=null;function wo(){if(!Y0){var i=cr.Symbol;if(i&&i.iterator)Y0=i.iterator;else for(var s=Object.getOwnPropertyNames(Map.prototype),r=0;r1&&void 0!==arguments[1]?arguments[1]:It.Default,r=Oe();if(null===r)return ge(i,s);var n=di();return ct(n,r,ln(i),s)}function lf(){throw new Error("invalid")}function U(i,s,r){var n=Oe();return ea(n,Eu(),s)&&Xa(zn(),Wr(),n,i,s,n[11],r,!1),U}function $k(i,s,r,n,l){var p=l?"class":"style";sn(i,r,s.inputs[p],p,n)}function I(i,s,r,n){var l=Oe(),c=zn(),p=20+i,_=l[11],w=l[p]=Up(_,s,function wM(){return nn.lFrame.currentNamespace}()),M=c.firstCreatePass?function Qk(i,s,r,n,l,c,p){var _=s.consts,M=Kp(s,i,2,l,hs(_,c));return H0(s,r,M,hs(_,p)),null!==M.attrs&&zu(M,M.attrs,!1),null!==M.mergedAttrs&&zu(M,M.mergedAttrs,!0),null!==s.queries&&s.queries.elementStart(s,M),M}(p,c,l,0,s,r,n):c.data[p];ps(M,!0);var A=M.mergedAttrs;null!==A&&xa(_,w,A);var O=M.classes;null!==O&&A0(_,w,O);var F=M.styles;return null!==F&&hk(_,w,F),64!=(64&M.flags)&&k0(c,l,w,M),0===function Jg(){return nn.lFrame.elementDepthCount}()&&Ea(w,l),function mz(){nn.lFrame.elementDepthCount++}(),Nc(M)&&(Ud(c,l,M),wk(c,M,l)),null!==n&&Qp(l,M),I}function B(){var i=di();yM()?em():ps(i=i.parent,!1);var s=i;!function _z(){nn.lFrame.elementDepthCount--}();var r=zn();return r.firstCreatePass&&(Vo(r,i),Lo(i)&&r.queries.elementEnd(i)),null!=s.classesWithoutHost&&function im(i){return 0!=(16&i.flags)}(s)&&$k(r,s,Oe(),s.classesWithoutHost,!0),null!=s.stylesWithoutHost&&function wz(i){return 0!=(32&i.flags)}(s)&&$k(r,s,Oe(),s.stylesWithoutHost,!1),B}function Se(i,s,r,n){return I(i,s,r,n),B(),Se}function Rn(i,s,r){var n=Oe(),l=zn(),c=i+20,p=l.firstCreatePass?function pR(i,s,r,n,l){var c=s.consts,p=hs(c,n),_=Kp(s,i,8,"ng-container",p);return null!==p&&zu(_,p,!0),H0(s,r,_,hs(c,l)),null!==s.queries&&s.queries.elementStart(s,_),_}(c,l,n,s,r):l.data[c];ps(p,!0);var _=n[c]=n[11].createComment("");return k0(l,n,_,p),Ea(_,n),Nc(p)&&(Ud(l,n,p),wk(l,p,n)),null!=r&&Qp(n,p),Rn}function On(){var i=di(),s=zn();return yM()?em():ps(i=i.parent,!1),s.firstCreatePass&&(Vo(s,i),Lo(i)&&s.queries.elementEnd(i)),On}function $a(i,s,r){return Rn(i,s,r),On(),$a}function xe(){return Oe()}function Wm(i){return!!i&&"function"==typeof i.then}function Jk(i){return!!i&&"function"==typeof i.subscribe}var eD=Jk;function ne(i,s,r,n){var l=Oe(),c=zn(),p=di();return Ym(c,l,l[11],p,i,s,!!r,n),ne}function cv(i,s){var r=di(),n=Oe(),l=zn();return Ym(l,n,Xd(xp(l.data),r,n),r,i,s,!1),cv}function Ym(i,s,r,n,l,c,p,_){var w=Nc(n),A=i.firstCreatePass&&OI(i),O=s[8],F=Ik(s),Y=!0;if(3&n.type||_){var $=ds(n,s),oe=_?_($):$,le=F.length,fe=_?function(dp){return _(ri(dp[n.index]))}:n.index;if(ni(r)){var ae=null;if(!_&&w&&(ae=function vR(i,s,r,n){var l=i.cleanup;if(null!=l)for(var c=0;cw?_[w]:null}"string"==typeof p&&(c+=2)}return null}(i,s,l,n.index)),null!==ae)(ae.__ngLastListenerFn__||ae).__ngNextListenerFn__=c,ae.__ngLastListenerFn__=c,Y=!1;else{c=K0(n,s,O,c,!1);var De=r.listen(oe,l,c);F.push(c,De),A&&A.push(l,fe,le,le+1)}}else c=K0(n,s,O,c,!0),oe.addEventListener(l,c,p),F.push(c),A&&A.push(l,fe,le,p)}else c=K0(n,s,O,c,!1);var We,Ee=n.outputs;if(Y&&null!==Ee&&(We=Ee[l])){var bt=We.length;if(bt)for(var Vn=0;Vn0&&void 0!==arguments[0]?arguments[0]:1;return $b(i)}function K4(i,s){for(var r=null,n=function Yc(i){var s=i.attrs;if(null!=s){var r=s.indexOf(5);if(0==(1&r))return s[r+1]}return null}(i),l=0;l1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0,n=Oe(),l=zn(),c=Kp(l,20+i,16,null,r||null);null===c.projection&&(c.projection=s),em(),64!=(64&c.flags)&&Bu(l,n,c)}function Uu(i,s,r){return $0(i,"",s,"",r),Uu}function $0(i,s,r,n,l){var c=Oe(),p=eh(c,s,r,n);return p!==Kt&&Xa(zn(),Wr(),c,i,p,c[11],l,!1),$0}function iD(i,s,r,n,l){for(var c=i[r+1],p=null===s,_=n?dl(c):Ut(c),w=!1;0!==_&&(!1===w||p);){var A=i[_+1];aD(i[_],s)&&(w=!0,i[_+1]=n?ru(A):Am(A)),_=n?dl(A):Ut(A)}w&&(i[r+1]=n?Am(c):ru(c))}function aD(i,s){return null===i||null==s||(Array.isArray(i)?i[1]:i)===s||!(!Array.isArray(i)||"string"!=typeof s)&&Lp(i,s)>=0}var Si={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function wR(i){return i.substring(Si.key,Si.keyEnd)}function qm(i,s){var r=Si.textEnd;return r===s?-1:(s=Si.keyEnd=function J4(i,s,r){for(;s32;)s++;return s}(i,Si.key=s,r),fv(i,s,r))}function fv(i,s,r){for(;s=0;r=qm(s,r))yo(i,wR(s),!0)}function _l(i,s,r,n){var l=Oe(),c=zn(),p=Qs(2);c.firstUpdatePass&&Zm(c,i,p,n),s!==Kt&&ea(l,p,s)&&uD(c,c.data[Da()],l,l[11],i,l[p+1]=function DR(i,s){return null==i||("string"==typeof s?i+=s:"object"==typeof i&&(i=Zn(Ta(i)))),i}(s,r),n,p)}function nC(i,s){return s>=i.expandoStartIndex}function Zm(i,s,r,n){var l=i.data;if(null===l[r+1]){var c=l[Da()],p=nC(i,r);xR(c,n)&&null===s&&!p&&(s=!1),s=function rC(i,s,r,n){var l=xp(i),c=n?s.residualClasses:s.residualStyles;if(null===l)0===(n?s.classBindings:s.styleBindings)&&(r=hv(r=iC(null,i,s,r,n),s.attrs,n),c=null);else{var _=s.directiveStylingLast;if(-1===_||i[_]!==l)if(r=iC(l,i,s,r,n),null===c){var M=function Xm(i,s,r){var n=r?s.classBindings:s.styleBindings;if(0!==Ut(n))return i[dl(n)]}(i,s,n);void 0!==M&&Array.isArray(M)&&function MR(i,s,r,n){i[dl(r?s.classBindings:s.styleBindings)]=n}(i,s,n,M=hv(M=iC(null,i,s,M[1],n),s.attrs,n))}else c=function lD(i,s,r){for(var n=void 0,l=s.directiveEnd,c=1+s.directiveStylingLast;c0)&&(M=!0):A=r,l)if(0!==w){var Y=dl(i[_+1]);i[n+1]=Tm(Y,_),0!==Y&&(i[Y+1]=nr(i[Y+1],n)),i[_+1]=function Zp(i,s){return 131071&i|s<<17}(i[_+1],n)}else i[n+1]=Tm(_,0),0!==_&&(i[_+1]=nr(i[_+1],n)),_=n;else i[n+1]=Tm(w,0),0===_?_=n:i[w+1]=nr(i[w+1],n),w=n;M&&(i[n+1]=Am(i[n+1])),iD(i,A,n,!0),iD(i,A,n,!1),function CR(i,s,r,n,l){var c=l?i.residualClasses:i.residualStyles;null!=c&&"string"==typeof s&&Lp(c,s)>=0&&(r[n+1]=ru(r[n+1]))}(s,A,i,n,c),p=Tm(_,w),c?s.classBindings=p:s.styleBindings=p}(l,c,s,r,p,n)}}function iC(i,s,r,n,l){var c=null,p=r.directiveEnd,_=r.directiveStylingLast;for(-1===_?_=r.directiveStart:_++;_0;){var w=i[l],M=Array.isArray(w),A=M?w[1]:w,O=null===A,F=r[l+1];F===Kt&&(F=O?mr:void 0);var Y=O?NM(F,n):A===n?F:void 0;if(M&&!Km(Y)&&(Y=NM(w,n)),Km(Y)&&(_=Y,p))return _;var $=i[l+1];l=p?dl($):Ut($)}if(null!==s){var oe=c?s.residualClasses:s.residualStyles;null!=oe&&(_=NM(oe,n))}return _}function Km(i){return void 0!==i}function xR(i,s){return 0!=(i.flags&(s?16:32))}function K(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=Oe(),n=zn(),l=i+20,c=n.firstCreatePass?Kp(n,l,1,s,null):n.data[l],p=r[l]=Sm(r[11],s);k0(n,r,p,c),ps(c,!1)}function Ln(i){return Le("",i,""),Ln}function Le(i,s,r){var n=Oe(),l=eh(n,i,s,r);return l!==Kt&&au(n,Da(),l),Le}function th(i,s,r,n,l){var c=Oe(),p=ov(c,i,s,r,n,l);return p!==Kt&&au(c,Da(),p),th}function nh(i,s,r){!function Ms(i,s,r,n){var l=zn(),c=Qs(2);l.firstUpdatePass&&Zm(l,null,c,n);var p=Oe();if(r!==Kt&&ea(p,c,r)){var _=l.data[Da()];if(xR(_,n)&&!nC(l,c)){var M=n?_.classesWithoutHost:_.stylesWithoutHost;null!==M&&(r=Wl(M,r||"")),$k(l,_,p,r,n)}else!function iG(i,s,r,n,l,c,p,_){l===Kt&&(l=mr);for(var w=0,M=0,A=0>20;if(iv(i)||!i.multi){var $=new nl(M,l,z),oe=bC(w,s,l?O:O+Y,F);-1===oe?(e0(md(A,_),p,w),yv(p,i,s.length),s.push(w),A.directiveStart++,A.directiveEnd++,l&&(A.providerIndexes+=1048576),r.push($),_.push($)):(r[oe]=$,_[oe]=$)}else{var le=bC(w,s,O+Y,F),fe=bC(w,s,O,O+Y),we=fe>=0&&r[fe];if(l&&!we||!l&&!(le>=0&&r[le])){e0(md(A,_),p,w);var De=function r2(i,s,r,n,l){var c=new nl(i,r,z);return c.multi=[],c.index=s,c.componentProviders=0,xD(c,l,n&&!r),c}(l?RG:IG,r.length,l,n,M);!l&&we&&(r[fe].providerFactory=De),yv(p,i,s.length,0),s.push(w),A.directiveStart++,A.directiveEnd++,l&&(A.providerIndexes+=1048576),r.push(De),_.push(De)}else yv(p,i,le>-1?le:fe,xD(r[l?fe:le],M,!l&&n));!l&&n&&we&&r[fe].componentProviders++}}}function yv(i,s,r,n){var l=iv(s),c=function NI(i){return!!i.useClass}(s);if(l||c){var w=(c?ln(s.useClass):s).prototype.ngOnDestroy;if(w){var M=i.destroyHooks||(i.destroyHooks=[]);if(!l&&s.multi){var A=M.indexOf(r);-1===A?M.push(r,[n,w]):M[A+1].push(n,w)}else M.push(r,w)}}}function xD(i,s,r){return r&&i.componentProviders++,i.multi.push(s)-1}function bC(i,s,r,n){for(var l=r;l1&&void 0!==arguments[1]?arguments[1]:[];return function(r){r.providersResolver=function(n,l){return eo(n,l?l(i):i,s)}}}var LG=L(function i(){R(this,i)}),CC=L(function i(){R(this,i)}),bv=function(){function i(){R(this,i)}return L(i,[{key:"resolveComponentFactory",value:function(r){throw function d_(i){var s=Error("No component factory found for ".concat(Zn(i),". Did you add it to @NgModule.entryComponents?"));return s.ngComponent=i,s}(r)}}]),i}(),Wu=function(){var i=L(function s(){R(this,s)});return i.NULL=new bv,i}();function Cv(){return wv(di(),Oe())}function wv(i,s){return new tt(ds(i,s))}var tt=function(){var i=L(function s(r){R(this,s),this.nativeElement=r});return i.__NG_ELEMENT_ID__=Cv,i}();function NG(i){return i instanceof tt?i.nativeElement:i}var h_=L(function i(){R(this,i)}),Yu=function(){var i=L(function s(){R(this,s)});return i.__NG_ELEMENT_ID__=function(){return function VG(){var i=Oe(),r=Bo(di().index,i);return function BG(i){return i[11]}(go(r)?r:i)}()},i}(),HG=function(){var i=L(function s(){R(this,s)});return i.\u0275prov=Ue({token:i,providedIn:"root",factory:function(){return null}}),i}(),lh=L(function i(s){R(this,i),this.full=s,this.major=s.split(".")[0],this.minor=s.split(".")[1],this.patch=s.split(".").slice(2).join(".")}),wC=new lh("13.3.8"),AD={};function SC(i,s,r,n){for(var l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==r;){var c=s[r.index];if(null!==c&&n.push(ri(c)),us(c))for(var p=10;p-1&&(Yp(r,l),cm(n,l))}this._attachedToViewContainer=!1}qp(this._lView[1],this._lView)}},{key:"onDestroy",value:function(r){CI(this._lView[1],this._lView,null,r)}},{key:"markForCheck",value:function(){Hu(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){!function Pk(i,s,r){var n=s[10];n.begin&&n.begin();try{$c(i,s,i.template,r)}catch(l){throw II(s,l),l}finally{n.end&&n.end()}}(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new st(902,"");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function jp(i,s){jo(i,s,s[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(r){if(this._attachedToViewContainer)throw new st(902,"");this._appRef=r}}]),i}(),p_=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n))._view=n,l}return L(r,[{key:"detectChanges",value:function(){oi(this._view)}},{key:"checkNoChanges",value:function(){}},{key:"context",get:function(){return null}}]),r}(Dr),uh=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this)).ngModule=n,l}return L(r,[{key:"resolveComponentFactory",value:function(l){var c=Li(l);return new PD(c,this.ngModule)}}]),r}(Wu);function a2(i){var s=[];for(var r in i)i.hasOwnProperty(r)&&s.push({propName:i[r],templateName:r});return s}var PD=function(i){se(r,i);var s=ue(r);function r(n,l){var c;return R(this,r),(c=s.call(this)).componentDef=n,c.ngModule=l,c.componentType=n.type,c.selector=function pa(i){return i.map(c4).join(",")}(n.selectors),c.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],c.isBoundToModule=!!l,c}return L(r,[{key:"inputs",get:function(){return a2(this.componentDef.inputs)}},{key:"outputs",get:function(){return a2(this.componentDef.outputs)}},{key:"create",value:function(l,c,p,_){var ae,we,w=(_=_||this.ngModule)?function ED(i,s){return{get:function(n,l,c){var p=i.get(n,AD,c);return p!==AD||l===AD?p:s.get(n,l,c)}}}(l,_.injector):l,M=w.get(h_,qb),A=w.get(HG,null),O=M.createRenderer(null,this.componentDef),F=this.componentDef.selectors[0][0]||"div",Y=p?function bI(i,s,r){if(ni(i))return i.selectRootElement(s,r===Ya.ShadowDom);var l="string"==typeof s?i.querySelector(s):s;return l.textContent="",l}(O,p,this.componentDef.encapsulation):Up(M.createRenderer(null,this.componentDef),F,function zG(i){var s=i.toLowerCase();return"svg"===s?"svg":"math"===s?"math":null}(F)),$=this.componentDef.onPush?576:528,oe=function YI(i,s){return{components:[],scheduler:i||QO,clean:rv,playerHandler:s||null,flags:0}}(),le=Jp(0,null,null,1,0,null,null,null,null,null),fe=zd(null,le,oe,$,null,null,M,O,A,w);ka(fe);try{var De=function jI(i,s,r,n,l,c){var p=r[1];r[20]=i;var w=Kp(p,20,2,"#host",null),M=w.mergedAttrs=s.hostAttrs;null!==M&&(zu(w,M,!0),null!==i&&(xa(l,i,M),null!==w.classes&&A0(l,i,w.classes),null!==w.styles&&hk(l,i,w.styles)));var A=n.createRenderer(i,s),O=zd(r,Sk(s),null,s.onPush?64:16,r[20],w,n,A,c||null,null);return p.firstCreatePass&&(e0(md(w,r),p,s.type),z0(p,w),TI(w,r.length,1)),nv(r,O),r[20]=O}(Y,this.componentDef,fe,M,O);if(Y)if(p)xa(O,Y,["ng-version",wC.full]);else{var Ee=function Nd(i){for(var s=[],r=[],n=1,l=2;n0&&A0(O,Y,bt.join(" "))}if(we=ld(le,20),void 0!==c)for(var Vn=we.projection=[],bi=0;bi1&&void 0!==arguments[1]?arguments[1]:kr.THROW_IF_NOT_FOUND,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:It.Default;return l===kr||l===qu||l===Qi?this:this._r3Injector.get(l,c,p)}},{key:"destroy",value:function(){var l=this._r3Injector;!l.destroyed&&l.destroy(),this.destroyCbs.forEach(function(c){return c()}),this.destroyCbs=null}},{key:"onDestroy",value:function(l){this.destroyCbs.push(l)}}]),r}(qu),kC=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this)).moduleType=n,null!==Fi(n)&&function o2(i){var s=new Set;!function r(n){var l=Fi(n,!0),c=l.id;null!==c&&(function RD(i,s,r){if(s&&s!==r)throw new Error("Duplicate module registered for ".concat(i," - ").concat(Zn(s)," vs ").concat(Zn(s.name)))}(c,ch.get(c),n),ch.set(c,n));var M,w=qt(tu(l.imports));try{for(w.s();!(M=w.n()).done;){var A=M.value;s.has(A)||(s.add(A),r(A))}}catch(O){w.e(O)}finally{w.f()}}(i)}(n),l}return L(r,[{key:"create",value:function(l){return new u2(this.moduleType,l)}}]),r}(g_);function m_(i,s,r){var n=ha()+i,l=Oe();return l[n]===Kt?ou(l,n,r?s.call(r):s()):function Um(i,s){return i[s]}(l,n)}function xs(i,s,r,n){return p2(Oe(),ha(),i,s,r,n)}function DC(i,s,r,n,l){return to(Oe(),ha(),i,s,r,n,l)}function Sv(i,s){var r=i[s];return r===Kt?void 0:r}function p2(i,s,r,n,l,c){var p=s+r;return ea(i,p,l)?ou(i,p+1,c?n.call(c,l):n(l)):Sv(i,p+1)}function to(i,s,r,n,l,c,p){var _=s+r;return gl(i,_,l,c)?ou(i,_+2,p?n.call(p,l,c):n(l,c)):Sv(i,_+2)}function vf(i,s){var n,r=zn(),l=i+20;r.firstCreatePass?(n=function LD(i,s){if(s)for(var r=s.length-1;r>=0;r--){var n=s[r];if(i===n.name)return n}}(s,r.pipeRegistry),r.data[l]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(l,n.onDestroy)):n=r.data[l];var c=n.factory||(n.factory=fs(n.type)),p=Mu(z);try{var _=Ap(!1),w=c();return Ap(_),function JI(i,s,r,n){r>=i.data.length&&(i.data[r]=null,i.blueprint[r]=null),s[r]=n}(r,Oe(),l,w),w}finally{Mu(p)}}function fh(i,s,r){var n=i+20,l=Oe(),c=Tu(l,n);return y_(l,n)?p2(l,ha(),s,c.transform,r,c):c.transform(r)}function TC(i,s,r,n){var l=i+20,c=Oe(),p=Tu(c,l);return y_(c,l)?to(c,ha(),s,p.transform,r,n,p):p.transform(r,n)}function y_(i,s){return i[1].data[s].pure}var YG=function(i){se(r,i);var s=ue(r);function r(){var n,l=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return R(this,r),(n=s.call(this)).__isAsync=l,n}return L(r,[{key:"emit",value:function(l){Ye(qe(r.prototype),"next",this).call(this,l)}},{key:"subscribe",value:function(l,c,p){var _,w,M,A=l,O=c||function(){return null},F=p;if(l&&"object"==typeof l){var Y=l;A=null===(_=Y.next)||void 0===_?void 0:_.bind(Y),O=null===(w=Y.error)||void 0===w?void 0:w.bind(Y),F=null===(M=Y.complete)||void 0===M?void 0:M.bind(Y)}this.__isAsync&&(O=AC(O),A&&(A=AC(A)),F&&(F=AC(F)));var $=Ye(qe(r.prototype),"subscribe",this).call(this,{next:A,error:O,complete:F});return l instanceof Te&&l.add($),$}}]),r}(Xe);function AC(i){return function(s){setTimeout(i,void 0,s)}}var ye=YG;function qG(){return this._results[wo()]()}var no=function(){function i(){var s=arguments.length>0&&void 0!==arguments[0]&&arguments[0];R(this,i),this._emitDistinctChangesOnly=s,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var r=wo(),n=i.prototype;n[r]||(n[r]=qG)}return L(i,[{key:"changes",get:function(){return this._changes||(this._changes=new ye)}},{key:"get",value:function(r){return this._results[r]}},{key:"map",value:function(r){return this._results.map(r)}},{key:"filter",value:function(r){return this._results.filter(r)}},{key:"find",value:function(r){return this._results.find(r)}},{key:"reduce",value:function(r,n){return this._results.reduce(r,n)}},{key:"forEach",value:function(r){this._results.forEach(r)}},{key:"some",value:function(r){return this._results.some(r)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(r,n){var l=this;l.dirty=!1;var c=zo(r);(this._changesDetected=!function RM(i,s,r){if(i.length!==s.length)return!1;for(var n=0;n0;)this.remove(this.length-1)}},{key:"get",value:function(l){var c=y2(this._lContainer);return null!==c&&c[l]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(l,c,p){var _=l.createEmbeddedView(c||{});return this.insert(_,p),_}},{key:"createComponent",value:function(l,c,p,_,w){var A,M=l&&!function bd(i){return"function"==typeof i}(l);if(M)A=c;else{var O=c||{};A=O.index,p=O.injector,_=O.projectableNodes,w=O.ngModuleRef}var F=M?l:new PD(Li(l)),Y=p||this.parentInjector;if(!w&&null==F.ngModule){var oe=(M?Y:this.parentInjector).get(qu,null);oe&&(w=oe)}var le=F.create(Y,_,void 0,w);return this.insert(le.hostView,A),le}},{key:"insert",value:function(l,c){var p=l._lView,_=p[1];if(function uO(i){return us(i[3])}(p)){var w=this.indexOf(l);if(-1!==w)this.detach(w);else{var M=p[3],A=new _2(M,M[6],M[3]);A.detach(A.indexOf(l))}}var O=this._adjustIndex(c),F=this._lContainer;!function Fd(i,s,r,n){var l=10+n,c=r.length;n>0&&(r[l-1][4]=s),n1&&void 0!==arguments[1]?arguments[1]:0;return null==l?this.length+c:l}}]),r}(wr);function y2(i){return i[8]}function FD(i){return i[8]||(i[8]=[])}function b2(i,s){var r,n=s[i.index];if(us(n))r=n;else{var l;if(8&i.type)l=ri(n);else{var c=s[11];l=c.createComment("");var p=ds(i,s);Wc(c,M0(c,p),l,function iI(i,s){return ni(i)?i.nextSibling(s):s.nextSibling}(c,p),!1)}s[i.index]=r=AI(n,s,l,i),nv(s,r)}return new _2(r,i,s)}var S2=function(){function i(s){R(this,i),this.queryList=s,this.matches=null}return L(i,[{key:"clone",value:function(){return new i(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),i}(),JG=function(){function i(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];R(this,i),this.queries=s}return L(i,[{key:"createEmbeddedView",value:function(r){var n=r.queries;if(null!==n){for(var l=null!==r.contentQueries?r.contentQueries[0]:n.length,c=[],p=0;p2&&void 0!==arguments[2]?arguments[2]:null;R(this,i),this.predicate=s,this.flags=r,this.read=n}),e8=function(){function i(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];R(this,i),this.queries=s}return L(i,[{key:"elementStart",value:function(r,n){for(var l=0;l1&&void 0!==arguments[1]?arguments[1]:-1;R(this,i),this.metadata=s,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=r}return L(i,[{key:"elementStart",value:function(r,n){this.isApplyingToNode(n)&&this.matchTNode(r,n)}},{key:"elementEnd",value:function(r){this._declarationNodeIndex===r.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(r,n){this.elementStart(r,n)}},{key:"embeddedTView",value:function(r,n){return this.isApplyingToNode(r)?(this.crossesNgTemplate=!0,this.addMatch(-r.index,n),new i(this.metadata)):null}},{key:"isApplyingToNode",value:function(r){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var n=this._declarationNodeIndex,l=r.parent;null!==l&&8&l.type&&l.index!==n;)l=l.parent;return n===(null!==l?l.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(r,n){var l=this.metadata.predicate;if(Array.isArray(l))for(var c=0;c0)n.push(p[_/2]);else{for(var M=c[_+1],A=s[-w],O=10;O0&&(_=setTimeout(function(){p._callbacks=p._callbacks.filter(function(w){return w.timeoutId!==_}),n(p._didWork,p.getPendingTasks())},l)),this._callbacks.push({doneCb:n,timeoutId:_,updateCb:c})}},{key:"whenStable",value:function(n,l,c){if(c&&!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(n,l,c),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(n,l,c){return[]}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(Pt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),O_=function(){var i=function(){function s(){R(this,s),this._applications=new Map,Tv.addToWindow(this)}return L(s,[{key:"registerApplication",value:function(n,l){this._applications.set(n,l)}},{key:"unregisterApplication",value:function(n){this._applications.delete(n)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(n){return this._applications.get(n)||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(n){var l=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Tv.findTestabilityInTree(this,n,l)}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"platform"}),i}(),I_=function(){function i(){R(this,i)}return L(i,[{key:"addToWindow",value:function(r){}},{key:"findTestabilityInTree",value:function(r,n,l){return null}}]),i}(),Tv=new I_,Ku=null,G2=new Ae("AllowMultipleToken"),ga=new Ae("PlatformOnDestroy");function b8(i,s,r){var n=new kC(r);return Promise.resolve(n)}var U2=L(function i(s,r){R(this,i),this.name=s,this.token=r});function w8(i){if(Ku&&!Ku.get(G2,!1))throw new st(400,"");Ku=i;var r=i.get(W2),n=i.get(Nt,null);return n&&n.forEach(function(l){return l()}),r}function j2(i,s){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n="Platform: ".concat(s),l=new Ae(n);return function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],p=HC();if(!p||p.injector.get(G2,!1)){var _=[].concat(yt(r),yt(c),[{provide:l,useValue:!0}]);i?i(_):w8(M8(_,n))}return S8()}}function S8(i){var s=HC();if(!s)throw new st(401,"");return s}function M8(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=arguments.length>1?arguments[1]:void 0;return kr.create({name:s,providers:[{provide:Cs,useValue:"platform"},{provide:ga,useValue:function(){return Ku=null}}].concat(yt(i))})}function HC(){var i;return null!==(i=null==Ku?void 0:Ku.get(W2))&&void 0!==i?i:null}var W2=function(){var i=function(){function s(r){R(this,s),this._injector=r,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return L(s,[{key:"bootstrapModuleFactory",value:function(n,l){var c=this,M=function $u(i,s){return"noop"===i?new z2:("zone.js"===i?void 0:i)||new Pt({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==s?void 0:s.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==s?void 0:s.ngZoneRunCoalescing)})}(l?l.ngZone:void 0,{ngZoneEventCoalescing:l&&l.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:l&&l.ngZoneRunCoalescing||!1}),A=[{provide:Pt,useValue:M}];return M.run(function(){var O=kr.create({providers:A,parent:c.injector,name:n.moduleType.name}),F=n.create(O),Y=F.injector.get(Vp,null);if(!Y)throw new st(402,"");return M.runOutsideAngular(function(){var oe=M.onError.subscribe({next:function(fe){Y.handleError(fe)}});F.onDestroy(function(){ox(c._modules,F),oe.unsubscribe()})}),function ax(i,s,r){try{var n=r();return Wm(n)?n.catch(function(l){throw s.runOutsideAngular(function(){return i.handleError(l)}),l}):n}catch(l){throw s.runOutsideAngular(function(){return i.handleError(l)}),l}}(Y,M,function(){var oe=F.injector.get(JD);return oe.runInitializers(),oe.donePromise.then(function(){return function gG(i){po(i,"Expected localeId to be defined"),"string"==typeof i&&i.toLowerCase().replace(/_/g,"-")}(F.injector.get(Xu,ju)||ju),c._moduleDoBootstrap(F),F})})})}},{key:"bootstrapModule",value:function(n){var l=this,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],p=Y2({},c);return b8(0,0,n).then(function(_){return l.bootstrapModuleFactory(_,p)})}},{key:"_moduleDoBootstrap",value:function(n){var l=n.injector.get(F_);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(function(p){return l.bootstrap(p)});else{if(!n.instance.ngDoBootstrap)throw new st(403,"");n.instance.ngDoBootstrap(l)}this._modules.push(n)}},{key:"onDestroy",value:function(n){this._destroyListeners.push(n)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new st(404,"");this._modules.slice().forEach(function(c){return c.destroy()}),this._destroyListeners.forEach(function(c){return c()});var l=this._injector.get(ga,null);null==l||l(),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(kr))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"platform"}),i}();function Y2(i,s){return Array.isArray(s)?s.reduce(Y2,i):Object.assign(Object.assign({},i),s)}var F_=function(){var i=function(){function s(r,n,l,c){var p=this;R(this,s),this._zone=r,this._injector=n,this._exceptionHandler=l,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){p._zone.run(function(){p.tick()})}});var _=new Jn(function(M){p._stable=p._zone.isStable&&!p._zone.hasPendingMacrotasks&&!p._zone.hasPendingMicrotasks,p._zone.runOutsideAngular(function(){M.next(p._stable),M.complete()})}),w=new Jn(function(M){var A;p._zone.runOutsideAngular(function(){A=p._zone.onStable.subscribe(function(){Pt.assertNotInAngularZone(),BC(function(){!p._stable&&!p._zone.hasPendingMacrotasks&&!p._zone.hasPendingMicrotasks&&(p._stable=!0,M.next(!0))})})});var O=p._zone.onUnstable.subscribe(function(){Pt.assertInAngularZone(),p._stable&&(p._stable=!1,p._zone.runOutsideAngular(function(){M.next(!1)}))});return function(){A.unsubscribe(),O.unsubscribe()}});this.isStable=Rr(_,w.pipe(function wa(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=i.connector,r=void 0===s?function(){return new Xe}:s,n=i.resetOnError,l=void 0===n||n,c=i.resetOnComplete,p=void 0===c||c,_=i.resetOnRefCountZero,w=void 0===_||_;return function(M){var A=null,O=null,F=null,Y=0,$=!1,oe=!1,le=function(){null==O||O.unsubscribe(),O=null},fe=function(){le(),A=F=null,$=oe=!1},ae=function(){var De=A;fe(),null==De||De.unsubscribe()};return gr(function(we,De){Y++,!oe&&!$&&le();var Ee=F=null!=F?F:r();De.add(function(){0==--Y&&!oe&&!$&&(O=ss(ae,w))}),Ee.subscribe(De),A||(A=new Pg({next:function(bt){return Ee.next(bt)},error:function(bt){oe=!0,le(),O=ss(fe,l,bt),Ee.error(bt)},complete:function(){$=!0,le(),O=ss(fe,p),Ee.complete()}}),Wi(we).subscribe(A))})(M)}}()))}return L(s,[{key:"bootstrap",value:function(n,l){var _,c=this;if(!this._initStatus.done)throw new st(405,"");_=n instanceof CC?n:this._injector.get(Wu).resolveComponentFactory(n),this.componentTypes.push(_.componentType);var M=function C8(i){return i.isBoundToModule}(_)?void 0:this._injector.get(qu),O=_.create(kr.NULL,[],l||_.selector,M),F=O.location.nativeElement,Y=O.injector.get(xv,null),$=Y&&O.injector.get(O_);return Y&&$&&$.registerApplication(F,Y),O.onDestroy(function(){c.detachView(O.hostView),ox(c.components,O),$&&$.unregisterApplication(F)}),this._loadComponent(O),O}},{key:"tick",value:function(){var n=this;if(this._runningTick)throw new st(101,"");try{this._runningTick=!0;var p,c=qt(this._views);try{for(c.s();!(p=c.n()).done;)p.value.detectChanges()}catch(O){c.e(O)}finally{c.f()}}catch(O){this._zone.runOutsideAngular(function(){return n._exceptionHandler.handleError(O)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(n){var l=n;this._views.push(l),l.attachToAppRef(this)}},{key:"detachView",value:function(n){var l=n;ox(this._views,l),l.detachFromAppRef()}},{key:"_loadComponent",value:function(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(tx,[]).concat(this._bootstrapListeners).forEach(function(c){return c(n)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(n){return n.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(Pt),ge(kr),ge(Vp),ge(JD))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}();function ox(i,s){var r=i.indexOf(s);r>-1&&i.splice(r,1)}var hn=function(){var i=L(function s(){R(this,s)});return i.__NG_ELEMENT_ID__=lx,i}();function lx(i){return function x8(i,s,r){if(Hb(i)&&!r){var n=Bo(i.index,s);return new Dr(n,n)}return 47&i.type?new Dr(s[16],s):null}(di(),Oe(),16==(16&i))}var hx=function(){function i(){R(this,i)}return L(i,[{key:"supports",value:function(r){return Gm(r)}},{key:"create",value:function(r){return new X2(r)}}]),i}(),O8=function(s,r){return r},X2=function(){function i(s){R(this,i),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=s||O8}return L(i,[{key:"forEachItem",value:function(r){var n;for(n=this._itHead;null!==n;n=n._next)r(n)}},{key:"forEachOperation",value:function(r){for(var n=this._itHead,l=this._removalsHead,c=0,p=null;n||l;){var _=!l||n&&n.currentIndex0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(c)}},{key:"getState",value:function(){return this._history.state}}]),n}($o);return i.\u0275fac=function(r){return new(r||i)(ge(Jt))},i.\u0275prov=Ue({token:i,factory:function(){return function V8(){return new Ov(ge(Jt))}()},providedIn:"platform"}),i}();function ZC(){return!!window.history.pushState}function _x(i,s){if(0==i.length)return s;if(0==s.length)return i;var r=0;return i.endsWith("/")&&r++,s.startsWith("/")&&r++,2==r?i+s.substring(1):1==r?i+s:i+"/"+s}function XC(i){var s=i.match(/#|\?|$/),r=s&&s.index||i.length;return i.slice(0,r-("/"===i[r-1]?1:0))+i.slice(r)}function du(i){return i&&"?"!==i[0]?"?"+i:i}var tc=function(){var i=function(){function s(){R(this,s)}return L(s,[{key:"historyGo",value:function(n){throw new Error("Not implemented")}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=Ue({token:i,factory:function(){return function H8(i){var s=ge(Jt).location;return new aL(ge($o),s&&s.origin||"")}()},providedIn:"root"}),i}(),wf=new Ae("appBaseHref"),aL=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c){var p;if(R(this,n),(p=r.call(this))._platformLocation=l,p._removeListenerFns=[],null==c&&(c=p._platformLocation.getBaseHrefFromDOM()),null==c)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 p._baseHref=c,p}return L(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(c){this._removeListenerFns.push(this._platformLocation.onPopState(c),this._platformLocation.onHashChange(c))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(c){return _x(this._baseHref,c)}},{key:"path",value:function(){var c=arguments.length>0&&void 0!==arguments[0]&&arguments[0],p=this._platformLocation.pathname+du(this._platformLocation.search),_=this._platformLocation.hash;return _&&c?"".concat(p).concat(_):p}},{key:"pushState",value:function(c,p,_,w){var M=this.prepareExternalUrl(_+du(w));this._platformLocation.pushState(c,p,M)}},{key:"replaceState",value:function(c,p,_,w){var M=this.prepareExternalUrl(_+du(w));this._platformLocation.replaceState(c,p,M)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var p,_,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(_=(p=this._platformLocation).historyGo)||void 0===_||_.call(p,c)}}]),n}(tc);return i.\u0275fac=function(r){return new(r||i)(ge($o),ge(wf,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),z8=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c){var p;return R(this,n),(p=r.call(this))._platformLocation=l,p._baseHref="",p._removeListenerFns=[],null!=c&&(p._baseHref=c),p}return L(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(c){this._removeListenerFns.push(this._platformLocation.onPopState(c),this._platformLocation.onHashChange(c))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var p=this._platformLocation.hash;return null==p&&(p="#"),p.length>0?p.substring(1):p}},{key:"prepareExternalUrl",value:function(c){var p=_x(this._baseHref,c);return p.length>0?"#"+p:p}},{key:"pushState",value:function(c,p,_,w){var M=this.prepareExternalUrl(_+du(w));0==M.length&&(M=this._platformLocation.pathname),this._platformLocation.pushState(c,p,M)}},{key:"replaceState",value:function(c,p,_,w){var M=this.prepareExternalUrl(_+du(w));0==M.length&&(M=this._platformLocation.pathname),this._platformLocation.replaceState(c,p,M)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var p,_,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(_=(p=this._platformLocation).historyGo)||void 0===_||_.call(p,c)}}]),n}(tc);return i.\u0275fac=function(r){return new(r||i)(ge($o),ge(wf,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),z_=function(){var i=function(){function s(r,n){var l=this;R(this,s),this._subject=new ye,this._urlChangeListeners=[],this._platformStrategy=r;var c=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=XC(oL(c)),this._platformStrategy.onPopState(function(p){l._subject.emit({url:l.path(!0),pop:!0,state:p.state,type:p.type})})}return L(s,[{key:"path",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(n))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(n+du(l))}},{key:"normalize",value:function(n){return s.stripTrailingSlash(function U8(i,s){return i&&s.startsWith(i)?s.substring(i.length):s}(this._baseHref,oL(n)))}},{key:"prepareExternalUrl",value:function(n){return n&&"/"!==n[0]&&(n="/"+n),this._platformStrategy.prepareExternalUrl(n)}},{key:"go",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(c,"",n,l),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+du(l)),c)}},{key:"replaceState",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(c,"",n,l),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+du(l)),c)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var l,c,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(c=(l=this._platformStrategy).historyGo)||void 0===c||c.call(l,n)}},{key:"onUrlChange",value:function(n){var l=this;this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(c){l._notifyUrlChangeListeners(c.url,c.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",l=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(c){return c(n,l)})}},{key:"subscribe",value:function(n,l,c){return this._subject.subscribe({next:n,error:l,complete:c})}}]),s}();return i.normalizeQueryParams=du,i.joinWithSlash=_x,i.stripTrailingSlash=XC,i.\u0275fac=function(r){return new(r||i)(ge(tc),ge($o))},i.\u0275prov=Ue({token:i,factory:function(){return function G8(){return new z_(ge(tc),ge($o))}()},providedIn:"root"}),i}();function oL(i){return i.replace(/\/index.html$/,"")}function CL(i,s){s=encodeURIComponent(s);var n,r=qt(i.split(";"));try{for(r.s();!(n=r.n()).done;){var l=n.value,c=l.indexOf("="),_=Pr(-1==c?[l,""]:[l.slice(0,c),l.slice(c+1)],2),M=_[1];if(_[0].trim()===s)return decodeURIComponent(M)}}catch(A){r.e(A)}finally{r.f()}return null}var As=function(){var i=function(){function s(r,n,l,c){R(this,s),this._iterableDiffers=r,this._keyValueDiffers=n,this._ngEl=l,this._renderer=c,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return L(s,[{key:"klass",set:function(n){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof n?n.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(n){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof n?n.split(/\s+/):n,this._rawClass&&(Gm(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 n=this._iterableDiffer.diff(this._rawClass);n&&this._applyIterableChanges(n)}else if(this._keyValueDiffer){var l=this._keyValueDiffer.diff(this._rawClass);l&&this._applyKeyValueChanges(l)}}},{key:"_applyKeyValueChanges",value:function(n){var l=this;n.forEachAddedItem(function(c){return l._toggleClass(c.key,c.currentValue)}),n.forEachChangedItem(function(c){return l._toggleClass(c.key,c.currentValue)}),n.forEachRemovedItem(function(c){c.previousValue&&l._toggleClass(c.key,!1)})}},{key:"_applyIterableChanges",value:function(n){var l=this;n.forEachAddedItem(function(c){if("string"!=typeof c.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(Zn(c.item)));l._toggleClass(c.item,!0)}),n.forEachRemovedItem(function(c){return l._toggleClass(c.item,!1)})}},{key:"_applyClasses",value:function(n){var l=this;n&&(Array.isArray(n)||n instanceof Set?n.forEach(function(c){return l._toggleClass(c,!0)}):Object.keys(n).forEach(function(c){return l._toggleClass(c,!!n[c])}))}},{key:"_removeClasses",value:function(n){var l=this;n&&(Array.isArray(n)||n instanceof Set?n.forEach(function(c){return l._toggleClass(c,!1)}):Object.keys(n).forEach(function(c){return l._toggleClass(c,!1)}))}},{key:"_toggleClass",value:function(n,l){var c=this;(n=n.trim())&&n.split(/\s+/g).forEach(function(p){l?c._renderer.addClass(c._ngEl.nativeElement,p):c._renderer.removeClass(c._ngEl.nativeElement,p)})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(ec),z(Pv),z(tt),z(Yu))},i.\u0275dir=be({type:i,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),i}(),oU=function(){function i(s,r,n,l){R(this,i),this.$implicit=s,this.ngForOf=r,this.index=n,this.count=l}return L(i,[{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}}]),i}(),ir=function(){var i=function(){function s(r,n,l){R(this,s),this._viewContainer=r,this._template=n,this._differs=l,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return L(s,[{key:"ngForOf",set:function(n){this._ngForOf=n,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(n){this._trackByFn=n}},{key:"ngForTemplate",set:function(n){n&&(this._template=n)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){var l=this._differ.diff(this._ngForOf);l&&this._applyChanges(l)}}},{key:"_applyChanges",value:function(n){var l=this,c=this._viewContainer;n.forEachOperation(function(A,O,F){if(null==A.previousIndex)c.createEmbeddedView(l._template,new oU(A.item,l._ngForOf,-1,-1),null===F?void 0:F);else if(null==F)c.remove(null===O?void 0:O);else if(null!==O){var Y=c.get(O);c.move(Y,F),wL(Y,A)}});for(var p=0,_=c.length;p<_;p++){var M=c.get(p).context;M.index=p,M.count=_,M.ngForOf=this._ngForOf}n.forEachIdentityChange(function(A){wL(c.get(A.currentIndex),A)})}}],[{key:"ngTemplateContextGuard",value:function(n,l){return!0}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(wr),z(hr),z(ec))},i.\u0275dir=be({type:i,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),i}();function wL(i,s){i.context.$implicit=s.item}var en=function(){var i=function(){function s(r,n){R(this,s),this._viewContainer=r,this._context=new ML,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}return L(s,[{key:"ngIf",set:function(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}},{key:"ngIfThen",set:function(n){Mf("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(n){Mf("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}},{key:"_updateView",value:function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}}],[{key:"ngTemplateContextGuard",value:function(n,l){return!0}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(wr),z(hr))},i.\u0275dir=be({type:i,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),i}(),ML=L(function i(){R(this,i),this.$implicit=null,this.ngIf=null});function Mf(i,s){if(s&&!s.createEmbeddedView)throw new Error("".concat(i," must be a TemplateRef, but received '").concat(Zn(s),"'."))}var Rx=function(){function i(s,r){R(this,i),this._viewContainerRef=s,this._templateRef=r,this._created=!1}return L(i,[{key:"create",value:function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}},{key:"destroy",value:function(){this._created=!1,this._viewContainerRef.clear()}},{key:"enforceState",value:function(r){r&&!this._created?this.create():!r&&this._created&&this.destroy()}}]),i}(),rc=function(){var i=function(){function s(){R(this,s),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return L(s,[{key:"ngSwitch",set:function(n){this._ngSwitch=n,0===this._caseCount&&this._updateDefaultCases(!0)}},{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(n){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(n)}},{key:"_matchCase",value:function(n){var l=n==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||l,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),l}},{key:"_updateDefaultCases",value:function(n){if(this._defaultViews&&n!==this._defaultUsed){this._defaultUsed=n;for(var l=0;l1&&void 0!==arguments[1]?arguments[1]:EL;if(!n||!(n instanceof Map)&&"object"!=typeof n)return null;this.differ||(this.differ=this.differs.find(n).create());var p=this.differ.diff(n),_=c!==this.compareFn;return p&&(this.keyValues=[],p.forEachItem(function(w){l.keyValues.push(gU(w.key,w.currentValue))})),(p||_)&&(this.keyValues.sort(c),this.compareFn=c),this.keyValues}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Pv,16))},i.\u0275pipe=qi({name:"keyvalue",type:i,pure:!1}),i}();function EL(i,s){var r=i.key,n=s.key;if(r===n)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(null===r)return 1;if(null===n)return-1;if("string"==typeof r&&"string"==typeof n)return r1&&void 0!==arguments[1])||arguments[1],p=r.findTestabilityInTree(l,c);if(null==p)throw new Error("Could not find testability for element.");return p},cr.getAllAngularTestabilities=function(){return r.getAllTestabilities()},cr.getAllAngularRootElements=function(){return r.getAllRootElements()},cr.frameworkStabilizers||(cr.frameworkStabilizers=[]),cr.frameworkStabilizers.push(function(c){var p=cr.getAllAngularTestabilities(),_=p.length,w=!1,M=function(O){w=w||O,0==--_&&c(w)};p.forEach(function(A){A.whenStable(M)})})}},{key:"findTestabilityInTree",value:function(r,n,l){if(null==n)return null;var c=r.getTestability(n);return null!=c?c:l?fu().isShadowRoot(n)?this.findTestabilityInTree(r,n.host,!0):this.findTestabilityInTree(r,n.parentElement,!0):null}}],[{key:"init",value:function(){!function ix(i){Tv=i}(new i)}}]),i}(),TX=function(){var i=function(){function s(){R(this,s)}return L(s,[{key:"build",value:function(){return new XMLHttpRequest}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),Hx=new Ae("EventManagerPlugins"),q_=function(){var i=function(){function s(r,n){var l=this;R(this,s),this._zone=n,this._eventNameToPlugin=new Map,r.forEach(function(c){return c.manager=l}),this._plugins=r.slice().reverse()}return L(s,[{key:"addEventListener",value:function(n,l,c){return this._findPluginFor(l).addEventListener(n,l,c)}},{key:"addGlobalEventListener",value:function(n,l,c){return this._findPluginFor(l).addGlobalEventListener(n,l,c)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(n){var l=this._eventNameToPlugin.get(n);if(l)return l;for(var c=this._plugins,p=0;p-1&&(p.splice(F,1),M+=O+".")}),M+=w,0!=p.length||0===w.length)return null;var A={};return A.domEventName=_,A.fullKey=M,A}},{key:"getEventFullKey",value:function(c){var p="",_=function TU(i){var s=i.key;if(null==s){if(null==(s=i.keyIdentifier))return"Unidentified";s.startsWith("U+")&&(s=String.fromCharCode(parseInt(s.substring(2),16)),3===i.location&&hw.hasOwnProperty(s)&&(s=hw[s]))}return X_[s]||s}(c);return" "===(_=_.toLowerCase())?_="space":"."===_&&(_="dot"),UL.forEach(function(w){w!=_&&(0,jL[w])(c)&&(p+=w+".")}),p+=_}},{key:"eventCallback",value:function(c,p,_){return function(w){n.getEventFullKey(w)===c&&_.runGuarded(function(){return p(w)})}}},{key:"_normalizeKey",value:function(c){return"esc"===c?"escape":c}}]),n}(BL);return i.\u0275fac=function(r){return new(r||i)(ge(Jt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),qL=[{provide:yf,useValue:uw},{provide:Nt,useValue:function K_(){yh.makeCurrent(),xX.init()},multi:!0},{provide:Jt,useFactory:function AU(){return function Wb(i){pM=i}(document),document},deps:[]}],EU=j2(rL,"browser",qL),PU=[{provide:Cs,useValue:"root"},{provide:Vp,useFactory:function YL(){return new Vp},deps:[]},{provide:Hx,useClass:GL,multi:!0,deps:[Jt,Pt,yf]},{provide:Hx,useClass:WL,multi:!0,deps:[Jt]},{provide:Z_,useClass:Z_,deps:[q_,bh,Dv]},{provide:h_,useExisting:Z_},{provide:VL,useExisting:bh},{provide:bh,useClass:bh,deps:[Jt]},{provide:xv,useClass:xv,deps:[Pt]},{provide:q_,useClass:q_,deps:[Hx,Pt]},{provide:cw,useClass:TX,deps:[]}],ic=function(){var i=function(){function s(r){if(R(this,s),r)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 L(s,null,[{key:"withServerTransition",value:function(n){return{ngModule:s,providers:[{provide:Dv,useValue:n.appId},{provide:SU,useExisting:Dv},DX]}}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(i,12))},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({providers:PU,imports:[io,V_]}),i}();"undefined"!=typeof window&&window;var Yx=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=Ue({token:i,factory:function(r){return r?new(r||i):ge(qx)},providedIn:"root"}),i}(),qx=function(){var i=function(s){se(n,s);var r=ue(n);function n(l){var c;return R(this,n),(c=r.call(this))._doc=l,c}return L(n,[{key:"sanitize",value:function(c,p){if(null==p)return null;switch(c){case br.NONE:return p;case br.HTML:return sl(p,"HTML")?Ta(p):v0(this._doc,String(p)).toString();case br.STYLE:return sl(p,"Style")?Ta(p):p;case br.SCRIPT:if(sl(p,"Script"))return Ta(p);throw new Error("unsafe value used in a script context");case br.URL:return HO(p),sl(p,"URL")?Ta(p):Hc(String(p));case br.RESOURCE_URL:if(sl(p,"ResourceURL"))return Ta(p);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(c," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(c){return function Vz(i){return new Nz(i)}(c)}},{key:"bypassSecurityTrustStyle",value:function(c){return function YM(i){return new Bz(i)}(c)}},{key:"bypassSecurityTrustScript",value:function(c){return function qM(i){return new VO(i)}(c)}},{key:"bypassSecurityTrustUrl",value:function(c){return function Hz(i){return new WM(i)}(c)}},{key:"bypassSecurityTrustResourceUrl",value:function(c){return function _s(i){return new Td(i)}(c)}}]),n}(Yx);return i.\u0275fac=function(r){return new(r||i)(ge(Jt))},i.\u0275prov=Ue({token:i,factory:function(r){var n;return n=r?new r:function UU(i){return new qx(i.get(Jt))}(ge(kr)),n},providedIn:"root"}),i}();function dt(){for(var i=arguments.length,s=new Array(i),r=0;r0){var c=n.slice(0,l),p=c.toLowerCase(),_=n.slice(l+1).trim();r.maybeSetNormalizedName(c,p),r.headers.has(p)?r.headers.get(p).push(_):r.headers.set(p,[_])}})}:function(){r.headers=new Map,Object.keys(s).forEach(function(n){var l=s[n],c=n.toLowerCase();"string"==typeof l&&(l=[l]),l.length>0&&(r.headers.set(c,l),r.maybeSetNormalizedName(n,c))})}:this.headers=new Map}return L(i,[{key:"has",value:function(r){return this.init(),this.headers.has(r.toLowerCase())}},{key:"get",value:function(r){this.init();var n=this.headers.get(r.toLowerCase());return n&&n.length>0?n[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(r){return this.init(),this.headers.get(r.toLowerCase())||null}},{key:"append",value:function(r,n){return this.clone({name:r,value:n,op:"a"})}},{key:"set",value:function(r,n){return this.clone({name:r,value:n,op:"s"})}},{key:"delete",value:function(r,n){return this.clone({name:r,value:n,op:"d"})}},{key:"maybeSetNormalizedName",value:function(r,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,r)}},{key:"init",value:function(){var r=this;this.lazyInit&&(this.lazyInit instanceof i?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(n){return r.applyUpdate(n)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(r){var n=this;r.init(),Array.from(r.headers.keys()).forEach(function(l){n.headers.set(l,r.headers.get(l)),n.normalizedNames.set(l,r.normalizedNames.get(l))})}},{key:"clone",value:function(r){var n=new i;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof i?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([r]),n}},{key:"applyUpdate",value:function(r){var n=r.name.toLowerCase();switch(r.op){case"a":case"s":var l=r.value;if("string"==typeof l&&(l=[l]),0===l.length)return;this.maybeSetNormalizedName(r.name,n);var c=("a"===r.op?this.headers.get(n):void 0)||[];c.push.apply(c,yt(l)),this.headers.set(n,c);break;case"d":var p=r.value;if(p){var _=this.headers.get(n);if(!_)return;0===(_=_.filter(function(w){return-1===p.indexOf(w)})).length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,_)}else this.headers.delete(n),this.normalizedNames.delete(n)}}},{key:"forEach",value:function(r){var n=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(l){return r(n.normalizedNames.get(l),n.headers.get(l))})}}]),i}(),vw=function(){function i(){R(this,i)}return L(i,[{key:"encodeKey",value:function(r){return Q_(r)}},{key:"encodeValue",value:function(r){return Q_(r)}},{key:"decodeKey",value:function(r){return decodeURIComponent(r)}},{key:"decodeValue",value:function(r){return decodeURIComponent(r)}}]),i}();function jU(i,s){var r=new Map;return i.length>0&&i.replace(/^\?/,"").split("&").forEach(function(l){var c=l.indexOf("="),_=Pr(-1==c?[s.decodeKey(l),""]:[s.decodeKey(l.slice(0,c)),s.decodeValue(l.slice(c+1))],2),w=_[0],M=_[1],A=r.get(w)||[];A.push(M),r.set(w,A)}),r}var WU=/%(\d[a-f0-9])/gi,gw={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Q_(i){return encodeURIComponent(i).replace(WU,function(s,r){var n;return null!==(n=gw[r])&&void 0!==n?n:s})}function mw(i){return"".concat(i)}var Df=function(){function i(){var s=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(R(this,i),this.updates=null,this.cloneFrom=null,this.encoder=r.encoder||new vw,r.fromString){if(r.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=jU(r.fromString,this.encoder)}else r.fromObject?(this.map=new Map,Object.keys(r.fromObject).forEach(function(n){var l=r.fromObject[n];s.map.set(n,Array.isArray(l)?l:[l])})):this.map=null}return L(i,[{key:"has",value:function(r){return this.init(),this.map.has(r)}},{key:"get",value:function(r){this.init();var n=this.map.get(r);return n?n[0]:null}},{key:"getAll",value:function(r){return this.init(),this.map.get(r)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(r,n){return this.clone({param:r,value:n,op:"a"})}},{key:"appendAll",value:function(r){var n=[];return Object.keys(r).forEach(function(l){var c=r[l];Array.isArray(c)?c.forEach(function(p){n.push({param:l,value:p,op:"a"})}):n.push({param:l,value:c,op:"a"})}),this.clone(n)}},{key:"set",value:function(r,n){return this.clone({param:r,value:n,op:"s"})}},{key:"delete",value:function(r,n){return this.clone({param:r,value:n,op:"d"})}},{key:"toString",value:function(){var r=this;return this.init(),this.keys().map(function(n){var l=r.encoder.encodeKey(n);return r.map.get(n).map(function(c){return l+"="+r.encoder.encodeValue(c)}).join("&")}).filter(function(n){return""!==n}).join("&")}},{key:"clone",value:function(r){var n=new i({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(r),n}},{key:"init",value:function(){var r=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(n){return r.map.set(n,r.cloneFrom.map.get(n))}),this.updates.forEach(function(n){switch(n.op){case"a":case"s":var l=("a"===n.op?r.map.get(n.param):void 0)||[];l.push(mw(n.value)),r.map.set(n.param,l);break;case"d":if(void 0===n.value){r.map.delete(n.param);break}var c=r.map.get(n.param)||[],p=c.indexOf(mw(n.value));-1!==p&&c.splice(p,1),c.length>0?r.map.set(n.param,c):r.map.delete(n.param)}}),this.cloneFrom=this.updates=null)}}]),i}(),YU=function(){function i(){R(this,i),this.map=new Map}return L(i,[{key:"set",value:function(r,n){return this.map.set(r,n),this}},{key:"get",value:function(r){return this.map.has(r)||this.map.set(r,r.defaultValue()),this.map.get(r)}},{key:"delete",value:function(r){return this.map.delete(r),this}},{key:"has",value:function(r){return this.map.has(r)}},{key:"keys",value:function(){return this.map.keys()}}]),i}();function Zx(i){return"undefined"!=typeof ArrayBuffer&&i instanceof ArrayBuffer}function tF(i){return"undefined"!=typeof Blob&&i instanceof Blob}function Xx(i){return"undefined"!=typeof FormData&&i instanceof FormData}var Kx=function(){function i(s,r,n,l){var c;if(R(this,i),this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=s.toUpperCase(),function eF(i){switch(i){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||l?(this.body=void 0!==n?n:null,c=l):c=n,c&&(this.reportProgress=!!c.reportProgress,this.withCredentials=!!c.withCredentials,c.responseType&&(this.responseType=c.responseType),c.headers&&(this.headers=c.headers),c.context&&(this.context=c.context),c.params&&(this.params=c.params)),this.headers||(this.headers=new Bv),this.context||(this.context=new YU),this.params){var p=this.params.toString();if(0===p.length)this.urlWithParams=r;else{var _=r.indexOf("?");this.urlWithParams=r+(-1===_?"?":_0&&void 0!==arguments[0]?arguments[0]:{},l=r.method||this.method,c=r.url||this.url,p=r.responseType||this.responseType,_=void 0!==r.body?r.body:this.body,w=void 0!==r.withCredentials?r.withCredentials:this.withCredentials,M=void 0!==r.reportProgress?r.reportProgress:this.reportProgress,A=r.headers||this.headers,O=r.params||this.params,F=null!==(n=r.context)&&void 0!==n?n:this.context;return void 0!==r.setHeaders&&(A=Object.keys(r.setHeaders).reduce(function(Y,$){return Y.set($,r.setHeaders[$])},A)),r.setParams&&(O=Object.keys(r.setParams).reduce(function(Y,$){return Y.set($,r.setParams[$])},O)),new i(l,c,_,{params:O,headers:A,context:F,reportProgress:M,responseType:p,withCredentials:w})}}]),i}(),Ti=function(){return(Ti=Ti||{})[Ti.Sent=0]="Sent",Ti[Ti.UploadProgress=1]="UploadProgress",Ti[Ti.ResponseHeader=2]="ResponseHeader",Ti[Ti.DownloadProgress=3]="DownloadProgress",Ti[Ti.Response=4]="Response",Ti[Ti.User=5]="User",Ti}(),_w=L(function i(s){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";R(this,i),this.headers=s.headers||new Bv,this.status=void 0!==s.status?s.status:r,this.statusText=s.statusText||n,this.url=s.url||null,this.ok=this.status>=200&&this.status<300}),yw=function(i){se(r,i);var s=ue(r);function r(){var n,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return R(this,r),(n=s.call(this,l)).type=Ti.ResponseHeader,n}return L(r,[{key:"clone",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new r({headers:l.headers||this.headers,status:void 0!==l.status?l.status:this.status,statusText:l.statusText||this.statusText,url:l.url||this.url||void 0})}}]),r}(_w),rF=function(i){se(r,i);var s=ue(r);function r(){var n,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return R(this,r),(n=s.call(this,l)).type=Ti.Response,n.body=void 0!==l.body?l.body:null,n}return L(r,[{key:"clone",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new r({body:void 0!==l.body?l.body:this.body,headers:l.headers||this.headers,status:void 0!==l.status?l.status:this.status,statusText:l.statusText||this.statusText,url:l.url||this.url||void 0})}}]),r}(_w),$x=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,0,"Unknown Error")).name="HttpErrorResponse",l.ok=!1,l.message=l.status>=200&&l.status<300?"Http failure during parsing for ".concat(n.url||"(unknown url)"):"Http failure response for ".concat(n.url||"(unknown url)",": ").concat(n.status," ").concat(n.statusText),l.error=n.error||null,l}return L(r)}(_w);function bw(i,s){return{body:s,headers:i.headers,context:i.context,observe:i.observe,params:i.params,reportProgress:i.reportProgress,responseType:i.responseType,withCredentials:i.withCredentials}}var iF=function(){var i=function(){function s(r){R(this,s),this.handler=r}return L(s,[{key:"request",value:function(n,l){var _,c=this,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(n instanceof Kx)_=n;else{var w=void 0;w=p.headers instanceof Bv?p.headers:new Bv(p.headers);var M=void 0;p.params&&(M=p.params instanceof Df?p.params:new Df({fromObject:p.params})),_=new Kx(n,l,void 0!==p.body?p.body:null,{headers:w,context:p.context,params:M,reportProgress:p.reportProgress,responseType:p.responseType||"json",withCredentials:p.withCredentials})}var A=dt(_).pipe(oc(function(F){return c.handler.handle(F)}));if(n instanceof Kx||"events"===p.observe)return A;var O=A.pipe(Ur(function(F){return F instanceof rF}));switch(p.observe||"body"){case"body":switch(_.responseType){case"arraybuffer":return O.pipe(on(function(F){if(null!==F.body&&!(F.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return F.body}));case"blob":return O.pipe(on(function(F){if(null!==F.body&&!(F.body instanceof Blob))throw new Error("Response is not a Blob.");return F.body}));case"text":return O.pipe(on(function(F){if(null!==F.body&&"string"!=typeof F.body)throw new Error("Response is not a string.");return F.body}));default:return O.pipe(on(function(F){return F.body}))}case"response":return O;default:throw new Error("Unreachable: unhandled observe type ".concat(p.observe,"}"))}}},{key:"delete",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",n,l)}},{key:"get",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",n,l)}},{key:"head",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",n,l)}},{key:"jsonp",value:function(n,l){return this.request("JSONP",n,{params:(new Df).append(l,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",n,l)}},{key:"patch",value:function(n,l){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",n,bw(c,l))}},{key:"post",value:function(n,l){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",n,bw(c,l))}},{key:"put",value:function(n,l){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",n,bw(c,l))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(QL))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),aF=function(){function i(s,r){R(this,i),this.next=s,this.interceptor=r}return L(i,[{key:"handle",value:function(r){return this.interceptor.intercept(r,this.next)}}]),i}(),Qx=new Ae("HTTP_INTERCEPTORS"),oF=function(){var i=function(){function s(){R(this,s)}return L(s,[{key:"intercept",value:function(n,l){return l.handle(n)}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),sF=/^\)\]\}',?\n/,uF=function(){var i=function(){function s(r){R(this,s),this.xhrFactory=r}return L(s,[{key:"handle",value:function(n){var l=this;if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Jn(function(c){var p=l.xhrFactory.build();if(p.open(n.method,n.urlWithParams),n.withCredentials&&(p.withCredentials=!0),n.headers.forEach(function(fe,ae){return p.setRequestHeader(fe,ae.join(","))}),n.headers.has("Accept")||p.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){var _=n.detectContentTypeHeader();null!==_&&p.setRequestHeader("Content-Type",_)}if(n.responseType){var w=n.responseType.toLowerCase();p.responseType="json"!==w?w:"text"}var M=n.serializeBody(),A=null,O=function(){if(null!==A)return A;var ae=p.statusText||"OK",we=new Bv(p.getAllResponseHeaders()),De=function lF(i){return"responseURL"in i&&i.responseURL?i.responseURL:/^X-Request-URL:/m.test(i.getAllResponseHeaders())?i.getResponseHeader("X-Request-URL"):null}(p)||n.url;return A=new yw({headers:we,status:p.status,statusText:ae,url:De})},F=function(){var ae=O(),we=ae.headers,De=ae.status,Ee=ae.statusText,We=ae.url,bt=null;204!==De&&(bt=void 0===p.response?p.responseText:p.response),0===De&&(De=bt?200:0);var Vn=De>=200&&De<300;if("json"===n.responseType&&"string"==typeof bt){var bi=bt;bt=bt.replace(sF,"");try{bt=""!==bt?JSON.parse(bt):null}catch(ci){bt=bi,Vn&&(Vn=!1,bt={error:ci,text:bt})}}Vn?(c.next(new rF({body:bt,headers:we,status:De,statusText:Ee,url:We||void 0})),c.complete()):c.error(new $x({error:bt,headers:we,status:De,statusText:Ee,url:We||void 0}))},Y=function(ae){var we=O(),Ee=new $x({error:ae,status:p.status||0,statusText:p.statusText||"Unknown Error",url:we.url||void 0});c.error(Ee)},$=!1,oe=function(ae){$||(c.next(O()),$=!0);var we={type:Ti.DownloadProgress,loaded:ae.loaded};ae.lengthComputable&&(we.total=ae.total),"text"===n.responseType&&!!p.responseText&&(we.partialText=p.responseText),c.next(we)},le=function(ae){var we={type:Ti.UploadProgress,loaded:ae.loaded};ae.lengthComputable&&(we.total=ae.total),c.next(we)};return p.addEventListener("load",F),p.addEventListener("error",Y),p.addEventListener("timeout",Y),p.addEventListener("abort",Y),n.reportProgress&&(p.addEventListener("progress",oe),null!==M&&p.upload&&p.upload.addEventListener("progress",le)),p.send(M),c.next({type:Ti.Sent}),function(){p.removeEventListener("error",Y),p.removeEventListener("abort",Y),p.removeEventListener("load",F),p.removeEventListener("timeout",Y),n.reportProgress&&(p.removeEventListener("progress",oe),null!==M&&p.upload&&p.upload.removeEventListener("progress",le)),p.readyState!==p.DONE&&p.abort()}})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(cw))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),kh=new Ae("XSRF_COOKIE_NAME"),eT=new Ae("XSRF_HEADER_NAME"),tT=L(function i(){R(this,i)}),KU=function(){var i=function(){function s(r,n,l){R(this,s),this.doc=r,this.platform=n,this.cookieName=l,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return L(s,[{key:"getToken",value:function(){if("server"===this.platform)return null;var n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=CL(n,this.cookieName),this.lastCookieString=n),this.lastToken}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(Jt),ge(yf),ge(kh))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),Cw=function(){var i=function(){function s(r,n){R(this,s),this.tokenService=r,this.headerName=n}return L(s,[{key:"intercept",value:function(n,l){var c=n.url.toLowerCase();if("GET"===n.method||"HEAD"===n.method||c.startsWith("http://")||c.startsWith("https://"))return l.handle(n);var p=this.tokenService.getToken();return null!==p&&!n.headers.has(this.headerName)&&(n=n.clone({headers:n.headers.set(this.headerName,p)})),l.handle(n)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(tT),ge(eT))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),nT=function(){var i=function(){function s(r,n){R(this,s),this.backend=r,this.injector=n,this.chain=null}return L(s,[{key:"handle",value:function(n){if(null===this.chain){var l=this.injector.get(Qx,[]);this.chain=l.reduceRight(function(c,p){return new aF(c,p)},this.backend)}return this.chain.handle(n)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(JL),ge(kr))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),$U=function(){var i=function(){function s(){R(this,s)}return L(s,null,[{key:"disable",value:function(){return{ngModule:s,providers:[{provide:Cw,useClass:oF}]}}},{key:"withOptions",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:s,providers:[n.cookieName?{provide:kh,useValue:n.cookieName}:[],n.headerName?{provide:eT,useValue:n.headerName}:[]]}}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({providers:[Cw,{provide:Qx,useExisting:Cw,multi:!0},{provide:tT,useClass:KU},{provide:kh,useValue:"XSRF-TOKEN"},{provide:eT,useValue:"X-XSRF-TOKEN"}]}),i}(),QU=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({providers:[iF,{provide:QL,useClass:nT},uF,{provide:JL,useExisting:uF}],imports:[[$U.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),i}(),Na=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this))._value=n,l}return L(r,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(l){var c=Ye(qe(r.prototype),"_subscribe",this).call(this,l);return!c.closed&&l.next(this._value),c}},{key:"getValue",value:function(){var p=this._value;if(this.hasError)throw this.thrownError;return this._throwIfClosed(),p}},{key:"next",value:function(l){Ye(qe(r.prototype),"next",this).call(this,this._value=l)}}]),r}(Xe),ty=Array.isArray,JU=Object.getPrototypeOf,e6=Object.prototype,t6=Object.keys;function cF(i){if(1===i.length){var s=i[0];if(ty(s))return{args:s,keys:null};if(function n6(i){return i&&"object"==typeof i&&JU(i)===e6}(s)){var r=t6(s);return{args:r.map(function(n){return s[n]}),keys:r}}}return{args:i,keys:null}}var r6=Array.isArray;function rT(i){return on(function(s){return function fF(i,s){return r6(s)?i.apply(void 0,yt(s)):i(s)}(i,s)})}function dF(i,s){return i.reduce(function(r,n,l){return r[n]=s[l],r},{})}function ny(){for(var i=arguments.length,s=new Array(i),r=0;r2&&void 0!==arguments[2]?arguments[2]:Ec;return function(n){hF(s,function(){for(var l=i.length,c=new Array(l),p=l,_=l,w=function(O){hF(s,function(){var F=Wi(i[O],s),Y=!1;F.subscribe(ve(n,function($){c[O]=$,Y||(Y=!0,_--),_||n.next(r(c.slice()))},function(){--p||n.complete()}))},n)},M=0;M=2,!0))}function To(i){return gr(function(s,r){var c,n=null,l=!1;n=s.subscribe(ve(r,void 0,void 0,function(p){c=ji(i(p,To(i)(s))),n?(n.unsubscribe(),n=null,c.subscribe(r)):l=!0})),l&&(n.unsubscribe(),n=null,c.subscribe(r))})}function xf(i){return i<=0?function(){return Sr}:gr(function(s,r){var n=[];s.subscribe(ve(r,function(l){n.push(l),i0&&void 0!==arguments[0]?arguments[0]:l6;return gr(function(s,r){var n=!1;s.subscribe(ve(r,function(l){n=!0,r.next(l)},function(){return n?r.complete():r.error(i())}))})}function l6(){return new ww}function pF(i){return gr(function(s,r){var n=!1;s.subscribe(ve(r,function(l){n=!0,r.next(l)},function(){n||r.next(i),r.complete()}))})}function xh(i,s){var r=arguments.length>=2;return function(n){return n.pipe(i?Ur(function(l,c){return i(l,c,n)}):Ec,gn(1),r?pF(s):oT(function(){return new ww}))}}function ao(i,s,r){var n=Hn(i)||s||r?{next:i,error:s,complete:r}:i;return n?gr(function(l,c){var p;null===(p=n.subscribe)||void 0===p||p.call(n);var _=!0;l.subscribe(ve(c,function(w){var M;null===(M=n.next)||void 0===M||M.call(n,w),c.next(w)},function(){var w;_=!1,null===(w=n.complete)||void 0===w||w.call(n),c.complete()},function(w){var M;_=!1,null===(M=n.error)||void 0===M||M.call(n,w),c.error(w)},function(){var w,M;_&&(null===(w=n.unsubscribe)||void 0===w||w.call(n)),null===(M=n.finalize)||void 0===M||M.call(n)}))}):Ec}var sc=L(function i(s,r){R(this,i),this.id=s,this.url=r}),lT=function(i){se(r,i);var s=ue(r);function r(n,l){var c,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",_=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return R(this,r),(c=s.call(this,n,l)).navigationTrigger=p,c.restoredState=_,c}return L(r,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),r}(sc),Th=function(i){se(r,i);var s=ue(r);function r(n,l,c){var p;return R(this,r),(p=s.call(this,n,l)).urlAfterRedirects=c,p}return L(r,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),r}(sc),uT=function(i){se(r,i);var s=ue(r);function r(n,l,c){var p;return R(this,r),(p=s.call(this,n,l)).reason=c,p}return L(r,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),r}(sc),vF=function(i){se(r,i);var s=ue(r);function r(n,l,c){var p;return R(this,r),(p=s.call(this,n,l)).error=c,p}return L(r,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),r}(sc),cT=function(i){se(r,i);var s=ue(r);function r(n,l,c,p){var _;return R(this,r),(_=s.call(this,n,l)).urlAfterRedirects=c,_.state=p,_}return L(r,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),r}(sc),gF=function(i){se(r,i);var s=ue(r);function r(n,l,c,p){var _;return R(this,r),(_=s.call(this,n,l)).urlAfterRedirects=c,_.state=p,_}return L(r,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),r}(sc),c6=function(i){se(r,i);var s=ue(r);function r(n,l,c,p,_){var w;return R(this,r),(w=s.call(this,n,l)).urlAfterRedirects=c,w.state=p,w.shouldActivate=_,w}return L(r,[{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,")")}}]),r}(sc),fT=function(i){se(r,i);var s=ue(r);function r(n,l,c,p){var _;return R(this,r),(_=s.call(this,n,l)).urlAfterRedirects=c,_.state=p,_}return L(r,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),r}(sc),mF=function(i){se(r,i);var s=ue(r);function r(n,l,c,p){var _;return R(this,r),(_=s.call(this,n,l)).urlAfterRedirects=c,_.state=p,_}return L(r,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),r}(sc),dT=function(){function i(s){R(this,i),this.route=s}return L(i,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),i}(),_F=function(){function i(s){R(this,i),this.route=s}return L(i,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),i}(),f6=function(){function i(s){R(this,i),this.snapshot=s}return L(i,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),i}(),Tf=function(){function i(s){R(this,i),this.snapshot=s}return L(i,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),i}(),Ah=function(){function i(s){R(this,i),this.snapshot=s}return L(i,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),i}(),yF=function(){function i(s){R(this,i),this.snapshot=s}return L(i,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),i}(),bF=function(){function i(s,r,n){R(this,i),this.routerEvent=s,this.position=r,this.anchor=n}return L(i,[{key:"toString",value:function(){var r=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(r,"')")}}]),i}(),An="primary",Ps=function(){function i(s){R(this,i),this.params=s||{}}return L(i,[{key:"has",value:function(r){return Object.prototype.hasOwnProperty.call(this.params,r)}},{key:"get",value:function(r){if(this.has(r)){var n=this.params[r];return Array.isArray(n)?n[0]:n}return null}},{key:"getAll",value:function(r){if(this.has(r)){var n=this.params[r];return Array.isArray(n)?n:[n]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),i}();function Eh(i){return new Ps(i)}var hT="ngNavigationCancelingError";function Mw(i){var s=Error("NavigationCancelingError: "+i);return s[hT]=!0,s}function h6(i,s,r){var n=r.path.split("/");if(n.length>i.length||"full"===r.pathMatch&&(s.hasChildren()||n.length0?i[i.length-1]:null}function ya(i,s){for(var r in i)i.hasOwnProperty(r)&&s(i[r],r)}function Os(i){return eD(i)?i:Wm(i)?Wi(Promise.resolve(i)):dt(i)}var pT={exact:function vT(i,s,r){if(!Ph(i.segments,s.segments)||!ay(i.segments,s.segments,r)||i.numberOfChildren!==s.numberOfChildren)return!1;for(var n in s.children)if(!i.children[n]||!vT(i.children[n],s.children[n],r))return!1;return!0},subset:Af},MF={exact:function iy(i,s){return ra(i,s)},subset:function g6(i,s){return Object.keys(s).length<=Object.keys(i).length&&Object.keys(s).every(function(r){return CF(i[r],s[r])})},ignored:function(){return!0}};function kw(i,s,r){return pT[r.paths](i.root,s.root,r.matrixParams)&&MF[r.queryParams](i.queryParams,s.queryParams)&&!("exact"===r.fragment&&i.fragment!==s.fragment)}function Af(i,s,r){return Dw(i,s,s.segments,r)}function Dw(i,s,r,n){if(i.segments.length>r.length){var l=i.segments.slice(0,r.length);return!(!Ph(l,r)||s.hasChildren()||!ay(l,r,n))}if(i.segments.length===r.length){if(!Ph(i.segments,r)||!ay(i.segments,r,n))return!1;for(var c in s.children)if(!i.children[c]||!Af(i.children[c],s.children[c],n))return!1;return!0}var p=r.slice(0,i.segments.length),_=r.slice(i.segments.length);return!!(Ph(i.segments,p)&&ay(i.segments,p,n)&&i.children[An])&&Dw(i.children[An],s,_,n)}function ay(i,s,r){return s.every(function(n,l){return MF[r](i[l].parameters,n.parameters)})}var Ef=function(){function i(s,r,n){R(this,i),this.root=s,this.queryParams=r,this.fragment=n}return L(i,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Eh(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return _6.serialize(this)}}]),i}(),Fn=function(){function i(s,r){var n=this;R(this,i),this.segments=s,this.children=r,this.parent=null,ya(r,function(l,c){return l.parent=n})}return L(i,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return sy(this)}}]),i}(),oy=function(){function i(s,r){R(this,i),this.path=s,this.parameters=r}return L(i,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Eh(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return PF(this)}}]),i}();function Ph(i,s){return i.length===s.length&&i.every(function(r,n){return r.path===s[n].path})}var xF=L(function i(){R(this,i)}),m6=function(){function i(){R(this,i)}return L(i,[{key:"parse",value:function(r){var n=new k6(r);return new Ef(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}},{key:"serialize",value:function(r){var n="/".concat(Vv(r.root,!0)),l=function b6(i){var s=Object.keys(i).map(function(r){var n=i[r];return Array.isArray(n)?n.map(function(l){return"".concat(xw(r),"=").concat(xw(l))}).join("&"):"".concat(xw(r),"=").concat(xw(n))}).filter(function(r){return!!r});return s.length?"?".concat(s.join("&")):""}(r.queryParams),c="string"==typeof r.fragment?"#".concat(function AF(i){return encodeURI(i)}(r.fragment)):"";return"".concat(n).concat(l).concat(c)}}]),i}(),_6=new m6;function sy(i){return i.segments.map(function(s){return PF(s)}).join("/")}function Vv(i,s){if(!i.hasChildren())return sy(i);if(s){var r=i.children[An]?Vv(i.children[An],!1):"",n=[];return ya(i.children,function(c,p){p!==An&&n.push("".concat(p,":").concat(Vv(c,!1)))}),n.length>0?"".concat(r,"(").concat(n.join("//"),")"):r}var l=function DF(i,s){var r=[];return ya(i.children,function(n,l){l===An&&(r=r.concat(s(n,l)))}),ya(i.children,function(n,l){l!==An&&(r=r.concat(s(n,l)))}),r}(i,function(c,p){return p===An?[Vv(i.children[An],!1)]:["".concat(p,":").concat(Vv(c,!1))]});return 1===Object.keys(i.children).length&&null!=i.children[An]?"".concat(sy(i),"/").concat(l[0]):"".concat(sy(i),"/(").concat(l.join("//"),")")}function TF(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function xw(i){return TF(i).replace(/%3B/gi,";")}function Tw(i){return TF(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Aw(i){return decodeURIComponent(i)}function EF(i){return Aw(i.replace(/\+/g,"%20"))}function PF(i){return"".concat(Tw(i.path)).concat(function y6(i){return Object.keys(i).map(function(s){return";".concat(Tw(s),"=").concat(Tw(i[s]))}).join("")}(i.parameters))}var ly=/^[^\/()?;=#]+/;function Oh(i){var s=i.match(ly);return s?s[0]:""}var C6=/^[^=?&#]+/,S6=/^[^&#]+/,k6=function(){function i(s){R(this,i),this.url=s,this.remaining=s}return L(i,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Fn([],{}):new Fn([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var r={};if(this.consumeOptional("?"))do{this.parseQueryParam(r)}while(this.consumeOptional("&"));return r}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());var n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));var l={};return this.peekStartsWith("(")&&(l=this.parseParens(!1)),(r.length>0||Object.keys(n).length>0)&&(l[An]=new Fn(r,n)),l}},{key:"parseSegment",value:function(){var r=Oh(this.remaining);if(""===r&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(r),new oy(Aw(r),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var r={};this.consumeOptional(";");)this.parseParam(r);return r}},{key:"parseParam",value:function(r){var n=Oh(this.remaining);if(n){this.capture(n);var l="";if(this.consumeOptional("=")){var c=Oh(this.remaining);c&&this.capture(l=c)}r[Aw(n)]=Aw(l)}}},{key:"parseQueryParam",value:function(r){var n=function w6(i){var s=i.match(C6);return s?s[0]:""}(this.remaining);if(n){this.capture(n);var l="";if(this.consumeOptional("=")){var c=function M6(i){var s=i.match(S6);return s?s[0]:""}(this.remaining);c&&this.capture(l=c)}var p=EF(n),_=EF(l);if(r.hasOwnProperty(p)){var w=r[p];Array.isArray(w)||(r[p]=w=[w]),w.push(_)}else r[p]=_}}},{key:"parseParens",value:function(r){var n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var l=Oh(this.remaining),c=this.remaining[l.length];if("/"!==c&&")"!==c&&";"!==c)throw new Error("Cannot parse url '".concat(this.url,"'"));var p=void 0;l.indexOf(":")>-1?(p=l.substr(0,l.indexOf(":")),this.capture(p),this.capture(":")):r&&(p=An);var _=this.parseChildren();n[p]=1===Object.keys(_).length?_[An]:new Fn([],_),this.consumeOptional("//")}return n}},{key:"peekStartsWith",value:function(r){return this.remaining.startsWith(r)}},{key:"consumeOptional",value:function(r){return!!this.peekStartsWith(r)&&(this.remaining=this.remaining.substring(r.length),!0)}},{key:"capture",value:function(r){if(!this.consumeOptional(r))throw new Error('Expected "'.concat(r,'".'))}}]),i}(),OF=function(){function i(s){R(this,i),this._root=s}return L(i,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(r){var n=this.pathFromRoot(r);return n.length>1?n[n.length-2]:null}},{key:"children",value:function(r){var n=gT(r,this._root);return n?n.children.map(function(l){return l.value}):[]}},{key:"firstChild",value:function(r){var n=gT(r,this._root);return n&&n.children.length>0?n.children[0].value:null}},{key:"siblings",value:function(r){var n=mT(r,this._root);return n.length<2?[]:n[n.length-2].children.map(function(c){return c.value}).filter(function(c){return c!==r})}},{key:"pathFromRoot",value:function(r){return mT(r,this._root).map(function(n){return n.value})}}]),i}();function gT(i,s){if(i===s.value)return s;var n,r=qt(s.children);try{for(r.s();!(n=r.n()).done;){var c=gT(i,n.value);if(c)return c}}catch(p){r.e(p)}finally{r.f()}return null}function mT(i,s){if(i===s.value)return[s];var n,r=qt(s.children);try{for(r.s();!(n=r.n()).done;){var c=mT(i,n.value);if(c.length)return c.unshift(s),c}}catch(p){r.e(p)}finally{r.f()}return[]}var lc=function(){function i(s,r){R(this,i),this.value=s,this.children=r}return L(i,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),i}();function Hv(i){var s={};return i&&i.children.forEach(function(r){return s[r.value.outlet]=r}),s}var IF=function(i){se(r,i);var s=ue(r);function r(n,l){var c;return R(this,r),(c=s.call(this,n)).snapshot=l,Ow(an(c),n),c}return L(r,[{key:"toString",value:function(){return this.snapshot.toString()}}]),r}(OF);function _T(i,s){var r=function D6(i,s){var p=new Ew([],{},{},"",{},An,s,null,i.root,-1,{});return new Pw("",new lc(p,[]))}(i,s),n=new Na([new oy("",{})]),l=new Na({}),c=new Na({}),p=new Na({}),_=new Na(""),w=new Vr(n,l,p,_,c,An,s,r.root);return w.snapshot=r.root,new IF(new lc(w,[]),r)}var Vr=function(){function i(s,r,n,l,c,p,_,w){R(this,i),this.url=s,this.params=r,this.queryParams=n,this.fragment=l,this.data=c,this.outlet=p,this.component=_,this._futureSnapshot=w}return L(i,[{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(on(function(r){return Eh(r)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(on(function(r){return Eh(r)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),i}();function yT(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",r=i.pathFromRoot,n=0;if("always"!==s)for(n=r.length-1;n>=1;){var l=r[n],c=r[n-1];if(l.routeConfig&&""===l.routeConfig.path)n--;else{if(c.component)break;n--}}return bT(r.slice(n))}function bT(i){return i.reduce(function(s,r){return{params:Object.assign(Object.assign({},s.params),r.params),data:Object.assign(Object.assign({},s.data),r.data),resolve:Object.assign(Object.assign({},s.resolve),r._resolvedData)}},{params:{},data:{},resolve:{}})}var Ew=function(){function i(s,r,n,l,c,p,_,w,M,A,O){R(this,i),this.url=s,this.params=r,this.queryParams=n,this.fragment=l,this.data=c,this.outlet=p,this.component=_,this.routeConfig=w,this._urlSegment=M,this._lastPathIndex=A,this._resolve=O}return L(i,[{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=Eh(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Eh(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){var r=this.url.map(function(l){return l.toString()}).join("/"),n=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(r,"', path:'").concat(n,"')")}}]),i}(),Pw=function(i){se(r,i);var s=ue(r);function r(n,l){var c;return R(this,r),(c=s.call(this,l)).url=n,Ow(an(c),l),c}return L(r,[{key:"toString",value:function(){return uy(this._root)}}]),r}(OF);function Ow(i,s){s.value._routerState=i,s.children.forEach(function(r){return Ow(i,r)})}function uy(i){var s=i.children.length>0?" { ".concat(i.children.map(uy).join(", ")," } "):"";return"".concat(i.value).concat(s)}function Ih(i){if(i.snapshot){var s=i.snapshot,r=i._futureSnapshot;i.snapshot=r,ra(s.queryParams,r.queryParams)||i.queryParams.next(r.queryParams),s.fragment!==r.fragment&&i.fragment.next(r.fragment),ra(s.params,r.params)||i.params.next(r.params),function p6(i,s){if(i.length!==s.length)return!1;for(var r=0;rl;){if(c-=l,!(n=n.parent))throw new Error("Invalid number of '../'");l=n.segments.length}return new Rw(n,!1,l-c)}(r.snapshot._urlSegment,r.snapshot._lastPathIndex+c,i.numberOfDoubleDots)}(c,s,i),_=p.processChildren?Lw(p.segmentGroup,p.index,c.commands):Ao(p.segmentGroup,p.index,c.commands);return Gv(s.root,p.segmentGroup,_,n,l)}function Rh(i){return"object"==typeof i&&null!=i&&!i.outlets&&!i.segmentPath}function zv(i){return"object"==typeof i&&null!=i&&i.outlets}function Gv(i,s,r,n,l){var c={};if(n&&ya(n,function(_,w){c[w]=Array.isArray(_)?_.map(function(M){return"".concat(M)}):"".concat(_)}),i===s)return new Ef(r,c,l);var p=ST(i,s,r);return new Ef(p,c,l)}function ST(i,s,r){var n={};return ya(i.children,function(l,c){n[c]=l===s?r:ST(l,s,r)}),new Fn(i.segments,n)}var LF=function(){function i(s,r,n){if(R(this,i),this.isAbsolute=s,this.numberOfDoubleDots=r,this.commands=n,s&&n.length>0&&Rh(n[0]))throw new Error("Root segment cannot have matrix parameters");var l=n.find(zv);if(l&&l!==SF(n))throw new Error("{outlets:{}} has to be the last command")}return L(i,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),i}(),Rw=L(function i(s,r,n){R(this,i),this.segmentGroup=s,this.processChildren=r,this.index=n});function Ao(i,s,r){if(i||(i=new Fn([],{})),0===i.segments.length&&i.hasChildren())return Lw(i,s,r);var n=function x6(i,s,r){for(var n=0,l=s,c={match:!1,pathIndex:0,commandIndex:0};l=r.length)return c;var p=i.segments[l],_=r[n];if(zv(_))break;var w="".concat(_),M=n0&&void 0===w)break;if(w&&M&&"object"==typeof M&&void 0===M.outlets){if(!dy(w,M,p))return c;n+=2}else{if(!dy(w,{},p))return c;n++}l++}return{match:!0,pathIndex:l,commandIndex:n}}(i,s,r),l=r.slice(n.commandIndex);if(n.match&&n.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",r=0;r0)?Object.assign({},jF):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};var c=(s.matcher||h6)(r,i,s);if(!c)return Object.assign({},jF);var p={};ya(c.posParams,function(w,M){p[M]=w.path});var _=c.consumed.length>0?Object.assign(Object.assign({},p),c.consumed[c.consumed.length-1].parameters):p;return{matched:!0,consumedSegments:c.consumed,remainingSegments:r.slice(c.consumed.length),parameters:_,positionalParamSegments:null!==(n=c.posParams)&&void 0!==n?n:{}}}function Of(i,s,r,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(r.length>0&&B6(i,r,n)){var c=new Fn(s,DT(i,s,n,new Fn(r,i.children)));return c._sourceSegment=i,c._segmentIndexShift=s.length,{segmentGroup:c,slicedSegments:[]}}if(0===r.length&&V6(i,r,n)){var p=new Fn(i.segments,fc(i,s,r,n,i.children,l));return p._sourceSegment=i,p._segmentIndexShift=s.length,{segmentGroup:p,slicedSegments:r}}var _=new Fn(i.segments,i.children);return _._sourceSegment=i,_._segmentIndexShift=s.length,{segmentGroup:_,slicedSegments:r}}function fc(i,s,r,n,l,c){var w,p={},_=qt(n);try{for(_.s();!(w=_.n()).done;){var M=w.value;if(Vw(i,r,M)&&!l[Rs(M)]){var A=new Fn([],{});A._sourceSegment=i,A._segmentIndexShift="legacy"===c?i.segments.length:s.length,p[Rs(M)]=A}}}catch(O){_.e(O)}finally{_.f()}return Object.assign(Object.assign({},l),p)}function DT(i,s,r,n){var l={};l[An]=n,n._sourceSegment=i,n._segmentIndexShift=s.length;var p,c=qt(r);try{for(c.s();!(p=c.n()).done;){var _=p.value;if(""===_.path&&Rs(_)!==An){var w=new Fn([],{});w._sourceSegment=i,w._segmentIndexShift=s.length,l[Rs(_)]=w}}}catch(M){c.e(M)}finally{c.f()}return l}function B6(i,s,r){return r.some(function(n){return Vw(i,s,n)&&Rs(n)!==An})}function V6(i,s,r){return r.some(function(n){return Vw(i,s,n)})}function Vw(i,s,r){return(!(i.hasChildren()||s.length>0)||"full"!==r.pathMatch)&&""===r.path}function xT(i,s,r,n){return!!(Rs(i)===n||n!==An&&Vw(s,r,i))&&("**"===i.path||Bw(s,i,r).matched)}function py(i,s,r){return 0===s.length&&!i.children[r]}var vy=L(function i(s){R(this,i),this.segmentGroup=s||null}),WF=L(function i(s){R(this,i),this.urlTree=s});function jv(i){return ry(new vy(i))}function TT(i){return ry(new WF(i))}function YF(i){return ry(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(i,"'")))}var XF=function(){function i(s,r,n,l,c){R(this,i),this.configLoader=r,this.urlSerializer=n,this.urlTree=l,this.config=c,this.allowRedirects=!0,this.ngModule=s.get(qu)}return L(i,[{key:"apply",value:function(){var r=this,n=Of(this.urlTree.root,[],[],this.config).segmentGroup,l=new Fn(n.segments,n.children);return this.expandSegmentGroup(this.ngModule,this.config,l,An).pipe(on(function(_){return r.createUrlTree(AT(_),r.urlTree.queryParams,r.urlTree.fragment)})).pipe(To(function(_){if(_ instanceof WF)return r.allowRedirects=!1,r.match(_.urlTree);throw _ instanceof vy?r.noMatchError(_):_}))}},{key:"match",value:function(r){var n=this;return this.expandSegmentGroup(this.ngModule,this.config,r.root,An).pipe(on(function(p){return n.createUrlTree(AT(p),r.queryParams,r.fragment)})).pipe(To(function(p){throw p instanceof vy?n.noMatchError(p):p}))}},{key:"noMatchError",value:function(r){return new Error("Cannot match any routes. URL Segment: '".concat(r.segmentGroup,"'"))}},{key:"createUrlTree",value:function(r,n,l){var c=r.segments.length>0?new Fn([],ed({},An,r)):r;return new Ef(c,n,l)}},{key:"expandSegmentGroup",value:function(r,n,l,c){return 0===l.segments.length&&l.hasChildren()?this.expandChildren(r,n,l).pipe(on(function(p){return new Fn([],p)})):this.expandSegment(r,l,n,l.segments,c,!0)}},{key:"expandChildren",value:function(r,n,l){for(var c=this,p=[],_=0,w=Object.keys(l.children);_=2;return function(n){return n.pipe(i?Ur(function(l,c){return i(l,c,n)}):Ec,xf(1),r?pF(s):oT(function(){return new ww}))}}())}},{key:"expandSegment",value:function(r,n,l,c,p,_){var w=this;return Wi(l).pipe(oc(function(M){return w.expandSegmentAgainstRoute(r,n,l,M,c,p,_).pipe(To(function(O){if(O instanceof vy)return dt(null);throw O}))}),xh(function(M){return!!M}),To(function(M,A){if(M instanceof ww||"EmptyError"===M.name)return py(n,c,p)?dt(new Fn([],{})):jv(n);throw M}))}},{key:"expandSegmentAgainstRoute",value:function(r,n,l,c,p,_,w){return xT(c,n,p,_)?void 0===c.redirectTo?this.matchSegmentAgainstRoute(r,n,c,p,_):w&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(r,n,l,c,p,_):jv(n):jv(n)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(r,n,l,c,p,_){return"**"===c.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(r,l,c,_):this.expandRegularSegmentAgainstRouteUsingRedirect(r,n,l,c,p,_)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(r,n,l,c){var p=this,_=this.applyRedirectCommands([],l.redirectTo,{});return l.redirectTo.startsWith("/")?TT(_):this.lineralizeSegments(l,_).pipe(Ri(function(w){var M=new Fn(w,{});return p.expandSegment(r,M,n,w,c,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(r,n,l,c,p,_){var w=this,M=Bw(n,c,p),O=M.consumedSegments,F=M.remainingSegments,Y=M.positionalParamSegments;if(!M.matched)return jv(n);var $=this.applyRedirectCommands(O,c.redirectTo,Y);return c.redirectTo.startsWith("/")?TT($):this.lineralizeSegments(c,$).pipe(Ri(function(oe){return w.expandSegment(r,n,l,oe.concat(F),_,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(r,n,l,c,p){var _=this;if("**"===l.path)return l.loadChildren?(l._loadedConfig?dt(l._loadedConfig):this.configLoader.load(r.injector,l)).pipe(on(function($){return l._loadedConfig=$,new Fn(c,{})})):dt(new Fn(c,{}));var M=Bw(n,l,c),O=M.consumedSegments,F=M.remainingSegments;return M.matched?this.getChildConfig(r,l,c).pipe(Ri(function($){var oe=$.module,le=$.routes,fe=Of(n,O,F,le),ae=fe.segmentGroup,we=fe.slicedSegments,De=new Fn(ae.segments,ae.children);if(0===we.length&&De.hasChildren())return _.expandChildren(oe,le,De).pipe(on(function(Vn){return new Fn(O,Vn)}));if(0===le.length&&0===we.length)return dt(new Fn(O,{}));var We=Rs(l)===p;return _.expandSegment(oe,De,le,we,We?An:p,!0).pipe(on(function(Vn){return new Fn(O.concat(Vn.segments),Vn.children)}))})):jv(n)}},{key:"getChildConfig",value:function(r,n,l){var c=this;return n.children?dt(new Nw(n.children,r)):n.loadChildren?void 0!==n._loadedConfig?dt(n._loadedConfig):this.runCanLoadGuards(r.injector,n,l).pipe(Ri(function(p){return p?c.configLoader.load(r.injector,n).pipe(on(function(_){return n._loadedConfig=_,_})):function qF(i){return ry(Mw("Cannot load children because the guard of the route \"path: '".concat(i.path,"'\" returned false")))}(n)})):dt(new Nw([],r))}},{key:"runCanLoadGuards",value:function(r,n,l){var c=this,p=n.canLoad;if(!p||0===p.length)return dt(!0);var _=p.map(function(w){var A,M=r.get(w);if(function O6(i){return i&&uc(i.canLoad)}(M))A=M.canLoad(n,l);else{if(!uc(M))throw new Error("Invalid CanLoad guard");A=M(n,l)}return Os(A)});return dt(_).pipe(Lh(),ao(function(w){if(Pf(w)){var M=Mw('Redirecting to "'.concat(c.urlSerializer.serialize(w),'"'));throw M.url=w,M}}),on(function(w){return!0===w}))}},{key:"lineralizeSegments",value:function(r,n){for(var l=[],c=n.root;;){if(l=l.concat(c.segments),0===c.numberOfChildren)return dt(l);if(c.numberOfChildren>1||!c.children[An])return YF(r.redirectTo);c=c.children[An]}}},{key:"applyRedirectCommands",value:function(r,n,l){return this.applyRedirectCreatreUrlTree(n,this.urlSerializer.parse(n),r,l)}},{key:"applyRedirectCreatreUrlTree",value:function(r,n,l,c){var p=this.createSegmentGroup(r,n.root,l,c);return new Ef(p,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}},{key:"createQueryParams",value:function(r,n){var l={};return ya(r,function(c,p){if("string"==typeof c&&c.startsWith(":")){var w=c.substring(1);l[p]=n[w]}else l[p]=c}),l}},{key:"createSegmentGroup",value:function(r,n,l,c){var p=this,_=this.createSegments(r,n.segments,l,c),w={};return ya(n.children,function(M,A){w[A]=p.createSegmentGroup(r,M,l,c)}),new Fn(_,w)}},{key:"createSegments",value:function(r,n,l,c){var p=this;return n.map(function(_){return _.path.startsWith(":")?p.findPosParam(r,_,c):p.findOrReturn(_,l)})}},{key:"findPosParam",value:function(r,n,l){var c=l[n.path.substring(1)];if(!c)throw new Error("Cannot redirect to '".concat(r,"'. Cannot find '").concat(n.path,"'."));return c}},{key:"findOrReturn",value:function(r,n){var p,l=0,c=qt(n);try{for(c.s();!(p=c.n()).done;){var _=p.value;if(_.path===r.path)return n.splice(l),_;l++}}catch(w){c.e(w)}finally{c.f()}return r}}]),i}();function AT(i){for(var s={},r=0,n=Object.keys(i.children);r0||p.hasChildren())&&(s[l]=p)}return function KF(i){if(1===i.numberOfChildren&&i.children[An]){var s=i.children[An];return new Fn(i.segments.concat(s.segments),s.children)}return i}(new Fn(i.segments,s))}var $F=L(function i(s){R(this,i),this.path=s,this.route=this.path[this.path.length-1]}),Hw=L(function i(s,r){R(this,i),this.component=s,this.route=r});function z6(i,s,r){var n=i._root;return gy(n,s?s._root:null,r,[n.value])}function zw(i,s,r){var n=function QF(i){if(!i)return null;for(var s=i.parent;s;s=s.parent){var r=s.routeConfig;if(r&&r._loadedConfig)return r._loadedConfig}return null}(s);return(n?n.module.injector:r).get(i)}function gy(i,s,r,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},c=Hv(s);return i.children.forEach(function(p){JF(p,c[p.value.outlet],r,n.concat([p.value]),l),delete c[p.value.outlet]}),ya(c,function(p,_){return _y(p,r.getContext(_),l)}),l}function JF(i,s,r,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},c=i.value,p=s?s.value:null,_=r?r.getContext(i.value.outlet):null;if(p&&c.routeConfig===p.routeConfig){var w=my(p,c,c.routeConfig.runGuardsAndResolvers);w?l.canActivateChecks.push(new $F(n)):(c.data=p.data,c._resolvedData=p._resolvedData),gy(i,s,c.component?_?_.children:null:r,n,l),w&&_&&_.outlet&&_.outlet.isActivated&&l.canDeactivateChecks.push(new Hw(_.outlet.component,p))}else p&&_y(s,_,l),l.canActivateChecks.push(new $F(n)),gy(i,null,c.component?_?_.children:null:r,n,l);return l}function my(i,s,r){if("function"==typeof r)return r(i,s);switch(r){case"pathParamsChange":return!Ph(i.url,s.url);case"pathParamsOrQueryParamsChange":return!Ph(i.url,s.url)||!ra(i.queryParams,s.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!cy(i,s)||!ra(i.queryParams,s.queryParams);default:return!cy(i,s)}}function _y(i,s,r){var n=Hv(i),l=i.value;ya(n,function(c,p){_y(c,l.component?s?s.children.getContext(p):null:s,r)}),r.canDeactivateChecks.push(new Hw(l.component&&s&&s.outlet&&s.outlet.isActivated?s.outlet.component:null,l))}var aN=L(function i(){R(this,i)});function oN(i){return new Jn(function(s){return s.error(i)})}var sN=function(){function i(s,r,n,l,c,p){R(this,i),this.rootComponentType=s,this.config=r,this.urlTree=n,this.url=l,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=p}return L(i,[{key:"recognize",value:function(){var r=Of(this.urlTree.root,[],[],this.config.filter(function(_){return void 0===_.redirectTo}),this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,r,An);if(null===n)return null;var l=new Ew([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},An,this.rootComponentType,null,this.urlTree.root,-1,{}),c=new lc(l,n),p=new Pw(this.url,c);return this.inheritParamsAndData(p._root),p}},{key:"inheritParamsAndData",value:function(r){var n=this,l=r.value,c=yT(l,this.paramsInheritanceStrategy);l.params=Object.freeze(c.params),l.data=Object.freeze(c.data),r.children.forEach(function(p){return n.inheritParamsAndData(p)})}},{key:"processSegmentGroup",value:function(r,n,l){return 0===n.segments.length&&n.hasChildren()?this.processChildren(r,n):this.processSegment(r,n,n.segments,l)}},{key:"processChildren",value:function(r,n){for(var l=[],c=0,p=Object.keys(n.children);c0?SF(l).parameters:{};p=new Ew(l,M,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,fN(r),Rs(r),r.component,r,uN(n),cN(n)+l.length,dN(r))}else{var A=Bw(n,r,l);if(!A.matched)return null;w=A.remainingSegments,p=new Ew(_=A.consumedSegments,A.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,fN(r),Rs(r),r.component,r,uN(n),cN(n)+_.length,dN(r))}var O=function q6(i){return i.children?i.children:i.loadChildren?i._loadedConfig.routes:[]}(r),F=Of(n,_,w,O.filter(function(ae){return void 0===ae.redirectTo}),this.relativeLinkResolution),Y=F.segmentGroup,$=F.slicedSegments;if(0===$.length&&Y.hasChildren()){var oe=this.processChildren(O,Y);return null===oe?null:[new lc(p,oe)]}if(0===O.length&&0===$.length)return[new lc(p,[])];var le=Rs(r)===c,fe=this.processSegment(O,Y,$,le?An:c);return null===fe?null:[new lc(p,fe)]}}]),i}();function lN(i){var l,s=[],r=new Set,n=qt(i);try{var c=function(){var F=l.value;if(!function Z6(i){var s=i.value.routeConfig;return s&&""===s.path&&void 0===s.redirectTo}(F))return s.push(F),"continue";var $,Y=s.find(function(oe){return F.value.routeConfig===oe.value.routeConfig});void 0!==Y?(($=Y.children).push.apply($,yt(F.children)),r.add(Y)):s.push(F)};for(n.s();!(l=n.n()).done;)c()}catch(O){n.e(O)}finally{n.f()}var w,_=qt(r);try{for(_.s();!(w=_.n()).done;){var M=w.value,A=lN(M.children);s.push(new lc(M.value,A))}}catch(O){_.e(O)}finally{_.f()}return s.filter(function(O){return!r.has(O)})}function uN(i){for(var s=i;s._sourceSegment;)s=s._sourceSegment;return s}function cN(i){for(var s=i,r=s._segmentIndexShift?s._segmentIndexShift:0;s._sourceSegment;)r+=(s=s._sourceSegment)._segmentIndexShift?s._segmentIndexShift:0;return r-1}function fN(i){return i.data||{}}function dN(i){return i.resolve||{}}function pN(i){return[].concat(yt(Object.keys(i)),yt(Object.getOwnPropertySymbols(i)))}function by(i){return _a(function(s){var r=i(s);return r?Wi(r).pipe(on(function(){return s})):dt(s)})}var Q6=L(function i(){R(this,i)}),J6=function(){function i(){R(this,i)}return L(i,[{key:"shouldDetach",value:function(r){return!1}},{key:"store",value:function(r,n){}},{key:"shouldAttach",value:function(r){return!1}},{key:"retrieve",value:function(r){return null}},{key:"shouldReuseRoute",value:function(r,n){return r.routeConfig===n.routeConfig}}]),i}(),ej=function(i){se(r,i);var s=ue(r);function r(){return R(this,r),s.apply(this,arguments)}return L(r)}(J6),OT=new Ae("ROUTES"),vN=function(){function i(s,r,n,l){R(this,i),this.injector=s,this.compiler=r,this.onLoadStartListener=n,this.onLoadEndListener=l}return L(i,[{key:"load",value:function(r,n){var l=this;if(n._loader$)return n._loader$;this.onLoadStartListener&&this.onLoadStartListener(n);var p=this.loadModuleFactory(n.loadChildren).pipe(on(function(_){l.onLoadEndListener&&l.onLoadEndListener(n);var w=_.create(r);return new Nw(wF(w.injector.get(OT,void 0,It.Self|It.Optional)).map(kT),w)}),To(function(_){throw n._loader$=void 0,_}));return n._loader$=new o6(p,function(){return new Xe}).pipe(iT()),n._loader$}},{key:"loadModuleFactory",value:function(r){var n=this;return Os(r()).pipe(Ri(function(l){return l instanceof g_?dt(l):Wi(n.compiler.compileModuleAsync(l))}))}}]),i}(),tj=L(function i(){R(this,i)}),gN=function(){function i(){R(this,i)}return L(i,[{key:"shouldProcessUrl",value:function(r){return!0}},{key:"extract",value:function(r){return r}},{key:"merge",value:function(r,n){return r}}]),i}();function mN(i){throw i}function nj(i,s,r){return s.parse("/")}function IT(i,s){return dt(null)}var _N={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},yN={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ba=function(){var i=function(){function s(r,n,l,c,p,_,w){var M=this;R(this,s),this.rootComponentType=r,this.urlSerializer=n,this.rootContexts=l,this.location=c,this.config=w,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Xe,this.errorHandler=mN,this.malformedUriErrorHandler=nj,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:IT,afterPreactivation:IT},this.urlHandlingStrategy=new gN,this.routeReuseStrategy=new ej,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=p.get(qu),this.console=p.get(Zu);var F=p.get(Pt);this.isNgZoneEnabled=F instanceof Pt&&Pt.isInAngularZone(),this.resetConfig(w),this.currentUrlTree=function v6(){return new Ef(new Fn([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new vN(p,_,function($){return M.triggerEvent(new dT($))},function($){return M.triggerEvent(new _F($))}),this.routerState=_T(this.currentUrlTree,this.rootComponentType),this.transitions=new Na({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 L(s,[{key:"browserPageId",get:function(){var n;return null===(n=this.location.getState())||void 0===n?void 0:n.\u0275routerPageId}},{key:"setupNavigations",value:function(n){var l=this,c=this.events;return n.pipe(Ur(function(p){return 0!==p.id}),on(function(p){return Object.assign(Object.assign({},p),{extractedUrl:l.urlHandlingStrategy.extract(p.rawUrl)})}),_a(function(p){var _=!1,w=!1;return dt(p).pipe(ao(function(M){l.currentNavigation={id:M.id,initialUrl:M.currentRawUrl,extractedUrl:M.extractedUrl,trigger:M.source,extras:M.extras,previousNavigation:l.lastSuccessfulNavigation?Object.assign(Object.assign({},l.lastSuccessfulNavigation),{previousNavigation:null}):null}}),_a(function(M){var A=l.browserUrlTree.toString(),O=!l.navigated||M.extractedUrl.toString()!==A||A!==l.currentUrlTree.toString();if(("reload"===l.onSameUrlNavigation||O)&&l.urlHandlingStrategy.shouldProcessUrl(M.rawUrl))return Jo(M.source)&&(l.browserUrlTree=M.extractedUrl),dt(M).pipe(_a(function(Ee){var We=l.transitions.getValue();return c.next(new lT(Ee.id,l.serializeUrl(Ee.extractedUrl),Ee.source,Ee.restoredState)),We!==l.transitions.getValue()?Sr:Promise.resolve(Ee)}),function H6(i,s,r,n){return _a(function(l){return function ZF(i,s,r,n,l){return new XF(i,s,r,n,l).apply()}(i,s,r,l.extractedUrl,n).pipe(on(function(c){return Object.assign(Object.assign({},l),{urlAfterRedirects:c})}))})}(l.ngModule.injector,l.configLoader,l.urlSerializer,l.config),ao(function(Ee){l.currentNavigation=Object.assign(Object.assign({},l.currentNavigation),{finalUrl:Ee.urlAfterRedirects})}),function hN(i,s,r,n,l){return Ri(function(c){return function Y6(i,s,r,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var p=new sN(i,s,r,n,l,c).recognize();return null===p?oN(new aN):dt(p)}catch(_){return oN(_)}}(i,s,c.urlAfterRedirects,r(c.urlAfterRedirects),n,l).pipe(on(function(p){return Object.assign(Object.assign({},c),{targetSnapshot:p})}))})}(l.rootComponentType,l.config,function(Ee){return l.serializeUrl(Ee)},l.paramsInheritanceStrategy,l.relativeLinkResolution),ao(function(Ee){if("eager"===l.urlUpdateStrategy){if(!Ee.extras.skipLocationChange){var We=l.urlHandlingStrategy.merge(Ee.urlAfterRedirects,Ee.rawUrl);l.setBrowserUrl(We,Ee)}l.browserUrlTree=Ee.urlAfterRedirects}var bt=new cT(Ee.id,l.serializeUrl(Ee.extractedUrl),l.serializeUrl(Ee.urlAfterRedirects),Ee.targetSnapshot);c.next(bt)}));if(O&&l.rawUrlTree&&l.urlHandlingStrategy.shouldProcessUrl(l.rawUrlTree)){var oe=M.extractedUrl,le=M.source,fe=M.restoredState,ae=M.extras,we=new lT(M.id,l.serializeUrl(oe),le,fe);c.next(we);var De=_T(oe,l.rootComponentType).snapshot;return dt(Object.assign(Object.assign({},M),{targetSnapshot:De,urlAfterRedirects:oe,extras:Object.assign(Object.assign({},ae),{skipLocationChange:!1,replaceUrl:!1})}))}return l.rawUrlTree=M.rawUrl,M.resolve(null),Sr}),by(function(M){var $=M.extras;return l.hooks.beforePreactivation(M.targetSnapshot,{navigationId:M.id,appliedUrlTree:M.extractedUrl,rawUrlTree:M.rawUrl,skipLocationChange:!!$.skipLocationChange,replaceUrl:!!$.replaceUrl})}),ao(function(M){var A=new gF(M.id,l.serializeUrl(M.extractedUrl),l.serializeUrl(M.urlAfterRedirects),M.targetSnapshot);l.triggerEvent(A)}),on(function(M){return Object.assign(Object.assign({},M),{guards:z6(M.targetSnapshot,M.currentSnapshot,l.rootContexts)})}),function eN(i,s){return Ri(function(r){var n=r.targetSnapshot,l=r.currentSnapshot,c=r.guards,p=c.canActivateChecks,_=c.canDeactivateChecks;return 0===_.length&&0===p.length?dt(Object.assign(Object.assign({},r),{guardsResult:!0})):function tN(i,s,r,n){return Wi(i).pipe(Ri(function(l){return function W6(i,s,r,n,l){var c=s&&s.routeConfig?s.routeConfig.canDeactivate:null;if(!c||0===c.length)return dt(!0);var p=c.map(function(_){var M,w=zw(_,s,l);if(function L6(i){return i&&uc(i.canDeactivate)}(w))M=Os(w.canDeactivate(i,s,r,n));else{if(!uc(w))throw new Error("Invalid CanDeactivate guard");M=Os(w(i,s,r,n))}return M.pipe(xh())});return dt(p).pipe(Lh())}(l.component,l.route,r,s,n)}),xh(function(l){return!0!==l},!0))}(_,n,l,i).pipe(Ri(function(w){return w&&function P6(i){return"boolean"==typeof i}(w)?function nN(i,s,r,n){return Wi(s).pipe(oc(function(l){return Dh(function iN(i,s){return null!==i&&s&&s(new f6(i)),dt(!0)}(l.route.parent,n),function rN(i,s){return null!==i&&s&&s(new Ah(i)),dt(!0)}(l.route,n),function j6(i,s,r){var n=s[s.length-1],l=s.slice(0,s.length-1).reverse().map(function(p){return function G6(i){var s=i.routeConfig?i.routeConfig.canActivateChild:null;return s&&0!==s.length?{node:i,guards:s}:null}(p)}).filter(function(p){return null!==p}),c=l.map(function(p){return Sw(function(){var _=p.guards.map(function(w){var A,M=zw(w,p.node,r);if(function R6(i){return i&&uc(i.canActivateChild)}(M))A=Os(M.canActivateChild(n,i));else{if(!uc(M))throw new Error("Invalid CanActivateChild guard");A=Os(M(n,i))}return A.pipe(xh())});return dt(_).pipe(Lh())})});return dt(c).pipe(Lh())}(i,l.path,r),function U6(i,s,r){var n=s.routeConfig?s.routeConfig.canActivate:null;if(!n||0===n.length)return dt(!0);var l=n.map(function(c){return Sw(function(){var _,p=zw(c,s,r);if(function I6(i){return i&&uc(i.canActivate)}(p))_=Os(p.canActivate(s,i));else{if(!uc(p))throw new Error("Invalid CanActivate guard");_=Os(p(s,i))}return _.pipe(xh())})});return dt(l).pipe(Lh())}(i,l.route,r))}),xh(function(l){return!0!==l},!0))}(n,p,i,s):dt(w)}),on(function(w){return Object.assign(Object.assign({},r),{guardsResult:w})}))})}(l.ngModule.injector,function(M){return l.triggerEvent(M)}),ao(function(M){if(Pf(M.guardsResult)){var A=Mw('Redirecting to "'.concat(l.serializeUrl(M.guardsResult),'"'));throw A.url=M.guardsResult,A}var O=new c6(M.id,l.serializeUrl(M.extractedUrl),l.serializeUrl(M.urlAfterRedirects),M.targetSnapshot,!!M.guardsResult);l.triggerEvent(O)}),Ur(function(M){return!!M.guardsResult||(l.restoreHistory(M),l.cancelNavigationTransition(M,""),!1)}),by(function(M){if(M.guards.canActivateChecks.length)return dt(M).pipe(ao(function(A){var O=new fT(A.id,l.serializeUrl(A.extractedUrl),l.serializeUrl(A.urlAfterRedirects),A.targetSnapshot);l.triggerEvent(O)}),_a(function(A){var O=!1;return dt(A).pipe(function yy(i,s){return Ri(function(r){var n=r.targetSnapshot,l=r.guards.canActivateChecks;if(!l.length)return dt(r);var c=0;return Wi(l).pipe(oc(function(p){return function K6(i,s,r,n){return function $6(i,s,r,n){var l=pN(i);if(0===l.length)return dt({});var c={};return Wi(l).pipe(Ri(function(p){return function PT(i,s,r,n){var l=zw(i,s,n);return Os(l.resolve?l.resolve(s,r):l(s,r))}(i[p],s,r,n).pipe(ao(function(_){c[p]=_}))}),xf(1),Ri(function(){return pN(c).length===l.length?dt(c):Sr}))}(i._resolve,i,s,n).pipe(on(function(c){return i._resolvedData=c,i.data=Object.assign(Object.assign({},i.data),yT(i,r).resolve),null}))}(p.route,n,i,s)}),ao(function(){return c++}),xf(1),Ri(function(p){return c===l.length?dt(r):Sr}))})}(l.paramsInheritanceStrategy,l.ngModule.injector),ao({next:function(){return O=!0},complete:function(){O||(l.restoreHistory(A),l.cancelNavigationTransition(A,"At least one route resolver didn't emit any value."))}}))}),ao(function(A){var O=new mF(A.id,l.serializeUrl(A.extractedUrl),l.serializeUrl(A.urlAfterRedirects),A.targetSnapshot);l.triggerEvent(O)}))}),by(function(M){var $=M.extras;return l.hooks.afterPreactivation(M.targetSnapshot,{navigationId:M.id,appliedUrlTree:M.extractedUrl,rawUrlTree:M.rawUrl,skipLocationChange:!!$.skipLocationChange,replaceUrl:!!$.replaceUrl})}),on(function(M){var A=function CT(i,s,r){var n=fy(i,s._root,r?r._root:void 0);return new IF(n,s)}(l.routeReuseStrategy,M.targetSnapshot,M.currentRouterState);return Object.assign(Object.assign({},M),{targetRouterState:A})}),ao(function(M){l.currentUrlTree=M.urlAfterRedirects,l.rawUrlTree=l.urlHandlingStrategy.merge(M.urlAfterRedirects,M.rawUrl),l.routerState=M.targetRouterState,"deferred"===l.urlUpdateStrategy&&(M.extras.skipLocationChange||l.setBrowserUrl(l.rawUrlTree,M),l.browserUrlTree=M.urlAfterRedirects)}),function(s,r,n){return on(function(l){return new MT(r,l.targetRouterState,l.currentRouterState,n).activate(s),l})}(l.rootContexts,l.routeReuseStrategy,function(M){return l.triggerEvent(M)}),ao({next:function(){_=!0},complete:function(){_=!0}}),function u6(i){return gr(function(s,r){try{s.subscribe(r)}finally{r.add(i)}})}(function(){var M;if(!_&&!w){var A="Navigation ID ".concat(p.id," is not equal to the current navigation id ").concat(l.navigationId);l.cancelNavigationTransition(p,A)}(null===(M=l.currentNavigation)||void 0===M?void 0:M.id)===p.id&&(l.currentNavigation=null)}),To(function(M){if(w=!0,function d6(i){return i&&i[hT]}(M)){var A=Pf(M.url);A||(l.navigated=!0,l.restoreHistory(p,!0));var O=new uT(p.id,l.serializeUrl(p.extractedUrl),M.message);c.next(O),A?setTimeout(function(){var Y=l.urlHandlingStrategy.merge(M.url,l.rawUrlTree),$={skipLocationChange:p.extras.skipLocationChange,replaceUrl:"eager"===l.urlUpdateStrategy||Jo(p.source)};l.scheduleNavigation(Y,"imperative",null,$,{resolve:p.resolve,reject:p.reject,promise:p.promise})},0):p.resolve(!1)}else{l.restoreHistory(p,!0);var F=new vF(p.id,l.serializeUrl(p.extractedUrl),M);c.next(F);try{p.resolve(l.errorHandler(M))}catch(Y){p.reject(Y)}}return Sr}))}))}},{key:"resetRootComponentType",value:function(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}},{key:"setTransition",value:function(n){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),n))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var n=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(l){var c="popstate"===l.type?"popstate":"hashchange";"popstate"===c&&setTimeout(function(){var p,_={replaceUrl:!0},w=(null===(p=l.state)||void 0===p?void 0:p.navigationId)?l.state:null;if(w){var M=Object.assign({},w);delete M.navigationId,delete M.\u0275routerPageId,0!==Object.keys(M).length&&(_.state=M)}var A=n.parseUrl(l.url);n.scheduleNavigation(A,c,w,_)},0)}))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(n){this.events.next(n)}},{key:"resetConfig",value:function(n){GF(n),this.config=n.map(kT),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(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=l.relativeTo,p=l.queryParams,_=l.fragment,w=l.queryParamsHandling,M=l.preserveFragment,A=c||this.routerState.root,O=M?this.currentUrlTree.fragment:_,F=null;switch(w){case"merge":F=Object.assign(Object.assign({},this.currentUrlTree.queryParams),p);break;case"preserve":F=this.currentUrlTree.queryParams;break;default:F=p||null}return null!==F&&(F=this.removeEmptyProps(F)),wT(A,this.currentUrlTree,n,F,null!=O?O:null)}},{key:"navigateByUrl",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},c=Pf(n)?n:this.parseUrl(n),p=this.urlHandlingStrategy.merge(c,this.rawUrlTree);return this.scheduleNavigation(p,"imperative",null,l)}},{key:"navigate",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return rj(n),this.navigateByUrl(this.createUrlTree(n,l),l)}},{key:"serializeUrl",value:function(n){return this.urlSerializer.serialize(n)}},{key:"parseUrl",value:function(n){var l;try{l=this.urlSerializer.parse(n)}catch(c){l=this.malformedUriErrorHandler(c,this.urlSerializer,n)}return l}},{key:"isActive",value:function(n,l){var c;if(c=!0===l?Object.assign({},_N):!1===l?Object.assign({},yN):l,Pf(n))return kw(this.currentUrlTree,n,c);var p=this.parseUrl(n);return kw(this.currentUrlTree,p,c)}},{key:"removeEmptyProps",value:function(n){return Object.keys(n).reduce(function(l,c){var p=n[c];return null!=p&&(l[c]=p),l},{})}},{key:"processNavigations",value:function(){var n=this;this.navigations.subscribe(function(l){n.navigated=!0,n.lastSuccessfulId=l.id,n.currentPageId=l.targetPageId,n.events.next(new Th(l.id,n.serializeUrl(l.extractedUrl),n.serializeUrl(n.currentUrlTree))),n.lastSuccessfulNavigation=n.currentNavigation,l.resolve(!0)},function(l){n.console.warn("Unhandled Navigation Error: ".concat(l))})}},{key:"scheduleNavigation",value:function(n,l,c,p,_){var w,M,A,O,F;if(this.disposed)return Promise.resolve(!1);_?(A=_.resolve,O=_.reject,F=_.promise):F=new Promise(function(le,fe){A=le,O=fe});var $,Y=++this.navigationId;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(c=this.location.getState()),$=c&&c.\u0275routerPageId?c.\u0275routerPageId:p.replaceUrl||p.skipLocationChange?null!==(w=this.browserPageId)&&void 0!==w?w:0:(null!==(M=this.browserPageId)&&void 0!==M?M:0)+1):$=0,this.setTransition({id:Y,targetPageId:$,source:l,restoredState:c,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:p,resolve:A,reject:O,promise:F,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),F.catch(function(le){return Promise.reject(le)})}},{key:"setBrowserUrl",value:function(n,l){var c=this.urlSerializer.serialize(n),p=Object.assign(Object.assign({},l.extras.state),this.generateNgRouterState(l.id,l.targetPageId));this.location.isCurrentPathEqualTo(c)||l.extras.replaceUrl?this.location.replaceState(c,"",p):this.location.go(c,"",p)}},{key:"restoreHistory",value:function(n){var c,p,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var _=this.currentPageId-n.targetPageId,w="popstate"===n.source||"eager"===this.urlUpdateStrategy||this.currentUrlTree===(null===(c=this.currentNavigation)||void 0===c?void 0:c.finalUrl);w&&0!==_?this.location.historyGo(_):this.currentUrlTree===(null===(p=this.currentNavigation)||void 0===p?void 0:p.finalUrl)&&0===_&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(l&&this.resetState(n),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(n,l){var c=new uT(n.id,this.serializeUrl(n.extractedUrl),l);this.triggerEvent(c),n.resolve(!1)}},{key:"generateNgRouterState",value:function(n,l){return"computed"===this.canceledNavigationResolution?{navigationId:n,"\u0275routerPageId":l}:{navigationId:n}}}]),s}();return i.\u0275fac=function(r){lf()},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}();function rj(i){for(var s=0;s2&&void 0!==arguments[2]?arguments[2]:{};R(this,s),this.router=r,this.viewportScroller=n,this.options=l,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},l.scrollPositionRestoration=l.scrollPositionRestoration||"disabled",l.anchorScrolling=l.anchorScrolling||"disabled"}return L(s,[{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 n=this;return this.router.events.subscribe(function(l){l instanceof lT?(n.store[n.lastId]=n.viewportScroller.getScrollPosition(),n.lastSource=l.navigationTrigger,n.restoredId=l.restoredState?l.restoredState.navigationId:0):l instanceof Th&&(n.lastId=l.id,n.scheduleScrollEvent(l,n.router.parseUrl(l.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var n=this;return this.router.events.subscribe(function(l){l instanceof bF&&(l.position?"top"===n.options.scrollPositionRestoration?n.viewportScroller.scrollToPosition([0,0]):"enabled"===n.options.scrollPositionRestoration&&n.viewportScroller.scrollToPosition(l.position):l.anchor&&"enabled"===n.options.anchorScrolling?n.viewportScroller.scrollToAnchor(l.anchor):"disabled"!==n.options.scrollPositionRestoration&&n.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(n,l){this.router.triggerEvent(new bF(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,l))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),s}();return i.\u0275fac=function(r){lf()},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),Fh=new Ae("ROUTER_CONFIGURATION"),CN=new Ae("ROUTER_FORROOT_GUARD"),LT=[z_,{provide:xF,useClass:m6},{provide:Ba,useFactory:function lj(i,s,r,n,l,c){var p=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},_=arguments.length>7?arguments[7]:void 0,w=arguments.length>8?arguments[8]:void 0,M=new Ba(null,i,s,r,n,l,wF(c));return _&&(M.urlHandlingStrategy=_),w&&(M.routeReuseStrategy=w),wy(p,M),p.enableTracing&&M.events.subscribe(function(A){var O,F;null===(O=console.group)||void 0===O||O.call(console,"Router Event: ".concat(A.constructor.name)),console.log(A.toString()),console.log(A),null===(F=console.groupEnd)||void 0===F||F.call(console)}),M},deps:[xF,Tl,z_,kr,F2,OT,Fh,[tj,new ai],[Q6,new ai]]},Tl,{provide:Vr,useFactory:function uj(i){return i.routerState.root},deps:[Ba]},Uw,RT,oj,{provide:Fh,useValue:{enableTracing:!1}}];function Cy(){return new U2("Router",Ba)}var FT=function(){var i=function(){function s(r,n){R(this,s)}return L(s,null,[{key:"forRoot",value:function(n,l){return{ngModule:s,providers:[LT,wN(n),{provide:CN,useFactory:sj,deps:[[Ba,new ai,new Kl]]},{provide:Fh,useValue:l||{}},{provide:tc,useFactory:Ww,deps:[$o,[new gm(wf),new ai],Fh]},{provide:jw,useFactory:NT,deps:[Ba,RL,Fh]},{provide:bN,useExisting:l&&l.preloadingStrategy?l.preloadingStrategy:RT},{provide:U2,multi:!0,useFactory:Cy},[BT,{provide:FC,multi:!0,useFactory:cj,deps:[BT]},{provide:SN,useFactory:fj,deps:[BT]},{provide:tx,multi:!0,useExisting:SN}]]}}},{key:"forChild",value:function(n){return{ngModule:s,providers:[wN(n)]}}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(CN,8),ge(Ba,8))},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({}),i}();function NT(i,s,r){return r.scrollOffset&&s.setOffset(r.scrollOffset),new jw(i,s,r)}function Ww(i,s){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r.useHash?new z8(i,s):new aL(i,s)}function sj(i){return"guarded"}function wN(i){return[{provide:wO,multi:!0,useValue:i},{provide:OT,multi:!0,useValue:i}]}function wy(i,s){i.errorHandler&&(s.errorHandler=i.errorHandler),i.malformedUriErrorHandler&&(s.malformedUriErrorHandler=i.malformedUriErrorHandler),i.onSameUrlNavigation&&(s.onSameUrlNavigation=i.onSameUrlNavigation),i.paramsInheritanceStrategy&&(s.paramsInheritanceStrategy=i.paramsInheritanceStrategy),i.relativeLinkResolution&&(s.relativeLinkResolution=i.relativeLinkResolution),i.urlUpdateStrategy&&(s.urlUpdateStrategy=i.urlUpdateStrategy),i.canceledNavigationResolution&&(s.canceledNavigationResolution=i.canceledNavigationResolution)}var BT=function(){var i=function(){function s(r){R(this,s),this.injector=r,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Xe}return L(s,[{key:"appInitializer",value:function(){var n=this;return this.injector.get(B8,Promise.resolve(null)).then(function(){if(n.destroyed)return Promise.resolve(!0);var c=null,p=new Promise(function(M){return c=M}),_=n.injector.get(Ba),w=n.injector.get(Fh);return"disabled"===w.initialNavigation?(_.setUpLocationChangeListener(),c(!0)):"enabled"===w.initialNavigation||"enabledBlocking"===w.initialNavigation?(_.hooks.afterPreactivation=function(){return n.initNavigation?dt(null):(n.initNavigation=!0,c(!0),n.resultOfPreactivationDone)},_.initialNavigation()):c(!0),p})}},{key:"bootstrapListener",value:function(n){var l=this.injector.get(Fh),c=this.injector.get(Uw),p=this.injector.get(jw),_=this.injector.get(Ba),w=this.injector.get(F_);n===w.components[0]&&(("enabledNonBlocking"===l.initialNavigation||void 0===l.initialNavigation)&&_.initialNavigation(),c.setUpPreloading(),p.init(),_.resetRootComponentType(w.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(kr))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}();function cj(i){return i.appInitializer.bind(i)}function fj(i){return i.bootstrapListener.bind(i)}var SN=new Ae("Router Initializer"),kN=function(){function i(s){R(this,i),this.user=s.user,this.role=s.role,this.admin=s.admin}return L(i,[{key:"isStaff",get:function(){return"staff"===this.role||"admin"===this.role}},{key:"isAdmin",get:function(){return"admin"===this.role}},{key:"isLogged",get:function(){return null!=this.user}}]),i}();function gt(i){return null!=i&&"false"!=="".concat(i)}function Va(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return DN(i)?Number(i):s}function DN(i){return!isNaN(parseFloat(i))&&!isNaN(Number(i))}function Yw(i){return Array.isArray(i)?i:[i]}function Ai(i){return null==i?"":"string"==typeof i?i:"".concat(i,"px")}function vu(i){return i instanceof tt?i.nativeElement:i}function qw(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,r=[];if(null!=i){var c,n=Array.isArray(i)?i:"".concat(i).split(s),l=qt(n);try{for(l.s();!(c=l.n()).done;){var p=c.value,_="".concat(p).trim();_&&r.push(_)}}catch(w){l.e(w)}finally{l.f()}}return r}var dj=["addListener","removeListener"],hj=["addEventListener","removeEventListener"],pj=["on","off"];function gu(i,s,r,n){if(Hn(r)&&(n=r,r=void 0),n)return gu(i,s,r).pipe(rT(n));var c=Pr(function TN(i){return Hn(i.addEventListener)&&Hn(i.removeEventListener)}(i)?hj.map(function(w){return function(M){return i[w](s,M,r)}}):function vj(i){return Hn(i.addListener)&&Hn(i.removeListener)}(i)?dj.map(xN(i,s)):function VT(i){return Hn(i.on)&&Hn(i.off)}(i)?pj.map(xN(i,s)):[],2),p=c[0],_=c[1];if(!p&&gp(i))return Ri(function(w){return gu(w,s,r)})(ji(i));if(!p)throw new TypeError("Invalid event target");return new Jn(function(w){var M=function(){for(var O=arguments.length,F=new Array(O),Y=0;Y2?n-2:0),c=2;c1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=l;var p=this.id,_=this.scheduler;return null!=p&&(this.id=this.recycleAsyncId(_,p,c)),this.pending=!0,this.delay=c,this.id=this.id||this.requestAsyncId(_,this.id,c),this}},{key:"requestAsyncId",value:function(l,c){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Sy.setInterval(l.flush.bind(l,this),p)}},{key:"recycleAsyncId",value:function(l,c){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=p&&this.delay===p&&!1===this.pending)return c;Sy.clearInterval(c)}},{key:"execute",value:function(l,c){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var p=this._execute(l,c);if(p)return p;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(l,c){var _,p=!1;try{this.work(l)}catch(w){p=!0,_=w||new Error("Scheduled action threw falsy error")}if(p)return this.unsubscribe(),_}},{key:"unsubscribe",value:function(){if(!this.closed){var l=this.id,c=this.scheduler,p=c.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Fe(p,this),null!=l&&(this.id=this.recycleAsyncId(c,l,null)),this.delay=null,Ye(qe(r.prototype),"unsubscribe",this).call(this)}}}]),r}(AN),My={schedule:function(s){var r=requestAnimationFrame,n=cancelAnimationFrame,l=My.delegate;l&&(r=l.requestAnimationFrame,n=l.cancelAnimationFrame);var c=r(function(p){n=void 0,s(p)});return new Te(function(){return null==n?void 0:n(c)})},requestAnimationFrame:function(i){function s(){return i.apply(this,arguments)}return s.toString=function(){return i.toString()},s}(function(){var i=My.delegate;return((null==i?void 0:i.requestAnimationFrame)||requestAnimationFrame).apply(void 0,arguments)}),cancelAnimationFrame:function(i){function s(){return i.apply(this,arguments)}return s.toString=function(){return i.toString()},s}(function(){var i=My.delegate;return((null==i?void 0:i.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,arguments)}),delegate:void 0},gj=function(i){se(r,i);var s=ue(r);function r(n,l){var c;return R(this,r),(c=s.call(this,n,l)).scheduler=n,c.work=l,c}return L(r,[{key:"requestAsyncId",value:function(l,c){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==p&&p>0?Ye(qe(r.prototype),"requestAsyncId",this).call(this,l,c,p):(l.actions.push(this),l._scheduled||(l._scheduled=My.requestAnimationFrame(function(){return l.flush(void 0)})))}},{key:"recycleAsyncId",value:function(l,c){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=p&&p>0||null==p&&this.delay>0)return Ye(qe(r.prototype),"recycleAsyncId",this).call(this,l,c,p);l.actions.some(function(_){return _.id===c})||(My.cancelAnimationFrame(c),l._scheduled=void 0)}}]),r}(Zw),EN={now:function(){return(EN.delegate||Date).now()},delegate:void 0},dc=function(){function i(s){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.now;R(this,i),this.schedulerActionCtor=s,this.now=r}return L(i,[{key:"schedule",value:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,l=arguments.length>2?arguments[2]:void 0;return new this.schedulerActionCtor(this,r).schedule(l,n)}}]),i}();dc.now=EN.now;var HT,Xw=function(i){se(r,i);var s=ue(r);function r(n){var l,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dc.now;return R(this,r),(l=s.call(this,n,c)).actions=[],l._active=!1,l._scheduled=void 0,l}return L(r,[{key:"flush",value:function(l){var c=this.actions;if(this._active)c.push(l);else{var p;this._active=!0;do{if(p=l.execute(l.state,l.delay))break}while(l=c.shift());if(this._active=!1,p){for(;l=c.shift();)l.unsubscribe();throw p}}}}]),r}(dc),Kw=function(i){se(r,i);var s=ue(r);function r(){return R(this,r),s.apply(this,arguments)}return L(r,[{key:"flush",value:function(l){this._active=!0;var c=this._scheduled;this._scheduled=void 0;var _,p=this.actions;l=l||p.shift();do{if(_=l.execute(l.state,l.delay))break}while((l=p[0])&&l.id===c&&p.shift());if(this._active=!1,_){for(;(l=p[0])&&l.id===c&&p.shift();)l.unsubscribe();throw _}}}]),r}(Xw),_j=(new Kw(gj),1),Qw={};function Yv(i){return i in Qw&&(delete Qw[i],!0)}var Zv,GT=function(s){var r=_j++;return Qw[r]=!0,HT||(HT=Promise.resolve()),HT.then(function(){return Yv(r)&&s()}),r},yj=function(s){Yv(s)},Jw={setImmediate:function(){var s=Jw.delegate;return((null==s?void 0:s.setImmediate)||GT).apply(void 0,arguments)},clearImmediate:function(s){var r=Jw.delegate;return((null==r?void 0:r.clearImmediate)||yj)(s)},delegate:void 0},UT=function(i){se(r,i);var s=ue(r);function r(n,l){var c;return R(this,r),(c=s.call(this,n,l)).scheduler=n,c.work=l,c}return L(r,[{key:"requestAsyncId",value:function(l,c){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==p&&p>0?Ye(qe(r.prototype),"requestAsyncId",this).call(this,l,c,p):(l.actions.push(this),l._scheduled||(l._scheduled=Jw.setImmediate(l.flush.bind(l,void 0))))}},{key:"recycleAsyncId",value:function(l,c){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=p&&p>0||null==p&&this.delay>0)return Ye(qe(r.prototype),"recycleAsyncId",this).call(this,l,c,p);l.actions.some(function(_){return _.id===c})||(Jw.clearImmediate(c),l._scheduled=void 0)}}]),r}(Zw),e1=function(i){se(r,i);var s=ue(r);function r(){return R(this,r),s.apply(this,arguments)}return L(r,[{key:"flush",value:function(l){this._active=!0;var c=this._scheduled;this._scheduled=void 0;var _,p=this.actions;l=l||p.shift();do{if(_=l.execute(l.state,l.delay))break}while((l=p[0])&&l.id===c&&p.shift());if(this._active=!1,_){for(;(l=p[0])&&l.id===c&&p.shift();)l.unsubscribe();throw _}}}]),r}(Xw),t1=new e1(UT),El=new Xw(Zw),Nh=El;function jT(i){return gr(function(s,r){var n=!1,l=null,c=null,p=!1,_=function(){if(null==c||c.unsubscribe(),c=null,n){n=!1;var A=l;l=null,r.next(A)}p&&r.complete()},w=function(){c=null,p&&r.complete()};s.subscribe(ve(r,function(M){n=!0,l=M,c||ji(i(M)).subscribe(c=ve(r,_,w))},function(){p=!0,(!n||!c||c.closed)&&r.complete()}))})}function WT(i){return i instanceof Date&&!isNaN(i)}function qv(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,s=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Nh,n=-1;return null!=s&&($H(s)?r=s:n=s),new Jn(function(l){var c=WT(i)?+i-r.now():i;c<0&&(c=0);var p=0;return r.schedule(function(){l.closed||(l.next(p++),0<=n?this.schedule(void 0,n):l.complete())},c)})}function ON(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:El;return jT(function(){return qv(i,s)})}try{Zv="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(i){Zv=!1}var Bh,ky,Hh,zh,pn=function(){var i=L(function s(r){R(this,s),this._platformId=r,this.isBrowser=this._platformId?function yU(i){return i===uw}(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&&!Zv)&&"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 i.\u0275fac=function(r){return new(r||i)(ge(yf))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),IN=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function YT(){if(Bh)return Bh;if("object"!=typeof document||!document)return Bh=new Set(IN);var i=document.createElement("input");return Bh=new Set(IN.filter(function(s){return i.setAttribute("type",s),i.type===s}))}function Vh(i){return function RN(){if(null==ky&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return ky=!0}}))}finally{ky=ky||!1}return ky}()?i:!!i.capture}function qT(){if(null==Hh){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Hh=!1;if("scrollBehavior"in document.documentElement.style)Hh=!0;else{var i=Element.prototype.scrollTo;Hh=!!i&&!/\{\s*\[native code\]\s*\}/.test(i.toString())}}return Hh}function ZT(i){if(function r1(){if(null==zh){var i="undefined"!=typeof document?document.head:null;zh=!(!i||!i.createShadowRoot&&!i.attachShadow)}return zh}()){var s=i.getRootNode?i.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&s instanceof ShadowRoot)return s}return null}function Gh(){for(var i="undefined"!=typeof document&&document?document.activeElement:null;i&&i.shadowRoot;){var s=i.shadowRoot.activeElement;if(s===i)break;i=s}return i}function hc(i){return i.composedPath?i.composedPath()[0]:i.target}function XT(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}var bj=new Ae("cdk-dir-doc",{providedIn:"root",factory:function Cj(){return HM(Jt)}}),wj=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,Ei=function(){var i=function(){function s(r){R(this,s),this.value="ltr",this.change=new ye,r&&(this.value=function LN(i){var s=(null==i?void 0:i.toLowerCase())||"";return"auto"===s&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?wj.test(navigator.language)?"rtl":"ltr":"rtl"===s?"rtl":"ltr"}((r.body?r.body.dir:null)||(r.documentElement?r.documentElement.dir:null)||"ltr"))}return L(s,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(bj,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),Dy=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({}),i}(),NN=function(){var i=function(){function s(r,n,l){R(this,s),this._ngZone=r,this._platform=n,this._scrolled=new Xe,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=l}return L(s,[{key:"register",value:function(n){var l=this;this.scrollContainers.has(n)||this.scrollContainers.set(n,n.elementScrolled().subscribe(function(){return l._scrolled.next(n)}))}},{key:"deregister",value:function(n){var l=this.scrollContainers.get(n);l&&(l.unsubscribe(),this.scrollContainers.delete(n))}},{key:"scrolled",value:function(){var n=this,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new Jn(function(c){n._globalSubscription||n._addGlobalListener();var p=l>0?n._scrolled.pipe(ON(l)).subscribe(c):n._scrolled.subscribe(c);return n._scrolledCount++,function(){p.unsubscribe(),n._scrolledCount--,n._scrolledCount||n._removeGlobalListener()}}):dt()}},{key:"ngOnDestroy",value:function(){var n=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(l,c){return n.deregister(c)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(n,l){var c=this.getAncestorScrollContainers(n);return this.scrolled(l).pipe(Ur(function(p){return!p||c.indexOf(p)>-1}))}},{key:"getAncestorScrollContainers",value:function(n){var l=this,c=[];return this.scrollContainers.forEach(function(p,_){l._scrollableContainsElement(_,n)&&c.push(_)}),c}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(n,l){var c=vu(l),p=n.getElementRef().nativeElement;do{if(c==p)return!0}while(c=c.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var n=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return gu(n._getWindow().document,"scroll").subscribe(function(){return n._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(Pt),ge(pn),ge(Jt,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),Ls=function(){var i=function(){function s(r,n,l){var c=this;R(this,s),this._platform=r,this._change=new Xe,this._changeListener=function(p){c._change.next(p)},this._document=l,n.runOutsideAngular(function(){if(r.isBrowser){var p=c._getWindow();p.addEventListener("resize",c._changeListener),p.addEventListener("orientationchange",c._changeListener)}c.change().subscribe(function(){return c._viewportSize=null})})}return L(s,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var n=this._getWindow();n.removeEventListener("resize",this._changeListener),n.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}},{key:"getViewportRect",value:function(){var n=this.getViewportScrollPosition(),l=this.getViewportSize(),c=l.width,p=l.height;return{top:n.top,left:n.left,bottom:n.top+p,right:n.left+c,height:p,width:c}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var n=this._document,l=this._getWindow(),c=n.documentElement,p=c.getBoundingClientRect();return{top:-p.top||n.body.scrollTop||l.scrollY||c.scrollTop||0,left:-p.left||n.body.scrollLeft||l.scrollX||c.scrollLeft||0}}},{key:"change",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return n>0?this._change.pipe(ON(n)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(pn),ge(Pt),ge(Jt,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),If=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({}),i}(),$T=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[Dy,If],Dy,If]}),i}(),o1=function(){function i(){R(this,i)}return L(i,[{key:"attach",value:function(r){return this._attachedHost=r,r.attach(this)}},{key:"detach",value:function(){var r=this._attachedHost;null!=r&&(this._attachedHost=null,r.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(r){this._attachedHost=r}}]),i}(),Rf=function(i){se(r,i);var s=ue(r);function r(n,l,c,p){var _;return R(this,r),(_=s.call(this)).component=n,_.viewContainerRef=l,_.injector=c,_.componentFactoryResolver=p,_}return L(r)}(o1),es=function(i){se(r,i);var s=ue(r);function r(n,l,c){var p;return R(this,r),(p=s.call(this)).templateRef=n,p.viewContainerRef=l,p.context=c,p}return L(r,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=c,Ye(qe(r.prototype),"attach",this).call(this,l)}},{key:"detach",value:function(){return this.context=void 0,Ye(qe(r.prototype),"detach",this).call(this)}}]),r}(o1),xy=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this)).element=n instanceof tt?n.nativeElement:n,l}return L(r)}(o1),Ty=function(){function i(){R(this,i),this._isDisposed=!1,this.attachDomPortal=null}return L(i,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(r){return r instanceof Rf?(this._attachedPortal=r,this.attachComponentPortal(r)):r instanceof es?(this._attachedPortal=r,this.attachTemplatePortal(r)):this.attachDomPortal&&r instanceof xy?(this._attachedPortal=r,this.attachDomPortal(r)):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(r){this._disposeFn=r}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),i}(),QT=function(i){se(r,i);var s=ue(r);function r(n,l,c,p,_){var w,M;return R(this,r),(M=s.call(this)).outletElement=n,M._componentFactoryResolver=l,M._appRef=c,M._defaultInjector=p,M.attachDomPortal=function(A){var O=A.element,F=M._document.createComment("dom-portal");O.parentNode.insertBefore(F,O),M.outletElement.appendChild(O),M._attachedPortal=A,Ye((w=an(M),qe(r.prototype)),"setDisposeFn",w).call(w,function(){F.parentNode&&F.parentNode.replaceChild(O,F)})},M._document=_,M}return L(r,[{key:"attachComponentPortal",value:function(l){var w,c=this,_=(l.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(l.component);return l.viewContainerRef?(w=l.viewContainerRef.createComponent(_,l.viewContainerRef.length,l.injector||l.viewContainerRef.injector),this.setDisposeFn(function(){return w.destroy()})):(w=_.create(l.injector||this._defaultInjector||kr.NULL),this._appRef.attachView(w.hostView),this.setDisposeFn(function(){c._appRef.viewCount>0&&c._appRef.detachView(w.hostView),w.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(w)),this._attachedPortal=l,w}},{key:"attachTemplatePortal",value:function(l){var c=this,p=l.viewContainerRef,_=p.createEmbeddedView(l.templateRef,l.context);return _.rootNodes.forEach(function(w){return c.outletElement.appendChild(w)}),_.detectChanges(),this.setDisposeFn(function(){var w=p.indexOf(_);-1!==w&&p.remove(w)}),this._attachedPortal=l,_}},{key:"dispose",value:function(){Ye(qe(r.prototype),"dispose",this).call(this),this.outletElement.remove()}},{key:"_getComponentRootNode",value:function(l){return l.hostView.rootNodes[0]}}]),r}(Ty),Tj=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c){return R(this,n),r.call(this,l,c)}return L(n)}(es);return i.\u0275fac=function(r){return new(r||i)(z(hr),z(wr))},i.\u0275dir=be({type:i,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[Re]}),i}(),pc=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p){var _,w;return R(this,n),(w=r.call(this))._componentFactoryResolver=l,w._viewContainerRef=c,w._isInitialized=!1,w.attached=new ye,w.attachDomPortal=function(M){var A=M.element,O=w._document.createComment("dom-portal");M.setAttachedHost(an(w)),A.parentNode.insertBefore(O,A),w._getRootNode().appendChild(A),w._attachedPortal=M,Ye((_=an(w),qe(n.prototype)),"setDisposeFn",_).call(_,function(){O.parentNode&&O.parentNode.replaceChild(A,O)})},w._document=p,w}return L(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(c){this.hasAttached()&&!c&&!this._isInitialized||(this.hasAttached()&&Ye(qe(n.prototype),"detach",this).call(this),c&&Ye(qe(n.prototype),"attach",this).call(this,c),this._attachedPortal=c||null)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){Ye(qe(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(c){c.setAttachedHost(this);var p=null!=c.viewContainerRef?c.viewContainerRef:this._viewContainerRef,w=(c.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(c.component),M=p.createComponent(w,p.length,c.injector||p.injector);return p!==this._viewContainerRef&&this._getRootNode().appendChild(M.hostView.rootNodes[0]),Ye(qe(n.prototype),"setDisposeFn",this).call(this,function(){return M.destroy()}),this._attachedPortal=c,this._attachedRef=M,this.attached.emit(M),M}},{key:"attachTemplatePortal",value:function(c){var p=this;c.setAttachedHost(this);var _=this._viewContainerRef.createEmbeddedView(c.templateRef,c.context);return Ye(qe(n.prototype),"setDisposeFn",this).call(this,function(){return p._viewContainerRef.clear()}),this._attachedPortal=c,this._attachedRef=_,this.attached.emit(_),_}},{key:"_getRootNode",value:function(){var c=this._viewContainerRef.element.nativeElement;return c.nodeType===c.ELEMENT_NODE?c:c.parentNode}}]),n}(Ty);return i.\u0275fac=function(r){return new(r||i)(z(Wu),z(wr),z(Jt))},i.\u0275dir=be({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Re]}),i}(),Kv=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({}),i}();function Wt(i){return gr(function(s,r){ji(i).subscribe(ve(r,function(){return r.complete()},Gr)),!r.closed&&s.subscribe(r)})}function ia(i){for(var s=arguments.length,r=new Array(s>1?s-1:0),n=1;nl.height||n.scrollWidth>l.width}}]),i}(),a3=function(){function i(s,r,n,l){var c=this;R(this,i),this._scrollDispatcher=s,this._ngZone=r,this._viewportRuler=n,this._config=l,this._scrollSubscription=null,this._detach=function(){c.disable(),c._overlayRef.hasAttached()&&c._ngZone.run(function(){return c._overlayRef.detach()})}}return L(i,[{key:"attach",value:function(r){this._overlayRef=r}},{key:"enable",value:function(){var r=this;if(!this._scrollSubscription){var n=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(function(){var l=r._viewportRuler.getViewportScrollPosition().top;Math.abs(l-r._initialScrollPosition)>r._config.threshold?r._detach():r._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),i}(),lA=function(){function i(){R(this,i)}return L(i,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),i}();function l1(i,s){return s.some(function(r){return i.bottomr.bottom||i.rightr.right})}function u1(i,s){return s.some(function(r){return i.topr.bottom||i.leftr.right})}var uA=function(){function i(s,r,n,l){R(this,i),this._scrollDispatcher=s,this._viewportRuler=r,this._ngZone=n,this._config=l,this._scrollSubscription=null}return L(i,[{key:"attach",value:function(r){this._overlayRef=r}},{key:"enable",value:function(){var r=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(r._overlayRef.updatePosition(),r._config&&r._config.autoClose){var l=r._overlayRef.overlayElement.getBoundingClientRect(),c=r._viewportRuler.getViewportSize(),p=c.width,_=c.height;l1(l,[{width:p,height:_,bottom:_,right:p,top:0,left:0}])&&(r.disable(),r._ngZone.run(function(){return r._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),i}(),cA=function(){var i=L(function s(r,n,l,c){var p=this;R(this,s),this._scrollDispatcher=r,this._viewportRuler=n,this._ngZone=l,this.noop=function(){return new lA},this.close=function(_){return new a3(p._scrollDispatcher,p._ngZone,p._viewportRuler,_)},this.block=function(){return new Gj(p._viewportRuler,p._document)},this.reposition=function(_){return new uA(p._scrollDispatcher,p._viewportRuler,p._ngZone,_)},this._document=c});return i.\u0275fac=function(r){return new(r||i)(ge(NN),ge(Ls),ge(Pt),ge(Jt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),Ff=L(function i(s){if(R(this,i),this.scrollStrategy=new lA,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,s)for(var n=0,l=Object.keys(s);noe&&(oe=we,$=ae)}}catch(De){le.e(De)}finally{le.f()}return this._isPushed=!1,void this._applyPosition($.position,$.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(_.position,_.originPoint);this._applyPosition(_.position,_.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&Wh(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(mu),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&this._platform.isBrowser){var r=this._lastPosition;if(r){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();var n=this._getOriginPoint(this._originRect,this._containerRect,r);this._applyPosition(r,n)}else this.apply()}}},{key:"withScrollableContainers",value:function(r){return this._scrollables=r,this}},{key:"withPositions",value:function(r){return this._preferredPositions=r,-1===r.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(r){return this._viewportMargin=r,this}},{key:"withFlexibleDimensions",value:function(){var r=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=r,this}},{key:"withGrowAfterOpen",value:function(){var r=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=r,this}},{key:"withPush",value:function(){var r=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=r,this}},{key:"withLockedPosition",value:function(){var r=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=r,this}},{key:"setOrigin",value:function(r){return this._origin=r,this}},{key:"withDefaultOffsetX",value:function(r){return this._offsetX=r,this}},{key:"withDefaultOffsetY",value:function(r){return this._offsetY=r,this}},{key:"withTransformOriginOn",value:function(r){return this._transformOriginSelector=r,this}},{key:"_getOriginPoint",value:function(r,n,l){var c,w;if("center"==l.originX)c=r.left+r.width/2;else{var p=this._isRtl()?r.right:r.left,_=this._isRtl()?r.left:r.right;c="start"==l.originX?p:_}return n.left<0&&(c-=n.left),w="center"==l.originY?r.top+r.height/2:"top"==l.originY?r.top:r.bottom,n.top<0&&(w-=n.top),{x:c,y:w}}},{key:"_getOverlayPoint",value:function(r,n,l){var c;return c="center"==l.overlayX?-n.width/2:"start"===l.overlayX?this._isRtl()?-n.width:0:this._isRtl()?0:-n.width,{x:r.x+c,y:r.y+("center"==l.overlayY?-n.height/2:"top"==l.overlayY?0:-n.height)}}},{key:"_getOverlayFit",value:function(r,n,l,c){var p=l3(n),_=r.x,w=r.y,M=this._getOffset(c,"x"),A=this._getOffset(c,"y");M&&(_+=M),A&&(w+=A);var Y=0-w,$=w+p.height-l.height,oe=this._subtractOverflows(p.width,0-_,_+p.width-l.width),le=this._subtractOverflows(p.height,Y,$),fe=oe*le;return{visibleArea:fe,isCompletelyWithinViewport:p.width*p.height===fe,fitsInViewportVertically:le===p.height,fitsInViewportHorizontally:oe==p.width}}},{key:"_canFitWithFlexibleDimensions",value:function(r,n,l){if(this._hasFlexibleDimensions){var c=l.bottom-n.y,p=l.right-n.x,_=c1(this._overlayRef.getConfig().minHeight),w=c1(this._overlayRef.getConfig().minWidth);return(r.fitsInViewportVertically||null!=_&&_<=c)&&(r.fitsInViewportHorizontally||null!=w&&w<=p)}return!1}},{key:"_pushOverlayOnScreen",value:function(r,n,l){if(this._previousPushAmount&&this._positionLocked)return{x:r.x+this._previousPushAmount.x,y:r.y+this._previousPushAmount.y};var O,F,c=l3(n),p=this._viewportRect,_=Math.max(r.x+c.width-p.width,0),w=Math.max(r.y+c.height-p.height,0),M=Math.max(p.top-l.top-r.y,0),A=Math.max(p.left-l.left-r.x,0);return this._previousPushAmount={x:O=c.width<=p.width?A||-_:r.xA&&!this._isInitialRender&&!this._growAfterOpen&&(_=r.y-A/2)}if("end"===n.overlayX&&!c||"start"===n.overlayX&&c)oe=l.width-r.x+this._viewportMargin,Y=r.x-this._viewportMargin;else if("start"===n.overlayX&&!c||"end"===n.overlayX&&c)$=r.x,Y=l.right-r.x;else{var le=Math.min(l.right-r.x+l.left,r.x),fe=this._lastBoundingBoxSize.width;$=r.x-le,(Y=2*le)>fe&&!this._isInitialRender&&!this._growAfterOpen&&($=r.x-fe/2)}return{top:_,left:$,bottom:w,right:oe,width:Y,height:p}}},{key:"_setBoundingBoxStyles",value:function(r,n){var l=this._calculateBoundingBoxRect(r,n);!this._isInitialRender&&!this._growAfterOpen&&(l.height=Math.min(l.height,this._lastBoundingBoxSize.height),l.width=Math.min(l.width,this._lastBoundingBoxSize.width));var c={};if(this._hasExactPosition())c.top=c.left="0",c.bottom=c.right=c.maxHeight=c.maxWidth="",c.width=c.height="100%";else{var p=this._overlayRef.getConfig().maxHeight,_=this._overlayRef.getConfig().maxWidth;c.height=Ai(l.height),c.top=Ai(l.top),c.bottom=Ai(l.bottom),c.width=Ai(l.width),c.left=Ai(l.left),c.right=Ai(l.right),c.alignItems="center"===n.overlayX?"center":"end"===n.overlayX?"flex-end":"flex-start",c.justifyContent="center"===n.overlayY?"center":"bottom"===n.overlayY?"flex-end":"flex-start",p&&(c.maxHeight=Ai(p)),_&&(c.maxWidth=Ai(_))}this._lastBoundingBoxSize=l,Wh(this._boundingBox.style,c)}},{key:"_resetBoundingBoxStyles",value:function(){Wh(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){Wh(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(r,n){var l={},c=this._hasExactPosition(),p=this._hasFlexibleDimensions,_=this._overlayRef.getConfig();if(c){var w=this._viewportRuler.getViewportScrollPosition();Wh(l,this._getExactOverlayY(n,r,w)),Wh(l,this._getExactOverlayX(n,r,w))}else l.position="static";var M="",A=this._getOffset(n,"x"),O=this._getOffset(n,"y");A&&(M+="translateX(".concat(A,"px) ")),O&&(M+="translateY(".concat(O,"px)")),l.transform=M.trim(),_.maxHeight&&(c?l.maxHeight=Ai(_.maxHeight):p&&(l.maxHeight="")),_.maxWidth&&(c?l.maxWidth=Ai(_.maxWidth):p&&(l.maxWidth="")),Wh(this._pane.style,l)}},{key:"_getExactOverlayY",value:function(r,n,l){var c={top:"",bottom:""},p=this._getOverlayPoint(n,this._overlayRect,r);return this._isPushed&&(p=this._pushOverlayOnScreen(p,this._overlayRect,l)),"bottom"===r.overlayY?c.bottom="".concat(this._document.documentElement.clientHeight-(p.y+this._overlayRect.height),"px"):c.top=Ai(p.y),c}},{key:"_getExactOverlayX",value:function(r,n,l){var c={left:"",right:""},p=this._getOverlayPoint(n,this._overlayRect,r);return this._isPushed&&(p=this._pushOverlayOnScreen(p,this._overlayRect,l)),"right"==(this._isRtl()?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left")?c.right="".concat(this._document.documentElement.clientWidth-(p.x+this._overlayRect.width),"px"):c.left=Ai(p.x),c}},{key:"_getScrollVisibility",value:function(){var r=this._getOriginRect(),n=this._pane.getBoundingClientRect(),l=this._scrollables.map(function(c){return c.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:u1(r,l),isOriginOutsideView:l1(r,l),isOverlayClipped:u1(n,l),isOverlayOutsideView:l1(n,l)}}},{key:"_subtractOverflows",value:function(r){for(var n=arguments.length,l=new Array(n>1?n-1:0),c=1;c0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=r,this._alignItems="flex-start",this}},{key:"left",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=r,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=r,this._alignItems="flex-end",this}},{key:"right",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=r,this._justifyContent="flex-end",this}},{key:"width",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:r}):this._width=r,this}},{key:"height",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:r}):this._height=r,this}},{key:"centerHorizontally",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(r),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(r),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var r=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement.style,l=this._overlayRef.getConfig(),c=l.width,p=l.height,_=l.maxWidth,w=l.maxHeight,M=!("100%"!==c&&"100vw"!==c||_&&"100%"!==_&&"100vw"!==_),A=!("100%"!==p&&"100vh"!==p||w&&"100%"!==w&&"100vh"!==w);r.position=this._cssPosition,r.marginLeft=M?"0":this._leftOffset,r.marginTop=A?"0":this._topOffset,r.marginBottom=this._bottomOffset,r.marginRight=this._rightOffset,M?n.justifyContent="flex-start":"center"===this._justifyContent?n.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?n.justifyContent="flex-end":"flex-end"===this._justifyContent&&(n.justifyContent="flex-start"):n.justifyContent=this._justifyContent,n.alignItems=A?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var r=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement,l=n.style;n.classList.remove(hA),l.justifyContent=l.alignItems=r.marginTop=r.marginBottom=r.marginLeft=r.marginRight=r.position="",this._overlayRef=null,this._isDisposed=!0}}}]),i}(),u3=function(){var i=function(){function s(r,n,l,c){R(this,s),this._viewportRuler=r,this._document=n,this._platform=l,this._overlayContainer=c}return L(s,[{key:"global",value:function(){return new qj}},{key:"flexibleConnectedTo",value:function(n){return new dA(n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(Ls),ge(Jt),ge(pn),ge(Ly))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),f1=function(){var i=function(){function s(r){R(this,s),this._attachedOverlays=[],this._document=r}return L(s,[{key:"ngOnDestroy",value:function(){this.detach()}},{key:"add",value:function(n){this.remove(n),this._attachedOverlays.push(n)}},{key:"remove",value:function(n){var l=this._attachedOverlays.indexOf(n);l>-1&&this._attachedOverlays.splice(l,1),0===this._attachedOverlays.length&&this.detach()}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(Jt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),Zj=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c){var p;return R(this,n),(p=r.call(this,l))._ngZone=c,p._keydownListener=function(_){for(var w=p._attachedOverlays,M=w.length-1;M>-1&&!(w[M]._keydownEvents.observers.length>0&&"break"===function(){var O=w[M]._keydownEvents;return p._ngZone?p._ngZone.run(function(){return O.next(_)}):O.next(_),"break"}());M--);},p}return L(n,[{key:"add",value:function(c){var p=this;Ye(qe(n.prototype),"add",this).call(this,c),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(function(){return p._document.body.addEventListener("keydown",p._keydownListener)}):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}(f1);return i.\u0275fac=function(r){return new(r||i)(ge(Jt),ge(Pt,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),Xj=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p){var _;return R(this,n),(_=r.call(this,l))._platform=c,_._ngZone=p,_._cursorStyleIsSet=!1,_._pointerDownListener=function(w){_._pointerDownEventTarget=hc(w)},_._clickListener=function(w){var M=hc(w),A="click"===w.type&&_._pointerDownEventTarget?_._pointerDownEventTarget:M;_._pointerDownEventTarget=null;for(var O=_._attachedOverlays.slice(),F=function(le){var fe=O[le];if(fe._outsidePointerEvents.observers.length<1||!fe.hasAttached())return"continue";if(fe.overlayElement.contains(M)||fe.overlayElement.contains(A))return"break";var ae=fe._outsidePointerEvents;_._ngZone?_._ngZone.run(function(){return ae.next(w)}):ae.next(w)},Y=O.length-1;Y>-1;Y--){var $=F(Y);if("continue"!==$&&"break"===$)break}},_}return L(n,[{key:"add",value:function(c){var p=this;if(Ye(qe(n.prototype),"add",this).call(this,c),!this._isAttached){var _=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(function(){return p._addEventListeners(_)}):this._addEventListeners(_),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=_.style.cursor,_.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var c=this._document.body;c.removeEventListener("pointerdown",this._pointerDownListener,!0),c.removeEventListener("click",this._clickListener,!0),c.removeEventListener("auxclick",this._clickListener,!0),c.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(c.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}},{key:"_addEventListeners",value:function(c){c.addEventListener("pointerdown",this._pointerDownListener,!0),c.addEventListener("click",this._clickListener,!0),c.addEventListener("auxclick",this._clickListener,!0),c.addEventListener("contextmenu",this._clickListener,!0)}}]),n}(f1);return i.\u0275fac=function(r){return new(r||i)(ge(Jt),ge(pn),ge(Pt,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),pA=0,aa=function(){var i=function(){function s(r,n,l,c,p,_,w,M,A,O,F){R(this,s),this.scrollStrategies=r,this._overlayContainer=n,this._componentFactoryResolver=l,this._positionBuilder=c,this._keyboardDispatcher=p,this._injector=_,this._ngZone=w,this._document=M,this._directionality=A,this._location=O,this._outsideClickDispatcher=F}return L(s,[{key:"create",value:function(n){var l=this._createHostElement(),c=this._createPaneElement(l),p=this._createPortalOutlet(c),_=new Ff(n);return _.direction=_.direction||this._directionality.value,new s3(p,l,c,_,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(n){var l=this._document.createElement("div");return l.id="cdk-overlay-".concat(pA++),l.classList.add("cdk-overlay-pane"),n.appendChild(l),l}},{key:"_createHostElement",value:function(){var n=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(n),n}},{key:"_createPortalOutlet",value:function(n){return this._appRef||(this._appRef=this._injector.get(F_)),new QT(n,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(cA),ge(Ly),ge(Wu),ge(u3),ge(Zj),ge(kr),ge(Pt),ge(Jt),ge(Ei),ge(z_),ge(Xj))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),c3=[{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"}],vA=new Ae("cdk-connected-overlay-scroll-strategy"),f3=function(){var i=L(function s(r){R(this,s),this.elementRef=r});return i.\u0275fac=function(r){return new(r||i)(z(tt))},i.\u0275dir=be({type:i,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),i}(),gA=function(){var i=function(){function s(r,n,l,c,p){R(this,s),this._overlay=r,this._dir=p,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Te.EMPTY,this._attachSubscription=Te.EMPTY,this._detachSubscription=Te.EMPTY,this._positionSubscription=Te.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new ye,this.positionChange=new ye,this.attach=new ye,this.detach=new ye,this.overlayKeydown=new ye,this.overlayOutsideClick=new ye,this._templatePortal=new es(n,l),this._scrollStrategyFactory=c,this.scrollStrategy=this._scrollStrategyFactory()}return L(s,[{key:"offsetX",get:function(){return this._offsetX},set:function(n){this._offsetX=n,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(n){this._offsetY=n,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(n){this._hasBackdrop=gt(n)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(n){this._lockPosition=gt(n)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(n){this._flexibleDimensions=gt(n)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(n){this._growAfterOpen=gt(n)}},{key:"push",get:function(){return this._push},set:function(n){this._push=gt(n)}},{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(n){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),n.origin&&this.open&&this._position.apply()),n.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var n=this;(!this.positions||!this.positions.length)&&(this.positions=c3);var l=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=l.attachments().subscribe(function(){return n.attach.emit()}),this._detachSubscription=l.detachments().subscribe(function(){return n.detach.emit()}),l.keydownEvents().subscribe(function(c){n.overlayKeydown.next(c),27===c.keyCode&&!n.disableClose&&!ia(c)&&(c.preventDefault(),n._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(c){n.overlayOutsideClick.next(c)})}},{key:"_buildConfig",value:function(){var n=this._position=this.positionStrategy||this._createPositionStrategy(),l=new Ff({direction:this._dir,positionStrategy:n,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(l.width=this.width),(this.height||0===this.height)&&(l.height=this.height),(this.minWidth||0===this.minWidth)&&(l.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(l.minHeight=this.minHeight),this.backdropClass&&(l.backdropClass=this.backdropClass),this.panelClass&&(l.panelClass=this.panelClass),l}},{key:"_updatePositionStrategy",value:function(n){var l=this,c=this.positions.map(function(p){return{originX:p.originX,originY:p.originY,overlayX:p.overlayX,overlayY:p.overlayY,offsetX:p.offsetX||l.offsetX,offsetY:p.offsetY||l.offsetY,panelClass:p.panelClass||void 0}});return n.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(c).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var n=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(n),n}},{key:"_getFlexibleConnectedPositionStrategyOrigin",value:function(){return this.origin instanceof f3?this.origin.elementRef:this.origin}},{key:"_attachOverlay",value:function(){var n=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(l){n.backdropClick.emit(l)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function JT(i){var s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return gr(function(r,n){var l=0;r.subscribe(ve(n,function(c){var p=i(c,l++);(p||s)&&n.next(c),!p&&n.complete()}))})}(function(){return n.positionChange.observers.length>0})).subscribe(function(l){n.positionChange.emit(l),0===n.positionChange.observers.length&&n._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(aa),z(hr),z(wr),z(vA),z(Ei,8))},i.\u0275dir=be({type:i,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[xn]}),i}(),d1={provide:vA,deps:[aa],useFactory:function Kj(i){return function(){return i.scrollStrategies.reposition()}}},Nf=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({providers:[aa,d1],imports:[[Dy,Kv,$T],$T]}),i}();function h1(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:El;return gr(function(r,n){var l=null,c=null,p=null,_=function(){if(l){l.unsubscribe(),l=null;var A=c;c=null,n.next(A)}};function w(){var M=p+i,A=s.now();if(A1&&void 0!==arguments[1]?arguments[1]:Ec;return i=null!=i?i:$j,gr(function(r,n){var l,c=!0;r.subscribe(ve(n,function(p){var _=s(p);(c||!i(l,_))&&(c=!1,l=_,n.next(p))}))})}function $j(i,s){return i===s}var h3=function(){var i=function(){function s(){R(this,s)}return L(s,[{key:"create",value:function(n){return"undefined"==typeof MutationObserver?null:new MutationObserver(n)}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),Qj=function(){var i=function(){function s(r){R(this,s),this._mutationObserverFactory=r,this._observedElements=new Map}return L(s,[{key:"ngOnDestroy",value:function(){var n=this;this._observedElements.forEach(function(l,c){return n._cleanupObserver(c)})}},{key:"observe",value:function(n){var l=this,c=vu(n);return new Jn(function(p){var w=l._observeElement(c).subscribe(p);return function(){w.unsubscribe(),l._unobserveElement(c)}})}},{key:"_observeElement",value:function(n){if(this._observedElements.has(n))this._observedElements.get(n).count++;else{var l=new Xe,c=this._mutationObserverFactory.create(function(p){return l.next(p)});c&&c.observe(n,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(n,{observer:c,stream:l,count:1})}return this._observedElements.get(n).stream}},{key:"_unobserveElement",value:function(n){this._observedElements.has(n)&&(this._observedElements.get(n).count--,this._observedElements.get(n).count||this._cleanupObserver(n))}},{key:"_cleanupObserver",value:function(n){if(this._observedElements.has(n)){var l=this._observedElements.get(n),c=l.observer,p=l.stream;c&&c.disconnect(),p.complete(),this._observedElements.delete(n)}}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(h3))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),p1=function(){var i=function(){function s(r,n,l){R(this,s),this._contentObserver=r,this._elementRef=n,this._ngZone=l,this.event=new ye,this._disabled=!1,this._currentSubscription=null}return L(s,[{key:"disabled",get:function(){return this._disabled},set:function(n){this._disabled=gt(n),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(n){this._debounce=Va(n),this._subscribe()}},{key:"ngAfterContentInit",value:function(){!this._currentSubscription&&!this.disabled&&this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var n=this;this._unsubscribe();var l=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){n._currentSubscription=(n.debounce?l.pipe(h1(n.debounce)):l).subscribe(n.event)})}},{key:"_unsubscribe",value:function(){var n;null===(n=this._currentSubscription)||void 0===n||n.unsubscribe()}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Qj),z(tt),z(Pt))},i.\u0275dir=be({type:i,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),i}(),Ny=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({providers:[h3]}),i}();function v1(i,s){return(i.getAttribute(s)||"").match(/\S+/g)||[]}var v3="cdk-describedby-message",g1="cdk-describedby-host",g3=0,m3=function(){var i=function(){function s(r,n){R(this,s),this._platform=n,this._messageRegistry=new Map,this._messagesContainer=null,this._id="".concat(g3++),this._document=r}return L(s,[{key:"describe",value:function(n,l,c){if(this._canBeDescribed(n,l)){var p=yA(l,c);"string"!=typeof l?(_3(l),this._messageRegistry.set(p,{messageElement:l,referenceCount:0})):this._messageRegistry.has(p)||this._createMessageElement(l,c),this._isElementDescribedByMessage(n,p)||this._addMessageReference(n,p)}}},{key:"removeDescription",value:function(n,l,c){var p;if(l&&this._isElementNode(n)){var _=yA(l,c);if(this._isElementDescribedByMessage(n,_)&&this._removeMessageReference(n,_),"string"==typeof l){var w=this._messageRegistry.get(_);w&&0===w.referenceCount&&this._deleteMessageElement(_)}0===(null===(p=this._messagesContainer)||void 0===p?void 0:p.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}}},{key:"ngOnDestroy",value:function(){for(var n,l=this._document.querySelectorAll("[".concat(g1,'="').concat(this._id,'"]')),c=0;c-1&&c!==r._activeItemIndex&&(r._activeItemIndex=c)}})}return L(i,[{key:"skipPredicate",value:function(r){return this._skipPredicateFn=r,this}},{key:"withWrap",value:function(){var r=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=r,this}},{key:"withVerticalOrientation",value:function(){var r=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=r,this}},{key:"withHorizontalOrientation",value:function(r){return this._horizontal=r,this}},{key:"withAllowedModifierKeys",value:function(r){return this._allowedModifierKeys=r,this}},{key:"withTypeAhead",value:function(){var r=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(ao(function(l){return r._pressedLetters.push(l)}),h1(n),Ur(function(){return r._pressedLetters.length>0}),on(function(){return r._pressedLetters.join("")})).subscribe(function(l){for(var c=r._getItemsArray(),p=1;p0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=r,this}},{key:"setActiveItem",value:function(r){var n=this._activeItem;this.updateActiveItem(r),this._activeItem!==n&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(r){var n=this,l=r.keyCode,p=["altKey","ctrlKey","metaKey","shiftKey"].every(function(_){return!r[_]||n._allowedModifierKeys.indexOf(_)>-1});switch(l){case 9:return void this.tabOut.next();case 40:if(this._vertical&&p){this.setNextItemActive();break}return;case 38:if(this._vertical&&p){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&p){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&p){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&p){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&p){this.setLastItemActive();break}return;default:return void((p||ia(r,"shiftKey"))&&(r.key&&1===r.key.length?this._letterKeyStream.next(r.key.toLocaleUpperCase()):(l>=65&&l<=90||l>=48&&l<=57)&&this._letterKeyStream.next(String.fromCharCode(l))))}this._pressedLetters=[],r.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(r){var n=this._getItemsArray(),l="number"==typeof r?r:n.indexOf(r),c=n[l];this._activeItem=null==c?null:c,this._activeItemIndex=l}},{key:"_setActiveItemByDelta",value:function(r){this._wrap?this._setActiveInWrapMode(r):this._setActiveInDefaultMode(r)}},{key:"_setActiveInWrapMode",value:function(r){for(var n=this._getItemsArray(),l=1;l<=n.length;l++){var c=(this._activeItemIndex+r*l+n.length)%n.length;if(!this._skipPredicateFn(n[c]))return void this.setActiveItem(c)}}},{key:"_setActiveInDefaultMode",value:function(r){this._setActiveItemByIndex(this._activeItemIndex+r,r)}},{key:"_setActiveItemByIndex",value:function(r,n){var l=this._getItemsArray();if(l[r]){for(;this._skipPredicateFn(l[r]);)if(!l[r+=n])return;this.setActiveItem(r)}}},{key:"_getItemsArray",value:function(){return this._items instanceof no?this._items.toArray():this._items}}]),i}(),b3=function(i){se(r,i);var s=ue(r);function r(){return R(this,r),s.apply(this,arguments)}return L(r,[{key:"setActiveItem",value:function(l){this.activeItem&&this.activeItem.setInactiveStyles(),Ye(qe(r.prototype),"setActiveItem",this).call(this,l),this.activeItem&&this.activeItem.setActiveStyles()}}]),r}(y3),bA=function(i){se(r,i);var s=ue(r);function r(){var n;return R(this,r),(n=s.apply(this,arguments))._origin="program",n}return L(r,[{key:"setFocusOrigin",value:function(l){return this._origin=l,this}},{key:"setActiveItem",value:function(l){Ye(qe(r.prototype),"setActiveItem",this).call(this,l),this.activeItem&&this.activeItem.focus(this._origin)}}]),r}(y3),C3=function(){var i=function(){function s(r){R(this,s),this._platform=r}return L(s,[{key:"isDisabled",value:function(n){return n.hasAttribute("disabled")}},{key:"isVisible",value:function(n){return function r7(i){return!!(i.offsetWidth||i.offsetHeight||"function"==typeof i.getClientRects&&i.getClientRects().length)}(n)&&"visible"===getComputedStyle(n).visibility}},{key:"isTabbable",value:function(n){if(!this._platform.isBrowser)return!1;var l=function n7(i){try{return i.frameElement}catch(s){return null}}(function c7(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}(n));if(l&&(-1===M3(l)||!this.isVisible(l)))return!1;var c=n.nodeName.toLowerCase(),p=M3(n);return n.hasAttribute("contenteditable")?-1!==p:!("iframe"===c||"object"===c||this._platform.WEBKIT&&this._platform.IOS&&!function CA(i){var s=i.nodeName.toLowerCase(),r="input"===s&&i.type;return"text"===r||"password"===r||"select"===s||"textarea"===s}(n))&&("audio"===c?!!n.hasAttribute("controls")&&-1!==p:"video"===c?-1!==p&&(null!==p||this._platform.FIREFOX||n.hasAttribute("controls")):n.tabIndex>=0)}},{key:"isFocusable",value:function(n,l){return function u7(i){return!function a7(i){return function s7(i){return"input"==i.nodeName.toLowerCase()}(i)&&"hidden"==i.type}(i)&&(function w3(i){var s=i.nodeName.toLowerCase();return"input"===s||"select"===s||"button"===s||"textarea"===s}(i)||function o7(i){return function l7(i){return"a"==i.nodeName.toLowerCase()}(i)&&i.hasAttribute("href")}(i)||i.hasAttribute("contenteditable")||S3(i))}(n)&&!this.isDisabled(n)&&((null==l?void 0:l.ignoreVisibility)||this.isVisible(n))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(pn))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}();function S3(i){if(!i.hasAttribute("tabindex")||void 0===i.tabIndex)return!1;var s=i.getAttribute("tabindex");return!(!s||isNaN(parseInt(s,10)))}function M3(i){if(!S3(i))return null;var s=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(s)?-1:s}var f7=function(){function i(s,r,n,l){var c=this,p=arguments.length>4&&void 0!==arguments[4]&&arguments[4];R(this,i),this._element=s,this._checker=r,this._ngZone=n,this._document=l,this._hasAttached=!1,this.startAnchorListener=function(){return c.focusLastTabbableElement()},this.endAnchorListener=function(){return c.focusFirstTabbableElement()},this._enabled=!0,p||this.attachAnchors()}return L(i,[{key:"enabled",get:function(){return this._enabled},set:function(r){this._enabled=r,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}},{key:"destroy",value:function(){var r=this._startAnchor,n=this._endAnchor;r&&(r.removeEventListener("focus",this.startAnchorListener),r.remove()),n&&(n.removeEventListener("focus",this.endAnchorListener),n.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var r=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){r._startAnchor||(r._startAnchor=r._createAnchor(),r._startAnchor.addEventListener("focus",r.startAnchorListener)),r._endAnchor||(r._endAnchor=r._createAnchor(),r._endAnchor.addEventListener("focus",r.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(r){var n=this;return new Promise(function(l){n._executeOnStable(function(){return l(n.focusInitialElement(r))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(r){var n=this;return new Promise(function(l){n._executeOnStable(function(){return l(n.focusFirstTabbableElement(r))})})}},{key:"focusLastTabbableElementWhenReady",value:function(r){var n=this;return new Promise(function(l){n._executeOnStable(function(){return l(n.focusLastTabbableElement(r))})})}},{key:"_getRegionBoundary",value:function(r){var n=this._element.querySelectorAll("[cdk-focus-region-".concat(r,"], ")+"[cdkFocusRegion".concat(r,"], ")+"[cdk-focus-".concat(r,"]"));return"start"==r?n.length?n[0]:this._getFirstTabbableElement(this._element):n.length?n[n.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(r){var n=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(n){if(!this._checker.isFocusable(n)){var l=this._getFirstTabbableElement(n);return null==l||l.focus(r),!!l}return n.focus(r),!0}return this.focusFirstTabbableElement(r)}},{key:"focusFirstTabbableElement",value:function(r){var n=this._getRegionBoundary("start");return n&&n.focus(r),!!n}},{key:"focusLastTabbableElement",value:function(r){var n=this._getRegionBoundary("end");return n&&n.focus(r),!!n}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(r){if(this._checker.isFocusable(r)&&this._checker.isTabbable(r))return r;for(var n=r.children,l=0;l=0;l--){var c=n[l].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(n[l]):null;if(c)return c}return null}},{key:"_createAnchor",value:function(){var r=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,r),r.classList.add("cdk-visually-hidden"),r.classList.add("cdk-focus-trap-anchor"),r.setAttribute("aria-hidden","true"),r}},{key:"_toggleAnchorTabIndex",value:function(r,n){r?n.setAttribute("tabindex","0"):n.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(r){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}},{key:"_executeOnStable",value:function(r){this._ngZone.isStable?r():this._ngZone.onStable.pipe(gn(1)).subscribe(r)}}]),i}(),k3=function(){var i=function(){function s(r,n,l){R(this,s),this._checker=r,this._ngZone=n,this._document=l}return L(s,[{key:"create",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new f7(n,this._checker,this._ngZone,this._document,l)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(C3),ge(Pt),ge(Jt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),d7=function(){var i=function(){function s(r,n,l){R(this,s),this._elementRef=r,this._focusTrapFactory=n,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return L(s,[{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(n){this.focusTrap.enabled=gt(n)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(n){this._autoCapture=gt(n)}},{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(n){var l=n.autoCapture;l&&!l.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}},{key:"_captureFocus",value:function(){this._previouslyFocusedElement=Gh(),this.focusTrap.focusInitialElementWhenReady()}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(tt),z(k3),z(Jt))},i.\u0275dir=be({type:i,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[xn]}),i}();function SA(i){return 0===i.buttons||0===i.offsetX&&0===i.offsetY}function MA(i){var s=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return!(!s||-1!==s.identifier||null!=s.radiusX&&1!==s.radiusX||null!=s.radiusY&&1!==s.radiusY)}var D3=new Ae("cdk-input-modality-detector-options"),x3={ignoreKeys:[18,17,224,91,16]},tg=Vh({passive:!0,capture:!0}),h7=function(){var i=function(){function s(r,n,l,c){var p=this;R(this,s),this._platform=r,this._mostRecentTarget=null,this._modality=new Na(null),this._lastTouchMs=0,this._onKeydown=function(_){var w,M;(null===(M=null===(w=p._options)||void 0===w?void 0:w.ignoreKeys)||void 0===M?void 0:M.some(function(A){return A===_.keyCode}))||(p._modality.next("keyboard"),p._mostRecentTarget=hc(_))},this._onMousedown=function(_){Date.now()-p._lastTouchMs<650||(p._modality.next(SA(_)?"keyboard":"mouse"),p._mostRecentTarget=hc(_))},this._onTouchstart=function(_){MA(_)?p._modality.next("keyboard"):(p._lastTouchMs=Date.now(),p._modality.next("touch"),p._mostRecentTarget=hc(_))},this._options=Object.assign(Object.assign({},x3),c),this.modalityDetected=this._modality.pipe(_A(1)),this.modalityChanged=this.modalityDetected.pipe(Fy()),r.isBrowser&&n.runOutsideAngular(function(){l.addEventListener("keydown",p._onKeydown,tg),l.addEventListener("mousedown",p._onMousedown,tg),l.addEventListener("touchstart",p._onTouchstart,tg)})}return L(s,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,tg),document.removeEventListener("mousedown",this._onMousedown,tg),document.removeEventListener("touchstart",this._onTouchstart,tg))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(pn),ge(Pt),ge(Jt),ge(D3,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),p7=new Ae("liveAnnouncerElement",{providedIn:"root",factory:function A3(){return null}}),E3=new Ae("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),kA=function(){var i=function(){function s(r,n,l,c){R(this,s),this._ngZone=n,this._defaultOptions=c,this._document=l,this._liveElement=r||this._createLiveElement()}return L(s,[{key:"announce",value:function(n){for(var p,_,l=this,c=this._defaultOptions,w=arguments.length,M=new Array(w>1?w-1:0),A=1;A1&&void 0!==arguments[1]&&arguments[1],c=vu(n);if(!this._platform.isBrowser||1!==c.nodeType)return dt(null);var p=ZT(c)||this._getDocument(),_=this._elementInfo.get(c);if(_)return l&&(_.checkChildren=!0),_.subject;var w={checkChildren:l,subject:new Xe,rootNode:p};return this._elementInfo.set(c,w),this._registerGlobalListeners(w),w.subject}},{key:"stopMonitoring",value:function(n){var l=vu(n),c=this._elementInfo.get(l);c&&(c.subject.complete(),this._setClasses(l),this._elementInfo.delete(l),this._removeGlobalListeners(c))}},{key:"focusVia",value:function(n,l,c){var p=this,_=vu(n);_===this._getDocument().activeElement?this._getClosestElementsInfo(_).forEach(function(M){var A=Pr(M,2);return p._originChanged(A[0],l,A[1])}):(this._setOrigin(l),"function"==typeof _.focus&&_.focus(c))}},{key:"ngOnDestroy",value:function(){var n=this;this._elementInfo.forEach(function(l,c){return n.stopMonitoring(c)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_getFocusOrigin",value:function(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(n){return 1===this._detectionMode||!!(null==n?void 0:n.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(n,l){n.classList.toggle("cdk-focused",!!l),n.classList.toggle("cdk-touch-focused","touch"===l),n.classList.toggle("cdk-keyboard-focused","keyboard"===l),n.classList.toggle("cdk-mouse-focused","mouse"===l),n.classList.toggle("cdk-program-focused","program"===l)}},{key:"_setOrigin",value:function(n){var l=this,c=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){l._origin=n,l._originFromTouchInteraction="touch"===n&&c,0===l._detectionMode&&(clearTimeout(l._originTimeoutId),l._originTimeoutId=setTimeout(function(){return l._origin=null},l._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(n,l){var c=this._elementInfo.get(l),p=hc(n);!c||!c.checkChildren&&l!==p||this._originChanged(l,this._getFocusOrigin(p),c)}},{key:"_onBlur",value:function(n,l){var c=this._elementInfo.get(l);!c||c.checkChildren&&n.relatedTarget instanceof Node&&l.contains(n.relatedTarget)||(this._setClasses(l),this._emitOrigin(c.subject,null))}},{key:"_emitOrigin",value:function(n,l){this._ngZone.run(function(){return n.next(l)})}},{key:"_registerGlobalListeners",value:function(n){var l=this;if(this._platform.isBrowser){var c=n.rootNode,p=this._rootNodeFocusListenerCount.get(c)||0;p||this._ngZone.runOutsideAngular(function(){c.addEventListener("focus",l._rootNodeFocusAndBlurListener,Bf),c.addEventListener("blur",l._rootNodeFocusAndBlurListener,Bf)}),this._rootNodeFocusListenerCount.set(c,p+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){l._getWindow().addEventListener("focus",l._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Wt(this._stopInputModalityDetector)).subscribe(function(_){l._setOrigin(_,!0)}))}}},{key:"_removeGlobalListeners",value:function(n){var l=n.rootNode;if(this._rootNodeFocusListenerCount.has(l)){var c=this._rootNodeFocusListenerCount.get(l);c>1?this._rootNodeFocusListenerCount.set(l,c-1):(l.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Bf),l.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Bf),this._rootNodeFocusListenerCount.delete(l))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(n,l,c){this._setClasses(n,l),this._emitOrigin(c.subject,l),this._lastFocusOrigin=l}},{key:"_getClosestElementsInfo",value:function(n){var l=[];return this._elementInfo.forEach(function(c,p){(p===n||c.checkChildren&&p.contains(n))&&l.push([p,c])}),l}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(Pt),ge(pn),ge(h7),ge(Jt,8),ge(v7,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),P3=function(){var i=function(){function s(r,n){R(this,s),this._elementRef=r,this._focusMonitor=n,this.cdkFocusChange=new ye}return L(s,[{key:"ngAfterViewInit",value:function(){var n=this,l=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(l,1===l.nodeType&&l.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(c){return n.cdkFocusChange.emit(c)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(tt),z(Rl))},i.\u0275dir=be({type:i,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),i}(),O3="cdk-high-contrast-black-on-white",I3="cdk-high-contrast-white-on-black",DA="cdk-high-contrast-active",R3=function(){var i=function(){function s(r,n){R(this,s),this._platform=r,this._document=n}return L(s,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);var l=this._document.defaultView||window,c=l&&l.getComputedStyle?l.getComputedStyle(n):null,p=(c&&c.backgroundColor||"").replace(/ /g,"");switch(n.remove(),p){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 n=this._document.body.classList;n.remove(DA),n.remove(O3),n.remove(I3),this._hasCheckedHighContrastMode=!0;var l=this.getHighContrastMode();1===l?(n.add(DA),n.add(O3)):2===l&&(n.add(DA),n.add(I3))}}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(pn),ge(Jt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),xA=function(){var i=L(function s(r){R(this,s),r._applyBodyHighContrastModeCssClasses()});return i.\u0275fac=function(r){return new(r||i)(ge(R3))},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[Ny]]}),i}(),L3=L(function i(){R(this,i)}),g7=L(function i(){R(this,i)}),vc="*";function zi(i,s){return{type:7,name:i,definitions:s,options:{}}}function $n(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:s,timings:i}}function TA(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:i,options:s}}function m1(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:i,options:s}}function mt(i){return{type:6,styles:i,offset:null}}function Wn(i,s,r){return{type:0,name:i,styles:s,options:r}}function Vf(i){return{type:5,steps:i}}function Yn(i,s){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:i,animation:s,options:r}}function _1(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:i}}function y1(i,s){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:i,animation:s,options:r}}function F3(i){Promise.resolve(null).then(i)}var By=function(){function i(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;R(this,i),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=s+r}return L(i,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(r){return r()}),this._onDoneFns=[])}},{key:"onStart",value:function(r){this._onStartFns.push(r)}},{key:"onDone",value:function(r){this._onDoneFns.push(r)}},{key:"onDestroy",value:function(r){this._onDestroyFns.push(r)}},{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 r=this;F3(function(){return r._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(r){return r()}),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(r){return r()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(r){this._position=this.totalTime?r*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(r){var n="start"==r?this._onStartFns:this._onDoneFns;n.forEach(function(l){return l()}),n.length=0}}]),i}(),N3=function(){function i(s){var r=this;R(this,i),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=s;var n=0,l=0,c=0,p=this.players.length;0==p?F3(function(){return r._onFinish()}):this.players.forEach(function(_){_.onDone(function(){++n==p&&r._onFinish()}),_.onDestroy(function(){++l==p&&r._onDestroy()}),_.onStart(function(){++c==p&&r._onStart()})}),this.totalTime=this.players.reduce(function(_,w){return Math.max(_,w.totalTime)},0)}return L(i,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(r){return r()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(r){return r.init()})}},{key:"onStart",value:function(r){this._onStartFns.push(r)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(r){return r()}),this._onStartFns=[])}},{key:"onDone",value:function(r){this._onDoneFns.push(r)}},{key:"onDestroy",value:function(r){this._onDestroyFns.push(r)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(r){return r.play()})}},{key:"pause",value:function(){this.players.forEach(function(r){return r.pause()})}},{key:"restart",value:function(){this.players.forEach(function(r){return r.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(r){return r.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(r){return r.destroy()}),this._onDestroyFns.forEach(function(r){return r()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(r){return r.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(r){var n=r*this.totalTime;this.players.forEach(function(l){var c=l.totalTime?Math.min(1,n/l.totalTime):1;l.setPosition(c)})}},{key:"getPosition",value:function(){var r=this.players.reduce(function(n,l){return null===n||l.totalTime>n.totalTime?l:n},null);return null!=r?r.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(r){r.beforeDestroy&&r.beforeDestroy()})}},{key:"triggerCallback",value:function(r){var n="start"==r?this._onStartFns:this._onDoneFns;n.forEach(function(l){return l()}),n.length=0}}]),i}(),Nn=!1;function B3(i){return new st(3e3,Nn)}function U3(i){return new st(3502,Nn)}function F7(){return new st(3300,Nn)}function N7(i){return new st(3504,Nn)}function U7(){return"undefined"!=typeof window&&void 0!==window.document}function EA(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Hf(i){switch(i.length){case 0:return new By;case 1:return i[0];default:return new N3(i)}}function W3(i,s,r,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},p=[],_=[],w=-1,M=null;if(n.forEach(function(A){var O=A.offset,F=O==w,Y=F&&M||{};Object.keys(A).forEach(function($){var oe=$,le=A[$];if("offset"!==$)switch(oe=s.normalizePropertyName(oe,p),le){case"!":le=l[$];break;case vc:le=c[$];break;default:le=s.normalizeStyleValue($,oe,le,p)}Y[oe]=le}),F||_.push(Y),M=Y,w=O}),p.length)throw U3();return _}function PA(i,s,r,n){switch(s){case"start":i.onStart(function(){return n(r&&w1(r,"start",i))});break;case"done":i.onDone(function(){return n(r&&w1(r,"done",i))});break;case"destroy":i.onDestroy(function(){return n(r&&w1(r,"destroy",i))})}}function w1(i,s,r){var n=r.totalTime,c=OA(i.element,i.triggerName,i.fromState,i.toState,s||i.phaseName,null==n?i.totalTime:n,!!r.disabled),p=i._data;return null!=p&&(c._data=p),c}function OA(i,s,r,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,p=arguments.length>6?arguments[6]:void 0;return{element:i,triggerName:s,fromState:r,toState:n,phaseName:l,totalTime:c,disabled:!!p}}function ts(i,s,r){var n;return i instanceof Map?(n=i.get(s))||i.set(s,n=r):(n=i[s])||(n=i[s]=r),n}function Y3(i){var s=i.indexOf(":");return[i.substring(1,s),i.substr(s+1)]}var IA=function(s,r){return!1},q3=function(s,r,n){return[]},Z3=null;function S1(i){var s=i.parentNode||i.host;return s===Z3?null:s}(EA()||"undefined"!=typeof Element)&&(U7()?(Z3=function(){return document.documentElement}(),IA=function(s,r){for(;r;){if(r===s)return!0;r=S1(r)}return!1}):IA=function(s,r){return s.contains(r)},q3=function(s,r,n){if(n)return Array.from(s.querySelectorAll(r));var l=s.querySelector(r);return l?[l]:[]});var zf=null,X3=!1;function M1(i){zf||(zf=function W7(){return"undefined"!=typeof document?document.body:null}()||{},X3=!!zf.style&&"WebkitAppearance"in zf.style);var s=!0;return zf.style&&!function j7(i){return"ebkit"==i.substring(1,6)}(i)&&!(s=i in zf.style)&&X3&&(s="Webkit"+i.charAt(0).toUpperCase()+i.substr(1)in zf.style),s}var K3=IA,$3=q3,LA=function(){var i=function(){function s(){R(this,s)}return L(s,[{key:"validateStyleProperty",value:function(n){return M1(n)}},{key:"matchesElement",value:function(n,l){return!1}},{key:"containsElement",value:function(n,l){return K3(n,l)}},{key:"getParentElement",value:function(n){return S1(n)}},{key:"query",value:function(n,l,c){return $3(n,l,c)}},{key:"computeStyle",value:function(n,l,c){return c||""}},{key:"animate",value:function(n,l,c,p,_){return new By(c,p)}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),k1=function(){var i=L(function s(){R(this,s)});return i.NOOP=new LA,i}(),eB="ng-enter",NA="ng-leave",Vy="ng-trigger",D1=".ng-trigger",BA="ng-animating",x1=".ng-animating";function gc(i){if("number"==typeof i)return i;var s=i.match(/^(-?[\.\d]+)(m?s)/);return!s||s.length<2?0:Gf(parseFloat(s[1]),s[2])}function Gf(i,s){return"s"===s?1e3*i:i}function Hy(i,s,r){return i.hasOwnProperty("duration")?i:function tB(i,s,r){var l,c=0,p="";if("string"==typeof i){var _=i.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===_)return s.push(B3()),{duration:0,delay:0,easing:""};l=Gf(parseFloat(_[1]),_[2]);var w=_[3];null!=w&&(c=Gf(parseFloat(w),_[4]));var M=_[5];M&&(p=M)}else l=i;if(!r){var A=!1,O=s.length;l<0&&(s.push(function V3(){return new st(3100,Nn)}()),A=!0),c<0&&(s.push(function y7(){return new st(3101,Nn)}()),A=!0),A&&s.splice(O,0,B3())}return{duration:l,delay:c,easing:p}}(i,s,r)}function ng(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(i).forEach(function(r){s[r]=i[r]}),s}function Uf(i,s){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(s)for(var n in i)r[n]=i[n];else ng(i,r);return r}function nB(i,s,r){return r?s+":"+r+";":""}function rB(i){for(var s="",r=0;r *";case":leave":return"* => void";case":increment":return function(r,n){return parseFloat(n)>parseFloat(r)};case":decrement":return function(r,n){return parseFloat(n) *"}}(i,r);if("function"==typeof n)return void s.push(n);i=n}var l=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==l||l.length<4)return r.push(function O7(i){return new st(3015,Nn)}()),s;var c=l[1],p=l[2],_=l[3];s.push(GA(c,_)),"<"==p[0]&&!("*"==c&&"*"==_)&&s.push(GA(_,c))}(n,r,s)}):r.push(i),r}var P1=new Set(["true","1"]),O1=new Set(["false","0"]);function GA(i,s){var r=P1.has(i)||O1.has(i),n=P1.has(s)||O1.has(s);return function(l,c){var p="*"==i||i==l,_="*"==s||s==c;return!p&&r&&"boolean"==typeof l&&(p=l?P1.has(i):O1.has(i)),!_&&n&&"boolean"==typeof c&&(_=c?P1.has(s):O1.has(s)),p&&_}}var mc=new RegExp("s*".concat(":self","s*,?"),"g");function lB(i,s,r,n){return new nW(i).build(s,r,n)}var nW=function(){function i(s){R(this,i),this._driver=s}return L(i,[{key:"build",value:function(r,n,l){var c=new aW(n);this._resetContextStyleTimingState(c);var p=so(this,Xh(r),c);return c.unsupportedCSSPropertiesFound.size&&yt(c.unsupportedCSSPropertiesFound.keys()),p}},{key:"_resetContextStyleTimingState",value:function(r){r.currentQuerySelector="",r.collectedStyles={},r.collectedStyles[""]={},r.currentTime=0}},{key:"visitTrigger",value:function(r,n){var l=this,c=n.queryCount=0,p=n.depCount=0,_=[],w=[];return"@"==r.name.charAt(0)&&n.errors.push(function S7(){return new st(3006,Nn)}()),r.definitions.forEach(function(M){if(l._resetContextStyleTimingState(n),0==M.type){var A=M,O=A.name;O.toString().split(/\s*,\s*/).forEach(function(Y){A.name=Y,_.push(l.visitState(A,n))}),A.name=O}else if(1==M.type){var F=l.visitTransition(M,n);c+=F.queryCount,p+=F.depCount,w.push(F)}else n.errors.push(function M7(){return new st(3007,Nn)}())}),{type:7,name:r.name,states:_,transitions:w,queryCount:c,depCount:p,options:null}}},{key:"visitState",value:function(r,n){var l=this.visitStyle(r.styles,n),c=r.options&&r.options.params||null;if(l.containsDynamicStyles){var p=new Set,_=c||{};l.styles.forEach(function(M){if(I1(M)){var A=M;Object.keys(A).forEach(function(O){iB(A[O]).forEach(function(F){_.hasOwnProperty(F)||p.add(F)})})}}),p.size&&(T1(p.values()),n.errors.push(function k7(i,s){return new st(3008,Nn)}()))}return{type:0,name:r.name,style:l,options:c?{params:c}:null}}},{key:"visitTransition",value:function(r,n){n.queryCount=0,n.depCount=0;var l=so(this,Xh(r.animation),n);return{type:1,matchers:eW(r.expr,n.errors),animation:l,queryCount:n.queryCount,depCount:n.depCount,options:Kh(r.options)}}},{key:"visitSequence",value:function(r,n){var l=this;return{type:2,steps:r.steps.map(function(c){return so(l,c,n)}),options:Kh(r.options)}}},{key:"visitGroup",value:function(r,n){var l=this,c=n.currentTime,p=0,_=r.steps.map(function(w){n.currentTime=c;var M=so(l,w,n);return p=Math.max(p,n.currentTime),M});return n.currentTime=p,{type:3,steps:_,options:Kh(r.options)}}},{key:"visitAnimate",value:function(r,n){var l=function sW(i,s){if(i.hasOwnProperty("duration"))return i;if("number"==typeof i)return UA(Hy(i,s).duration,0,"");var n=i,l=n.split(/\s+/).some(function(_){return"{"==_.charAt(0)&&"{"==_.charAt(1)});if(l){var c=UA(0,0,"");return c.dynamic=!0,c.strValue=n,c}var p=Hy(n,s);return UA(p.duration,p.delay,p.easing)}(r.timings,n.errors);n.currentAnimateTimings=l;var c,p=r.styles?r.styles:mt({});if(5==p.type)c=this.visitKeyframes(p,n);else{var _=r.styles,w=!1;if(!_){w=!0;var M={};l.easing&&(M.easing=l.easing),_=mt(M)}n.currentTime+=l.duration+l.delay;var A=this.visitStyle(_,n);A.isEmptyStep=w,c=A}return n.currentAnimateTimings=null,{type:4,timings:l,style:c,options:null}}},{key:"visitStyle",value:function(r,n){var l=this._makeStyleAst(r,n);return this._validateStyleAst(l,n),l}},{key:"_makeStyleAst",value:function(r,n){var l=[];Array.isArray(r.styles)?r.styles.forEach(function(_){"string"==typeof _?_==vc?l.push(_):n.errors.push(function D7(i){return new st(3002,Nn)}()):l.push(_)}):l.push(r.styles);var c=!1,p=null;return l.forEach(function(_){if(I1(_)){var w=_,M=w.easing;if(M&&(p=M,delete w.easing),!c)for(var A in w)if(w[A].toString().indexOf("{{")>=0){c=!0;break}}}),{type:6,styles:l,easing:p,offset:r.offset,containsDynamicStyles:c,options:null}}},{key:"_validateStyleAst",value:function(r,n){var l=this,c=n.currentAnimateTimings,p=n.currentTime,_=n.currentTime;c&&_>0&&(_-=c.duration+c.delay),r.styles.forEach(function(w){"string"!=typeof w&&Object.keys(w).forEach(function(M){if(!l._driver.validateStyleProperty(M))return delete w[M],void n.unsupportedCSSPropertiesFound.add(M);var A=n.collectedStyles[n.currentQuerySelector],O=A[M],F=!0;O&&(_!=p&&_>=O.startTime&&p<=O.endTime&&(n.errors.push(function x7(i,s,r,n,l){return new st(3010,Nn)}()),F=!1),_=O.startTime),F&&(A[M]={startTime:_,endTime:p}),n.options&&function q7(i,s,r){var n=s.params||{},l=iB(i);l.length&&l.forEach(function(c){n.hasOwnProperty(c)||r.push(function b7(i){return new st(3001,Nn)}())})}(w[M],n.options,n.errors)})})}},{key:"visitKeyframes",value:function(r,n){var l=this,c={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(function T7(){return new st(3011,Nn)}()),c;var _=0,w=[],M=!1,A=!1,O=0,F=r.steps.map(function(we){var De=l._makeStyleAst(we,n),Ee=null!=De.offset?De.offset:function oW(i){if("string"==typeof i)return null;var s=null;if(Array.isArray(i))i.forEach(function(n){if(I1(n)&&n.hasOwnProperty("offset")){var l=n;s=parseFloat(l.offset),delete l.offset}});else if(I1(i)&&i.hasOwnProperty("offset")){var r=i;s=parseFloat(r.offset),delete r.offset}return s}(De.styles),We=0;return null!=Ee&&(_++,We=De.offset=Ee),A=A||We<0||We>1,M=M||We0&&_0?De==oe?1:$*De:w[De],We=Ee*ae;n.currentTime=le+fe.delay+We,fe.duration=We,l._validateStyleAst(we,n),we.offset=Ee,c.styles.push(we)}),c}},{key:"visitReference",value:function(r,n){return{type:8,animation:so(this,Xh(r.animation),n),options:Kh(r.options)}}},{key:"visitAnimateChild",value:function(r,n){return n.depCount++,{type:9,options:Kh(r.options)}}},{key:"visitAnimateRef",value:function(r,n){return{type:10,animation:this.visitReference(r.animation,n),options:Kh(r.options)}}},{key:"visitQuery",value:function(r,n){var l=n.currentQuerySelector,c=r.options||{};n.queryCount++,n.currentQuery=r;var p=function rW(i){var s=!!i.split(/\s*,\s*/).find(function(r){return":self"==r});return s&&(i=i.replace(mc,"")),i=i.replace(/@\*/g,D1).replace(/@\w+/g,function(r){return D1+"-"+r.substr(1)}).replace(/:animating/g,x1),[i,s]}(r.selector),_=Pr(p,2),w=_[0],M=_[1];n.currentQuerySelector=l.length?l+" "+w:w,ts(n.collectedStyles,n.currentQuerySelector,{});var A=so(this,Xh(r.animation),n);return n.currentQuery=null,n.currentQuerySelector=l,{type:11,selector:w,limit:c.limit||0,optional:!!c.optional,includeSelf:M,animation:A,originalSelector:r.selector,options:Kh(r.options)}}},{key:"visitStagger",value:function(r,n){n.currentQuery||n.errors.push(function E7(){return new st(3013,Nn)}());var l="full"===r.timings?{duration:0,delay:0,easing:"full"}:Hy(r.timings,n.errors,!0);return{type:12,animation:so(this,Xh(r.animation),n),timings:l,options:null}}}]),i}(),aW=L(function i(s){R(this,i),this.errors=s,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,this.unsupportedCSSPropertiesFound=new Set});function I1(i){return!Array.isArray(i)&&"object"==typeof i}function Kh(i){return i?(i=ng(i)).params&&(i.params=function iW(i){return i?ng(i):null}(i.params)):i={},i}function UA(i,s,r){return{duration:i,delay:s,easing:r}}function cB(i,s,r,n,l,c){var p=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,_=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:i,keyframes:s,preStyleProps:r,postStyleProps:n,duration:l,delay:c,totalTime:l+c,easing:p,subTimeline:_}}var R1=function(){function i(){R(this,i),this._map=new Map}return L(i,[{key:"get",value:function(r){return this._map.get(r)||[]}},{key:"append",value:function(r,n){var l,c=this._map.get(r);c||this._map.set(r,c=[]),(l=c).push.apply(l,yt(n))}},{key:"has",value:function(r){return this._map.has(r)}},{key:"clear",value:function(){this._map.clear()}}]),i}(),hB=new RegExp(":enter","g"),R$=new RegExp(":leave","g");function jA(i,s,r,n,l){var c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},p=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},_=arguments.length>7?arguments[7]:void 0,w=arguments.length>8?arguments[8]:void 0,M=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new vB).buildKeyframes(i,s,r,n,l,c,p,_,w,M)}var vB=function(){function i(){R(this,i)}return L(i,[{key:"buildKeyframes",value:function(r,n,l,c,p,_,w,M,A){var O=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];A=A||new R1;var F=new L$(r,n,A,c,p,O,[]);F.options=M,F.currentTimeline.setStyles([_],null,F.errors,M),so(this,l,F);var Y=F.timelines.filter(function(fe){return fe.containsAnimation()});if(Object.keys(w).length){for(var $,oe=Y.length-1;oe>=0;oe--){var le=Y[oe];if(le.element===n){$=le;break}}$&&!$.allowOnlyTimelineStyles()&&$.setStyles([w],null,F.errors,M)}return Y.length?Y.map(function(fe){return fe.buildKeyframes()}):[cB(n,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(r,n){}},{key:"visitState",value:function(r,n){}},{key:"visitTransition",value:function(r,n){}},{key:"visitAnimateChild",value:function(r,n){var l=n.subInstructions.get(n.element);if(l){var c=n.createSubContext(r.options),p=n.currentTimeline.currentTime,_=this._visitSubInstructions(l,c,c.options);p!=_&&n.transformIntoNewTimeline(_)}n.previousNode=r}},{key:"visitAnimateRef",value:function(r,n){var l=n.createSubContext(r.options);l.transformIntoNewTimeline(),this.visitReference(r.animation,l),n.transformIntoNewTimeline(l.currentTimeline.currentTime),n.previousNode=r}},{key:"_visitSubInstructions",value:function(r,n,l){var p=n.currentTimeline.currentTime,_=null!=l.duration?gc(l.duration):null,w=null!=l.delay?gc(l.delay):null;return 0!==_&&r.forEach(function(M){var A=n.appendInstructionToTimeline(M,_,w);p=Math.max(p,A.duration+A.delay)}),p}},{key:"visitReference",value:function(r,n){n.updateOptions(r.options,!0),so(this,r.animation,n),n.previousNode=r}},{key:"visitSequence",value:function(r,n){var l=this,c=n.subContextCount,p=n,_=r.options;if(_&&(_.params||_.delay)&&((p=n.createSubContext(_)).transformIntoNewTimeline(),null!=_.delay)){6==p.previousNode.type&&(p.currentTimeline.snapshotCurrentStyles(),p.previousNode=WA);var w=gc(_.delay);p.delayNextStep(w)}r.steps.length&&(r.steps.forEach(function(M){return so(l,M,p)}),p.currentTimeline.applyStylesToKeyframe(),p.subContextCount>c&&p.transformIntoNewTimeline()),n.previousNode=r}},{key:"visitGroup",value:function(r,n){var l=this,c=[],p=n.currentTimeline.currentTime,_=r.options&&r.options.delay?gc(r.options.delay):0;r.steps.forEach(function(w){var M=n.createSubContext(r.options);_&&M.delayNextStep(_),so(l,w,M),p=Math.max(p,M.currentTimeline.currentTime),c.push(M.currentTimeline)}),c.forEach(function(w){return n.currentTimeline.mergeTimelineCollectedStyles(w)}),n.transformIntoNewTimeline(p),n.previousNode=r}},{key:"_visitTiming",value:function(r,n){if(r.dynamic){var l=r.strValue;return Hy(n.params?zy(l,n.params,n.errors):l,n.errors)}return{duration:r.duration,delay:r.delay,easing:r.easing}}},{key:"visitAnimate",value:function(r,n){var l=n.currentAnimateTimings=this._visitTiming(r.timings,n),c=n.currentTimeline;l.delay&&(n.incrementTime(l.delay),c.snapshotCurrentStyles());var p=r.style;5==p.type?this.visitKeyframes(p,n):(n.incrementTime(l.duration),this.visitStyle(p,n),c.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=r}},{key:"visitStyle",value:function(r,n){var l=n.currentTimeline,c=n.currentAnimateTimings;!c&&l.getCurrentStyleProperties().length&&l.forwardFrame();var p=c&&c.easing||r.easing;r.isEmptyStep?l.applyEmptyStep(p):l.setStyles(r.styles,p,n.errors,n.options),n.previousNode=r}},{key:"visitKeyframes",value:function(r,n){var l=n.currentAnimateTimings,c=n.currentTimeline.duration,p=l.duration,w=n.createSubContext().currentTimeline;w.easing=l.easing,r.styles.forEach(function(M){w.forwardTime((M.offset||0)*p),w.setStyles(M.styles,M.easing,n.errors,n.options),w.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(w),n.transformIntoNewTimeline(c+p),n.previousNode=r}},{key:"visitQuery",value:function(r,n){var l=this,c=n.currentTimeline.currentTime,p=r.options||{},_=p.delay?gc(p.delay):0;_&&(6===n.previousNode.type||0==c&&n.currentTimeline.getCurrentStyleProperties().length)&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=WA);var w=c,M=n.invokeQuery(r.selector,r.originalSelector,r.limit,r.includeSelf,!!p.optional,n.errors);n.currentQueryTotal=M.length;var A=null;M.forEach(function(O,F){n.currentQueryIndex=F;var Y=n.createSubContext(r.options,O);_&&Y.delayNextStep(_),O===n.element&&(A=Y.currentTimeline),so(l,r.animation,Y),Y.currentTimeline.applyStylesToKeyframe(),w=Math.max(w,Y.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(w),A&&(n.currentTimeline.mergeTimelineCollectedStyles(A),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=r}},{key:"visitStagger",value:function(r,n){var l=n.parentContext,c=n.currentTimeline,p=r.timings,_=Math.abs(p.duration),w=_*(n.currentQueryTotal-1),M=_*n.currentQueryIndex;switch(p.duration<0?"reverse":p.easing){case"reverse":M=w-M;break;case"full":M=l.currentStaggerTime}var O=n.currentTimeline;M&&O.delayNextStep(M);var F=O.currentTime;so(this,r.animation,n),n.previousNode=r,l.currentStaggerTime=c.currentTime-F+(c.startTime-l.currentTimeline.startTime)}}]),i}(),WA={},L$=function(){function i(s,r,n,l,c,p,_,w){R(this,i),this._driver=s,this.element=r,this.subInstructions=n,this._enterClassName=l,this._leaveClassName=c,this.errors=p,this.timelines=_,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=WA,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=w||new Uy(this._driver,r,0),_.push(this.currentTimeline)}return L(i,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(r,n){var l=this;if(r){var c=r,p=this.options;null!=c.duration&&(p.duration=gc(c.duration)),null!=c.delay&&(p.delay=gc(c.delay));var _=c.params;if(_){var w=p.params;w||(w=this.options.params={}),Object.keys(_).forEach(function(M){(!n||!w.hasOwnProperty(M))&&(w[M]=zy(_[M],w,l.errors))})}}}},{key:"_copyOptions",value:function(){var r={};if(this.options){var n=this.options.params;if(n){var l=r.params={};Object.keys(n).forEach(function(c){l[c]=n[c]})}}return r}},{key:"createSubContext",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,l=arguments.length>2?arguments[2]:void 0,c=n||this.element,p=new i(this._driver,c,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(c,l||0));return p.previousNode=this.previousNode,p.currentAnimateTimings=this.currentAnimateTimings,p.options=this._copyOptions(),p.updateOptions(r),p.currentQueryIndex=this.currentQueryIndex,p.currentQueryTotal=this.currentQueryTotal,p.parentContext=this,this.subContextCount++,p}},{key:"transformIntoNewTimeline",value:function(r){return this.previousNode=WA,this.currentTimeline=this.currentTimeline.fork(this.element,r),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(r,n,l){var c={duration:null!=n?n:r.duration,delay:this.currentTimeline.currentTime+(null!=l?l:0)+r.delay,easing:""},p=new rg(this._driver,r.element,r.keyframes,r.preStyleProps,r.postStyleProps,c,r.stretchStartingKeyframe);return this.timelines.push(p),c}},{key:"incrementTime",value:function(r){this.currentTimeline.forwardTime(this.currentTimeline.duration+r)}},{key:"delayNextStep",value:function(r){r>0&&this.currentTimeline.delayNextStep(r)}},{key:"invokeQuery",value:function(r,n,l,c,p,_){var w=[];if(c&&w.push(this.element),r.length>0){r=(r=r.replace(hB,"."+this._enterClassName)).replace(R$,"."+this._leaveClassName);var A=this._driver.query(this.element,r,1!=l);0!==l&&(A=l<0?A.slice(A.length+l,A.length):A.slice(0,l)),w.push.apply(w,yt(A))}return!p&&0==w.length&&_.push(function P7(i){return new st(3014,Nn)}()),w}}]),i}(),Uy=function(){function i(s,r,n,l){R(this,i),this._driver=s,this.element=r,this.startTime=n,this._elementTimelineStylesLookup=l,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(r),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(r,this._localTimelineStyles)),this._loadKeyframe()}return L(i,[{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(r){var n=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||n?(this.forwardTime(this.currentTime+r),n&&this.snapshotCurrentStyles()):this.startTime+=r}},{key:"fork",value:function(r,n){return this.applyStylesToKeyframe(),new i(this._driver,r,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(r){this.applyStylesToKeyframe(),this.duration=r,this._loadKeyframe()}},{key:"_updateStyle",value:function(r,n){this._localTimelineStyles[r]=n,this._globalTimelineStyles[r]=n,this._styleSummary[r]={time:this.currentTime,value:n}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(r){var n=this;r&&(this._previousKeyframe.easing=r),Object.keys(this._globalTimelineStyles).forEach(function(l){n._backFill[l]=n._globalTimelineStyles[l]||vc,n._currentKeyframe[l]=vc}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(r,n,l,c){var p=this;n&&(this._previousKeyframe.easing=n);var _=c&&c.params||{},w=function F1(i,s){var n,r={};return i.forEach(function(l){"*"===l?(n=n||Object.keys(s)).forEach(function(c){r[c]=vc}):Uf(l,!1,r)}),r}(r,this._globalTimelineStyles);Object.keys(w).forEach(function(M){var A=zy(w[M],_,l);p._pendingStyles[M]=A,p._localTimelineStyles.hasOwnProperty(M)||(p._backFill[M]=p._globalTimelineStyles.hasOwnProperty(M)?p._globalTimelineStyles[M]:vc),p._updateStyle(M,A)})}},{key:"applyStylesToKeyframe",value:function(){var r=this,n=this._pendingStyles,l=Object.keys(n);0!=l.length&&(this._pendingStyles={},l.forEach(function(c){r._currentKeyframe[c]=n[c]}),Object.keys(this._localTimelineStyles).forEach(function(c){r._currentKeyframe.hasOwnProperty(c)||(r._currentKeyframe[c]=r._localTimelineStyles[c])}))}},{key:"snapshotCurrentStyles",value:function(){var r=this;Object.keys(this._localTimelineStyles).forEach(function(n){var l=r._localTimelineStyles[n];r._pendingStyles[n]=l,r._updateStyle(n,l)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var r=[];for(var n in this._currentKeyframe)r.push(n);return r}},{key:"mergeTimelineCollectedStyles",value:function(r){var n=this;Object.keys(r._styleSummary).forEach(function(l){var c=n._styleSummary[l],p=r._styleSummary[l];(!c||p.time>c.time)&&n._updateStyle(l,p.value)})}},{key:"buildKeyframes",value:function(){var r=this;this.applyStylesToKeyframe();var n=new Set,l=new Set,c=1===this._keyframes.size&&0===this.duration,p=[];this._keyframes.forEach(function(O,F){var Y=Uf(O,!0);Object.keys(Y).forEach(function($){var oe=Y[$];"!"==oe?n.add($):oe==vc&&l.add($)}),c||(Y.offset=F/r.duration),p.push(Y)});var _=n.size?T1(n.values()):[],w=l.size?T1(l.values()):[];if(c){var M=p[0],A=ng(M);M.offset=0,A.offset=1,p=[M,A]}return cB(this.element,p,_,w,this.duration,this.startTime,this.easing,!1)}}]),i}(),rg=function(i){se(r,i);var s=ue(r);function r(n,l,c,p,_,w){var M,A=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return R(this,r),(M=s.call(this,n,l,w.delay)).keyframes=c,M.preStyleProps=p,M.postStyleProps=_,M._stretchStartingKeyframe=A,M.timings={duration:w.duration,delay:w.delay,easing:w.easing},M}return L(r,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var l=this.keyframes,c=this.timings,p=c.delay,_=c.duration,w=c.easing;if(this._stretchStartingKeyframe&&p){var M=[],A=_+p,O=p/A,F=Uf(l[0],!1);F.offset=0,M.push(F);var Y=Uf(l[0],!1);Y.offset=L1(O),M.push(Y);for(var $=l.length-1,oe=1;oe<=$;oe++){var le=Uf(l[oe],!1);le.offset=L1((p+le.offset*_)/A),M.push(le)}_=A,p=0,w="",l=M}return cB(this.element,l,this.preStyleProps,this.postStyleProps,_,p,w,!0)}}]),r}(Uy);function L1(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,r=Math.pow(10,s-1);return Math.round(i*r)/r}var ig=L(function i(){R(this,i)}),uW=function(i){se(r,i);var s=ue(r);function r(){return R(this,r),s.apply(this,arguments)}return L(r,[{key:"normalizePropertyName",value:function(l,c){return HA(l)}},{key:"normalizeStyleValue",value:function(l,c,p,_){var w="",M=p.toString().trim();if(cW[c]&&0!==p&&"0"!==p)if("number"==typeof p)w="px";else{var A=p.match(/^[+-]?[\d\.]+([a-z]*)$/);A&&0==A[1].length&&_.push(function w7(i,s){return new st(3005,Nn)}())}return M+w}}]),r}(ig),cW=function(){return function fW(i){var s={};return i.forEach(function(r){return s[r]=!0}),s}("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 Ll(i,s,r,n,l,c,p,_,w,M,A,O,F){return{type:0,element:i,triggerName:s,isRemovalTransition:l,fromState:r,fromStyles:c,toState:n,toStyles:p,timelines:_,queriedElements:w,preStyleProps:M,postStyleProps:A,totalTime:O,errors:F}}var YA={},dW=function(){function i(s,r,n){R(this,i),this._triggerName=s,this.ast=r,this._stateStyles=n}return L(i,[{key:"match",value:function(r,n,l,c){return function hW(i,s,r,n,l){return i.some(function(c){return c(s,r,n,l)})}(this.ast.matchers,r,n,l,c)}},{key:"buildStyles",value:function(r,n,l){var c=this._stateStyles["*"],p=this._stateStyles[r],_=c?c.buildStyles(n,l):{};return p?p.buildStyles(n,l):_}},{key:"build",value:function(r,n,l,c,p,_,w,M,A,O){var F=[],Y=this.ast.options&&this.ast.options.params||YA,oe=this.buildStyles(l,w&&w.params||YA,F),le=M&&M.params||YA,fe=this.buildStyles(c,le,F),ae=new Set,we=new Map,De=new Map,Ee="void"===c,We={params:Object.assign(Object.assign({},Y),le)},bt=O?[]:jA(r,n,this.ast.animation,p,_,oe,fe,We,A,F),Vn=0;if(bt.forEach(function(ci){Vn=Math.max(ci.duration+ci.delay,Vn)}),F.length)return Ll(n,this._triggerName,l,c,Ee,oe,fe,[],[],we,De,Vn,F);bt.forEach(function(ci){var fo=ci.element,Dc=ts(we,fo,{});ci.preStyleProps.forEach(function(Gl){return Dc[Gl]=!0});var fp=ts(De,fo,{});ci.postStyleProps.forEach(function(Gl){return fp[Gl]=!0}),fo!==n&&ae.add(fo)});var bi=T1(ae.values());return Ll(n,this._triggerName,l,c,Ee,oe,fe,bt,bi,we,De,Vn)}}]),i}(),gB=function(){function i(s,r,n){R(this,i),this.styles=s,this.defaultParams=r,this.normalizer=n}return L(i,[{key:"buildStyles",value:function(r,n){var l=this,c={},p=ng(this.defaultParams);return Object.keys(r).forEach(function(_){var w=r[_];null!=w&&(p[_]=w)}),this.styles.styles.forEach(function(_){if("string"!=typeof _){var w=_;Object.keys(w).forEach(function(M){var A=w[M];A.length>1&&(A=zy(A,p,n));var O=l.normalizer.normalizePropertyName(M,n);A=l.normalizer.normalizeStyleValue(M,O,A,n),c[O]=A})}}),c}}]),i}(),pW=function(){function i(s,r,n){var l=this;R(this,i),this.name=s,this.ast=r,this._normalizer=n,this.transitionFactories=[],this.states={},r.states.forEach(function(c){l.states[c.name]=new gB(c.style,c.options&&c.options.params||{},n)}),_B(this.states,"true","1"),_B(this.states,"false","0"),r.transitions.forEach(function(c){l.transitionFactories.push(new dW(s,c,l.states))}),this.fallbackTransition=function vW(i,s,r){return new dW(i,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(p,_){return!0}],options:null,queryCount:0,depCount:0},s)}(s,this.states)}return L(i,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(r,n,l,c){return this.transitionFactories.find(function(_){return _.match(r,n,l,c)})||null}},{key:"matchStyles",value:function(r,n,l){return this.fallbackTransition.buildStyles(r,n,l)}}]),i}();function _B(i,s,r){i.hasOwnProperty(s)?i.hasOwnProperty(r)||(i[r]=i[s]):i.hasOwnProperty(r)&&(i[s]=i[r])}var gW=new R1,F$=function(){function i(s,r,n){R(this,i),this.bodyNode=s,this._driver=r,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return L(i,[{key:"register",value:function(r,n){var l=[],p=lB(this._driver,n,l,[]);if(l.length)throw function L7(i){return new st(3503,Nn)}();this._animations[r]=p}},{key:"_buildPlayer",value:function(r,n,l){var c=r.element,p=W3(this._driver,this._normalizer,c,r.keyframes,n,l);return this._driver.animate(c,p,r.duration,r.delay,r.easing,[],!0)}},{key:"create",value:function(r,n){var w,l=this,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},p=[],_=this._animations[r],M=new Map;if(_?(w=jA(this._driver,n,_,eB,NA,{},{},c,gW,p)).forEach(function(F){var Y=ts(M,F.element,{});F.postStyleProps.forEach(function($){return Y[$]=null})}):(p.push(F7()),w=[]),p.length)throw N7();M.forEach(function(F,Y){Object.keys(F).forEach(function($){F[$]=l._driver.computeStyle(Y,$,vc)})});var A=w.map(function(F){var Y=M.get(F.element);return l._buildPlayer(F,{},Y)}),O=Hf(A);return this._playersById[r]=O,O.onDestroy(function(){return l.destroy(r)}),this.players.push(O),O}},{key:"destroy",value:function(r){var n=this._getPlayer(r);n.destroy(),delete this._playersById[r];var l=this.players.indexOf(n);l>=0&&this.players.splice(l,1)}},{key:"_getPlayer",value:function(r){var n=this._playersById[r];if(!n)throw function B7(i){return new st(3301,Nn)}();return n}},{key:"listen",value:function(r,n,l,c){var p=OA(n,"","","");return PA(this._getPlayer(r),l,p,c),function(){}}},{key:"command",value:function(r,n,l,c){if("register"!=l)if("create"!=l){var _=this._getPlayer(r);switch(l){case"play":_.play();break;case"pause":_.pause();break;case"reset":_.reset();break;case"restart":_.restart();break;case"finish":_.finish();break;case"init":_.init();break;case"setPosition":_.setPosition(parseFloat(c[0]));break;case"destroy":this.destroy(r)}}else this.create(r,n,c[0]||{});else this.register(r,c[0])}}]),i}(),qA="ng-animate-queued",N1="ng-animate-disabled",_c="ng-star-inserted",ZA=[],V1={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Wf={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Eo="__ng_removed",jy=function(){function i(s){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";R(this,i),this.namespaceId=r;var n=s&&s.hasOwnProperty("value"),l=n?s.value:s;if(this.value=yW(l),n){var c=ng(s);delete c.value,this.options=c}else this.options={};this.options.params||(this.options.params={})}return L(i,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(r){var n=r.params;if(n){var l=this.options.params;Object.keys(n).forEach(function(c){null==l[c]&&(l[c]=n[c])})}}}]),i}(),Wy="void",XA=new jy(Wy),Ns=function(){function i(s,r,n){R(this,i),this.id=s,this.hostElement=r,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+s,Bs(r,this._hostClassName)}return L(i,[{key:"listen",value:function(r,n,l,c){var p=this;if(!this._triggers.hasOwnProperty(n))throw function j3(i,s){return new st(3302,Nn)}();if(null==l||0==l.length)throw function V7(i){return new st(3303,Nn)}();if(!function bW(i){return"start"==i||"done"==i}(l))throw function H7(i,s){return new st(3400,Nn)}();var _=ts(this._elementListeners,r,[]),w={name:n,phase:l,callback:c};_.push(w);var M=ts(this._engine.statesByElement,r,{});return M.hasOwnProperty(n)||(Bs(r,Vy),Bs(r,Vy+"-"+n),M[n]=XA),function(){p._engine.afterFlush(function(){var A=_.indexOf(w);A>=0&&_.splice(A,1),p._triggers[n]||delete M[n]})}}},{key:"register",value:function(r,n){return!this._triggers[r]&&(this._triggers[r]=n,!0)}},{key:"_getTrigger",value:function(r){var n=this._triggers[r];if(!n)throw function C1(i){return new st(3401,Nn)}();return n}},{key:"trigger",value:function(r,n,l){var c=this,p=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],_=this._getTrigger(n),w=new Yy(this.id,n,r),M=this._engine.statesByElement.get(r);M||(Bs(r,Vy),Bs(r,Vy+"-"+n),this._engine.statesByElement.set(r,M={}));var A=M[n],O=new jy(l,this.id),F=l&&l.hasOwnProperty("value");!F&&A&&O.absorbOptions(A.options),M[n]=O,A||(A=XA);var Y=O.value===Wy;if(Y||A.value!==O.value){var fe=ts(this._engine.playersByElement,r,[]);fe.forEach(function(De){De.namespaceId==c.id&&De.triggerName==n&&De.queued&&De.destroy()});var ae=_.matchTransition(A.value,O.value,r,O.params),we=!1;if(!ae){if(!p)return;ae=_.fallbackTransition,we=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:n,transition:ae,fromState:A,toState:O,player:w,isFallbackTransition:we}),we||(Bs(r,qA),w.onStart(function(){og(r,qA)})),w.onDone(function(){var De=c.players.indexOf(w);De>=0&&c.players.splice(De,1);var Ee=c._engine.playersByElement.get(r);if(Ee){var We=Ee.indexOf(w);We>=0&&Ee.splice(We,1)}}),this.players.push(w),fe.push(w),w}if(!QA(A.params,O.params)){var $=[],oe=_.matchStyles(A.value,A.params,$),le=_.matchStyles(O.value,O.params,$);$.length?this._engine.reportError($):this._engine.afterFlush(function(){Zh(r,oe),_u(r,le)})}}},{key:"deregister",value:function(r){var n=this;delete this._triggers[r],this._engine.statesByElement.forEach(function(l,c){delete l[r]}),this._elementListeners.forEach(function(l,c){n._elementListeners.set(c,l.filter(function(p){return p.name!=r}))})}},{key:"clearElementCache",value:function(r){this._engine.statesByElement.delete(r),this._elementListeners.delete(r);var n=this._engine.playersByElement.get(r);n&&(n.forEach(function(l){return l.destroy()}),this._engine.playersByElement.delete(r))}},{key:"_signalRemovalForInnerTriggers",value:function(r,n){var l=this,c=this._engine.driver.query(r,D1,!0);c.forEach(function(p){if(!p[Eo]){var _=l._engine.fetchNamespacesByElement(p);_.size?_.forEach(function(w){return w.triggerLeaveAnimation(p,n,!1,!0)}):l.clearElementCache(p)}}),this._engine.afterFlushAnimationsDone(function(){return c.forEach(function(p){return l.clearElementCache(p)})})}},{key:"triggerLeaveAnimation",value:function(r,n,l,c){var p=this,_=this._engine.statesByElement.get(r),w=new Map;if(_){var M=[];if(Object.keys(_).forEach(function(A){if(w.set(A,_[A].value),p._triggers[A]){var O=p.trigger(r,A,Wy,c);O&&M.push(O)}}),M.length)return this._engine.markElementAsRemoved(this.id,r,!0,n,w),l&&Hf(M).onDone(function(){return p._engine.processLeaveNode(r)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(r){var n=this,l=this._elementListeners.get(r),c=this._engine.statesByElement.get(r);if(l&&c){var p=new Set;l.forEach(function(_){var w=_.name;if(!p.has(w)){p.add(w);var A=n._triggers[w].fallbackTransition,O=c[w]||XA,F=new jy(Wy),Y=new Yy(n.id,w,r);n._engine.totalQueuedPlayers++,n._queue.push({element:r,triggerName:w,transition:A,fromState:O,toState:F,player:Y,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(r,n){var l=this,c=this._engine;if(r.childElementCount&&this._signalRemovalForInnerTriggers(r,n),!this.triggerLeaveAnimation(r,n,!0)){var p=!1;if(c.totalAnimations){var _=c.players.length?c.playersByQueriedElement.get(r):[];if(_&&_.length)p=!0;else for(var w=r;w=w.parentNode;)if(c.statesByElement.get(w)){p=!0;break}}if(this.prepareLeaveAnimationListeners(r),p)c.markElementAsRemoved(this.id,r,!1,n);else{var A=r[Eo];(!A||A===V1)&&(c.afterFlush(function(){return l.clearElementCache(r)}),c.destroyInnerAnimations(r),c._onRemovalComplete(r,n))}}}},{key:"insertNode",value:function(r,n){Bs(r,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(r){var n=this,l=[];return this._queue.forEach(function(c){var p=c.player;if(!p.destroyed){var _=c.element,w=n._elementListeners.get(_);w&&w.forEach(function(M){if(M.name==c.triggerName){var A=OA(_,c.triggerName,c.fromState.value,c.toState.value);A._data=r,PA(c.player,M.phase,A,M.callback)}}),p.markedForDestroy?n._engine.afterFlush(function(){p.destroy()}):l.push(c)}}),this._queue=[],l.sort(function(c,p){var _=c.transition.ast.depCount,w=p.transition.ast.depCount;return 0==_||0==w?_-w:n._engine.driver.containsElement(c.element,p.element)?1:-1})}},{key:"destroy",value:function(r){this.players.forEach(function(n){return n.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,r)}},{key:"elementContainsData",value:function(r){var n=!1;return this._elementListeners.has(r)&&(n=!0),!!this._queue.find(function(l){return l.element===r})||n}}]),i}(),_W=function(){function i(s,r,n){R(this,i),this.bodyNode=s,this.driver=r,this._normalizer=n,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(l,c){}}return L(i,[{key:"_onRemovalComplete",value:function(r,n){this.onRemovalComplete(r,n)}},{key:"queuedPlayers",get:function(){var r=[];return this._namespaceList.forEach(function(n){n.players.forEach(function(l){l.queued&&r.push(l)})}),r}},{key:"createNamespace",value:function(r,n){var l=new Ns(r,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(l,n):(this.newHostElements.set(n,l),this.collectEnterElement(n)),this._namespaceLookup[r]=l}},{key:"_balanceNamespaceList",value:function(r,n){var l=this._namespaceList,c=this.namespacesByHostElement,p=l.length-1;if(p>=0){var _=!1;if(void 0!==this.driver.getParentElement)for(var w=this.driver.getParentElement(n);w;){var M=c.get(w);if(M){var A=l.indexOf(M);l.splice(A+1,0,r),_=!0;break}w=this.driver.getParentElement(w)}else for(var O=p;O>=0;O--)if(this.driver.containsElement(l[O].hostElement,n)){l.splice(O+1,0,r),_=!0;break}_||l.unshift(r)}else l.push(r);return c.set(n,r),r}},{key:"register",value:function(r,n){var l=this._namespaceLookup[r];return l||(l=this.createNamespace(r,n)),l}},{key:"registerTrigger",value:function(r,n,l){var c=this._namespaceLookup[r];c&&c.register(n,l)&&this.totalAnimations++}},{key:"destroy",value:function(r,n){var l=this;if(r){var c=this._fetchNamespace(r);this.afterFlush(function(){l.namespacesByHostElement.delete(c.hostElement),delete l._namespaceLookup[r];var p=l._namespaceList.indexOf(c);p>=0&&l._namespaceList.splice(p,1)}),this.afterFlushAnimationsDone(function(){return c.destroy(n)})}}},{key:"_fetchNamespace",value:function(r){return this._namespaceLookup[r]}},{key:"fetchNamespacesByElement",value:function(r){var n=new Set,l=this.statesByElement.get(r);if(l)for(var c=Object.keys(l),p=0;p=0&&this.collectedLeaveElements.splice(_,1)}if(r){var w=this._fetchNamespace(r);w&&w.insertNode(n,l)}c&&this.collectEnterElement(n)}}},{key:"collectEnterElement",value:function(r){this.collectedEnterElements.push(r)}},{key:"markElementAsDisabled",value:function(r,n){n?this.disabledNodes.has(r)||(this.disabledNodes.add(r),Bs(r,N1)):this.disabledNodes.has(r)&&(this.disabledNodes.delete(r),og(r,N1))}},{key:"removeNode",value:function(r,n,l,c){if(H1(n)){var p=r?this._fetchNamespace(r):null;if(p?p.removeNode(n,c):this.markElementAsRemoved(r,n,!1,c),l){var _=this.namespacesByHostElement.get(n);_&&_.id!==r&&_.removeNode(n,c)}}else this._onRemovalComplete(n,c)}},{key:"markElementAsRemoved",value:function(r,n,l,c,p){this.collectedLeaveElements.push(n),n[Eo]={namespaceId:r,setForRemoval:c,hasAnimation:l,removedBeforeQueried:!1,previousTriggersValues:p}}},{key:"listen",value:function(r,n,l,c,p){return H1(n)?this._fetchNamespace(r).listen(n,l,c,p):function(){}}},{key:"_buildInstruction",value:function(r,n,l,c,p){return r.transition.build(this.driver,r.element,r.fromState.value,r.toState.value,l,c,r.fromState.options,r.toState.options,n,p)}},{key:"destroyInnerAnimations",value:function(r){var n=this,l=this.driver.query(r,D1,!0);l.forEach(function(c){return n.destroyActiveAnimationsForElement(c)}),0!=this.playersByQueriedElement.size&&(l=this.driver.query(r,x1,!0)).forEach(function(c){return n.finishActiveQueriedAnimationOnElement(c)})}},{key:"destroyActiveAnimationsForElement",value:function(r){var n=this.playersByElement.get(r);n&&n.forEach(function(l){l.queued?l.markedForDestroy=!0:l.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(r){var n=this.playersByQueriedElement.get(r);n&&n.forEach(function(l){return l.finish()})}},{key:"whenRenderingDone",value:function(){var r=this;return new Promise(function(n){if(r.players.length)return Hf(r.players).onDone(function(){return n()});n()})}},{key:"processLeaveNode",value:function(r){var l,n=this,c=r[Eo];if(c&&c.setForRemoval){if(r[Eo]=V1,c.namespaceId){this.destroyInnerAnimations(r);var p=this._fetchNamespace(c.namespaceId);p&&p.clearElementCache(r)}this._onRemovalComplete(r,c.setForRemoval)}(null===(l=r.classList)||void 0===l?void 0:l.contains(N1))&&this.markElementAsDisabled(r,!1),this.driver.query(r,".ng-animate-disabled",!0).forEach(function(_){n.markElementAsDisabled(_,!1)})}},{key:"flush",value:function(){var r=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,l=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(F,Y){return r._balanceNamespaceList(F,Y)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var c=0;c=0;Dc--)this._namespaceList[Dc].drainQueuedTransitions(n).forEach(function(ut){var un=ut.player,yn=ut.element;if(ci.push(un),l.collectedEnterElements.length){var Oi=yn[Eo];if(Oi&&Oi.setForMove){if(Oi.previousTriggersValues&&Oi.previousTriggersValues.has(ut.triggerName)){var jS=Oi.previousTriggersValues.get(ut.triggerName),Tg=l.statesByElement.get(ut.element);Tg&&Tg[ut.triggerName]&&(Tg[ut.triggerName].value=jS)}return void un.destroy()}}var LP=!Y||!l.driver.containsElement(Y,yn),UH=Vn.get(yn),Kq=le.get(yn),ja=l._buildInstruction(ut,c,Kq,UH,LP);if(ja.errors&&ja.errors.length)fo.push(ja);else{if(LP)return un.onStart(function(){return Zh(yn,ja.fromStyles)}),un.onDestroy(function(){return _u(yn,ja.toStyles)}),void p.push(un);if(ut.isFallbackTransition)return un.onStart(function(){return Zh(yn,ja.fromStyles)}),un.onDestroy(function(){return _u(yn,ja.toStyles)}),void p.push(un);var jH=[];ja.timelines.forEach(function(hp){hp.stretchStartingKeyframe=!0,l.disabledNodes.has(hp.element)||jH.push(hp)}),ja.timelines=jH,c.append(yn,ja.timelines),w.push({instruction:ja,player:un,element:yn}),ja.queriedElements.forEach(function(hp){return ts(M,hp,[]).push(un)}),ja.preStyleProps.forEach(function(hp,FP){var WH=Object.keys(hp);if(WH.length){var _b=A.get(FP);_b||A.set(FP,_b=new Set),WH.forEach(function($q){return _b.add($q)})}}),ja.postStyleProps.forEach(function(hp,FP){var WH=Object.keys(hp),_b=O.get(FP);_b||O.set(FP,_b=new Set),WH.forEach(function($q){return _b.add($q)})})}});if(fo.length){var Gl=[];fo.forEach(function(ut){Gl.push(function G7(i,s){return new st(3505,Nn)}())}),ci.forEach(function(ut){return ut.destroy()}),this.reportError(Gl)}var dp=new Map,xg=new Map;w.forEach(function(ut){var un=ut.element;c.has(un)&&(xg.set(un,un),l._beforeAnimationBuild(ut.player.namespaceId,ut.instruction,dp))}),p.forEach(function(ut){var un=ut.element;l._getPreviousPlayers(un,!1,ut.namespaceId,ut.triggerName,null).forEach(function(Oi){ts(dp,un,[]).push(Oi),Oi.destroy()})});var $J=ae.filter(function(ut){return JA(ut,A,O)}),GH=new Map;G1(GH,this.driver,De,O,vc).forEach(function(ut){JA(ut,A,O)&&$J.push(ut)});var jq=new Map;oe.forEach(function(ut,un){G1(jq,l.driver,new Set(ut),A,"!")}),$J.forEach(function(ut){var un=GH.get(ut),yn=jq.get(ut);GH.set(ut,Object.assign(Object.assign({},un),yn))});var Wq=[],QJ=[],JJ={};w.forEach(function(ut){var un=ut.element,yn=ut.player,Oi=ut.instruction;if(c.has(un)){if(F.has(un))return yn.onDestroy(function(){return _u(un,Oi.toStyles)}),yn.disabled=!0,yn.overrideTotalTime(Oi.totalTime),void p.push(yn);var jS=JJ;if(xg.size>1){for(var Tg=un,LP=[];Tg=Tg.parentNode;){var UH=xg.get(Tg);if(UH){jS=UH;break}LP.push(Tg)}LP.forEach(function(jH){return xg.set(jH,jS)})}var Kq=l._buildAnimation(yn.namespaceId,Oi,dp,_,jq,GH);if(yn.setRealPlayer(Kq),jS===JJ)Wq.push(yn);else{var ja=l.playersByElement.get(jS);ja&&ja.length&&(yn.parentPlayer=Hf(ja)),p.push(yn)}}else Zh(un,Oi.fromStyles),yn.onDestroy(function(){return _u(un,Oi.toStyles)}),QJ.push(yn),F.has(un)&&p.push(yn)}),QJ.forEach(function(ut){var un=_.get(ut.element);if(un&&un.length){var yn=Hf(un);ut.setRealPlayer(yn)}}),p.forEach(function(ut){ut.parentPlayer?ut.syncPlayerEvents(ut.parentPlayer):ut.destroy()});for(var Yq=0;Yq0?this.driver.animate(r.element,n,r.duration,r.delay,r.easing,l):new By(r.duration,r.delay)}}]),i}(),Yy=function(){function i(s,r,n){R(this,i),this.namespaceId=s,this.triggerName=r,this.element=n,this._player=new By,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return L(i,[{key:"setRealPlayer",value:function(r){var n=this;this._containsRealPlayer||(this._player=r,Object.keys(this._queuedCallbacks).forEach(function(l){n._queuedCallbacks[l].forEach(function(c){return PA(r,l,void 0,c)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(r.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(r){this.totalTime=r}},{key:"syncPlayerEvents",value:function(r){var n=this,l=this._player;l.triggerCallback&&r.onStart(function(){return l.triggerCallback("start")}),r.onDone(function(){return n.finish()}),r.onDestroy(function(){return n.destroy()})}},{key:"_queueEvent",value:function(r,n){ts(this._queuedCallbacks,r,[]).push(n)}},{key:"onDone",value:function(r){this.queued&&this._queueEvent("done",r),this._player.onDone(r)}},{key:"onStart",value:function(r){this.queued&&this._queueEvent("start",r),this._player.onStart(r)}},{key:"onDestroy",value:function(r){this.queued&&this._queueEvent("destroy",r),this._player.onDestroy(r)}},{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(r){this.queued||this._player.setPosition(r)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(r){var n=this._player;n.triggerCallback&&n.triggerCallback(r)}}]),i}();function yW(i){return null!=i?i:null}function H1(i){return i&&1===i.nodeType}function z1(i,s){var r=i.style.display;return i.style.display=null!=s?s:"none",r}function G1(i,s,r,n,l){var c=[];r.forEach(function(w){return c.push(z1(w))});var p=[];n.forEach(function(w,M){var A={};w.forEach(function(O){var F=A[O]=s.computeStyle(M,O,l);(!F||0==F.length)&&(M[Eo]=Wf,p.push(M))}),i.set(M,A)});var _=0;return r.forEach(function(w){return z1(w,c[_++])}),p}function $A(i,s){var r=new Map;if(i.forEach(function(_){return r.set(_,[])}),0==s.length)return r;var l=new Set(s),c=new Map;function p(_){if(!_)return 1;var w=c.get(_);if(w)return w;var M=_.parentNode;return w=r.has(M)?M:l.has(M)?1:p(M),c.set(_,w),w}return s.forEach(function(_){var w=p(_);1!==w&&r.get(w).push(_)}),r}function Bs(i,s){var r;null===(r=i.classList)||void 0===r||r.add(s)}function og(i,s){var r;null===(r=i.classList)||void 0===r||r.remove(s)}function yB(i,s,r){Hf(r).onDone(function(){return i.processLeaveNode(s)})}function U1(i,s){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(r)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),i}();function wW(i,s){var r=null,n=null;return Array.isArray(s)&&s.length?(r=sg(s[0]),s.length>1&&(n=sg(s[s.length-1]))):s&&(r=sg(s)),r||n?new bB(i,r,n):null}var bB=function(){var i=function(){function s(r,n,l){R(this,s),this._element=r,this._startStyles=n,this._endStyles=l,this._state=0;var c=s.initialStylesByElement.get(r);c||s.initialStylesByElement.set(r,c={}),this._initialStyles=c}return L(s,[{key:"start",value:function(){this._state<1&&(this._startStyles&&_u(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(_u(this._element,this._initialStyles),this._endStyles&&(_u(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(s.initialStylesByElement.delete(this._element),this._startStyles&&(Zh(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Zh(this._element,this._endStyles),this._endStyles=null),_u(this._element,this._initialStyles),this._state=3)}}]),s}();return i.initialStylesByElement=new WeakMap,i}();function sg(i){for(var s=null,r=Object.keys(i),n=0;n5&&void 0!==arguments[5]?arguments[5]:[],w=0==c?"both":"forwards",M={duration:l,delay:c,fill:w};p&&(M.easing=p);var A={},O=_.filter(function(Y){return Y instanceof CB});K7(l,c)&&O.forEach(function(Y){var $=Y.currentSnapshot;Object.keys($).forEach(function(oe){return A[oe]=$[oe]})});var F=wW(r,n=aB(r,n=n.map(function(Y){return Uf(Y,!1)}),A));return new CB(r,n,M,F)}}]),i}(),wB=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c){var p;return R(this,n),(p=r.call(this))._nextAnimationId=0,p._renderer=l.createRenderer(c.body,{id:"0",encapsulation:Ya.None,styles:[],data:{animation:[]}}),p}return L(n,[{key:"build",value:function(c){var p=this._nextAnimationId.toString();this._nextAnimationId++;var _=Array.isArray(c)?m1(c):c;return tE(this._renderer,null,p,"register",[_]),new SB(p,this._renderer)}}]),n}(L3);return i.\u0275fac=function(r){return new(r||i)(ge(h_),ge(Jt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),SB=function(i){se(r,i);var s=ue(r);function r(n,l){var c;return R(this,r),(c=s.call(this))._id=n,c._renderer=l,c}return L(r,[{key:"create",value:function(l,c){return new MW(this._id,l,c||{},this._renderer)}}]),r}(g7),MW=function(){function i(s,r,n,l){R(this,i),this.id=s,this.element=r,this._renderer=l,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return L(i,[{key:"_listen",value:function(r,n){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(r),n)}},{key:"_command",value:function(r){for(var n=arguments.length,l=new Array(n>1?n-1:0),c=1;c=0&&n3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(r,n,l),this.engine.onInsert(this.namespaceId,n,r,c)}},{key:"removeChild",value:function(r,n,l){this.engine.onRemove(this.namespaceId,n,this.delegate,l)}},{key:"selectRootElement",value:function(r,n){return this.delegate.selectRootElement(r,n)}},{key:"parentNode",value:function(r){return this.delegate.parentNode(r)}},{key:"nextSibling",value:function(r){return this.delegate.nextSibling(r)}},{key:"setAttribute",value:function(r,n,l,c){this.delegate.setAttribute(r,n,l,c)}},{key:"removeAttribute",value:function(r,n,l){this.delegate.removeAttribute(r,n,l)}},{key:"addClass",value:function(r,n){this.delegate.addClass(r,n)}},{key:"removeClass",value:function(r,n){this.delegate.removeClass(r,n)}},{key:"setStyle",value:function(r,n,l,c){this.delegate.setStyle(r,n,l,c)}},{key:"removeStyle",value:function(r,n,l){this.delegate.removeStyle(r,n,l)}},{key:"setProperty",value:function(r,n,l){"@"==n.charAt(0)&&n==MB?this.disableAnimations(r,!!l):this.delegate.setProperty(r,n,l)}},{key:"setValue",value:function(r,n){this.delegate.setValue(r,n)}},{key:"listen",value:function(r,n,l){return this.delegate.listen(r,n,l)}},{key:"disableAnimations",value:function(r,n){this.engine.disableAnimations(r,n)}}]),i}(),rE=function(i){se(r,i);var s=ue(r);function r(n,l,c,p){var _;return R(this,r),(_=s.call(this,l,c,p)).factory=n,_.namespaceId=l,_}return L(r,[{key:"setProperty",value:function(l,c,p){"@"==c.charAt(0)?"."==c.charAt(1)&&c==MB?this.disableAnimations(l,p=void 0===p||!!p):this.engine.process(this.namespaceId,l,c.substr(1),p):this.delegate.setProperty(l,c,p)}},{key:"listen",value:function(l,c,p){var _=this;if("@"==c.charAt(0)){var w=function kW(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}(l),M=c.substr(1),A="";if("@"!=M.charAt(0)){var O=function kB(i){var s=i.indexOf(".");return[i.substring(0,s),i.substr(s+1)]}(M),F=Pr(O,2);M=F[0],A=F[1]}return this.engine.listen(this.namespaceId,w,M,A,function(Y){_.factory.scheduleListenerCallback(Y._data||-1,p,Y)})}return this.delegate.listen(l,c,p)}}]),r}(nE),DB=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p){return R(this,n),r.call(this,l.body,c,p)}return L(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(j1);return i.\u0275fac=function(r){return new(r||i)(ge(Jt),ge(k1),ge(ig))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),mi=new Ae("AnimationModuleType"),Y1=[{provide:L3,useClass:wB},{provide:ig,useFactory:function xB(){return new uW}},{provide:j1,useClass:DB},{provide:h_,useFactory:function iE(i,s,r){return new $h(i,s,r)},deps:[Z_,j1,Pt]}],q1=[{provide:k1,useFactory:function(){return new SW}},{provide:mi,useValue:"BrowserAnimations"}].concat(Y1),TB=[{provide:k1,useClass:LA},{provide:mi,useValue:"NoopAnimations"}].concat(Y1),DW=function(){var i=function(){function s(){R(this,s)}return L(s,null,[{key:"withConfig",value:function(n){return{ngModule:s,providers:n.disableAnimations?TB:q1}}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({providers:q1,imports:[ic]}),i}();function aE(i,s){if(1&i&&Se(0,"mat-pseudo-checkbox",4),2&i){var r=Q();U("state",r.selected?"checked":"unchecked")("disabled",r.disabled)}}function EB(i,s){if(1&i&&(I(0,"span",5),K(1),B()),2&i){var r=Q();G(1),Le("(",r.group.label,")")}}var PB=["*"],IB=function(){var i=L(function s(){R(this,s)});return i.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",i.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",i.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",i.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",i}(),AW=function(){var i=L(function s(){R(this,s)});return i.COMPLEX="375ms",i.ENTERING="225ms",i.EXITING="195ms",i}(),EW=new Ae("mat-sanity-checks",{providedIn:"root",factory:function RB(){return!0}}),vn=function(){var i=function(){function s(r,n,l){R(this,s),this._sanityChecks=n,this._document=l,this._hasDoneGlobalChecks=!1,r._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}return L(s,[{key:"_checkIsEnabled",value:function(n){return!XT()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[n])}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(R3),ge(EW,8),ge(Jt))},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[Dy],Dy]}),i}();function Fl(i){return function(s){se(n,s);var r=ue(n);function n(){var l;R(this,n);for(var c=arguments.length,p=new Array(c),_=0;_1&&void 0!==arguments[1]?arguments[1]:0;return function(r){se(l,r);var n=ue(l);function l(){var c;R(this,l);for(var p=arguments.length,_=new Array(p),w=0;w0?l:r}}]),i}(),qf=new Ae("mat-date-formats"),FB=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function oE(i,s){for(var r=Array(i),n=0;n2&&void 0!==arguments[2]?arguments[2]:{},p=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),_=Object.assign(Object.assign({},BB),c.animation);c.centered&&(r=p.left+p.width/2,n=p.top+p.height/2);var w=c.radius||uE(r,n,p),M=r-p.left,A=n-p.top,O=_.enterDuration,F=document.createElement("div");F.classList.add("mat-ripple-element"),F.style.left="".concat(M-w,"px"),F.style.top="".concat(A-w,"px"),F.style.height="".concat(2*w,"px"),F.style.width="".concat(2*w,"px"),null!=c.color&&(F.style.backgroundColor=c.color),F.style.transitionDuration="".concat(O,"ms"),this._containerElement.appendChild(F),FW(F),F.style.transform="scale(1)";var Y=new Zy(this,F,c);return Y.state=0,this._activeRipples.add(Y),c.persistent||(this._mostRecentTransientRipple=Y),this._runTimeoutOutsideZone(function(){var $=Y===l._mostRecentTransientRipple;Y.state=1,!c.persistent&&(!$||!l._isPointerDown)&&Y.fadeOut()},O),Y}},{key:"fadeOutRipple",value:function(r){var n=this._activeRipples.delete(r);if(r===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),n){var l=r.element,c=Object.assign(Object.assign({},BB),r.config.animation);l.style.transitionDuration="".concat(c.exitDuration,"ms"),l.style.opacity="0",r.state=2,this._runTimeoutOutsideZone(function(){r.state=3,l.remove()},c.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(r){return r.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(r){r.config.persistent||r.fadeOut()})}},{key:"setupTriggerEvents",value:function(r){var n=vu(r);!n||n===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=n,this._registerEvents(VB))}},{key:"handleEvent",value:function(r){"mousedown"===r.type?this._onMousedown(r):"touchstart"===r.type?this._onTouchStart(r):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(HB),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(r){var n=SA(r),l=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(r,n)})}},{key:"_registerEvents",value:function(r){var n=this;this._ngZone.runOutsideAngular(function(){r.forEach(function(l){n._triggerElement.addEventListener(l,n,lE)})})}},{key:"_removeTriggerEvents",value:function(){var r=this;this._triggerElement&&(VB.forEach(function(n){r._triggerElement.removeEventListener(n,r,lE)}),this._pointerUpEventsRegistered&&HB.forEach(function(n){r._triggerElement.removeEventListener(n,r,lE)}))}}]),i}();function FW(i){window.getComputedStyle(i).getPropertyValue("opacity")}function uE(i,s,r){var n=Math.max(Math.abs(i-r.left),Math.abs(i-r.right)),l=Math.max(Math.abs(s-r.top),Math.abs(s-r.bottom));return Math.sqrt(n*n+l*l)}var GB=new Ae("mat-ripple-global-options"),Nl=function(){var i=function(){function s(r,n,l,c,p){R(this,s),this._elementRef=r,this._animationMode=p,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=c||{},this._rippleRenderer=new zB(this,n,r,l)}return L(s,[{key:"disabled",get:function(){return this._disabled},set:function(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(n){this._trigger=n,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(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c=arguments.length>2?arguments[2]:void 0;return"number"==typeof n?this._rippleRenderer.fadeInRipple(n,l,Object.assign(Object.assign({},this.rippleConfig),c)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),n))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(tt),z(Pt),z(pn),z(GB,8),z(mi,8))},i.\u0275dir=be({type:i,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(r,n){2&r&&Ze("mat-ripple-unbounded",n.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),i}(),Cc=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[vn],vn]}),i}(),NW=function(){var i=L(function s(r){R(this,s),this._animationMode=r,this.state="unchecked",this.disabled=!1});return i.\u0275fac=function(r){return new(r||i)(z(mi,8))},i.\u0275cmp=ke({type:i,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(r,n){2&r&&Ze("mat-pseudo-checkbox-indeterminate","indeterminate"===n.state)("mat-pseudo-checkbox-checked","checked"===n.state)("mat-pseudo-checkbox-disabled",n.disabled)("_mat-animation-noopable","NoopAnimations"===n._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(r,n){},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}),i}(),BW=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[vn]]}),i}(),Xy=new Ae("MAT_OPTION_PARENT_COMPONENT"),$1=new Ae("MatOptgroup"),HW=0,UB=L(function i(s){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];R(this,i),this.source=s,this.isUserInput=r}),zW=function(){var i=function(){function s(r,n,l,c){R(this,s),this._element=r,this._changeDetectorRef=n,this._parent=l,this.group=c,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(HW++),this.onSelectionChange=new ye,this._stateChanges=new Xe}return L(s,[{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(n){this._disabled=gt(n)}},{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(n,l){var c=this._getHostElement();"function"==typeof c.focus&&c.focus(l)}},{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(n){(13===n.keyCode||32===n.keyCode)&&!ia(n)&&(this._selectViaInteraction(),n.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 n=this.viewValue;n!==this._mostRecentViewValue&&(this._mostRecentViewValue=n,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new UB(this,n))}}]),s}();return i.\u0275fac=function(r){lf()},i.\u0275dir=be({type:i,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),i}(),Pi=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_){return R(this,n),r.call(this,l,c,p,_)}return L(n)}(zW);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(hn),z(Xy,8),z($1,8))},i.\u0275cmp=ke({type:i,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(r,n){1&r&&ne("click",function(){return n._selectViaInteraction()})("keydown",function(c){return n._handleKeydown(c)}),2&r&&(bl("id",n.id),lt("tabindex",n._getTabIndex())("aria-selected",n._getAriaSelected())("aria-disabled",n.disabled.toString()),Ze("mat-selected",n.selected)("mat-option-multiple",n.multiple)("mat-active",n.active)("mat-option-disabled",n.disabled))},exportAs:["matOption"],features:[Re],ngContentSelectors:PB,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(r,n){1&r&&(vi(),te(0,aE,1,2,"mat-pseudo-checkbox",0),I(1,"span",1),Gt(2),B(),te(3,EB,2,1,"span",2),Se(4,"div",3)),2&r&&(U("ngIf",n.multiple),G(3),U("ngIf",n.group&&n.group._inert),G(1),U("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disabled||n.disableRipple))},directives:[NW,en,Nl],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;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}),i}();function cE(i,s,r){if(r.length){for(var n=s.toArray(),l=r.toArray(),c=0,p=0;pr+n?Math.max(0,i-n+s):r}var Q1=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[Cc,io,vn,BW]]}),i}();function J1(i,s){}var ug=L(function i(){R(this,i),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="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}),WB={dialogContainer:zi("dialogContainer",[Wn("void, exit",mt({opacity:0,transform:"scale(0.7)"})),Wn("enter",mt({transform:"none"})),Yn("* => enter",TA([$n("150ms cubic-bezier(0, 0, 0.2, 1)",mt({transform:"none",opacity:1})),y1("@*",_1(),{optional:!0})])),Yn("* => void, * => exit",TA([$n("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",mt({opacity:0})),y1("@*",_1(),{optional:!0})]))])},GW=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w,M,A,O){var F;return R(this,n),(F=r.call(this))._elementRef=l,F._focusTrapFactory=c,F._changeDetectorRef=p,F._config=w,F._interactivityChecker=M,F._ngZone=A,F._focusMonitor=O,F._animationStateChanged=new ye,F._elementFocusedBeforeDialogWasOpened=null,F._closeInteractionType=null,F.attachDomPortal=function(Y){return F._portalOutlet.hasAttached(),F._portalOutlet.attachDomPortal(Y)},F._ariaLabelledBy=w.ariaLabelledBy||null,F._document=_,F}return L(n,[{key:"_initializeWithAttachedContent",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Gh())}},{key:"attachComponentPortal",value:function(c){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(c)}},{key:"attachTemplatePortal",value:function(c){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(c)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||this._trapFocus()}},{key:"_forceFocus",value:function(c,p){this._interactivityChecker.isFocusable(c)||(c.tabIndex=-1,this._ngZone.runOutsideAngular(function(){var _=function w(){c.removeEventListener("blur",w),c.removeEventListener("mousedown",w),c.removeAttribute("tabindex")};c.addEventListener("blur",_),c.addEventListener("mousedown",_)})),c.focus(p)}},{key:"_focusByCssSelector",value:function(c,p){var _=this._elementRef.nativeElement.querySelector(c);_&&this._forceFocus(_,p)}},{key:"_trapFocus",value:function(){var c=this,p=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||p.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(function(_){_||c._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}},{key:"_restoreFocus",value:function(){var c=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&c&&"function"==typeof c.focus){var p=Gh(),_=this._elementRef.nativeElement;(!p||p===this._document.body||p===_||_.contains(p))&&(this._focusMonitor?(this._focusMonitor.focusVia(c,this._closeInteractionType),this._closeInteractionType=null):c.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var c=this._elementRef.nativeElement,p=Gh();return c===p||c.contains(p)}}]),n}(Ty);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(k3),z(hn),z(Jt,8),z(ug),z(C3),z(Pt),z(Rl))},i.\u0275dir=be({type:i,viewQuery:function(r,n){var l;1&r&&Rt(pc,7),2&r&&Ve(l=Ge())&&(n._portalOutlet=l.first)},features:[Re]}),i}(),UW=function(){var i=function(s){se(n,s);var r=ue(n);function n(){var l;return R(this,n),(l=r.apply(this,arguments))._state="enter",l}return L(n,[{key:"_onAnimationDone",value:function(c){var p=c.toState,_=c.totalTime;"enter"===p?(this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:_})):"exit"===p&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:_}))}},{key:"_onAnimationStart",value:function(c){var p=c.toState,_=c.totalTime;"enter"===p?this._animationStateChanged.next({state:"opening",totalTime:_}):("exit"===p||"void"===p)&&this._animationStateChanged.next({state:"closing",totalTime:_})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}},{key:"_initializeWithAttachedContent",value:function(){Ye(qe(n.prototype),"_initializeWithAttachedContent",this).call(this),this._config.delayFocusTrap||this._trapFocus()}}]),n}(GW);return i.\u0275fac=function(){var s;return function(n){return(s||(s=cn(i)))(n||i)}}(),i.\u0275cmp=ke({type:i,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(r,n){1&r&&cv("@dialogContainer.start",function(c){return n._onAnimationStart(c)})("@dialogContainer.done",function(c){return n._onAnimationDone(c)}),2&r&&(bl("id",n._id),lt("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledBy)("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),pv("@dialogContainer",n._state))},features:[Re],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(r,n){1&r&&te(0,J1,0,0,"ng-template",0)},directives:[pc],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:[WB.dialogContainer]}}),i}(),jW=0,Hr=function(){function i(s,r){var n=this,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(jW++);R(this,i),this._overlayRef=s,this._containerInstance=r,this.id=l,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Xe,this._afterClosed=new Xe,this._beforeClosed=new Xe,this._state=0,r._id=l,r._animationStateChanged.pipe(Ur(function(c){return"opened"===c.state}),gn(1)).subscribe(function(){n._afterOpened.next(),n._afterOpened.complete()}),r._animationStateChanged.pipe(Ur(function(c){return"closed"===c.state}),gn(1)).subscribe(function(){clearTimeout(n._closeFallbackTimeout),n._finishDialogClose()}),s.detachments().subscribe(function(){n._beforeClosed.next(n._result),n._beforeClosed.complete(),n._afterClosed.next(n._result),n._afterClosed.complete(),n.componentInstance=null,n._overlayRef.dispose()}),s.keydownEvents().pipe(Ur(function(c){return 27===c.keyCode&&!n.disableClose&&!ia(c)})).subscribe(function(c){c.preventDefault(),fE(n,"keyboard")}),s.backdropClick().subscribe(function(){n.disableClose?n._containerInstance._recaptureFocus():fE(n,"mouse")})}return L(i,[{key:"close",value:function(r){var n=this;this._result=r,this._containerInstance._animationStateChanged.pipe(Ur(function(l){return"closing"===l.state}),gn(1)).subscribe(function(l){n._beforeClosed.next(r),n._beforeClosed.complete(),n._overlayRef.detachBackdrop(),n._closeFallbackTimeout=setTimeout(function(){return n._finishDialogClose()},l.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(r){var n=this._getPositionStrategy();return r&&(r.left||r.right)?r.left?n.left(r.left):n.right(r.right):n.centerHorizontally(),r&&(r.top||r.bottom)?r.top?n.top(r.top):n.bottom(r.bottom):n.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:r,height:n}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(r){return this._overlayRef.addPanelClass(r),this}},{key:"removePanelClass",value:function(r){return this._overlayRef.removePanelClass(r),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}}]),i}();function fE(i,s,r){return void 0!==i._containerInstance&&(i._containerInstance._closeInteractionType=s),i.close(r)}var Xr=new Ae("MatDialogData"),WW=new Ae("mat-dialog-default-options"),YB=new Ae("mat-dialog-scroll-strategy"),qW={provide:YB,deps:[aa],useFactory:function qB(i){return function(){return i.scrollStrategies.block()}}},ZW=function(){var i=function(){function s(r,n,l,c,p,_,w,M,A,O){var F=this;R(this,s),this._overlay=r,this._injector=n,this._defaultOptions=l,this._parentDialog=c,this._overlayContainer=p,this._dialogRefConstructor=w,this._dialogContainerType=M,this._dialogDataToken=A,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Xe,this._afterOpenedAtThisLevel=new Xe,this._ariaHiddenElements=new Map,this.afterAllClosed=Sw(function(){return F.openDialogs.length?F._getAfterAllClosed():F._getAfterAllClosed().pipe(na(void 0))}),this._scrollStrategy=_}return L(s,[{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 n=this._parentDialog;return n?n._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(n,l){var c=this;l=function XW(i,s){return Object.assign(Object.assign({},s),i)}(l,this._defaultOptions||new ug),l.id&&this.getDialogById(l.id);var p=this._createOverlay(l),_=this._attachDialogContainer(p,l),w=this._attachDialogContent(n,_,p,l);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(w),w.afterClosed().subscribe(function(){return c._removeOpenDialog(w)}),this.afterOpened.next(w),_._initializeWithAttachedContent(),w}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(n){return this.openDialogs.find(function(l){return l.id===n})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(n){var l=this._getOverlayConfig(n);return this._overlay.create(l)}},{key:"_getOverlayConfig",value:function(n){var l=new Ff({positionStrategy:this._overlay.position().global(),scrollStrategy:n.scrollStrategy||this._scrollStrategy(),panelClass:n.panelClass,hasBackdrop:n.hasBackdrop,direction:n.direction,minWidth:n.minWidth,minHeight:n.minHeight,maxWidth:n.maxWidth,maxHeight:n.maxHeight,disposeOnNavigation:n.closeOnNavigation});return n.backdropClass&&(l.backdropClass=n.backdropClass),l}},{key:"_attachDialogContainer",value:function(n,l){var p=kr.create({parent:l&&l.viewContainerRef&&l.viewContainerRef.injector||this._injector,providers:[{provide:ug,useValue:l}]}),_=new Rf(this._dialogContainerType,l.viewContainerRef,p,l.componentFactoryResolver);return n.attach(_).instance}},{key:"_attachDialogContent",value:function(n,l,c,p){var _=new this._dialogRefConstructor(c,l,p.id);if(n instanceof hr)l.attachTemplatePortal(new es(n,null,{$implicit:p.data,dialogRef:_}));else{var w=this._createInjector(p,_,l),M=l.attachComponentPortal(new Rf(n,p.viewContainerRef,w,p.componentFactoryResolver));_.componentInstance=M.instance}return _.updateSize(p.width,p.height).updatePosition(p.position),_}},{key:"_createInjector",value:function(n,l,c){var p=n&&n.viewContainerRef&&n.viewContainerRef.injector,_=[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:n.data},{provide:this._dialogRefConstructor,useValue:l}];return n.direction&&(!p||!p.get(Ei,null,It.Optional))&&_.push({provide:Ei,useValue:{value:n.direction,change:dt()}}),kr.create({parent:p||this._injector,providers:_})}},{key:"_removeOpenDialog",value:function(n){var l=this.openDialogs.indexOf(n);l>-1&&(this.openDialogs.splice(l,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(c,p){c?p.setAttribute("aria-hidden",c):p.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var n=this._overlayContainer.getContainerElement();if(n.parentElement)for(var l=n.parentElement.children,c=l.length-1;c>-1;c--){var p=l[c];p!==n&&"SCRIPT"!==p.nodeName&&"STYLE"!==p.nodeName&&!p.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(p,p.getAttribute("aria-hidden")),p.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(n){for(var l=n.length;l--;)n[l].close()}}]),s}();return i.\u0275fac=function(r){lf()},i.\u0275dir=be({type:i}),i}(),eS=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w,M,A,O){return R(this,n),r.call(this,l,c,_,M,A,w,Hr,UW,Xr,O)}return L(n)}(ZW);return i.\u0275fac=function(r){return new(r||i)(ge(aa),ge(kr),ge(z_,8),ge(WW,8),ge(YB),ge(i,12),ge(Ly),ge(mi,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),KW=0,_i=function(){var i=function(){function s(r,n,l){R(this,s),this.dialogRef=r,this._elementRef=n,this._dialog=l,this.type="button"}return L(s,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=ZB(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(n){var l=n._matDialogClose||n._matDialogCloseResult;l&&(this.dialogResult=l.currentValue)}},{key:"_onButtonClick",value:function(n){fE(this.dialogRef,0===n.screenX&&0===n.screenY?"keyboard":"mouse",this.dialogResult)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Hr,8),z(tt),z(eS))},i.\u0275dir=be({type:i,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(r,n){1&r&&ne("click",function(c){return n._onButtonClick(c)}),2&r&<("aria-label",n.ariaLabel||null)("type",n.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[xn]}),i}(),si=function(){var i=function(){function s(r,n,l){R(this,s),this._dialogRef=r,this._elementRef=n,this._dialog=l,this.id="mat-dialog-title-".concat(KW++)}return L(s,[{key:"ngOnInit",value:function(){var n=this;this._dialogRef||(this._dialogRef=ZB(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var l=n._dialogRef._containerInstance;l&&!l._ariaLabelledBy&&(l._ariaLabelledBy=n.id)})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Hr,8),z(tt),z(eS))},i.\u0275dir=be({type:i,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(r,n){2&r&&bl("id",n.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),i}(),jr=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=be({type:i,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),i}(),li=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=be({type:i,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),i}();function ZB(i,s){for(var r=i.nativeElement.parentElement;r&&!r.classList.contains("mat-dialog-container");)r=r.parentElement;return r?s.find(function(n){return n.id===r.id}):null}var $W=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({providers:[eS,qW],imports:[[Nf,Kv,vn],vn]}),i}(),XB=["mat-button",""],dE=["*"],e9=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],KB=yc(Fl(bc(function(){return L(function i(s){R(this,i),this._elementRef=s})}()))),qn=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p){var _;R(this,n),(_=r.call(this,l))._focusMonitor=c,_._animationMode=p,_.isRoundButton=_._hasHostAttributes("mat-fab","mat-mini-fab"),_.isIconButton=_._hasHostAttributes("mat-icon-button");var M,w=qt(e9);try{for(w.s();!(M=w.n()).done;){var A=M.value;_._hasHostAttributes(A)&&_._getHostElement().classList.add(A)}}catch(O){w.e(O)}finally{w.f()}return l.nativeElement.classList.add("mat-button-base"),_.isRoundButton&&(_.color="accent"),_}return L(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(c,p){c?this._focusMonitor.focusVia(this._getHostElement(),c,p):this._getHostElement().focus(p)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var c=this,p=arguments.length,_=new Array(p),w=0;w*,.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"],encapsulation:2,changeDetection:0}),i}(),cg=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_){var w;return R(this,n),(w=r.call(this,c,l,p))._ngZone=_,w._haltDisabledEvents=function(M){w.disabled&&(M.preventDefault(),M.stopImmediatePropagation())},w}return L(n,[{key:"ngAfterViewInit",value:function(){var c=this;Ye(qe(n.prototype),"ngAfterViewInit",this).call(this),this._ngZone?this._ngZone.runOutsideAngular(function(){c._elementRef.nativeElement.addEventListener("click",c._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}},{key:"ngOnDestroy",value:function(){Ye(qe(n.prototype),"ngOnDestroy",this).call(this),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}]),n}(qn);return i.\u0275fac=function(r){return new(r||i)(z(Rl),z(tt),z(mi,8),z(Pt,8))},i.\u0275cmp=ke({type:i,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(r,n){2&r&&(lt("tabindex",n.disabled?-1:n.tabIndex)("disabled",n.disabled||null)("aria-disabled",n.disabled.toString()),Ze("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-button-disabled",n.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[Re],attrs:XB,ngContentSelectors:dE,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(r,n){1&r&&(vi(),I(0,"span",0),Gt(1),B(),Se(2,"span",1)(3,"span",2)),2&r&&(G(2),Ze("mat-button-ripple-round",n.isRoundButton||n.isIconButton),U("matRippleDisabled",n._isRippleDisabled())("matRippleCentered",n.isIconButton)("matRippleTrigger",n._getHostElement()))},directives:[Nl],styles:[".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;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;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;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;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"],encapsulation:2,changeDetection:0}),i}(),tS=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[Cc,vn],vn]}),i}(),Gn=function(){var i=function(){function s(r){R(this,s),this.el=r}return L(s,[{key:"ngOnInit",value:function(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim().replaceAll("&","&"))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(tt))},i.\u0275dir=be({type:i,selectors:[["uds-translate"]]}),i}(),$B=function(){var i=function(){function s(r){R(this,s),this.sanitizer=r}return L(s,[{key:"transform",value:function(n,l){return n=(n=(n=n.replace(/<\s*script\s*/gi,"")).replace(/onclick|onmouseover|onmouseout|onmousemove|onmouseenter|onmouseleave|onmouseup|onmousedown|onkeyup|onkeydown|onkeypress|onkeydown|onkeypress|onkeyup|onchange|onfocus|onblur|onload|onunload|onabort|onerror|onresize|onscroll/gi,"")).replace(/javascript\s*\:/gi,""),this.sanitizer.bypassSecurityTrustHtml(n)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Yx,16))},i.\u0275pipe=qi({name:"safeHtml",type:i,pure:!0}),i}();function t9(i,s){if(1&i){var r=xe();I(0,"button",4),ne("click",function(){return he(r),Q().close()}),I(1,"uds-translate"),K(2,"Close"),B(),K(3),B()}if(2&i){var n=Q();G(3),Ln(n.extra)}}function QB(i,s){if(1&i){var r=xe();I(0,"button",5),ne("click",function(){return he(r),Q().yes()}),I(1,"uds-translate"),K(2,"Yes"),B()()}2&i&&U("color",Q().yesColor)}function n9(i,s){if(1&i){var r=xe();I(0,"button",5),ne("click",function(){return he(r),Q().no()}),I(1,"uds-translate"),K(2,"No"),B()()}2&i&&U("color",Q().noColor)}var fg=function(){return function(i){i[i.alert=0]="alert",i[i.yesno=1]="yesno"}(fg||(fg={})),fg}(),JB=function(){var i=function(){function s(r,n){var l=this;R(this,s),this.dialogRef=r,this.data=n,this.yesColor="primary",this.noColor="warn",this.subscription=null,this.resetCallbacks(),this.yesno=new Jn(function(c){l.yes=function(){c.next(!0),c.complete()},l.no=function(){c.next(!1),c.complete()},l.close=function(){l.doClose(),c.next(!1),c.complete()};var p=l;return{unsubscribe:function(){p.resetCallbacks()}}})}return L(s,[{key:"resetCallbacks",value:function(){var n=this;this.yes=this.no=function(){return n.close()},this.close=function(){return n.doClose()}}},{key:"closed",value:function(){null!==this.subscription&&this.subscription.unsubscribe()}},{key:"doClose",value:function(){this.dialogRef.close()}},{key:"setExtra",value:function(n){this.extra=" ("+Math.floor(n/1e3)+" "+django.gettext("seconds")+") "}},{key:"initAlert",value:function(){var n=this;this.data.autoclose>0&&(this.dialogRef.afterClosed().subscribe(function(l){n.closed()}),this.setExtra(this.data.autoclose),this.subscription=function QW(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return i<0&&(i=0),qv(i,i,arguments.length>1&&void 0!==arguments[1]?arguments[1]:El)}(1e3).subscribe(function(l){var c=n.data.autoclose-1e3*(l+1);n.setExtra(c),c<=0&&n.close()}))}},{key:"initYesNo",value:function(){}},{key:"ngOnInit",value:function(){!0===this.data.warnOnYes&&(this.yesColor="warn",this.noColor="primary"),this.data.type===fg.yesno?this.initYesNo():this.initAlert()}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(Se(0,"h4",0),vf(1,"safeHtml"),Se(2,"mat-dialog-content",1),vf(3,"safeHtml"),I(4,"mat-dialog-actions"),te(5,t9,4,1,"button",2),te(6,QB,3,1,"button",3),te(7,n9,3,1,"button",3),B()),2&r&&(U("innerHtml",fh(1,5,n.data.title),Xi),G(2),U("innerHTML",fh(3,7,n.data.body),Xi),G(3),U("ngIf",0==n.data.type),G(1),U("ngIf",1==n.data.type),G(1),U("ngIf",1==n.data.type))},directives:[si,jr,li,en,qn,_i,Gn],pipes:[$B],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),i}(),za=function(){return function(i){i.TEXT="text",i.TEXT_AUTOCOMPLETE="text-autocomplete",i.TEXTBOX="textbox",i.NUMERIC="numeric",i.PASSWORD="password",i.HIDDEN="hidden",i.CHOICE="choice",i.MULTI_CHOICE="multichoice",i.EDITLIST="editlist",i.CHECKBOX="checkbox",i.IMAGECHOICE="imgchoice",i.DATE="date",i.DATETIME="datetime",i.TAGLIST="taglist"}(za||(za={})),za}(),nS=function(){function i(){R(this,i)}return L(i,null,[{key:"locateChoice",value:function(r,n){var l=n.gui.values.find(function(c){return c.id===r});if(void 0===l)try{l=n.gui.values[0]}catch(c){l={id:"",img:"",text:""}}return l}}]),i}(),eV=function(){var i=function(){function s(r,n){R(this,s),this._renderer=r,this._elementRef=n,this.onChange=function(l){},this.onTouched=function(){}}return L(s,[{key:"setProperty",value:function(n,l){this._renderer.setProperty(this._elementRef.nativeElement,n,l)}},{key:"registerOnTouched",value:function(n){this.onTouched=n}},{key:"registerOnChange",value:function(n){this.onChange=n}},{key:"setDisabledState",value:function(n){this.setProperty("disabled",n)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Yu),z(tt))},i.\u0275dir=be({type:i}),i}(),Qh=function(){var i=function(s){se(n,s);var r=ue(n);function n(){return R(this,n),r.apply(this,arguments)}return L(n)}(eV);return i.\u0275fac=function(){var s;return function(n){return(s||(s=cn(i)))(n||i)}}(),i.\u0275dir=be({type:i,features:[Re]}),i}(),Ga=new Ae("NgValueAccessor"),i9={provide:Ga,useExisting:En(function(){return yi}),multi:!0},pE=new Ae("CompositionEventMode"),yi=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p){var _;return R(this,n),(_=r.call(this,l,c))._compositionMode=p,_._composing=!1,null==_._compositionMode&&(_._compositionMode=!function a9(){var i=fu()?fu().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}()),_}return L(n,[{key:"writeValue",value:function(c){this.setProperty("value",null==c?"":c)}},{key:"_handleInput",value:function(c){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(c)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(c){this._composing=!1,this._compositionMode&&this.onChange(c)}}]),n}(eV);return i.\u0275fac=function(r){return new(r||i)(z(Yu),z(tt),z(pE,8))},i.\u0275dir=be({type:i,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,n){1&r&&ne("input",function(c){return n._handleInput(c.target.value)})("blur",function(){return n.onTouched()})("compositionstart",function(){return n._compositionStart()})("compositionend",function(c){return n._compositionEnd(c.target.value)})},features:[ft([i9]),Re]}),i}();function wc(i){return null==i||0===i.length}function rV(i){return null!=i&&"number"==typeof i.length}var Gi=new Ae("NgValidators"),Zf=new Ae("NgAsyncValidators"),iV=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,rS=function(){function i(){R(this,i)}return L(i,null,[{key:"min",value:function(r){return function vE(i){return function(s){if(wc(s.value)||wc(i))return null;var r=parseFloat(s.value);return!isNaN(r)&&ri?{max:{max:i,actual:s.value}}:null}}(r)}},{key:"required",value:function(r){return Ky(r)}},{key:"requiredTrue",value:function(r){return oV(r)}},{key:"email",value:function(r){return function sV(i){return wc(i.value)||iV.test(i.value)?null:{email:!0}}(r)}},{key:"minLength",value:function(r){return function gE(i){return function(s){return wc(s.value)||!rV(s.value)?null:s.value.lengthi?{maxlength:{requiredLength:i,actualLength:s.value.length}}:null}}function dg(i){return null}function mE(i){return null!=i}function $y(i){var s=Wm(i)?Wi(i):i;return eD(s),s}function _E(i){var s={};return i.forEach(function(r){s=null!=r?Object.assign(Object.assign({},s),r):s}),0===Object.keys(s).length?null:s}function uV(i,s){return s.map(function(r){return r(i)})}function cV(i){return i.map(function(s){return function o9(i){return!i.validate}(s)?s:function(r){return s.validate(r)}})}function yE(i){if(!i)return null;var s=i.filter(mE);return 0==s.length?null:function(r){return _E(uV(r,s))}}function bE(i){return null!=i?yE(cV(i)):null}function fV(i){if(!i)return null;var s=i.filter(mE);return 0==s.length?null:function(r){return function r9(){for(var i=arguments.length,s=new Array(i),r=0;r0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(r)}},{key:"hasError",value:function(r,n){return!!this.control&&this.control.hasError(r,n)}},{key:"getError",value:function(r,n){return this.control?this.control.getError(r,n):null}}]),i}(),Bl=function(i){se(r,i);var s=ue(r);function r(){var n;return R(this,r),(n=s.apply(this,arguments))._parent=null,n.name=null,n.valueAccessor=null,n}return L(r)}(pg),lo=function(i){se(r,i);var s=ue(r);function r(){return R(this,r),s.apply(this,arguments)}return L(r,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),r}(pg),pV=function(){function i(s){R(this,i),this._cd=s}return L(i,[{key:"is",value:function(r){var n,l,c;return"submitted"===r?!!(null===(n=this._cd)||void 0===n?void 0:n.submitted):!!(null===(c=null===(l=this._cd)||void 0===l?void 0:l.control)||void 0===c?void 0:c[r])}}]),i}(),pr=function(){var i=function(s){se(n,s);var r=ue(n);function n(l){return R(this,n),r.call(this,l)}return L(n)}(pV);return i.\u0275fac=function(r){return new(r||i)(z(Bl,2))},i.\u0275dir=be({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,n){2&r&&Ze("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))},features:[Re]}),i}(),Xf=function(){var i=function(s){se(n,s);var r=ue(n);function n(l){return R(this,n),r.call(this,l)}return L(n)}(pV);return i.\u0275fac=function(r){return new(r||i)(z(lo,10))},i.\u0275dir=be({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,n){2&r&&Ze("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))("ng-submitted",n.is("submitted"))},features:[Re]}),i}();function vg(i,s){SE(i,s),s.valueAccessor.writeValue(i.value),function yV(i,s){s.valueAccessor.registerOnChange(function(r){i._pendingValue=r,i._pendingChange=!0,i._pendingDirty=!0,"change"===i.updateOn&&v9(i,s)})}(i,s),function g9(i,s){var r=function(l,c){s.valueAccessor.writeValue(l),c&&s.viewToModelUpdate(l)};i.registerOnChange(r),s._registerOnDestroy(function(){i._unregisterOnChange(r)})}(i,s),function K$(i,s){s.valueAccessor.registerOnTouched(function(){i._pendingTouched=!0,"blur"===i.updateOn&&i._pendingChange&&v9(i,s),"submit"!==i.updateOn&&i.markAsTouched()})}(i,s),function p9(i,s){if(s.valueAccessor.setDisabledState){var r=function(l){s.valueAccessor.setDisabledState(l)};i.registerOnDisabledChange(r),s._registerOnDestroy(function(){i._unregisterOnDisabledChange(r)})}}(i,s)}function lS(i,s){var n=function(){};s.valueAccessor&&(s.valueAccessor.registerOnChange(n),s.valueAccessor.registerOnTouched(n)),cS(i,s),i&&(s._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(function(){}))}function uS(i,s){i.forEach(function(r){r.registerOnValidatorChange&&r.registerOnValidatorChange(s)})}function SE(i,s){var r=l9(i);null!==s.validator?i.setValidators(s9(r,s.validator)):"function"==typeof r&&i.setValidators([r]);var n=dV(i);null!==s.asyncValidator?i.setAsyncValidators(s9(n,s.asyncValidator)):"function"==typeof n&&i.setAsyncValidators([n]);var l=function(){return i.updateValueAndValidity()};uS(s._rawValidators,l),uS(s._rawAsyncValidators,l)}function cS(i,s){var r=!1;if(null!==i){if(null!==s.validator){var n=l9(i);if(Array.isArray(n)&&n.length>0){var l=n.filter(function(w){return w!==s.validator});l.length!==n.length&&(r=!0,i.setValidators(l))}}if(null!==s.asyncValidator){var c=dV(i);if(Array.isArray(c)&&c.length>0){var p=c.filter(function(w){return w!==s.asyncValidator});p.length!==c.length&&(r=!0,i.setAsyncValidators(p))}}}var _=function(){};return uS(s._rawValidators,_),uS(s._rawAsyncValidators,_),r}function v9(i,s){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),s.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function bV(i,s){SE(i,s)}function wV(i,s){i._syncPendingControls(),s.forEach(function(r){var n=r.control;"submit"===n.updateOn&&n._pendingChange&&(r.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function kE(i,s){var r=i.indexOf(s);r>-1&&i.splice(r,1)}var Qy="VALID",dS="INVALID",mg="PENDING",Jy="DISABLED";function hS(i){return(pS(i)?i.validators:i)||null}function xE(i){return Array.isArray(i)?bE(i):i||null}function TE(i,s){return(pS(s)?s.asyncValidators:i)||null}function MV(i){return Array.isArray(i)?yu(i):i||null}function pS(i){return null!=i&&!Array.isArray(i)&&"object"==typeof i}var kV=function(s){return s instanceof AE},eb=function(s){return s instanceof EE};function DV(i){return kV(i)?i.value:i.getRawValue()}function xV(i,s){var r=eb(i),n=i.controls;if(!(r?Object.keys(n):n).length)throw new st(1e3,"");if(!n[s])throw new st(1001,"")}function TV(i,s){eb(i),i._forEachChild(function(n,l){if(void 0===s[l])throw new st(1002,"")})}var tb=function(){function i(s,r){R(this,i),this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=s,this._rawAsyncValidators=r,this._composedValidatorFn=xE(this._rawValidators),this._composedAsyncValidatorFn=MV(this._rawAsyncValidators)}return L(i,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(r){this._rawValidators=this._composedValidatorFn=r}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(r){this._rawAsyncValidators=this._composedAsyncValidatorFn=r}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===Qy}},{key:"invalid",get:function(){return this.status===dS}},{key:"pending",get:function(){return this.status==mg}},{key:"disabled",get:function(){return this.status===Jy}},{key:"enabled",get:function(){return this.status!==Jy}},{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(r){this._rawValidators=r,this._composedValidatorFn=xE(r)}},{key:"setAsyncValidators",value:function(r){this._rawAsyncValidators=r,this._composedAsyncValidatorFn=MV(r)}},{key:"addValidators",value:function(r){this.setValidators(hV(r,this._rawValidators))}},{key:"addAsyncValidators",value:function(r){this.setAsyncValidators(hV(r,this._rawAsyncValidators))}},{key:"removeValidators",value:function(r){this.setValidators(CE(r,this._rawValidators))}},{key:"removeAsyncValidators",value:function(r){this.setAsyncValidators(CE(r,this._rawAsyncValidators))}},{key:"hasValidator",value:function(r){return hg(this._rawValidators,r)}},{key:"hasAsyncValidator",value:function(r){return hg(this._rawAsyncValidators,r)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!r.onlySelf&&this._parent.markAsTouched(r)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(r){return r.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(n){n.markAsUntouched({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}},{key:"markAsDirty",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!r.onlySelf&&this._parent.markAsDirty(r)}},{key:"markAsPristine",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(n){n.markAsPristine({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}},{key:"markAsPending",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=mg,!1!==r.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!r.onlySelf&&this._parent.markAsPending(r)}},{key:"disable",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._parentMarkedDirty(r.onlySelf);this.status=Jy,this.errors=null,this._forEachChild(function(l){l.disable(Object.assign(Object.assign({},r),{onlySelf:!0}))}),this._updateValue(),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},r),{skipPristineCheck:n})),this._onDisabledChange.forEach(function(l){return l(!0)})}},{key:"enable",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._parentMarkedDirty(r.onlySelf);this.status=Qy,this._forEachChild(function(l){l.enable(Object.assign(Object.assign({},r),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},r),{skipPristineCheck:n})),this._onDisabledChange.forEach(function(l){return l(!1)})}},{key:"_updateAncestors",value:function(r){this._parent&&!r.onlySelf&&(this._parent.updateValueAndValidity(r),r.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(r){this._parent=r}},{key:"updateValueAndValidity",value:function(){var r=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===Qy||this.status===mg)&&this._runAsyncValidator(r.emitEvent)),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.updateValueAndValidity(r)}},{key:"_updateTreeValidity",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(n){return n._updateTreeValidity(r)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?Jy:Qy}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(r){var n=this;if(this.asyncValidator){this.status=mg,this._hasOwnPendingAsyncValidator=!0;var l=$y(this.asyncValidator(this));this._asyncValidationSubscription=l.subscribe(function(c){n._hasOwnPendingAsyncValidator=!1,n.setErrors(c,{emitEvent:r})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=r,this._updateControlsErrors(!1!==n.emitEvent)}},{key:"get",value:function(r){return function _9(i,s,r){if(null==s||(Array.isArray(s)||(s=s.split(r)),Array.isArray(s)&&0===s.length))return null;var n=i;return s.forEach(function(l){n=eb(n)?n.controls.hasOwnProperty(l)?n.controls[l]:null:function(s){return s instanceof AV}(n)&&n.at(l)||null}),n}(this,r,".")}},{key:"getError",value:function(r,n){var l=n?this.get(n):this;return l&&l.errors?l.errors[r]:null}},{key:"hasError",value:function(r,n){return!!this.getError(r,n)}},{key:"root",get:function(){for(var r=this;r._parent;)r=r._parent;return r}},{key:"_updateControlsErrors",value:function(r){this.status=this._calculateStatus(),r&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(r)}},{key:"_initObservables",value:function(){this.valueChanges=new ye,this.statusChanges=new ye}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?Jy:this.errors?dS:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(mg)?mg:this._anyControlsHaveStatus(dS)?dS:Qy}},{key:"_anyControlsHaveStatus",value:function(r){return this._anyControls(function(n){return n.status===r})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(r){return r.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(r){return r.touched})}},{key:"_updatePristine",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}},{key:"_updateTouched",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}},{key:"_isBoxedValue",value:function(r){return"object"==typeof r&&null!==r&&2===Object.keys(r).length&&"value"in r&&"disabled"in r}},{key:"_registerOnCollectionChange",value:function(r){this._onCollectionChange=r}},{key:"_setUpdateStrategy",value:function(r){pS(r)&&null!=r.updateOn&&(this._updateOn=r.updateOn)}},{key:"_parentMarkedDirty",value:function(r){return!r&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),i}(),AE=function(i){se(r,i);var s=ue(r);function r(){var n,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,c=arguments.length>1?arguments[1]:void 0,p=arguments.length>2?arguments[2]:void 0;return R(this,r),(n=s.call(this,hS(c),TE(p,c))).defaultValue=null,n._onChange=[],n._pendingChange=!1,n._applyFormState(l),n._setUpdateStrategy(c),n._initObservables(),n.updateValueAndValidity({onlySelf:!0,emitEvent:!!n.asyncValidator}),pS(c)&&c.initialValueIsDefault&&(n.defaultValue=n._isBoxedValue(l)?l.value:l),n}return L(r,[{key:"setValue",value:function(l){var c=this,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=l,this._onChange.length&&!1!==p.emitModelToViewChange&&this._onChange.forEach(function(_){return _(c.value,!1!==p.emitViewToModelChange)}),this.updateValueAndValidity(p)}},{key:"patchValue",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(l,c)}},{key:"reset",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.defaultValue,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(l),this.markAsPristine(c),this.markAsUntouched(c),this.setValue(this.value,c),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(l){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(l){this._onChange.push(l)}},{key:"_unregisterOnChange",value:function(l){kE(this._onChange,l)}},{key:"registerOnDisabledChange",value:function(l){this._onDisabledChange.push(l)}},{key:"_unregisterOnDisabledChange",value:function(l){kE(this._onDisabledChange,l)}},{key:"_forEachChild",value:function(l){}},{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(l){this._isBoxedValue(l)?(this.value=this._pendingValue=l.value,l.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=l}}]),r}(tb),EE=function(i){se(r,i);var s=ue(r);function r(n,l,c){var p;return R(this,r),(p=s.call(this,hS(l),TE(c,l))).controls=n,p._initObservables(),p._setUpdateStrategy(l),p._setUpControls(),p.updateValueAndValidity({onlySelf:!0,emitEvent:!!p.asyncValidator}),p}return L(r,[{key:"registerControl",value:function(l,c){return this.controls[l]?this.controls[l]:(this.controls[l]=c,c.setParent(this),c._registerOnCollectionChange(this._onCollectionChange),c)}},{key:"addControl",value:function(l,c){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(l,c),this.updateValueAndValidity({emitEvent:p.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[l]&&this.controls[l]._registerOnCollectionChange(function(){}),delete this.controls[l],this.updateValueAndValidity({emitEvent:c.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(l,c){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[l]&&this.controls[l]._registerOnCollectionChange(function(){}),delete this.controls[l],c&&this.registerControl(l,c),this.updateValueAndValidity({emitEvent:p.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(l){return this.controls.hasOwnProperty(l)&&this.controls[l].enabled}},{key:"setValue",value:function(l){var c=this,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};TV(this,l),Object.keys(l).forEach(function(_){xV(c,_),c.controls[_].setValue(l[_],{onlySelf:!0,emitEvent:p.emitEvent})}),this.updateValueAndValidity(p)}},{key:"patchValue",value:function(l){var c=this,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=l&&(Object.keys(l).forEach(function(_){c.controls[_]&&c.controls[_].patchValue(l[_],{onlySelf:!0,emitEvent:p.emitEvent})}),this.updateValueAndValidity(p))}},{key:"reset",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(p,_){p.reset(l[_],{onlySelf:!0,emitEvent:c.emitEvent})}),this._updatePristine(c),this._updateTouched(c),this.updateValueAndValidity(c)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(l,c,p){return l[p]=DV(c),l})}},{key:"_syncPendingControls",value:function(){var l=this._reduceChildren(!1,function(c,p){return!!p._syncPendingControls()||c});return l&&this.updateValueAndValidity({onlySelf:!0}),l}},{key:"_forEachChild",value:function(l){var c=this;Object.keys(this.controls).forEach(function(p){var _=c.controls[p];_&&l(_,p)})}},{key:"_setUpControls",value:function(){var l=this;this._forEachChild(function(c){c.setParent(l),c._registerOnCollectionChange(l._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(l){for(var c=0,p=Object.keys(this.controls);c0||this.disabled}}]),r}(tb),AV=function(i){se(r,i);var s=ue(r);function r(n,l,c){var p;return R(this,r),(p=s.call(this,hS(l),TE(c,l))).controls=n,p._initObservables(),p._setUpdateStrategy(l),p._setUpControls(),p.updateValueAndValidity({onlySelf:!0,emitEvent:!!p.asyncValidator}),p}return L(r,[{key:"at",value:function(l){return this.controls[l]}},{key:"push",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(l),this._registerControl(l),this.updateValueAndValidity({emitEvent:c.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(l,c){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(l,0,c),this._registerControl(c),this.updateValueAndValidity({emitEvent:p.emitEvent})}},{key:"removeAt",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[l]&&this.controls[l]._registerOnCollectionChange(function(){}),this.controls.splice(l,1),this.updateValueAndValidity({emitEvent:c.emitEvent})}},{key:"setControl",value:function(l,c){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[l]&&this.controls[l]._registerOnCollectionChange(function(){}),this.controls.splice(l,1),c&&(this.controls.splice(l,0,c),this._registerControl(c)),this.updateValueAndValidity({emitEvent:p.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(l){var c=this,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};TV(this,l),l.forEach(function(_,w){xV(c,w),c.at(w).setValue(_,{onlySelf:!0,emitEvent:p.emitEvent})}),this.updateValueAndValidity(p)}},{key:"patchValue",value:function(l){var c=this,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=l&&(l.forEach(function(_,w){c.at(w)&&c.at(w).patchValue(_,{onlySelf:!0,emitEvent:p.emitEvent})}),this.updateValueAndValidity(p))}},{key:"reset",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(p,_){p.reset(l[_],{onlySelf:!0,emitEvent:c.emitEvent})}),this._updatePristine(c),this._updateTouched(c),this.updateValueAndValidity(c)}},{key:"getRawValue",value:function(){return this.controls.map(function(l){return DV(l)})}},{key:"clear",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(c){return c._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:l.emitEvent}))}},{key:"_syncPendingControls",value:function(){var l=this.controls.reduce(function(c,p){return!!p._syncPendingControls()||c},!1);return l&&this.updateValueAndValidity({onlySelf:!0}),l}},{key:"_forEachChild",value:function(l){this.controls.forEach(function(c,p){l(c,p)})}},{key:"_updateValue",value:function(){var l=this;this.value=this.controls.filter(function(c){return c.enabled||l.disabled}).map(function(c){return c.value})}},{key:"_anyControls",value:function(l){return this.controls.some(function(c){return c.enabled&&l(c)})}},{key:"_setUpControls",value:function(){var l=this;this._forEachChild(function(c){return l._registerControl(c)})}},{key:"_allControlsDisabled",value:function(){var c,l=qt(this.controls);try{for(l.s();!(c=l.n()).done;)if(c.value.enabled)return!1}catch(_){l.e(_)}finally{l.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(l){l.setParent(this),l._registerOnCollectionChange(this._onCollectionChange)}}]),r}(tb),EV={provide:lo,useExisting:En(function(){return Sc})},tp=function(){return Promise.resolve(null)}(),Sc=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c){var p;return R(this,n),(p=r.call(this)).submitted=!1,p._directives=new Set,p.ngSubmit=new ye,p.form=new EE({},bE(l),yu(c)),p}return L(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(c){var p=this;tp.then(function(){var _=p._findContainer(c.path);c.control=_.registerControl(c.name,c.control),vg(c.control,c),c.control.updateValueAndValidity({emitEvent:!1}),p._directives.add(c)})}},{key:"getControl",value:function(c){return this.form.get(c.path)}},{key:"removeControl",value:function(c){var p=this;tp.then(function(){var _=p._findContainer(c.path);_&&_.removeControl(c.name),p._directives.delete(c)})}},{key:"addFormGroup",value:function(c){var p=this;tp.then(function(){var _=p._findContainer(c.path),w=new EE({});bV(w,c),_.registerControl(c.name,w),w.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(c){var p=this;tp.then(function(){var _=p._findContainer(c.path);_&&_.removeControl(c.name)})}},{key:"getFormGroup",value:function(c){return this.form.get(c.path)}},{key:"updateModel",value:function(c,p){var _=this;tp.then(function(){_.form.get(c.path).setValue(p)})}},{key:"setValue",value:function(c){this.control.setValue(c)}},{key:"onSubmit",value:function(c){return this.submitted=!0,wV(this.form,this._directives),this.ngSubmit.emit(c),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(c),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(c){return c.pop(),c.length?this.form.get(c):this.form}}]),n}(lo);return i.\u0275fac=function(r){return new(r||i)(z(Gi,10),z(Zf,10))},i.\u0275dir=be({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,n){1&r&&ne("submit",function(c){return n.onSubmit(c)})("reset",function(){return n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ft([EV]),Re]}),i}(),eQ={provide:Bl,useExisting:En(function(){return ar})},IV=function(){return Promise.resolve(null)}(),ar=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w){var M;return R(this,n),(M=r.call(this))._changeDetectorRef=w,M.control=new AE,M._registered=!1,M.update=new ye,M._parent=l,M._setValidators(c),M._setAsyncValidators(p),M.valueAccessor=function gg(i,s){if(!s)return null;Array.isArray(s);var r=void 0,n=void 0,l=void 0;return s.forEach(function(c){c.constructor===yi?r=c:function m9(i){return Object.getPrototypeOf(i.constructor)===Qh}(c)?n=c:l=c}),l||n||r||null}(an(M),_),M}return L(n,[{key:"ngOnChanges",value:function(c){if(this._checkForErrors(),!this._registered||"name"in c){if(this._registered&&(this._checkName(),this.formDirective)){var p=c.name.previousValue;this.formDirective.removeControl({name:p,path:this._getPath(p)})}this._setUpControl()}"isDisabled"in c&&this._updateDisabled(c),function ME(i,s){if(!i.hasOwnProperty("model"))return!1;var r=i.model;return!!r.isFirstChange()||!Object.is(s,r.currentValue)}(c,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._getPath(this.name)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(c){this.viewModel=c,this.update.emit(c)}},{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(){vg(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(c){var p=this;IV.then(function(){var _;p.control.setValue(c,{emitViewToModelChange:!1}),null===(_=p._changeDetectorRef)||void 0===_||_.markForCheck()})}},{key:"_updateDisabled",value:function(c){var p=this,_=c.isDisabled.currentValue,w=""===_||_&&"false"!==_;IV.then(function(){var M;w&&!p.control.disabled?p.control.disable():!w&&p.control.disabled&&p.control.enable(),null===(M=p._changeDetectorRef)||void 0===M||M.markForCheck()})}},{key:"_getPath",value:function(c){return this._parent?function sS(i,s){return[].concat(yt(s.path),[i])}(c,this._parent):[c]}}]),n}(Bl);return i.\u0275fac=function(r){return new(r||i)(z(lo,9),z(Gi,10),z(Zf,10),z(Ga,10),z(hn,8))},i.\u0275dir=be({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ft([eQ]),Re,xn]}),i}(),nb=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=be({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),i}(),w9={provide:Ga,useExisting:En(function(){return Kf}),multi:!0},Kf=function(){var i=function(s){se(n,s);var r=ue(n);function n(){return R(this,n),r.apply(this,arguments)}return L(n,[{key:"writeValue",value:function(c){this.setProperty("value",null==c?"":c)}},{key:"registerOnChange",value:function(c){this.onChange=function(p){c(""==p?null:parseFloat(p))}}}]),n}(Qh);return i.\u0275fac=function(){var s;return function(n){return(s||(s=cn(i)))(n||i)}}(),i.\u0275dir=be({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,n){1&r&&ne("input",function(c){return n.onChange(c.target.value)})("blur",function(){return n.onTouched()})},features:[ft([w9]),Re]}),i}(),RV=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({}),i}(),LE=new Ae("NgModelWithFormControlWarning"),k9={provide:lo,useExisting:En(function(){return $f})},$f=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c){var p;return R(this,n),(p=r.call(this)).validators=l,p.asyncValidators=c,p.submitted=!1,p._onCollectionChange=function(){return p._updateDomValue()},p.directives=[],p.form=null,p.ngSubmit=new ye,p._setValidators(l),p._setAsyncValidators(c),p}return L(n,[{key:"ngOnChanges",value:function(c){this._checkFormPresent(),c.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(cS(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(c){var p=this.form.get(c.path);return vg(p,c),p.updateValueAndValidity({emitEvent:!1}),this.directives.push(c),p}},{key:"getControl",value:function(c){return this.form.get(c.path)}},{key:"removeControl",value:function(c){lS(c.control||null,c),kE(this.directives,c)}},{key:"addFormGroup",value:function(c){this._setUpFormContainer(c)}},{key:"removeFormGroup",value:function(c){this._cleanUpFormContainer(c)}},{key:"getFormGroup",value:function(c){return this.form.get(c.path)}},{key:"addFormArray",value:function(c){this._setUpFormContainer(c)}},{key:"removeFormArray",value:function(c){this._cleanUpFormContainer(c)}},{key:"getFormArray",value:function(c){return this.form.get(c.path)}},{key:"updateModel",value:function(c,p){this.form.get(c.path).setValue(p)}},{key:"onSubmit",value:function(c){return this.submitted=!0,wV(this.form,this.directives),this.ngSubmit.emit(c),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(c),this.submitted=!1}},{key:"_updateDomValue",value:function(){var c=this;this.directives.forEach(function(p){var _=p.control,w=c.form.get(p.path);_!==w&&(lS(_||null,p),kV(w)&&(vg(w,p),p.control=w))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(c){var p=this.form.get(c.path);bV(p,c),p.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(c){if(this.form){var p=this.form.get(c.path);if(p){var _=function CV(i,s){return cS(i,s)}(p,c);_&&p.updateValueAndValidity({emitEvent:!1})}}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){SE(this.form,this),this._oldForm&&cS(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),n}(lo);return i.\u0275fac=function(r){return new(r||i)(z(Gi,10),z(Zf,10))},i.\u0275dir=be({type:i,selectors:[["","formGroup",""]],hostBindings:function(r,n){1&r&&ne("submit",function(c){return n.onSubmit(c)})("reset",function(){return n.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ft([k9]),Re,xn]}),i}();function GE(i){return"number"==typeof i?i:parseInt(i,10)}function P9(i){return null!=i&&!1!==i&&"false"!=="".concat(i)}var np=function(){var i=function(){function s(){R(this,s),this._validator=dg}return L(s,[{key:"ngOnChanges",value:function(n){if(this.inputName in n){var l=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(l),this._validator=this._enabled?this.createValidator(l):dg,this._onChange&&this._onChange()}}},{key:"validate",value:function(n){return this._validator(n)}},{key:"registerOnValidatorChange",value:function(n){this._onChange=n}},{key:"enabled",value:function(n){return null!=n}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=be({type:i,features:[xn]}),i}(),I9={provide:Gi,useExisting:En(function(){return Vs}),multi:!0},R9={provide:Gi,useExisting:En(function(){return ib}),multi:!0},Vs=function(){var i=function(s){se(n,s);var r=ue(n);function n(){var l;return R(this,n),(l=r.apply(this,arguments)).inputName="required",l.normalizeInput=function(c){return P9(c)},l.createValidator=function(c){return Ky},l}return L(n,[{key:"enabled",value:function(c){return c}}]),n}(np);return i.\u0275fac=function(){var s;return function(n){return(s||(s=cn(i)))(n||i)}}(),i.\u0275dir=be({type:i,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,n){2&r&<("required",n._enabled?"":null)},inputs:{required:"required"},features:[ft([I9]),Re]}),i}(),ib=function(){var i=function(s){se(n,s);var r=ue(n);function n(){var l;return R(this,n),(l=r.apply(this,arguments)).createValidator=function(c){return oV},l}return L(n)}(Vs);return i.\u0275fac=function(){var s;return function(n){return(s||(s=cn(i)))(n||i)}}(),i.\u0275dir=be({type:i,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(r,n){2&r&<("required",n._enabled?"":null)},features:[ft([R9]),Re]}),i}(),L9={provide:Gi,useExisting:En(function(){return gS}),multi:!0},gS=function(){var i=function(s){se(n,s);var r=ue(n);function n(){var l;return R(this,n),(l=r.apply(this,arguments)).inputName="maxlength",l.normalizeInput=function(c){return GE(c)},l.createValidator=function(c){return ns(c)},l}return L(n)}(np);return i.\u0275fac=function(){var s;return function(n){return(s||(s=cn(i)))(n||i)}}(),i.\u0275dir=be({type:i,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,n){2&r&<("maxlength",n._enabled?n.maxlength:null)},inputs:{maxlength:"maxlength"},features:[ft([L9]),Re]}),i}(),_S=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[RV]]}),i}(),jE=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[_S]}),i}(),KV=function(){var i=function(){function s(){R(this,s)}return L(s,null,[{key:"withConfig",value:function(n){return{ngModule:s,providers:[{provide:LE,useValue:n.warnOnNgModelWithFormControl}]}}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[_S]}),i}();function $V(i,s){1&i&&Gt(0)}var QV=["*"];function N9(i,s){}var JV=function(s){return{animationDuration:s}},B9=function(s,r){return{value:s,params:r}},V9=["tabListContainer"],H9=["tabList"],z9=["tabListInner"],e5=["nextPaginator"],G9=["previousPaginator"],U9=["tabBodyWrapper"],j9=["tabHeader"];function W9(i,s){}function Y9(i,s){1&i&&te(0,W9,0,0,"ng-template",10),2&i&&U("cdkPortalOutlet",Q().$implicit.templateLabel)}function q9(i,s){1&i&&K(0),2&i&&Ln(Q().$implicit.textLabel)}function Z9(i,s){if(1&i){var r=xe();I(0,"div",6),ne("click",function(){var w=he(r),M=w.$implicit,A=w.index,O=Q(),F=Dn(1);return O._handleClick(M,F,A)})("cdkFocusChange",function(w){var A=he(r).index;return Q()._tabFocusChanged(w,A)}),I(1,"div",7),te(2,Y9,1,1,"ng-template",8),te(3,q9,1,1,"ng-template",null,9,Ko),B()()}if(2&i){var n=s.$implicit,l=s.index,c=Dn(4),p=Q();Ze("mat-tab-label-active",p.selectedIndex===l),U("id",p._getTabLabelId(l))("ngClass",n.labelClass)("disabled",n.disabled)("matRippleDisabled",n.disabled||p.disableRipple),lt("tabIndex",p._getTabIndex(n,l))("aria-posinset",l+1)("aria-setsize",p._tabs.length)("aria-controls",p._getTabContentId(l))("aria-selected",p.selectedIndex===l)("aria-label",n.ariaLabel||null)("aria-labelledby",!n.ariaLabel&&n.ariaLabelledby?n.ariaLabelledby:null),G(2),U("ngIf",n.templateLabel)("ngIfElse",c)}}function X9(i,s){if(1&i){var r=xe();I(0,"mat-tab-body",11),ne("_onCentered",function(){return he(r),Q()._removeTabBodyWrapperHeight()})("_onCentering",function(_){return he(r),Q()._setTabBodyWrapperHeight(_)}),B()}if(2&i){var n=s.$implicit,l=s.index,c=Q();Ze("mat-tab-body-active",c.selectedIndex===l),U("id",c._getTabContentId(l))("ngClass",n.bodyClass)("content",n.content)("position",n.position)("origin",n.origin)("animationDuration",c.animationDuration),lt("tabindex",null!=c.contentTabIndex&&c.selectedIndex===l?c.contentTabIndex:null)("aria-labelledby",c._getTabLabelId(l))}}var t5=new Ae("MatInkBarPositioner",{providedIn:"root",factory:function n5(){return function(r){return{left:r?(r.offsetLeft||0)+"px":"0",width:r?(r.offsetWidth||0)+"px":"0"}}}}),r5=function(){var i=function(){function s(r,n,l,c){R(this,s),this._elementRef=r,this._ngZone=n,this._inkBarPositioner=l,this._animationMode=c}return L(s,[{key:"alignToElement",value:function(n){var l=this;this.show(),this._ngZone.onStable.pipe(gn(1)).subscribe(function(){var c=l._inkBarPositioner(n),p=l._elementRef.nativeElement;p.style.left=c.left,p.style.width=c.width})}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(tt),z(Pt),z(t5),z(mi,8))},i.\u0275dir=be({type:i,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(r,n){2&r&&Ze("_mat-animation-noopable","NoopAnimations"===n._animationMode)}}),i}(),K9=new Ae("MatTabContent"),a5=new Ae("MatTabLabel"),o5=new Ae("MAT_TAB"),rs=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p){var _;return R(this,n),(_=r.call(this,l,c))._closestTab=p,_}return L(n)}(Tj);return i.\u0275fac=function(r){return new(r||i)(z(hr),z(wr),z(o5,8))},i.\u0275dir=be({type:i,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[ft([{provide:a5,useExisting:i}]),Re]}),i}(),s5=Fl(function(){return L(function i(){R(this,i)})}()),l5=new Ae("MAT_TAB_GROUP"),Hs=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c){var p;return R(this,n),(p=r.call(this))._viewContainerRef=l,p._closestTabGroup=c,p.textLabel="",p._contentPortal=null,p._stateChanges=new Xe,p.position=null,p.origin=null,p.isActive=!1,p}return L(n,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(c){this._setTemplateLabelInput(c)}},{key:"content",get:function(){return this._contentPortal}},{key:"ngOnChanges",value:function(c){(c.hasOwnProperty("textLabel")||c.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new es(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(c){c&&c._closestTab===this&&(this._templateLabel=c)}}]),n}(s5);return i.\u0275fac=function(r){return new(r||i)(z(wr),z(l5,8))},i.\u0275cmp=ke({type:i,selectors:[["mat-tab"]],contentQueries:function(r,n,l){var c;1&r&&(Mn(l,a5,5),Mn(l,K9,7,hr)),2&r&&(Ve(c=Ge())&&(n.templateLabel=c.first),Ve(c=Ge())&&(n._explicitContent=c.first))},viewQuery:function(r,n){var l;1&r&&Rt(hr,7),2&r&&Ve(l=Ge())&&(n._implicitContent=l.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[ft([{provide:o5,useExisting:i}]),Re,xn],ngContentSelectors:QV,decls:1,vars:0,template:function(r,n){1&r&&(vi(),te(0,$V,1,0,"ng-template"))},encapsulation:2}),i}(),$9={translateTab:zi("translateTab",[Wn("center, void, left-origin-center, right-origin-center",mt({transform:"none"})),Wn("left",mt({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Wn("right",mt({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Yn("* => left, * => right, left => center, right => center",$n("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Yn("void => left-origin-center",[mt({transform:"translate3d(-100%, 0, 0)"}),$n("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Yn("void => right-origin-center",[mt({transform:"translate3d(100%, 0, 0)"}),$n("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},Q9=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_){var w;return R(this,n),(w=r.call(this,l,c,_))._host=p,w._centeringSub=Te.EMPTY,w._leavingSub=Te.EMPTY,w}return L(n,[{key:"ngOnInit",value:function(){var c=this;Ye(qe(n.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe(na(this._host._isCenterPosition(this._host._position))).subscribe(function(p){p&&!c.hasAttached()&&c.attach(c._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){c.detach()})}},{key:"ngOnDestroy",value:function(){Ye(qe(n.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),n}(pc);return i.\u0275fac=function(r){return new(r||i)(z(Wu),z(wr),z(En(function(){return WE})),z(Jt))},i.\u0275dir=be({type:i,selectors:[["","matTabBodyHost",""]],features:[Re]}),i}(),u5=function(){var i=function(){function s(r,n,l){var c=this;R(this,s),this._elementRef=r,this._dir=n,this._dirChangeSubscription=Te.EMPTY,this._translateTabComplete=new Xe,this._onCentering=new ye,this._beforeCentering=new ye,this._afterLeavingCenter=new ye,this._onCentered=new ye(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe(function(p){c._computePositionAnimationState(p),l.markForCheck()})),this._translateTabComplete.pipe(Fy(function(p,_){return p.fromState===_.fromState&&p.toState===_.toState})).subscribe(function(p){c._isCenterPosition(p.toState)&&c._isCenterPosition(c._position)&&c._onCentered.emit(),c._isCenterPosition(p.fromState)&&!c._isCenterPosition(c._position)&&c._afterLeavingCenter.emit()})}return L(s,[{key:"position",set:function(n){this._positionIndex=n,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(n){var l=this._isCenterPosition(n.toState);this._beforeCentering.emit(l),l&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(n){return"center"==n||"left-origin-center"==n||"right-origin-center"==n}},{key:"_computePositionAnimationState",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==n?"left":"right":this._positionIndex>0?"ltr"==n?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(n){var l=this._getLayoutDirection();return"ltr"==l&&n<=0||"rtl"==l&&n>0?"left-origin-center":"right-origin-center"}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(tt),z(Ei,8),z(hn))},i.\u0275dir=be({type:i,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),i}(),WE=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p){return R(this,n),r.call(this,l,c,p)}return L(n)}(u5);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(Ei,8),z(hn))},i.\u0275cmp=ke({type:i,selectors:[["mat-tab-body"]],viewQuery:function(r,n){var l;1&r&&Rt(pc,5),2&r&&Ve(l=Ge())&&(n._portalHost=l.first)},hostAttrs:[1,"mat-tab-body"],features:[Re],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(r,n){1&r&&(I(0,"div",0,1),ne("@translateTab.start",function(c){return n._onTranslateTabStarted(c)})("@translateTab.done",function(c){return n._translateTabComplete.next(c)}),te(2,N9,0,0,"ng-template",2),B()),2&r&&U("@translateTab",DC(3,B9,n._position,xs(1,JV,n.animationDuration)))},directives:[Q9],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}\n'],encapsulation:2,data:{animation:[$9.translateTab]}}),i}(),c5=new Ae("MAT_TABS_CONFIG"),J9=Fl(function(){return L(function i(){R(this,i)})}()),f5=function(){var i=function(s){se(n,s);var r=ue(n);function n(l){var c;return R(this,n),(c=r.call(this)).elementRef=l,c}return L(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}(J9);return i.\u0275fac=function(r){return new(r||i)(z(tt))},i.\u0275dir=be({type:i,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(r,n){2&r&&(lt("aria-disabled",!!n.disabled),Ze("mat-tab-disabled",n.disabled))},inputs:{disabled:"disabled"},features:[Re]}),i}(),d5=Vh({passive:!0}),qE=function(){var i=function(){function s(r,n,l,c,p,_,w){var M=this;R(this,s),this._elementRef=r,this._changeDetectorRef=n,this._viewportRuler=l,this._dir=c,this._ngZone=p,this._platform=_,this._animationMode=w,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Xe,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Xe,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new ye,this.indexFocused=new ye,p.runOutsideAngular(function(){gu(r.nativeElement,"mouseleave").pipe(Wt(M._destroyed)).subscribe(function(){M._stopInterval()})})}return L(s,[{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(n){n=Va(n),this._selectedIndex!=n&&(this._selectedIndexChanged=!0,this._selectedIndex=n,this._keyManager&&this._keyManager.updateActiveItem(n))}},{key:"ngAfterViewInit",value:function(){var n=this;gu(this._previousPaginator.nativeElement,"touchstart",d5).pipe(Wt(this._destroyed)).subscribe(function(){n._handlePaginatorPress("before")}),gu(this._nextPaginator.nativeElement,"touchstart",d5).pipe(Wt(this._destroyed)).subscribe(function(){n._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var n=this,l=this._dir?this._dir.change:dt("ltr"),c=this._viewportRuler.change(150),p=function(){n.updatePagination(),n._alignInkBarToSelectedTab()};this._keyManager=new bA(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(gn(1)).subscribe(p),Rr(l,c,this._items.changes).pipe(Wt(this._destroyed)).subscribe(function(){n._ngZone.run(function(){Promise.resolve().then(function(){n._scrollDistance=Math.max(0,Math.min(n._getMaxScrollDistance(),n._scrollDistance)),p()})}),n._keyManager.withHorizontalOrientation(n._getLayoutDirection())}),this._keyManager.change.pipe(Wt(this._destroyed)).subscribe(function(_){n.indexFocused.emit(_),n._setTabFocus(_)})}},{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(n){if(!ia(n))switch(n.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(n));break;default:this._keyManager.onKeydown(n)}}},{key:"_onContentChanges",value:function(){var n=this,l=this._elementRef.nativeElement.textContent;l!==this._currentTextContent&&(this._currentTextContent=l||"",this._ngZone.run(function(){n.updatePagination(),n._alignInkBarToSelectedTab(),n._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(n){!this._isValidIndex(n)||this.focusIndex===n||!this._keyManager||this._keyManager.setActiveItem(n)}},{key:"_isValidIndex",value:function(n){if(!this._items)return!0;var l=this._items?this._items.toArray()[n]:null;return!!l&&!l.disabled}},{key:"_setTabFocus",value:function(n){if(this._showPaginationControls&&this._scrollToLabel(n),this._items&&this._items.length){this._items.toArray()[n].focus();var l=this._tabListContainer.nativeElement,c=this._getLayoutDirection();l.scrollLeft="ltr"==c?0:l.scrollWidth-l.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var n=this.scrollDistance,l="ltr"===this._getLayoutDirection()?-n:n;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(l),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(n){this._scrollTo(n)}},{key:"_scrollHeader",value:function(n){return this._scrollTo(this._scrollDistance+("before"==n?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(n){this._stopInterval(),this._scrollHeader(n)}},{key:"_scrollToLabel",value:function(n){if(!this.disablePagination){var l=this._items?this._items.toArray()[n]:null;if(l){var M,A,c=this._tabListContainer.nativeElement.offsetWidth,p=l.elementRef.nativeElement,_=p.offsetLeft,w=p.offsetWidth;"ltr"==this._getLayoutDirection()?A=(M=_)+w:M=(A=this._tabListInner.nativeElement.offsetWidth-_)-w;var O=this.scrollDistance,F=this.scrollDistance+c;MF&&(this.scrollDistance+=A-F+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var n=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;n||(this.scrollDistance=0),n!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=n}}},{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._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var n=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,l=n?n.elementRef.nativeElement:null;l?this._inkBar.alignToElement(l):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(n,l){var c=this;l&&null!=l.button&&0!==l.button||(this._stopInterval(),qv(650,100).pipe(Wt(Rr(this._stopScrolling,this._destroyed))).subscribe(function(){var p=c._scrollHeader(n),w=p.distance;(0===w||w>=p.maxScrollDistance)&&c._stopInterval()}))}},{key:"_scrollTo",value:function(n){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var l=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(l,n)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:l,distance:this._scrollDistance}}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(tt),z(hn),z(Ls),z(Ei,8),z(Pt),z(pn),z(mi,8))},i.\u0275dir=be({type:i,inputs:{disablePagination:"disablePagination"}}),i}(),yS=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w,M,A){var O;return R(this,n),(O=r.call(this,l,c,p,_,w,M,A))._disableRipple=!1,O}return L(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(c){this._disableRipple=gt(c)}},{key:"_itemSelected",value:function(c){c.preventDefault()}}]),n}(qE);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(hn),z(Ls),z(Ei,8),z(Pt),z(pn),z(mi,8))},i.\u0275dir=be({type:i,inputs:{disableRipple:"disableRipple"},features:[Re]}),i}(),bS=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w,M,A){return R(this,n),r.call(this,l,c,p,_,w,M,A)}return L(n)}(yS);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(hn),z(Ls),z(Ei,8),z(Pt),z(pn),z(mi,8))},i.\u0275cmp=ke({type:i,selectors:[["mat-tab-header"]],contentQueries:function(r,n,l){var c;1&r&&Mn(l,f5,4),2&r&&Ve(c=Ge())&&(n._items=c)},viewQuery:function(r,n){var l;1&r&&(Rt(r5,7),Rt(V9,7),Rt(H9,7),Rt(z9,7),Rt(e5,5),Rt(G9,5)),2&r&&(Ve(l=Ge())&&(n._inkBar=l.first),Ve(l=Ge())&&(n._tabListContainer=l.first),Ve(l=Ge())&&(n._tabList=l.first),Ve(l=Ge())&&(n._tabListInner=l.first),Ve(l=Ge())&&(n._nextPaginator=l.first),Ve(l=Ge())&&(n._previousPaginator=l.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(r,n){2&r&&Ze("mat-tab-header-pagination-controls-enabled",n._showPaginationControls)("mat-tab-header-rtl","rtl"==n._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[Re],ngContentSelectors:QV,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","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"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(r,n){1&r&&(vi(),I(0,"button",0,1),ne("click",function(){return n._handlePaginatorClick("before")})("mousedown",function(c){return n._handlePaginatorPress("before",c)})("touchend",function(){return n._stopInterval()}),Se(2,"div",2),B(),I(3,"div",3,4),ne("keydown",function(c){return n._handleKeydown(c)}),I(5,"div",5,6),ne("cdkObserveContent",function(){return n._onContentChanges()}),I(7,"div",7,8),Gt(9),B(),Se(10,"mat-ink-bar"),B()(),I(11,"button",9,10),ne("mousedown",function(c){return n._handlePaginatorPress("after",c)})("click",function(){return n._handlePaginatorClick("after")})("touchend",function(){return n._stopInterval()}),Se(13,"div",2),B()),2&r&&(Ze("mat-tab-header-pagination-disabled",n._disableScrollBefore),U("matRippleDisabled",n._disableScrollBefore||n.disableRipple)("disabled",n._disableScrollBefore||null),G(5),Ze("_mat-animation-noopable","NoopAnimations"===n._animationMode),G(6),Ze("mat-tab-header-pagination-disabled",n._disableScrollAfter),U("matRippleDisabled",n._disableScrollAfter||n.disableRipple)("disabled",n._disableScrollAfter||null))},directives:[Nl,p1,r5],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-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;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.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;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}),i}(),h5=0,Jf=L(function i(){R(this,i)}),tY=yc(bc(function(){return L(function i(s){R(this,i),this._elementRef=s})}()),"primary"),nY=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_){var w,M;return R(this,n),(w=r.call(this,l))._changeDetectorRef=c,w._animationMode=_,w._tabs=new no,w._indexToSelect=0,w._lastFocusedTabIndex=null,w._tabBodyWrapperHeight=0,w._tabsSubscription=Te.EMPTY,w._tabLabelSubscription=Te.EMPTY,w._selectedIndex=null,w.headerPosition="above",w.selectedIndexChange=new ye,w.focusChange=new ye,w.animationDone=new ye,w.selectedTabChange=new ye(!0),w._groupId=h5++,w.animationDuration=p&&p.animationDuration?p.animationDuration:"500ms",w.disablePagination=!(!p||null==p.disablePagination)&&p.disablePagination,w.dynamicHeight=!(!p||null==p.dynamicHeight)&&p.dynamicHeight,w.contentTabIndex=null!==(M=null==p?void 0:p.contentTabIndex)&&void 0!==M?M:null,w}return L(n,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(c){this._dynamicHeight=gt(c)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(c){this._indexToSelect=Va(c,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(c){this._animationDuration=/^\d+$/.test(c+"")?c+"ms":c}},{key:"contentTabIndex",get:function(){return this._contentTabIndex},set:function(c){this._contentTabIndex=Va(c,null)}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(c){var p=this._elementRef.nativeElement;p.classList.remove("mat-background-".concat(this.backgroundColor)),c&&p.classList.add("mat-background-".concat(c)),this._backgroundColor=c}},{key:"ngAfterContentChecked",value:function(){var c=this,p=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=p){var _=null==this._selectedIndex;if(!_){this.selectedTabChange.emit(this._createChangeEvent(p));var w=this._tabBodyWrapper.nativeElement;w.style.minHeight=w.clientHeight+"px"}Promise.resolve().then(function(){c._tabs.forEach(function(M,A){return M.isActive=A===p}),_||(c.selectedIndexChange.emit(p),c._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(M,A){M.position=A-p,null!=c._selectedIndex&&0==M.position&&!M.origin&&(M.origin=p-c._selectedIndex)}),this._selectedIndex!==p&&(this._selectedIndex=p,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var c=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){var p=c._clampTabIndex(c._indexToSelect);if(p===c._selectedIndex){for(var w,_=c._tabs.toArray(),M=0;M<_.length;M++)if(_[M].isActive){c._indexToSelect=c._selectedIndex=M,c._lastFocusedTabIndex=null,w=_[M];break}!w&&_[p]&&Promise.resolve().then(function(){_[p].isActive=!0,c.selectedTabChange.emit(c._createChangeEvent(p))})}c._changeDetectorRef.markForCheck()})}},{key:"_subscribeToAllTabChanges",value:function(){var c=this;this._allTabs.changes.pipe(na(this._allTabs)).subscribe(function(p){c._tabs.reset(p.filter(function(_){return _._closestTabGroup===c||!_._closestTabGroup})),c._tabs.notifyOnChanges()})}},{key:"ngOnDestroy",value:function(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}},{key:"realignInkBar",value:function(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}},{key:"updatePagination",value:function(){this._tabHeader&&this._tabHeader.updatePagination()}},{key:"focusTab",value:function(c){var p=this._tabHeader;p&&(p.focusIndex=c)}},{key:"_focusChanged",value:function(c){this._lastFocusedTabIndex=c,this.focusChange.emit(this._createChangeEvent(c))}},{key:"_createChangeEvent",value:function(c){var p=new Jf;return p.index=c,this._tabs&&this._tabs.length&&(p.tab=this._tabs.toArray()[c]),p}},{key:"_subscribeToTabLabels",value:function(){var c=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Rr.apply(void 0,yt(this._tabs.map(function(p){return p._stateChanges}))).subscribe(function(){return c._changeDetectorRef.markForCheck()})}},{key:"_clampTabIndex",value:function(c){return Math.min(this._tabs.length-1,Math.max(c||0,0))}},{key:"_getTabLabelId",value:function(c){return"mat-tab-label-".concat(this._groupId,"-").concat(c)}},{key:"_getTabContentId",value:function(c){return"mat-tab-content-".concat(this._groupId,"-").concat(c)}},{key:"_setTabBodyWrapperHeight",value:function(c){if(this._dynamicHeight&&this._tabBodyWrapperHeight){var p=this._tabBodyWrapper.nativeElement;p.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(p.style.height=c+"px")}}},{key:"_removeTabBodyWrapperHeight",value:function(){var c=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=c.clientHeight,c.style.height="",this.animationDone.emit()}},{key:"_handleClick",value:function(c,p,_){c.disabled||(this.selectedIndex=p.focusIndex=_)}},{key:"_getTabIndex",value:function(c,p){var _;return c.disabled?null:p===(null!==(_=this._lastFocusedTabIndex)&&void 0!==_?_:this.selectedIndex)?0:-1}},{key:"_tabFocusChanged",value:function(c,p){c&&"mouse"!==c&&"touch"!==c&&(this._tabHeader.focusIndex=p)}}]),n}(tY);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(hn),z(c5,8),z(mi,8))},i.\u0275dir=be({type:i,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[Re]}),i}(),Hl=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_){return R(this,n),r.call(this,l,c,p,_)}return L(n)}(nY);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(hn),z(c5,8),z(mi,8))},i.\u0275cmp=ke({type:i,selectors:[["mat-tab-group"]],contentQueries:function(r,n,l){var c;1&r&&Mn(l,Hs,5),2&r&&Ve(c=Ge())&&(n._allTabs=c)},viewQuery:function(r,n){var l;1&r&&(Rt(U9,5),Rt(j9,5)),2&r&&(Ve(l=Ge())&&(n._tabBodyWrapper=l.first),Ve(l=Ge())&&(n._tabHeader=l.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(r,n){2&r&&Ze("mat-tab-group-dynamic-height",n.dynamicHeight)("mat-tab-group-inverted-header","below"===n.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[ft([{provide:l5,useExisting:i}]),Re],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(r,n){1&r&&(I(0,"mat-tab-header",0,1),ne("indexFocused",function(c){return n._focusChanged(c)})("selectFocusedIndex",function(c){return n.selectedIndex=c}),te(2,Z9,5,15,"div",2),B(),I(3,"div",3,4),te(5,X9,1,10,"mat-tab-body",5),B()),2&r&&(U("selectedIndex",n.selectedIndex||0)("disableRipple",n.disableRipple)("disablePagination",n.disablePagination),G(2),U("ngForOf",n._tabs),G(1),Ze("_mat-animation-noopable","NoopAnimations"===n._animationMode),G(2),U("ngForOf",n._tabs))},directives:[bS,WE,ir,f5,Nl,P3,As,en,pc],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;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}),i}(),v5=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[io,vn,Kv,Cc,Ny,xA],vn]}),i}();function XE(i,s){if(1&i){var r=xe();I(0,"uds-field-text",2),ne("changed",function(c){return he(r),Q().changed.emit(c)}),B()}2&i&&U("field",Q().field)}function KE(i,s){if(1&i){var r=xe();I(0,"uds-field-autocomplete",2),ne("changed",function(c){return he(r),Q().changed.emit(c)}),B()}2&i&&U("field",Q().field)}function iY(i,s){if(1&i){var r=xe();I(0,"uds-field-textbox",2),ne("changed",function(c){return he(r),Q().changed.emit(c)}),B()}2&i&&U("field",Q().field)}function $E(i,s){if(1&i){var r=xe();I(0,"uds-field-numeric",2),ne("changed",function(c){return he(r),Q().changed.emit(c)}),B()}2&i&&U("field",Q().field)}function g5(i,s){if(1&i){var r=xe();I(0,"uds-field-password",2),ne("changed",function(c){return he(r),Q().changed.emit(c)}),B()}2&i&&U("field",Q().field)}function aY(i,s){if(1&i){var r=xe();I(0,"uds-field-hidden",2),ne("changed",function(c){return he(r),Q().changed.emit(c)}),B()}2&i&&U("field",Q().field)}function oY(i,s){if(1&i){var r=xe();I(0,"uds-field-choice",2),ne("changed",function(c){return he(r),Q().changed.emit(c)}),B()}2&i&&U("field",Q().field)}function sY(i,s){if(1&i){var r=xe();I(0,"uds-field-multichoice",2),ne("changed",function(c){return he(r),Q().changed.emit(c)}),B()}2&i&&U("field",Q().field)}function lY(i,s){if(1&i){var r=xe();I(0,"uds-field-editlist",2),ne("changed",function(c){return he(r),Q().changed.emit(c)}),B()}2&i&&U("field",Q().field)}function uY(i,s){if(1&i){var r=xe();I(0,"uds-field-checkbox",2),ne("changed",function(c){return he(r),Q().changed.emit(c)}),B()}2&i&&U("field",Q().field)}function cY(i,s){if(1&i){var r=xe();I(0,"uds-field-imgchoice",2),ne("changed",function(c){return he(r),Q().changed.emit(c)}),B()}2&i&&U("field",Q().field)}function SS(i,s){if(1&i){var r=xe();I(0,"uds-field-date",2),ne("changed",function(c){return he(r),Q().changed.emit(c)}),B()}2&i&&U("field",Q().field)}function fY(i,s){if(1&i){var r=xe();I(0,"uds-field-tags",2),ne("changed",function(c){return he(r),Q().changed.emit(c)}),B()}2&i&&U("field",Q().field)}var ab=function(){var i=function(){function s(){R(this,s),this.changed=new ye,this.udsGuiFieldType=za}return L(s,[{key:"ngOnInit",value:function(){}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=ke({type:i,selectors:[["uds-field"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:14,vars:15,consts:[["matTooltipShowDelay","1000",1,"field",3,"ngSwitch","matTooltip"],[3,"field","changed",4,"ngSwitchCase"],[3,"field","changed"]],template:function(r,n){1&r&&(I(0,"div",0),te(1,XE,1,1,"uds-field-text",1),te(2,KE,1,1,"uds-field-autocomplete",1),te(3,iY,1,1,"uds-field-textbox",1),te(4,$E,1,1,"uds-field-numeric",1),te(5,g5,1,1,"uds-field-password",1),te(6,aY,1,1,"uds-field-hidden",1),te(7,oY,1,1,"uds-field-choice",1),te(8,sY,1,1,"uds-field-multichoice",1),te(9,lY,1,1,"uds-field-editlist",1),te(10,uY,1,1,"uds-field-checkbox",1),te(11,cY,1,1,"uds-field-imgchoice",1),te(12,SS,1,1,"uds-field-date",1),te(13,fY,1,1,"uds-field-tags",1),B()),2&r&&(U("ngSwitch",n.field.gui.type)("matTooltip",n.field.gui.tooltip),G(1),U("ngSwitchCase",n.udsGuiFieldType.TEXT),G(1),U("ngSwitchCase",n.udsGuiFieldType.TEXT_AUTOCOMPLETE),G(1),U("ngSwitchCase",n.udsGuiFieldType.TEXTBOX),G(1),U("ngSwitchCase",n.udsGuiFieldType.NUMERIC),G(1),U("ngSwitchCase",n.udsGuiFieldType.PASSWORD),G(1),U("ngSwitchCase",n.udsGuiFieldType.HIDDEN),G(1),U("ngSwitchCase",n.udsGuiFieldType.CHOICE),G(1),U("ngSwitchCase",n.udsGuiFieldType.MULTI_CHOICE),G(1),U("ngSwitchCase",n.udsGuiFieldType.EDITLIST),G(1),U("ngSwitchCase",n.udsGuiFieldType.CHECKBOX),G(1),U("ngSwitchCase",n.udsGuiFieldType.IMAGECHOICE),G(1),U("ngSwitchCase",n.udsGuiFieldType.DATE),G(1),U("ngSwitchCase",n.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}"]}),i}();function m5(i,s){1&i&&K(0),2&i&&Le(" ",Q().$implicit," ")}function dY(i,s){if(1&i){var r=xe();I(0,"uds-field",7),ne("changed",function(c){return he(r),Q(3).changed.emit(c)}),B()}2&i&&U("field",s.$implicit)}function QE(i,s){if(1&i&&(I(0,"mat-tab"),te(1,m5,1,1,"ng-template",4),I(2,"div",5),te(3,dY,1,1,"uds-field",6),B()()),2&i){var r=s.$implicit,n=Q(2);G(3),U("ngForOf",n.fieldsByTab[r])}}function hY(i,s){if(1&i&&(I(0,"mat-tab-group",2),te(1,QE,4,1,"mat-tab",3),B()),2&i){var r=Q();U("disableRipple",!0)("@.disabled",!0),G(1),U("ngForOf",r.tabs)}}function pY(i,s){if(1&i){var r=xe();I(0,"div")(1,"uds-field",7),ne("changed",function(c){return he(r),Q(2).changed.emit(c)}),B()()}if(2&i){var n=s.$implicit;G(1),U("field",n)}}function vY(i,s){1&i&&te(0,pY,2,1,"div",3),2&i&&U("ngForOf",Q().fields)}var gY=django.gettext("Main"),mY=function(){var i=function(){function s(){R(this,s),this.changed=new ye}return L(s,[{key:"ngOnInit",value:function(){var n=this;this.tabs=new Array,this.fieldsByTab={},this.fields.forEach(function(l){var c=void 0===l.gui.tab?gY:l.gui.tab;n.tabs.includes(c)||(n.tabs.push(c),n.fieldsByTab[c]=new Array),n.fieldsByTab[c].push(l)})}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=ke({type:i,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"]],template:function(r,n){if(1&r&&(te(0,hY,2,3,"mat-tab-group",0),te(1,vY,1,1,"ng-template",null,1,Ko)),2&r){var l=Dn(2);U("ngIf",n.tabs.length>1)("ngIfElse",l)}},directives:[en,Hl,ir,Hs,rs,ab],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}"]}),i}();function _Y(i,s){if(1&i){var r=xe();I(0,"button",10),ne("click",function(){return he(r),Q().customButtonClicked()}),K(1),B()}if(2&i){var n=Q();G(1),Ln(n.data.customButton)}}var ap,MS=function(){var i=function(){function s(r,n){R(this,s),this.dialogRef=r,this.data=n,this.onEvent=new ye(!0),this.saving=!1}return L(s,[{key:"ngOnInit",value:function(){this.onEvent.emit({type:"init",data:null,dialog:this.dialogRef})}},{key:"changed",value:function(n){this.onEvent.emit({type:"changed",data:n,dialog:this.dialogRef})}},{key:"getFields",value:function(){var n={},l=[];return this.data.guiFields.forEach(function(c){var p=void 0!==c.values?c.values:c.value;if(c.gui.required&&0!==p&&(!p||p instanceof Array&&0===p.length)&&l.push(c.gui.label),"number"==typeof p){var _=parseInt((c.gui.minValue||987654321).toString(),10),w=parseInt((c.gui.maxValue||987654321).toString(),10);987654321!==_&&p<_&&l.push(c.gui.label+" >= "+c.gui.minValue),987654321!==w&&p>w&&l.push(c.gui.label+" <= "+c.gui.maxValue),p=p.toString()}n[c.name]=p}),{data:n,errors:l}}},{key:"save",value:function(){var n=this.getFields();n.errors.length>0?this.data.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+n.errors.join(", ")):this.onEvent.emit({data:n.data,type:"save",dialog:this.dialogRef})}},{key:"customButtonClicked",value:function(){var n=this.getFields();this.onEvent.emit({data:n.data,type:this.data.customButton,errors:n.errors,dialog:this.dialogRef})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(Se(0,"h4",0),vf(1,"safeHtml"),I(2,"mat-dialog-content",null,1)(4,"form",2)(5,"uds-form",3),ne("changed",function(c){return n.changed(c)}),B()()(),I(6,"mat-dialog-actions")(7,"div",4)(8,"div",5),te(9,_Y,2,1,"button",6),B(),I(10,"div",7)(11,"button",8),ne("click",function(){return n.dialogRef.close()}),I(12,"uds-translate"),K(13,"Discard & close"),B()(),I(14,"button",9),ne("click",function(){return n.save()}),I(15,"uds-translate"),K(16,"Save"),B()()()()()),2&r&&(U("innerHtml",fh(1,5,n.data.title),Xi),G(5),U("fields",n.data.guiFields),G(4),U("ngIf",void 0!==n.data.customButton),G(2),U("disabled",n.saving),G(3),U("disabled",n.saving))},directives:[si,jr,nb,Xf,Sc,mY,li,en,qn,As,Gn],pipes:[$B],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}"]}),i}(),yY=function(){function i(s){R(this,i),this.gui=s}return L(i,[{key:"modalForm",value:function(r,n){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,c=arguments.length>3?arguments[3]:void 0;n.sort(function(M,A){return M.gui.order>A.gui.order?1:-1});var p=null!=l;l=p?l:{},n.forEach(function(M){(!1===p||void 0===M.gui.rdonly)&&(M.gui.rdonly=!1),M.gui.type===za.TEXT&&M.gui.multiline&&(M.gui.type=za.TEXTBOX);var A=l[M.name];void 0!==A&&(A instanceof Array?(M.values=new Array,A.forEach(function(O){return M.values.push(O)})):M.value=A)});var _=window.innerWidth<800?"80%":"50%",w=this.gui.dialog.open(MS,{position:{top:"64px"},width:_,data:{title:r,guiFields:n,customButton:c,gui:this.gui},disableClose:!0});return w.componentInstance.onEvent}},{key:"typedForm",value:function(r,n,l,c,p,_,w){var M=this;w=w||{};var A=new ye,O=l?django.gettext("Test"):void 0,F={},Y={},$=function(le){Y.hasOwnProperty(le.name)&&""!==le.value&&void 0!==le.value&&M.executeCallback(r,le,F)};return w.snack||(w.snack=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss"))),r.table.rest.gui(_).subscribe(function(oe){w.snack.dismiss(),void 0!==c&&c.forEach(function(le){oe.push(le)}),oe.forEach(function(le){F[le.name]=le,void 0!==le.gui.fills&&(Y[le.name]=le.gui.fills)}),M.modalForm(n,oe,p,O).subscribe(function(le){switch(le.data&&(le.data.data_type=_),le.type){case O:if(le.errors.length>0)return void M.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+le.errors.join(", "));M.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),r.table.rest.test(_,le.data).subscribe(function(Ee){"ok"!==Ee?M.gui.snackbar.open(django.gettext("Test failed:")+" "+Ee,django.gettext("dismiss")):M.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})});break;case"changed":case"init":if(null===le.data){var ae,fe=qt(oe);try{for(fe.s();!(ae=fe.n()).done;)$(ae.value)}catch(Ee){fe.e(Ee)}finally{fe.f()}}else $(le.data.field);A.emit({on:le.data,all:F});break;case"save":if(void 0===w.save){var De=function(){M.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),le.dialog.close(),r.table.overview()};le.dialog.componentInstance.saving=!0,p?r.table.rest.save(le.data,p.id).subscribe(function(){De()},function(Ee){return le.dialog.componentInstance.saving=!1}):r.table.rest.create(le.data).subscribe(function(){De()},function(Ee){return le.dialog.componentInstance.saving=!1})}else le.dialog.close(),w.save.emit(le.data)}})}),A}},{key:"typedEditForm",value:function(r,n){var l=this,c=arguments.length>2&&void 0!==arguments[2]&&arguments[2],p=arguments.length>3?arguments[3]:void 0,_=r.table.selection.selected[0],w=_.type,M=new ye,A=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss"));return r.table.rest.get(_.id).subscribe(function(O){l.typedForm(r,n,c,p,O,w,{snack:A}).subscribe(function(F){M.emit(F)})}),M}},{key:"typedNewForm",value:function(r,n){var l=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c=arguments.length>3?arguments[3]:void 0,p=r.param?r.param.type:void 0,_=new ye;return this.typedForm(r,n,l,c,null,p).subscribe(function(w){_.emit(w)}),_}},{key:"deleteForm",value:function(r,n){var l=this,c=new Array,p=new Array;r.table.selection.selected.forEach(function(w){var M=w.name||w.friendly_name;M.changingThisBreaksApplicationSecurity&&(M=M.changingThisBreaksApplicationSecurity),c.push(M),p.push(w.id)});var _=django.gettext("Are you sure do you want to delete the following items?")+"
"+c.join(", ")+"";this.gui.yesno(n,_,!0).subscribe(function(w){if(w){var M=p.length,A=function(){l.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),r.table.overview()};p.forEach(function(O){r.table.rest.delete(O).subscribe(function(F){0==--M&&A()},function(F){0==--M&&A()})})}})}},{key:"executeCallback",value:function(r,n,l){var c=this,p=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},_=new Array;n.gui.fills.parameters.forEach(function(w){_.push(w+"="+encodeURIComponent(l[w].value))}),r.table.rest.callback(n.gui.fills.callbackName,_.join("&")).subscribe(function(w){var M=new Array;w.forEach(function(A){var O=l[A.name];void 0!==O&&(void 0!==O.gui.fills&&M.push(O),O.gui.values.length=0,A.values.forEach(function(F){return O.gui.values.push(F)}),O.value||(O.value=A.values.length>0?A.values[0].id:""))}),M.forEach(function(A){void 0===p[A.name]&&(p[A.name]=!0,c.executeCallback(r,A,l,p))})})}}]),i}(),kS="display:inline-block; background-size: SIZE SIZE; background-repeat: no-repeat; width: SIZE; height: SIZE; vertical-align: middle; margin: 4px 8px 4px 0px;",_5=function(){function i(s,r){R(this,i),this.dialog=s,this.snackbar=r,this.forms=new yY(this)}return L(i,[{key:"alert",value:function(r,n){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,c=arguments.length>3?arguments[3]:void 0,p=c||(window.innerWidth<800?"80%":"40%"),_=this.dialog.open(JB,{width:p,data:{title:r,body:n,autoclose:l,type:fg.alert},disableClose:!0});return _.componentInstance.yesno}},{key:"yesno",value:function(r,n){var l=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c=window.innerWidth<800?"80%":"40%",p=this.dialog.open(JB,{width:c,data:{title:r,body:n,type:fg.yesno,warnOnYes:l},disableClose:!0});return p.componentInstance.yesno}},{key:"icon",value:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"24px";return''}}]),i}(),ui=function(){return function(i){i.NUMERIC="numeric",i.ALPHANUMERIC="alphanumeric",i.DATETIME="datetime",i.DATETIMESEC="datetimesec",i.DATE="date",i.TIME="time",i.ICON="iconType",i.CALLBACK="callback",i.DICTIONARY="dict",i.IMAGE="image"}(ui||(ui={})),ui}(),vr=function(){return function(i){i[i.ALWAYS=0]="ALWAYS",i[i.SINGLE_SELECT=1]="SINGLE_SELECT",i[i.MULTI_SELECT=2]="MULTI_SELECT",i[i.ONLY_MENU=3]="ONLY_MENU",i[i.ACCELERATOR=4]="ACCELERATOR"}(vr||(vr={})),vr}(),b5="provider",C5="service",JE="pool",eP="user",DS="transport",ip="osmanager",ob="calendar",sb="poolgroup",CY={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")},is=function(){function i(s){R(this,i),this.router=s}return L(i,[{key:"gotoProvider",value:function(r){this.router.navigate(void 0!==r?["providers",r]:["providers"])}},{key:"gotoService",value:function(r,n){this.router.navigate(void 0!==n?["providers",r,"detail",n]:["providers",r,"detail"])}},{key:"gotoServicePool",value:function(r){this.router.navigate(["pools","service-pools",r])}},{key:"gotoServicePoolDetail",value:function(r){this.router.navigate(["pools","service-pools",r,"detail"])}},{key:"gotoMetapool",value:function(r){this.router.navigate(["pools","meta-pools",r])}},{key:"gotoMetapoolDetail",value:function(r){this.router.navigate(["pools","meta-pools",r,"detail"])}},{key:"gotoCalendar",value:function(r){this.router.navigate(["pools","calendars",r])}},{key:"gotoCalendarDetail",value:function(r){this.router.navigate(["pools","calendars",r,"detail"])}},{key:"gotoAccount",value:function(r){this.router.navigate(["pools","accounts",r])}},{key:"gotoAccountDetail",value:function(r){this.router.navigate(["pools","accounts",r,"detail"])}},{key:"gotoPoolGroup",value:function(r){this.router.navigate(["pools","pool-groups",r=r||""])}},{key:"gotoAuthenticator",value:function(r){this.router.navigate(["authenticators",r])}},{key:"gotoAuthenticatorDetail",value:function(r){this.router.navigate(["authenticators",r,"detail"])}},{key:"gotoUser",value:function(r,n){this.router.navigate(["authenticators",r,"detail","users",n])}},{key:"gotoGroup",value:function(r,n){this.router.navigate(["authenticators",r,"detail","groups",n])}},{key:"gotoTransport",value:function(r){this.router.navigate(["transports",r])}},{key:"gotoOSManager",value:function(r){this.router.navigate(["osmanagers",r])}},{key:"goto",value:function(r,n,l){var c=function(_){var w=n;if(l[_].split(".").forEach(function(M){return w=w[M]}),!w)throw new Error("not going :)");return w};try{switch(r){case b5:this.gotoProvider(c(0));break;case C5:this.gotoService(c(0),c(1));break;case JE:this.gotoServicePool(c(0));break;case"authenticator":this.gotoAuthenticator(c(0));break;case eP:this.gotoUser(c(0),c(1));break;case"group":this.gotoGroup(c(0),c(1));break;case DS:this.gotoTransport(c(0));break;case ip:this.gotoOSManager(c(0));break;case ob:this.gotoCalendar(c(0));break;case sb:this.gotoPoolGroup(c(0))}}catch(p){}}}],[{key:"getGotoButton",value:function(r,n,l){return{id:r,html:'link'+django.gettext("Go to")+" "+CY[r]+"",type:vr.ACCELERATOR,acceleratorProperties:[n,l]}}}]),i}(),tP=new Set,nP=function(){var i=function(){function s(r){R(this,s),this._platform=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):S5}return L(s,[{key:"matchMedia",value:function(n){return(this._platform.WEBKIT||this._platform.BLINK)&&function rP(i){if(!tP.has(i))try{ap||((ap=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(ap)),ap.sheet&&(ap.sheet.insertRule("@media ".concat(i," {body{ }}"),0),tP.add(i))}catch(s){console.error(s)}}(n),this._matchMedia(n)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(pn))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}();function S5(i){return{matches:"all"===i||""===i,media:i,addListener:function(){},removeListener:function(){}}}var iP=function(){var i=function(){function s(r,n){R(this,s),this._mediaMatcher=r,this._zone=n,this._queries=new Map,this._destroySubject=new Xe}return L(s,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(n){var l=this;return _g(Yw(n)).some(function(p){return l._registerQuery(p).mql.matches})}},{key:"observe",value:function(n){var l=this,_=ny(_g(Yw(n)).map(function(w){return l._registerQuery(w).observable}));return(_=Dh(_.pipe(gn(1)),_.pipe(_A(1),h1(0)))).pipe(on(function(w){var M={matches:!1,breakpoints:{}};return w.forEach(function(A){var O=A.matches,F=A.query;M.matches=M.matches||O,M.breakpoints[F]=O}),M}))}},{key:"_registerQuery",value:function(n){var l=this;if(this._queries.has(n))return this._queries.get(n);var c=this._mediaMatcher.matchMedia(n),_={observable:new Jn(function(w){var M=function(O){return l._zone.run(function(){return w.next(O)})};return c.addListener(M),function(){c.removeListener(M)}}).pipe(na(c),on(function(w){return{query:n,matches:w.matches}}),Wt(this._destroySubject)),mql:c};return this._queries.set(n,_),_}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(nP),ge(Pt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}();function _g(i){return i.map(function(s){return s.split(",")}).reduce(function(s,r){return s.concat(r)}).map(function(s){return s.trim()})}function k5(i,s){if(1&i){var r=xe();I(0,"div",2)(1,"button",3),ne("click",function(){return he(r),Q().action()}),K(2),B()()}if(2&i){var n=Q();G(2),Ln(n.data.action)}}function wY(i,s){}var aP=new Ae("MatSnackBarData"),xS=L(function i(){R(this,i),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}),D5=Math.pow(2,31)-1,lb=function(){function i(s,r){var n=this;R(this,i),this._overlayRef=r,this._afterDismissed=new Xe,this._afterOpened=new Xe,this._onAction=new Xe,this._dismissedByAction=!1,this.containerInstance=s,s._onExit.subscribe(function(){return n._finishDismiss()})}return L(i,[{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(),this.dismiss()),clearTimeout(this._durationTimeoutId)}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(r){var n=this;this._durationTimeoutId=setTimeout(function(){return n.dismiss()},Math.min(r,D5))}},{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}}]),i}(),oP=function(){var i=function(){function s(r,n){R(this,s),this.snackBarRef=r,this.data=n}return L(s,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(lb),z(aP))},i.\u0275cmp=ke({type:i,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(r,n){1&r&&(I(0,"span",0),K(1),B(),te(2,k5,3,1,"div",1)),2&r&&(G(1),Ln(n.data.message),G(1),U("ngIf",n.hasAction))},directives:[qn,en],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}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}),i}(),SY={snackBarState:zi("state",[Wn("void, hidden",mt({transform:"scale(0.8)",opacity:0})),Wn("visible",mt({transform:"scale(1)",opacity:1})),Yn("* => visible",$n("150ms cubic-bezier(0, 0, 0.2, 1)")),Yn("* => void, * => hidden",$n("75ms cubic-bezier(0.4, 0.0, 1, 1)",mt({opacity:0})))])},MY=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w){var M;return R(this,n),(M=r.call(this))._ngZone=l,M._elementRef=c,M._changeDetectorRef=p,M._platform=_,M.snackBarConfig=w,M._announceDelay=150,M._destroyed=!1,M._onAnnounce=new Xe,M._onExit=new Xe,M._onEnter=new Xe,M._animationState="void",M.attachDomPortal=function(A){return M._assertNotAttached(),M._applySnackBarClasses(),M._portalOutlet.attachDomPortal(A)},M._live="assertive"!==w.politeness||w.announcementMessage?"off"===w.politeness?"off":"polite":"assertive",M._platform.FIREFOX&&("polite"===M._live&&(M._role="status"),"assertive"===M._live&&(M._role="alert")),M}return L(n,[{key:"attachComponentPortal",value:function(c){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(c)}},{key:"attachTemplatePortal",value:function(c){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(c)}},{key:"onAnimationEnd",value:function(c){var _=c.toState;if(("void"===_&&"void"!==c.fromState||"hidden"===_)&&this._completeExit(),"visible"===_){var w=this._onEnter;this._ngZone.run(function(){w.next(),w.complete()})}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}},{key:"exit",value:function(){var c=this;return this._ngZone.run(function(){c._animationState="hidden",c._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(c._announceTimeoutId)}),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var c=this;this._ngZone.onMicrotaskEmpty.pipe(gn(1)).subscribe(function(){c._ngZone.run(function(){c._onExit.next(),c._onExit.complete()})})}},{key:"_applySnackBarClasses",value:function(){var c=this._elementRef.nativeElement,p=this.snackBarConfig.panelClass;p&&(Array.isArray(p)?p.forEach(function(_){return c.classList.add(_)}):c.classList.add(p)),"center"===this.snackBarConfig.horizontalPosition&&c.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&c.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_screenReaderAnnounce",value:function(){var c=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){c._announceTimeoutId=setTimeout(function(){var p=c._elementRef.nativeElement.querySelector("[aria-hidden]"),_=c._elementRef.nativeElement.querySelector("[aria-live]");if(p&&_){var w=null;c._platform.isBrowser&&document.activeElement instanceof HTMLElement&&p.contains(document.activeElement)&&(w=document.activeElement),p.removeAttribute("aria-hidden"),_.appendChild(p),null==w||w.focus(),c._onAnnounce.next(),c._onAnnounce.complete()}},c._announceDelay)})}}]),n}(Ty);return i.\u0275fac=function(r){return new(r||i)(z(Pt),z(tt),z(hn),z(pn),z(xS))},i.\u0275cmp=ke({type:i,selectors:[["snack-bar-container"]],viewQuery:function(r,n){var l;1&r&&Rt(pc,7),2&r&&Ve(l=Ge())&&(n._portalOutlet=l.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(r,n){1&r&&cv("@state.done",function(c){return n.onAnimationEnd(c)}),2&r&&pv("@state",n._animationState)},features:[Re],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(r,n){1&r&&(I(0,"div",0),te(1,wY,0,0,"ng-template",1),B(),Se(2,"div")),2&r&&(G(2),lt("aria-live",n._live)("role",n._role))},directives:[pc],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:[SY.snackBarState]}}),i}(),x5=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[Nf,Kv,io,tS,vn],vn]}),i}(),T5=new Ae("mat-snack-bar-default-options",{providedIn:"root",factory:function kY(){return new xS}}),DY=function(){var i=function(){function s(r,n,l,c,p,_){R(this,s),this._overlay=r,this._live=n,this._injector=l,this._breakpointObserver=c,this._parentSnackBar=p,this._defaultConfig=_,this._snackBarRefAtThisLevel=null}return L(s,[{key:"_openedSnackBarRef",get:function(){var n=this._parentSnackBar;return n?n._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(n){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=n:this._snackBarRefAtThisLevel=n}},{key:"openFromComponent",value:function(n,l){return this._attach(n,l)}},{key:"openFromTemplate",value:function(n,l){return this._attach(n,l)}},{key:"open",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2?arguments[2]:void 0,p=Object.assign(Object.assign({},this._defaultConfig),c);return p.data={message:n,action:l},p.announcementMessage===n&&(p.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,p)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(n,l){var p=kr.create({parent:l&&l.viewContainerRef&&l.viewContainerRef.injector||this._injector,providers:[{provide:xS,useValue:l}]}),_=new Rf(this.snackBarContainerComponent,l.viewContainerRef,p),w=n.attach(_);return w.instance.snackBarConfig=l,w.instance}},{key:"_attach",value:function(n,l){var c=this,p=Object.assign(Object.assign(Object.assign({},new xS),this._defaultConfig),l),_=this._createOverlay(p),w=this._attachSnackBarContainer(_,p),M=new lb(w,_);if(n instanceof hr){var A=new es(n,null,{$implicit:p.data,snackBarRef:M});M.instance=w.attachTemplatePortal(A)}else{var O=this._createInjector(p,M),F=new Rf(n,void 0,O),Y=w.attachComponentPortal(F);M.instance=Y.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Wt(_.detachments())).subscribe(function($){_.overlayElement.classList.toggle(c.handsetCssClass,$.matches)}),p.announcementMessage&&w._onAnnounce.subscribe(function(){c._live.announce(p.announcementMessage,p.politeness)}),this._animateSnackBar(M,p),this._openedSnackBarRef=M,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(n,l){var c=this;n.afterDismissed().subscribe(function(){c._openedSnackBarRef==n&&(c._openedSnackBarRef=null),l.announcementMessage&&c._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){n.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):n.containerInstance.enter(),l.duration&&l.duration>0&&n.afterOpened().subscribe(function(){return n._dismissAfter(l.duration)})}},{key:"_createOverlay",value:function(n){var l=new Ff;l.direction=n.direction;var c=this._overlay.position().global(),p="rtl"===n.direction,_="left"===n.horizontalPosition||"start"===n.horizontalPosition&&!p||"end"===n.horizontalPosition&&p,w=!_&&"center"!==n.horizontalPosition;return _?c.left("0"):w?c.right("0"):c.centerHorizontally(),"top"===n.verticalPosition?c.top("0"):c.bottom("0"),l.positionStrategy=c,this._overlay.create(l)}},{key:"_createInjector",value:function(n,l){return kr.create({parent:n&&n.viewContainerRef&&n.viewContainerRef.injector||this._injector,providers:[{provide:lb,useValue:l},{provide:aP,useValue:n.data}]})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(aa),ge(kA),ge(kr),ge(iP),ge(i,12),ge(T5))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),xY=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w,M){var A;return R(this,n),(A=r.call(this,l,c,p,_,w,M)).simpleSnackBarComponent=oP,A.snackBarContainerComponent=MY,A.handsetCssClass="mat-snack-bar-handset",A}return L(n)}(DY);return i.\u0275fac=function(r){return new(r||i)(ge(aa),ge(kA),ge(kr),ge(iP),ge(i,12),ge(T5))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:x5}),i}(),TS="dark-theme",A5="light-theme",Ot=function(){var i=function(){function s(r,n,l,c,p,_){R(this,s),this.http=r,this.router=n,this.dialog=l,this.snackbar=c,this.sanitizer=p,this.dateAdapter=_,this.user=new kN(udsData.profile),this.navigation=new is(this.router),this.gui=new _5(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language)}return L(s,[{key:"config",get:function(){return udsData.config}},{key:"notices",get:function(){return udsData.errors}},{key:"restPath",value:function(n){return this.config.urls.rest+n}},{key:"staticURL",value:function(n){return this.config.urls.static+n}},{key:"logout",value:function(){window.location.href=this.config.urls.logout}},{key:"gotoUser",value:function(){window.location.href=this.config.urls.user}},{key:"putOnStorage",value:function(n,l){void 0!==typeof Storage&&sessionStorage.setItem(n,l)}},{key:"getFromStorage",value:function(n){return void 0!==typeof Storage?sessionStorage.getItem(n):null}},{key:"safeString",value:function(n){return this.sanitizer.bypassSecurityTrustHtml(n)}},{key:"yesno",value:function(n){return n?django.gettext("yes"):django.gettext("no")}},{key:"switchTheme",value:function(n){var l=document.getElementsByTagName("html")[0];[TS,A5].forEach(function(c){l.classList.contains(c)&&l.classList.remove(c)}),l.classList.add(n?TS:A5)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(iF),ge(Ba),ge(eS),ge(xY),ge(Yx),ge(oa))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),E5=function(){var i=function(){function s(r){R(this,s),this.api=r}return L(s,[{key:"canActivate",value:function(n,l){return!!this.api.user.isStaff||(window.location.href=this.api.config.urls.user,!1)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(Ot))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),Mc=function(){return function(i){i[i.NONE=0]="NONE",i[i.READ=32]="READ",i[i.MANAGEMENT=64]="MANAGEMENT",i[i.ALL=96]="ALL"}(Mc||(Mc={})),Mc}(),sa=function(){function i(s,r,n){R(this,i),this.api=s,void 0===n&&(n={}),void 0===n.base&&(n.base=r);var l=function(p,_){return void 0===p?_:p};this.id=r,this.paths={base:n.base,get:l(n.get,n.base),log:l(n.log,n.base),put:l(n.put,n.base),test:l(n.test,n.base+"/test"),delete:l(n.delete,n.base),types:l(n.types,n.base+"/types"),gui:l(n.gui,n.base+"/gui"),tableInfo:l(n.tableInfo,n.base+"/tableinfo")},this.headers=(new Bv).set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}return L(i,[{key:"get",value:function(r){return this.doGet(this.getPath(this.paths.get,r))}},{key:"getLogs",value:function(r){return this.doGet(this.getPath(this.paths.log,r)+"/log")}},{key:"overview",value:function(r){return this.get("overview"+(void 0!==r?"?filter="+r:""))}},{key:"summary",value:function(r){return this.get("overview?summarize"+(void 0!==r?"&filter="+r:""))}},{key:"put",value:function(r,n){var l=this;return this.api.http.put(this.getPath(this.paths.put,n),r,{headers:this.headers}).pipe(To(function(c){return l.handleError(c,!0)}))}},{key:"create",value:function(r){return this.put(r)}},{key:"save",value:function(r,n){return this.put(r,n=void 0!==n?n:r.id)}},{key:"test",value:function(r,n){var l=this;return this.api.http.post(this.getPath(this.paths.test,r),n,{headers:this.headers}).pipe(To(function(c){return l.handleError(c)}))}},{key:"delete",value:function(r){var n=this;return this.api.http.delete(this.getPath(this.paths.delete,r),{headers:this.headers}).pipe(To(function(l){return n.handleError(l)}))}},{key:"permision",value:function(){return this.api.user.isAdmin?Mc.ALL:Mc.NONE}},{key:"getPermissions",value:function(r){return this.doGet(this.getPath("permissions/"+this.paths.base+"/"+r))}},{key:"addPermission",value:function(r,n,l,c){var p=this,_=this.getPath("permissions/"+this.paths.base+"/"+r+"/"+n+"/add/"+l);return this.api.http.put(_,{perm:c},{headers:this.headers}).pipe(To(function(M){return p.handleError(M)}))}},{key:"revokePermission",value:function(r){var n=this,l=this.getPath("permissions/revoke");return this.api.http.put(l,{items:r},{headers:this.headers}).pipe(To(function(p){return n.handleError(p)}))}},{key:"types",value:function(){return this.doGet(this.getPath(this.paths.types))}},{key:"gui",value:function(r){var n=this.getPath(this.paths.gui+(void 0!==r?"/"+r:""));return this.doGet(n)}},{key:"callback",value:function(r,n){var l=this.getPath("gui/callback/"+r+"?"+n);return this.doGet(l)}},{key:"tableInfo",value:function(){return this.doGet(this.getPath(this.paths.tableInfo))}},{key:"detail",value:function(r,n){return new TY(this,r,n)}},{key:"invoke",value:function(r,n){var l=r;return n&&(l=l+"?"+n),this.get(l)}},{key:"getPath",value:function(r,n){return this.api.restPath(r+(void 0!==n?"/"+n:""))}},{key:"doGet",value:function(r){var n=this;return this.api.http.get(r,{headers:this.headers}).pipe(To(function(l){return n.handleError(l)}))}},{key:"handleError",value:function(r){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l="";return l=r.error instanceof ErrorEvent?r.error.message:n?django.gettext("Error saving: ")+r.error:"Error ".concat(r.status,": ").concat(r.error),this.api.gui.alert(n?django.gettext("Error saving element"):django.gettext("Error handling your request"),l),ry(l)}}]),i}(),TY=function(i){se(r,i);var s=ue(r);function r(n,l,c,p){var _;return R(this,r),(_=s.call(this,n.api,[n.paths.base,l,c].join("/"))).parentModel=n,_.parentId=l,_.model=c,_.perm=p,_}return L(r,[{key:"permision",value:function(){return this.perm||Mc.ALL}}]),r}(sa),AY=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"providers")).api=n,l}return L(r,[{key:"allServices",value:function(){return this.get("allservices")}},{key:"service",value:function(l){return this.get("service/"+l)}},{key:"maintenance",value:function(l){return this.get(l+"/maintenance")}}]),r}(sa),EY=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"authenticators")).api=n,l}return L(r,[{key:"search",value:function(l,c,p){var _=arguments.length>3&&void 0!==arguments[3]?arguments[3]:12;return this.get(l+"/search?type="+encodeURIComponent(c)+"&term="+encodeURIComponent(p)+"&limit="+_)}}]),r}(sa),PY=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"osmanagers")).api=n,l}return L(r)}(sa),sP=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"transports")).api=n,l}return L(r)}(sa),P5=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"networks")).api=n,l}return L(r)}(sa),lP=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"servicespools")).api=n,l}return L(r,[{key:"setFallbackAccess",value:function(l,c){return this.get(l+"/setFallbackAccess?fallbackAccess="+c)}},{key:"getFallbackAccess",value:function(l){return this.get(l+"/getFallbackAccess")}},{key:"actionsList",value:function(l){return this.get(l+"/actionsList")}},{key:"listAssignables",value:function(l){return this.get(l+"/listAssignables")}},{key:"createFromAssignable",value:function(l,c,p){return this.get(l+"/createFromAssignable?user_id="+encodeURIComponent(c)+"&assignable_id="+encodeURIComponent(p))}}]),r}(sa),OY=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"metapools")).api=n,l}return L(r,[{key:"setFallbackAccess",value:function(l,c){return this.get(l+"/setFallbackAccess?fallbackAccess="+c)}},{key:"getFallbackAccess",value:function(l){return this.get(l+"/getFallbackAccess")}}]),r}(sa),O5=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"config")).api=n,l}return L(r)}(sa),IY=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"gallery/images")).api=n,l}return L(r)}(sa),RY=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"gallery/servicespoolgroups")).api=n,l}return L(r)}(sa),ub=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"system")).api=n,l}return L(r,[{key:"information",value:function(){return this.get("overview")}},{key:"stats",value:function(l,c){var p="stats/"+l;return c&&(p+="/"+c),this.get(p)}},{key:"flushCache",value:function(){return this.doGet(this.getPath("cache","flush"))}}]),r}(sa),I5=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"reports")).api=n,l}return L(r,[{key:"types",value:function(){return dt([])}}]),r}(sa),LY=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"calendars")).api=n,l}return L(r)}(sa),uP=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"accounts")).api=n,l}return L(r,[{key:"timemark",value:function(l){return this.get(l+"/timemark")}}]),r}(sa),FY=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"actortokens")).api=n,l}return L(r)}(sa),cb=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"tunneltokens")).api=n,l}return L(r)}(sa),R5=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"messaging/notifiers")).api=n,l}return L(r)}(sa),rn=function(){var i=L(function s(r){R(this,s),this.api=r,this.providers=new AY(r),this.authenticators=new EY(r),this.osManagers=new PY(r),this.transports=new sP(r),this.networks=new P5(r),this.servicesPools=new lP(r),this.metaPools=new OY(r),this.gallery=new IY(r),this.servicesPoolGroups=new RY(r),this.calendars=new LY(r),this.accounts=new uP(r),this.system=new ub(r),this.configuration=new O5(r),this.actorToken=new FY(r),this.tunnelToken=new cb(r),this.reports=new I5(r),this.notifiers=new R5(r)});return i.\u0275fac=function(r){return new(r||i)(ge(Ot))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),L5=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],F5=[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")],cP=function(s){var r=[];return s.forEach(function(n){r.push(n.substr(0,3))}),r},yg=function(s,r,n){return AS(s,r,n)},AS=function i(s,r,n,l){l=l||{},r=r||new Date,(n=n||U5).formats=n.formats||{};var c=r.getTime();return(l.utc||"number"==typeof l.timezone)&&(r=N5(r)),"number"==typeof l.timezone&&(r=new Date(r.getTime()+6e4*l.timezone)),s.replace(/%([-_0]?.)/g,function(p,_){var w,M,A,O,F,Y,$,oe;if(A=null,F=null,2===_.length){if("-"===(A=_[0]))F="";else if("_"===A)F=" ";else{if("0"!==A)return p;F="0"}_=_[1]}switch(_){case"A":return n.days[r.getDay()];case"a":return n.shortDays[r.getDay()];case"B":return n.months[r.getMonth()];case"b":case"h":return n.shortMonths[r.getMonth()];case"C":return uo(Math.floor(r.getFullYear()/100),F);case"D":return i(n.formats.D||"%m/%d/%y",r,n);case"d":return uo(r.getDate(),F);case"e":return r.getDate();case"F":return i(n.formats.F||"%Y-%m-%d",r,n);case"H":return uo(r.getHours(),F);case"I":return uo(B5(r),F);case"j":return $=new Date(r.getFullYear(),0,1),w=Math.ceil((r.getTime()-$.getTime())/864e5),uo(w,3);case"k":return uo(r.getHours(),void 0===F?" ":F);case"L":return uo(Math.floor(c%1e3),3);case"l":return uo(B5(r),void 0===F?" ":F);case"M":return uo(r.getMinutes(),F);case"m":return uo(r.getMonth()+1,F);case"n":return"\n";case"o":return String(r.getDate())+V5(r.getDate());case"P":case"p":return"";case"R":return i(n.formats.R||"%H:%M",r,n);case"r":return i(n.formats.r||"%I:%M:%S %p",r,n);case"S":return uo(r.getSeconds(),F);case"s":return Math.floor(c/1e3);case"T":return i(n.formats.T||"%H:%M:%S",r,n);case"t":return"\t";case"U":return uo(H5(r,"sunday"),F);case"u":return 0===(M=r.getDay())?7:M;case"v":return i(n.formats.v||"%e-%b-%Y",r,n);case"W":return uo(H5(r,"monday"),F);case"w":return r.getDay();case"Y":return r.getFullYear();case"y":return(oe=String(r.getFullYear())).slice(oe.length-2);case"Z":return l.utc?"GMT":(Y=r.toString().match(/\((\w+)\)/))&&Y[1]||"";case"z":return l.utc?"+0000":((O="number"==typeof l.timezone?l.timezone:-r.getTimezoneOffset())<0?"-":"+")+uo(Math.abs(O/60))+uo(O%60);default:return _}})},N5=function(s){var r=6e4*(s.getTimezoneOffset()||0);return new Date(s.getTime()+r)},uo=function(s,r,n){"number"==typeof r&&(n=r,r="0"),r=null==r?"0":r,n=null==n?2:n;var l=String(s);if(r)for(;l.length12&&(r-=12),r},V5=function(s){var r=s%10,n=s%100;if(n>=11&&n<=13||0===r||r>=4)return"th";switch(r){case 1:return"st";case 2:return"nd";case 3:return"rd"}},H5=function(s,r){r=r||"sunday";var n=s.getDay();"monday"===r&&(0===n?n=6:n--);var l=new Date(s.getFullYear(),0,1),c=Math.floor((s.getTime()-l.getTime())/864e5);return Math.floor((c+7-n)/7)},z5=function(s){return s.replace(/./g,function(r){switch(r){case"a":case"A":return"%p";case"b":case"d":case"m":case"w":case"W":case"y":case"Y":return"%"+r;case"c":return"%FT%TZ";case"D":return"%a";case"e":case"O":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":case"L":case"S":case"t":case"U":return"";case"j":return"%d";case"l":return"%A";case"M":case"N":return"%b";case"n":return"%m";case"o":return"%W";case"P":return"%R %p";case"r":return"%a, %d %b %Y %T %z";case"s":return"%S";case"T":return"%Z";case"u":return"0";case"z":return"%j";case"Z":return"z";default:return r}})},zs=function(s,r){var l,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("None"===r||null==r)r=7226578800,l=django.gettext("Never");else{var c=django.get_format(s);n&&(c+=n),l=yg(z5(c),new Date(1e3*r))}return l},fP=function(s){return"yes"===s||!0===s||"true"===s||1===s},U5={days:L5,shortDays:cP(L5),months:F5,shortMonths:cP(F5),AM:"AM",PM:"PM",am:"am",pm:"pm"},j5={leading:!0,trailing:!1};function BY(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j5;return gr(function(r,n){var l=s.leading,c=s.trailing,p=!1,_=null,w=null,M=!1,A=function(){null==w||w.unsubscribe(),w=null,c&&(Y(),M&&n.complete())},O=function(){w=null,M&&n.complete()},F=function(oe){return w=ji(i(oe)).subscribe(ve(n,A,O))},Y=function(){if(p){p=!1;var oe=_;_=null,n.next(oe),!M&&F(oe)}};r.subscribe(ve(n,function($){p=!0,_=$,(!w||w.closed)&&(l?Y():F($))},function(){M=!0,(!(c&&p&&w)||w.closed)&&n.complete()}))})}var Y5=function(){function i(s){R(this,i),this.changes=s}return L(i,[{key:"notEmpty",value:function(r){if(this.changes[r]){var n=this.changes[r].currentValue;if(null!=n)return dt(n)}return Sr}},{key:"has",value:function(r){return this.changes[r]?dt(this.changes[r].currentValue):Sr}},{key:"notFirst",value:function(r){return this.changes[r]&&!this.changes[r].isFirstChange()?dt(this.changes[r].currentValue):Sr}},{key:"notFirstAndEmpty",value:function(r){if(this.changes[r]&&!this.changes[r].isFirstChange()){var n=this.changes[r].currentValue;if(null!=n)return dt(n)}return Sr}}],[{key:"of",value:function(r){return new i(r)}}]),i}(),dP=new Ae("NGX_ECHARTS_CONFIG"),fb=function(){var i=function(){function s(r,n,l){R(this,s),this.el=n,this.ngZone=l,this.autoResize=!0,this.loadingType="default",this.chartInit=new ye,this.optionsError=new ye,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.resize$=new Xe,this.echarts=r.echarts}return L(s,[{key:"ngOnChanges",value:function(n){var l=this,c=Y5.of(n);c.notFirstAndEmpty("options").subscribe(function(p){return l.onOptionsChange(p)}),c.notFirstAndEmpty("merge").subscribe(function(p){return l.setOption(p)}),c.has("loading").subscribe(function(p){return l.toggleLoading(!!p)}),c.notFirst("theme").subscribe(function(){return l.refreshChart()})}},{key:"ngOnInit",value:function(){var n=this;if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(function W5(i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:j5,n=qv(i,arguments.length>1&&void 0!==arguments[1]?arguments[1]:El);return BY(function(){return n},r)}(100,El,{leading:!1,trailing:!0})).subscribe(function(){return n.resize()}),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(function(){return new window.ResizeObserver(function(){n.animationFrameID=window.requestAnimationFrame(function(){return n.resize$.next()})})}),this.resizeOb.observe(this.el.nativeElement))}},{key:"ngOnDestroy",value:function(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.dispose()}},{key:"ngAfterViewInit",value:function(){var n=this;this.initChartTimer=window.setTimeout(function(){return n.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(n){this.chart&&(n?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading())}},{key:"setOption",value:function(n,l){if(this.chart)try{this.chart.setOption(n,l)}catch(c){console.error(c),this.optionsError.emit(c)}}},{key:"refreshChart",value:function(){return Zt(this,void 0,void 0,Ct.mark(function n(){return Ct.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return this.dispose(),c.next=3,this.initChart();case 3:case"end":return c.stop()}},n,this)}))}},{key:"createChart",value:function(){var n=this,l=this.el.nativeElement;if(window&&window.getComputedStyle){var c=window.getComputedStyle(l,null).getPropertyValue("height");(!c||"0px"===c)&&(!l.style.height||"0px"===l.style.height)&&(l.style.height="400px")}return this.ngZone.runOutsideAngular(function(){return("function"==typeof n.echarts?n.echarts:function(){return Promise.resolve(n.echarts)})().then(function(_){return(0,_.init)(l,n.theme,n.initOpts)})})}},{key:"initChart",value:function(){return Zt(this,void 0,void 0,Ct.mark(function n(){return Ct.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.onOptionsChange(this.options);case 2:this.merge&&this.chart&&this.setOption(this.merge);case 3:case"end":return c.stop()}},n,this)}))}},{key:"onOptionsChange",value:function(n){return Zt(this,void 0,void 0,Ct.mark(function l(){return Ct.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(n){p.next=2;break}return p.abrupt("return");case 2:if(!this.chart){p.next=6;break}this.setOption(this.options,!0),p.next=11;break;case 6:return p.next=8,this.createChart();case 8:this.chart=p.sent,this.chartInit.emit(this.chart),this.setOption(this.options,!0);case 11:case"end":return p.stop()}},l,this)}))}},{key:"createLazyEvent",value:function(n){var l=this;return this.chartInit.pipe(_a(function(c){return new Jn(function(p){return c.on(n,function(_){return l.ngZone.run(function(){return p.next(_)})}),function(){l.chart&&(l.chart.isDisposed()||c.off(n))}})}))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(dP),z(tt),z(Pt))},i.\u0275dir=be({type:i,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",loading:"loading",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loadingType:"loadingType",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:[xn]}),i}(),bu=function(){var i=function(){function s(){R(this,s)}return L(s,null,[{key:"forRoot",value:function(n){return{ngModule:s,providers:[{provide:dP,useValue:n}]}}},{key:"forChild",value:function(){return{ngModule:s}}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[]]}),i}();function VY(i,s){if(1&i&&(I(0,"div",21)(1,"div",11),Se(2,"img",3),I(3,"div",12),K(4),B()(),I(5,"div",13)(6,"a",15)(7,"uds-translate"),K(8,"View service pools"),B()()()()),2&i){var r=Q(2);G(2),U("src",r.api.staticURL("admin/img/icons/logs.png"),Qt),G(2),Le(" ",r.data.restrained," ")}}function q5(i,s){if(1&i){var r=xe();I(0,"div")(1,"div",8)(2,"div",9)(3,"div",10)(4,"div",11),Se(5,"img",3),I(6,"div",12),K(7),B()(),I(8,"div",13)(9,"a",14)(10,"uds-translate"),K(11,"View authenticators"),B()()()(),I(12,"div",10)(13,"div",11),Se(14,"img",3),I(15,"div",12),K(16),B()(),I(17,"div",13)(18,"a",15)(19,"uds-translate"),K(20,"View service pools"),B()()()(),I(21,"div",10)(22,"div",11),Se(23,"img",3),I(24,"div",12),K(25),B()(),I(26,"div",13)(27,"a",15)(28,"uds-translate"),K(29,"View service pools"),B()()()(),te(30,VY,9,2,"div",16),B(),I(31,"div",17)(32,"div",18)(33,"div",19)(34,"uds-translate"),K(35,"Assigned services chart"),B()(),I(36,"div",20),ne("chartInit",function(c){return he(r),Q().chartInit("assigned",c)}),B()(),I(37,"div",18)(38,"div",19)(39,"uds-translate"),K(40,"In use services chart"),B()(),I(41,"div",20),ne("chartInit",function(c){return he(r),Q().chartInit("inuse",c)}),B()()()()()}if(2&i){var n=Q();G(5),U("src",n.api.staticURL("admin/img/icons/authenticators.png"),Qt),G(2),Le(" ",n.data.users," "),G(7),U("src",n.api.staticURL("admin/img/icons/pools.png"),Qt),G(2),Le(" ",n.data.pools," "),G(7),U("src",n.api.staticURL("admin/img/icons/services.png"),Qt),G(2),Le(" ",n.data.user_services," "),G(5),U("ngIf",n.data.restrained),G(6),U("options",n.assignedChartOpts),G(5),U("options",n.inuseChartOpts)}}function hP(i,s){1&i&&(I(0,"div",22)(1,"div",23)(2,"div",24)(3,"uds-translate"),K(4,"UDS Administration"),B()(),I(5,"div",25)(6,"p")(7,"uds-translate"),K(8,"You are accessing UDS Administration as staff member."),B()(),I(9,"p")(10,"uds-translate"),K(11,"This means that you have restricted access to elements."),B()(),I(12,"p")(13,"uds-translate"),K(14,"In order to increase your access privileges, please contact your local UDS administrator. "),B()(),Se(15,"br"),I(16,"p")(17,"uds-translate"),K(18,"Thank you."),B()()()()())}var HY=function(){var i=function(){function s(r,n){R(this,s),this.api=r,this.rest=n,this.data={},this.assignedChartInstance=null,this.assignedChartOpts={},this.inuseChartOpts={},this.inuseChartInstance=null}return L(s,[{key:"onResize",value:function(n){this.assignedChartInstance&&this.assignedChartInstance.resize(),this.inuseChartInstance&&this.inuseChartInstance.resize()}},{key:"ngOnInit",value:function(){var n=this;if(this.api.user.isAdmin){this.rest.system.information().subscribe(function(_){n.data={users:django.gettext("#USR_NUMBER# users, #GRP_NUMBER# groups").replace("#USR_NUMBER#",_.users).replace("#GRP_NUMBER#",_.groups),pools:django.gettext("#POOLS_NUMBER# service pools").replace("#POOLS_NUMBER#",_.service_pools),user_services:django.gettext("#SERVICES_NUMBER# user services").replace("#SERVICES_NUMBER#",_.user_services)},_.restrained_services_pools>0&&(n.data.restrained=django.gettext("#RESTRAINED_NUMBER# restrained services!").replace("#RESTRAINED_NUMBER#",_.restrained_services_pools))});for(var l=function(){var w=p[c];n.rest.system.stats(w).subscribe(function(M){var A={tooltip:{trigger:"axis"},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:M.map(function(O){return zs("SHORT_DATE_FORMAT",new Date(O.stamp))}),boundaryGap:!1},yAxis:{type:"value",boundaryGap:!1},series:[{name:"assigned"===w?django.gettext("Assigned services"):django.gettext("Services in use"),type:"line",smooth:!0,areaStyle:{},data:M.map(function(O){return O.value})}]};"assigned"===w?n.assignedChartOpts=A:n.inuseChartOpts=A})},c=0,p=["assigned","inuse"];c0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,l=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];R(this,i),this._multiple=r,this._emitChanges=l,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Xe,n&&n.length&&(r?n.forEach(function(c){return s._markSelected(c)}):this._markSelected(n[0]),this._selectedToEmit.length=0)}return L(i,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var r=this,n=arguments.length,l=new Array(n),c=0;c enter",[mt({opacity:0,transform:"translateY(-5px)"}),$n("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},hb=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=be({type:i}),i}(),eq=new Ae("MatHint"),Tr=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=be({type:i,selectors:[["mat-label"]]}),i}(),tq=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=be({type:i,selectors:[["mat-placeholder"]]}),i}(),gP=new Ae("MatPrefix"),nH=new Ae("MatSuffix"),wg=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=be({type:i,selectors:[["","matSuffix",""]],features:[ft([{provide:nH,useExisting:i}])]}),i}(),mP=0,iq=yc(function(){return L(function i(s){R(this,i),this._elementRef=s})}(),"primary"),aq=new Ae("MAT_FORM_FIELD_DEFAULT_OPTIONS"),pb=new Ae("MatFormField"),or=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w,M,A){var O;return R(this,n),(O=r.call(this,l))._changeDetectorRef=c,O._dir=p,O._defaults=_,O._platform=w,O._ngZone=M,O._outlineGapCalculationNeededImmediately=!1,O._outlineGapCalculationNeededOnStable=!1,O._destroyed=new Xe,O._showAlwaysAnimate=!1,O._subscriptAnimationState="",O._hintLabel="",O._hintLabelId="mat-hint-".concat(mP++),O._labelId="mat-form-field-label-".concat(mP++),O.floatLabel=O._getDefaultFloatLabelState(),O._animationsEnabled="NoopAnimations"!==A,O.appearance=_&&_.appearance?_.appearance:"legacy",O._hideRequiredMarker=!(!_||null==_.hideRequiredMarker)&&_.hideRequiredMarker,O}return L(n,[{key:"appearance",get:function(){return this._appearance},set:function(c){var p=this._appearance;this._appearance=c||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&p!==c&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(c){this._hideRequiredMarker=gt(c)}},{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(c){this._hintLabel=c,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(c){c!==this._floatLabel&&(this._floatLabel=c||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(c){this._explicitFormFieldControl=c}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var c=this;this._validateControlChild();var p=this._control;p.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(p.controlType)),p.stateChanges.pipe(na(null)).subscribe(function(){c._validatePlaceholders(),c._syncDescribedByIds(),c._changeDetectorRef.markForCheck()}),p.ngControl&&p.ngControl.valueChanges&&p.ngControl.valueChanges.pipe(Wt(this._destroyed)).subscribe(function(){return c._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){c._ngZone.onStable.pipe(Wt(c._destroyed)).subscribe(function(){c._outlineGapCalculationNeededOnStable&&c.updateOutlineGap()})}),Rr(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){c._outlineGapCalculationNeededOnStable=!0,c._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(na(null)).subscribe(function(){c._processHints(),c._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(na(null)).subscribe(function(){c._syncDescribedByIds(),c._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Wt(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?c._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return c.updateOutlineGap()})}):c.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(c){var p=this._control?this._control.ngControl:null;return p&&p[c]}},{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 c=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,gu(this._label.nativeElement,"transitionend").pipe(gn(1)).subscribe(function(){c._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 c=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&c.push.apply(c,yt(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var p=this._hintChildren?this._hintChildren.find(function(w){return"start"===w.align}):null,_=this._hintChildren?this._hintChildren.find(function(w){return"end"===w.align}):null;p?c.push(p.id):this._hintLabel&&c.push(this._hintLabelId),_&&c.push(_.id)}else this._errorChildren&&c.push.apply(c,yt(this._errorChildren.map(function(w){return w.id})));this._control.setDescribedByIds(c)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var c=this._label?this._label.nativeElement:null,p=this._connectionContainerRef.nativeElement,_=".mat-form-field-outline-start",w=".mat-form-field-outline-gap";if("outline"===this.appearance&&this._platform.isBrowser){if(!c||!c.children.length||!c.textContent.trim()){for(var M=p.querySelectorAll("".concat(_,", ").concat(w)),A=0;A0?.75*we+10:0}for(var Ee=0;Ee void",y1("@transformPanel",[_1()],{optional:!0}))]),transformPanel:zi("transformPanel",[Wn("void",mt({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Wn("showing",mt({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Wn("showing-multiple",mt({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Yn("void => *",$n("120ms cubic-bezier(0, 0, 0.2, 1)")),Yn("* => void",$n("100ms 25ms linear",mt({opacity:0})))])},op=0,lH=new Ae("mat-select-scroll-strategy"),uH=new Ae("MAT_SELECT_CONFIG"),dq={provide:lH,deps:[aa],useFactory:function fq(i){return function(){return i.scrollStrategies.reposition()}}},cH=L(function i(s,r){R(this,i),this.source=s,this.value=r}),hq=bc(Z1(Fl(X1(function(){return L(function i(s,r,n,l,c){R(this,i),this._elementRef=s,this._defaultErrorStateMatcher=r,this._parentForm=n,this._parentFormGroup=l,this.ngControl=c})}())))),fH=new Ae("MatSelectTrigger"),pq=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=be({type:i,selectors:[["mat-select-trigger"]],features:[ft([{provide:fH,useExisting:i}])]}),i}(),RS=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w,M,A,O,F,Y,$,oe,le,fe){var ae,we,De,Ee;return R(this,n),(ae=r.call(this,w,_,A,O,Y))._viewportRuler=l,ae._changeDetectorRef=c,ae._ngZone=p,ae._dir=M,ae._parentFormField=F,ae._liveAnnouncer=le,ae._defaultOptions=fe,ae._panelOpen=!1,ae._compareWith=function(We,bt){return We===bt},ae._uid="mat-select-".concat(op++),ae._triggerAriaLabelledBy=null,ae._destroy=new Xe,ae._onChange=function(){},ae._onTouched=function(){},ae._valueId="mat-select-value-".concat(op++),ae._panelDoneAnimatingStream=new Xe,ae._overlayPanelClass=(null===(we=ae._defaultOptions)||void 0===we?void 0:we.overlayPanelClass)||"",ae._focused=!1,ae.controlType="mat-select",ae._multiple=!1,ae._disableOptionCentering=null!==(Ee=null===(De=ae._defaultOptions)||void 0===De?void 0:De.disableOptionCentering)&&void 0!==Ee&&Ee,ae.ariaLabel="",ae.optionSelectionChanges=Sw(function(){var We=ae.options;return We?We.changes.pipe(na(We),_a(function(){return Rr.apply(void 0,yt(We.map(function(bt){return bt.onSelectionChange})))})):ae._ngZone.onStable.pipe(gn(1),_a(function(){return ae.optionSelectionChanges}))}),ae.openedChange=new ye,ae._openedStream=ae.openedChange.pipe(Ur(function(We){return We}),on(function(){})),ae._closedStream=ae.openedChange.pipe(Ur(function(We){return!We}),on(function(){})),ae.selectionChange=new ye,ae.valueChange=new ye,ae.ngControl&&(ae.ngControl.valueAccessor=an(ae)),null!=(null==fe?void 0:fe.typeaheadDebounceInterval)&&(ae._typeaheadDebounceInterval=fe.typeaheadDebounceInterval),ae._scrollStrategyFactory=oe,ae._scrollStrategy=ae._scrollStrategyFactory(),ae.tabIndex=parseInt($)||0,ae.id=ae.id,ae}return L(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(c){this._placeholder=c,this.stateChanges.next()}},{key:"required",get:function(){var c,p,_,w;return null!==(w=null!==(c=this._required)&&void 0!==c?c:null===(_=null===(p=this.ngControl)||void 0===p?void 0:p.control)||void 0===_?void 0:_.hasValidator(rS.required))&&void 0!==w&&w},set:function(c){this._required=gt(c),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(c){this._multiple=gt(c)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(c){this._disableOptionCentering=gt(c)}},{key:"compareWith",get:function(){return this._compareWith},set:function(c){this._compareWith=c,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(c){this._assignValue(c)&&this._onChange(c)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(c){this._typeaheadDebounceInterval=Va(c)}},{key:"id",get:function(){return this._id},set:function(c){this._id=c||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var c=this;this._selectionModel=new bg(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Fy(),Wt(this._destroy)).subscribe(function(){return c._panelDoneAnimating(c.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var c=this;this._initKeyManager(),this._selectionModel.changed.pipe(Wt(this._destroy)).subscribe(function(p){p.added.forEach(function(_){return _.select()}),p.removed.forEach(function(_){return _.deselect()})}),this.options.changes.pipe(na(null),Wt(this._destroy)).subscribe(function(){c._resetOptions(),c._initializeSelection()})}},{key:"ngDoCheck",value:function(){var c=this._getTriggerAriaLabelledby(),p=this.ngControl;if(c!==this._triggerAriaLabelledBy){var _=this._elementRef.nativeElement;this._triggerAriaLabelledBy=c,c?_.setAttribute("aria-labelledby",c):_.removeAttribute("aria-labelledby")}p&&(this._previousControl!==p.control&&(void 0!==this._previousControl&&null!==p.disabled&&p.disabled!==this.disabled&&(this.disabled=p.disabled),this._previousControl=p.control),this.updateErrorState())}},{key:"ngOnChanges",value:function(c){c.disabled&&this.stateChanges.next(),c.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(c){this._assignValue(c)}},{key:"registerOnChange",value:function(c){this._onChange=c}},{key:"registerOnTouched",value:function(c){this._onTouched=c}},{key:"setDisabledState",value:function(c){this.disabled=c,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){var c,p;return this.multiple?(null===(c=this._selectionModel)||void 0===c?void 0:c.selected)||[]:null===(p=this._selectionModel)||void 0===p?void 0:p.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var c=this._selectionModel.selected.map(function(p){return p.viewValue});return this._isRtl()&&c.reverse(),c.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(c){this.disabled||(this.panelOpen?this._handleOpenKeydown(c):this._handleClosedKeydown(c))}},{key:"_handleClosedKeydown",value:function(c){var p=c.keyCode,_=40===p||38===p||37===p||39===p,w=13===p||32===p,M=this._keyManager;if(!M.isTyping()&&w&&!ia(c)||(this.multiple||c.altKey)&&_)c.preventDefault(),this.open();else if(!this.multiple){var A=this.selected;M.onKeydown(c);var O=this.selected;O&&A!==O&&this._liveAnnouncer.announce(O.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(c){var p=this._keyManager,_=c.keyCode,w=40===_||38===_,M=p.isTyping();if(w&&c.altKey)c.preventDefault(),this.close();else if(M||13!==_&&32!==_||!p.activeItem||ia(c))if(!M&&this._multiple&&65===_&&c.ctrlKey){c.preventDefault();var A=this.options.some(function(F){return!F.disabled&&!F.selected});this.options.forEach(function(F){F.disabled||(A?F.select():F.deselect())})}else{var O=p.activeItemIndex;p.onKeydown(c),this._multiple&&w&&c.shiftKey&&p.activeItem&&p.activeItemIndex!==O&&p.activeItem._selectViaInteraction()}else c.preventDefault(),p.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 c=this;this._overlayDir.positionChange.pipe(gn(1)).subscribe(function(){c._changeDetectorRef.detectChanges(),c._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 c=this;Promise.resolve().then(function(){c.ngControl&&(c._value=c.ngControl.value),c._setSelectionByValue(c._value),c.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(c){var p=this;if(this._selectionModel.selected.forEach(function(w){return w.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&c)Array.isArray(c),c.forEach(function(w){return p._selectOptionByValue(w)}),this._sortValues();else{var _=this._selectOptionByValue(c);_?this._keyManager.updateActiveItem(_):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectOptionByValue",value:function(c){var p=this,_=this.options.find(function(w){if(p._selectionModel.isSelected(w))return!1;try{return null!=w.value&&p._compareWith(w.value,c)}catch(M){return!1}});return _&&this._selectionModel.select(_),_}},{key:"_assignValue",value:function(c){return!!(c!==this._value||this._multiple&&Array.isArray(c))&&(this.options&&this._setSelectionByValue(c),this._value=c,!0)}},{key:"_initKeyManager",value:function(){var c=this;this._keyManager=new b3(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Wt(this._destroy)).subscribe(function(){c.panelOpen&&(!c.multiple&&c._keyManager.activeItem&&c._keyManager.activeItem._selectViaInteraction(),c.focus(),c.close())}),this._keyManager.change.pipe(Wt(this._destroy)).subscribe(function(){c._panelOpen&&c.panel?c._scrollOptionIntoView(c._keyManager.activeItemIndex||0):!c._panelOpen&&!c.multiple&&c._keyManager.activeItem&&c._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var c=this,p=Rr(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Wt(p)).subscribe(function(_){c._onSelect(_.source,_.isUserInput),_.isUserInput&&!c.multiple&&c._panelOpen&&(c.close(),c.focus())}),Rr.apply(void 0,yt(this.options.map(function(_){return _._stateChanges}))).pipe(Wt(p)).subscribe(function(){c._changeDetectorRef.markForCheck(),c.stateChanges.next()})}},{key:"_onSelect",value:function(c,p){var _=this._selectionModel.isSelected(c);null!=c.value||this._multiple?(_!==c.selected&&(c.selected?this._selectionModel.select(c):this._selectionModel.deselect(c)),p&&this._keyManager.setActiveItem(c),this.multiple&&(this._sortValues(),p&&this.focus())):(c.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(c.value)),_!==this._selectionModel.isSelected(c)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var c=this;if(this.multiple){var p=this.options.toArray();this._selectionModel.sort(function(_,w){return c.sortComparator?c.sortComparator(_,w,p):p.indexOf(_)-p.indexOf(w)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(c){var p;p=this.multiple?this.selected.map(function(_){return _.value}):this.selected?this.selected.value:c,this._value=p,this.valueChange.emit(p),this._onChange(p),this.selectionChange.emit(this._getChangeEvent(p)),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 c;return!this._panelOpen&&!this.disabled&&(null===(c=this.options)||void 0===c?void 0:c.length)>0}},{key:"focus",value:function(c){this._elementRef.nativeElement.focus(c)}},{key:"_getPanelAriaLabelledby",value:function(){var c;if(this.ariaLabel)return null;var p=null===(c=this._parentFormField)||void 0===c?void 0:c.getLabelId();return this.ariaLabelledby?(p?p+" ":"")+this.ariaLabelledby:p}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var c;if(this.ariaLabel)return null;var p=null===(c=this._parentFormField)||void 0===c?void 0:c.getLabelId(),_=(p?p+" ":"")+this._valueId;return this.ariaLabelledby&&(_+=" "+this.ariaLabelledby),_}},{key:"_panelDoneAnimating",value:function(c){this.openedChange.emit(c)}},{key:"setDescribedByIds",value:function(c){this._ariaDescribedby=c.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(hq);return i.\u0275fac=function(r){return new(r||i)(z(Ls),z(hn),z(Pt),z(qy),z(tt),z(Ei,8),z(Sc,8),z($f,8),z(pb,8),z(Bl,10),Ho("tabindex"),z(lH),z(kA),z(uH,8))},i.\u0275dir=be({type:i,viewQuery:function(r,n){var l;1&r&&(Rt(oq,5),Rt(sq,5),Rt(gA,5)),2&r&&(Ve(l=Ge())&&(n.trigger=l.first),Ve(l=Ge())&&(n.panel=l.first),Ve(l=Ge())&&(n._overlayDir=l.first))},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[Re,xn]}),i}(),Ua=function(){var i=function(s){se(n,s);var r=ue(n);function n(){var l;return R(this,n),(l=r.apply(this,arguments))._scrollTop=0,l._triggerFontSize=0,l._transformOrigin="top",l._offsetY=0,l._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],l}return L(n,[{key:"_calculateOverlayScroll",value:function(c,p,_){var w=this._getItemHeight();return Math.min(Math.max(0,w*c-p+w/2),_)}},{key:"ngOnInit",value:function(){var c=this;Ye(qe(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(Wt(this._destroy)).subscribe(function(){c.panelOpen&&(c._triggerRect=c.trigger.nativeElement.getBoundingClientRect(),c._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var c=this;Ye(qe(n.prototype),"_canOpen",this).call(this)&&(Ye(qe(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(gn(1)).subscribe(function(){c._triggerFontSize&&c._overlayDir.overlayRef&&c._overlayDir.overlayRef.overlayElement&&(c._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(c._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(c){var p=cE(c,this.options,this.optionGroups),_=this._getItemHeight();this.panel.nativeElement.scrollTop=0===c&&1===p?0:jB((c+p)*_,_,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(c){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),Ye(qe(n.prototype),"_panelDoneAnimating",this).call(this,c)}},{key:"_getChangeEvent",value:function(c){return new cH(this,c)}},{key:"_calculateOverlayOffsetX",value:function(){var M,c=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),p=this._viewportRuler.getViewportSize(),_=this._isRtl(),w=this.multiple?56:32;if(this.multiple)M=40;else if(this.disableOptionCentering)M=16;else{var A=this._selectionModel.selected[0]||this.options.first;M=A&&A.group?32:16}_||(M*=-1);var O=0-(c.left+M-(_?w:0)),F=c.right+M-p.width+(_?0:w);O>0?M+=O+8:F>0&&(M-=F+8),this._overlayDir.offsetX=Math.round(M),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(c,p,_){var O,w=this._getItemHeight(),M=(w-this._triggerRect.height)/2,A=Math.floor(256/w);return this.disableOptionCentering?0:(O=0===this._scrollTop?c*w:this._scrollTop===_?(c-(this._getItemCount()-A))*w+(w-(this._getItemCount()*w-256)%w):p-w/2,Math.round(-1*O-M))}},{key:"_checkOverlayWithinViewport",value:function(c){var p=this._getItemHeight(),_=this._viewportRuler.getViewportSize(),w=this._triggerRect.top-8,M=_.height-this._triggerRect.bottom-8,A=Math.abs(this._offsetY),F=Math.min(this._getItemCount()*p,256)-A-this._triggerRect.height;F>M?this._adjustPanelUp(F,M):A>w?this._adjustPanelDown(A,w,c):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(c,p){var _=Math.round(c-p);this._scrollTop-=_,this._offsetY-=_,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(c,p,_){var w=Math.round(c-p);if(this._scrollTop+=w,this._offsetY+=w,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=_)return this._scrollTop=_,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var A,c=this._getItemHeight(),p=this._getItemCount(),_=Math.min(p*c,256),M=p*c-_;A=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),A+=cE(A,this.options,this.optionGroups);var O=_/2;this._scrollTop=this._calculateOverlayScroll(A,O,M),this._offsetY=this._calculateOverlayOffsetY(A,O,M),this._checkOverlayWithinViewport(M)}},{key:"_getOriginBasedOnOption",value:function(){var c=this._getItemHeight(),p=(c-this._triggerRect.height)/2,_=Math.abs(this._offsetY)-p+c/2;return"50% ".concat(_,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(RS);return i.\u0275fac=function(){var s;return function(n){return(s||(s=cn(i)))(n||i)}}(),i.\u0275cmp=ke({type:i,selectors:[["mat-select"]],contentQueries:function(r,n,l){var c;1&r&&(Mn(l,fH,5),Mn(l,Pi,5),Mn(l,$1,5)),2&r&&(Ve(c=Ge())&&(n.customTrigger=c.first),Ve(c=Ge())&&(n.options=c),Ve(c=Ge())&&(n.optionGroups=c))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(r,n){1&r&&ne("keydown",function(c){return n._handleKeydown(c)})("focus",function(){return n._onFocus()})("blur",function(){return n._onBlur()}),2&r&&(lt("id",n.id)("tabindex",n.tabIndex)("aria-controls",n.panelOpen?n.id+"-panel":null)("aria-expanded",n.panelOpen)("aria-label",n.ariaLabel||null)("aria-required",n.required.toString())("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-describedby",n._ariaDescribedby||null)("aria-activedescendant",n._getAriaActiveDescendant()),Ze("mat-select-disabled",n.disabled)("mat-select-invalid",n.errorState)("mat-select-required",n.required)("mat-select-empty",n.empty)("mat-select-multiple",n.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[ft([{provide:hb,useExisting:i},{provide:Xy,useExisting:i}]),Re],ngContentSelectors:aH,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(r,n){if(1&r&&(vi(iH),I(0,"div",0,1),ne("click",function(){return n.toggle()}),I(3,"div",2),te(4,Cu,2,1,"span",3),te(5,yP,3,2,"span",4),B(),I(6,"div",5),Se(7,"div",6),B()(),te(8,lq,4,14,"ng-template",7),ne("backdropClick",function(){return n.close()})("attach",function(){return n._onAttached()})("detach",function(){return n.close()})),2&r){var l=Dn(1);lt("aria-owns",n.panelOpen?n.id+"-panel":null),G(3),U("ngSwitch",n.empty),lt("id",n._valueId),G(1),U("ngSwitchCase",!0),G(1),U("ngSwitchCase",!1),G(3),U("cdkConnectedOverlayPanelClass",n._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",n._scrollStrategy)("cdkConnectedOverlayOrigin",l)("cdkConnectedOverlayOpen",n.panelOpen)("cdkConnectedOverlayPositions",n._positions)("cdkConnectedOverlayMinWidth",null==n._triggerRect?null:n._triggerRect.width)("cdkConnectedOverlayOffsetY",n._offsetY)}},directives:[f3,rc,kf,mh,gA,As],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{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{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.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-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.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;display:inline-block;visibility:hidden}\n'],encapsulation:2,data:{animation:[oH.transformPanelWrap,oH.transformPanel]},changeDetection:0}),i}(),bP=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({providers:[dq],imports:[[io,Nf,Q1,vn],If,PS,Q1,vn]}),i}(),LS=["tooltip"],CP="tooltip-panel",FS=Vh({passive:!0}),SP=new Ae("mat-tooltip-scroll-strategy"),mq={provide:SP,deps:[aa],useFactory:function MP(i){return function(){return i.scrollStrategies.reposition({scrollThrottle:20})}}},_q=new Ae("mat-tooltip-default-options",{providedIn:"root",factory:function dH(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),hH=function(){var i=function(){function s(r,n,l,c,p,_,w,M,A,O,F,Y){var $=this;R(this,s),this._overlay=r,this._elementRef=n,this._scrollDispatcher=l,this._viewContainerRef=c,this._ngZone=p,this._platform=_,this._ariaDescriber=w,this._focusMonitor=M,this._dir=O,this._defaultOptions=F,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 Xe,this._scrollStrategy=A,this._document=Y,F&&(F.position&&(this.position=F.position),F.touchGestures&&(this.touchGestures=F.touchGestures)),O.change.pipe(Wt(this._destroyed)).subscribe(function(){$._overlayRef&&$._updatePosition($._overlayRef)})}return L(s,[{key:"position",get:function(){return this._position},set:function(n){var l;n!==this._position&&(this._position=n,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(l=this._tooltipInstance)||void 0===l||l.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(n){this._disabled=gt(n),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"showDelay",get:function(){return this._showDelay},set:function(n){this._showDelay=Va(n)}},{key:"hideDelay",get:function(){return this._hideDelay},set:function(n){this._hideDelay=Va(n),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}},{key:"message",get:function(){return this._message},set:function(n){var l=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=n?String(n).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){l._ariaDescriber.describe(l._elementRef.nativeElement,l.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(n){this._tooltipClass=n,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var n=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Wt(this._destroyed)).subscribe(function(l){l?"keyboard"===l&&n._ngZone.run(function(){return n.show()}):n._ngZone.run(function(){return n.hide(0)})})}},{key:"ngOnDestroy",value:function(){var n=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(function(l){var c=Pr(l,2);n.removeEventListener(c[0],c[1],FS)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(n,this.message,"tooltip"),this._focusMonitor.stopMonitoring(n)}},{key:"show",value:function(){var n=this,l=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 c=this._createOverlay();this._detach(),this._portal=this._portal||new Rf(this._tooltipComponent,this._viewContainerRef);var p=this._tooltipInstance=c.attach(this._portal).instance;p._triggerElement=this._elementRef.nativeElement,p._mouseLeaveHideDelay=this._hideDelay,p.afterHidden().pipe(Wt(this._destroyed)).subscribe(function(){return n._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),p.show(l)}}},{key:"hide",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(n)}},{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 l,n=this;if(this._overlayRef)return this._overlayRef;var c=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),p=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(c);return p.positionChanges.pipe(Wt(this._destroyed)).subscribe(function(_){n._updateCurrentPositionClass(_.connectionPair),n._tooltipInstance&&_.scrollableViewProperties.isOverlayClipped&&n._tooltipInstance.isVisible()&&n._ngZone.run(function(){return n.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:p,panelClass:"".concat(this._cssClassPrefix,"-").concat(CP),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Wt(this._destroyed)).subscribe(function(){return n._detach()}),this._overlayRef.outsidePointerEvents().pipe(Wt(this._destroyed)).subscribe(function(){var _;return null===(_=n._tooltipInstance)||void 0===_?void 0:_._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(Wt(this._destroyed)).subscribe(function(_){n._isTooltipVisible()&&27===_.keyCode&&!ia(_)&&(_.preventDefault(),_.stopPropagation(),n._ngZone.run(function(){return n.hide(0)}))}),(null===(l=this._defaultOptions)||void 0===l?void 0:l.disableTooltipInteractivity)&&this._overlayRef.addPanelClass("".concat(this._cssClassPrefix,"-tooltip-panel-non-interactive")),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(n){var l=n.getConfig().positionStrategy,c=this._getOrigin(),p=this._getOverlayPosition();l.withPositions([this._addOffset(Object.assign(Object.assign({},c.main),p.main)),this._addOffset(Object.assign(Object.assign({},c.fallback),p.fallback))])}},{key:"_addOffset",value:function(n){return n}},{key:"_getOrigin",value:function(){var c,n=!this._dir||"ltr"==this._dir.value,l=this.position;"above"==l||"below"==l?c={originX:"center",originY:"above"==l?"top":"bottom"}:"before"==l||"left"==l&&n||"right"==l&&!n?c={originX:"start",originY:"center"}:("after"==l||"right"==l&&n||"left"==l&&!n)&&(c={originX:"end",originY:"center"});var p=this._invertPosition(c.originX,c.originY);return{main:c,fallback:{originX:p.x,originY:p.y}}}},{key:"_getOverlayPosition",value:function(){var c,n=!this._dir||"ltr"==this._dir.value,l=this.position;"above"==l?c={overlayX:"center",overlayY:"bottom"}:"below"==l?c={overlayX:"center",overlayY:"top"}:"before"==l||"left"==l&&n||"right"==l&&!n?c={overlayX:"end",overlayY:"center"}:("after"==l||"right"==l&&n||"left"==l&&!n)&&(c={overlayX:"start",overlayY:"center"});var p=this._invertPosition(c.overlayX,c.overlayY);return{main:c,fallback:{overlayX:p.x,overlayY:p.y}}}},{key:"_updateTooltipMessage",value:function(){var n=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(gn(1),Wt(this._destroyed)).subscribe(function(){n._tooltipInstance&&n._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(n){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=n,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(n,l){return"above"===this.position||"below"===this.position?"top"===l?l="bottom":"bottom"===l&&(l="top"):"end"===n?n="start":"start"===n&&(n="end"),{x:n,y:l}}},{key:"_updateCurrentPositionClass",value:function(n){var _,l=n.overlayY,c=n.originX;if((_="center"===l?this._dir&&"rtl"===this._dir.value?"end"===c?"left":"right":"start"===c?"left":"right":"bottom"===l&&"top"===n.originY?"above":"below")!==this._currentPosition){var w=this._overlayRef;if(w){var M="".concat(this._cssClassPrefix,"-").concat(CP,"-");w.removePanelClass(M+this._currentPosition),w.addPanelClass(M+_)}this._currentPosition=_}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var n=this;this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){n._setupPointerExitEventsIfNeeded(),n.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){n._setupPointerExitEventsIfNeeded(),clearTimeout(n._touchstartTimeout),n._touchstartTimeout=setTimeout(function(){return n.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var l,n=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var c=[];if(this._platformSupportsMouseEvents())c.push(["mouseleave",function(_){var w,M=_.relatedTarget;(!M||!(null===(w=n._overlayRef)||void 0===w?void 0:w.overlayElement.contains(M)))&&n.hide()}],["wheel",function(_){return n._wheelListener(_)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var p=function(){clearTimeout(n._touchstartTimeout),n.hide(n._defaultOptions.touchendHideDelay)};c.push(["touchend",p],["touchcancel",p])}this._addListeners(c),(l=this._passiveListeners).push.apply(l,c)}}},{key:"_addListeners",value:function(n){var l=this;n.forEach(function(c){var p=Pr(c,2);l._elementRef.nativeElement.addEventListener(p[0],p[1],FS)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(n){if(this._isTooltipVisible()){var l=this._document.elementFromPoint(n.clientX,n.clientY),c=this._elementRef.nativeElement;l!==c&&!c.contains(l)&&this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var n=this.touchGestures;if("off"!==n){var l=this._elementRef.nativeElement,c=l.style;("on"===n||"INPUT"!==l.nodeName&&"TEXTAREA"!==l.nodeName)&&(c.userSelect=c.msUserSelect=c.webkitUserSelect=c.MozUserSelect="none"),("on"===n||!l.draggable)&&(c.webkitUserDrag="none"),c.touchAction="none",c.webkitTapHighlightColor="transparent"}}}]),s}();return i.\u0275fac=function(r){lf()},i.\u0275dir=be({type:i,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),i}(),kP=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w,M,A,O,F,Y,$,oe){var le;return R(this,n),(le=r.call(this,l,c,p,_,w,M,A,O,F,Y,$,oe))._tooltipComponent=lp,le}return L(n)}(hH);return i.\u0275fac=function(r){return new(r||i)(z(aa),z(tt),z(NN),z(wr),z(Pt),z(pn),z(m3),z(Rl),z(SP),z(Ei,8),z(_q,8),z(Jt))},i.\u0275dir=be({type:i,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[Re]}),i}(),DP=function(){var i=function(){function s(r,n){R(this,s),this._changeDetectorRef=r,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Xe,this._animationsDisabled="NoopAnimations"===n}return L(s,[{key:"show",value:function(n){var l=this;clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(function(){l._toggleVisibility(!0),l._showTimeoutId=void 0},n)}},{key:"hide",value:function(n){var l=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){l._toggleVisibility(!1),l._hideTimeoutId=void 0},n)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return this._isVisible}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_handleMouseLeave",value:function(n){var l=n.relatedTarget;(!l||!this._triggerElement.contains(l))&&this.hide(this._mouseLeaveHideDelay)}},{key:"_onShow",value:function(){}},{key:"_handleAnimationEnd",value:function(n){var l=n.animationName;(l===this._showAnimation||l===this._hideAnimation)&&this._finalizeAnimation(l===this._showAnimation)}},{key:"_finalizeAnimation",value:function(n){n?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}},{key:"_toggleVisibility",value:function(n){var l=this._tooltip.nativeElement,c=this._showAnimation,p=this._hideAnimation;if(l.classList.remove(n?p:c),l.classList.add(n?c:p),this._isVisible=n,n&&!this._animationsDisabled&&"function"==typeof getComputedStyle){var _=getComputedStyle(l);("0s"===_.getPropertyValue("animation-duration")||"none"===_.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}n&&this._onShow(),this._animationsDisabled&&(l.classList.add("_mat-animation-noopable"),this._finalizeAnimation(n))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(hn),z(mi,8))},i.\u0275dir=be({type:i}),i}(),lp=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p){var _;return R(this,n),(_=r.call(this,l,p))._breakpointObserver=c,_._isHandset=_._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),_._showAnimation="mat-tooltip-show",_._hideAnimation="mat-tooltip-hide",_}return L(n)}(DP);return i.\u0275fac=function(r){return new(r||i)(z(hn),z(iP),z(mi,8))},i.\u0275cmp=ke({type:i,selectors:[["mat-tooltip-component"]],viewQuery:function(r,n){var l;1&r&&Rt(LS,7),2&r&&Ve(l=Ge())&&(n._tooltip=l.first)},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(r,n){1&r&&ne("mouseleave",function(c){return n._handleMouseLeave(c)}),2&r&&ta("zoom",n.isVisible()?1:null)},features:[Re],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(r,n){var l;1&r&&(I(0,"div",0,1),ne("animationend",function(p){return n._handleAnimationEnd(p)}),vf(2,"async"),K(3),B()),2&r&&(Ze("mat-tooltip-handset",null==(l=fh(2,4,n._isHandset))?null:l.matches),U("ngClass",n.tooltipClass),G(3),Ln(n.message))},directives:[As],pipes:[xi],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}\n"],encapsulation:2,changeDetection:0}),i}(),xP=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({providers:[mq],imports:[[xA,io,Nf,vn],vn,If]}),i}();function yq(i,s){if(1&i&&(I(0,"mat-option",19),K(1),B()),2&i){var r=s.$implicit;U("value",r),G(1),Le(" ",r," ")}}function pH(i,s){if(1&i){var r=xe();I(0,"mat-form-field",16)(1,"mat-select",17),ne("selectionChange",function(c){return he(r),Q(2)._changePageSize(c.value)}),te(2,yq,2,2,"mat-option",18),B()()}if(2&i){var n=Q(2);U("appearance",n._formFieldAppearance)("color",n.color),G(1),U("value",n.pageSize)("disabled",n.disabled)("aria-label",n._intl.itemsPerPageLabel),G(1),U("ngForOf",n._displayedPageSizeOptions)}}function TP(i,s){if(1&i&&(I(0,"div",20),K(1),B()),2&i){var r=Q(2);G(1),Ln(r.pageSize)}}function AP(i,s){if(1&i&&(I(0,"div",12)(1,"div",13),K(2),B(),te(3,pH,3,6,"mat-form-field",14),te(4,TP,2,1,"div",15),B()),2&i){var r=Q();G(2),Le(" ",r._intl.itemsPerPageLabel," "),G(1),U("ngIf",r._displayedPageSizeOptions.length>1),G(1),U("ngIf",r._displayedPageSizeOptions.length<=1)}}function Mg(i,s){if(1&i){var r=xe();I(0,"button",21),ne("click",function(){return he(r),Q().firstPage()}),Bi(),I(1,"svg",7),Se(2,"path",22),B()()}if(2&i){var n=Q();U("matTooltip",n._intl.firstPageLabel)("matTooltipDisabled",n._previousButtonsDisabled())("matTooltipPosition","above")("disabled",n._previousButtonsDisabled()),lt("aria-label",n._intl.firstPageLabel)}}function bq(i,s){if(1&i){var r=xe();Bi(),Zl(),I(0,"button",23),ne("click",function(){return he(r),Q().lastPage()}),Bi(),I(1,"svg",7),Se(2,"path",24),B()()}if(2&i){var n=Q();U("matTooltip",n._intl.lastPageLabel)("matTooltipDisabled",n._nextButtonsDisabled())("matTooltipPosition","above")("disabled",n._nextButtonsDisabled()),lt("aria-label",n._intl.lastPageLabel)}}var kg=function(){var i=L(function s(){R(this,s),this.changes=new Xe,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(r,n,l){if(0==l||0==n)return"0 of ".concat(l);var c=r*n,p=c<(l=Math.max(l,0))?Math.min(c+n,l):c+n;return"".concat(c+1," \u2013 ").concat(p," of ").concat(l)}});return i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),gH={provide:kg,deps:[[new ai,new Kl,kg]],useFactory:function vH(i){return i||new kg}},Cq=new Ae("MAT_PAGINATOR_DEFAULT_OPTIONS"),_H=Fl(LB(function(){return L(function i(){R(this,i)})}())),wq=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p){var _;if(R(this,n),(_=r.call(this))._intl=l,_._changeDetectorRef=c,_._pageIndex=0,_._length=0,_._pageSizeOptions=[],_._hidePageSize=!1,_._showFirstLastButtons=!1,_.page=new ye,_._intlChanges=l.changes.subscribe(function(){return _._changeDetectorRef.markForCheck()}),p){var w=p.pageSize,M=p.pageSizeOptions,A=p.hidePageSize,O=p.showFirstLastButtons;null!=w&&(_._pageSize=w),null!=M&&(_._pageSizeOptions=M),null!=A&&(_._hidePageSize=A),null!=O&&(_._showFirstLastButtons=O)}return _}return L(n,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(c){this._pageIndex=Math.max(Va(c),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(c){this._length=Va(c),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(c){this._pageSize=Math.max(Va(c),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(c){this._pageSizeOptions=(c||[]).map(function(p){return Va(p)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(c){this._hidePageSize=gt(c)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(c){this._showFirstLastButtons=gt(c)}},{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 c=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(c)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var c=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(c)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var c=this.pageIndex;this.pageIndex=0,this._emitPageEvent(c)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var c=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(c)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var c=this.getNumberOfPages()-1;return this.pageIndex active-desc",$n(u))]),leftPointer:zi("leftPointer",[Wn("active-asc, asc",mt({transform:"rotate(-45deg)"})),Wn("active-desc, desc",mt({transform:"rotate(45deg)"})),Yn("active-asc <=> active-desc",$n(u))]),rightPointer:zi("rightPointer",[Wn("active-asc, asc",mt({transform:"rotate(45deg)"})),Wn("active-desc, desc",mt({transform:"rotate(-45deg)"})),Yn("active-asc <=> active-desc",$n(u))]),arrowOpacity:zi("arrowOpacity",[Wn("desc-to-active, asc-to-active, active",mt({opacity:1})),Wn("desc-to-hint, asc-to-hint, hint",mt({opacity:.54})),Wn("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",mt({opacity:0})),Yn("* => asc, * => desc, * => active, * => hint, * => void",$n("0ms")),Yn("* <=> *",$n(u))]),arrowPosition:zi("arrowPosition",[Yn("* => desc-to-hint, * => desc-to-active",$n(u,Vf([mt({transform:"translateY(-25%)"}),mt({transform:"translateY(0)"})]))),Yn("* => hint-to-desc, * => active-to-desc",$n(u,Vf([mt({transform:"translateY(0)"}),mt({transform:"translateY(25%)"})]))),Yn("* => asc-to-hint, * => asc-to-active",$n(u,Vf([mt({transform:"translateY(25%)"}),mt({transform:"translateY(0)"})]))),Yn("* => hint-to-asc, * => active-to-asc",$n(u,Vf([mt({transform:"translateY(0)"}),mt({transform:"translateY(-25%)"})]))),Wn("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",mt({transform:"translateY(0)"})),Wn("hint-to-desc, active-to-desc, desc",mt({transform:"translateY(-25%)"})),Wn("hint-to-asc, active-to-asc, asc",mt({transform:"translateY(25%)"}))]),allowChildren:zi("allowChildren",[Yn("* <=> *",[y1("@*",_1(),{optional:!0})])])},m=function(){var i=L(function s(){R(this,s),this.changes=new Xe});return i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),b={provide:m,deps:[[new ai,new Kl,m]],useFactory:function y(i){return i||new m}},C=new Ae("MAT_SORT_DEFAULT_OPTIONS"),S=LB(Fl(function(){return L(function i(){R(this,i)})}())),k=function(){var i=function(s){se(n,s);var r=ue(n);function n(l){var c;return R(this,n),(c=r.call(this))._defaultOptions=l,c.sortables=new Map,c._stateChanges=new Xe,c.start="asc",c._direction="",c.sortChange=new ye,c}return L(n,[{key:"direction",get:function(){return this._direction},set:function(c){this._direction=c}},{key:"disableClear",get:function(){return this._disableClear},set:function(c){this._disableClear=gt(c)}},{key:"register",value:function(c){this.sortables.set(c.id,c)}},{key:"deregister",value:function(c){this.sortables.delete(c.id)}},{key:"sort",value:function(c){this.active!=c.id?(this.active=c.id,this.direction=c.start?c.start:this.start):this.direction=this.getNextSortDirection(c),this.sortChange.emit({active:this.active,direction:this.direction})}},{key:"getNextSortDirection",value:function(c){var p,_,w;if(!c)return"";var M=null!==(_=null!==(p=null==c?void 0:c.disableClear)&&void 0!==p?p:this.disableClear)&&void 0!==_?_:!!(null===(w=this._defaultOptions)||void 0===w?void 0:w.disableClear),A=function D(i,s){var r=["asc","desc"];return"desc"==i&&r.reverse(),s||r.push(""),r}(c.start||this.start,M),O=A.indexOf(this.direction)+1;return O>=A.length&&(O=0),A[O]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(S);return i.\u0275fac=function(r){return new(r||i)(z(C,8))},i.\u0275dir=be({type:i,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Re,xn]}),i}(),x=Fl(function(){return L(function i(){R(this,i)})}()),T=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w,M,A){var O;return R(this,n),(O=r.call(this))._intl=l,O._changeDetectorRef=c,O._sort=p,O._columnDef=_,O._focusMonitor=w,O._elementRef=M,O._ariaDescriber=A,O._showIndicatorHint=!1,O._viewState={},O._arrowDirection="",O._disableViewStateAnimation=!1,O.arrowPosition="after",O._sortActionDescription="Sort",O._handleStateChanges(),O}return L(n,[{key:"sortActionDescription",get:function(){return this._sortActionDescription},set:function(c){this._updateSortActionDescription(c)}},{key:"disableClear",get:function(){return this._disableClear},set:function(c){this._disableClear=gt(c)}},{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),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}},{key:"ngAfterViewInit",value:function(){var c=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(p){var _=!!p;_!==c._showIndicatorHint&&(c._setIndicatorHintVisible(_),c._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(c){this._isDisabled()&&c||(this._showIndicatorHint=c,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(c){this._viewState=c||{},this._disableViewStateAnimation&&(this._viewState={toState:c.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(c){!this._isDisabled()&&(32===c.keyCode||13===c.keyCode)&&(c.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 c=this._viewState.fromState;return(c?"".concat(c,"-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:"_updateSortActionDescription",value:function(c){var p,_;this._sortButton&&(null===(p=this._ariaDescriber)||void 0===p||p.removeDescription(this._sortButton,this._sortActionDescription),null===(_=this._ariaDescriber)||void 0===_||_.describe(this._sortButton,c)),this._sortActionDescription=c}},{key:"_handleStateChanges",value:function(){var c=this;this._rerenderSubscription=Rr(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){c._isSorted()&&(c._updateArrowDirection(),("hint"===c._viewState.toState||"active"===c._viewState.toState)&&(c._disableViewStateAnimation=!0),c._setAnimationTransitionState({fromState:c._arrowDirection,toState:"active"}),c._showIndicatorHint=!1),!c._isSorted()&&c._viewState&&"active"===c._viewState.toState&&(c._disableViewStateAnimation=!1,c._setAnimationTransitionState({fromState:"active",toState:c._arrowDirection})),c._changeDetectorRef.markForCheck()})}}]),n}(x);return i.\u0275fac=function(r){return new(r||i)(z(m),z(hn),z(k,8),z("MAT_SORT_HEADER_COLUMN_DEF",8),z(Rl),z(tt),z(m3,8))},i.\u0275cmp=ke({type:i,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(r,n){1&r&&ne("click",function(){return n._handleClick()})("keydown",function(c){return n._handleKeydown(c)})("mouseenter",function(){return n._setIndicatorHintVisible(!0)})("mouseleave",function(){return n._setIndicatorHintVisible(!1)}),2&r&&(lt("aria-sort",n._getAriaSortAttribute()),Ze("mat-sort-header-disabled",n._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[Re],attrs:t,ngContentSelectors:o,decls:4,vars:7,consts:[[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(r,n){1&r&&(vi(),I(0,"div",0)(1,"div",1),Gt(2),B(),te(3,e,6,6,"div",2),B()),2&r&&(Ze("mat-sort-header-sorted",n._isSorted())("mat-sort-header-position-before","before"==n.arrowPosition),lt("tabindex",n._isDisabled()?null:0)("role",n._isDisabled()?null:"button"),G(3),U("ngIf",n._renderArrow()))},directives:[en],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:[f.indicator,f.leftPointer,f.rightPointer,f.arrowOpacity,f.arrowPosition,f.allowChildren]},changeDetection:0}),i}(),E=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({providers:[b],imports:[[io,vn]]}),i}(),V=[[["caption"]],[["colgroup"],["col"]]],N=["caption","colgroup, col"];function Z(i){return function(s){se(n,s);var r=ue(n);function n(){var l;R(this,n);for(var c=arguments.length,p=new Array(c),_=0;_4&&void 0!==arguments[4])||arguments[4],p=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],_=arguments.length>6?arguments[6]:void 0;R(this,i),this._isNativeHtmlTable=s,this._stickCellCss=r,this.direction=n,this._coalescedStyleScheduler=l,this._isBrowser=c,this._needsPositionStickyOnElement=p,this._positionListener=_,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(r,"-border-elem-top"),bottom:"".concat(r,"-border-elem-bottom"),left:"".concat(r,"-border-elem-left"),right:"".concat(r,"-border-elem-right")}}return L(i,[{key:"clearStickyPositioning",value:function(r,n){var _,l=this,c=[],p=qt(r);try{for(p.s();!(_=p.n()).done;){var w=_.value;if(w.nodeType===w.ELEMENT_NODE){c.push(w);for(var M=0;M3&&void 0!==arguments[3])||arguments[3];if(r.length&&this._isBrowser&&(n.some(function($){return $})||l.some(function($){return $}))){var _=r[0],w=_.children.length,M=this._getCellWidths(_,p),A=this._getStickyStartColumnPositions(M,n),O=this._getStickyEndColumnPositions(M,l),F=n.lastIndexOf(!0),Y=l.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var ae,$="rtl"===c.direction,oe=$?"right":"left",le=$?"left":"right",fe=qt(r);try{for(fe.s();!(ae=fe.n()).done;)for(var we=ae.value,De=0;De1&&void 0!==arguments[1])||arguments[1];if(!n&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var l=[],c=r.children,p=0;p0;p--)n[p]&&(l[p]=c,c+=r[p]);return l}}]),i}(),Mq=new Ae("CDK_SPL"),bH=function(){var i=L(function s(r,n){R(this,s),this.viewContainer=r,this.elementRef=n});return i.\u0275fac=function(r){return new(r||i)(z(wr),z(tt))},i.\u0275dir=be({type:i,selectors:[["","rowOutlet",""]]}),i}(),CH=function(){var i=L(function s(r,n){R(this,s),this.viewContainer=r,this.elementRef=n});return i.\u0275fac=function(r){return new(r||i)(z(wr),z(tt))},i.\u0275dir=be({type:i,selectors:[["","headerRowOutlet",""]]}),i}(),wH=function(){var i=L(function s(r,n){R(this,s),this.viewContainer=r,this.elementRef=n});return i.\u0275fac=function(r){return new(r||i)(z(wr),z(tt))},i.\u0275dir=be({type:i,selectors:[["","footerRowOutlet",""]]}),i}(),SH=function(){var i=L(function s(r,n){R(this,s),this.viewContainer=r,this.elementRef=n});return i.\u0275fac=function(r){return new(r||i)(z(wr),z(tt))},i.\u0275dir=be({type:i,selectors:[["","noDataRowOutlet",""]]}),i}(),MH=function(){var i=function(){function s(r,n,l,c,p,_,w,M,A,O,F,Y){R(this,s),this._differs=r,this._changeDetectorRef=n,this._elementRef=l,this._dir=p,this._platform=w,this._viewRepeater=M,this._coalescedStyleScheduler=A,this._viewportRuler=O,this._stickyPositioningListener=F,this._ngZone=Y,this._onDestroy=new Xe,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.contentChanged=new ye,this.viewChange=new Na({start:0,end:Number.MAX_VALUE}),c||this._elementRef.nativeElement.setAttribute("role","table"),this._document=_,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return L(s,[{key:"trackBy",get:function(){return this._trackByFn},set:function(n){this._trackByFn=n}},{key:"dataSource",get:function(){return this._dataSource},set:function(n){this._dataSource!==n&&this._switchDataSource(n)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(n){this._multiTemplateDataRows=gt(n),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(n){this._fixedLayout=gt(n),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var n=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(l,c){return n.trackBy?n.trackBy(c.dataIndex,c.data):c}),this._viewportRuler.change().pipe(Wt(this._onDestroy)).subscribe(function(){n._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var l=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||l,this._forceRecalculateCellWidths=l,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,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(function(n){n.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),pP(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var n=this;this._renderRows=this._getAllRenderRows();var l=this._dataDiffer.diff(this._renderRows);if(!l)return this._updateNoDataRow(),void this.contentChanged.next();var c=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(l,c,function(p,_,w){return n._getEmbeddedViewArgs(p.item,w)},function(p){return p.item.data},function(p){1===p.operation&&p.context&&n._renderCellTemplateForItem(p.record.item.rowDef,p.context)}),this._updateRowIndexContext(),l.forEachIdentityChange(function(p){c.get(p.currentIndex).context.$implicit=p.item.data}),this._updateNoDataRow(),this._ngZone&&Pt.isInAngularZone()?this._ngZone.onStable.pipe(gn(1),Wt(this._onDestroy)).subscribe(function(){n.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}},{key:"addColumnDef",value:function(n){this._customColumnDefs.add(n)}},{key:"removeColumnDef",value:function(n){this._customColumnDefs.delete(n)}},{key:"addRowDef",value:function(n){this._customRowDefs.add(n)}},{key:"removeRowDef",value:function(n){this._customRowDefs.delete(n)}},{key:"addHeaderRowDef",value:function(n){this._customHeaderRowDefs.add(n),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(n){this._customHeaderRowDefs.delete(n),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(n){this._customFooterRowDefs.add(n),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(n){this._customFooterRowDefs.delete(n),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(n){this._customNoDataRow=n}},{key:"updateStickyHeaderRowStyles",value:function(){var n=this._getRenderedRows(this._headerRowOutlet),c=this._elementRef.nativeElement.querySelector("thead");c&&(c.style.display=n.length?"":"none");var p=this._headerRowDefs.map(function(_){return _.sticky});this._stickyStyler.clearStickyPositioning(n,["top"]),this._stickyStyler.stickRows(n,p,"top"),this._headerRowDefs.forEach(function(_){return _.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var n=this._getRenderedRows(this._footerRowOutlet),c=this._elementRef.nativeElement.querySelector("tfoot");c&&(c.style.display=n.length?"":"none");var p=this._footerRowDefs.map(function(_){return _.sticky});this._stickyStyler.clearStickyPositioning(n,["bottom"]),this._stickyStyler.stickRows(n,p,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,p),this._footerRowDefs.forEach(function(_){return _.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var n=this,l=this._getRenderedRows(this._headerRowOutlet),c=this._getRenderedRows(this._rowOutlet),p=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(yt(l),yt(c),yt(p)),["left","right"]),this._stickyColumnStylesNeedReset=!1),l.forEach(function(_,w){n._addStickyColumnStyles([_],n._headerRowDefs[w])}),this._rowDefs.forEach(function(_){for(var w=[],M=0;M0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(l,c){return n._renderRow(n._headerRowOutlet,l,c)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var n=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(l,c){return n._renderRow(n._footerRowOutlet,l,c)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(n,l){var c=this,p=Array.from(l.columns||[]).map(function(M){return c._columnDefsByName.get(M)}),_=p.map(function(M){return M.sticky}),w=p.map(function(M){return M.stickyEnd});this._stickyStyler.updateStickyColumns(n,_,w,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(n){for(var l=[],c=0;c3&&void 0!==arguments[3]?arguments[3]:{},_=n.viewContainer.createEmbeddedView(l.template,p,c);return this._renderCellTemplateForItem(l,p),_}},{key:"_renderCellTemplateForItem",value:function(n,l){var p,c=qt(this._getCellTemplates(n));try{for(c.s();!(p=c.n()).done;)Yt.mostRecentCellOutlet&&Yt.mostRecentCellOutlet._viewContainer.createEmbeddedView(p.value,l)}catch(w){c.e(w)}finally{c.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var n=this._rowOutlet.viewContainer,l=0,c=n.length;l0&&void 0!==arguments[0]?arguments[0]:[];return R(this,r),(n=s.call(this))._renderData=new Na([]),n._filter=new Na(""),n._internalPageChanges=new Xe,n._renderChangesSubscription=null,n.sortingDataAccessor=function(c,p){var _=c[p];if(DN(_)){var w=Number(_);return wF?oe=1:O0)){var _=Math.ceil(p.length/p.pageSize)-1||0,w=Math.min(p.pageIndex,_);w!==p.pageIndex&&(p.pageIndex=w,c._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var l;null===(l=this._renderChangesSubscription)||void 0===l||l.unsubscribe(),this._renderChangesSubscription=null}}]),r}(zY),TQ=function(i){se(r,i);var s=ue(r);function r(){return R(this,r),s.apply(this,arguments)}return L(r)}(wee);function AQ(i,s){return s?function(r){return Dh(s.pipe(gn(1),function See(){return gr(function(i,s){i.subscribe(ve(s,Gr))})}()),r.pipe(AQ(i)))}:Ri(function(r,n){return i(r,n).pipe(gn(1),function Mee(i){return on(function(){return i})}(r))})}function PH(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:El,r=qv(i,s);return AQ(function(){return r})}var EQ=Vh({passive:!0}),kee=function(){var i=function(){function s(r,n){R(this,s),this._platform=r,this._ngZone=n,this._monitoredElements=new Map}return L(s,[{key:"monitor",value:function(n){var l=this;if(!this._platform.isBrowser)return Sr;var c=vu(n),p=this._monitoredElements.get(c);if(p)return p.subject;var _=new Xe,w="cdk-text-field-autofilled",M=function(O){"cdk-text-field-autofill-start"!==O.animationName||c.classList.contains(w)?"cdk-text-field-autofill-end"===O.animationName&&c.classList.contains(w)&&(c.classList.remove(w),l._ngZone.run(function(){return _.next({target:O.target,isAutofilled:!1})})):(c.classList.add(w),l._ngZone.run(function(){return _.next({target:O.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){c.addEventListener("animationstart",M,EQ),c.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(c,{subject:_,unlisten:function(){c.removeEventListener("animationstart",M,EQ)}}),_}},{key:"stopMonitoring",value:function(n){var l=vu(n),c=this._monitoredElements.get(l);c&&(c.unlisten(),c.subject.complete(),l.classList.remove("cdk-text-field-autofill-monitored"),l.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(l))}},{key:"ngOnDestroy",value:function(){var n=this;this._monitoredElements.forEach(function(l,c){return n.stopMonitoring(c)})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(pn),ge(Pt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),PQ=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({}),i}(),OQ=new Ae("MAT_INPUT_VALUE_ACCESSOR"),Dee=["button","checkbox","file","hidden","image","radio","range","reset","submit"],xee=0,Tee=X1(function(){return L(function i(s,r,n,l){R(this,i),this._defaultErrorStateMatcher=s,this._parentForm=r,this._parentFormGroup=n,this.ngControl=l})}()),ua=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w,M,A,O,F,Y){var $;R(this,n),($=r.call(this,M,_,w,p))._elementRef=l,$._platform=c,$._autofillMonitor=O,$._formField=Y,$._uid="mat-input-".concat(xee++),$.focused=!1,$.stateChanges=new Xe,$.controlType="mat-input",$.autofilled=!1,$._disabled=!1,$._type="text",$._readonly=!1,$._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(fe){return YT().has(fe)}),$._iOSKeyupListener=function(fe){var ae=fe.target;!ae.value&&0===ae.selectionStart&&0===ae.selectionEnd&&(ae.setSelectionRange(1,1),ae.setSelectionRange(0,0))};var oe=$._elementRef.nativeElement,le=oe.nodeName.toLowerCase();return $._inputValueAccessor=A||oe,$._previousNativeValue=$.value,$.id=$.id,c.IOS&&F.runOutsideAngular(function(){l.nativeElement.addEventListener("keyup",$._iOSKeyupListener)}),$._isServer=!$._platform.isBrowser,$._isNativeSelect="select"===le,$._isTextarea="textarea"===le,$._isInFormField=!!Y,$._isNativeSelect&&($.controlType=oe.multiple?"mat-native-select-multiple":"mat-native-select"),$}return L(n,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(c){this._disabled=gt(c),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(c){this._id=c||this._uid}},{key:"required",get:function(){var c,p,_,w;return null!==(w=null!==(c=this._required)&&void 0!==c?c:null===(_=null===(p=this.ngControl)||void 0===p?void 0:p.control)||void 0===_?void 0:_.hasValidator(rS.required))&&void 0!==w&&w},set:function(c){this._required=gt(c)}},{key:"type",get:function(){return this._type},set:function(c){this._type=c||"text",this._validateType(),!this._isTextarea&&YT().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(c){c!==this.value&&(this._inputValueAccessor.value=c,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(c){this._readonly=gt(c)}},{key:"ngAfterViewInit",value:function(){var c=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(p){c.autofilled=p.isAutofilled,c.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),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(c){this._elementRef.nativeElement.focus(c)}},{key:"_focusChanged",value:function(c){c!==this.focused&&(this.focused=c,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var c,p,_=(null===(p=null===(c=this._formField)||void 0===c?void 0:c._hideControlPlaceholder)||void 0===p?void 0:p.call(c))?null:this.placeholder;if(_!==this._previousPlaceholder){var w=this._elementRef.nativeElement;this._previousPlaceholder=_,_?w.setAttribute("placeholder",_):w.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var c=this._elementRef.nativeElement.value;this._previousNativeValue!==c&&(this._previousNativeValue=c,this.stateChanges.next())}},{key:"_validateType",value:function(){Dee.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var c=this._elementRef.nativeElement.validity;return c&&c.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var c=this._elementRef.nativeElement,p=c.options[0];return this.focused||c.multiple||!this.empty||!!(c.selectedIndex>-1&&p&&p.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(c){c.length?this._elementRef.nativeElement.setAttribute("aria-describedby",c.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"_isInlineSelect",value:function(){var c=this._elementRef.nativeElement;return this._isNativeSelect&&(c.multiple||c.size>1)}}]),n}(Tee);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(pn),z(Bl,10),z(Sc,8),z($f,8),z(qy),z(OQ,10),z(kee),z(Pt),z(pb,8))},i.\u0275dir=be({type:i,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(r,n){1&r&&ne("focus",function(){return n._focusChanged(!0)})("blur",function(){return n._focusChanged(!1)})("input",function(){return n._onInput()}),2&r&&(bl("disabled",n.disabled)("required",n.required),lt("id",n.id)("data-placeholder",n.placeholder)("name",n.name||null)("readonly",n.readonly&&!n._isNativeSelect||null)("aria-invalid",n.empty&&n.required?null:n.errorState)("aria-required",n.required),Ze("mat-input-server",n._isServer)("mat-native-select-inline",n._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[ft([{provide:hb,useExisting:i}]),Re,xn]}),i}(),Aee=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({providers:[qy],imports:[[PQ,PS,vn],PQ,PS]}),i}(),Eee=["searchSelectInput"],Pee=["innerSelectSearch"];function Oee(i,s){if(1&i){var r=xe();I(0,"button",6),ne("click",function(){return he(r),Q()._reset(!0)}),I(1,"i",7),K(2,"close"),B()()}}var Iee=function(s){return{"mat-select-search-inner-multiple":s}},kc=function(){var i=function(){function s(r,n){R(this,s),this.matSelect=r,this.changeDetectorRef=n,this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.clearSearchInput=!0,this.disableInitialFocus=!1,this.changed=new ye,this.overlayClassSet=!1,this.change=new ye,this._onDestroy=new Xe}return L(s,[{key:"value",get:function(){return this._value}},{key:"ngOnInit",value:function(){var n=this,l="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(l):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,l]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[l]=!0):this.matSelect.panelClass=l,this.matSelect.openedChange.pipe(PH(1),Wt(this._onDestroy)).subscribe(function(c){c?(n.getWidth(),n.disableInitialFocus||n._focus()):n.clearSearchInput&&n._reset()}),this.matSelect.openedChange.pipe(gn(1)).pipe(Wt(this._onDestroy)).subscribe(function(){n._options=n.matSelect.options,n._options.changes.pipe(Wt(n._onDestroy)).subscribe(function(){var c=n.matSelect._keyManager;c&&n.matSelect.panelOpen&&setTimeout(function(){c.setFirstItemActive(),n.getWidth()},1)})}),this.change.pipe(Wt(this._onDestroy)).subscribe(function(){n.changeDetectorRef.detectChanges()}),this.initMultipleHandling()}},{key:"ngOnDestroy",value:function(){this._onDestroy.next(),this._onDestroy.complete()}},{key:"ngAfterViewInit",value:function(){var n=this;setTimeout(function(){n.setOverlayClass()}),this.matSelect.openedChange.pipe(gn(1),Wt(this._onDestroy)).subscribe(function(){n.matSelect.options.changes.pipe(Wt(n._onDestroy)).subscribe(function(){n.changeDetectorRef.markForCheck()})})}},{key:"_handleKeydown",value:function(n){(n.key&&1===n.key.length||n.keyCode>=65&&n.keyCode<=90||n.keyCode>=48&&n.keyCode<=57||32===n.keyCode)&&n.stopPropagation()}},{key:"writeValue",value:function(n){n!==this._value&&(this._value=n,this.change.emit(n))}},{key:"onInputChange",value:function(n){n.value!==this._value&&(this.initMultiSelectedValues(),this._value=n.value,this.changed.emit(n.value),this.change.emit(n.value))}},{key:"onBlur",value:function(n){this.writeValue(n.value)}},{key:"_focus",value:function(){if(this.searchSelectInput&&this.matSelect.panel){var n=this.matSelect.panel.nativeElement,l=n.scrollTop;this.searchSelectInput.nativeElement.focus(),n.scrollTop=l}}},{key:"_reset",value:function(n){!this.searchSelectInput||(this.searchSelectInput.nativeElement.value="",this.onInputChange(""),n&&this._focus())}},{key:"initMultiSelectedValues",value:function(){this.matSelect.multiple&&!this._value&&(this.previousSelectedValues=this.matSelect.options.filter(function(n){return n.selected}).map(function(n){return n.value}))}},{key:"setOverlayClass",value:function(){var n=this;this.overlayClassSet||(this.matSelect.openedChange.pipe(Wt(this._onDestroy)).subscribe(function(c){if(c){for(var _,p=n.searchSelectInput.nativeElement;p=p.parentElement;)if(p.classList.contains("cdk-overlay-pane")){_=p;break}_&&_.classList.add("cdk-overlay-pane-select-search")}}),this.overlayClassSet=!0)}},{key:"initMultipleHandling",value:function(){var n=this;this.matSelect.valueChange.pipe(Wt(this._onDestroy)).subscribe(function(l){if(n.matSelect.multiple){var c=!1;if(n._value&&n._value.length&&n.previousSelectedValues&&Array.isArray(n.previousSelectedValues)){(!l||!Array.isArray(l))&&(l=[]);var p=n.matSelect.options.map(function(_){return _.value});n.previousSelectedValues.forEach(function(_){-1===l.indexOf(_)&&-1===p.indexOf(_)&&(l.push(_),c=!0)})}c&&n.matSelect._onChange(l),n.previousSelectedValues=l}})}},{key:"getWidth",value:function(){if(this.innerSelectSearch&&this.innerSelectSearch.nativeElement){for(var l,n=this.innerSelectSearch.nativeElement;n=n.parentElement;)if(n.classList.contains("mat-select-panel")){l=n;break}l&&(this.innerSelectSearch.nativeElement.style.width=l.clientWidth+"px")}}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ua),z(hn))},i.\u0275cmp=ke({type:i,selectors:[["uds-mat-select-search"]],viewQuery:function(r,n){var l;1&r&&(Rt(Eee,7,tt),Rt(Pee,7,tt)),2&r&&(Ve(l=Ge())&&(n.searchSelectInput=l.first),Ve(l=Ge())&&(n.innerSelectSearch=l.first))},inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",disableInitialFocus:"disableInitialFocus"},outputs:{changed:"changed"},features:[ft([{provide:Ga,useExisting:En(function(){return i}),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(r,n){1&r&&(Se(0,"input",0),I(1,"div",1,2)(3,"input",3,4),ne("keydown",function(c){return n._handleKeydown(c)})("input",function(c){return n.onInputChange(c.target)})("blur",function(c){return n.onBlur(c.target)}),B(),te(5,Oee,3,0,"button",5),B()),2&r&&(G(1),U("ngClass",xs(3,Iee,n.matSelect.multiple)),G(2),U("placeholder",n.placeholderLabel),G(2),U("ngIf",n.value))},directives:[ua,As,en,qn],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}),i}();function Ree(i,s){1&i&&(I(0,"uds-translate"),K(1,"New user permission for"),B())}function Lee(i,s){1&i&&(I(0,"uds-translate"),K(1,"New group permission for"),B())}function Fee(i,s){if(1&i&&(I(0,"mat-option",11),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Ln(r.text)}}function Nee(i,s){if(1&i){var r=xe();I(0,"uds-mat-select-search",12),ne("changed",function(l){return he(r),Q().filterUser=l}),B()}}function Bee(i,s){if(1&i&&(I(0,"mat-option",11),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Ln(r.text)}}function Vee(i,s){if(1&i&&(I(0,"mat-option",11),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Ln(r.text)}}var Hee=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.data=c,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 ye(!0)}return L(s,[{key:"ngOnInit",value:function(){var n=this;this.rest.authenticators.summary().subscribe(function(l){l.forEach(function(c){n.authenticators.push({id:c.id,text:c.name})})})}},{key:"changeAuth",value:function(n){var l=this;this.entities.length=0,this.entity="",this.rest.authenticators.detail(n,this.data.type+"s").summary().subscribe(function(c){c.forEach(function(p){l.entities.push({id:p.id,text:p.name})})})}},{key:"save",value:function(){this.onSave.emit({authenticator:this.authenticator,entity:this.entity,permissision:this.permission}),this.dialogRef.close()}},{key:"filteredEntities",value:function(){var n=this,l=new Array;return this.entities.forEach(function(c){(!n.filterUser||c.text.toLocaleLowerCase().includes(n.filterUser.toLocaleLowerCase()))&&l.push(c)}),l}},{key:"getFieldLabel",value:function(n){return"user"===n?django.gettext("User"):"group"===n?django.gettext("Group"):"auth"===n?django.gettext("Authenticator"):django.gettext("Permission")}}],[{key:"launch",value:function(n,l,c){var p=window.innerWidth<800?"80%":"50%";return n.gui.dialog.open(s,{width:p,data:{type:l,item:c},disableClose:!0}).componentInstance.onSave}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){if(1&r&&(I(0,"h4",0),te(1,Ree,2,0,"uds-translate",1),Se(2,"b",2),te(3,Lee,2,0,"ng-template",null,3,Ko),B(),I(5,"mat-dialog-content")(6,"div",4)(7,"mat-form-field")(8,"mat-select",5),ne("valueChange",function(p){return n.changeAuth(p)})("ngModelChange",function(p){return n.authenticator=p}),te(9,Fee,2,2,"mat-option",6),B()(),I(10,"mat-form-field")(11,"mat-select",7),ne("ngModelChange",function(p){return n.entity=p}),te(12,Nee,1,0,"uds-mat-select-search",8),te(13,Bee,2,2,"mat-option",6),B()(),I(14,"mat-form-field")(15,"mat-select",7),ne("ngModelChange",function(p){return n.permission=p}),te(16,Vee,2,2,"mat-option",6),B()()()(),I(17,"mat-dialog-actions")(18,"button",9)(19,"uds-translate"),K(20,"Cancel"),B()(),I(21,"button",10),ne("click",function(){return n.save()}),I(22,"uds-translate"),K(23,"Ok"),B()()()),2&r){var l=Dn(4);G(1),U("ngIf","user"===n.data.type)("ngIfElse",l),G(1),U("innerHTML",n.data.item.name,Xi),G(6),U("placeholder",n.getFieldLabel("auth"))("ngModel",n.authenticator),G(1),U("ngForOf",n.authenticators),G(2),U("placeholder",n.getFieldLabel(n.data.type))("ngModel",n.entity),G(1),U("ngIf",n.entities.length>10),G(1),U("ngForOf",n.filteredEntities()),G(2),U("placeholder",n.getFieldLabel("perm"))("ngModel",n.permission),G(1),U("ngForOf",n.permissions)}},directives:[si,en,Gn,jr,or,Ua,pr,ar,ir,Pi,kc,li,qn,_i],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}"]}),i}();function zee(i,s){if(1&i){var r=xe();I(0,"div",11)(1,"div",12),K(2),B(),I(3,"div",13),K(4),I(5,"a",14),ne("click",function(){var p=he(r).$implicit;return Q(2).revokePermission(p)}),I(6,"i",15),K(7,"close"),B()()()()}if(2&i){var n=s.$implicit;G(2),th(" ",n.entity_name,"@",n.auth_name," "),G(2),Le(" ",n.perm_name," \xa0")}}function Gee(i,s){if(1&i){var r=xe();I(0,"div",7)(1,"div",8)(2,"div",9),ne("click",function(c){var _=he(r).$implicit;return Q().newPermission(_),c.preventDefault()}),I(3,"uds-translate"),K(4,"New permission..."),B()(),te(5,zee,8,3,"div",10),B()()}if(2&i){var n=s.$implicit;G(5),U("ngForOf",n)}}var Uee=function(s,r){return[s,r]},jee=function(){var i=function(){function s(r,n,l){R(this,s),this.api=r,this.dialogRef=n,this.data=l,this.userPermissions=[],this.groupPermissions=[]}return L(s,[{key:"ngOnInit",value:function(){this.reload()}},{key:"reload",value:function(){var n=this;this.data.rest.getPermissions(this.data.item.id).subscribe(function(l){n.updatePermissions(l)})}},{key:"updatePermissions",value:function(n){var l=this;this.userPermissions.length=0,this.groupPermissions.length=0,n.forEach(function(c){"user"===c.type?l.userPermissions.push(c):l.groupPermissions.push(c)})}},{key:"revokePermission",value:function(n){var l=this;this.api.gui.yesno(django.gettext("Remove"),django.gettext("Confirm revokation of permission")+" "+n.entity_name+"@"+n.auth_name+" "+n.perm_name+"").subscribe(function(c){c&&l.data.rest.revokePermission([n.id]).subscribe(function(p){l.reload()})})}},{key:"newPermission",value:function(n){var l=this,c=n===this.userPermissions?"user":"group";Hee.launch(this.api,c,this.data.item).subscribe(function(p){l.data.rest.addPermission(l.data.item.id,c+"s",p.entity,p.permissision).subscribe(function(_){l.reload()})})}}],[{key:"launch",value:function(n,l,c){var p=window.innerWidth<800?"90%":"60%";n.gui.dialog.open(s,{width:p,data:{rest:l,item:c},disableClose:!1})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"h4",0)(1,"uds-translate"),K(2,"Permissions for"),B(),K(3,"\xa0"),Se(4,"b",1),B(),I(5,"mat-dialog-content")(6,"div",2)(7,"uds-translate",3),K(8,"Users"),B(),I(9,"uds-translate",3),K(10,"Groups"),B()(),I(11,"div",4),te(12,Gee,6,1,"div",5),B()(),I(13,"mat-dialog-actions")(14,"button",6)(15,"uds-translate"),K(16,"Ok"),B()()()),2&r&&(G(4),U("innerHTML",n.data.item.name,Xi),G(8),U("ngForOf",DC(2,Uee,n.userPermissions,n.groupPermissions)))},directives:[si,Gn,jr,ir,li,qn,_i],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:#00000024 0 1px 4px;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:#00f;justify-content:center}.new[_ngcontent-%COMP%]:hover{color:#fff;background-color:#00f;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}"]}),i}(),Eq=Ht(2900),LQ=function(s){return void 0!==s.changingThisBreaksApplicationSecurity&&(s=s.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),'"'+(s=""+s).replace('"','""')+'"'},FQ=function(s){var r="";s.columns.forEach(function(l){r+=LQ(l.title)+","}),r=r.slice(0,-1)+"\r\n",s.dataSource.data.forEach(function(l){s.columns.forEach(function(c){var p=l[c.name];switch(c.type){case ui.DATE:p=zs("SHORT_DATE_FORMAT",p);break;case ui.DATETIME:p=zs("SHORT_DATETIME_FORMAT",p);break;case ui.DATETIMESEC:p=zs("SHORT_DATE_FORMAT",p," H:i:s");break;case ui.TIME:p=zs("TIME_FORMAT",p)}r+=LQ(p)+","}),r=r.slice(0,-1)+"\r\n"});var n=new Blob([r],{type:"text/csv"});setTimeout(function(){(0,Eq.saveAs)(n,s.title+".csv")},100)},Yee=function(){function i(s,r){R(this,i),this._document=r;var n=this._textarea=this._document.createElement("textarea"),l=n.style;l.position="fixed",l.top=l.opacity="0",l.left="-999em",n.setAttribute("aria-hidden","true"),n.value=s,this._document.body.appendChild(n)}return L(i,[{key:"copy",value:function(){var r=this._textarea,n=!1;try{if(r){var l=this._document.activeElement;r.select(),r.setSelectionRange(0,r.value.length),n=this._document.execCommand("copy"),l&&l.focus()}}catch(c){}return n}},{key:"destroy",value:function(){var r=this._textarea;r&&(r.remove(),this._textarea=void 0)}}]),i}(),qee=function(){var i=function(){function s(r){R(this,s),this._document=r}return L(s,[{key:"copy",value:function(n){var l=this.beginCopy(n),c=l.copy();return l.destroy(),c}},{key:"beginCopy",value:function(n){return new Yee(n,this._document)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(Jt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),Zee=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({}),i}(),Xee=["mat-menu-item",""];function Kee(i,s){1&i&&(Bi(),I(0,"svg",2),Se(1,"polygon",3),B())}var NQ=["*"];function $ee(i,s){if(1&i){var r=xe();I(0,"div",0),ne("keydown",function(c){return he(r),Q()._handleKeydown(c)})("click",function(){return he(r),Q().closed.emit("click")})("@transformMenu.start",function(c){return he(r),Q()._onAnimationStart(c)})("@transformMenu.done",function(c){return he(r),Q()._onAnimationDone(c)}),I(1,"div",1),Gt(2),B()()}if(2&i){var n=Q();U("id",n.panelId)("ngClass",n._classList)("@transformMenu",n._panelAnimationState),lt("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby||null)("aria-describedby",n.ariaDescribedby||null)}}var OH={transformMenu:zi("transformMenu",[Wn("void",mt({opacity:0,transform:"scale(0.8)"})),Yn("void => enter",$n("120ms cubic-bezier(0, 0, 0.2, 1)",mt({opacity:1,transform:"scale(1)"}))),Yn("* => void",$n("100ms 25ms linear",mt({opacity:0})))]),fadeInItems:zi("fadeInItems",[Wn("showing",mt({opacity:1})),Yn("void => *",[mt({opacity:0}),$n("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},BQ=new Ae("MatMenuContent"),Qee=function(){var i=function(){function s(r,n,l,c,p,_,w){R(this,s),this._template=r,this._componentFactoryResolver=n,this._appRef=l,this._injector=c,this._viewContainerRef=p,this._document=_,this._changeDetectorRef=w,this._attached=new Xe}return L(s,[{key:"attach",value:function(){var l,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._portal||(this._portal=new es(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new QT(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));var c=this._template.elementRef.nativeElement;c.parentNode.insertBefore(this._outlet.outletElement,c),null===(l=this._changeDetectorRef)||void 0===l||l.markForCheck(),this._portal.attach(this._outlet,n),this._attached.next()}},{key:"detach",value:function(){this._portal.isAttached&&this._portal.detach()}},{key:"ngOnDestroy",value:function(){this._outlet&&this._outlet.dispose()}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(hr),z(Wu),z(F_),z(kr),z(wr),z(Jt),z(hn))},i.\u0275dir=be({type:i}),i}(),Jee=function(){var i=function(s){se(n,s);var r=ue(n);function n(){return R(this,n),r.apply(this,arguments)}return L(n)}(Qee);return i.\u0275fac=function(){var s;return function(n){return(s||(s=cn(i)))(n||i)}}(),i.\u0275dir=be({type:i,selectors:[["ng-template","matMenuContent",""]],features:[ft([{provide:BQ,useExisting:i}]),Re]}),i}(),Pq=new Ae("MAT_MENU_PANEL"),ete=bc(Fl(function(){return L(function i(){R(this,i)})}())),EP=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w){var M,A;return R(this,n),(M=r.call(this))._elementRef=l,M._document=c,M._focusMonitor=p,M._parentMenu=_,M._changeDetectorRef=w,M.role="menuitem",M._hovered=new Xe,M._focused=new Xe,M._highlighted=!1,M._triggersSubmenu=!1,null===(A=null==_?void 0:_.addItem)||void 0===A||A.call(_,an(M)),M}return L(n,[{key:"focus",value:function(c,p){this._focusMonitor&&c?this._focusMonitor.focusVia(this._getHostElement(),c,p):this._getHostElement().focus(p),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(c){this.disabled&&(c.preventDefault(),c.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var c,p=this._elementRef.nativeElement.cloneNode(!0),_=p.querySelectorAll("mat-icon, .material-icons"),w=0;w<_.length;w++)_[w].remove();return(null===(c=p.textContent)||void 0===c?void 0:c.trim())||""}},{key:"_setHighlighted",value:function(c){var p;this._highlighted=c,null===(p=this._changeDetectorRef)||void 0===p||p.markForCheck()}},{key:"_hasFocus",value:function(){return this._document&&this._document.activeElement===this._getHostElement()}}]),n}(ete);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(Jt),z(Rl),z(Pq,8),z(hn))},i.\u0275cmp=ke({type:i,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(r,n){1&r&&ne("click",function(c){return n._checkDisabled(c)})("mouseenter",function(){return n._handleMouseEnter()}),2&r&&(lt("role",n.role)("tabindex",n._getTabIndex())("aria-disabled",n.disabled.toString())("disabled",n.disabled||null),Ze("mat-menu-item",!0)("mat-menu-item-highlighted",n._highlighted)("mat-menu-item-submenu-trigger",n._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[Re],attrs:Xee,ngContentSelectors:NQ,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(r,n){1&r&&(vi(),Gt(0),Se(1,"div",0),te(2,Kee,2,0,"svg",1)),2&r&&(G(1),U("matRippleDisabled",n.disableRipple||n.disabled)("matRippleTrigger",n._getHostElement()),G(1),U("ngIf",n._triggersSubmenu))},directives:[Nl,en],encapsulation:2,changeDetection:0}),i}(),VQ=new Ae("mat-menu-default-options",{providedIn:"root",factory:function tte(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}}),nte=0,PP=function(){var i=function(){function s(r,n,l,c){R(this,s),this._elementRef=r,this._ngZone=n,this._defaultOptions=l,this._changeDetectorRef=c,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new no,this._tabSubscription=Te.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Xe,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new ye,this.close=this.closed,this.panelId="mat-menu-panel-".concat(nte++)}return L(s,[{key:"xPosition",get:function(){return this._xPosition},set:function(n){this._xPosition=n,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(n){this._yPosition=n,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(n){this._overlapTrigger=gt(n)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(n){this._hasBackdrop=gt(n)}},{key:"panelClass",set:function(n){var l=this,c=this._previousPanelClass;c&&c.length&&c.split(" ").forEach(function(p){l._classList[p]=!1}),this._previousPanelClass=n,n&&n.length&&(n.split(" ").forEach(function(p){l._classList[p]=!0}),this._elementRef.nativeElement.className="")}},{key:"classList",get:function(){return this.panelClass},set:function(n){this.panelClass=n}},{key:"ngOnInit",value:function(){this.setPositionClasses()}},{key:"ngAfterContentInit",value:function(){var n=this;this._updateDirectDescendants(),this._keyManager=new bA(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return n.closed.emit("tab")}),this._directDescendantItems.changes.pipe(na(this._directDescendantItems),_a(function(l){return Rr.apply(void 0,yt(l.map(function(c){return c._focused})))})).subscribe(function(l){return n._keyManager.updateActiveItem(l)}),this._directDescendantItems.changes.subscribe(function(l){var c,p=n._keyManager;if("enter"===n._panelAnimationState&&(null===(c=p.activeItem)||void 0===c?void 0:c._hasFocus())){var _=l.toArray(),w=Math.max(0,Math.min(_.length-1,p.activeItemIndex||0));_[w]&&!_[w].disabled?p.setActiveItem(w):p.setNextItemActive()}})}},{key:"ngOnDestroy",value:function(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}},{key:"_hovered",value:function(){return this._directDescendantItems.changes.pipe(na(this._directDescendantItems),_a(function(l){return Rr.apply(void 0,yt(l.map(function(c){return c._hovered})))}))}},{key:"addItem",value:function(n){}},{key:"removeItem",value:function(n){}},{key:"_handleKeydown",value:function(n){var l=n.keyCode,c=this._keyManager;switch(l){case 27:ia(n)||(n.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===l||40===l)&&c.setFocusOrigin("keyboard"),void c.onKeydown(n)}n.stopPropagation()}},{key:"focusFirstItem",value:function(){var n=this,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program";this._ngZone.onStable.pipe(gn(1)).subscribe(function(){var c=null;if(n._directDescendantItems.length&&(c=n._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!c||!c.contains(document.activeElement)){var p=n._keyManager;p.setFocusOrigin(l).setFirstItemActive(),!p.activeItem&&c&&c.focus()}})}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(n){var l=this,c=Math.min(this._baseElevation+n,24),p="".concat(this._elevationPrefix).concat(c),_=Object.keys(this._classList).find(function(w){return w.startsWith(l._elevationPrefix)});(!_||_===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[p]=!0,this._previousElevation=p)}},{key:"setPositionClasses",value:function(){var c,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,p=this._classList;p["mat-menu-before"]="before"===n,p["mat-menu-after"]="after"===n,p["mat-menu-above"]="above"===l,p["mat-menu-below"]="below"===l,null===(c=this._changeDetectorRef)||void 0===c||c.markForCheck()}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(n){this._animationDone.next(n),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(n){this._isAnimating=!0,"enter"===n.toState&&0===this._keyManager.activeItemIndex&&(n.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var n=this;this._allItems.changes.pipe(na(this._allItems)).subscribe(function(l){n._directDescendantItems.reset(l.filter(function(c){return c._parentMenu===n})),n._directDescendantItems.notifyOnChanges()})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(tt),z(Pt),z(VQ),z(hn))},i.\u0275dir=be({type:i,contentQueries:function(r,n,l){var c;1&r&&(Mn(l,BQ,5),Mn(l,EP,5),Mn(l,EP,4)),2&r&&(Ve(c=Ge())&&(n.lazyContent=c.first),Ve(c=Ge())&&(n._allItems=c),Ve(c=Ge())&&(n.items=c))},viewQuery:function(r,n){var l;1&r&&Rt(hr,5),2&r&&Ve(l=Ge())&&(n.templateRef=l.first)},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),i}(),HQ=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_){var w;return R(this,n),(w=r.call(this,l,c,p,_))._elevationPrefix="mat-elevation-z",w._baseElevation=4,w}return L(n)}(PP);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(Pt),z(VQ),z(hn))},i.\u0275cmp=ke({type:i,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(r,n){2&r&<("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[ft([{provide:Pq,useExisting:i}]),Re],ngContentSelectors:NQ,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(r,n){1&r&&(vi(),te(0,$ee,3,6,"ng-template"))},directives:[As],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;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]::before{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.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}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}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:[OH.transformMenu,OH.fadeInItems]},changeDetection:0}),i}(),zQ=new Ae("mat-menu-scroll-strategy"),ite={provide:zQ,deps:[aa],useFactory:function rte(i){return function(){return i.scrollStrategies.reposition()}}},UQ=Vh({passive:!0}),ate=function(){var i=function(){function s(r,n,l,c,p,_,w,M,A){var O=this;R(this,s),this._overlay=r,this._element=n,this._viewContainerRef=l,this._menuItemInstance=_,this._dir=w,this._focusMonitor=M,this._ngZone=A,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Te.EMPTY,this._hoverSubscription=Te.EMPTY,this._menuCloseSubscription=Te.EMPTY,this._handleTouchStart=function(F){MA(F)||(O._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new ye,this.onMenuOpen=this.menuOpened,this.menuClosed=new ye,this.onMenuClose=this.menuClosed,this._scrollStrategy=c,this._parentMaterialMenu=p instanceof PP?p:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,UQ),_&&(_._triggersSubmenu=this.triggersSubmenu())}return L(s,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(n){this.menu=n}},{key:"menu",get:function(){return this._menu},set:function(n){var l=this;n!==this._menu&&(this._menu=n,this._menuCloseSubscription.unsubscribe(),n&&(this._menuCloseSubscription=n.close.subscribe(function(c){l._destroyMenu(c),("click"===c||"tab"===c)&&l._parentMaterialMenu&&l._parentMaterialMenu.closed.emit(c)})))}},{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,UQ),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 n=this;if(!this._menuOpen){this._checkMenu();var l=this._createOverlay(),c=l.getConfig(),p=c.positionStrategy;this._setPosition(p),c.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,l.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return n.closeMenu()}),this._initMenu(),this.menu instanceof PP&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe(Wt(this.menu.close)).subscribe(function(){p.withLockedPosition(!1).reapplyLastPosition(),p.withLockedPosition(!0)}))}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(n,l){this._focusMonitor&&n?this._focusMonitor.focusVia(this._element,n,l):this._element.nativeElement.focus(l)}},{key:"updatePosition",value:function(){var n;null===(n=this._overlayRef)||void 0===n||n.updatePosition()}},{key:"_destroyMenu",value:function(n){var l=this;if(this._overlayRef&&this.menuOpen){var c=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===n||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,c instanceof PP?(c._resetAnimation(),c.lazyContent?c._animationDone.pipe(Ur(function(p){return"void"===p.toState}),gn(1),Wt(c.lazyContent._attached)).subscribe({next:function(){return c.lazyContent.detach()},complete:function(){return l._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),c.lazyContent&&c.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 n=0,l=this.menu.parentMenu;l;)n++,l=l.parentMenu;this.menu.setElevation(n)}}},{key:"_setIsMenuOpen",value:function(n){this._menuOpen=n,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(n)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var n=this._getOverlayConfig();this._subscribeToPositions(n.positionStrategy),this._overlayRef=this._overlay.create(n),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new Ff({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(n){var l=this;this.menu.setPositionClasses&&n.positionChanges.subscribe(function(c){var p="start"===c.connectionPair.overlayX?"after":"before",_="top"===c.connectionPair.overlayY?"below":"above";l._ngZone?l._ngZone.run(function(){return l.menu.setPositionClasses(p,_)}):l.menu.setPositionClasses(p,_)})}},{key:"_setPosition",value:function(n){var c=Pr("before"===this.menu.xPosition?["end","start"]:["start","end"],2),p=c[0],_=c[1],M=Pr("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),A=M[0],O=M[1],F=A,Y=O,$=p,oe=_,le=0;this.triggersSubmenu()?(oe=p="before"===this.menu.xPosition?"start":"end",_=$="end"===p?"start":"end",le="bottom"===A?8:-8):this.menu.overlapTrigger||(F="top"===A?"bottom":"top",Y="top"===O?"bottom":"top"),n.withPositions([{originX:p,originY:F,overlayX:$,overlayY:A,offsetY:le},{originX:_,originY:F,overlayX:oe,overlayY:A,offsetY:le},{originX:p,originY:Y,overlayX:$,overlayY:O,offsetY:-le},{originX:_,originY:Y,overlayX:oe,overlayY:O,offsetY:-le}])}},{key:"_menuClosingActions",value:function(){var n=this,l=this._overlayRef.backdropClick(),c=this._overlayRef.detachments();return Rr(l,this._parentMaterialMenu?this._parentMaterialMenu.closed:dt(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Ur(function(w){return w!==n._menuItemInstance}),Ur(function(){return n._menuOpen})):dt(),c)}},{key:"_handleMousedown",value:function(n){SA(n)||(this._openedBy=0===n.button?"mouse":void 0,this.triggersSubmenu()&&n.preventDefault())}},{key:"_handleKeydown",value:function(n){var l=n.keyCode;(13===l||32===l)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===l&&"ltr"===this.dir||37===l&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(n){this.triggersSubmenu()?(n.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var n=this;!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Ur(function(l){return l===n._menuItemInstance&&!l.disabled}),PH(0,t1)).subscribe(function(){n._openedBy="mouse",n.menu instanceof PP&&n.menu._isAnimating?n.menu._animationDone.pipe(gn(1),PH(0,t1),Wt(n._parentMaterialMenu._hovered())).subscribe(function(){return n.openMenu()}):n.openMenu()}))}},{key:"_getPortal",value:function(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new es(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(aa),z(tt),z(wr),z(zQ),z(Pq,8),z(EP,10),z(Ei,8),z(Rl),z(Pt))},i.\u0275dir=be({type:i,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(r,n){1&r&&ne("click",function(c){return n._handleClick(c)})("mousedown",function(c){return n._handleMousedown(c)})("keydown",function(c){return n._handleKeydown(c)}),2&r&<("aria-expanded",n.menuOpen||null)("aria-controls",n.menuOpen?n.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),i}(),jQ=function(){var i=function(s){se(n,s);var r=ue(n);function n(){return R(this,n),r.apply(this,arguments)}return L(n)}(ate);return i.\u0275fac=function(){var s;return function(n){return(s||(s=cn(i)))(n||i)}}(),i.\u0275dir=be({type:i,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[Re]}),i}(),ote=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({providers:[ite],imports:[[io,vn,Cc,Nf],If,vn]}),i}();function ste(i,s){if(1&i&&(Bi(),Se(0,"circle",4)),2&i){var r=Q(),n=Dn(1);ta("animation-name","mat-progress-spinner-stroke-rotate-"+r._spinnerAnimationLabel)("stroke-dashoffset",r._getStrokeDashOffset(),"px")("stroke-dasharray",r._getStrokeCircumference(),"px")("stroke-width",r._getCircleStrokeWidth(),"%")("transform-origin",r._getCircleTransformOrigin(n)),lt("r",r._getCircleRadius())}}function lte(i,s){if(1&i&&(Bi(),Se(0,"circle",4)),2&i){var r=Q(),n=Dn(1);ta("stroke-dashoffset",r._getStrokeDashOffset(),"px")("stroke-dasharray",r._getStrokeCircumference(),"px")("stroke-width",r._getCircleStrokeWidth(),"%")("transform-origin",r._getCircleTransformOrigin(n)),lt("r",r._getCircleRadius())}}var cte=yc(function(){return L(function i(s){R(this,i),this._elementRef=s})}(),"primary"),fte=new Ae("mat-progress-spinner-default-options",{providedIn:"root",factory:function dte(){return{diameter:100}}}),VS=function(i){se(r,i);var s=ue(r);function r(n,l,c,p,_,w,M,A){var O;R(this,r),(O=s.call(this,n))._document=c,O._diameter=100,O._value=0,O._resizeSubscription=Te.EMPTY,O.mode="determinate";var F=r._diameters;return O._spinnerAnimationLabel=O._getSpinnerAnimationLabel(),F.has(c.head)||F.set(c.head,new Set([100])),O._noopAnimations="NoopAnimations"===p&&!!_&&!_._forceAnimations,"mat-spinner"===n.nativeElement.nodeName.toLowerCase()&&(O.mode="indeterminate"),_&&(_.diameter&&(O.diameter=_.diameter),_.strokeWidth&&(O.strokeWidth=_.strokeWidth)),l.isBrowser&&l.SAFARI&&M&&w&&A&&(O._resizeSubscription=M.change(150).subscribe(function(){"indeterminate"===O.mode&&A.run(function(){return w.markForCheck()})})),O}return L(r,[{key:"diameter",get:function(){return this._diameter},set:function(l){this._diameter=Va(l),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(l){this._strokeWidth=Va(l)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(l){this._value=Math.max(0,Math.min(100,Va(l)))}},{key:"ngOnInit",value:function(){var l=this._elementRef.nativeElement;this._styleRoot=ZT(l)||this._document.head,this._attachStyleNode(),l.classList.add("mat-progress-spinner-indeterminate-animation")}},{key:"ngOnDestroy",value:function(){this._resizeSubscription.unsubscribe()}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var l=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(l," ").concat(l)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_getCircleTransformOrigin",value:function(l){var c,p=50*(null!==(c=l.currentScale)&&void 0!==c?c:1);return"".concat(p,"% ").concat(p,"%")}},{key:"_attachStyleNode",value:function(){var l=this._styleRoot,c=this._diameter,p=r._diameters,_=p.get(l);if(!_||!_.has(c)){var w=this._document.createElement("style");w.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),w.textContent=this._getAnimationText(),l.appendChild(w),_||p.set(l,_=new Set),_.add(c)}}},{key:"_getAnimationText",value:function(){var l=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*l)).replace(/END_VALUE/g,"".concat(.2*l)).replace(/DIAMETER/g,"".concat(this._spinnerAnimationLabel))}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}}]),r}(cte);VS._diameters=new WeakMap,VS.\u0275fac=function(s){return new(s||VS)(z(tt),z(pn),z(Jt,8),z(mi,8),z(fte),z(hn),z(Ls),z(Pt))},VS.\u0275cmp=ke({type:VS,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(s,r){2&s&&(lt("aria-valuemin","determinate"===r.mode?0:null)("aria-valuemax","determinate"===r.mode?100:null)("aria-valuenow","determinate"===r.mode?r.value:null)("mode",r.mode),ta("width",r.diameter,"px")("height",r.diameter,"px"),Ze("_mat-animation-noopable",r._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[Re],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(s,r){1&s&&(Bi(),I(0,"svg",0,1),te(2,ste,1,11,"circle",2),te(3,lte,1,9,"circle",3),B()),2&s&&(ta("width",r.diameter,"px")("height",r.diameter,"px"),U("ngSwitch","indeterminate"===r.mode),lt("viewBox",r._getViewBox()),G(2),U("ngSwitchCase",!0),G(1),U("ngSwitchCase",!1))},directives:[rc,kf],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;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: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}@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)}}\n"],encapsulation:2,changeDetection:0});var pte=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[vn,io],vn]}),i}(),vte=function(){var i=function(){function s(){R(this,s),this._vertical=!1,this._inset=!1}return L(s,[{key:"vertical",get:function(){return this._vertical},set:function(n){this._vertical=gt(n)}},{key:"inset",get:function(){return this._inset},set:function(n){this._inset=gt(n)}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=ke({type:i,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(r,n){2&r&&(lt("aria-orientation",n.vertical?"vertical":"horizontal"),Ze("mat-divider-vertical",n.vertical)("mat-divider-horizontal",!n.vertical)("mat-divider-inset",n.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(r,n){},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}),i}(),gte=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[vn],vn]}),i}(),mte=function(){var i=function(){function s(){R(this,s)}return L(s,[{key:"transform",value:function(n,l){return n.sort(void 0===l?function(_,w){return _>w?1:-1}:function(_,w){return _[l]>w[l]?1:-1})}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275pipe=qi({name:"sort",type:i,pure:!0}),i}(),_te=["trigger"];function yte(i,s){1&i&&Se(0,"img",36),2&i&&U("src",Q().icon,Qt)}function bte(i,s){if(1&i){var r=xe();I(0,"button",46),ne("click",function(){var _=he(r).$implicit,w=Q(5);return w.newAction.emit({param:_,table:w})}),B()}if(2&i){var n=s.$implicit,l=Q(5);U("innerHTML",l.api.safeString(l.api.gui.icon(n.icon)+n.name),Xi)}}function Cte(i,s){if(1&i&&(Rn(0),I(1,"button",42),K(2),B(),I(3,"mat-menu",43,44),te(5,bte,1,1,"button",45),vf(6,"sort"),B(),On()),2&i){var r=s.$implicit,n=Dn(4);G(1),U("matMenuTriggerFor",n),G(1),Ln(r.key),G(1),U("overlapTrigger",!1),G(2),U("ngForOf",TC(6,4,r.value,"name"))}}function wte(i,s){if(1&i&&(Rn(0),I(1,"mat-menu",37,38),te(3,Cte,7,7,"ng-container",39),vf(4,"keyvalue"),B(),I(5,"a",40)(6,"i",17),K(7,"insert_drive_file"),B(),I(8,"span",41)(9,"uds-translate"),K(10,"New"),B()(),I(11,"i",17),K(12,"arrow_drop_down"),B()(),On()),2&i){var r=Dn(2),n=Q(3);G(1),U("overlapTrigger",!1),G(2),U("ngForOf",fh(4,3,n.grpTypes)),G(2),U("matMenuTriggerFor",r)}}function Ste(i,s){if(1&i){var r=xe();I(0,"button",46),ne("click",function(){var _=he(r).$implicit,w=Q(4);return w.newAction.emit({param:_,table:w})}),B()}if(2&i){var n=s.$implicit,l=Q(4);U("innerHTML",l.api.safeString(l.api.gui.icon(n.icon)+n.name),Xi)}}function Mte(i,s){if(1&i&&(Rn(0),I(1,"mat-menu",37,38),te(3,Ste,1,1,"button",45),vf(4,"sort"),B(),I(5,"a",40)(6,"i",17),K(7,"insert_drive_file"),B(),I(8,"span",41)(9,"uds-translate"),K(10,"New"),B()(),I(11,"i",17),K(12,"arrow_drop_down"),B()(),On()),2&i){var r=Dn(2),n=Q(3);G(1),U("overlapTrigger",!1),G(2),U("ngForOf",TC(4,3,n.oTypes,"name")),G(2),U("matMenuTriggerFor",r)}}function kte(i,s){if(1&i&&(Rn(0),te(1,wte,13,5,"ng-container",8),te(2,Mte,13,6,"ng-container",8),On()),2&i){var r=Q(2);G(1),U("ngIf",r.newGrouped),G(1),U("ngIf",!r.newGrouped)}}function Dte(i,s){if(1&i){var r=xe();Rn(0),I(1,"a",47),ne("click",function(){he(r);var l=Q(2);return l.newAction.emit({param:void 0,table:l})}),I(2,"i",17),K(3,"insert_drive_file"),B(),I(4,"span",41)(5,"uds-translate"),K(6,"New"),B()()(),On()}}function xte(i,s){if(1&i&&(Rn(0),te(1,kte,3,2,"ng-container",8),te(2,Dte,7,0,"ng-container",8),On()),2&i){var r=Q();G(1),U("ngIf",void 0!==r.oTypes&&0!==r.oTypes.length),G(1),U("ngIf",void 0!==r.oTypes&&0===r.oTypes.length)}}function Tte(i,s){if(1&i){var r=xe();Rn(0),I(1,"a",48),ne("click",function(){he(r);var c=Q();return c.emitIfSelection(c.editAction)}),I(2,"i",17),K(3,"edit"),B(),I(4,"span",41)(5,"uds-translate"),K(6,"Edit"),B()()(),On()}if(2&i){var n=Q();G(1),U("disabled",1!==n.selection.selected.length)}}function Ate(i,s){if(1&i){var r=xe();Rn(0),I(1,"a",48),ne("click",function(){return he(r),Q().permissions()}),I(2,"i",17),K(3,"perm_identity"),B(),I(4,"span",41)(5,"uds-translate"),K(6,"Permissions"),B()()(),On()}if(2&i){var n=Q();G(1),U("disabled",1!==n.selection.selected.length)}}function Ete(i,s){if(1&i){var r=xe();I(0,"a",50),ne("click",function(){var _=he(r).$implicit;return Q(2).emitCustom(_)}),B()}if(2&i){var n=s.$implicit;U("disabled",Q(2).isCustomDisabled(n))("innerHTML",n.html,Xi)}}function Pte(i,s){if(1&i&&(Rn(0),te(1,Ete,1,2,"a",49),On()),2&i){var r=Q();G(1),U("ngForOf",r.getcustomButtons())}}function Ote(i,s){if(1&i){var r=xe();Rn(0),I(1,"a",51),ne("click",function(){return he(r),Q().export()}),I(2,"i",17),K(3,"import_export"),B(),I(4,"span",41)(5,"uds-translate"),K(6,"Export"),B()()(),On()}}function Ite(i,s){if(1&i){var r=xe();Rn(0),I(1,"a",52),ne("click",function(){he(r);var c=Q();return c.emitIfSelection(c.deleteAction,!0)}),I(2,"i",17),K(3,"delete_forever"),B(),I(4,"span",41)(5,"uds-translate"),K(6,"Delete"),B()()(),On()}if(2&i){var n=Q();G(1),U("disabled",n.selection.isEmpty())}}function Rte(i,s){if(1&i){var r=xe();I(0,"button",53),ne("click",function(){he(r);var l=Q();return l.filterText="",l.applyFilter()}),I(1,"i",17),K(2,"close"),B()()}}function Lte(i,s){1&i&&Se(0,"mat-header-cell")}function Fte(i,s){1&i&&(I(0,"i",17),K(1,"check_box"),B())}function Nte(i,s){1&i&&(I(0,"i",17),K(1,"check_box_outline_blank"),B())}function Bte(i,s){if(1&i){var r=xe();I(0,"mat-cell",56),ne("click",function(_){var M=he(r).$implicit;return Q(2).clickRow(M,_)}),te(1,Fte,2,0,"i",57),te(2,Nte,2,0,"ng-template",null,58,Ko),B()}if(2&i){var n=s.$implicit,l=Dn(3),c=Q(2);G(1),U("ngIf",c.selection.isSelected(n))("ngIfElse",l)}}function Vte(i,s){1&i&&(Rn(0,54),te(1,Lte,1,0,"mat-header-cell",22),te(2,Bte,4,2,"mat-cell",55),On())}function Hte(i,s){1&i&&Se(0,"mat-header-cell")}function zte(i,s){if(1&i){var r=xe();I(0,"mat-cell")(1,"div",59),ne("click",function(l){var p=he(r).$implicit,_=Q();return _.detailAction.emit({param:p,table:_}),l.stopPropagation()}),I(2,"i",17),K(3,"subdirectory_arrow_right"),B()()()}}function Gte(i,s){if(1&i&&(I(0,"mat-header-cell",63),K(1),B()),2&i){var r=Q().$implicit;G(1),Ln(r.title)}}function Ute(i,s){if(1&i){var r=xe();I(0,"mat-cell",64),ne("click",function(_){var M=he(r).$implicit;return Q(2).clickRow(M,_)})("contextmenu",function(_){var M=he(r).$implicit,A=Q().$implicit;return Q().onContextMenu(M,A,_)}),Se(1,"div",65),B()}if(2&i){var n=s.$implicit,l=Q().$implicit,c=Q();G(1),U("innerHtml",c.getRowColumn(n,l),Xi)}}function jte(i,s){1&i&&(Rn(0,60),te(1,Gte,2,1,"mat-header-cell",61),te(2,Ute,2,1,"mat-cell",62),On()),2&i&&Uu("matColumnDef",s.$implicit.name)}function Wte(i,s){1&i&&Se(0,"mat-header-row")}function Yte(i,s){if(1&i&&Se(0,"mat-row",66),2&i){var r=s.$implicit;U("ngClass",Q().rowClass(r))}}function qte(i,s){if(1&i&&(I(0,"div",67),K(1),I(2,"uds-translate"),K(3,"Selected items"),B()()),2&i){var r=Q();G(1),Le(" ",r.selection.selected.length," ")}}function Zte(i,s){if(1&i){var r=xe();I(0,"button",71),ne("click",function(){return he(r),Q(2).copyToClipboard()}),I(1,"i",72),K(2,"content_copy"),B(),I(3,"uds-translate"),K(4,"Copy"),B()()}}function Xte(i,s){if(1&i){var r=xe();I(0,"button",71),ne("click",function(){he(r);var l=Q().item,c=Q();return c.detailAction.emit({param:l,table:c})}),I(1,"i",72),K(2,"subdirectory_arrow_right"),B(),I(3,"uds-translate"),K(4,"Detail"),B()()}}function Kte(i,s){if(1&i){var r=xe();I(0,"button",71),ne("click",function(){he(r);var l=Q(2);return l.emitIfSelection(l.editAction)}),I(1,"i",72),K(2,"edit"),B(),I(3,"uds-translate"),K(4,"Edit"),B()()}}function $te(i,s){if(1&i){var r=xe();I(0,"button",71),ne("click",function(){return he(r),Q(2).permissions()}),I(1,"i",72),K(2,"perm_identity"),B(),I(3,"uds-translate"),K(4,"Permissions"),B()()}}function Qte(i,s){if(1&i){var r=xe();I(0,"button",73),ne("click",function(){var _=he(r).$implicit;return Q(2).emitCustom(_)}),B()}if(2&i){var n=s.$implicit;U("disabled",Q(2).isCustomDisabled(n))("innerHTML",n.html,Xi)}}function Jte(i,s){if(1&i){var r=xe();I(0,"button",74),ne("click",function(){he(r);var l=Q(2);return l.emitIfSelection(l.deleteAction)}),I(1,"i",72),K(2,"delete_forever"),B(),I(3,"uds-translate"),K(4,"Delete"),B()()}}function ene(i,s){if(1&i){var r=xe();I(0,"button",73),ne("click",function(){var _=he(r).$implicit;return Q(3).emitCustom(_)}),B()}if(2&i){var n=s.$implicit;U("disabled",Q(3).isCustomDisabled(n))("innerHTML",n.html,Xi)}}function tne(i,s){if(1&i&&(Rn(0),Se(1,"mat-divider"),te(2,ene,1,2,"button",69),On()),2&i){var r=Q(2);G(2),U("ngForOf",r.getCustomAccelerators())}}function nne(i,s){if(1&i&&(te(0,Zte,5,0,"button",68),te(1,Xte,5,0,"button",68),te(2,Kte,5,0,"button",68),te(3,$te,5,0,"button",68),te(4,Qte,1,2,"button",69),te(5,Jte,5,0,"button",70),te(6,tne,3,1,"ng-container",8)),2&i){var r=Q();U("ngIf",!0===r.allowCopy),G(1),U("ngIf",r.detailAction.observers.length>0),G(1),U("ngIf",r.editAction.observers.length>0),G(1),U("ngIf",!0===r.hasPermissions),G(1),U("ngForOf",r.getCustomMenu()),G(1),U("ngIf",r.deleteAction.observers.length>0),G(1),U("ngIf",r.hasAccelerators)}}var rne=function(){return[5,10,25,100,1e3]},Kr=function(){var i=function(){function s(r,n){R(this,s),this.api=r,this.clipboard=n,this.pageSize=10,this.newGrouped=!1,this.allowCopy=!0,this.loaded=new ye,this.rowSelected=new ye,this.newAction=new ye,this.editAction=new ye,this.deleteAction=new ye,this.customButtonAction=new ye,this.detailAction=new ye,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.rowStyleInfo=null,this.dataSource=new TQ([]),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 L(s,[{key:"ngOnInit",value:function(){var n=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(c,p){if(!(p in c))return"";var _=c[p];return"number"==typeof _?_:"string"==typeof _?_.toLocaleLowerCase():(null===_&&(_=7226578800),_.changingThisBreaksApplicationSecurity&&(_=_.changingThisBreaksApplicationSecurity),(""+_).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase())},this.dataSource.filterPredicate=function(c,p){try{n.columns.forEach(function(_){if((""+c[_.name]).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase().includes(p))throw Error()})}catch(_){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 bg(!0===this.multiSelect,[]);var l=this.rest.permision();0==(l&Mc.MANAGEMENT)&&(this.newAction.observers.length=0,this.editAction.observers.length=0,this.deleteAction.observers.length=0,this.customButtonAction.observers.length=0),l!==Mc.ALL&&(this.hasPermissions=!1),void 0!==this.icon&&(this.icon=this.api.staticURL("admin/img/icons/"+this.icon+".png")),this.rest.types().subscribe(function(c){n.rest.tableInfo().subscribe(function(p){n.initialize(p,c)})})}},{key:"initialize",value:function(n,l){var c=this;this.oTypes=l,this.types=new Map,this.grpTypes=new Map,l.forEach(function(_){c.types.set(_.type,_),void 0!==_.group&&(c.grpTypes.has(_.group)||c.grpTypes.set(_.group,[]),c.grpTypes.get(_.group).push(_))}),this.rowStyleInfo=void 0!==n["row-style"]&&void 0!==n["row-style"].field?n["row-style"]:null,this.title=n.title,this.subtitle=n.subtitle||"",this.hasButtons&&this.displayedColumns.push("selection-column");var p=[];n.fields.forEach(function(_){for(var w in _)if(_.hasOwnProperty(w)){var M=_[w];p.push({name:w,title:M.title,type:void 0===M.type?ui.ALPHANUMERIC:M.type,dict:M.dict}),(void 0===M.visible||M.visible)&&c.displayedColumns.push(w)}}),this.columns=p,this.detailAction.observers.length>0&&this.displayedColumns.push("detail-column"),this.overview()}},{key:"overview",value:function(){var n=this;this.loading||(this.selection.clear(),this.dataSource.data=[],this.loading=!0,this.rest.overview().subscribe(function(l){n.loading=!1,void 0!==n.onItem&&l.forEach(function(c){n.onItem(c)}),n.dataSource.data=l,n.loaded.emit({param:n.firstLoad,table:n}),n.firstLoad=!1},function(l){n.loading=!1}))}},{key:"getcustomButtons",value:function(){return this.customButtons?this.customButtons.filter(function(n){return n.type!==vr.ONLY_MENU&&n.type!==vr.ACCELERATOR}):[]}},{key:"getCustomMenu",value:function(){return this.customButtons?this.customButtons.filter(function(n){return n.type!==vr.ACCELERATOR}):[]}},{key:"getCustomAccelerators",value:function(){return this.customButtons?this.customButtons.filter(function(n){return n.type===vr.ACCELERATOR}):[]}},{key:"getRowColumn",value:function(n,l){var c=n[l.name];switch(l.type){case ui.IMAGE:return this.api.safeString(this.api.gui.icon(c,"48px"));case ui.DATE:c=zs("SHORT_DATE_FORMAT",c);break;case ui.DATETIME:c=zs("SHORT_DATETIME_FORMAT",c);break;case ui.TIME:c=zs("TIME_FORMAT",c);break;case ui.DATETIMESEC:c=zs("SHORT_DATE_FORMAT",c," H:i:s");break;case ui.ICON:try{c=this.api.gui.icon(this.types.get(n.type).icon)+c}catch(p){}return this.api.safeString(c);case ui.CALLBACK:break;case ui.DICTIONARY:try{c=l.dict[c]}catch(p){c=""}}return c}},{key:"applyFilter",value:function(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()}},{key:"sortChanged",value:function(n){this.api.putOnStorage(this.tableId+"sort-column",n.active),this.api.putOnStorage(this.tableId+"sort-direction",n.direction)}},{key:"copyToClipboard",value:function(){this.clipboard.copy(this.clipValue||"")}},{key:"rowClass",value:function(n){var l=[];return this.selection.isSelected(n)&&l.push("selected"),null!==this.rowStyleInfo&&l.push(this.rowStyleInfo.prefix+n[this.rowStyleInfo.field]),l}},{key:"emitIfSelection",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=this.selection.selected.length;c>0&&(!0===l||1===c)&&n.emit({table:this,param:c})}},{key:"isCustomDisabled",value:function(n){switch(n.type){case void 0:case vr.SINGLE_SELECT:return 1!==this.selection.selected.length||!0===n.disabled;case vr.MULTI_SELECT:return this.selection.isEmpty()||!0===n.disabled;default:return!1}}},{key:"emitCustom",value:function(n){!this.selection.selected.length&&n.type!==vr.ALWAYS||(n.type===vr.ACCELERATOR?this.api.navigation.goto(n.id,this.selection.selected[0],n.acceleratorProperties):this.customButtonAction.emit({param:n,table:this}))}},{key:"clickRow",value:function(n,l){var c=(new Date).getTime();if((this.detailAction.observers.length||this.editAction.observers.length)&&Math.abs(this.lastClickInfo.x-l.x)<16&&Math.abs(this.lastClickInfo.y-l.y)<16&&c-this.lastClickInfo.time<250)return this.selection.clear(),this.selection.select(n),void(this.detailAction.observers.length?this.detailAction.emit({param:n,table:this}):this.emitIfSelection(this.editAction,!1));this.lastClickInfo={time:c,x:l.x,y:l.y},this.doSelect(n,l)}},{key:"doSelect",value:function(n,l){if(l.ctrlKey)this.lastSel=n,this.selection.toggle(n);else if(l.shiftKey){if(this.selection.isEmpty())this.selection.toggle(n);else if(this.selection.clear(),this.lastSel!==n){var w,c=!1,_=qt(this.dataSource.sortData(this.dataSource.data,this.dataSource.sort));try{for(_.s();!(w=_.n()).done;){var M=w.value;if((M===n||M===this.lastSel)&&!1==(c=!c)){this.selection.select(M);break}c&&this.selection.select(M)}}catch(A){_.e(A)}finally{_.f()}}}else this.lastSel!==n&&this.selection.clear(),this.lastSel=n,this.selection.toggle(n);this.rowSelected.emit({param:null,table:this})}},{key:"onContextMenu",value:function(n,l,c){c.preventDefault();var p=n[l.name];p.changingThisBreaksApplicationSecurity&&(p=p.changingThisBreaksApplicationSecurity.replace(/.*<\/span>/,"")),this.clipValue=""+p,this.hasActions&&(this.selection.clear(),this.selection.select(n),this.contextMenuPosition.x=c.clientX+"px",this.contextMenuPosition.y=c.clientY+"px",this.contextMenu.menuData={item:n},this.contextMenu.openMenu())}},{key:"selectElement",value:function(n,l){var c=this;this.dataSource.sortData(this.dataSource.data,this.dataSource.sort).forEach(function(_,w){if(_[n]===l){var M=Math.floor(w/c.paginator.pageSize);c.selection.select(_),c.paginator.pageIndex=M,c.paginator.page.next({pageIndex:M,pageSize:c.paginator.pageSize,length:c.paginator.length})}})}},{key:"export",value:function(){FQ(this)}},{key:"permissions",value:function(){!this.selection.selected.length||jee.launch(this.api,this.rest,this.selection.selected[0])}},{key:"keyDown",value:function(n){switch(n.keyCode){case 36:this.paginator.firstPage(),n.preventDefault();break;case 35:this.paginator.lastPage(),n.preventDefault();break;case 39:this.paginator.nextPage(),n.preventDefault();break;case 37:this.paginator.previousPage(),n.preventDefault()}}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(qee))},i.\u0275cmp=ke({type:i,selectors:[["uds-table"]],viewQuery:function(r,n){var l;1&r&&(Rt(_te,7),Rt(NS,7),Rt(k,7)),2&r&&(Ve(l=Ge())&&(n.contextMenu=l.first),Ve(l=Ge())&&(n.paginator=l.first),Ve(l=Ge())&&(n.sort=l.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(r,n){if(1&r&&(I(0,"div",0)(1,"div",1)(2,"div",2),te(3,yte,1,1,"img",3),K(4),B(),I(5,"div",4),K(6),B()(),I(7,"div",5)(8,"div",6)(9,"div",7),te(10,xte,3,2,"ng-container",8),te(11,Tte,7,1,"ng-container",8),te(12,Ate,7,1,"ng-container",8),te(13,Pte,2,1,"ng-container",8),te(14,Ote,7,0,"ng-container",8),te(15,Ite,7,1,"ng-container",8),B(),I(16,"div",9)(17,"div",10)(18,"uds-translate"),K(19,"Filter"),B(),K(20,"\xa0 "),I(21,"mat-form-field")(22,"input",11),ne("keyup",function(){return n.applyFilter()})("ngModelChange",function(p){return n.filterText=p}),B(),te(23,Rte,3,0,"button",12),B()(),I(24,"div",13),Se(25,"mat-paginator",14),B(),I(26,"div",15)(27,"a",16),ne("click",function(){return n.overview()}),I(28,"i",17),K(29,"autorenew"),B()()()()(),I(30,"div",18),ne("keydown",function(p){return n.keyDown(p)}),I(31,"mat-table",19),ne("matSortChange",function(p){return n.sortChanged(p)}),te(32,Vte,3,0,"ng-container",20),Rn(33,21),te(34,Hte,1,0,"mat-header-cell",22),te(35,zte,4,0,"mat-cell",23),On(),te(36,jte,3,1,"ng-container",24),te(37,Wte,1,0,"mat-header-row",25),te(38,Yte,1,1,"mat-row",26),B(),I(39,"div",27)(40,"div",28),Se(41,"mat-progress-spinner",29),B()()(),I(42,"div",30),K(43," \xa0 "),te(44,qte,4,1,"div",31),B()(),Se(45,"div",32,33),I(47,"mat-menu",null,34),te(49,nne,7,7,"ng-template",35),B()()),2&r){var l=Dn(48);G(3),U("ngIf",void 0!==n.icon),G(1),Le(" ",n.title," "),G(2),Le(" ",n.subtitle," "),G(4),U("ngIf",n.newAction.observers.length>0),G(1),U("ngIf",n.editAction.observers.length>0),G(1),U("ngIf",!0===n.hasPermissions),G(1),U("ngIf",n.hasCustomButtons),G(1),U("ngIf",!0===n.allowExport),G(1),U("ngIf",n.deleteAction.observers.length>0),G(7),U("ngModel",n.filterText),G(1),U("ngIf",n.filterText),G(2),U("pageSize",n.pageSize)("hidePageSize",!0)("pageSizeOptions",m_(27,rne))("showFirstLastButtons",!0),G(6),U("dataSource",n.dataSource),G(1),U("ngIf",n.hasButtons),G(4),U("ngForOf",n.columns),G(1),U("matHeaderRowDef",n.displayedColumns),G(1),U("matRowDefColumns",n.displayedColumns),G(1),U("hidden",!n.loading),G(5),U("ngIf",n.hasButtons&&n.selection.selected.length>0),G(1),ta("left",n.contextMenuPosition.x)("top",n.contextMenuPosition.y),U("matMenuTriggerFor",l)}},directives:[en,HQ,ir,EP,jQ,cg,Gn,or,ua,yi,pr,ar,qn,wg,NS,kq,k,TH,xH,AH,DH,EH,T,Dq,Tq,xq,Aq,As,VS,Jee,vte],pipes:[Nx,mte],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%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_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%] .mat-h2[_ngcontent-%COMP%], .mat-typography[_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%] .mat-h3[_ngcontent-%COMP%], .mat-typography[_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%] .mat-h4[_ngcontent-%COMP%], .mat-typography[_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%] .mat-h5[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font:400 11.62px/20px Roboto,Helvetica Neue,sans-serif;margin:0 0 12px}.mat-h6[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h6[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font:400 9.38px/20px Roboto,Helvetica Neue,sans-serif;margin:0 0 12px}.mat-body-strong[_ngcontent-%COMP%], .mat-body-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-body-strong[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-body-2[_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%] .mat-body[_ngcontent-%COMP%], .mat-typography[_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[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-body-1[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-body-1[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 12px}.mat-small[_ngcontent-%COMP%], .mat-caption[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-small[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-caption[_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-raised-button[_ngcontent-%COMP%], .mat-icon-button[_ngcontent-%COMP%], .mat-stroked-button[_ngcontent-%COMP%], .mat-flat-button[_ngcontent-%COMP%], .mat-fab[_ngcontent-%COMP%], .mat-mini-fab[_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-subtitle[_ngcontent-%COMP%], .mat-card-content[_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-trailing-icon.mat-icon[_ngcontent-%COMP%], .mat-chip[_ngcontent-%COMP%] .mat-chip-remove.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);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);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);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-header[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%]{font-size:14px}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2), .mat-grid-tile-footer[_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%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-slider-thumb-label-text[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:12px;font-weight:500}.mat-stepper-vertical[_ngcontent-%COMP%], .mat-stepper-horizontal[_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%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-tab-label[_ngcontent-%COMP%], .mat-tab-link[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;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-tree-node[_ngcontent-%COMP%], .mat-nested-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;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_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%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;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%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.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}@keyframes cdk-text-field-autofill-start{}@keyframes cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%], .mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:1rem 1rem 0rem}.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap}.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:0rem 1rem;-webkit-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:#00f}.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:#00f}"]}),i}(),WQ='pause'+django.gettext("Maintenance")+"",ine='pause'+django.gettext("Exit maintenance mode")+"",ane='pause'+django.gettext("Enter maintenance mode")+"",YQ=function(){var i=function(){function s(r,n,l){R(this,s),this.route=r,this.rest=n,this.api=l,this.cButtons=[{id:"maintenance",html:WQ,type:vr.SINGLE_SELECT}]}return L(s,[{key:"ngOnInit",value:function(){}},{key:"customButtons",get:function(){return this.api.user.isAdmin?this.cButtons:[]}},{key:"onNew",value:function(n){this.api.gui.forms.typedNewForm(n,django.gettext("New provider"),!0)}},{key:"onEdit",value:function(n){this.api.gui.forms.typedEditForm(n,django.gettext("Edit provider"),!0)}},{key:"onDelete",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete provider"))}},{key:"onMaintenance",value:function(n){var l=this,c=n.table.selection.selected[0],p=c.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.yesno(django.gettext("Maintenance mode for")+" "+c.name,p).subscribe(function(_){_&&l.rest.providers.maintenance(c.id).subscribe(function(){n.table.overview()})})}},{key:"onRowSelect",value:function(n){var l=n.table;this.customButtons[0].html=l.selection.selected.length>1||0===l.selection.selected.length?WQ:l.selection.selected[0].maintenance_mode?ine:ane}},{key:"onDetail",value:function(n){this.api.navigation.gotoService(n.param.id)}},{key:"processElement",value:function(n){n.maintenance_state=n.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}},{key:"onLoad",value:function(n){!0===n.param&&n.table.selectElement("id",this.route.snapshot.paramMap.get("provider"))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Vr),z(rn),z(Ot))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"uds-table",0),ne("customButtonAction",function(c){return n.onMaintenance(c)})("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("rowSelected",function(c){return n.onRowSelect(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),B()),2&r&&U("rest",n.rest.providers)("onItem",n.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)},directives:[Kr],styles:[".row-maintenance-true>mat-cell{color:orange!important} .mat-column-services_count, .mat-column-user_services_count, .mat-column-maintenance_state{max-width:7rem;justify-content:center}"]}),i}(),mb=function(){function i(s,r,n,l){R(this,i),this.title=s,this.data=r,this.columns=n,this.id=l,this.columnsDefinition=Array.from(n,function(c){var p={};return p[c.field]={visible:!0,title:c.title,type:void 0===c.type?ui.ALPHANUMERIC:c.type},p})}return L(i,[{key:"get",value:function(r){return Sr}},{key:"getLogs",value:function(r){return Sr}},{key:"overview",value:function(r){return"function"==typeof this.data?this.data():dt([])}},{key:"summary",value:function(r){return this.overview()}},{key:"put",value:function(r,n){return Sr}},{key:"create",value:function(r){return Sr}},{key:"save",value:function(r,n){return Sr}},{key:"test",value:function(r,n){return Sr}},{key:"delete",value:function(r){return Sr}},{key:"permision",value:function(){return Mc.ALL}},{key:"getPermissions",value:function(r){return Sr}},{key:"addPermission",value:function(r,n,l,c){return Sr}},{key:"revokePermission",value:function(r){return Sr}},{key:"types",value:function(){return dt([])}},{key:"gui",value:function(r){return Sr}},{key:"callback",value:function(r,n){return Sr}},{key:"tableInfo",value:function(){return dt({fields:this.columnsDefinition,title:this.title})}},{key:"detail",value:function(r,n){return null}},{key:"invoke",value:function(r,n){return Sr}}]),i}();function one(i,s){if(1&i){var r=xe();I(0,"button",24),ne("click",function(){he(r);var l=Q();return l.filterText="",l.applyFilter()}),I(1,"i",8),K(2,"close"),B()()}}function sne(i,s){if(1&i&&(I(0,"mat-header-cell",28),K(1),B()),2&i){var r=Q().$implicit;G(1),Ln(r)}}function lne(i,s){if(1&i&&(I(0,"mat-cell"),Se(1,"div",29),B()),2&i){var r=s.$implicit,n=Q().$implicit,l=Q();G(1),U("innerHtml",l.getRowColumn(r,n),Xi)}}function une(i,s){1&i&&(Rn(0,25),te(1,sne,2,1,"mat-header-cell",26),te(2,lne,2,1,"mat-cell",27),On()),2&i&&U("matColumnDef",s.$implicit)}function cne(i,s){1&i&&Se(0,"mat-header-row")}function fne(i,s){if(1&i&&Se(0,"mat-row",30),2&i){var r=s.$implicit;U("ngClass",Q().rowClass(r))}}var dne=function(){return[5,10,25,100,1e3]},HS=function(){var i=function(){function s(r){R(this,s),this.api=r,this.pageSize=10,this.filterText="",this.title="Logs",this.displayedColumns=["date","level","source","message"],this.columns=[],this.dataSource=new TQ([]),this.selection=new bg}return L(s,[{key:"ngOnInit",value:function(){var n=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(l){n.columns.push({name:l,title:l,type:"date"===l?ui.DATETIMESEC:ui.ALPHANUMERIC})}),this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.overview()}},{key:"overview",value:function(){var n=this;this.rest.getLogs(this.itemId).subscribe(function(l){n.dataSource.data=l})}},{key:"selectElement",value:function(n,l){}},{key:"getRowColumn",value:function(n,l){var c=n[l];return"date"===l?c=zs("SHORT_DATE_FORMAT",c," H:i:s"):"level"===l&&(c=function(s){return{1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"}[s]||"OTHER"}(c)),c}},{key:"rowClass",value:function(n){return["level-"+n.level]}},{key:"applyFilter",value:function(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()}},{key:"sortChanged",value:function(n){this.api.putOnStorage("logs-sort-column",n.active),this.api.putOnStorage("logs-sort-direction",n.direction)}},{key:"export",value:function(){FQ(this)}},{key:"keyDown",value:function(n){switch(n.keyCode){case 36:this.paginator.firstPage(),n.preventDefault();break;case 35:this.paginator.lastPage(),n.preventDefault();break;case 39:this.paginator.nextPage(),n.preventDefault();break;case 37:this.paginator.previousPage(),n.preventDefault()}}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot))},i.\u0275cmp=ke({type:i,selectors:[["uds-logs-table"]],viewQuery:function(r,n){var l;1&r&&(Rt(NS,7),Rt(k,7)),2&r&&(Ve(l=Ge())&&(n.paginator=l.first),Ve(l=Ge())&&(n.sort=l.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(r,n){1&r&&(I(0,"div",0)(1,"div",1)(2,"div",2),Se(3,"img",3),K(4," \xa0"),I(5,"uds-translate"),K(6,"Logs"),B()()(),I(7,"div",4)(8,"div",5)(9,"div",6)(10,"a",7),ne("click",function(){return n.export()}),I(11,"i",8),K(12,"import_export"),B(),I(13,"span",9)(14,"uds-translate"),K(15,"Export"),B()()()(),I(16,"div",10)(17,"div",11)(18,"uds-translate"),K(19,"Filter"),B(),K(20,"\xa0 "),I(21,"mat-form-field")(22,"input",12),ne("keyup",function(){return n.applyFilter()})("ngModelChange",function(c){return n.filterText=c}),B(),te(23,one,3,0,"button",13),B()(),I(24,"div",14),Se(25,"mat-paginator",15),B(),I(26,"div",16)(27,"a",17),ne("click",function(){return n.overview()}),I(28,"i",8),K(29,"autorenew"),B()()()()(),I(30,"div",18),ne("keydown",function(c){return n.keyDown(c)}),I(31,"mat-table",19),ne("matSortChange",function(c){return n.sortChanged(c)}),te(32,une,3,1,"ng-container",20),te(33,cne,1,0,"mat-header-row",21),te(34,fne,1,1,"mat-row",22),B()(),Se(35,"div",23),B()()),2&r&&(G(3),U("src",n.api.staticURL("admin/img/icons/logs.png"),Qt),G(19),U("ngModel",n.filterText),G(1),U("ngIf",n.filterText),G(2),U("pageSize",n.pageSize)("hidePageSize",!0)("pageSizeOptions",m_(11,dne))("showFirstLastButtons",!0),G(6),U("dataSource",n.dataSource),G(1),U("ngForOf",n.displayedColumns),G(1),U("matHeaderRowDef",n.displayedColumns),G(1),U("matRowDefColumns",n.displayedColumns))},directives:[Gn,cg,or,ua,yi,pr,ar,en,qn,wg,NS,kq,k,ir,TH,xH,AH,T,DH,EH,Dq,Tq,xq,Aq,As],styles:[".header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:1rem 1rem 0rem}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0rem 1rem;-webkit-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}"]}),i}();function hne(i,s){1&i&&(I(0,"uds-translate"),K(1,"Services pools"),B())}function pne(i,s){1&i&&(I(0,"uds-translate"),K(1,"Logs"),B())}var vne=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],gne=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.customButtons=[is.getGotoButton(JE,"id")],this.services=c.services,this.service=c.service}return L(s,[{key:"ngOnInit",value:function(){var n=this;this.servicePools=new mb(django.gettext("Service pools"),function(){return n.services.invoke(n.service.id+"/servicesPools")},vne,this.service.id+"infopsls")}}],[{key:"launch",value:function(n,l,c){var p=window.innerWidth<800?"80%":"60%";n.gui.dialog.open(s,{width:p,position:{top:window.innerWidth<800?"0px":"7rem"},data:{service:c,services:l},disableClose:!1})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"h4",0)(1,"uds-translate"),K(2,"Information for"),B(),K(3),B(),I(4,"mat-dialog-content")(5,"mat-tab-group")(6,"mat-tab"),te(7,hne,2,0,"ng-template",1),Se(8,"uds-table",2),B(),I(9,"mat-tab"),te(10,pne,2,0,"ng-template",1),I(11,"div",3),Se(12,"uds-logs-table",4),B()()()(),I(13,"mat-dialog-actions")(14,"button",5)(15,"uds-translate"),K(16,"Ok"),B()()()),2&r&&(G(3),Le(" ",n.service.name,"\n"),G(5),U("rest",n.servicePools)("customButtons",n.customButtons)("pageSize",6),G(4),U("rest",n.services)("itemId",n.service.id)("tableId","serviceInfo-d-log"+n.service.id)("pageSize",5))},directives:[si,Gn,jr,Hl,Hs,rs,Kr,HS,li,qn,_i],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}"]}),i}();function mne(i,s){if(1&i&&(I(0,"div",3),Se(1,"div",4)(2,"div",5),B()),2&i){var r=s.$implicit;G(1),U("innerHTML",r.gui.label,Xi),G(1),U("innerHTML",r.value,Xi)}}var IH=function(){var i=function(){function s(r){R(this,s),this.api=r,this.displayables=null}return L(s,[{key:"ngOnInit",value:function(){this.processFields()}},{key:"processFields",value:function(){var n=this;if(!this.gui||!this.value)return[];var l=this.gui.filter(function(c){return c.gui.type!==za.HIDDEN});l.forEach(function(c){var p=n.value[c.name];switch(c.gui.type){case za.CHECKBOX:c.value=p?django.gettext("Yes"):django.gettext("No");break;case za.PASSWORD:c.value=django.gettext("(hidden)");break;case za.CHOICE:var _=nS.locateChoice(p,c);c.value=_.text;break;case za.MULTI_CHOICE:c.value=django.gettext("Selected items :")+p.length;break;case za.IMAGECHOICE:var w=nS.locateChoice(p,c);c.value=n.api.safeString(n.api.gui.icon(w.img)+" "+w.text);break;default:c.value=p}(""===c.value||null==c.value)&&(c.value="(empty)")}),this.displayables=l}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"div",0)(1,"div",1),te(2,mne,3,2,"div",2),B(),Se(3,"div"),B()),2&r&&(G(2),U("ngForOf",n.displayables))},directives:[ir],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}"]}),i}();function _ne(i,s){1&i&&(I(0,"uds-translate"),K(1,"Summary"),B())}function yne(i,s){if(1&i&&Se(0,"uds-information",15),2&i){var r=Q(2);U("value",r.provider)("gui",r.gui)}}function bne(i,s){1&i&&(I(0,"uds-translate"),K(1,"Services"),B())}function Cne(i,s){1&i&&(I(0,"uds-translate"),K(1,"Usage"),B())}function wne(i,s){1&i&&(I(0,"uds-translate"),K(1,"Logs"),B())}function Sne(i,s){if(1&i){var r=xe();I(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),ne("selectedIndexChange",function(c){return he(r),Q().selectedTab=c}),I(3,"mat-tab"),te(4,_ne,2,0,"ng-template",9),I(5,"div",10),te(6,yne,1,2,"uds-information",11),B()(),I(7,"mat-tab"),te(8,bne,2,0,"ng-template",9),I(9,"div",10)(10,"uds-table",12),ne("newAction",function(c){return he(r),Q().onNewService(c)})("editAction",function(c){return he(r),Q().onEditService(c)})("deleteAction",function(c){return he(r),Q().onDeleteService(c)})("customButtonAction",function(c){return he(r),Q().onInformation(c)})("loaded",function(c){return he(r),Q().onLoad(c)}),B()()(),I(11,"mat-tab"),te(12,Cne,2,0,"ng-template",9),I(13,"div",10)(14,"uds-table",13),ne("deleteAction",function(c){return he(r),Q().onDeleteUsage(c)}),B()()(),I(15,"mat-tab"),te(16,wne,2,0,"ng-template",9),I(17,"div",10),Se(18,"uds-logs-table",14),B()()()()()}if(2&i){var n=Q();G(2),U("selectedIndex",n.selectedTab)("@.disabled",!0),G(4),U("ngIf",n.provider&&n.gui),G(4),U("rest",n.services)("multiSelect",!0)("allowExport",!0)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)("tableId","providers-d-services"+n.provider.id),G(4),U("rest",n.usage)("multiSelect",!0)("allowExport",!0)("pageSize",n.api.config.admin.page_size)("tableId","providers-d-usage"+n.provider.id),G(4),U("rest",n.services.parentModel)("itemId",n.provider.id)("tableId","providers-d-log"+n.provider.id)}}var Mne=function(s){return["/providers",s]},qQ=function(){var i=function(){function s(r,n,l){R(this,s),this.route=r,this.rest=n,this.api=l,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:vr.ONLY_MENU}],this.provider=null,this.selectedTab=1}return L(s,[{key:"ngOnInit",value:function(){var n=this,l=this.route.snapshot.paramMap.get("provider");this.services=this.rest.providers.detail(l,"services"),this.usage=this.rest.providers.detail(l,"usage"),this.services.parentModel.get(l).subscribe(function(c){n.provider=c,n.services.parentModel.gui(c.type).subscribe(function(p){n.gui=p})})}},{key:"onInformation",value:function(n){gne.launch(this.api,this.services,n.table.selection.selected[0])}},{key:"onNewService",value:function(n){this.api.gui.forms.typedNewForm(n,django.gettext("New service"),!1)}},{key:"onEditService",value:function(n){this.api.gui.forms.typedEditForm(n,django.gettext("Edit service"),!1)}},{key:"onDeleteService",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete service"))}},{key:"onDeleteUsage",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete user service"))}},{key:"onLoad",value:function(n){if(!0===n.param){var l=this.route.snapshot.paramMap.get("service");if(void 0!==l){this.selectedTab=1;var c=n.table;c.dataSource.data.forEach(function(p){p.id===l&&c.selection.select(p)})}}}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Vr),z(rn),z(Ot))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),K(4,"arrow_back"),B()(),K(5," \xa0"),Se(6,"img",4),K(7),B(),te(8,Sne,19,17,"div",5),B()),2&r&&(G(2),U("routerLink",xs(4,Mne,n.services.parentId)),G(4),U("src",n.api.staticURL("admin/img/icons/services.png"),Qt),G(1),Le(" \xa0",null==n.provider?null:n.provider.name," "),G(1),U("ngIf",null!==n.provider))},directives:[Al,en,Hl,Hs,rs,Gn,IH,Kr,HS],styles:[""]}),i}(),ZQ=function(){var i=function(){function s(r,n,l){R(this,s),this.api=r,this.route=n,this.rest=l}return L(s,[{key:"ngOnInit",value:function(){this.route.snapshot.paramMap.get("authenticator")}},{key:"onDetail",value:function(n){this.api.navigation.gotoAuthenticatorDetail(n.param.id)}},{key:"onNew",value:function(n){this.api.gui.forms.typedNewForm(n,django.gettext("New Authenticator"),!0)}},{key:"onEdit",value:function(n){this.api.gui.forms.typedEditForm(n,django.gettext("Edit Authenticator"),!0)}},{key:"onDelete",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete Authenticator"))}},{key:"onLoad",value:function(n){!0===n.param&&n.table.selectElement("id",this.route.snapshot.paramMap.get("authenticator"))}},{key:"processElement",value:function(n){n.visible=this.api.yesno(n.visible)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(Vr),z(rn))},i.\u0275cmp=ke({type:i,selectors:[["uds-authenticators"]],decls:2,vars:6,consts:[["icon","authenticators",3,"rest","multiSelect","allowExport","hasPermissions","onItem","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(r,n){1&r&&(I(0,"div")(1,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),B()()),2&r&&(G(1),U("rest",n.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",n.processElement)("pageSize",n.api.config.admin.page_size))},directives:[Kr],styles:[""]}),i}(),kne=["panel"];function Dne(i,s){if(1&i&&(I(0,"div",0,1),Gt(2),B()),2&i){var r=s.id,n=Q();U("id",n.id)("ngClass",n._classList),lt("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(r))}}var xne=["*"],Tne=0,Ane=L(function i(s,r){R(this,i),this.source=s,this.option=r}),Ene=bc(function(){return L(function i(){R(this,i)})}()),XQ=new Ae("mat-autocomplete-default-options",{providedIn:"root",factory:function Pne(){return{autoActiveFirstOption:!1}}}),One=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_){var w;return R(this,n),(w=r.call(this))._changeDetectorRef=l,w._elementRef=c,w._activeOptionChanges=Te.EMPTY,w.showPanel=!1,w._isOpen=!1,w.displayWith=null,w.optionSelected=new ye,w.opened=new ye,w.closed=new ye,w.optionActivated=new ye,w._classList={},w.id="mat-autocomplete-".concat(Tne++),w.inertGroups=(null==_?void 0:_.SAFARI)||!1,w._autoActiveFirstOption=!!p.autoActiveFirstOption,w}return L(n,[{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(c){this._autoActiveFirstOption=gt(c)}},{key:"classList",set:function(c){this._classList=c&&c.length?qw(c).reduce(function(p,_){return p[_]=!0,p},{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}},{key:"ngAfterContentInit",value:function(){var c=this;this._keyManager=new b3(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(function(p){c.isOpen&&c.optionActivated.emit({source:c,option:c.options.toArray()[p]||null})}),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(c){this.panel&&(this.panel.nativeElement.scrollTop=c)}},{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(c){var p=new Ane(this,c);this.optionSelected.emit(p)}},{key:"_getPanelAriaLabelledby",value:function(c){return this.ariaLabel?null:this.ariaLabelledby?(c?c+" ":"")+this.ariaLabelledby:c}},{key:"_setVisibilityClasses",value:function(c){c[this._visibleClass]=this.showPanel,c[this._hiddenClass]=!this.showPanel}}]),n}(Ene);return i.\u0275fac=function(r){return new(r||i)(z(hn),z(tt),z(XQ),z(pn))},i.\u0275dir=be({type:i,viewQuery:function(r,n){var l;1&r&&(Rt(hr,7),Rt(kne,5)),2&r&&(Ve(l=Ge())&&(n.template=l.first),Ve(l=Ge())&&(n.panel=l.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[Re]}),i}(),Iq=function(){var i=function(s){se(n,s);var r=ue(n);function n(){var l;return R(this,n),(l=r.apply(this,arguments))._visibleClass="mat-autocomplete-visible",l._hiddenClass="mat-autocomplete-hidden",l}return L(n)}(One);return i.\u0275fac=function(){var s;return function(n){return(s||(s=cn(i)))(n||i)}}(),i.\u0275cmp=ke({type:i,selectors:[["mat-autocomplete"]],contentQueries:function(r,n,l){var c;1&r&&(Mn(l,$1,5),Mn(l,Pi,5)),2&r&&(Ve(c=Ge())&&(n.optionGroups=c),Ve(c=Ge())&&(n.options=c))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[ft([{provide:Xy,useExisting:i}]),Re],ngContentSelectors:xne,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(r,n){1&r&&(vi(),te(0,Dne,3,4,"ng-template"))},directives:[As],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}),i}(),KQ=new Ae("mat-autocomplete-scroll-strategy"),Rne={provide:KQ,deps:[aa],useFactory:function Ine(i){return function(){return i.scrollStrategies.reposition()}}},Lne={provide:Ga,useExisting:En(function(){return RH}),multi:!0},Fne=function(){var i=function(){function s(r,n,l,c,p,_,w,M,A,O,F){var Y=this;R(this,s),this._element=r,this._overlay=n,this._viewContainerRef=l,this._zone=c,this._changeDetectorRef=p,this._dir=w,this._formField=M,this._document=A,this._viewportRuler=O,this._defaults=F,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Te.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Xe,this._windowBlurHandler=function(){Y._canOpenOnNextFocus=Y._document.activeElement!==Y._element.nativeElement||Y.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Sw(function(){var $=Y.autocomplete?Y.autocomplete.options:null;return $?$.changes.pipe(na($),_a(function(){return Rr.apply(void 0,yt($.map(function(oe){return oe.onSelectionChange})))})):Y._zone.onStable.pipe(gn(1),_a(function(){return Y.optionSelections}))}),this._scrollStrategy=_}return L(s,[{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(n){this._autocompleteDisabled=gt(n)}},{key:"ngAfterViewInit",value:function(){var n=this,l=this._getWindow();void 0!==l&&this._zone.runOutsideAngular(function(){return l.addEventListener("blur",n._windowBlurHandler)})}},{key:"ngOnChanges",value:function(n){n.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var n=this._getWindow();void 0!==n&&n.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(){var n=this;this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(function(){n.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 n=this;return Rr(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Ur(function(){return n._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Ur(function(){return n._overlayAttached})):dt()).pipe(on(function(l){return l instanceof UB?l:null}))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}},{key:"_getOutsideClickStream",value:function(){var n=this;return Rr(gu(this._document,"click"),gu(this._document,"auxclick"),gu(this._document,"touchend")).pipe(Ur(function(l){var c=hc(l),p=n._formField?n._formField._elementRef.nativeElement:null,_=n.connectedTo?n.connectedTo.elementRef.nativeElement:null;return n._overlayAttached&&c!==n._element.nativeElement&&n._document.activeElement!==n._element.nativeElement&&(!p||!p.contains(c))&&(!_||!_.contains(c))&&!!n._overlayRef&&!n._overlayRef.overlayElement.contains(c)}))}},{key:"writeValue",value:function(n){var l=this;Promise.resolve().then(function(){return l._setTriggerValue(n)})}},{key:"registerOnChange",value:function(n){this._onChange=n}},{key:"registerOnTouched",value:function(n){this._onTouched=n}},{key:"setDisabledState",value:function(n){this._element.nativeElement.disabled=n}},{key:"_handleKeydown",value:function(n){var l=n.keyCode,c=ia(n);if(27===l&&!c&&n.preventDefault(),this.activeOption&&13===l&&this.panelOpen&&!c)this.activeOption._selectViaInteraction(),this._resetActiveItem(),n.preventDefault();else if(this.autocomplete){var p=this.autocomplete._keyManager.activeItem,_=38===l||40===l;9===l||_&&!c&&this.panelOpen?this.autocomplete._keyManager.onKeydown(n):_&&this._canOpen()&&this.openPanel(),(_||this.autocomplete._keyManager.activeItem!==p)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}},{key:"_handleInput",value:function(n){var l=n.target,c=l.value;"number"===l.type&&(c=""==c?null:parseFloat(c)),this._previousValue!==c&&(this._previousValue=c,this._onChange(c),this._canOpen()&&this._document.activeElement===n.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:"_handleClick",value:function(){this._canOpen()&&!this.panelOpen&&this.openPanel()}},{key:"_floatLabel",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(n?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 n=this;return Rr(this._zone.onStable.pipe(gn(1)),this.autocomplete.options.changes.pipe(ao(function(){return n._positionStrategy.reapplyLastPosition()}),PH(0))).pipe(_a(function(){return n._zone.run(function(){var p=n.panelOpen;n._resetActiveItem(),n.autocomplete._setVisibility(),n._changeDetectorRef.detectChanges(),n.panelOpen&&(n._overlayRef.updatePosition(),p!==n.panelOpen&&n.autocomplete.opened.emit())}),n.panelClosingActions}),gn(1)).subscribe(function(p){return n._setValueAndClose(p)})}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(n){var l=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(n):n,c=null!=l?l:"";this._formField?this._formField._control.value=c:this._element.nativeElement.value=c,this._previousValue=c}},{key:"_setValueAndClose",value:function(n){var l=n&&n.source;l&&(this._clearPreviousSelectedOption(l),this._setTriggerValue(l.value),this._onChange(l.value),this.autocomplete._emitSelectEvent(l),this._element.nativeElement.focus()),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(n){this.autocomplete.options.forEach(function(l){l!==n&&l.selected&&l.deselect()})}},{key:"_attachOverlay",value:function(){var l,n=this,c=this._overlayRef;c?(this._positionStrategy.setOrigin(this._getConnectedElement()),c.updateSize({width:this._getPanelWidth()})):(this._portal=new es(this.autocomplete.template,this._viewContainerRef,{id:null===(l=this._formField)||void 0===l?void 0:l.getLabelId()}),c=this._overlay.create(this._getOverlayConfig()),this._overlayRef=c,c.keydownEvents().subscribe(function(_){(27===_.keyCode&&!ia(_)||38===_.keyCode&&ia(_,"altKey"))&&(n._closeKeyEventStream.next(),n._resetActiveItem(),_.stopPropagation(),_.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(function(){n.panelOpen&&c&&c.updateSize({width:n._getPanelWidth()})})),c&&!c.hasAttached()&&(c.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var p=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&p!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){var n;return new Ff({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(n=this._defaults)||void 0===n?void 0:n.overlayPanelClass})}},{key:"_getOverlayPosition",value:function(){var n=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(n),this._positionStrategy=n,n}},{key:"_setStrategyPositions",value:function(n){var _,l=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],c=this._aboveClass,p=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:c},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:c}];_="above"===this.position?p:"below"===this.position?l:[].concat(l,p),n.withPositions(_)}},{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 n=this.autocomplete;n.autoActiveFirstOption?n._keyManager.setFirstItemActive():n._keyManager.setActiveItem(-1)}},{key:"_canOpen",value:function(){var n=this._element.nativeElement;return!n.readOnly&&!n.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var n;return(null===(n=this._document)||void 0===n?void 0:n.defaultView)||window}},{key:"_scrollToOption",value:function(n){var l=this.autocomplete,c=cE(n,l.options,l.optionGroups);if(0===n&&1===c)l._setScrollTop(0);else if(l.panel){var p=l.options.toArray()[n];if(p){var _=p._getHostElement(),w=jB(_.offsetTop,_.offsetHeight,l._getScrollTop(),l.panel.nativeElement.offsetHeight);l._setScrollTop(w)}}}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(tt),z(aa),z(wr),z(Pt),z(hn),z(KQ),z(Ei,8),z(pb,9),z(Jt,8),z(Ls),z(XQ,8))},i.\u0275dir=be({type:i,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[xn]}),i}(),RH=function(){var i=function(s){se(n,s);var r=ue(n);function n(){var l;return R(this,n),(l=r.apply(this,arguments))._aboveClass="mat-autocomplete-panel-above",l}return L(n)}(Fne);return i.\u0275fac=function(){var s;return function(n){return(s||(s=cn(i)))(n||i)}}(),i.\u0275dir=be({type:i,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(r,n){1&r&&ne("focusin",function(){return n._handleFocus()})("blur",function(){return n._onTouched()})("input",function(c){return n._handleInput(c)})("keydown",function(c){return n._handleKeydown(c)})("click",function(){return n._handleClick()}),2&r&<("autocomplete",n.autocompleteAttribute)("role",n.autocompleteDisabled?null:"combobox")("aria-autocomplete",n.autocompleteDisabled?null:"list")("aria-activedescendant",n.panelOpen&&n.activeOption?n.activeOption.id:null)("aria-expanded",n.autocompleteDisabled?null:n.panelOpen.toString())("aria-owns",n.autocompleteDisabled||!n.panelOpen||null==n.autocomplete?null:n.autocomplete.id)("aria-haspopup",n.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[ft([Lne]),Re]}),i}(),Nne=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({providers:[Rne],imports:[[Nf,Q1,vn,io],If,Q1,vn]}),i}();function Bne(i,s){if(1&i&&(I(0,"div")(1,"uds-translate"),K(2,"Edit user"),B(),K(3),B()),2&i){var r=Q();G(3),Le(" ",r.user.name," ")}}function Vne(i,s){1&i&&(I(0,"uds-translate"),K(1,"New user"),B())}function Hne(i,s){if(1&i){var r=xe();I(0,"mat-form-field")(1,"mat-label"),K(2),B(),I(3,"input",19),ne("ngModelChange",function(c){return he(r),Q().user.name=c}),B()()}if(2&i){var n=Q();G(2),Le(" ",n.authenticator.type_info.userNameLabel," "),G(1),U("ngModel",n.user.name)("disabled",n.user.id)}}function zne(i,s){if(1&i&&(I(0,"mat-option",22),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),th(" ",r.id," (",r.name,") ")}}function Gne(i,s){if(1&i){var r=xe();I(0,"mat-form-field")(1,"mat-label"),K(2),B(),I(3,"input",20),ne("ngModelChange",function(p){return he(r),Q().user.name=p})("input",function(p){return he(r),Q().filterUser(p)}),B(),I(4,"mat-autocomplete",null,21),te(6,zne,2,3,"mat-option",16),B()()}if(2&i){var n=Dn(5),l=Q();G(2),Le(" ",l.authenticator.type_info.userNameLabel," "),G(1),U("ngModel",l.user.name)("matAutocomplete",n),G(3),U("ngForOf",l.users)}}function Une(i,s){if(1&i){var r=xe();I(0,"mat-form-field")(1,"mat-label"),K(2),B(),I(3,"input",23),ne("ngModelChange",function(c){return he(r),Q().user.password=c}),B()()}if(2&i){var n=Q();G(2),Le(" ",n.authenticator.type_info.passwordLabel," "),G(1),U("ngModel",n.user.password)}}function jne(i,s){if(1&i&&(I(0,"mat-option",22),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.name," ")}}var $Q=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.onSave=new ye(!0),this.users=[],this.authenticator=c.authenticator,this.user={id:void 0,name:"",real_name:"",comments:"",state:"A",is_admin:!1,staff_member:!1,password:"",role:"user",groups:[]},void 0!==c.user&&(this.user.id=c.user.id,this.user.name=c.user.name)}return L(s,[{key:"ngOnInit",value:function(){var n=this;this.rest.authenticators.detail(this.authenticator.id,"groups").overview().subscribe(function(l){n.groups=l}),this.user.id&&this.rest.authenticators.detail(this.authenticator.id,"users").get(this.user.id).subscribe(function(l){n.user=l,n.user.role=l.is_admin?"admin":l.staff_member?"staff":"user"},function(l){n.dialogRef.close()})}},{key:"roleChanged",value:function(n){this.user.is_admin="admin"===n,this.user.staff_member="admin"===n||"staff"===n}},{key:"filterUser",value:function(n){var l=this;this.rest.authenticators.search(this.authenticator.id,"user",n.target.value,100).subscribe(function(p){l.users.length=0,p.forEach(function(_){l.users.push(_)})})}},{key:"save",value:function(){var n=this;this.rest.authenticators.detail(this.authenticator.id,"users").save(this.user).subscribe(function(l){n.dialogRef.close(),n.onSave.emit(!0)})}}],[{key:"launch",value:function(n,l,c){var p=window.innerWidth<800?"60%":"40%";return n.gui.dialog.open(s,{width:p,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:l,user:c},disableClose:!1}).componentInstance.onSave}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){if(1&r&&(I(0,"h4",0),te(1,Bne,4,1,"div",1),te(2,Vne,2,0,"ng-template",null,2,Ko),B(),I(4,"mat-dialog-content")(5,"div",3),te(6,Hne,4,3,"mat-form-field",4),te(7,Gne,7,4,"mat-form-field",4),I(8,"mat-form-field")(9,"mat-label")(10,"uds-translate"),K(11,"Real name"),B()(),I(12,"input",5),ne("ngModelChange",function(p){return n.user.real_name=p}),B()(),I(13,"mat-form-field")(14,"mat-label")(15,"uds-translate"),K(16,"Comments"),B()(),I(17,"input",6),ne("ngModelChange",function(p){return n.user.comments=p}),B()(),I(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),K(21,"State"),B()(),I(22,"mat-select",7),ne("ngModelChange",function(p){return n.user.state=p}),I(23,"mat-option",8)(24,"uds-translate"),K(25,"Enabled"),B()(),I(26,"mat-option",9)(27,"uds-translate"),K(28,"Disabled"),B()(),I(29,"mat-option",10)(30,"uds-translate"),K(31,"Blocked"),B()()()(),I(32,"mat-form-field")(33,"mat-label")(34,"uds-translate"),K(35,"Role"),B()(),I(36,"mat-select",11),ne("ngModelChange",function(p){return n.user.role=p})("valueChange",function(p){return n.roleChanged(p)}),I(37,"mat-option",12)(38,"uds-translate"),K(39,"Admin"),B()(),I(40,"mat-option",13)(41,"uds-translate"),K(42,"Staff member"),B()(),I(43,"mat-option",14)(44,"uds-translate"),K(45,"User"),B()()()(),te(46,Une,4,2,"mat-form-field",4),I(47,"mat-form-field")(48,"mat-label")(49,"uds-translate"),K(50,"Groups"),B()(),I(51,"mat-select",15),ne("ngModelChange",function(p){return n.user.groups=p}),te(52,jne,2,2,"mat-option",16),B()()()(),I(53,"mat-dialog-actions")(54,"button",17)(55,"uds-translate"),K(56,"Cancel"),B()(),I(57,"button",18),ne("click",function(){return n.save()}),I(58,"uds-translate"),K(59,"Ok"),B()()()),2&r){var l=Dn(3);G(1),U("ngIf",n.user.id)("ngIfElse",l),G(5),U("ngIf",!1===n.authenticator.type_info.canSearchUsers||n.user.id),G(1),U("ngIf",!0===n.authenticator.type_info.canSearchUsers&&!n.user.id),G(5),U("ngModel",n.user.real_name),G(5),U("ngModel",n.user.comments),G(5),U("ngModel",n.user.state),G(14),U("ngModel",n.user.role),G(10),U("ngIf",n.authenticator.type_info.needsPassword),G(5),U("ngModel",n.user.groups),G(1),U("ngForOf",n.groups)}},directives:[si,en,Gn,jr,or,Tr,ua,yi,pr,ar,RH,Iq,ir,Pi,Ua,li,qn,_i],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%]{width:100%}"]}),i}(),Wne=["thumbContainer"],Yne=["toggleBar"],qne=["input"],Zne=function(s){return{enterDuration:s}},Xne=["*"],Kne=new Ae("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),$ne=0,Qne={provide:Ga,useExisting:En(function(){return zS}),multi:!0},Jne=L(function i(s,r){R(this,i),this.source=s,this.checked=r}),ere=Z1(yc(bc(Fl(function(){return L(function i(s){R(this,i),this._elementRef=s})}())))),zS=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w,M){var A;return R(this,n),(A=r.call(this,l))._focusMonitor=c,A._changeDetectorRef=p,A.defaults=w,A._onChange=function(O){},A._onTouched=function(){},A._uniqueId="mat-slide-toggle-".concat(++$ne),A._required=!1,A._checked=!1,A.name=null,A.id=A._uniqueId,A.labelPosition="after",A.ariaLabel=null,A.ariaLabelledby=null,A.change=new ye,A.toggleChange=new ye,A.tabIndex=parseInt(_)||0,A.color=A.defaultColor=w.color||"accent",A._noopAnimations="NoopAnimations"===M,A}return L(n,[{key:"required",get:function(){return this._required},set:function(c){this._required=gt(c)}},{key:"checked",get:function(){return this._checked},set:function(c){this._checked=gt(c),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"ngAfterContentInit",value:function(){var c=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(p){p||Promise.resolve().then(function(){return c._onTouched()})})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_onChangeEvent",value:function(c){c.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(c){c.stopPropagation()}},{key:"writeValue",value:function(c){this.checked=!!c}},{key:"registerOnChange",value:function(c){this._onChange=c}},{key:"registerOnTouched",value:function(c){this._onTouched=c}},{key:"setDisabledState",value:function(c){this.disabled=c,this._changeDetectorRef.markForCheck()}},{key:"focus",value:function(c,p){p?this._focusMonitor.focusVia(this._inputElement,p,c):this._inputElement.nativeElement.focus(c)}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(new Jne(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}}]),n}(ere);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(Rl),z(hn),Ho("tabindex"),z(Kne),z(mi,8))},i.\u0275cmp=ke({type:i,selectors:[["mat-slide-toggle"]],viewQuery:function(r,n){var l;1&r&&(Rt(Wne,5),Rt(Yne,5),Rt(qne,5)),2&r&&(Ve(l=Ge())&&(n._thumbEl=l.first),Ve(l=Ge())&&(n._thumbBarEl=l.first),Ve(l=Ge())&&(n._inputElement=l.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(r,n){2&r&&(bl("id",n.id),lt("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),Ze("mat-checked",n.checked)("mat-disabled",n.disabled)("mat-slide-toggle-label-before","before"==n.labelPosition)("_mat-animation-noopable",n._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[ft([Qne]),Re],ngContentSelectors:Xne,decls:16,vars:20,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(r,n){if(1&r&&(vi(),I(0,"label",0,1)(2,"span",2,3)(4,"input",4,5),ne("change",function(_){return n._onChangeEvent(_)})("click",function(_){return n._onInputClick(_)}),B(),I(6,"span",6,7),Se(8,"span",8),I(9,"span",9),Se(10,"span",10),B()()(),I(11,"span",11,12),ne("cdkObserveContent",function(){return n._onLabelTextChange()}),I(13,"span",13),K(14,"\xa0"),B(),Gt(15),B()()),2&r){var l=Dn(1),c=Dn(12);lt("for",n.inputId),G(2),Ze("mat-slide-toggle-bar-no-side-margin",!c.textContent||!c.textContent.trim()),G(2),U("id",n.inputId)("required",n.required)("tabIndex",n.tabIndex)("checked",n.checked)("disabled",n.disabled),lt("name",n.name)("aria-checked",n.checked)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby)("aria-describedby",n.ariaDescribedby),G(5),U("matRippleTrigger",l)("matRippleDisabled",n.disableRipple||n.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",xs(18,Zne,n._noopAnimations?0:150))}},directives:[Nl,p1],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;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%;display:block}.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}),i}(),tre={provide:Gi,useExisting:En(function(){return QQ}),multi:!0},QQ=function(){var i=function(s){se(n,s);var r=ue(n);function n(){return R(this,n),r.apply(this,arguments)}return L(n)}(ib);return i.\u0275fac=function(){var s;return function(n){return(s||(s=cn(i)))(n||i)}}(),i.\u0275dir=be({type:i,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[ft([tre]),Re]}),i}(),JQ=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({}),i}(),nre=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[JQ,Cc,vn,Ny],JQ,vn]}),i}();function rre(i,s){if(1&i&&(I(0,"div")(1,"uds-translate"),K(2,"Edit group"),B(),K(3),B()),2&i){var r=Q();G(3),Le(" ",r.group.name," ")}}function ire(i,s){1&i&&(I(0,"uds-translate"),K(1,"New group"),B())}function are(i,s){if(1&i){var r=xe();I(0,"mat-form-field")(1,"mat-label"),K(2),B(),I(3,"input",13),ne("ngModelChange",function(c){return he(r),Q(2).group.name=c}),B()()}if(2&i){var n=Q(2);G(2),Le(" ",n.authenticator.type_info.groupNameLabel," "),G(1),U("ngModel",n.group.name)("disabled",n.group.id)}}function ore(i,s){if(1&i&&(I(0,"mat-option",17),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),th(" ",r.id," (",r.name,") ")}}function sre(i,s){if(1&i){var r=xe();I(0,"mat-form-field")(1,"mat-label"),K(2),B(),I(3,"input",14),ne("ngModelChange",function(p){return he(r),Q(2).group.name=p})("input",function(p){return he(r),Q(2).filterGroup(p)}),B(),I(4,"mat-autocomplete",null,15),te(6,ore,2,3,"mat-option",16),B()()}if(2&i){var n=Dn(5),l=Q(2);G(2),Le(" ",l.authenticator.type_info.groupNameLabel," "),G(1),U("ngModel",l.group.name)("matAutocomplete",n),G(3),U("ngForOf",l.fltrGroup)}}function lre(i,s){if(1&i&&(Rn(0),te(1,are,4,3,"mat-form-field",12),te(2,sre,7,4,"mat-form-field",12),On()),2&i){var r=Q();G(1),U("ngIf",!1===r.authenticator.type_info.canSearchGroups||r.group.id),G(1),U("ngIf",!0===r.authenticator.type_info.canSearchGroups&&!r.group.id)}}function ure(i,s){if(1&i){var r=xe();I(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),K(3,"Meta group name"),B()(),I(4,"input",13),ne("ngModelChange",function(c){return he(r),Q().group.name=c}),B()()}if(2&i){var n=Q();G(4),U("ngModel",n.group.name)("disabled",n.group.id)}}function cre(i,s){if(1&i&&(I(0,"mat-option",17),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.name," ")}}function fre(i,s){if(1&i){var r=xe();Rn(0),I(1,"mat-form-field")(2,"mat-label")(3,"uds-translate"),K(4,"Service Pools"),B()(),I(5,"mat-select",18),ne("ngModelChange",function(c){return he(r),Q().group.pools=c}),te(6,cre,2,2,"mat-option",16),B()(),On()}if(2&i){var n=Q();G(5),U("ngModel",n.group.pools),G(1),U("ngForOf",n.servicePools)}}function dre(i,s){if(1&i&&(I(0,"mat-option",17),K(1),B()),2&i){var r=Q().$implicit;U("value",r.id),G(1),Le(" ",r.name," ")}}function hre(i,s){if(1&i&&(Rn(0),te(1,dre,2,2,"mat-option",22),On()),2&i){var r=s.$implicit;G(1),U("ngIf","group"===r.type)}}function pre(i,s){if(1&i){var r=xe();I(0,"div",19)(1,"span",20)(2,"uds-translate"),K(3,"Match mode"),B()(),I(4,"mat-slide-toggle",6),ne("ngModelChange",function(c){return he(r),Q().group.meta_if_any=c}),K(5),B()(),I(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),K(9,"Selected Groups"),B()(),I(10,"mat-select",18),ne("ngModelChange",function(c){return he(r),Q().group.groups=c}),te(11,hre,2,1,"ng-container",21),B()()}if(2&i){var n=Q();G(4),U("ngModel",n.group.meta_if_any),G(1),Le(" ",n.getMatchValue()," "),G(5),U("ngModel",n.group.groups),G(1),U("ngForOf",n.groups)}}var eJ=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.onSave=new ye(!0),this.fltrGroup=[],this.authenticator=c.authenticator,this.group={id:void 0,type:c.groupType,name:"",comments:"",meta_if_any:!1,state:"A",groups:[],pools:[]},void 0!==c.group&&(this.group.id=c.group.id,this.group.type=c.group.type,this.group.name=c.group.name)}return L(s,[{key:"ngOnInit",value:function(){var n=this,l=this.rest.authenticators.detail(this.authenticator.id,"groups");void 0!==this.group.id&&l.get(this.group.id).subscribe(function(c){n.group=c},function(c){n.dialogRef.close()}),"meta"===this.group.type?l.summary().subscribe(function(c){return n.groups=c}):this.rest.servicesPools.summary().subscribe(function(c){return n.servicePools=c})}},{key:"filterGroup",value:function(n){var l=this;this.rest.authenticators.search(this.authenticator.id,"group",n.target.value,100).subscribe(function(p){l.fltrGroup.length=0,p.forEach(function(_){l.fltrGroup.push(_)})})}},{key:"getMatchValue",value:function(){return this.group.meta_if_any?django.gettext("Any"):django.gettext("All")}},{key:"save",value:function(){var n=this;this.rest.authenticators.detail(this.authenticator.id,"groups").save(this.group).subscribe(function(l){n.dialogRef.close(),n.onSave.emit(!0)})}}],[{key:"launch",value:function(n,l,c,p){var _=window.innerWidth<800?"60%":"40%";return n.gui.dialog.open(s,{width:_,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:l,groupType:c,group:p},disableClose:!0}).componentInstance.onSave}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){if(1&r&&(I(0,"h4",0),te(1,rre,4,1,"div",1),te(2,ire,2,0,"ng-template",null,2,Ko),B(),I(4,"mat-dialog-content")(5,"div",3),te(6,lre,3,2,"ng-container",1),te(7,ure,5,2,"ng-template",null,4,Ko),I(9,"mat-form-field")(10,"mat-label")(11,"uds-translate"),K(12,"Comments"),B()(),I(13,"input",5),ne("ngModelChange",function(w){return n.group.comments=w}),B()(),I(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),K(17,"State"),B()(),I(18,"mat-select",6),ne("ngModelChange",function(w){return n.group.state=w}),I(19,"mat-option",7)(20,"uds-translate"),K(21,"Enabled"),B()(),I(22,"mat-option",8)(23,"uds-translate"),K(24,"Disabled"),B()()()(),te(25,fre,7,2,"ng-container",1),te(26,pre,12,4,"ng-template",null,9,Ko),B()(),I(28,"mat-dialog-actions")(29,"button",10)(30,"uds-translate"),K(31,"Cancel"),B()(),I(32,"button",11),ne("click",function(){return n.save()}),I(33,"uds-translate"),K(34,"Ok"),B()()()),2&r){var l=Dn(3),c=Dn(8),p=Dn(27);G(1),U("ngIf",n.group.id)("ngIfElse",l),G(5),U("ngIf","group"===n.group.type)("ngIfElse",c),G(7),U("ngModel",n.group.comments),G(5),U("ngModel",n.group.state),G(7),U("ngIf","group"===n.group.type)("ngIfElse",p)}},directives:[si,en,Gn,jr,or,Tr,ua,yi,pr,ar,RH,Iq,ir,Pi,Ua,zS,li,qn,_i],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%]{width:100%}.label-match[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;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:0px 0px;white-space:nowrap}"]}),i}();function vre(i,s){1&i&&(I(0,"uds-translate"),K(1,"Groups"),B())}function gre(i,s){if(1&i&&(I(0,"mat-tab"),te(1,vre,2,0,"ng-template",3),Se(2,"uds-table",4),B()),2&i){var r=Q();G(2),U("rest",r.group)("pageSize",6)}}function mre(i,s){1&i&&(I(0,"uds-translate"),K(1,"Services Pools"),B())}function _re(i,s){if(1&i&&(I(0,"mat-tab"),te(1,mre,2,0,"ng-template",3),Se(2,"uds-table",4),B()),2&i){var r=Q();G(2),U("rest",r.servicesPools)("pageSize",6)}}function yre(i,s){1&i&&(I(0,"uds-translate"),K(1,"Assigned Services"),B())}function bre(i,s){if(1&i&&(I(0,"mat-tab"),te(1,yre,2,0,"ng-template",3),Se(2,"uds-table",4),B()),2&i){var r=Q();G(2),U("rest",r.userServices)("pageSize",6)}}var Cre=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],wre=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],Sre=[{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")}],Mre=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.users=c.users,this.user=c.user}return L(s,[{key:"ngOnInit",value:function(){var n=this;this.rest.authenticators.detail(this.users.parentId,"users").get(this.user.id).subscribe(function(l){n.group=new mb(django.gettext("Groups"),function(){return n.rest.authenticators.detail(n.users.parentId,"groups").overview().pipe(on(function(M){return M.filter(function(A){return l.groups.includes(A.id)})}))},Cre,n.user.id+"infogrp"),n.servicesPools=new mb(django.gettext("Services Pools"),function(){return n.users.invoke(n.user.id+"/servicesPools")},wre,n.user.id+"infopool"),n.userServices=new mb(django.gettext("Assigned services"),function(){return n.users.invoke(n.user.id+"/userServices").pipe(on(function(M){return M.map(function(A){return A.in_use=n.api.yesno(A.in_use),A})}))},Sre,n.user.id+"userservpool")})}}],[{key:"launch",value:function(n,l,c){var p=window.innerWidth<800?"80%":"60%";n.gui.dialog.open(s,{width:p,position:{top:window.innerWidth<800?"0px":"7rem"},data:{users:l,user:c},disableClose:!1})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"h4",0)(1,"uds-translate"),K(2,"Information for"),B(),K(3),B(),I(4,"mat-dialog-content")(5,"mat-tab-group"),te(6,gre,3,2,"mat-tab",1),te(7,_re,3,2,"mat-tab",1),te(8,bre,3,2,"mat-tab",1),B()(),I(9,"mat-dialog-actions")(10,"button",2)(11,"uds-translate"),K(12,"Ok"),B()()()),2&r&&(G(3),Le(" ",n.user.name,"\n"),G(3),U("ngIf",n.group),G(1),U("ngIf",n.servicesPools),G(1),U("ngIf",n.userServices))},directives:[si,Gn,jr,Hl,en,Hs,rs,Kr,li,qn,_i],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),i}();function kre(i,s){1&i&&(I(0,"uds-translate"),K(1,"Services Pools"),B())}function Dre(i,s){if(1&i&&(I(0,"mat-tab"),te(1,kre,2,0,"ng-template",3),Se(2,"uds-table",4),B()),2&i){var r=Q();G(2),U("rest",r.servicesPools)("pageSize",6)}}function xre(i,s){1&i&&(I(0,"uds-translate"),K(1,"Users"),B())}function Tre(i,s){if(1&i&&(I(0,"mat-tab"),te(1,xre,2,0,"ng-template",3),Se(2,"uds-table",4),B()),2&i){var r=Q();G(2),U("rest",r.users)("pageSize",6)}}function Are(i,s){1&i&&(I(0,"uds-translate"),K(1,"Groups"),B())}function Ere(i,s){if(1&i&&(I(0,"mat-tab"),te(1,Are,2,0,"ng-template",3),Se(2,"uds-table",4),B()),2&i){var r=Q();G(2),U("rest",r.groups)("pageSize",6)}}var Pre=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],Ore=[{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:ui.DATETIME}],Ire=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],Rre=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.data=c}return L(s,[{key:"ngOnInit",value:function(){var n=this,l=this.rest.authenticators.detail(this.data.groups.parentId,"groups");this.servicesPools=new mb(django.gettext("Service pools"),function(){return l.invoke(n.data.group.id+"/servicesPools")},Pre,this.data.group.id+"infopls"),this.users=new mb(django.gettext("Users"),function(){return l.invoke(n.data.group.id+"/users").pipe(on(function(M){return M.map(function(A){return A.state="A"===A.state?django.gettext("Enabled"):"I"===A.state?django.gettext("Disabled"):django.gettext("Blocked"),A})}))},Ore,this.data.group.id+"infousr"),"meta"===this.data.group.type&&(this.groups=new mb(django.gettext("Groups"),function(){return l.overview().pipe(on(function(M){return M.filter(function(A){return n.data.group.groups.includes(A.id)})}))},Ire,this.data.group.id+"infogrps"))}}],[{key:"launch",value:function(n,l,c){var p=window.innerWidth<800?"80%":"60%";n.gui.dialog.open(s,{width:p,position:{top:window.innerWidth<800?"0px":"7rem"},data:{group:c,groups:l},disableClose:!1})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"h4",0)(1,"uds-translate"),K(2,"Information for"),B()(),I(3,"mat-dialog-content")(4,"mat-tab-group"),te(5,Dre,3,2,"mat-tab",1),te(6,Tre,3,2,"mat-tab",1),te(7,Ere,3,2,"mat-tab",1),B()(),I(8,"mat-dialog-actions")(9,"button",2)(10,"uds-translate"),K(11,"Ok"),B()()()),2&r&&(G(5),U("ngIf",n.servicesPools),G(1),U("ngIf",n.users),G(1),U("ngIf",n.groups))},directives:[si,Gn,jr,Hl,en,Hs,rs,Kr,li,qn,_i],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),i}();function Lre(i,s){1&i&&(I(0,"uds-translate"),K(1,"Summary"),B())}function Fre(i,s){if(1&i&&Se(0,"uds-information",16),2&i){var r=Q(2);U("value",r.authenticator)("gui",r.gui)}}function Nre(i,s){1&i&&(I(0,"uds-translate"),K(1,"Users"),B())}function Bre(i,s){if(1&i){var r=xe();I(0,"uds-table",17),ne("loaded",function(c){return he(r),Q(2).onLoad(c)})("newAction",function(c){return he(r),Q(2).onNewUser(c)})("editAction",function(c){return he(r),Q(2).onEditUser(c)})("deleteAction",function(c){return he(r),Q(2).onDeleteUser(c)})("customButtonAction",function(c){return he(r),Q(2).onUserInformation(c)}),B()}if(2&i){var n=Q(2);U("rest",n.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+n.authenticator.id)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)}}function Vre(i,s){if(1&i){var r=xe();I(0,"uds-table",18),ne("loaded",function(c){return he(r),Q(2).onLoad(c)})("editAction",function(c){return he(r),Q(2).onEditUser(c)})("deleteAction",function(c){return he(r),Q(2).onDeleteUser(c)})("customButtonAction",function(c){return he(r),Q(2).onUserInformation(c)}),B()}if(2&i){var n=Q(2);U("rest",n.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+n.authenticator.id)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)}}function Hre(i,s){1&i&&(I(0,"uds-translate"),K(1,"Groups"),B())}function zre(i,s){1&i&&(I(0,"uds-translate"),K(1,"Logs"),B())}function Gre(i,s){if(1&i){var r=xe();I(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),ne("selectedIndexChange",function(c){return he(r),Q().selectedTab=c}),I(3,"mat-tab"),te(4,Lre,2,0,"ng-template",9),I(5,"div",10),te(6,Fre,1,2,"uds-information",11),B()(),I(7,"mat-tab"),te(8,Nre,2,0,"ng-template",9),I(9,"div",10),te(10,Bre,1,6,"uds-table",12),te(11,Vre,1,6,"uds-table",13),B()(),I(12,"mat-tab"),te(13,Hre,2,0,"ng-template",9),I(14,"div",10)(15,"uds-table",14),ne("loaded",function(c){return he(r),Q().onLoad(c)})("newAction",function(c){return he(r),Q().onNewGroup(c)})("editAction",function(c){return he(r),Q().onEditGroup(c)})("deleteAction",function(c){return he(r),Q().onDeleteGroup(c)})("customButtonAction",function(c){return he(r),Q().onGroupInformation(c)}),B()()(),I(16,"mat-tab"),te(17,zre,2,0,"ng-template",9),I(18,"div",10),Se(19,"uds-logs-table",15),B()()()()()}if(2&i){var n=Q();G(2),U("selectedIndex",n.selectedTab)("@.disabled",!0),G(4),U("ngIf",n.authenticator&&n.gui),G(4),U("ngIf",n.authenticator.type_info.canCreateUsers),G(1),U("ngIf",!n.authenticator.type_info.canCreateUsers),G(4),U("rest",n.groups)("multiSelect",!0)("allowExport",!0)("customButtons",n.customButtons)("tableId","authenticators-d-groups"+n.authenticator.id)("pageSize",n.api.config.admin.page_size),G(4),U("rest",n.rest.authenticators)("itemId",n.authenticator.id)("tableId","authenticators-d-log"+n.authenticator.id)}}var Ure=function(s){return["/authenticators",s]},Rq=function(){var i=function(){function s(r,n,l){R(this,s),this.route=r,this.rest=n,this.api=l,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:vr.ONLY_MENU}],this.authenticator=null,this.selectedTab=1,this.selectedTab=this.route.snapshot.paramMap.get("group")?2:1}return L(s,[{key:"ngOnInit",value:function(){var n=this,l=this.route.snapshot.paramMap.get("authenticator");this.users=this.rest.authenticators.detail(l,"users"),this.groups=this.rest.authenticators.detail(l,"groups"),this.rest.authenticators.get(l).subscribe(function(c){n.authenticator=c,n.rest.authenticators.gui(c.type).subscribe(function(p){n.gui=p})})}},{key:"onLoad",value:function(n){if(!0===n.param){var l=this.route.snapshot.paramMap.get("user"),c=this.route.snapshot.paramMap.get("group");n.table.selectElement("id",l||c)}}},{key:"processElement",value:function(n){n.maintenance_state=n.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}},{key:"onNewUser",value:function(n){$Q.launch(this.api,this.authenticator).subscribe(function(l){return n.table.overview()})}},{key:"onEditUser",value:function(n){$Q.launch(this.api,this.authenticator,n.table.selection.selected[0]).subscribe(function(l){return n.table.overview()})}},{key:"onDeleteUser",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete user"))}},{key:"onNewGroup",value:function(n){eJ.launch(this.api,this.authenticator,n.param.type).subscribe(function(l){return n.table.overview()})}},{key:"onEditGroup",value:function(n){eJ.launch(this.api,this.authenticator,n.param.type,n.table.selection.selected[0]).subscribe(function(l){return n.table.overview()})}},{key:"onDeleteGroup",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete group"))}},{key:"onUserInformation",value:function(n){Mre.launch(this.api,this.users,n.table.selection.selected[0])}},{key:"onGroupInformation",value:function(n){Rre.launch(this.api,this.groups,n.table.selection.selected[0])}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Vr),z(rn),z(Ot))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),K(4,"arrow_back"),B()(),K(5," \xa0"),Se(6,"img",4),K(7),B(),te(8,Gre,20,14,"div",5),B()),2&r&&(G(2),U("routerLink",xs(4,Ure,n.authenticator?n.authenticator.id:"")),G(4),U("src",n.api.staticURL("admin/img/icons/services.png"),Qt),G(1),Le(" \xa0",null==n.authenticator?null:n.authenticator.name," "),G(1),U("ngIf",n.authenticator))},directives:[Al,en,Hl,Hs,rs,Gn,IH,Kr,HS],styles:[""]}),i}(),tJ=function(){var i=function(){function s(r,n,l){R(this,s),this.api=r,this.route=n,this.rest=l}return L(s,[{key:"ngOnInit",value:function(){this.route.snapshot.paramMap.get("osmanager")}},{key:"onNew",value:function(n){this.api.gui.forms.typedNewForm(n,django.gettext("New OS Manager"),!1)}},{key:"onEdit",value:function(n){this.api.gui.forms.typedEditForm(n,django.gettext("Edit OS Manager"),!1)}},{key:"onDelete",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete OS Manager"))}},{key:"onLoad",value:function(n){!0===n.param&&n.table.selectElement("id",this.route.snapshot.paramMap.get("osmanager"))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(Vr),z(rn))},i.\u0275cmp=ke({type:i,selectors:[["uds-osmanagers"]],decls:2,vars:5,consts:[["icon","osmanagers",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(r,n){1&r&&(I(0,"div")(1,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),B()()),2&r&&(G(1),U("rest",n.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size))},directives:[Kr],styles:[""]}),i}(),nJ=function(){var i=function(){function s(r,n,l){R(this,s),this.api=r,this.route=n,this.rest=l}return L(s,[{key:"ngOnInit",value:function(){this.route.snapshot.paramMap.get("transport")}},{key:"onNew",value:function(n){this.api.gui.forms.typedNewForm(n,django.gettext("New Transport"))}},{key:"onEdit",value:function(n){this.api.gui.forms.typedEditForm(n,django.gettext("Edit Transport"))}},{key:"onDelete",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete Transport"))}},{key:"processElement",value:function(n){try{n.allowed_oss=n.allowed_oss.map(function(l){return l.id}).join(", ")}catch(l){n.allowed_oss=""}}},{key:"onLoad",value:function(n){!0===n.param&&n.table.selectElement("id",this.route.snapshot.paramMap.get("transport"))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(Vr),z(rn))},i.\u0275cmp=ke({type:i,selectors:[["uds-transports"]],decls:2,vars:7,consts:[["icon","transports",3,"rest","multiSelect","allowExport","hasPermissions","newGrouped","onItem","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(r,n){1&r&&(I(0,"div")(1,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),B()()),2&r&&(G(1),U("rest",n.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",n.processElement)("pageSize",n.api.config.admin.page_size))},directives:[Kr],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]}),i}(),rJ=function(){var i=function(){function s(r,n,l){R(this,s),this.api=r,this.route=n,this.rest=l}return L(s,[{key:"ngOnInit",value:function(){this.route.snapshot.paramMap.get("network")}},{key:"onNew",value:function(n){this.api.gui.forms.typedNewForm(n,django.gettext("New Network"),!1)}},{key:"onEdit",value:function(n){this.api.gui.forms.typedEditForm(n,django.gettext("Edit Network"),!1)}},{key:"onDelete",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete Network"))}},{key:"onLoad",value:function(n){!0===n.param&&n.table.selectElement("id",this.route.snapshot.paramMap.get("network"))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(Vr),z(rn))},i.\u0275cmp=ke({type:i,selectors:[["uds-networks"]],decls:2,vars:5,consts:[["icon","networks",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(r,n){1&r&&(I(0,"div")(1,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),B()()),2&r&&(G(1),U("rest",n.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size))},directives:[Kr],styles:[""]}),i}(),iJ=function(){var i=function(){function s(r,n,l){R(this,s),this.route=r,this.rest=n,this.api=l,this.customButtons=[is.getGotoButton(b5,"provider_id"),is.getGotoButton(C5,"provider_id","service_id"),is.getGotoButton(ip,"osmanager_id"),is.getGotoButton(sb,"pool_group_id")],this.editing=!1}return L(s,[{key:"ngOnInit",value:function(){}},{key:"onChange",value:function(n){var l=this,c=["initial_srvs","cache_l1_srvs","max_srvs"];if(null===n.on||"service_id"===n.on.field.name){if(""===n.all.service_id.value)return n.all.osmanager_id.gui.values.length=0,void c.forEach(function(p){return n.all[p].gui.rdonly=!0});this.rest.providers.service(n.all.service_id.value).subscribe(function(p){n.all.allow_users_reset.gui.rdonly=!p.info.can_reset,n.all.osmanager_id.gui.values.length=0,l.editing||(n.all.osmanager_id.gui.rdonly=!p.info.needs_manager),!0===p.info.needs_manager?l.rest.osManagers.overview().subscribe(function(_){_.forEach(function(w){w.servicesTypes.forEach(function(M){p.info.servicesTypeProvided.includes(M)&&n.all.osmanager_id.gui.values.push({id:w.id,text:w.name})})}),n.all.osmanager_id.value=n.all.osmanager_id.gui.values.length>0?n.all.osmanager_id.value||n.all.osmanager_id.gui.values[0].id:""}):(n.all.osmanager_id.gui.values.push({id:"",text:django.gettext("(This service does not requires an OS Manager)")}),n.all.osmanager_id.value=""),c.forEach(function(_){return n.all[_].gui.rdonly=!p.info.uses_cache}),n.all.cache_l2_srvs.gui.rdonly=!1===p.info.uses_cache||!1===p.info.uses_cache_l2,n.all.publish_on_save&&(n.all.publish_on_save.gui.rdonly=!p.info.needs_publication)}),c.forEach(function(p){n.all[p].gui.rdonly=!0})}}},{key:"onNew",value:function(n){var l=this;this.editing=!1,this.api.gui.forms.typedNewForm(n,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:za.CHECKBOX,order:150,defvalue:"true"}}]).subscribe(function(c){return l.onChange(c)})}},{key:"onEdit",value:function(n){var l=this;this.editing=!0,this.api.gui.forms.typedEditForm(n,django.gettext("Edit Service Pool"),!1).subscribe(function(c){return l.onChange(c)})}},{key:"onDelete",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete service pool"))}},{key:"processElement",value:function(n){n.visible=this.api.yesno(n.visible),n.show_transports=this.api.yesno(n.show_transports),n.restrained?(n.name='warning '+this.api.gui.icon(n.info.icon)+n.name,n.state="T"):(n.name=this.api.gui.icon(n.info.icon)+n.name,n.meta_member.length>0&&(n.state="V")),n.name=this.api.safeString(n.name),n.pool_group_name=this.api.safeString(this.api.gui.icon(n.pool_group_thumb)+n.pool_group_name)}},{key:"onDetail",value:function(n){this.api.navigation.gotoServicePoolDetail(n.param.id)}},{key:"onLoad",value:function(n){!0===n.param&&n.table.selectElement("id",this.route.snapshot.paramMap.get("pool"))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Vr),z(rn),z(Ot))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),B()),2&r&&U("rest",n.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",n.processElement)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)},directives:[Kr],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-state, .mat-column-usage{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}"]}),i}();function jre(i,s){if(1&i&&(I(0,"mat-option",8),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.name," ")}}function Wre(i,s){if(1&i){var r=xe();I(0,"uds-mat-select-search",9),ne("changed",function(l){return he(r),Q().userFilter=l}),B()}}function Yre(i,s){if(1&i&&(I(0,"mat-option",8),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.name," ")}}var aJ=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.onSave=new ye(!0),this.auths=[],this.users=[],this.userFilter="",this.userService=c.userService,this.userServices=c.userServices}return L(s,[{key:"ngOnInit",value:function(){var n=this;this.authId=this.userService.owner_info.auth_id||"",this.userId=this.userService.owner_info.user_id||"",this.rest.authenticators.summary().subscribe(function(l){n.auths=l,n.authChanged()})}},{key:"changeAuth",value:function(n){this.userId="",this.authChanged()}},{key:"filteredUsers",value:function(){var n=this;if(!this.userFilter)return this.users;var l=new Array;return this.users.forEach(function(c){(""===n.userFilter||c.name.toLocaleLowerCase().includes(n.userFilter.toLocaleLowerCase()))&&l.push(c)}),l}},{key:"save",value:function(){var n=this;""!==this.userId&&""!==this.authId?this.userServices.save({id:this.userService.id,auth_id:this.authId,user_id:this.userId}).subscribe(function(){n.dialogRef.close(),n.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))}},{key:"authChanged",value:function(){var n=this;this.rest.authenticators.detail(this.authId,"users").summary().subscribe(function(l){n.users=l})}}],[{key:"launch",value:function(n,l,c){var p=window.innerWidth<800?"60%":"40%";return n.gui.dialog.open(s,{width:p,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:l,userServices:c},disableClose:!1}).componentInstance.onSave}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"h4",0)(1,"uds-translate"),K(2,"Change owner of assigned service"),B()(),I(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),K(8,"Authenticator"),B()(),I(9,"mat-select",2),ne("ngModelChange",function(c){return n.authId=c})("selectionChange",function(c){return n.changeAuth(c)}),te(10,jre,2,2,"mat-option",3),B()(),I(11,"mat-form-field")(12,"mat-label")(13,"uds-translate"),K(14,"User"),B()(),I(15,"mat-select",4),ne("ngModelChange",function(c){return n.userId=c}),te(16,Wre,1,0,"uds-mat-select-search",5),te(17,Yre,2,2,"mat-option",3),B()()()(),I(18,"mat-dialog-actions")(19,"button",6)(20,"uds-translate"),K(21,"Cancel"),B()(),I(22,"button",7),ne("click",function(){return n.save()}),I(23,"uds-translate"),K(24,"Ok"),B()()()),2&r&&(G(9),U("ngModel",n.authId),G(1),U("ngForOf",n.auths),G(5),U("ngModel",n.userId),G(1),U("ngIf",n.users.length>10),G(1),U("ngForOf",n.filteredUsers()))},directives:[si,Gn,jr,or,Tr,Ua,pr,ar,ir,Pi,en,kc,li,qn,_i],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%]{width:100%}"]}),i}();function qre(i,s){1&i&&(I(0,"uds-translate"),K(1,"New access rule for"),B())}function Zre(i,s){1&i&&(I(0,"uds-translate"),K(1,"Edit access rule for"),B())}function Xre(i,s){1&i&&(I(0,"uds-translate"),K(1,"Default fallback access for"),B())}function Kre(i,s){if(1&i){var r=xe();I(0,"uds-mat-select-search",11),ne("changed",function(l){return he(r),Q(2).calendarsFilter=l}),B()}}function $re(i,s){if(1&i&&(I(0,"mat-option",12),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.name," ")}}function Qre(i,s){if(1&i){var r=xe();Rn(0),I(1,"mat-form-field")(2,"mat-label")(3,"uds-translate"),K(4,"Priority"),B()(),I(5,"input",8),ne("ngModelChange",function(c){return he(r),Q().accessRule.priority=c}),B()(),I(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),K(9,"Calendar"),B()(),I(10,"mat-select",3),ne("ngModelChange",function(c){return he(r),Q().accessRule.calendarId=c}),te(11,Kre,1,0,"uds-mat-select-search",9),te(12,$re,2,2,"mat-option",10),B()(),On()}if(2&i){var n=Q();G(5),U("ngModel",n.accessRule.priority),G(5),U("ngModel",n.accessRule.calendarId),G(1),U("ngIf",n.calendars.length>10),G(1),U("ngForOf",n.filtered(n.calendars,n.calendarsFilter))}}var LH=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.onSave=new ye(!0),this.calendars=[],this.calendarsFilter="",this.pool=c.pool,this.model=c.model,this.accessRule={id:void 0,priority:0,access:"ALLOW",calendarId:""},c.accessRule&&(this.accessRule.id=c.accessRule.id)}return L(s,[{key:"ngOnInit",value:function(){var n=this;this.rest.calendars.summary().subscribe(function(l){n.calendars=l}),void 0!==this.accessRule.id&&-1!==this.accessRule.id?this.model.get(this.accessRule.id).subscribe(function(l){n.accessRule=l}):-1===this.accessRule.id&&this.model.parentModel.getFallbackAccess(this.pool.id).subscribe(function(l){return n.accessRule.access=l})}},{key:"filtered",value:function(n,l){return l?n.filter(function(c){return c.name.toLocaleLowerCase().includes(l.toLocaleLowerCase())}):n}},{key:"save",value:function(){var n=this,l=function(){n.dialogRef.close(),n.onSave.emit(!0)};-1!==this.accessRule.id?this.model.save(this.accessRule).subscribe(l):this.model.parentModel.setFallbackAccess(this.pool.id,this.accessRule.access).subscribe(l)}}],[{key:"launch",value:function(n,l,c,p){var _=window.innerWidth<800?"80%":"60%";return n.gui.dialog.open(s,{width:_,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:l,model:c,accessRule:p},disableClose:!1}).componentInstance.onSave}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"h4",0),te(1,qre,2,0,"uds-translate",1),te(2,Zre,2,0,"uds-translate",1),te(3,Xre,2,0,"uds-translate",1),K(4),B(),I(5,"mat-dialog-content")(6,"div",2),te(7,Qre,13,4,"ng-container",1),I(8,"mat-form-field")(9,"mat-label")(10,"uds-translate"),K(11,"Action"),B()(),I(12,"mat-select",3),ne("ngModelChange",function(c){return n.accessRule.access=c}),I(13,"mat-option",4),K(14," ALLOW "),B(),I(15,"mat-option",5),K(16," DENY "),B()()()()(),I(17,"mat-dialog-actions")(18,"button",6)(19,"uds-translate"),K(20,"Cancel"),B()(),I(21,"button",7),ne("click",function(){return n.save()}),I(22,"uds-translate"),K(23,"Ok"),B()()()),2&r&&(G(1),U("ngIf",void 0===n.accessRule.id),G(1),U("ngIf",void 0!==n.accessRule.id&&-1!==n.accessRule.id),G(1),U("ngIf",-1===n.accessRule.id),G(1),Le(" ",n.pool.name,"\n"),G(3),U("ngIf",-1!==n.accessRule.id),G(5),U("ngModel",n.accessRule.access))},directives:[si,en,Gn,jr,or,Tr,ua,Kf,yi,pr,ar,Ua,kc,ir,Pi,li,qn,_i],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%]{width:100%}"]}),i}();function Jre(i,s){if(1&i&&(I(0,"mat-option",8),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.name," ")}}function eie(i,s){if(1&i){var r=xe();I(0,"uds-mat-select-search",9),ne("changed",function(l){return he(r),Q().groupFilter=l}),B()}}function tie(i,s){if(1&i&&(Rn(0),K(1),On()),2&i){var r=Q().$implicit;G(1),Le(" (",r.comments,")")}}function nie(i,s){if(1&i&&(I(0,"mat-option",8),K(1),te(2,tie,2,1,"ng-container",10),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.name,""),G(1),U("ngIf",r.comments)}}var oJ=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.onSave=new ye(!0),this.model=null,this.auths=[],this.groups=[],this.groupFilter="",this.authId="",this.groupId="",this.pool=c.pool,this.model=c.model}return L(s,[{key:"ngOnInit",value:function(){var n=this;this.rest.authenticators.summary().subscribe(function(l){n.auths=l,n.authChanged()})}},{key:"changeAuth",value:function(n){this.groupId="",this.authChanged()}},{key:"filteredGroups",value:function(){var n=this;return!this.groupFilter||this.groupFilter.length<3?this.groups:this.groups.filter(function(l){return l.name.toLocaleLowerCase().includes(n.groupFilter.toLocaleLowerCase())})}},{key:"save",value:function(){var n=this;""!==this.groupId&&""!==this.authId?this.model.create({id:this.groupId}).subscribe(function(){n.dialogRef.close(),n.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid group"))}},{key:"authChanged",value:function(){var n=this;""!==this.authId&&this.rest.authenticators.detail(this.authId,"groups").summary().subscribe(function(l){n.groups=l})}}],[{key:"launch",value:function(n,l,c){var p=window.innerWidth<800?"60%":"40%";return n.gui.dialog.open(s,{width:p,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:l,model:c},disableClose:!1}).componentInstance.onSave}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"h4",0)(1,"uds-translate"),K(2,"New group for"),B(),K(3),B(),I(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),K(9,"Authenticator"),B()(),I(10,"mat-select",2),ne("ngModelChange",function(c){return n.authId=c})("selectionChange",function(c){return n.changeAuth(c)}),te(11,Jre,2,2,"mat-option",3),B()(),I(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),K(15,"Group"),B()(),I(16,"mat-select",4),ne("ngModelChange",function(c){return n.groupId=c}),te(17,eie,1,0,"uds-mat-select-search",5),te(18,nie,3,3,"mat-option",3),B()()()(),I(19,"mat-dialog-actions")(20,"button",6)(21,"uds-translate"),K(22,"Cancel"),B()(),I(23,"button",7),ne("click",function(){return n.save()}),I(24,"uds-translate"),K(25,"Ok"),B()()()),2&r&&(G(3),Le(" ",n.pool.name,"\n"),G(7),U("ngModel",n.authId),G(1),U("ngForOf",n.auths),G(5),U("ngModel",n.groupId),G(1),U("ngIf",n.groups.length>10),G(1),U("ngForOf",n.filteredGroups()))},directives:[si,Gn,jr,or,Tr,Ua,pr,ar,ir,Pi,en,kc,li,qn,_i],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%]{width:100%}"]}),i}();function rie(i,s){if(1&i){var r=xe();I(0,"uds-mat-select-search",7),ne("changed",function(l){return he(r),Q().transportsFilter=l}),B()}}function iie(i,s){if(1&i&&(Rn(0),K(1),On()),2&i){var r=Q().$implicit;G(1),Le(" (",r.comments,")")}}function aie(i,s){if(1&i&&(I(0,"mat-option",8),K(1),te(2,iie,2,1,"ng-container",9),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.name,""),G(1),U("ngIf",r.comments)}}var oie=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.onSave=new ye(!0),this.transports=[],this.transportsFilter="",this.transportId="",this.servicePool=c.servicePool}return L(s,[{key:"ngOnInit",value:function(){var n=this;this.rest.transports.summary().subscribe(function(l){n.transports=l.filter(function(c){return n.servicePool.info.allowedProtocols.includes(c.protocol)})})}},{key:"filteredTransports",value:function(){var n=this;return this.transportsFilter?this.transports.filter(function(l){return l.name.toLocaleLowerCase().includes(n.transportsFilter.toLocaleLowerCase())}):this.transports}},{key:"save",value:function(){var n=this;""!==this.transportId?this.rest.servicesPools.detail(this.servicePool.id,"transports").create({id:this.transportId}).subscribe(function(){n.dialogRef.close(),n.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid transport"))}}],[{key:"launch",value:function(n,l){var c=window.innerWidth<800?"60%":"40%";return n.gui.dialog.open(s,{width:c,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:l},disableClose:!1}).componentInstance.onSave}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"h4",0)(1,"uds-translate"),K(2,"New transport for"),B(),K(3),B(),I(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),K(9,"Transport"),B()(),I(10,"mat-select",2),ne("ngModelChange",function(c){return n.transportId=c}),te(11,rie,1,0,"uds-mat-select-search",3),te(12,aie,3,3,"mat-option",4),B()()()(),I(13,"mat-dialog-actions")(14,"button",5)(15,"uds-translate"),K(16,"Cancel"),B()(),I(17,"button",6),ne("click",function(){return n.save()}),I(18,"uds-translate"),K(19,"Ok"),B()()()),2&r&&(G(3),Le(" ",n.servicePool.name,"\n"),G(7),U("ngModel",n.transportId),G(1),U("ngIf",n.transports.length>10),G(1),U("ngForOf",n.filteredTransports()))},directives:[si,Gn,jr,or,Tr,Ua,pr,ar,en,kc,ir,Pi,li,qn,_i],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%]{width:100%}"]}),i}(),sie=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.onSave=new ye(!0),this.reason="",this.servicePool=c.servicePool}return L(s,[{key:"ngOnInit",value:function(){}},{key:"save",value:function(){var n=this;this.rest.servicesPools.detail(this.servicePool.id,"publications").invoke("publish","changelog="+encodeURIComponent(this.reason)).subscribe(function(){n.dialogRef.close(),n.onSave.emit(!0)})}}],[{key:"launch",value:function(n,l){var c=window.innerWidth<800?"60%":"40%";return n.gui.dialog.open(s,{width:c,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:l},disableClose:!1}).componentInstance.onSave}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"h4",0)(1,"uds-translate"),K(2,"New publication for"),B(),K(3),B(),I(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),K(9,"Comments"),B()(),I(10,"input",2),ne("ngModelChange",function(c){return n.reason=c}),B()()()(),I(11,"mat-dialog-actions")(12,"button",3)(13,"uds-translate"),K(14,"Cancel"),B()(),I(15,"button",4),ne("click",function(){return n.save()}),I(16,"uds-translate"),K(17,"Ok"),B()()()),2&r&&(G(3),Le(" ",n.servicePool.name,"\n"),G(7),U("ngModel",n.reason))},directives:[si,Gn,jr,or,Tr,ua,yi,pr,ar,li,qn,_i],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%]{width:100%}"]}),i}(),lie=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.onSave=new ye(!0),this.servicePool=c.servicePool}return L(s,[{key:"ngOnInit",value:function(){this.changeLogPubs=this.rest.servicesPools.detail(this.servicePool.id,"changelog")}}],[{key:"launch",value:function(n,l){var c=window.innerWidth<800?"80%":"60%";n.gui.dialog.open(s,{width:c,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:l},disableClose:!1})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"h4",0)(1,"uds-translate"),K(2,"Changelog of"),B(),K(3),B(),I(4,"mat-dialog-content"),Se(5,"uds-table",1,2),B(),I(7,"mat-dialog-actions")(8,"button",3)(9,"uds-translate"),K(10,"Ok"),B()()()),2&r&&(G(3),Le(" ",n.servicePool.name,"\n"),G(2),U("rest",n.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+n.servicePool.id))},directives:[si,Gn,jr,Kr,li,qn,_i],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),i}();function uie(i,s){1&i&&(Rn(0),I(1,"uds-translate"),K(2,"Edit action for"),B(),On())}function cie(i,s){1&i&&(I(0,"uds-translate"),K(1,"New action for"),B())}function fie(i,s){if(1&i){var r=xe();I(0,"uds-mat-select-search",14),ne("changed",function(l){return he(r),Q().calendarsFilter=l}),B()}}function die(i,s){if(1&i&&(I(0,"mat-option",15),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.name," ")}}function hie(i,s){if(1&i&&(I(0,"mat-option",15),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.description," ")}}function pie(i,s){if(1&i){var r=xe();I(0,"uds-mat-select-search",14),ne("changed",function(l){return he(r),Q(2).transportsFilter=l}),B()}}function vie(i,s){if(1&i&&(I(0,"mat-option",15),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.name," ")}}function gie(i,s){if(1&i){var r=xe();Rn(0),I(1,"mat-form-field")(2,"mat-label")(3,"uds-translate"),K(4,"Transport"),B()(),I(5,"mat-select",4),ne("ngModelChange",function(c){return he(r),Q().paramValue=c}),te(6,pie,1,0,"uds-mat-select-search",5),te(7,vie,2,2,"mat-option",6),B()(),On()}if(2&i){var n=Q();G(5),U("ngModel",n.paramValue),G(1),U("ngIf",n.transports.length>10),G(1),U("ngForOf",n.filtered(n.transports,n.transportsFilter))}}function mie(i,s){if(1&i&&(I(0,"mat-option",15),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.name," ")}}function _ie(i,s){if(1&i){var r=xe();I(0,"uds-mat-select-search",14),ne("changed",function(l){return he(r),Q(2).groupsFilter=l}),B()}}function yie(i,s){if(1&i&&(I(0,"mat-option",15),K(1),B()),2&i){var r=s.$implicit;U("value",Q(2).authenticator+"@"+r.id),G(1),Le(" ",r.name," ")}}function bie(i,s){if(1&i){var r=xe();Rn(0),I(1,"mat-form-field")(2,"mat-label")(3,"uds-translate"),K(4,"Authenticator"),B()(),I(5,"mat-select",10),ne("ngModelChange",function(c){return he(r),Q().authenticator=c})("valueChange",function(c){return he(r),Q().changedAuthenticator(c)}),te(6,mie,2,2,"mat-option",6),B()(),I(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),K(10,"Group"),B()(),I(11,"mat-select",4),ne("ngModelChange",function(c){return he(r),Q().paramValue=c}),te(12,_ie,1,0,"uds-mat-select-search",5),te(13,yie,2,2,"mat-option",6),B()(),On()}if(2&i){var n=Q();G(5),U("ngModel",n.authenticator),G(1),U("ngForOf",n.authenticators),G(5),U("ngModel",n.paramValue),G(1),U("ngIf",n.groups.length>10),G(1),U("ngForOf",n.filtered(n.groups,n.groupsFilter))}}function Cie(i,s){if(1&i){var r=xe();Rn(0),I(1,"div",8)(2,"span",16),K(3),B(),K(4,"\xa0 "),I(5,"mat-slide-toggle",4),ne("ngModelChange",function(c){return he(r),Q().paramValue=c}),B()(),On()}if(2&i){var n=Q();G(3),Ln(n.parameter.description),G(2),U("ngModel",n.paramValue)}}function wie(i,s){if(1&i){var r=xe();Rn(0),I(1,"mat-form-field")(2,"mat-label"),K(3),B(),I(4,"input",17),ne("ngModelChange",function(c){return he(r),Q().paramValue=c}),B()(),On()}if(2&i){var n=Q();G(3),Le(" ",n.parameter.description," "),G(1),U("type",n.parameter.type)("ngModel",n.paramValue)}}var Sie=function(){return["transport","group","bool"]},sJ=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.onSave=new ye(!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=c.servicePool,this.scheduledAction={id:void 0,action:"",calendar:"",calendarId:"",atStart:!0,eventsOffset:0,params:{}},void 0!==c.scheduledAction&&(this.scheduledAction.id=c.scheduledAction.id)}return L(s,[{key:"ngOnInit",value:function(){var n=this;this.rest.authenticators.summary().subscribe(function(l){return n.authenticators=l}),this.rest.transports.summary().subscribe(function(l){return n.transports=l}),this.rest.calendars.summary().subscribe(function(l){return n.calendars=l}),this.rest.servicesPools.actionsList(this.servicePool.id).subscribe(function(l){n.actionList=l,n.actionList.forEach(function(c){n.paramsDict[c.id]=c.params[0]}),void 0!==n.scheduledAction.id&&n.rest.servicesPools.detail(n.servicePool.id,"actions").get(n.scheduledAction.id).subscribe(function(c){n.scheduledAction=c,n.changedAction(n.scheduledAction.action)})})}},{key:"filtered",value:function(n,l){return l?n.filter(function(c){return c.name.toLocaleLowerCase().includes(l.toLocaleLowerCase())}):n}},{key:"changedAction",value:function(n){if(this.parameter=this.paramsDict[n],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 l=this.paramValue.split("@");2!==l.length&&(l=["",""]),this.authenticator=l[0],this.changedAuthenticator(this.authenticator)}}},{key:"changedAuthenticator",value:function(n){var l=this;!n||this.rest.authenticators.detail(n,"groups").summary().subscribe(function(c){return l.groups=c})}},{key:"save",value:function(){var n=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(){n.dialogRef.close(),n.onSave.emit(!0)})}}],[{key:"launch",value:function(n,l,c){var p=window.innerWidth<800?"80%":"60%";return n.gui.dialog.open(s,{width:p,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:l,scheduledAction:c},disableClose:!1}).componentInstance.onSave}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){if(1&r&&(I(0,"h4",0),te(1,uie,3,0,"ng-container",1),te(2,cie,2,0,"ng-template",null,2,Ko),K(4),B(),I(5,"mat-dialog-content")(6,"div",3)(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),K(10,"Calendar"),B()(),I(11,"mat-select",4),ne("ngModelChange",function(p){return n.scheduledAction.calendarId=p}),te(12,fie,1,0,"uds-mat-select-search",5),te(13,die,2,2,"mat-option",6),B()(),I(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),K(17,"Events offset (minutes)"),B()(),I(18,"input",7),ne("ngModelChange",function(p){return n.scheduledAction.eventsOffset=p}),B()(),I(19,"div",8)(20,"span",9)(21,"uds-translate"),K(22,"At the beginning of the interval?"),B()(),I(23,"mat-slide-toggle",4),ne("ngModelChange",function(p){return n.scheduledAction.atStart=p}),K(24),B()(),I(25,"mat-form-field")(26,"mat-label")(27,"uds-translate"),K(28,"Action"),B()(),I(29,"mat-select",10),ne("ngModelChange",function(p){return n.scheduledAction.action=p})("valueChange",function(p){return n.changedAction(p)}),te(30,hie,2,2,"mat-option",6),B()(),te(31,gie,8,3,"ng-container",11),te(32,bie,14,5,"ng-container",11),te(33,Cie,6,2,"ng-container",11),te(34,wie,5,3,"ng-container",11),B()(),I(35,"mat-dialog-actions")(36,"button",12)(37,"uds-translate"),K(38,"Cancel"),B()(),I(39,"button",13),ne("click",function(){return n.save()}),I(40,"uds-translate"),K(41,"Ok"),B()()()),2&r){var l=Dn(3);G(1),U("ngIf",void 0!==n.scheduledAction.id)("ngIfElse",l),G(3),Le(" ",n.servicePool.name,"\n"),G(7),U("ngModel",n.scheduledAction.calendarId),G(1),U("ngIf",n.calendars.length>10),G(1),U("ngForOf",n.filtered(n.calendars,n.calendarsFilter)),G(5),U("ngModel",n.scheduledAction.eventsOffset),G(5),U("ngModel",n.scheduledAction.atStart),G(1),Le(" ",n.api.yesno(n.scheduledAction.atStart)," "),G(5),U("ngModel",n.scheduledAction.action),G(1),U("ngForOf",n.actionList),G(1),U("ngIf","transport"===(null==n.parameter?null:n.parameter.type)),G(1),U("ngIf","group"===(null==n.parameter?null:n.parameter.type)),G(1),U("ngIf","bool"===(null==n.parameter?null:n.parameter.type)),G(1),U("ngIf",(null==n.parameter?null:n.parameter.type)&&!m_(15,Sie).includes(n.parameter.type))}},directives:[si,en,Gn,jr,or,Tr,Ua,pr,ar,kc,ir,Pi,ua,Kf,yi,zS,li,qn,_i],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%]{width:100%}.label-atstart[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;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:0px 0px;white-space:nowrap}"]}),i}(),Lq=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.onSave=new ye(!0),this.userService=c.userService,this.model=c.model}return L(s,[{key:"ngOnInit",value:function(){}}],[{key:"launch",value:function(n,l,c){var p=window.innerWidth<800?"80%":"60%";n.gui.dialog.open(s,{width:p,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:l,model:c},disableClose:!1})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"h4",0)(1,"uds-translate"),K(2,"Logs of"),B(),K(3),B(),I(4,"mat-dialog-content"),Se(5,"uds-logs-table",1),B(),I(6,"mat-dialog-actions")(7,"button",2)(8,"uds-translate"),K(9,"Ok"),B()()()),2&r&&(G(3),Le(" ",n.userService.name,"\n"),G(2),U("rest",n.model)("itemId",n.userService.id)("tableId","servicePools-d-uslog"+n.userService.id))},directives:[si,Gn,jr,HS,li,qn,_i],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),i}();function Mie(i,s){if(1&i){var r=xe();I(0,"uds-mat-select-search",8),ne("changed",function(l){return he(r),Q().assignablesServicesFilter=l}),B()}}function kie(i,s){if(1&i&&(I(0,"mat-option",9),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.text," ")}}function Die(i,s){if(1&i&&(I(0,"mat-option",9),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.name," ")}}function xie(i,s){if(1&i){var r=xe();I(0,"uds-mat-select-search",8),ne("changed",function(l){return he(r),Q().userFilter=l}),B()}}function Tie(i,s){if(1&i&&(I(0,"mat-option",9),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.name," ")}}var Aie=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.onSave=new ye(!0),this.auths=[],this.assignablesServices=[],this.assignablesServicesFilter="",this.users=[],this.userFilter="",this.servicePool=c.servicePool}return L(s,[{key:"ngOnInit",value:function(){var n=this;this.authId="",this.userId="",this.rest.authenticators.summary().subscribe(function(l){n.auths=l,n.authChanged()}),this.rest.servicesPools.listAssignables(this.servicePool.id).subscribe(function(l){n.assignablesServices=l})}},{key:"changeAuth",value:function(n){this.userId="",this.authChanged()}},{key:"filteredUsers",value:function(){var n=this;if(!this.userFilter)return this.users;var l=new Array;return this.users.forEach(function(c){c.name.toLocaleLowerCase().includes(n.userFilter.toLocaleLowerCase())&&l.push(c)}),l}},{key:"filteredAssignables",value:function(){var n=this;if(!this.assignablesServicesFilter)return this.assignablesServices;var l=new Array;return this.assignablesServices.forEach(function(c){c.text.toLocaleLowerCase().includes(n.assignablesServicesFilter.toLocaleLowerCase())&&l.push(c)}),l}},{key:"save",value:function(){var n=this;""!==this.userId&&""!==this.authId?this.rest.servicesPools.createFromAssignable(this.servicePool.id,this.userId,this.serviceId).subscribe(function(l){n.dialogRef.close(),n.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))}},{key:"authChanged",value:function(){var n=this;this.authId&&this.rest.authenticators.detail(this.authId,"users").summary().subscribe(function(l){n.users=l})}}],[{key:"launch",value:function(n,l){var c=window.innerWidth<800?"60%":"40%";return n.gui.dialog.open(s,{width:c,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:l},disableClose:!1}).componentInstance.onSave}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"h4",0)(1,"uds-translate"),K(2,"Assign service to user manually"),B()(),I(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),K(8,"Service"),B()(),I(9,"mat-select",2),ne("ngModelChange",function(c){return n.serviceId=c}),te(10,Mie,1,0,"uds-mat-select-search",3),te(11,kie,2,2,"mat-option",4),B()(),I(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),K(15,"Authenticator"),B()(),I(16,"mat-select",5),ne("ngModelChange",function(c){return n.authId=c})("selectionChange",function(c){return n.changeAuth(c)}),te(17,Die,2,2,"mat-option",4),B()(),I(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),K(21,"User"),B()(),I(22,"mat-select",2),ne("ngModelChange",function(c){return n.userId=c}),te(23,xie,1,0,"uds-mat-select-search",3),te(24,Tie,2,2,"mat-option",4),B()()()(),I(25,"mat-dialog-actions")(26,"button",6)(27,"uds-translate"),K(28,"Cancel"),B()(),I(29,"button",7),ne("click",function(){return n.save()}),I(30,"uds-translate"),K(31,"Ok"),B()()()),2&r&&(G(9),U("ngModel",n.serviceId),G(1),U("ngIf",n.assignablesServices.length>10),G(1),U("ngForOf",n.filteredAssignables()),G(5),U("ngModel",n.authId),G(1),U("ngForOf",n.auths),G(5),U("ngModel",n.userId),G(1),U("ngIf",n.users.length>10),G(1),U("ngForOf",n.filteredUsers()))},directives:[si,Gn,jr,or,Tr,Ua,pr,ar,en,kc,ir,Pi,li,qn,_i],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%]{width:100%}"]}),i}(),Eie=function(){var i=function(){function s(r){R(this,s),this.rest=r,this.chart=null}return L(s,[{key:"onResize",value:function(n){this.chart&&this.chart.resize()}},{key:"ngOnInit",value:function(){var n=this;this.rest.system.stats("complete",this.poolUuid).subscribe(function(l){n.options={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:l.assigned.map(function(c){return zs("SHORT_DATETIME_FORMAT",new Date(c.stamp))}),boundaryGap:!1},yAxis:{type:"value",boundaryGap:!1},series:[{name:django.gettext("Assigned"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:l.assigned.map(function(c){return c.value})},{name:django.gettext("Cached"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:l.cached.map(function(c){return c.value})},{name:django.gettext("In use"),type:"line",smooth:!0,data:l.inuse.map(function(c){return c.value})}]}})}},{key:"chartInit",value:function(n){this.chart=n}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(rn))},i.\u0275cmp=ke({type:i,selectors:[["uds-service-pools-charts"]],hostBindings:function(r,n){1&r&&ne("resize",function(c){return n.onResize(c)},!1,m0)},inputs:{poolUuid:"poolUuid"},decls:2,vars:1,consts:[[1,"statistics-chart"],["echarts","","theme","dark-digerati",3,"options","chartInit"]],template:function(r,n){1&r&&(I(0,"div",0)(1,"div",1),ne("chartInit",function(c){return n.chartInit(c)}),B()()),2&r&&(G(1),U("options",n.options))},directives:[fb],styles:[""]}),i}();function Pie(i,s){1&i&&(I(0,"uds-translate"),K(1,"Summary"),B())}function Oie(i,s){if(1&i&&Se(0,"uds-information",21),2&i){var r=Q(2);U("value",r.servicePool)("gui",r.gui)}}function Iie(i,s){1&i&&(I(0,"uds-translate"),K(1,"Assigned services"),B())}function Rie(i,s){if(1&i){var r=xe();I(0,"uds-table",22),ne("customButtonAction",function(c){return he(r),Q(2).onCustomAssigned(c)})("deleteAction",function(c){return he(r),Q(2).onDeleteAssigned(c)}),B()}if(2&i){var n=Q(2);U("rest",n.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",n.processsAssignedElement)("tableId","servicePools-d-services"+n.servicePool.id)("customButtons",n.customButtonsAssignedServices)("pageSize",n.api.config.admin.page_size)}}function Lie(i,s){if(1&i){var r=xe();I(0,"uds-table",23),ne("customButtonAction",function(c){return he(r),Q(2).onCustomAssigned(c)})("newAction",function(c){return he(r),Q(2).onNewAssigned(c)})("deleteAction",function(c){return he(r),Q(2).onDeleteAssigned(c)}),B()}if(2&i){var n=Q(2);U("rest",n.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",n.processsAssignedElement)("tableId","servicePools-d-services"+n.servicePool.id)("customButtons",n.customButtonsAssignedServices)("pageSize",n.api.config.admin.page_size)}}function Fie(i,s){1&i&&(I(0,"uds-translate"),K(1,"Cache"),B())}function Nie(i,s){if(1&i){var r=xe();I(0,"mat-tab"),te(1,Fie,2,0,"ng-template",9),I(2,"div",10)(3,"uds-table",24),ne("customButtonAction",function(c){return he(r),Q(2).onCustomCached(c)})("deleteAction",function(c){return he(r),Q(2).onDeleteCache(c)}),B()()()}if(2&i){var n=Q(2);G(3),U("rest",n.cache)("multiSelect",!0)("allowExport",!0)("onItem",n.processsCacheElement)("tableId","servicePools-d-cache"+n.servicePool.id)("customButtons",n.customButtonsCachedServices)("pageSize",n.api.config.admin.page_size)}}function Bie(i,s){1&i&&(I(0,"uds-translate"),K(1,"Groups"),B())}function Vie(i,s){1&i&&(I(0,"uds-translate"),K(1,"Transports"),B())}function Hie(i,s){1&i&&(I(0,"uds-translate"),K(1,"Publications"),B())}function zie(i,s){if(1&i){var r=xe();I(0,"mat-tab"),te(1,Hie,2,0,"ng-template",9),I(2,"div",10)(3,"uds-table",25),ne("customButtonAction",function(c){return he(r),Q(2).onCustomPublication(c)})("newAction",function(c){return he(r),Q(2).onNewPublication(c)})("rowSelected",function(c){return he(r),Q(2).onPublicationRowSelect(c)}),B()()()}if(2&i){var n=Q(2);G(3),U("rest",n.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+n.servicePool.id)("customButtons",n.customButtonsPublication)("pageSize",n.api.config.admin.page_size)}}function Gie(i,s){1&i&&(I(0,"uds-translate"),K(1,"Scheduled actions"),B())}function Uie(i,s){1&i&&(I(0,"uds-translate"),K(1,"Access calendars"),B())}function jie(i,s){1&i&&(I(0,"uds-translate"),K(1,"Charts"),B())}function Wie(i,s){1&i&&(I(0,"uds-translate"),K(1,"Logs"),B())}function Yie(i,s){if(1&i){var r=xe();I(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),ne("selectedIndexChange",function(p){return he(r),Q().selectedTab=p}),I(3,"mat-tab"),te(4,Pie,2,0,"ng-template",9),I(5,"div",10),te(6,Oie,1,2,"uds-information",11),B()(),I(7,"mat-tab"),te(8,Iie,2,0,"ng-template",9),I(9,"div",10),te(10,Rie,1,7,"uds-table",12),te(11,Lie,1,7,"ng-template",null,13,Ko),B()(),te(13,Nie,4,7,"mat-tab",14),I(14,"mat-tab"),te(15,Bie,2,0,"ng-template",9),I(16,"div",10)(17,"uds-table",15),ne("newAction",function(p){return he(r),Q().onNewGroup(p)})("deleteAction",function(p){return he(r),Q().onDeleteGroup(p)}),B()()(),I(18,"mat-tab"),te(19,Vie,2,0,"ng-template",9),I(20,"div",10)(21,"uds-table",16),ne("newAction",function(p){return he(r),Q().onNewTransport(p)})("deleteAction",function(p){return he(r),Q().onDeleteTransport(p)}),B()()(),te(22,zie,4,6,"mat-tab",14),I(23,"mat-tab"),te(24,Gie,2,0,"ng-template",9),I(25,"div",10)(26,"uds-table",17),ne("customButtonAction",function(p){return he(r),Q().onCustomScheduleAction(p)})("newAction",function(p){return he(r),Q().onNewScheduledAction(p)})("editAction",function(p){return he(r),Q().onEditScheduledAction(p)})("deleteAction",function(p){return he(r),Q().onDeleteScheduledAction(p)}),B()()(),I(27,"mat-tab"),te(28,Uie,2,0,"ng-template",9),I(29,"div",10)(30,"uds-table",18),ne("newAction",function(p){return he(r),Q().onNewAccessCalendar(p)})("editAction",function(p){return he(r),Q().onEditAccessCalendar(p)})("deleteAction",function(p){return he(r),Q().onDeleteAccessCalendar(p)})("loaded",function(p){return he(r),Q().onAccessCalendarLoad(p)}),B()()(),I(31,"mat-tab"),te(32,jie,2,0,"ng-template",9),I(33,"div",10),Se(34,"uds-service-pools-charts",19),B()(),I(35,"mat-tab"),te(36,Wie,2,0,"ng-template",9),I(37,"div",10),Se(38,"uds-logs-table",20),B()()()()()}if(2&i){var n=Dn(12),l=Q();G(2),U("selectedIndex",l.selectedTab)("@.disabled",!0),G(4),U("ngIf",l.servicePool&&l.gui),G(4),U("ngIf",!1===l.servicePool.info.must_assign_manually)("ngIfElse",n),G(3),U("ngIf",l.cache),G(4),U("rest",l.groups)("multiSelect",!0)("allowExport",!0)("customButtons",l.customButtonsGroups)("tableId","servicePools-d-groups"+l.servicePool.id)("pageSize",l.api.config.admin.page_size),G(4),U("rest",l.transports)("multiSelect",!0)("allowExport",!0)("customButtons",l.customButtonsTransports)("tableId","servicePools-d-transports"+l.servicePool.id)("pageSize",l.api.config.admin.page_size),G(1),U("ngIf",l.publications),G(4),U("rest",l.scheduledActions)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-actions"+l.servicePool.id)("customButtons",l.customButtonsScheduledAction)("onItem",l.processsCalendarOrScheduledElement)("pageSize",l.api.config.admin.page_size),G(4),U("rest",l.accessCalendars)("multiSelect",!0)("allowExport",!0)("customButtons",l.customButtonAccessCalendars)("tableId","servicePools-d-access"+l.servicePool.id)("onItem",l.processsCalendarOrScheduledElement)("pageSize",l.api.config.admin.page_size),G(4),U("poolUuid",l.servicePool.id),G(4),U("rest",l.rest.servicesPools)("itemId",l.servicePool.id)("tableId","servicePools-d-log"+l.servicePool.id)("pageSize",l.api.config.admin.page_size)}}var qie=function(s){return["/pools","service-pools",s]},Fq='event'+django.gettext("Logs")+"",Zie='computer'+django.gettext("VNC")+"",Xie='schedule'+django.gettext("Launch now")+"",lJ='perm_identity'+django.gettext("Change owner")+"",Kie='perm_identity'+django.gettext("Assign service")+"",$ie='cancel'+django.gettext("Cancel")+"",Qie='event'+django.gettext("Changelog")+"",uJ=function(){var i=function(){function s(r,n,l){R(this,s),this.route=r,this.rest=n,this.api=l,this.customButtonsScheduledAction=[{id:"launch-action",html:Xie,type:vr.SINGLE_SELECT},is.getGotoButton(ob,"calendarId")],this.customButtonAccessCalendars=[is.getGotoButton(ob,"calendarId")],this.customButtonsAssignedServices=[{id:"change-owner",html:lJ,type:vr.SINGLE_SELECT},{id:"log",html:Fq,type:vr.SINGLE_SELECT},is.getGotoButton(eP,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:Fq,type:vr.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:$ie,type:vr.SINGLE_SELECT},{id:"changelog",html:Qie,type:vr.ALWAYS}],this.customButtonsGroups=[is.getGotoButton("group","auth_id","id")],this.customButtonsTransports=[is.getGotoButton(DS,"id")],this.servicePool=null,this.gui=null,this.selectedTab=1}return L(s,[{key:"ngOnInit",value:function(){var n=this,l=this.route.snapshot.paramMap.get("pool");this.assignedServices=this.rest.servicesPools.detail(l,"services"),this.groups=this.rest.servicesPools.detail(l,"groups"),this.transports=this.rest.servicesPools.detail(l,"transports"),this.scheduledActions=this.rest.servicesPools.detail(l,"actions"),this.accessCalendars=this.rest.servicesPools.detail(l,"access"),this.rest.servicesPools.get(l).subscribe(function(c){n.servicePool=c,n.cache=n.servicePool.info.uses_cache?n.rest.servicesPools.detail(l,"cache"):null,n.publications=n.servicePool.info.needs_publication?n.rest.servicesPools.detail(l,"publications"):null,n.api.config.admin.vnc_userservices&&n.customButtonsAssignedServices.push({id:"vnc",html:Zie,type:vr.ONLY_MENU}),n.servicePool.info.can_list_assignables&&n.customButtonsAssignedServices.push({id:"assign-service",html:Kie,type:vr.ALWAYS}),n.rest.servicesPools.gui().subscribe(function(p){n.gui=p.filter(function(_){return!(!1===n.servicePool.info.uses_cache&&["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"].includes(_.name)||!1===n.servicePool.info.uses_cache_l2&&"cache_l2_srvs"===_.name||!1===n.servicePool.info.needs_manager&&"osmanager_id"===_.name)})})})}},{key:"onNewAssigned",value:function(n){}},{key:"vnc",value:function(n){var c=new Blob(["[connection]\nhost="+n.ip+"\nport=5900\n"],{type:"application/extension-vnc"});setTimeout(function(){(0,Eq.saveAs)(c,n.ip+".vnc")},100)}},{key:"onCustomAssigned",value:function(n){var l=n.table.selection.selected[0];if("change-owner"===n.param.id){if(["E","R","M","S","C"].includes(l.state))return;aJ.launch(this.api,l,this.assignedServices).subscribe(function(c){return n.table.overview()})}else"log"===n.param.id?Lq.launch(this.api,l,this.assignedServices):"assign-service"===n.param.id?Aie.launch(this.api,this.servicePool).subscribe(function(c){return n.table.overview()}):"vnc"===n.param.id&&this.vnc(l)}},{key:"onCustomCached",value:function(n){"log"===n.param.id&&Lq.launch(this.api,n.table.selection.selected[0],this.cache)}},{key:"processsAssignedElement",value:function(n){n.in_use=this.api.yesno(n.in_use),n.origState=n.state,"U"===n.state&&(n.state=""!==n.os_state&&"U"!==n.os_state?"Z":"U")}},{key:"onDeleteAssigned",value:function(n){s.cleanInvalidSelections(n)||this.api.gui.forms.deleteForm(n,django.gettext("Delete assigned service"))}},{key:"onDeleteCache",value:function(n){s.cleanInvalidSelections(n)||this.api.gui.forms.deleteForm(n,django.gettext("Delete cached service"))}},{key:"processsCacheElement",value:function(n){n.origState=n.state,"U"===n.state&&(n.state=""!==n.os_state&&"U"!==n.os_state?"Z":"U")}},{key:"onNewGroup",value:function(n){oJ.launch(this.api,this.servicePool,this.groups).subscribe(function(l){return n.table.overview()})}},{key:"onDeleteGroup",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete assigned group"))}},{key:"onNewTransport",value:function(n){oie.launch(this.api,this.servicePool).subscribe(function(l){return n.table.overview()})}},{key:"onDeleteTransport",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete assigned transport"))}},{key:"onNewPublication",value:function(n){sie.launch(this.api,this.servicePool).subscribe(function(l){n.table.overview()})}},{key:"onPublicationRowSelect",value:function(n){1===n.table.selection.selected.length&&(this.customButtonsPublication[0].disabled=!["P","W","L","K"].includes(n.table.selection.selected[0].state))}},{key:"onCustomPublication",value:function(n){var l=this;"cancel-publication"===n.param.id?this.api.gui.yesno(django.gettext("Publication"),django.gettext("Cancel publication?"),!0).subscribe(function(c){c&&l.publications.invoke(n.table.selection.selected[0].id+"/cancel").subscribe(function(p){l.api.gui.snackbar.open(django.gettext("Publication canceled"),django.gettext("dismiss"),{duration:2e3}),n.table.overview()})}):"changelog"===n.param.id&&lie.launch(this.api,this.servicePool)}},{key:"onNewScheduledAction",value:function(n){sJ.launch(this.api,this.servicePool).subscribe(function(l){return n.table.overview()})}},{key:"onEditScheduledAction",value:function(n){sJ.launch(this.api,this.servicePool,n.table.selection.selected[0]).subscribe(function(l){return n.table.overview()})}},{key:"onDeleteScheduledAction",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete scheduled action"))}},{key:"onCustomScheduleAction",value:function(n){var l=this;this.api.gui.yesno(django.gettext("Execute scheduled action"),django.gettext("Execute scheduled action right now?")).subscribe(function(c){c&&l.scheduledActions.invoke(n.table.selection.selected[0].id+"/execute").subscribe(function(){l.api.gui.snackbar.open(django.gettext("Scheduled action executed"),django.gettext("dismiss"),{duration:2e3}),n.table.overview()})})}},{key:"onNewAccessCalendar",value:function(n){LH.launch(this.api,this.servicePool,this.accessCalendars).subscribe(function(l){return n.table.overview()})}},{key:"onEditAccessCalendar",value:function(n){LH.launch(this.api,this.servicePool,this.accessCalendars,n.table.selection.selected[0]).subscribe(function(l){return n.table.overview()})}},{key:"onDeleteAccessCalendar",value:function(n){-1!==n.table.selection.selected[0].id?this.api.gui.forms.deleteForm(n,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(n)}},{key:"onAccessCalendarLoad",value:function(n){var l=this;this.rest.servicesPools.getFallbackAccess(this.servicePool.id).subscribe(function(c){var p=n.table.dataSource.data.filter(function(_){return!0});p.push({id:-1,calendar:"-",priority:l.api.safeString('10000000FallBack'),access:c}),n.table.dataSource.data=p})}},{key:"processsCalendarOrScheduledElement",value:function(n){n.name=n.calendar,n.atStart=this.api.yesno(n.atStart)}}],[{key:"cleanInvalidSelections",value:function(n){return n.table.selection.selected.filter(function(l){return["E","R","M","S","C"].includes(l.state)}).forEach(function(l){return n.table.selection.deselect(l)}),n.table.selection.isEmpty()}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Vr),z(rn),z(Ot))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),K(4,"arrow_back"),B()(),K(5," \xa0"),Se(6,"img",4),K(7),B(),te(8,Yie,39,38,"div",5),B()),2&r&&(G(2),U("routerLink",xs(4,qie,n.servicePool?n.servicePool.id:"")),G(4),U("src",n.api.staticURL("admin/img/icons/pools.png"),Qt),G(1),Le(" \xa0",null==n.servicePool?null:n.servicePool.name," "),G(1),U("ngIf",null!==n.servicePool))},directives:[Al,en,Hl,Hs,rs,Gn,IH,Kr,Eie,HS],styles:[".mat-column-state{max-width:10rem;justify-content:center} .mat-column-revision, .mat-column-cache_level, .mat-column-in_use, .mat-column-priority{max-width:7rem;justify-content:center} .mat-column-creation_date, .mat-column-state_date, .mat-column-publish_date, .mat-column-trans_type, .mat-column-access{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}"]}),i}(),cJ=function(){var i=function(){function s(r,n,l){R(this,s),this.api=r,this.route=n,this.rest=l}return L(s,[{key:"ngOnInit",value:function(){}},{key:"onNew",value:function(n){this.api.gui.forms.typedNewForm(n,django.gettext("New meta pool"))}},{key:"onEdit",value:function(n){this.api.gui.forms.typedEditForm(n,django.gettext("Edit meta pool"))}},{key:"onDelete",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete meta pool"))}},{key:"onDetail",value:function(n){this.api.navigation.gotoMetapoolDetail(n.param.id)}},{key:"processElement",value:function(n){n.visible=this.api.yesno(n.visible),n.name=this.api.safeString(this.api.gui.icon(n.thumb)+n.name),n.pool_group_name=this.api.safeString(this.api.gui.icon(n.pool_group_thumb)+n.pool_group_name)}},{key:"onLoad",value:function(n){!0===n.param&&n.table.selectElement("id",this.route.snapshot.paramMap.get("metapool"))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(Vr),z(rn))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"div")(1,"uds-table",0),ne("detailAction",function(c){return n.onDetail(c)})("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),B()()),2&r&&(G(1),U("rest",n.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",n.processElement)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size))},directives:[Kr],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-pool_group_name{max-width:7rem;justify-content:center}"]}),i}();function Jie(i,s){1&i&&(I(0,"uds-translate"),K(1,"New member pool"),B())}function eae(i,s){1&i&&(I(0,"uds-translate"),K(1,"Edit member pool"),B())}function tae(i,s){if(1&i){var r=xe();I(0,"uds-mat-select-search",11),ne("changed",function(l){return he(r),Q().servicePoolsFilter=l}),B()}}function nae(i,s){if(1&i&&(I(0,"mat-option",12),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.name," ")}}var fJ=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.onSave=new ye(!0),this.servicePools=[],this.servicePoolsFilter="",this.model=c.model,this.memberPool={id:void 0,priority:0,pool_id:"",enabled:!0},c.memberPool&&(this.memberPool.id=c.memberPool.id)}return L(s,[{key:"ngOnInit",value:function(){var n=this;this.rest.servicesPools.summary().subscribe(function(l){return n.servicePools=l}),this.memberPool.id&&this.model.get(this.memberPool.id).subscribe(function(l){return n.memberPool=l})}},{key:"filtered",value:function(n,l){return l?n.filter(function(c){return c.name.toLocaleLowerCase().includes(l.toLocaleLowerCase())}):n}},{key:"save",value:function(){var n=this;this.memberPool.pool_id?this.model.save(this.memberPool).subscribe(function(){n.dialogRef.close(),n.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid service pool"))}}],[{key:"launch",value:function(n,l,c){var p=window.innerWidth<800?"60%":"40%";return n.gui.dialog.open(s,{width:p,position:{top:window.innerWidth<800?"0px":"7rem"},data:{memberPool:c,model:l},disableClose:!1}).componentInstance.onSave}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"h4",0),te(1,Jie,2,0,"uds-translate",1),te(2,eae,2,0,"uds-translate",1),B(),I(3,"mat-dialog-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),K(8,"Priority"),B()(),I(9,"input",3),ne("ngModelChange",function(c){return n.memberPool.priority=c}),B()(),I(10,"mat-form-field")(11,"mat-label")(12,"uds-translate"),K(13,"Service pool"),B()(),I(14,"mat-select",4),ne("ngModelChange",function(c){return n.memberPool.pool_id=c}),te(15,tae,1,0,"uds-mat-select-search",5),te(16,nae,2,2,"mat-option",6),B()(),I(17,"div",7)(18,"span",8)(19,"uds-translate"),K(20,"Enabled?"),B()(),I(21,"mat-slide-toggle",4),ne("ngModelChange",function(c){return n.memberPool.enabled=c}),K(22),B()()()(),I(23,"mat-dialog-actions")(24,"button",9)(25,"uds-translate"),K(26,"Cancel"),B()(),I(27,"button",10),ne("click",function(){return n.save()}),I(28,"uds-translate"),K(29,"Ok"),B()()()),2&r&&(G(1),U("ngIf",!(null!=n.memberPool&&n.memberPool.id)),G(1),U("ngIf",null==n.memberPool?null:n.memberPool.id),G(7),U("ngModel",n.memberPool.priority),G(5),U("ngModel",n.memberPool.pool_id),G(1),U("ngIf",n.servicePools.length>10),G(1),U("ngForOf",n.filtered(n.servicePools,n.servicePoolsFilter)),G(5),U("ngModel",n.memberPool.enabled),G(1),Le(" ",n.api.yesno(n.memberPool.enabled)," "))},directives:[si,en,Gn,jr,or,Tr,ua,Kf,yi,pr,ar,Ua,kc,ir,Pi,zS,li,qn,_i],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%]{width:100%}.label-enabled[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;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:0px 0px;white-space:nowrap}"]}),i}();function rae(i,s){1&i&&(I(0,"uds-translate"),K(1,"Summary"),B())}function iae(i,s){if(1&i&&Se(0,"uds-information",17),2&i){var r=Q(2);U("value",r.metaPool)("gui",r.gui)}}function aae(i,s){1&i&&(I(0,"uds-translate"),K(1,"Service pools"),B())}function oae(i,s){1&i&&(I(0,"uds-translate"),K(1,"Assigned services"),B())}function sae(i,s){1&i&&(I(0,"uds-translate"),K(1,"Groups"),B())}function lae(i,s){1&i&&(I(0,"uds-translate"),K(1,"Access calendars"),B())}function uae(i,s){1&i&&(I(0,"uds-translate"),K(1,"Logs"),B())}function cae(i,s){if(1&i){var r=xe();I(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),ne("selectedIndexChange",function(c){return he(r),Q().selectedTab=c}),I(3,"mat-tab"),te(4,rae,2,0,"ng-template",9),I(5,"div",10),te(6,iae,1,2,"uds-information",11),B()(),I(7,"mat-tab"),te(8,aae,2,0,"ng-template",9),I(9,"div",10)(10,"uds-table",12),ne("newAction",function(c){return he(r),Q().onNewMemberPool(c)})("editAction",function(c){return he(r),Q().onEditMemberPool(c)})("deleteAction",function(c){return he(r),Q().onDeleteMemberPool(c)}),B()()(),I(11,"mat-tab"),te(12,oae,2,0,"ng-template",9),I(13,"div",10)(14,"uds-table",13),ne("customButtonAction",function(c){return he(r),Q().onCustomAssigned(c)})("deleteAction",function(c){return he(r),Q().onDeleteAssigned(c)}),B()()(),I(15,"mat-tab"),te(16,sae,2,0,"ng-template",9),I(17,"div",10)(18,"uds-table",14),ne("newAction",function(c){return he(r),Q().onNewGroup(c)})("deleteAction",function(c){return he(r),Q().onDeleteGroup(c)}),B()()(),I(19,"mat-tab"),te(20,lae,2,0,"ng-template",9),I(21,"div",10)(22,"uds-table",15),ne("newAction",function(c){return he(r),Q().onNewAccessCalendar(c)})("editAction",function(c){return he(r),Q().onEditAccessCalendar(c)})("deleteAction",function(c){return he(r),Q().onDeleteAccessCalendar(c)})("loaded",function(c){return he(r),Q().onAccessCalendarLoad(c)}),B()()(),I(23,"mat-tab"),te(24,uae,2,0,"ng-template",9),I(25,"div",10),Se(26,"uds-logs-table",16),B()()()()()}if(2&i){var n=Q();G(2),U("selectedIndex",n.selectedTab)("@.disabled",!0),G(4),U("ngIf",n.metaPool&&n.gui),G(4),U("rest",n.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",n.processElement)("customButtons",n.customButtons)("tableId","metaPools-d-members"+n.metaPool.id)("pageSize",n.api.config.admin.page_size),G(4),U("rest",n.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+n.metaPool.id)("customButtons",n.customButtonsAssignedServices)("pageSize",n.api.config.admin.page_size),G(4),U("rest",n.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+n.metaPool.id)("pageSize",n.api.config.admin.page_size),G(4),U("rest",n.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+n.metaPool.id)("pageSize",n.api.config.admin.page_size)("onItem",n.processsCalendarItem),G(4),U("rest",n.rest.metaPools)("itemId",n.metaPool.id)("tableId","metaPools-d-log"+n.metaPool.id)("pageSize",n.api.config.admin.page_size)}}var fae=function(s){return["/pools","meta-pools",s]},dae=function(){var i=function(){function s(r,n,l){R(this,s),this.route=r,this.rest=n,this.api=l,this.customButtons=[is.getGotoButton(JE,"pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:lJ,type:vr.SINGLE_SELECT},{id:"log",html:Fq,type:vr.SINGLE_SELECT},is.getGotoButton(eP,"owner_info.auth_id","owner_info.user_id")],this.metaPool=null,this.gui=null,this.selectedTab=1}return L(s,[{key:"ngOnInit",value:function(){var n=this,l=this.route.snapshot.paramMap.get("metapool");this.rest.metaPools.get(l).subscribe(function(c){n.metaPool=c,n.rest.metaPools.gui().subscribe(function(p){n.gui=p}),n.memberPools=n.rest.metaPools.detail(l,"pools"),n.memberUserServices=n.rest.metaPools.detail(l,"services"),n.groups=n.rest.metaPools.detail(l,"groups"),n.accessCalendars=n.rest.metaPools.detail(l,"access")})}},{key:"onNewMemberPool",value:function(n){fJ.launch(this.api,this.memberPools).subscribe(function(){return n.table.overview()})}},{key:"onEditMemberPool",value:function(n){fJ.launch(this.api,this.memberPools,n.table.selection.selected[0]).subscribe(function(){return n.table.overview()})}},{key:"onDeleteMemberPool",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Remove member pool"))}},{key:"onCustomAssigned",value:function(n){var l=n.table.selection.selected[0];if("change-owner"===n.param.id){if(["E","R","M","S","C"].includes(l.state))return;aJ.launch(this.api,l,this.memberUserServices).subscribe(function(c){return n.table.overview()})}else"log"===n.param.id&&Lq.launch(this.api,l,this.memberUserServices)}},{key:"onDeleteAssigned",value:function(n){uJ.cleanInvalidSelections(n)||this.api.gui.forms.deleteForm(n,django.gettext("Delete assigned service"))}},{key:"onNewGroup",value:function(n){oJ.launch(this.api,this.metaPool.id,this.groups).subscribe(function(l){return n.table.overview()})}},{key:"onDeleteGroup",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete assigned group"))}},{key:"onNewAccessCalendar",value:function(n){LH.launch(this.api,this.metaPool,this.accessCalendars).subscribe(function(l){return n.table.overview()})}},{key:"onEditAccessCalendar",value:function(n){LH.launch(this.api,this.metaPool,this.accessCalendars,n.table.selection.selected[0]).subscribe(function(l){return n.table.overview()})}},{key:"onDeleteAccessCalendar",value:function(n){console.log("ID",n.table.selection.selected[0].id),-1!==n.table.selection.selected[0].id?this.api.gui.forms.deleteForm(n,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(n)}},{key:"onAccessCalendarLoad",value:function(n){var l=this;this.rest.metaPools.getFallbackAccess(this.metaPool.id).subscribe(function(c){var p=n.table.dataSource.data.filter(function(_){return!0});p.push({id:-1,calendar:"-",priority:l.api.safeString('10000000FallBack'),access:c}),n.table.dataSource.data=p})}},{key:"processElement",value:function(n){n.enabled=this.api.yesno(n.enabled)}},{key:"processsCalendarItem",value:function(n){n.name=n.calendar,n.atStart=this.api.yesno(n.atStart)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Vr),z(rn),z(Ot))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),K(4,"arrow_back"),B()(),K(5," \xa0"),Se(6,"img",4),K(7),B(),te(8,cae,27,31,"div",5),B()),2&r&&(G(2),U("routerLink",xs(4,fae,n.metaPool?n.metaPool.id:"")),G(4),U("src",n.api.staticURL("admin/img/icons/metas.png"),Qt),G(1),Le(" ",null==n.metaPool?null:n.metaPool.name," "),G(1),U("ngIf",n.metaPool))},directives:[Al,en,Hl,Hs,rs,Gn,IH,Kr,HS],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]}),i}(),dJ=function(){var i=function(){function s(r,n,l){R(this,s),this.route=r,this.rest=n,this.api=l}return L(s,[{key:"ngOnInit",value:function(){}},{key:"onNew",value:function(n){this.api.gui.forms.typedNewForm(n,django.gettext("New pool group"),!1).subscribe(function(l){return n.table.overview()})}},{key:"onEdit",value:function(n){this.api.gui.forms.typedEditForm(n,django.gettext("Edit pool group"),!1).subscribe(function(l){return n.table.overview()})}},{key:"onDelete",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete pool group"))}},{key:"onLoad",value:function(n){!0===n.param&&n.table.selectElement("id",this.route.snapshot.paramMap.get("poolgroup"))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Vr),z(rn),z(Ot))},i.\u0275cmp=ke({type:i,selectors:[["uds-pool-groups"]],decls:1,vars:5,consts:[["icon","spool-group",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(r,n){1&r&&(I(0,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),B()),2&r&&U("rest",n.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",n.api.config.admin.page_size)},directives:[Kr],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]}),i}(),hJ=function(){var i=function(){function s(r,n,l){R(this,s),this.route=r,this.rest=n,this.api=l}return L(s,[{key:"ngOnInit",value:function(){}},{key:"onNew",value:function(n){this.api.gui.forms.typedNewForm(n,django.gettext("New calendar"))}},{key:"onEdit",value:function(n){this.api.gui.forms.typedEditForm(n,django.gettext("Edit calendar"))}},{key:"onDelete",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete calendar"))}},{key:"onDetail",value:function(n){this.api.navigation.gotoCalendarDetail(n.param.id)}},{key:"onLoad",value:function(n){!0===n.param&&n.table.selectElement("id",this.route.snapshot.paramMap.get("calendar"))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Vr),z(rn),z(Ot))},i.\u0275cmp=ke({type:i,selectors:[["uds-calendars"]],decls:1,vars:5,consts:[["icon","calendars",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(r,n){1&r&&(I(0,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),B()),2&r&&U("rest",n.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size)},directives:[Kr],styles:[""]}),i}(),hae=["mat-calendar-body",""];function pae(i,s){if(1&i&&(I(0,"tr",2)(1,"td",3),K(2),B()()),2&i){var r=Q();G(1),ta("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),lt("colspan",r.numCols),G(1),Le(" ",r.label," ")}}function vae(i,s){if(1&i&&(I(0,"td",3),K(1),B()),2&i){var r=Q(2);ta("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),lt("colspan",r._firstRowOffset),G(1),Le(" ",r._firstRowOffset>=r.labelMinRequiredCells?r.label:""," ")}}function gae(i,s){if(1&i){var r=xe();I(0,"td",7)(1,"button",8),ne("click",function(w){var A=he(r).$implicit;return Q(2)._cellClicked(A,w)}),I(2,"div",9),K(3),B(),Se(4,"div",10),B()()}if(2&i){var n=s.$implicit,l=s.index,c=Q().index,p=Q();ta("width",p._cellWidth)("padding-top",p._cellPadding)("padding-bottom",p._cellPadding),lt("data-mat-row",c)("data-mat-col",l),G(1),Ze("mat-calendar-body-disabled",!n.enabled)("mat-calendar-body-active",p._isActiveCell(c,l))("mat-calendar-body-range-start",p._isRangeStart(n.compareValue))("mat-calendar-body-range-end",p._isRangeEnd(n.compareValue))("mat-calendar-body-in-range",p._isInRange(n.compareValue))("mat-calendar-body-comparison-bridge-start",p._isComparisonBridgeStart(n.compareValue,c,l))("mat-calendar-body-comparison-bridge-end",p._isComparisonBridgeEnd(n.compareValue,c,l))("mat-calendar-body-comparison-start",p._isComparisonStart(n.compareValue))("mat-calendar-body-comparison-end",p._isComparisonEnd(n.compareValue))("mat-calendar-body-in-comparison-range",p._isInComparisonRange(n.compareValue))("mat-calendar-body-preview-start",p._isPreviewStart(n.compareValue))("mat-calendar-body-preview-end",p._isPreviewEnd(n.compareValue))("mat-calendar-body-in-preview",p._isInPreview(n.compareValue)),U("ngClass",n.cssClasses)("tabindex",p._isActiveCell(c,l)?0:-1),lt("aria-label",n.ariaLabel)("aria-disabled",!n.enabled||null)("aria-pressed",p._isSelected(n.compareValue))("aria-current",p.todayValue===n.compareValue?"date":null),G(1),Ze("mat-calendar-body-selected",p._isSelected(n.compareValue))("mat-calendar-body-comparison-identical",p._isComparisonIdentical(n.compareValue))("mat-calendar-body-today",p.todayValue===n.compareValue),G(1),Le(" ",n.displayValue," ")}}function mae(i,s){if(1&i&&(I(0,"tr",4),te(1,vae,2,6,"td",5),te(2,gae,5,47,"td",6),B()),2&i){var r=s.$implicit,n=s.index,l=Q();G(1),U("ngIf",0===n&&l._firstRowOffset),G(1),U("ngForOf",r)}}function _ae(i,s){if(1&i&&(I(0,"th",5)(1,"span",6),K(2),B(),I(3,"span",7),K(4),B()()),2&i){var r=s.$implicit;G(2),Ln(r.long),G(2),Ln(r.narrow)}}var yae=["*"];function bae(i,s){}function Cae(i,s){if(1&i){var r=xe();I(0,"mat-month-view",5),ne("activeDateChange",function(c){return he(r),Q().activeDate=c})("_userSelection",function(c){return he(r),Q()._dateSelected(c)}),B()}if(2&i){var n=Q();U("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)("comparisonStart",n.comparisonStart)("comparisonEnd",n.comparisonEnd)}}function wae(i,s){if(1&i){var r=xe();I(0,"mat-year-view",6),ne("activeDateChange",function(c){return he(r),Q().activeDate=c})("monthSelected",function(c){return he(r),Q()._monthSelectedInYearView(c)})("selectedChange",function(c){return he(r),Q()._goToDateInView(c,"month")}),B()}if(2&i){var n=Q();U("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)}}function Sae(i,s){if(1&i){var r=xe();I(0,"mat-multi-year-view",7),ne("activeDateChange",function(c){return he(r),Q().activeDate=c})("yearSelected",function(c){return he(r),Q()._yearSelectedInMultiYearView(c)})("selectedChange",function(c){return he(r),Q()._goToDateInView(c,"year")}),B()}if(2&i){var n=Q();U("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)}}function Mae(i,s){}var kae=["button"];function Dae(i,s){1&i&&(Bi(),I(0,"svg",3),Se(1,"path",4),B())}var xae=[[["","matDatepickerToggleIcon",""]]],Tae=["[matDatepickerToggleIcon]"],Nq=L(function i(s,r,n,l){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},p=arguments.length>5&&void 0!==arguments[5]?arguments[5]:s,_=arguments.length>6?arguments[6]:void 0;R(this,i),this.value=s,this.displayValue=r,this.ariaLabel=n,this.enabled=l,this.cssClasses=c,this.compareValue=p,this.rawValue=_}),GS=function(){var i=function(){function s(r,n){var l=this;R(this,s),this._elementRef=r,this._ngZone=n,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new ye,this.previewChange=new ye,this._enterHandler=function(c){if(l._skipNextFocus&&"focus"===c.type)l._skipNextFocus=!1;else if(c.target&&l.isRange){var p=l._getCellFromElement(c.target);p&&l._ngZone.run(function(){return l.previewChange.emit({value:p.enabled?p:null,event:c})})}},this._leaveHandler=function(c){null!==l.previewEnd&&l.isRange&&c.target&&l._getCellFromElement(c.target)&&l._ngZone.run(function(){return l.previewChange.emit({value:null,event:c})})},n.runOutsideAngular(function(){var c=r.nativeElement;c.addEventListener("mouseenter",l._enterHandler,!0),c.addEventListener("focus",l._enterHandler,!0),c.addEventListener("mouseleave",l._leaveHandler,!0),c.addEventListener("blur",l._leaveHandler,!0)})}return L(s,[{key:"_cellClicked",value:function(n,l){n.enabled&&this.selectedValueChange.emit({value:n.value,event:l})}},{key:"_isSelected",value:function(n){return this.startValue===n||this.endValue===n}},{key:"ngOnChanges",value:function(n){var l=n.numCols,c=this.rows,p=this.numCols;(n.rows||l)&&(this._firstRowOffset=c&&c.length&&c[0].length?p-c[0].length:0),(n.cellAspectRatio||l||!this._cellPadding)&&(this._cellPadding="".concat(50*this.cellAspectRatio/p,"%")),(l||!this._cellWidth)&&(this._cellWidth="".concat(100/p,"%"))}},{key:"ngOnDestroy",value:function(){var n=this._elementRef.nativeElement;n.removeEventListener("mouseenter",this._enterHandler,!0),n.removeEventListener("focus",this._enterHandler,!0),n.removeEventListener("mouseleave",this._leaveHandler,!0),n.removeEventListener("blur",this._leaveHandler,!0)}},{key:"_isActiveCell",value:function(n,l){var c=n*this.numCols+l;return n&&(c-=this._firstRowOffset),c==this.activeCell}},{key:"_focusActiveCell",value:function(){var n=this,l=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._ngZone.runOutsideAngular(function(){n._ngZone.onStable.pipe(gn(1)).subscribe(function(){setTimeout(function(){var c=n._elementRef.nativeElement.querySelector(".mat-calendar-body-active");c&&(l||(n._skipNextFocus=!0),c.focus())})})})}},{key:"_isRangeStart",value:function(n){return Bq(n,this.startValue,this.endValue)}},{key:"_isRangeEnd",value:function(n){return Vq(n,this.startValue,this.endValue)}},{key:"_isInRange",value:function(n){return Hq(n,this.startValue,this.endValue,this.isRange)}},{key:"_isComparisonStart",value:function(n){return Bq(n,this.comparisonStart,this.comparisonEnd)}},{key:"_isComparisonBridgeStart",value:function(n,l,c){if(!this._isComparisonStart(n)||this._isRangeStart(n)||!this._isInRange(n))return!1;var p=this.rows[l][c-1];if(!p){var _=this.rows[l-1];p=_&&_[_.length-1]}return p&&!this._isRangeEnd(p.compareValue)}},{key:"_isComparisonBridgeEnd",value:function(n,l,c){if(!this._isComparisonEnd(n)||this._isRangeEnd(n)||!this._isInRange(n))return!1;var p=this.rows[l][c+1];if(!p){var _=this.rows[l+1];p=_&&_[0]}return p&&!this._isRangeStart(p.compareValue)}},{key:"_isComparisonEnd",value:function(n){return Vq(n,this.comparisonStart,this.comparisonEnd)}},{key:"_isInComparisonRange",value:function(n){return Hq(n,this.comparisonStart,this.comparisonEnd,this.isRange)}},{key:"_isComparisonIdentical",value:function(n){return this.comparisonStart===this.comparisonEnd&&n===this.comparisonStart}},{key:"_isPreviewStart",value:function(n){return Bq(n,this.previewStart,this.previewEnd)}},{key:"_isPreviewEnd",value:function(n){return Vq(n,this.previewStart,this.previewEnd)}},{key:"_isInPreview",value:function(n){return Hq(n,this.previewStart,this.previewEnd,this.isRange)}},{key:"_getCellFromElement",value:function(n){var l;if(pJ(n)?l=n:pJ(n.parentNode)&&(l=n.parentNode),l){var c=l.getAttribute("data-mat-row"),p=l.getAttribute("data-mat-col");if(c&&p)return this.rows[parseInt(c)][parseInt(p)]}return null}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(tt),z(Pt))},i.\u0275cmp=ke({type:i,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[xn],attrs:hae,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"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(r,n){1&r&&(te(0,pae,3,6,"tr",0),te(1,mae,3,2,"tr",1)),2&r&&(U("ngIf",n._firstRowOffset.mat-calendar-body-cell-content,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content{outline:dotted 2px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected{outline:solid 3px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n'],encapsulation:2,changeDetection:0}),i}();function pJ(i){return"TD"===i.nodeName}function Bq(i,s,r){return null!==r&&s!==r&&i=s&&i===r}function Hq(i,s,r,n){return n&&null!==s&&null!==r&&s!==r&&i>=s&&i<=r}var Us=L(function i(s,r){R(this,i),this.start=s,this.end=r}),Dg=function(){var i=function(){function s(r,n){R(this,s),this.selection=r,this._adapter=n,this._selectionChanged=new Xe,this.selectionChanged=this._selectionChanged,this.selection=r}return L(s,[{key:"updateSelection",value:function(n,l){var c=this.selection;this.selection=n,this._selectionChanged.next({selection:n,source:l,oldValue:c})}},{key:"ngOnDestroy",value:function(){this._selectionChanged.complete()}},{key:"_isValidDateInstance",value:function(n){return this._adapter.isDateInstance(n)&&this._adapter.isValid(n)}}]),s}();return i.\u0275fac=function(r){lf()},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),Aae=function(){var i=function(s){se(n,s);var r=ue(n);function n(l){return R(this,n),r.call(this,null,l)}return L(n,[{key:"add",value:function(c){Ye(qe(n.prototype),"updateSelection",this).call(this,c,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 c=new n(this._adapter);return c.updateSelection(this.selection,this),c}}]),n}(Dg);return i.\u0275fac=function(r){return new(r||i)(ge(oa))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),vJ={provide:Dg,deps:[[new ai,new Kl,Dg],oa],useFactory:function Pae(i,s){return i||new Aae(s)}},FH=new Ae("MAT_DATE_RANGE_SELECTION_STRATEGY"),gJ=function(){var i=function(){function s(r,n,l,c,p){R(this,s),this._changeDetectorRef=r,this._dateFormats=n,this._dateAdapter=l,this._dir=c,this._rangeStrategy=p,this._rerenderSubscription=Te.EMPTY,this.selectedChange=new ye,this._userSelection=new ye,this.activeDateChange=new ye,this._activeDate=this._dateAdapter.today()}return L(s,[{key:"activeDate",get:function(){return this._activeDate},set:function(n){var l=this._activeDate,c=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(c,this.minDate,this.maxDate),this._hasSameMonthAndYear(l,this._activeDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(n){this._selected=n instanceof Us?n:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n)),this._setRanges(this._selected)}},{key:"minDate",get:function(){return this._minDate},set:function(n){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"maxDate",get:function(){return this._maxDate},set:function(n){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"ngAfterContentInit",value:function(){var n=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(na(null)).subscribe(function(){return n._init()})}},{key:"ngOnChanges",value:function(n){var l=n.comparisonStart||n.comparisonEnd;l&&!l.firstChange&&this._setRanges(this.selected)}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_dateSelected",value:function(n){var w,M,l=n.value,c=this._dateAdapter.getYear(this.activeDate),p=this._dateAdapter.getMonth(this.activeDate),_=this._dateAdapter.createDate(c,p,l);this._selected instanceof Us?(w=this._getDateInCurrentMonth(this._selected.start),M=this._getDateInCurrentMonth(this._selected.end)):w=M=this._getDateInCurrentMonth(this._selected),(w!==l||M!==l)&&this.selectedChange.emit(_),this._userSelection.emit({value:_,event:n.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}},{key:"_handleCalendarBodyKeydown",value:function(n){var l=this._activeDate,c=this._isRtl();switch(n.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,c?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,c?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=n.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=n.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&n.preventDefault());case 27:return void(null!=this._previewEnd&&!ia(n)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:n}),n.preventDefault(),n.stopPropagation()));default:return}this._dateAdapter.compareDate(l,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),n.preventDefault()}},{key:"_handleCalendarBodyKeyup",value:function(n){(32===n.keyCode||13===n.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:n}),this._selectionKeyPressed=!1)}},{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 n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(n)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}},{key:"_focusActiveCell",value:function(n){this._matCalendarBody._focusActiveCell(n)}},{key:"_previewChanged",value:function(n){var c=n.value;if(this._rangeStrategy){var _=this._rangeStrategy.createPreview(c?c.rawValue:null,this.selected,n.event);this._previewStart=this._getCellCompareValue(_.start),this._previewEnd=this._getCellCompareValue(_.end),this._changeDetectorRef.detectChanges()}}},{key:"_initWeekdays",value:function(){var n=this._dateAdapter.getFirstDayOfWeek(),l=this._dateAdapter.getDayOfWeekNames("narrow"),p=this._dateAdapter.getDayOfWeekNames("long").map(function(_,w){return{long:_,narrow:l[w]}});this._weekdays=p.slice(n).concat(p.slice(0,n))}},{key:"_createWeekCells",value:function(){var n=this._dateAdapter.getNumDaysInMonth(this.activeDate),l=this._dateAdapter.getDateNames();this._weeks=[[]];for(var c=0,p=this._firstWeekOffset;c=0)&&(!this.maxDate||this._dateAdapter.compareDate(n,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(n))}},{key:"_getDateInCurrentMonth",value:function(n){return n&&this._hasSameMonthAndYear(n,this.activeDate)?this._dateAdapter.getDate(n):null}},{key:"_hasSameMonthAndYear",value:function(n,l){return!(!n||!l||this._dateAdapter.getMonth(n)!=this._dateAdapter.getMonth(l)||this._dateAdapter.getYear(n)!=this._dateAdapter.getYear(l))}},{key:"_getCellCompareValue",value:function(n){if(n){var l=this._dateAdapter.getYear(n),c=this._dateAdapter.getMonth(n),p=this._dateAdapter.getDate(n);return new Date(l,c,p).getTime()}return null}},{key:"_isRtl",value:function(){return this._dir&&"rtl"===this._dir.value}},{key:"_setRanges",value:function(n){n instanceof Us?(this._rangeStart=this._getCellCompareValue(n.start),this._rangeEnd=this._getCellCompareValue(n.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(n),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}},{key:"_canSelect",value:function(n){return!this.dateFilter||this.dateFilter(n)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(hn),z(qf,8),z(oa,8),z(Ei,8),z(FH,8))},i.\u0275cmp=ke({type:i,selectors:[["mat-month-view"]],viewQuery:function(r,n){var l;1&r&&Rt(GS,5),2&r&&Ve(l=Ge())&&(n._matCalendarBody=l.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:[xn],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","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(r,n){1&r&&(I(0,"table",0)(1,"thead",1)(2,"tr"),te(3,_ae,5,2,"th",2),B(),I(4,"tr"),Se(5,"th",3),B()(),I(6,"tbody",4),ne("selectedValueChange",function(c){return n._dateSelected(c)})("previewChange",function(c){return n._previewChanged(c)})("keyup",function(c){return n._handleCalendarBodyKeyup(c)})("keydown",function(c){return n._handleCalendarBodyKeydown(c)}),B()()),2&r&&(G(3),U("ngForOf",n._weekdays),G(3),U("label",n._monthLabel)("rows",n._weeks)("todayValue",n._todayDate)("startValue",n._rangeStart)("endValue",n._rangeEnd)("comparisonStart",n._comparisonRangeStart)("comparisonEnd",n._comparisonRangeEnd)("previewStart",n._previewStart)("previewEnd",n._previewEnd)("isRange",n._isRange)("labelMinRequiredCells",3)("activeCell",n._dateAdapter.getDate(n.activeDate)-1))},directives:[GS,ir],encapsulation:2,changeDetection:0}),i}(),mJ=function(){var i=function(){function s(r,n,l){R(this,s),this._changeDetectorRef=r,this._dateAdapter=n,this._dir=l,this._rerenderSubscription=Te.EMPTY,this.selectedChange=new ye,this.yearSelected=new ye,this.activeDateChange=new ye,this._activeDate=this._dateAdapter.today()}return L(s,[{key:"activeDate",get:function(){return this._activeDate},set:function(n){var l=this._activeDate,c=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(c,this.minDate,this.maxDate),_J(this._dateAdapter,l,this._activeDate,this.minDate,this.maxDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(n){this._selected=n instanceof Us?n:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n)),this._setSelectedYear(n)}},{key:"minDate",get:function(){return this._minDate},set:function(n){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"maxDate",get:function(){return this._maxDate},set:function(n){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"ngAfterContentInit",value:function(){var n=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(na(null)).subscribe(function(){return n._init()})}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_init",value:function(){var n=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var c=this._dateAdapter.getYear(this._activeDate)-OP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var p=0,_=[];p<24;p++)_.push(c+p),4==_.length&&(this._years.push(_.map(function(w){return n._createCellForYear(w)})),_=[]);this._changeDetectorRef.markForCheck()}},{key:"_yearSelected",value:function(n){var l=n.value;this.yearSelected.emit(this._dateAdapter.createDate(l,0,1));var c=this._dateAdapter.getMonth(this.activeDate),p=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(l,c,1));this.selectedChange.emit(this._dateAdapter.createDate(l,c,Math.min(this._dateAdapter.getDate(this.activeDate),p)))}},{key:"_handleCalendarBodyKeydown",value:function(n){var l=this._activeDate,c=this._isRtl();switch(n.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,c?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,c?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-OP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-OP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(l,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),n.preventDefault()}},{key:"_handleCalendarBodyKeyup",value:function(n){(32===n.keyCode||13===n.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:n}),this._selectionKeyPressed=!1)}},{key:"_getActiveCell",value:function(){return OP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}},{key:"_focusActiveCell",value:function(){this._matCalendarBody._focusActiveCell()}},{key:"_createCellForYear",value:function(n){var l=this._dateAdapter.createDate(n,0,1),c=this._dateAdapter.getYearName(l),p=this.dateClass?this.dateClass(l,"multi-year"):void 0;return new Nq(n,c,c,this._shouldEnableYear(n),p)}},{key:"_shouldEnableYear",value:function(n){if(null==n||this.maxDate&&n>this._dateAdapter.getYear(this.maxDate)||this.minDate&&nc||n===c&&l>p}return!1}},{key:"_isYearAndMonthBeforeMinDate",value:function(n,l){if(this.minDate){var c=this._dateAdapter.getYear(this.minDate),p=this._dateAdapter.getMonth(this.minDate);return n enter-dropdown",$n("120ms cubic-bezier(0, 0, 0.2, 1)",Vf([mt({opacity:0,transform:"scale(1, 0.8)"}),mt({opacity:1,transform:"scale(1, 1)"})]))),Yn("void => enter-dialog",$n("150ms cubic-bezier(0, 0, 0.2, 1)",Vf([mt({opacity:0,transform:"scale(0.7)"}),mt({transform:"none",opacity:1})]))),Yn("* => void",$n("100ms linear",mt({opacity:0})))]),fadeInCalendar:zi("fadeInCalendar",[Wn("void",mt({opacity:0})),Wn("enter",mt({opacity:1})),Yn("void => *",$n("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},Bae=0,wJ=new Ae("mat-datepicker-scroll-strategy"),Hae={provide:wJ,deps:[aa],useFactory:function Vae(i){return function(){return i.scrollStrategies.reposition()}}},zae=yc(function(){return L(function i(s){R(this,i),this._elementRef=s})}()),Gae=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w,M){var A;return R(this,n),(A=r.call(this,l))._changeDetectorRef=c,A._globalModel=p,A._dateAdapter=_,A._rangeSelectionStrategy=w,A._subscriptions=new Te,A._animationDone=new Xe,A._actionsPortal=null,A._closeButtonText=M.closeCalendarLabel,A}return L(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 c=this;this._subscriptions.add(this.datepicker.stateChanges.subscribe(function(){c._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}},{key:"ngOnDestroy",value:function(){this._subscriptions.unsubscribe(),this._animationDone.complete()}},{key:"_handleUserSelection",value:function(c){var p=this._model.selection,_=c.value,w=p instanceof Us;if(w&&this._rangeSelectionStrategy){var M=this._rangeSelectionStrategy.selectionFinished(_,p,c.event);this._model.updateSelection(M,this)}else _&&(w||!this._dateAdapter.sameDate(_,p))&&this._model.add(_);(!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}(zae);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(hn),z(Dg),z(oa),z(FH,8),z(IP))},i.\u0275cmp=ke({type:i,selectors:[["mat-datepicker-content"]],viewQuery:function(r,n){var l;1&r&&Rt(Uq,5),2&r&&Ve(l=Ge())&&(n._calendar=l.first)},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(r,n){1&r&&cv("@transformPanel.done",function(){return n._animationDone.next()}),2&r&&(pv("@transformPanel",n._animationState),Ze("mat-datepicker-content-touch",n.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[Re],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",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(r,n){var l;1&r&&(I(0,"div",0)(1,"mat-calendar",1),ne("yearSelected",function(p){return n.datepicker._selectYear(p)})("monthSelected",function(p){return n.datepicker._selectMonth(p)})("viewChanged",function(p){return n.datepicker._viewChanged(p)})("_userSelection",function(p){return n._handleUserSelection(p)}),B(),te(2,Mae,0,0,"ng-template",2),I(3,"button",3),ne("focus",function(){return n._closeButtonFocused=!0})("blur",function(){return n._closeButtonFocused=!1})("click",function(){return n.datepicker.close()}),K(4),B()()),2&r&&(Ze("mat-datepicker-content-container-with-custom-header",n.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",n._actionsPortal),lt("aria-modal",!0)("aria-labelledby",null!==(l=n._dialogLabelId)&&void 0!==l?l:void 0),G(1),U("id",n.datepicker.id)("ngClass",n.datepicker.panelClass)("startAt",n.datepicker.startAt)("startView",n.datepicker.startView)("minDate",n.datepicker._getMinDate())("maxDate",n.datepicker._getMaxDate())("dateFilter",n.datepicker._getDateFilter())("headerComponent",n.datepicker.calendarHeaderComponent)("selected",n._getSelected())("dateClass",n.datepicker.dateClass)("comparisonStart",n.comparisonStart)("comparisonEnd",n.comparisonEnd)("@fadeInCalendar","enter"),G(1),U("cdkPortalOutlet",n._actionsPortal),G(1),Ze("cdk-visually-hidden",!n._closeButtonFocused),U("color",n.color||"primary"),G(1),Ln(n._closeButtonText))},directives:[Uq,qn,d7,As,pc],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.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:[CJ.transformPanel,CJ.fadeInCalendar]},changeDetection:0}),i}(),SJ=function(){var i=function(){function s(r,n,l,c,p,_,w){R(this,s),this._overlay=r,this._ngZone=n,this._viewContainerRef=l,this._dateAdapter=p,this._dir=_,this._model=w,this._inputStateChanges=Te.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new ye,this.monthSelected=new ye,this.viewChanged=new ye(!0),this.openedStream=new ye,this.closedStream=new ye,this._opened=!1,this.id="mat-datepicker-".concat(Bae++),this._focusedElementBeforeOpen=null,this._backdropHarnessClass="".concat(this.id,"-backdrop"),this.stateChanges=new Xe,this._scrollStrategy=c}return L(s,[{key:"startAt",get:function(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)},set:function(n){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"color",get:function(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)},set:function(n){this._color=n}},{key:"touchUi",get:function(){return this._touchUi},set:function(n){this._touchUi=gt(n)}},{key:"disabled",get:function(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled},set:function(n){var l=gt(n);l!==this._disabled&&(this._disabled=l,this.stateChanges.next(void 0))}},{key:"restoreFocus",get:function(){return this._restoreFocus},set:function(n){this._restoreFocus=gt(n)}},{key:"panelClass",get:function(){return this._panelClass},set:function(n){this._panelClass=qw(n)}},{key:"opened",get:function(){return this._opened},set:function(n){gt(n)?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(n){var l=n.xPosition||n.yPosition;if(l&&!l.firstChange&&this._overlayRef){var c=this._overlayRef.getConfig().positionStrategy;c instanceof dA&&(this._setConnectedPositions(c),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(n){this._model.add(n)}},{key:"_selectYear",value:function(n){this.yearSelected.emit(n)}},{key:"_selectMonth",value:function(n){this.monthSelected.emit(n)}},{key:"_viewChanged",value:function(n){this.viewChanged.emit(n)}},{key:"registerInput",value:function(n){var l=this;return this._inputStateChanges.unsubscribe(),this.datepickerInput=n,this._inputStateChanges=n.stateChanges.subscribe(function(){return l.stateChanges.next(void 0)}),this._model}},{key:"registerActions",value:function(n){this._actionsPortal=n}},{key:"removeActions",value:function(n){n===this._actionsPortal&&(this._actionsPortal=null)}},{key:"open",value:function(){this._opened||this.disabled||(this._focusedElementBeforeOpen=Gh(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}},{key:"close",value:function(){var n=this;if(this._opened){if(this._componentRef){var l=this._componentRef.instance;l._startExitAnimation(),l._animationDone.pipe(gn(1)).subscribe(function(){return n._destroyOverlay()})}var c=function(){n._opened&&(n._opened=!1,n.closedStream.emit(),n._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(c)):c()}}},{key:"_applyPendingSelection",value:function(){var n,l;null===(l=null===(n=this._componentRef)||void 0===n?void 0:n.instance)||void 0===l||l._applyPendingSelection()}},{key:"_forwardContentValues",value:function(n){n.datepicker=this,n.color=this.color,n._actionsPortal=this._actionsPortal,n._dialogLabelId=this.datepickerInput.getOverlayLabelId()}},{key:"_openOverlay",value:function(){var n=this;this._destroyOverlay();var l=this.touchUi,c=new Rf(Gae,this._viewContainerRef),p=this._overlayRef=this._overlay.create(new Ff({positionStrategy:l?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[l?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:l?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-".concat(l?"dialog":"popup")}));this._getCloseStream(p).subscribe(function(_){_&&_.preventDefault(),n.close()}),this._componentRef=p.attach(c),this._forwardContentValues(this._componentRef.instance),l||this._ngZone.onStable.pipe(gn(1)).subscribe(function(){return p.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 n=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(n)}},{key:"_setConnectedPositions",value:function(n){var l="end"===this.xPosition?"end":"start",c="start"===l?"end":"start",p="above"===this.yPosition?"bottom":"top",_="top"===p?"bottom":"top";return n.withPositions([{originX:l,originY:_,overlayX:l,overlayY:p},{originX:l,originY:p,overlayX:l,overlayY:_},{originX:c,originY:_,overlayX:c,overlayY:p},{originX:c,originY:p,overlayX:c,overlayY:_}])}},{key:"_getCloseStream",value:function(n){var l=this;return Rr(n.backdropClick(),n.detachments(),n.keydownEvents().pipe(Ur(function(c){return 27===c.keyCode&&!ia(c)||l.datepickerInput&&ia(c,"altKey")&&38===c.keyCode})))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(aa),z(Pt),z(wr),z(wJ),z(oa,8),z(Ei,8),z(Dg))},i.\u0275dir=be({type:i,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[xn]}),i}(),MJ=function(){var i=function(s){se(n,s);var r=ue(n);function n(){return R(this,n),r.apply(this,arguments)}return L(n)}(SJ);return i.\u0275fac=function(){var s;return function(n){return(s||(s=cn(i)))(n||i)}}(),i.\u0275cmp=ke({type:i,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[ft([vJ,{provide:SJ,useExisting:i}]),Re],decls:0,vars:0,template:function(r,n){},encapsulation:2,changeDetection:0}),i}(),NH=L(function i(s,r){R(this,i),this.target=s,this.targetElement=r,this.value=this.target.value}),Uae=function(){var i=function(){function s(r,n,l){var c=this;R(this,s),this._elementRef=r,this._dateAdapter=n,this._dateFormats=l,this.dateChange=new ye,this.dateInput=new ye,this.stateChanges=new Xe,this._onTouched=function(){},this._validatorOnChange=function(){},this._cvaOnChange=function(){},this._valueChangesSubscription=Te.EMPTY,this._localeSubscription=Te.EMPTY,this._parseValidator=function(){return c._lastValueValid?null:{matDatepickerParse:{text:c._elementRef.nativeElement.value}}},this._filterValidator=function(p){var _=c._dateAdapter.getValidDateOrNull(c._dateAdapter.deserialize(p.value));return!_||c._matchesFilter(_)?null:{matDatepickerFilter:!0}},this._minValidator=function(p){var _=c._dateAdapter.getValidDateOrNull(c._dateAdapter.deserialize(p.value)),w=c._getMinDate();return!w||!_||c._dateAdapter.compareDate(w,_)<=0?null:{matDatepickerMin:{min:w,actual:_}}},this._maxValidator=function(p){var _=c._dateAdapter.getValidDateOrNull(c._dateAdapter.deserialize(p.value)),w=c._getMaxDate();return!w||!_||c._dateAdapter.compareDate(w,_)>=0?null:{matDatepickerMax:{max:w,actual:_}}},this._lastValueValid=!1,this._localeSubscription=n.localeChanges.subscribe(function(){c._assignValueProgrammatically(c.value)})}return L(s,[{key:"value",get:function(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue},set:function(n){this._assignValueProgrammatically(n)}},{key:"disabled",get:function(){return!!this._disabled||this._parentDisabled()},set:function(n){var l=gt(n),c=this._elementRef.nativeElement;this._disabled!==l&&(this._disabled=l,this.stateChanges.next(void 0)),l&&this._isInitialized&&c.blur&&c.blur()}},{key:"_getValidators",value:function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}},{key:"_registerModel",value:function(n){var l=this;this._model=n,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(function(c){if(l._shouldHandleChangeEvent(c)){var p=l._getValueFromModel(c.selection);l._lastValueValid=l._isValidValue(p),l._cvaOnChange(p),l._onTouched(),l._formatValue(p),l.dateInput.emit(new NH(l,l._elementRef.nativeElement)),l.dateChange.emit(new NH(l,l._elementRef.nativeElement))}})}},{key:"ngAfterViewInit",value:function(){this._isInitialized=!0}},{key:"ngOnChanges",value:function(n){(function jae(i,s){for(var n=0,l=Object.keys(i);n2&&void 0!==arguments[2]&&arguments[2],_=arguments.length>3&&void 0!==arguments[3]&&arguments[3];!this.multiple&&this.selected&&!n.checked&&(this.selected.checked=!1),this._selectionModel?l?this._selectionModel.select(n):this._selectionModel.deselect(n):_=!0,_?Promise.resolve().then(function(){return c._updateModelValue(p)}):this._updateModelValue(p)}},{key:"_isSelected",value:function(n){return this._selectionModel&&this._selectionModel.isSelected(n)}},{key:"_isPrechecked",value:function(n){return void 0!==this._rawValue&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(function(l){return null!=n.value&&l===n.value}):n.value===this._rawValue)}},{key:"_setSelectionByValue",value:function(n){var l=this;this._rawValue=n,this._buttonToggles&&(this.multiple&&n?(Array.isArray(n),this._clearSelection(),n.forEach(function(c){return l._selectValue(c)})):(this._clearSelection(),this._selectValue(n)))}},{key:"_clearSelection",value:function(){this._selectionModel.clear(),this._buttonToggles.forEach(function(n){return n.checked=!1})}},{key:"_selectValue",value:function(n){var l=this._buttonToggles.find(function(c){return null!=c.value&&c.value===n});l&&(l.checked=!0,this._selectionModel.select(l))}},{key:"_updateModelValue",value:function(n){n&&this._emitChangeEvent(),this.valueChange.emit(this.value)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(hn),z(DJ,8))},i.\u0275dir=be({type:i,selectors:[["mat-button-toggle-group"]],contentQueries:function(r,n,l){var c;1&r&&Mn(l,PJ,5),2&r&&Ve(c=Ge())&&(n._buttonToggles=c)},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(r,n){2&r&&(lt("aria-disabled",n.disabled),Ze("mat-button-toggle-vertical",n.vertical)("mat-button-toggle-group-appearance-standard","standard"===n.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[ft([$ae,{provide:xJ,useExisting:i}])]}),i}(),Qae=bc(function(){return L(function i(){R(this,i)})}()),PJ=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w,M){var A;R(this,n),(A=r.call(this))._changeDetectorRef=c,A._elementRef=p,A._focusMonitor=_,A._isSingleSelector=!1,A._checked=!1,A.ariaLabelledby=null,A._disabled=!1,A.change=new ye;var O=Number(w);return A.tabIndex=O||0===O?O:null,A.buttonToggleGroup=l,A.appearance=M&&M.appearance?M.appearance:"standard",A}return L(n,[{key:"buttonId",get:function(){return"".concat(this.id,"-button")}},{key:"appearance",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance},set:function(c){this._appearance=c}},{key:"checked",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked},set:function(c){var p=gt(c);p!==this._checked&&(this._checked=p,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(c){this._disabled=gt(c)}},{key:"ngOnInit",value:function(){var c=this.buttonToggleGroup;this._isSingleSelector=c&&!c.multiple,this.id=this.id||"mat-button-toggle-".concat(TJ++),this._isSingleSelector&&(this.name=c.name),c&&(c._isPrechecked(this)?this.checked=!0:c._isSelected(this)!==this._checked&&c._syncButtonToggle(this,this._checked))}},{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){var c=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),c&&c._isSelected(this)&&c._syncButtonToggle(this,!1,!1,!0)}},{key:"focus",value:function(c){this._buttonElement.nativeElement.focus(c)}},{key:"_onButtonClick",value:function(){var c=!!this._isSingleSelector||!this._checked;c!==this._checked&&(this._checked=c,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new AJ(this,this.value))}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),n}(Qae);return i.\u0275fac=function(r){return new(r||i)(z(xJ,8),z(hn),z(tt),z(Rl),Ho("tabindex"),z(DJ,8))},i.\u0275cmp=ke({type:i,selectors:[["mat-button-toggle"]],viewQuery:function(r,n){var l;1&r&&Rt(Xae,5),2&r&&Ve(l=Ge())&&(n._buttonElement=l.first)},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(r,n){1&r&&ne("focus",function(){return n.focus()}),2&r&&(lt("aria-label",null)("aria-labelledby",null)("id",n.id)("name",null),Ze("mat-button-toggle-standalone",!n.buttonToggleGroup)("mat-button-toggle-checked",n.checked)("mat-button-toggle-disabled",n.disabled)("mat-button-toggle-appearance-standard","standard"===n.appearance))},inputs:{disableRipple:"disableRipple",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[Re],ngContentSelectors:Kae,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(r,n){if(1&r&&(vi(),I(0,"button",0,1),ne("click",function(){return n._onButtonClick()}),I(2,"span",2),Gt(3),B()(),Se(4,"span",3)(5,"span",4)),2&r){var l=Dn(1);U("id",n.buttonId)("disabled",n.disabled||null),lt("tabindex",n.disabled?-1:n.tabIndex)("aria-pressed",n.checked)("name",n.name||null)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby),G(5),U("matRippleTrigger",l)("matRippleDisabled",n.disableRipple||n.disabled)}},directives:[Nl],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;transform:translateZ(0)}.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;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 .cdk-high-contrast-active .mat-button-toggle-focus-overlay{border-bottom:solid 36px;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}),i}(),Jae=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[vn,Cc],vn]}),i}();function eoe(i,s){1&i&&(I(0,"uds-translate"),K(1,"Edit rule"),B())}function toe(i,s){1&i&&(I(0,"uds-translate"),K(1,"New rule"),B())}function noe(i,s){if(1&i&&(I(0,"mat-option",22),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.value," ")}}function roe(i,s){if(1&i&&(I(0,"mat-option",22),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.value," ")}}function ioe(i,s){if(1&i&&(I(0,"mat-button-toggle",22),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.value," ")}}function aoe(i,s){if(1&i){var r=xe();I(0,"div",23)(1,"span",24)(2,"uds-translate"),K(3,"Weekdays"),B()(),I(4,"mat-button-toggle-group",25),ne("ngModelChange",function(c){return he(r),Q().wDays=c}),te(5,ioe,2,2,"mat-button-toggle",8),B()()}if(2&i){var n=Q();G(4),U("ngModel",n.wDays),G(1),U("ngForOf",n.weekDays)}}function ooe(i,s){if(1&i){var r=xe();I(0,"mat-form-field",9)(1,"mat-label")(2,"uds-translate"),K(3,"Repeat every"),B()(),I(4,"input",6),ne("ngModelChange",function(c){return he(r),Q().rule.interval=c}),B(),I(5,"div",26),K(6),B()()}if(2&i){var n=Q();G(4),U("ngModel",n.rule.interval),G(2),Le("\xa0",n.frequency(),"")}}var VH={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")]},HH={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},OJ=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],IJ=function(s){for(var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new Array,l=0;l<7;l++)1&s&&n.push(OJ[l].substr(0,r?100:3)),s>>=1;return n.length?n.join(", "):django.gettext("(no days)")},RJ=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.dunits=Object.keys(HH).map(function(p){return{id:p,value:HH[p]}}),this.freqs=Object.keys(VH).map(function(p){return{id:p,value:VH[p][2]}}),this.weekDays=OJ.map(function(p,_){return{id:1<<_,value:p.substr(0,3)}}),this.FOREVER_STRING=django.gettext("Forever"),this.onSave=new ye(!0),this.startDate=new Date,this.endDate=null,this.startTime="00:00",this.wDays=[],this.rules=c.rules,this.rule={id:void 0,name:"",comments:"",start:null,end:null,frequency:"DAILY",duration:0,duration_unit:"MINUTES",interval:1},c.rule&&(this.rule.id=c.rule.id)}return L(s,[{key:"ngOnInit",value:function(){var n=this;this.rule.id&&this.rules.get(this.rule.id).subscribe(function(l){if(n.rule=l,n.startDate=new Date(1e3*n.rule.start),n.startTime=n.startDate.toTimeString().split(":").splice(0,2).join(":"),n.endDate=n.rule.end?new Date(1e3*n.rule.end):null,"WEEKDAYS"===n.rule.frequency){for(var c=[],p=0;p<7;p++)n.rule.interval&1<0?" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+HH[this.rule.duration_unit]:django.gettext("with no duration")}return n.replace("$FIELD",c)}},{key:"save",value:function(){var n=this;this.rules.save(this.rule).subscribe(function(){n.dialogRef.close(),n.onSave.emit(!0)})}}],[{key:"launch",value:function(n,l,c){var p=window.innerWidth<800?"75%":"50%";return n.gui.dialog.open(s,{width:p,position:{top:window.innerWidth<800?"0px":"7rem"},data:{rules:l,rule:c},disableClose:!0}).componentInstance.onSave}},{key:"getDateTime",value:function(){return 0}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){if(1&r&&(I(0,"h4",0),te(1,eoe,2,0,"uds-translate",1),te(2,toe,2,0,"uds-translate",1),B(),I(3,"mat-dialog-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),K(8,"Name"),B()(),I(9,"input",3),ne("ngModelChange",function(_){return n.rule.name=_}),B()(),I(10,"mat-form-field")(11,"mat-label")(12,"uds-translate"),K(13,"Comments"),B()(),I(14,"input",3),ne("ngModelChange",function(_){return n.rule.comments=_}),B()(),I(15,"h3")(16,"uds-translate"),K(17,"Event"),B()(),I(18,"mat-form-field",4)(19,"mat-label")(20,"uds-translate"),K(21,"Start time"),B()(),I(22,"input",5),ne("ngModelChange",function(_){return n.startTime=_}),B()(),I(23,"mat-form-field",4)(24,"mat-label")(25,"uds-translate"),K(26,"Duration"),B()(),I(27,"input",6),ne("ngModelChange",function(_){return n.rule.duration=_}),B()(),I(28,"mat-form-field",4)(29,"mat-label")(30,"uds-translate"),K(31,"Duration units"),B()(),I(32,"mat-select",7),ne("ngModelChange",function(_){return n.rule.duration_unit=_}),te(33,noe,2,2,"mat-option",8),B()(),I(34,"h3"),K(35," Repetition "),B(),I(36,"mat-form-field",9)(37,"mat-label")(38,"uds-translate"),K(39," Start date "),B()(),I(40,"input",10),ne("ngModelChange",function(_){return n.startDate=_}),B(),Se(41,"mat-datepicker-toggle",11)(42,"mat-datepicker",null,12),B(),I(44,"mat-form-field",9)(45,"mat-label")(46,"uds-translate"),K(47," Repeat until date "),B()(),I(48,"input",13),ne("ngModelChange",function(_){return n.endDate=_}),B(),Se(49,"mat-datepicker-toggle",11)(50,"mat-datepicker",null,14),B(),I(52,"div",15)(53,"mat-form-field",9)(54,"mat-label")(55,"uds-translate"),K(56,"Frequency"),B()(),I(57,"mat-select",16),ne("ngModelChange",function(_){return n.rule.frequency=_})("valueChange",function(){return n.rule.interval=1}),te(58,roe,2,2,"mat-option",8),B()(),te(59,aoe,6,2,"div",17),te(60,ooe,7,2,"mat-form-field",18),B(),I(61,"h3")(62,"uds-translate"),K(63,"Summary"),B()(),I(64,"div",19),K(65),B()()(),I(66,"mat-dialog-actions")(67,"button",20)(68,"uds-translate"),K(69,"Cancel"),B()(),I(70,"button",21),ne("click",function(){return n.save()}),I(71,"uds-translate"),K(72,"Ok"),B()()()),2&r){var l=Dn(43),c=Dn(51);G(1),U("ngIf",n.rule.id),G(1),U("ngIf",!n.rule.id),G(7),U("ngModel",n.rule.name),G(5),U("ngModel",n.rule.comments),G(8),U("ngModel",n.startTime),G(5),U("ngModel",n.rule.duration),G(5),U("ngModel",n.rule.duration_unit),G(1),U("ngForOf",n.dunits),G(7),U("matDatepicker",l)("ngModel",n.startDate),G(1),U("for",l),G(7),U("matDatepicker",c)("ngModel",n.endDate)("placeholder",n.FOREVER_STRING),G(1),U("for",c),G(8),U("ngModel",n.rule.frequency),G(1),U("ngForOf",n.freqs),G(1),U("ngIf","WEEKDAYS"===n.rule.frequency),G(1),U("ngIf","WEEKDAYS"!==n.rule.frequency),G(5),Le(" ",n.summary()," "),G(5),U("disabled",null!==n.updateRuleData()||""===n.rule.name)}},directives:[si,en,Gn,jr,or,Tr,ua,yi,pr,ar,Kf,Ua,ir,Pi,BH,kJ,wg,MJ,EJ,PJ,li,qn,_i],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:#0009;display:block;font-weight:400;left:0px;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:0px 0px;white-space:nowrap}.mat-datepicker-toggle[_ngcontent-%COMP%]{color:#00f}.mat-button-toggle-checked[_ngcontent-%COMP%]{background-color:#23238580;color:#fff}"]}),i}();function loe(i,s){1&i&&(I(0,"uds-translate"),K(1,"Rules"),B())}function uoe(i,s){if(1&i){var r=xe();I(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),te(4,loe,2,0,"ng-template",9),I(5,"div",10)(6,"uds-table",11),ne("newAction",function(c){return he(r),Q().onNewRule(c)})("editAction",function(c){return he(r),Q().onEditRule(c)})("deleteAction",function(c){return he(r),Q().onDeleteRule(c)}),B()()()()()()}if(2&i){var n=Q();G(2),U("@.disabled",!0),G(4),U("rest",n.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",n.processElement)("tableId","calendars-d-rules"+n.calendar.id)("pageSize",n.api.config.admin.page_size)}}var coe=function(s){return["/pools","calendars",s]},foe=function(){var i=function(){function s(r,n,l){R(this,s),this.route=r,this.rest=n,this.api=l}return L(s,[{key:"ngOnInit",value:function(){var n=this,l=this.route.snapshot.paramMap.get("calendar");this.rest.calendars.get(l).subscribe(function(c){n.calendar=c,n.calendarRules=n.rest.calendars.detail(c.id,"rules")})}},{key:"onNewRule",value:function(n){RJ.launch(this.api,this.calendarRules).subscribe(function(){return n.table.overview()})}},{key:"onEditRule",value:function(n){RJ.launch(this.api,this.calendarRules,n.table.selection.selected[0]).subscribe(function(){return n.table.overview()})}},{key:"onDeleteRule",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete calendar rule"))}},{key:"processElement",value:function(n){!function(s){s.interval="WEEKDAYS"===s.frequency?IJ(s.interval):s.interval+" "+VH[s.frequency][django.pluralidx(s.interval)],s.duration=s.duration+" "+HH[s.duration_unit]}(n)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Vr),z(rn),z(Ot))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),K(4,"arrow_back"),B()(),K(5," \xa0"),Se(6,"img",4),K(7),B(),te(8,uoe,7,7,"div",5),B()),2&r&&(G(2),U("routerLink",xs(4,coe,n.calendar?n.calendar.id:"")),G(4),U("src",n.api.staticURL("admin/img/icons/calendars.png"),Qt),G(1),Le(" ",null==n.calendar?null:n.calendar.name," "),G(1),U("ngIf",n.calendar))},directives:[Al,en,Hl,Hs,rs,Gn,Kr],styles:[".mat-column-start, .mat-column-end{max-width:9rem} .mat-column-frequency{max-width:9rem} .mat-column-interval, .mat-column-duration{max-width:11rem}"]}),i}(),doe='event'+django.gettext("Set time mark")+"",LJ=function(){var i=function(){function s(r,n,l){R(this,s),this.route=r,this.rest=n,this.api=l,this.cButtons=[{id:"timemark",html:doe,type:vr.SINGLE_SELECT}]}return L(s,[{key:"ngOnInit",value:function(){}},{key:"customButtons",get:function(){return this.api.user.isAdmin?this.cButtons:[]}},{key:"onNew",value:function(n){this.api.gui.forms.typedNewForm(n,django.gettext("New account"))}},{key:"onEdit",value:function(n){this.api.gui.forms.typedEditForm(n,django.gettext("Edit account"))}},{key:"onDelete",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete account"))}},{key:"onTimeMark",value:function(n){var l=this,c=n.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",c.name)).subscribe(function(p){p&&l.rest.accounts.timemark(c.id).subscribe(function(){l.api.gui.snackbar.open(django.gettext("Time mark stablished"),django.gettext("dismiss"),{duration:2e3}),n.table.overview()})})}},{key:"onDetail",value:function(n){this.api.navigation.gotoAccountDetail(n.param.id)}},{key:"onLoad",value:function(n){!0===n.param&&n.table.selectElement("id",this.route.snapshot.paramMap.get("account"))}},{key:"processElement",value:function(n){n.time_mark=78793200===n.time_mark?django.gettext("No time mark"):zs("SHORT_DATE_FORMAT",n.time_mark)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Vr),z(rn),z(Ot))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"uds-table",0),ne("customButtonAction",function(c){return n.onTimeMark(c)})("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),B()),2&r&&U("rest",n.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)("onItem",n.processElement)},directives:[Kr],styles:[""]}),i}();function hoe(i,s){1&i&&(I(0,"uds-translate"),K(1,"Account usage"),B())}function poe(i,s){if(1&i){var r=xe();I(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),te(4,hoe,2,0,"ng-template",9),I(5,"div",10)(6,"uds-table",11),ne("deleteAction",function(c){return he(r),Q().onDeleteUsage(c)}),B()()()()()()}if(2&i){var n=Q();G(2),U("@.disabled",!0),G(4),U("rest",n.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",n.processElement)("tableId","account-d-usage"+n.account.id)}}var voe=function(s){return["/pools","accounts",s]},goe=function(){var i=function(){function s(r,n,l){R(this,s),this.route=r,this.rest=n,this.api=l}return L(s,[{key:"ngOnInit",value:function(){var n=this,l=this.route.snapshot.paramMap.get("account");this.rest.accounts.get(l).subscribe(function(c){n.account=c,n.accountUsage=n.rest.accounts.detail(c.id,"usage")})}},{key:"onDeleteUsage",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete account usage"))}},{key:"processElement",value:function(n){n.running=this.api.yesno(n.running)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Vr),z(rn),z(Ot))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),K(4,"arrow_back"),B()(),K(5," \xa0"),Se(6,"img",4),K(7),B(),te(8,poe,7,6,"div",5),B()),2&r&&(G(2),U("routerLink",xs(4,voe,n.account?n.account.id:"")),G(4),U("src",n.api.staticURL("admin/img/icons/accounts.png"),Qt),G(1),Le(" ",null==n.account?null:n.account.name," "),G(1),U("ngIf",n.account))},directives:[Al,en,Hl,Hs,rs,Gn,Kr],styles:[""]}),i}();function moe(i,s){1&i&&(I(0,"uds-translate"),K(1,"New image for"),B())}function _oe(i,s){1&i&&(I(0,"uds-translate"),K(1,"Edit for"),B())}var FJ=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.onSave=new ye(!0),this.preview="",this.image={id:void 0,data:"",name:""},c.image&&(this.image.id=c.image.id)}return L(s,[{key:"onFileChanged",value:function(n){var l=this,c=n.target.files[0];if(c.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(c.type)){var p=new FileReader;p.onload=function(_){var w=p.result;l.preview=w,l.image.data=w.substr(w.indexOf("base64,")+7),l.image.name||(l.image.name=c.name)},p.readAsDataURL(c)}else this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG and GIF"))}},{key:"ngOnInit",value:function(){var n=this;this.image.id&&this.rest.gallery.get(this.image.id).subscribe(function(l){switch(n.image=l,n.image.data.substr(2)){case"iV":n.preview="data:image/png;base64,"+n.image.data;break;case"/9":n.preview="data:image/jpeg;base64,"+n.image.data;break;default:n.preview="data:image/gif;base64,"+n.image.data}})}},{key:"background",value:function(){var n=this.api.config.image_size[0],l=this.api.config.image_size[1],c={"width.px":n,"height.px":l,"background-size":n+"px "+l+"px"};return this.preview&&(c["background-image"]="url("+this.preview+")"),c}},{key:"save",value:function(){var n=this;this.image.name&&this.image.data?this.rest.gallery.save(this.image).subscribe(function(){n.api.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),n.dialogRef.close(),n.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, provide a name and a image"))}}],[{key:"launch",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,c=window.innerWidth<800?"60%":"40%",p=n.gui.dialog.open(s,{width:c,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:l},disableClose:!0});return p.componentInstance.onSave}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){if(1&r){var l=xe();I(0,"h4",0),te(1,moe,2,0,"uds-translate",1),te(2,_oe,2,0,"uds-translate",1),B(),I(3,"mat-dialog-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),K(8,"Image name"),B()(),I(9,"input",3),ne("ngModelChange",function(p){return n.image.name=p}),B()(),I(10,"input",4,5),ne("change",function(p){return n.onFileChanged(p)}),B(),I(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),K(15,"Image (click to change)"),B()(),I(16,"input",6),ne("click",function(){return he(l),Dn(11).click()}),B(),I(17,"div",7),ne("click",function(){return he(l),Dn(11).click()}),Se(18,"div",8),B()(),I(19,"div",9)(20,"uds-translate"),K(21,' For optimal results, use "squared" images. '),B(),I(22,"uds-translate"),K(23," The image will be resized on upload to "),B(),K(24),B()()(),I(25,"mat-dialog-actions")(26,"button",10)(27,"uds-translate"),K(28,"Cancel"),B()(),I(29,"button",11),ne("click",function(){return n.save()}),I(30,"uds-translate"),K(31,"Ok"),B()()()}2&r&&(G(1),U("ngIf",!n.image.id),G(1),U("ngIf",n.image.id),G(7),U("ngModel",n.image.name),G(7),U("hidden",!0),G(2),U("ngStyle",n.background()),G(6),th(" ",n.api.config.image_size[0],"x",n.api.config.image_size[1]," "))},directives:[si,en,Gn,jr,or,Tr,ua,yi,pr,ar,aw,li,qn,_i],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%]{width:100%}.preview[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;width:100%}.image-preview[_ngcontent-%COMP%]{background-color:#0000004d}"]}),i}(),NJ=function(){var i=function(){function s(r,n,l){R(this,s),this.route=r,this.rest=n,this.api=l}return L(s,[{key:"ngOnInit",value:function(){}},{key:"onNew",value:function(n){FJ.launch(this.api).subscribe(function(){return n.table.overview()})}},{key:"onEdit",value:function(n){FJ.launch(this.api,n.table.selection.selected[0]).subscribe(function(){return n.table.overview()})}},{key:"onDelete",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete image"))}},{key:"onLoad",value:function(n){!0===n.param&&n.table.selectElement("id",this.route.snapshot.paramMap.get("image"))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Vr),z(rn),z(Ot))},i.\u0275cmp=ke({type:i,selectors:[["uds-gallery"]],decls:1,vars:5,consts:[["icon","gallery",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(r,n){1&r&&(I(0,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),B()),2&r&&U("rest",n.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",n.api.config.admin.page_size)},directives:[Kr],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]}),i}(),yoe='assessment'+django.gettext("Generate report")+"",boe=function(){var i=function(){function s(r,n){R(this,s),this.rest=r,this.api=n,this.customButtons=[{id:"genreport",html:yoe,type:vr.SINGLE_SELECT}]}return L(s,[{key:"ngOnInit",value:function(){}},{key:"generateReport",value:function(n){var l=this,c=new ye;c.subscribe(function(p){l.api.gui.snackbar.open(django.gettext("Generating report...")),l.rest.reports.save(p,n.table.selection.selected[0].id).subscribe(function(_){for(var w=_.encoded?window.atob(_.data):_.data,M=w.length,A=new Uint8Array(M),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:#0009;display:block;font-weight:400;left:0px;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:0px 0px;white-space:nowrap}.config-footer[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;margin-top:2rem;margin-bottom:2rem}"]}),i}(),Noe=function(){var i=function(){function s(r,n,l){R(this,s),this.api=r,this.route=n,this.rest=l}return L(s,[{key:"ngOnInit",value:function(){}},{key:"onDelete",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(Vr),z(rn))},i.\u0275cmp=ke({type:i,selectors:[["uds-actor-tokens"]],decls:2,vars:4,consts:[["icon","accounts",3,"rest","multiSelect","allowExport","pageSize","deleteAction"]],template:function(r,n){1&r&&(I(0,"div")(1,"uds-table",0),ne("deleteAction",function(c){return n.onDelete(c)}),B()()),2&r&&(G(1),U("rest",n.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",n.api.config.admin.page_size))},directives:[Kr],styles:[""]}),i}(),Boe=function(){var i=function(){function s(r,n,l){R(this,s),this.api=r,this.route=n,this.rest=l}return L(s,[{key:"ngOnInit",value:function(){}},{key:"onDelete",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete tunnel token - USE WITH EXTREME CAUTION!!!"))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(Vr),z(rn))},i.\u0275cmp=ke({type:i,selectors:[["uds-tunnel-tokens"]],decls:2,vars:4,consts:[["icon","proxy",3,"rest","multiSelect","allowExport","pageSize","deleteAction"]],template:function(r,n){1&r&&(I(0,"div")(1,"uds-table",0),ne("deleteAction",function(c){return n.onDelete(c)}),B()()),2&r&&(G(1),U("rest",n.rest.tunnelToken)("multiSelect",!0)("allowExport",!0)("pageSize",n.api.config.admin.page_size))},directives:[Kr],styles:[""]}),i}(),Voe=[{path:"",canActivate:[E5],children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:HY},{path:"providers",component:YQ},{path:"providers/:provider/detail",component:qQ},{path:"providers/:provider",component:YQ},{path:"providers/:provider/detail/:service",component:qQ},{path:"authenticators",component:ZQ},{path:"authenticators/:authenticator/detail",component:Rq},{path:"authenticators/:authenticator",component:ZQ},{path:"authenticators/:authenticator/detail/groups/:group",component:Rq},{path:"authenticators/:authenticator/detail/users/:user",component:Rq},{path:"networks",component:rJ},{path:"networks/:network",component:rJ},{path:"osmanagers",component:tJ},{path:"osmanagers/:osmanager",component:tJ},{path:"transports",component:nJ},{path:"transports/:transport",component:nJ},{path:"pools/service-pools",component:iJ},{path:"pools/service-pools/:pool",component:iJ},{path:"pools/service-pools/:pool/detail",component:uJ},{path:"pools/meta-pools",component:cJ},{path:"pools/meta-pools/:metapool",component:cJ},{path:"pools/meta-pools/:metapool/detail",component:dae},{path:"pools/pool-groups",component:dJ},{path:"pools/pool-groups/:poolgroup",component:dJ},{path:"pools/calendars",component:hJ},{path:"pools/calendars/:calendar",component:hJ},{path:"pools/calendars/:calendar/detail",component:foe},{path:"pools/accounts",component:LJ},{path:"pools/accounts/:account",component:LJ},{path:"pools/accounts/:account/detail",component:goe},{path:"tools/gallery",component:NJ},{path:"tools/gallery/:image",component:NJ},{path:"tools/reports",component:boe},{path:"tools/notifiers",component:Coe},{path:"tools/tokens/actor",component:Noe},{path:"tools/tokens/tunnel",component:Boe},{path:"tools/configuration",component:Foe}]},{path:"**",redirectTo:"summary"}],Hoe=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[FT.forRoot(Voe,{relativeLinkResolution:"corrected"})],FT]}),i}(),GJ=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({}),i}(),Qoe=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[Cc,vn,Ny,GJ],vn,GJ]}),i}(),Joe=["*"],UJ=new Ae("MatChipRemove"),jJ=new Ae("MatChipAvatar"),WJ=new Ae("MatChipTrailingIcon"),ese=L(function i(s){R(this,i),this._elementRef=s}),tse=Z1(yc(bc(ese),"primary"),-1),zH=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w,M,A,O){var F;return R(this,n),(F=r.call(this,l))._ngZone=c,F._changeDetectorRef=w,F._hasFocus=!1,F.chipListSelectable=!0,F._chipListMultiple=!1,F._chipListDisabled=!1,F._selected=!1,F._selectable=!0,F._disabled=!1,F._removable=!0,F._onFocus=new Xe,F._onBlur=new Xe,F.selectionChange=new ye,F.destroyed=new ye,F.removed=new ye,F._addHostClassName(),F._chipRippleTarget=M.createElement("div"),F._chipRippleTarget.classList.add("mat-chip-ripple"),F._elementRef.nativeElement.appendChild(F._chipRippleTarget),F._chipRipple=new zB(an(F),c,F._chipRippleTarget,p),F._chipRipple.setupTriggerEvents(l),F.rippleConfig=_||{},F._animationsDisabled="NoopAnimations"===A,F.tabIndex=null!=O&&parseInt(O)||-1,F}return L(n,[{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(c){var p=gt(c);p!==this._selected&&(this._selected=p,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(c){this._value=c}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(c){this._selectable=gt(c)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(c){this._disabled=gt(c)}},{key:"removable",get:function(){return this._removable},set:function(c){this._removable=gt(c)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}},{key:"_addHostClassName",value:function(){var c="mat-basic-chip",p=this._elementRef.nativeElement;p.hasAttribute(c)||p.tagName.toLowerCase()===c?p.classList.add(c):p.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 c=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(c),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(c){this.disabled&&c.preventDefault()}},{key:"_handleKeydown",value:function(c){if(!this.disabled)switch(c.keyCode){case 46:case 8:this.remove(),c.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),c.preventDefault()}}},{key:"_blur",value:function(){var c=this;this._ngZone.onStable.pipe(gn(1)).subscribe(function(){c._ngZone.run(function(){c._hasFocus=!1,c._onBlur.next({chip:c})})})}},{key:"_dispatchSelectionChange",value:function(){var c=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:c,selected:this._selected})}}]),n}(tse);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(Pt),z(pn),z(GB,8),z(hn),z(Jt),z(mi,8),Ho("tabindex"))},i.\u0275dir=be({type:i,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(r,n,l){var c;1&r&&(Mn(l,jJ,5),Mn(l,WJ,5),Mn(l,UJ,5)),2&r&&(Ve(c=Ge())&&(n.avatar=c.first),Ve(c=Ge())&&(n.trailingIcon=c.first),Ve(c=Ge())&&(n.removeIcon=c.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(r,n){1&r&&ne("click",function(c){return n._handleClick(c)})("keydown",function(c){return n._handleKeydown(c)})("focus",function(){return n.focus()})("blur",function(){return n._blur()}),2&r&&(lt("tabindex",n.disabled?null:n.tabIndex)("disabled",n.disabled||null)("aria-disabled",n.disabled.toString())("aria-selected",n.ariaSelected),Ze("mat-chip-selected",n.selected)("mat-chip-with-avatar",n.avatar)("mat-chip-with-trailing-icon",n.trailingIcon||n.removeIcon)("mat-chip-disabled",n.disabled)("_mat-animation-noopable",n._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:[Re]}),i}(),YJ=function(){var i=function(){function s(r,n){R(this,s),this._parentChip=r,"BUTTON"===n.nativeElement.nodeName&&n.nativeElement.setAttribute("type","button")}return L(s,[{key:"_handleClick",value:function(n){var l=this._parentChip;l.removable&&!l.disabled&&l.remove(),n.stopPropagation(),n.preventDefault()}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(zH),z(tt))},i.\u0275dir=be({type:i,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(r,n){1&r&&ne("click",function(c){return n._handleClick(c)})},features:[ft([{provide:UJ,useExisting:i}])]}),i}(),qJ=new Ae("mat-chips-default-options"),ise=0,ZJ=function(){var i=function(){function s(r,n){R(this,s),this._elementRef=r,this._defaultOptions=n,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new ye,this.placeholder="",this.id="mat-chip-list-input-".concat(ise++),this._disabled=!1,this.inputElement=this._elementRef.nativeElement}return L(s,[{key:"chipList",set:function(n){n&&(this._chipList=n,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(n){this._addOnBlur=gt(n)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(n){this._disabled=gt(n)}},{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(n){if(n){if(9===n.keyCode&&!ia(n,"shiftKey")&&this._chipList._allowFocusEscape(),8===n.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void n.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(n)}},{key:"_keyup",value:function(n){!this._focusLastChipOnBackspace&&8===n.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,n.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._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(n){!this.inputElement.value&&!!n&&this._chipList._keydown(n),(!n||this._isSeparatorKey(n))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==n||n.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(n){this.inputElement.focus(n)}},{key:"clear",value:function(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}},{key:"_isSeparatorKey",value:function(n){return!ia(n)&&new Set(this.separatorKeyCodes).has(n.keyCode)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(tt),z(qJ))},i.\u0275dir=be({type:i,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(r,n){1&r&&ne("keydown",function(c){return n._keydown(c)})("keyup",function(c){return n._keyup(c)})("blur",function(){return n._blur()})("focus",function(){return n._focus()})("input",function(){return n._onInput()}),2&r&&(bl("id",n.id),lt("disabled",n.disabled||null)("placeholder",n.placeholder||null)("aria-invalid",n._chipList&&n._chipList.ngControl?n._chipList.ngControl.invalid:null)("aria-required",n._chipList&&n._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[xn]}),i}(),ase=X1(function(){return L(function i(s,r,n,l){R(this,i),this._defaultErrorStateMatcher=s,this._parentForm=r,this._parentFormGroup=n,this.ngControl=l})}()),ose=0,sse=L(function i(s,r){R(this,i),this.source=s,this.value=r}),XJ=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w,M,A){var O;return R(this,n),(O=r.call(this,M,_,w,A))._elementRef=l,O._changeDetectorRef=c,O._dir=p,O.controlType="mat-chip-list",O._lastDestroyedChipIndex=null,O._destroyed=new Xe,O._uid="mat-chip-list-".concat(ose++),O._tabIndex=0,O._userTabIndex=null,O._onTouched=function(){},O._onChange=function(){},O._multiple=!1,O._compareWith=function(F,Y){return F===Y},O._disabled=!1,O.ariaOrientation="horizontal",O._selectable=!0,O.change=new ye,O.valueChange=new ye,O.ngControl&&(O.ngControl.valueAccessor=an(O)),O}return L(n,[{key:"selected",get:function(){var c,p;return this.multiple?(null===(c=this._selectionModel)||void 0===c?void 0:c.selected)||[]:null===(p=this._selectionModel)||void 0===p?void 0:p.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(c){this._multiple=gt(c),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(c){this._compareWith=c,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(c){this.writeValue(c),this._value=c}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){var c,p,_,w;return null!==(w=null!==(c=this._required)&&void 0!==c?c:null===(_=null===(p=this.ngControl)||void 0===p?void 0:p.control)||void 0===_?void 0:_.hasValidator(rS.required))&&void 0!==w&&w},set:function(c){this._required=gt(c),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(c){this._placeholder=c,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(c){this._disabled=gt(c),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(c){var p=this;this._selectable=gt(c),this.chips&&this.chips.forEach(function(_){return _.chipListSelectable=p._selectable})}},{key:"tabIndex",set:function(c){this._userTabIndex=c,this._tabIndex=c}},{key:"chipSelectionChanges",get:function(){return Rr.apply(void 0,yt(this.chips.map(function(c){return c.selectionChange})))}},{key:"chipFocusChanges",get:function(){return Rr.apply(void 0,yt(this.chips.map(function(c){return c._onFocus})))}},{key:"chipBlurChanges",get:function(){return Rr.apply(void 0,yt(this.chips.map(function(c){return c._onBlur})))}},{key:"chipRemoveChanges",get:function(){return Rr.apply(void 0,yt(this.chips.map(function(c){return c.destroyed})))}},{key:"ngAfterContentInit",value:function(){var c=this;this._keyManager=new bA(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Wt(this._destroyed)).subscribe(function(p){return c._keyManager.withHorizontalOrientation(p)}),this._keyManager.tabOut.pipe(Wt(this._destroyed)).subscribe(function(){c._allowFocusEscape()}),this.chips.changes.pipe(na(null),Wt(this._destroyed)).subscribe(function(){c.disabled&&Promise.resolve().then(function(){c._syncChipsState()}),c._resetChips(),c._initializeSelection(),c._updateTabIndex(),c._updateFocusForDestroyedChips(),c.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new bg(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(c){this._chipInput=c,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",c.id)}},{key:"setDescribedByIds",value:function(c){this._ariaDescribedby=c.join(" ")}},{key:"writeValue",value:function(c){this.chips&&this._setSelectionByValue(c,!1)}},{key:"registerOnChange",value:function(c){this._onChange=c}},{key:"registerOnTouched",value:function(c){this._onTouched=c}},{key:"setDisabledState",value:function(c){this.disabled=c,this.stateChanges.next()}},{key:"onContainerClick",value:function(c){this._originatesFromChip(c)||this.focus()}},{key:"focus",value:function(c){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(c),this.stateChanges.next()))}},{key:"_focusInput",value:function(c){this._chipInput&&this._chipInput.focus(c)}},{key:"_keydown",value:function(c){var p=c.target;p&&p.classList.contains("mat-chip")&&(this._keyManager.onKeydown(c),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 c=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(c)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(c){return c>=0&&c1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(M){return M.deselect()}),Array.isArray(c))c.forEach(function(M){return p._selectValue(M,_)}),this._sortValues();else{var w=this._selectValue(c,_);w&&_&&this._keyManager.setActiveItem(w)}}},{key:"_selectValue",value:function(c){var p=this,_=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],w=this.chips.find(function(M){return null!=M.value&&p._compareWith(M.value,c)});return w&&(_?w.selectViaInteraction():w.select(),this._selectionModel.select(w)),w}},{key:"_initializeSelection",value:function(){var c=this;Promise.resolve().then(function(){(c.ngControl||c._value)&&(c._setSelectionByValue(c.ngControl?c.ngControl.value:c._value,!1),c.stateChanges.next())})}},{key:"_clearSelection",value:function(c){this._selectionModel.clear(),this.chips.forEach(function(p){p!==c&&p.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var c=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(p){p.selected&&c._selectionModel.select(p)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(c){var p;p=Array.isArray(this.selected)?this.selected.map(function(_){return _.value}):this.selected?this.selected.value:c,this._value=p,this.change.emit(new sse(this,p)),this.valueChange.emit(p),this._onChange(p),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var c=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){c.focused||c._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var c=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){c._tabIndex=c._userTabIndex||0,c._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 c=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(p){p.source.selected?c._selectionModel.select(p.source):c._selectionModel.deselect(p.source),c.multiple||c.chips.forEach(function(_){!c._selectionModel.isSelected(_)&&_.selected&&_.deselect()}),p.isUserInput&&c._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var c=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(p){var _=c.chips.toArray().indexOf(p.chip);c._isValidIndex(_)&&c._keyManager.updateActiveItem(_),c.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){c._blur(),c.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var c=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(p){var _=p.chip,w=c.chips.toArray().indexOf(p.chip);c._isValidIndex(w)&&_._hasFocus&&(c._lastDestroyedChipIndex=w)})}},{key:"_originatesFromChip",value:function(c){for(var p=c.target;p&&p!==this._elementRef.nativeElement;){if(p.classList.contains("mat-chip"))return!0;p=p.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(c){return c._hasFocus})}},{key:"_syncChipsState",value:function(){var c=this;this.chips&&this.chips.forEach(function(p){p._chipListDisabled=c._disabled,p._chipListMultiple=c.multiple})}}]),n}(ase);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(hn),z(Ei,8),z(Sc,8),z($f,8),z(qy),z(Bl,10))},i.\u0275cmp=ke({type:i,selectors:[["mat-chip-list"]],contentQueries:function(r,n,l){var c;1&r&&Mn(l,zH,5),2&r&&Ve(c=Ge())&&(n.chips=c)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(r,n){1&r&&ne("focus",function(){return n.focus()})("blur",function(){return n._blur()})("keydown",function(c){return n._keydown(c)}),2&r&&(bl("id",n._uid),lt("tabindex",n.disabled?null:n._tabIndex)("aria-describedby",n._ariaDescribedby||null)("aria-required",n.role?n.required:null)("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-multiselectable",n.multiple)("role",n.role)("aria-orientation",n.ariaOrientation),Ze("mat-chip-list-disabled",n.disabled)("mat-chip-list-invalid",n.errorState)("mat-chip-list-required",n.required))},inputs:{errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[ft([{provide:hb,useExisting:i}]),Re],ngContentSelectors:Joe,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(r,n){1&r&&(vi(),I(0,"div",0),Gt(1),B())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;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{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size: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}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.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;transform:translateZ(0)}.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}),i}(),lse=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({providers:[qy,{provide:qJ,useValue:{separatorKeyCodes:[13]}}],imports:[[vn]]}),i}(),use=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({}),i}(),cse=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[io,vn,use,Kv]]}),i}(),fse=["*",[["mat-toolbar-row"]]],dse=["*","mat-toolbar-row"],hse=yc(function(){return L(function i(s){R(this,i),this._elementRef=s})}()),pse=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=be({type:i,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),i}(),vse=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p){var _;return R(this,n),(_=r.call(this,l))._platform=c,_._document=p,_}return L(n,[{key:"ngAfterViewInit",value:function(){var c=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return c._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(hse);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(pn),z(Jt))},i.\u0275cmp=ke({type:i,selectors:[["mat-toolbar"]],contentQueries:function(r,n,l){var c;1&r&&Mn(l,pse,5),2&r&&Ve(c=Ge())&&(n._toolbarRows=c)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(r,n){2&r&&Ze("mat-toolbar-multiple-rows",n._toolbarRows.length>0)("mat-toolbar-single-row",0===n._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Re],ngContentSelectors:dse,decls:2,vars:0,template:function(r,n){1&r&&(vi(fse),Gt(0),Gt(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}),i}(),gse=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[vn],vn]}),i}(),mse=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({providers:[{provide:aq,useValue:{floatLabel:"always"}},{provide:K1,useValue:udsData.language}],imports:[io,jE,KV,gse,tS,ote,xP,cse,$W,PS,Aee,bP,Zae,RW,bee,a,E,pte,Qoe,v5,lse,Jae,nre,Nne,x5,gte,Zee]}),i}();function _se(i,s){if(1&i){var r=xe();I(0,"button",6),ne("click",function(){var p=he(r).$implicit;return Q().changeLang(p)}),K(1),B()}if(2&i){var n=s.$implicit;G(1),Ln(n.name)}}function yse(i,s){if(1&i&&(I(0,"button",12)(1,"i",7),K(2,"face"),B(),K(3),B()),2&i){var r=Q();U("matMenuTriggerFor",Dn(7)),G(3),Ln(r.api.user.user)}}function bse(i,s){if(1&i&&(I(0,"button",18),K(1),I(2,"i",7),K(3,"arrow_drop_down"),B()()),2&i){var r=Q();U("matMenuTriggerFor",Dn(7)),G(1),Le("",r.api.user.user," ")}}var Cse=function(){var i=function(){function s(r){R(this,s),this.api=r,this.isNavbarCollapsed=!0;var n=r.config.language;this.langs=[];var c,l=qt(r.config.available_languages);try{for(l.s();!(c=l.n()).done;){var p=c.value;p.id===n?this.lang=p:this.langs.push(p)}}catch(_){l.e(_)}finally{l.f()}}return L(s,[{key:"ngOnInit",value:function(){}},{key:"changeLang",value:function(n){return this.lang=n,document.getElementById("id_language").attributes.value.value=n.id,document.getElementById("form_language").submit(),!1}},{key:"user",value:function(){this.api.gotoUser()}},{key:"logout",value:function(){this.api.logout()}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot))},i.\u0275cmp=ke({type:i,selectors:[["uds-navbar"]],decls:41,vars:13,consts:[["id","form_language","method","post",3,"action"],["type","hidden",3,"name","value"],["id","id_language","type","hidden","name","language",3,"value"],["appMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["userMenu","matMenu"],["mat-menu-item","",3,"click"],[1,"material-icons"],[1,"material-icons","highlight"],["x-position","before"],["shrink","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["color","primary",1,"uds-nav"],["mat-button","","routerLink","/"],["alt","Universal Desktop Services",1,"udsicon",3,"src"],[1,"fill-remaining-space"],[1,"expanded"],["mat-button","",3,"matMenuTriggerFor"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],[1,"shrinked"],["mat-icon-button","",3,"matMenuTriggerFor"]],template:function(r,n){if(1&r&&(I(0,"form",0),Se(1,"input",1)(2,"input",2),B(),I(3,"mat-menu",null,3),te(5,_se,2,1,"button",4),B(),I(6,"mat-menu",null,5)(8,"button",6),ne("click",function(){return n.user()}),I(9,"i",7)(10,"i",7),K(11,"home"),B()(),I(12,"uds-translate"),K(13,"User mode"),B()(),I(14,"button",6),ne("click",function(){return n.logout()}),I(15,"i",8),K(16,"exit_to_app"),B(),I(17,"uds-translate"),K(18,"Logout"),B()()(),I(19,"mat-menu",9,10),te(21,yse,4,2,"button",11),I(22,"button",12)(23,"i",7),K(24,"language"),B(),K(25),B()(),I(26,"mat-toolbar",13)(27,"button",14),Se(28,"img",15),K(29," UDS "),B(),Se(30,"span",16),I(31,"div",17)(32,"button",18),K(33),I(34,"i",7),K(35,"arrow_drop_down"),B()(),te(36,bse,4,2,"button",19),B(),I(37,"div",20)(38,"button",21)(39,"i",7),K(40,"menu"),B()()()()),2&r){var l=Dn(4),c=Dn(20);Uu("action",n.api.config.urls.changeLang,Qt),G(1),Uu("name",n.api.config.csrf_field),Uu("value",n.api.config.csrf),G(1),Uu("value",n.lang.id),G(3),U("ngForOf",n.langs),G(16),U("ngIf",n.api.user.isLogged),G(1),U("matMenuTriggerFor",l),G(3),Ln(n.lang.name),G(3),U("src",n.api.staticURL("admin/img/udsicon.png"),Qt),G(4),U("matMenuTriggerFor",l),G(1),Le("",n.lang.name," "),G(3),U("ngIf",n.api.user.isLogged),G(2),U("matMenuTriggerFor",c)}},directives:[nb,Xf,Sc,HQ,ir,EP,Gn,en,jQ,vse,qn,Gw],styles:[".uds-nav[_ngcontent-%COMP%]{position:fixed;top:0;z-index:1000}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{width:2rem}.mat-button[_ngcontent-%COMP%]{font-weight:300}@media only screen and (max-width: 744px){.expanded[_ngcontent-%COMP%]{display:none;visibility:hidden}.shrinked[_ngcontent-%COMP%]{visibility:visible}}@media only screen and (min-width: 745px){.expanded[_ngcontent-%COMP%]{visibility:visible}.shrinked[_ngcontent-%COMP%]{display:none;visibility:hidden}}"]}),i}();function wse(i,s){if(1&i&&(I(0,"a",24),Se(1,"img",2),I(2,"uds-translate"),K(3,"Groups"),B()()),2&i){var r=Q();G(1),U("src",r.icon("groups"),Qt)}}function Sse(i,s){if(1&i){var r=xe();I(0,"a",8),ne("click",function(){return he(r),Q().toggleConfig()}),Se(1,"img",2),I(2,"uds-translate"),K(3,"Tools"),B(),I(4,"i",9),K(5,"arrow_drop_down"),B()()}if(2&i){var n=Q();G(1),U("src",n.icon("tools"),Qt)}}var Mse=function(){var i=function(){function s(r,n){R(this,s),this.api=r,this.rest=n,this.connectivityShown=!1,this.poolsShown=!1,this.configShown=!1,this.tokensShown=!1}return L(s,[{key:"ngOnInit",value:function(){}},{key:"icon",value:function(n){return this.api.staticURL("admin/img/icons/"+n+".png")}},{key:"toggleConnectivity",value:function(){this.connectivityShown=!this.connectivityShown,this.poolsShown=!1,this.configShown=!1}},{key:"togglePools",value:function(){this.connectivityShown=!1,this.poolsShown=!this.poolsShown,this.configShown=!1}},{key:"toggleConfig",value:function(){this.connectivityShown=!1,this.poolsShown=!1,this.configShown=!this.configShown}},{key:"flushCache",value:function(){var n=this;this.rest.system.flushCache().subscribe(function(){n.api.gui.snackbar.open(django.gettext("Cache flushed"),django.gettext("dismiss"),{duration:2e3})})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn))},i.\u0275cmp=ke({type:i,selectors:[["uds-sidebar"]],decls:86,vars:24,consts:[[1,"sidebar","mat-toolbar","mat-primary"],["mat-button","","routerLink","/summary",1,"sidebar-link"],[1,"icon",3,"src"],["mat-button","","routerLink","/providers",1,"sidebar-link"],["mat-button","","routerLink","/networks",1,"sidebar-link"],["mat-button","","routerLink","/authenticators",1,"sidebar-link"],["mat-button","","routerLink","/osmanagers",1,"sidebar-link"],["mat-button","","routerLink","/transports",1,"sidebar-link"],["mat-button","",1,"sidebar-link",3,"click"],[1,"material-icons"],[1,"submenu",3,"hidden"],["mat-button","","routerLink","/pools/service-pools",1,"sidebar-link"],["mat-button","","routerLink","/pools/meta-pools",1,"sidebar-link"],["mat-button","","routerLink","/pools/pool-groups","class","sidebar-link",4,"ngIf"],["mat-button","","routerLink","/pools/calendars",1,"sidebar-link"],["mat-button","","routerLink","/pools/accounts",1,"sidebar-link"],["mat-button","","class","sidebar-link",3,"click",4,"ngIf"],["mat-button","","routerLink","/tools/gallery",1,"sidebar-link"],["mat-button","","routerLink","/tools/reports",1,"sidebar-link"],["mat-button","","routerLink","/tools/notifiers",1,"sidebar-link"],[1,"submenu2",3,"hidden"],["mat-button","","routerLink","/tools/tokens/actor",1,"sidebar-link"],["mat-button","","routerLink","/tools/tokens/tunnel",1,"sidebar-link"],["mat-button","","routerLink","/tools/configuration",1,"sidebar-link"],["mat-button","","routerLink","/pools/pool-groups",1,"sidebar-link"]],template:function(r,n){1&r&&(I(0,"div",0)(1,"a",1),Se(2,"img",2),I(3,"uds-translate"),K(4,"Summary"),B()(),I(5,"a",3),Se(6,"img",2),I(7,"uds-translate"),K(8,"Services"),B()(),I(9,"a",4),Se(10,"img",2),I(11,"uds-translate"),K(12,"Networks"),B()(),I(13,"a",5),Se(14,"img",2),I(15,"uds-translate"),K(16,"Authenticators"),B()(),I(17,"a",6),Se(18,"img",2),I(19,"uds-translate"),K(20,"Os Managers"),B()(),I(21,"a",7),Se(22,"img",2),I(23,"uds-translate"),K(24,"Transports"),B()(),I(25,"a",8),ne("click",function(){return n.togglePools()}),Se(26,"img",2),I(27,"uds-translate"),K(28,"Pools"),B(),I(29,"i",9),K(30,"arrow_drop_down"),B()(),I(31,"div",10)(32,"a",11),Se(33,"img",2),I(34,"uds-translate"),K(35,"Service pools"),B()(),I(36,"a",12),Se(37,"img",2),I(38,"uds-translate"),K(39,"Meta pools"),B()(),te(40,wse,4,1,"a",13),I(41,"a",14),Se(42,"img",2),I(43,"uds-translate"),K(44,"Calendars"),B()(),I(45,"a",15),Se(46,"img",2),I(47,"uds-translate"),K(48,"Accounts"),B()()(),te(49,Sse,6,1,"a",16),I(50,"div",10)(51,"a",17),Se(52,"img",2),I(53,"uds-translate"),K(54,"Gallery"),B()(),I(55,"a",18),Se(56,"img",2),I(57,"uds-translate"),K(58,"Reports"),B()(),I(59,"a",19),Se(60,"img",2),I(61,"uds-translate"),K(62,"Notifiers"),B()(),I(63,"a",8),ne("click",function(){return n.tokensShown=!n.tokensShown}),Se(64,"img",2),I(65,"uds-translate"),K(66,"Tokens"),B(),I(67,"i",9),K(68,"arrow_drop_down"),B()(),I(69,"div",20)(70,"a",21),Se(71,"img",2),I(72,"uds-translate"),K(73,"Actor"),B()(),I(74,"a",22),Se(75,"img",2),I(76,"uds-translate"),K(77,"Tunnel"),B()()(),I(78,"a",23),Se(79,"img",2),I(80,"uds-translate"),K(81,"Configuration"),B()(),I(82,"a",8),ne("click",function(){return n.flushCache()}),Se(83,"img",2),I(84,"uds-translate"),K(85,"Flush Cache"),B()()()()),2&r&&(G(2),U("src",n.icon("dashboard-monitor"),Qt),G(4),U("src",n.icon("providers"),Qt),G(4),U("src",n.icon("networks"),Qt),G(4),U("src",n.icon("authenticators"),Qt),G(4),U("src",n.icon("osmanagers"),Qt),G(4),U("src",n.icon("transports"),Qt),G(4),U("src",n.icon("miscellaneous"),Qt),G(5),U("hidden",!n.poolsShown),G(2),U("src",n.icon("pools"),Qt),G(4),U("src",n.icon("metas"),Qt),G(3),U("ngIf",n.api.user.isAdmin),G(2),U("src",n.icon("calendars"),Qt),G(4),U("src",n.icon("accounts"),Qt),G(3),U("ngIf",n.api.user.isAdmin),G(1),U("hidden",!n.configShown),G(2),U("src",n.icon("gallery"),Qt),G(4),U("src",n.icon("reports"),Qt),G(4),U("src",n.icon("notifiers"),Qt),G(4),U("src",n.icon("maleta"),Qt),G(5),U("hidden",!n.tokensShown),G(2),U("src",n.icon("accounts"),Qt),G(4),U("src",n.icon("proxy"),Qt),G(4),U("src",n.icon("configuration"),Qt),G(4),U("src",n.icon("flush-cache"),Qt))},directives:[cg,Al,Gn,en],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%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_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%] .mat-h2[_ngcontent-%COMP%], .mat-typography[_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%] .mat-h3[_ngcontent-%COMP%], .mat-typography[_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%] .mat-h4[_ngcontent-%COMP%], .mat-typography[_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%] .mat-h5[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font:400 11.62px/20px Roboto,Helvetica Neue,sans-serif;margin:0 0 12px}.mat-h6[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h6[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font:400 9.38px/20px Roboto,Helvetica Neue,sans-serif;margin:0 0 12px}.mat-body-strong[_ngcontent-%COMP%], .mat-body-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-body-strong[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-body-2[_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%] .mat-body[_ngcontent-%COMP%], .mat-typography[_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[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-body-1[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-body-1[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 12px}.mat-small[_ngcontent-%COMP%], .mat-caption[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-small[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-caption[_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-raised-button[_ngcontent-%COMP%], .mat-icon-button[_ngcontent-%COMP%], .mat-stroked-button[_ngcontent-%COMP%], .mat-flat-button[_ngcontent-%COMP%], .mat-fab[_ngcontent-%COMP%], .mat-mini-fab[_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-subtitle[_ngcontent-%COMP%], .mat-card-content[_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-trailing-icon.mat-icon[_ngcontent-%COMP%], .mat-chip[_ngcontent-%COMP%] .mat-chip-remove.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);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);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);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-header[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%]{font-size:14px}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2), .mat-grid-tile-footer[_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%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-slider-thumb-label-text[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:12px;font-weight:500}.mat-stepper-vertical[_ngcontent-%COMP%], .mat-stepper-horizontal[_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%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-tab-label[_ngcontent-%COMP%], .mat-tab-link[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;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-tree-node[_ngcontent-%COMP%], .mat-nested-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;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_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%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;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%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.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}@keyframes cdk-text-field-autofill-start{}@keyframes cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%], .mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.sidebar[_ngcontent-%COMP%]{position:fixed;top:4rem;padding-top:12px;bottom:0;display:flex;flex-direction:column;overflow-y:auto;width:56px;transition:all .3s cubic-bezier(.86,0,.07,1);box-shadow:0 16px 38px -12px #fafafa8f,0 4px 25px #fafafa1f,0 8px 10px -5px #fafafa33;overflow-x:hidden;z-index:25}.sidebar-link[_ngcontent-%COMP%]{display:flex;width:240px;color:transparent;transition:color .3s cubic-bezier(.86,0,.07,1);font-weight:300;font-size:1rem}.sidebar[_ngcontent-%COMP%]:hover{width:240px;transition:all .3s cubic-bezier(.86,0,.07,1)}.sidebar[_ngcontent-%COMP%]:hover .sidebar-link[_ngcontent-%COMP%]{color:#000}.submenu[_ngcontent-%COMP%] > .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 #3030308f,0 4px 25px #3030301f,0 8px 10px -5px #30303033} .dark-theme .sidebar:hover .sidebar-link{color:#fff!important}"]}),i}();function kse(i,s){1&i&&Se(0,"div",1),2&i&&U("innerHTML",Q().messages,Xi)}var Dse=function(){var i=function(){function s(r){R(this,s),this.api=r,this.messages="",this.visible=!1}return L(s,[{key:"ngOnInit",value:function(){var n=this;if(this.api.notices.length>0){var c='
';this.messages='
'+c+this.api.notices.map(function(_){return _.replace(/ /gm," ").replace(/([A-Z]+[A-Z]+)/gm,"$1").replace(/([0-9]+)/gm,"$1")}).join("
"+c)+"
",this.api.gui.alert("",this.messages,0,"80%").subscribe(function(){n.visible=!0})}}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot))},i.\u0275cmp=ke({type:i,selectors:[["uds-notices"]],decls:1,vars:1,consts:[["class","notice",3,"innerHTML",4,"ngIf"],[1,"notice",3,"innerHTML"]],template:function(r,n){1&r&&te(0,kse,1,1,"div",0),2&r&&U("ngIf",n.visible)},directives:[en],styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:steelblue;border-radius:3px;box-shadow:#00000024 0 4px 20px,#465d9c66 0 7px 10px -5px;box-sizing:border-box;color:#fff;margin:1rem 2rem 0rem;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}"]}),i}(),xse=function(){var i=function(){function s(){R(this,s)}return L(s,[{key:"ngOnInit",value:function(){}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=ke({type:i,selectors:[["uds-footer"]],decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(r,n){1&r&&(I(0,"div"),K(1,"\xa9 2012-2022 "),I(2,"a",0),K(3,"Virtual Cable S.L.U."),B()())},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%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_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%] .mat-h2[_ngcontent-%COMP%], .mat-typography[_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%] .mat-h3[_ngcontent-%COMP%], .mat-typography[_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%] .mat-h4[_ngcontent-%COMP%], .mat-typography[_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%] .mat-h5[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font:400 11.62px/20px Roboto,Helvetica Neue,sans-serif;margin:0 0 12px}.mat-h6[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h6[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font:400 9.38px/20px Roboto,Helvetica Neue,sans-serif;margin:0 0 12px}.mat-body-strong[_ngcontent-%COMP%], .mat-body-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-body-strong[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-body-2[_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%] .mat-body[_ngcontent-%COMP%], .mat-typography[_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[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-body-1[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-body-1[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 12px}.mat-small[_ngcontent-%COMP%], .mat-caption[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-small[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-caption[_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-raised-button[_ngcontent-%COMP%], .mat-icon-button[_ngcontent-%COMP%], .mat-stroked-button[_ngcontent-%COMP%], .mat-flat-button[_ngcontent-%COMP%], .mat-fab[_ngcontent-%COMP%], .mat-mini-fab[_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-subtitle[_ngcontent-%COMP%], .mat-card-content[_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-trailing-icon.mat-icon[_ngcontent-%COMP%], .mat-chip[_ngcontent-%COMP%] .mat-chip-remove.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);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);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);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-header[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%]{font-size:14px}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2), .mat-grid-tile-footer[_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%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-slider-thumb-label-text[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:12px;font-weight:500}.mat-stepper-vertical[_ngcontent-%COMP%], .mat-stepper-horizontal[_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%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-tab-label[_ngcontent-%COMP%], .mat-tab-link[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;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-tree-node[_ngcontent-%COMP%], .mat-nested-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;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_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%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;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%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.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}@keyframes cdk-text-field-autofill-start{}@keyframes cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%], .mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}a[_ngcontent-%COMP%]{text-decoration:none}div[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{color:#000} .dark-theme div, .dark-theme a{color:#fff}"]}),i}(),Tse=function(){var i=function(){function s(r){R(this,s),this.api=r,this.title="UDS Admin",this.blackTheme=!1}return L(s,[{key:"handleKeyboardEvent",value:function(n){n.altKey&&n.ctrlKey&&"b"===n.key&&(this.blackTheme=!this.blackTheme,this.api.switchTheme(this.blackTheme))}},{key:"ngOnInit",value:function(){this.api.switchTheme(this.blackTheme)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot))},i.\u0275cmp=ke({type:i,selectors:[["uds-root"]],hostBindings:function(r,n){1&r&&ne("keydown",function(c){return n.handleKeyboardEvent(c)},!1,JO)},decls:8,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(r,n){1&r&&(Se(0,"uds-navbar")(1,"uds-sidebar"),I(2,"div",0)(3,"div",1),Se(4,"uds-notices")(5,"router-outlet"),B(),I(6,"div",2),Se(7,"uds-footer"),B()())},directives:[Cse,Mse,Dse,cc,xse],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% - 64px);margin:4rem auto auto 56px;padding-left:8px;overflow-x:hidden}"]}),i}(),Ase=function(){var i=function(s){se(n,s);var r=ue(n);function n(){var l;return R(this,n),(l=r.call(this)).itemsPerPageLabel=django.gettext("Items per page"),l}return L(n)}(kg);return i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),Ese=function(){var i=function(){function s(){R(this,s),this.changed=new ye}return L(s,[{key:"ngOnInit",value:function(){this.field.value=this.field.value||this.field.gui.defvalue}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"mat-form-field",0)(1,"mat-label"),K(2),B(),I(3,"input",1),ne("ngModelChange",function(c){return n.field.value=c})("change",function(){return n.changed.emit(n)}),B()()),2&r&&(G(2),Le(" ",n.field.gui.label," "),G(1),U("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly)("maxlength",n.field.gui.length||128)("autocomplete","new-"+n.field.name))},directives:[or,Tr,ua,yi,pr,ar,Vs,gS],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]}),i}();function Pse(i,s){if(1&i&&(I(0,"mat-option",4),K(1),B()),2&i){var r=s.$implicit;U("value",r),G(1),Le(" ",r," ")}}var Ose=function(){var i=function(){function s(){R(this,s),this.changed=new ye,this.values=[]}return L(s,[{key:"ngOnInit",value:function(){this.field.value=this.field.value||this.field.gui.defvalue,this.values=this.field.gui.values.map(function(n){return n.text})}},{key:"_filter",value:function(){var n=this.field.value.toLowerCase();return this.values.filter(function(l){return l.toLowerCase().includes(n)})}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=ke({type:i,selectors:[["uds-field-autocomplete"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:9,consts:[["appearance","standard"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","text",3,"ngModel","placeholder","required","disabled","maxlength","matAutocomplete","autocomplete","ngModelChange","change"],[3,"value"]],template:function(r,n){if(1&r&&(I(0,"mat-form-field",0)(1,"mat-label"),K(2),B(),I(3,"mat-autocomplete",null,1),te(5,Pse,2,2,"mat-option",2),B(),I(6,"input",3),ne("ngModelChange",function(p){return n.field.value=p})("change",function(){return n.changed.emit(n)}),B()()),2&r){var l=Dn(4);G(2),Le(" ",n.field.gui.label," "),G(3),U("ngForOf",n._filter()),G(1),U("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly)("maxlength",n.field.gui.length||128)("matAutocomplete",l)("autocomplete","new-"+n.field.name)}},directives:[or,Tr,Iq,ir,Pi,ua,yi,RH,pr,ar,Vs,gS],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]}),i}(),Ise=function(){var i=function(){function s(){R(this,s),this.changed=new ye}return L(s,[{key:"ngOnInit",value:function(){!this.field.value&&0!==this.field.value&&(this.field.value=this.field.gui.defvalue)}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"mat-form-field",0)(1,"mat-label"),K(2),B(),I(3,"input",1),ne("ngModelChange",function(c){return n.field.value=c})("change",function(){return n.changed.emit(n)}),B()()),2&r&&(G(2),Le(" ",n.field.gui.label," "),G(1),U("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly))},directives:[or,Tr,ua,Kf,yi,pr,ar,Vs],styles:[""]}),i}(),Rse=function(){var i=function(){function s(){R(this,s),this.changed=new ye,this.passwordType="password"}return L(s,[{key:"ngOnInit",value:function(){this.field.value=this.field.value||this.field.gui.defvalue}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"mat-form-field",0)(1,"mat-label"),K(2),B(),I(3,"input",1),ne("ngModelChange",function(c){return n.field.value=c})("change",function(){return n.changed.emit(n)}),B(),I(4,"a",2),ne("click",function(){return n.passwordType="text"===n.passwordType?"password":"text"}),I(5,"i",3),K(6,"remove_red_eye"),B()()()),2&r&&(G(2),Le(" ",n.field.gui.label," "),G(1),U("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly)("type",n.passwordType))},directives:[or,Tr,ua,yi,pr,ar,Vs,cg,wg],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]}),i}(),Lse=function(){var i=function(){function s(){R(this,s)}return L(s,[{key:"ngOnInit",value:function(){(""===this.field.value||void 0===this.field.value)&&(this.field.value=this.field.gui.defvalue)}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=ke({type:i,selectors:[["uds-field-hidden"]],inputs:{field:"field"},decls:0,vars:0,template:function(r,n){},styles:[""]}),i}(),Fse=function(){var i=function(){function s(){R(this,s)}return L(s,[{key:"ngOnInit",value:function(){this.field.value=this.field.value||this.field.gui.defvalue}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"mat-form-field",0)(1,"mat-label"),K(2),B(),I(3,"textarea",1),ne("ngModelChange",function(c){return n.field.value=c}),B()()),2&r&&(G(2),Le(" ",n.field.gui.label," "),G(1),U("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",n.field.gui.required)("readonly",n.field.gui.rdonly))},directives:[or,Tr,ua,yi,pr,ar,Vs],styles:[""]}),i}();function Nse(i,s){if(1&i){var r=xe();I(0,"uds-mat-select-search",3),ne("changed",function(l){return he(r),Q().filter=l}),B()}}function Bse(i,s){if(1&i&&(I(0,"mat-option",4),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.text," ")}}var Vse=function(){var i=function(){function s(){R(this,s),this.changed=new ye,this.filter=""}return L(s,[{key:"ngOnInit",value: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}},{key:"filteredValues",value:function(){if(!this.filter)return this.field.gui.values;var n=this.filter.toLocaleLowerCase();return this.field.gui.values.filter(function(l){return l.text.toLocaleLowerCase().includes(n)})}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"mat-form-field")(1,"mat-label"),K(2),B(),I(3,"mat-select",0),ne("ngModelChange",function(c){return n.field.value=c})("valueChange",function(){return n.changed.emit(n)}),te(4,Nse,1,0,"uds-mat-select-search",1),te(5,Bse,2,2,"mat-option",2),B()()),2&r&&(G(2),Le(" ",n.field.gui.label," "),G(1),U("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly),G(1),U("ngIf",n.field.gui.values.length>10),G(1),U("ngForOf",n.filteredValues()))},directives:[or,Tr,Ua,pr,ar,Vs,en,kc,ir,Pi],styles:[""]}),i}();function Hse(i,s){if(1&i){var r=xe();I(0,"uds-mat-select-search",3),ne("changed",function(l){return he(r),Q().filter=l}),B()}}function zse(i,s){if(1&i&&(I(0,"mat-option",4),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.text," ")}}var Gse=function(){var i=function(){function s(){R(this,s),this.changed=new ye,this.filter=""}return L(s,[{key:"ngOnInit",value:function(){this.field.value=void 0,void 0!==this.field.values?this.field.values.forEach(function(n,l,c){c[l]=""+n.id}):this.field.values=new Array}},{key:"filteredValues",value:function(){if(!this.filter)return this.field.gui.values;var n=this.filter.toLocaleLowerCase();return this.field.gui.values.filter(function(l){return l.text.toLocaleLowerCase().includes(n)})}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"mat-form-field")(1,"mat-label"),K(2),B(),I(3,"mat-select",0),ne("ngModelChange",function(c){return n.field.values=c})("valueChange",function(){return n.changed.emit(n)}),te(4,Hse,1,0,"uds-mat-select-search",1),te(5,zse,2,2,"mat-option",2),B()()),2&r&&(G(2),Le(" ",n.field.gui.label," "),G(1),U("ngModel",n.field.values)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly),G(1),U("ngIf",n.field.gui.values.length>10),G(1),U("ngForOf",n.filteredValues()))},directives:[or,Tr,Ua,pr,ar,Vs,en,kc,ir,Pi],styles:[""]}),i}();function Use(i,s){if(1&i){var r=xe();I(0,"div",12)(1,"div",13),K(2),B(),I(3,"div",14),K(4," \xa0"),I(5,"a",15),ne("click",function(){var p=he(r).index;return Q().removeElement(p)}),I(6,"i",16),K(7,"close"),B()()()()}if(2&i){var n=s.$implicit;G(2),Le(" ",n," ")}}var jse=function(){var i=function(){function s(r,n,l,c){var p=this;R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.data=c,this.values=[],this.input="",this.onSave=new ye(!0),this.data.values.forEach(function(_){return p.values.push(_)})}return L(s,[{key:"addElements",value:function(){var n=this;this.input.split(",").forEach(function(l){n.values.push(l)}),this.input=""}},{key:"checkKey",value:function(n){"Enter"===n.code&&this.addElements()}},{key:"removeAll",value:function(){this.values.length=0}},{key:"removeElement",value:function(n){this.values.splice(n,1)}},{key:"save",value:function(){var n=this;this.data.values.length=0,this.values.forEach(function(l){return n.data.values.push(l)}),this.onSave.emit(this.values),this.dialogRef.close()}},{key:"ngOnInit",value:function(){}}],[{key:"launch",value:function(n,l,c){var p=window.innerWidth<800?"50%":"30%";return n.gui.dialog.open(s,{width:p,data:{title:l,values:c},disableClose:!0}).componentInstance.onSave}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"h4",0),K(1),B(),I(2,"mat-dialog-content")(3,"div",1)(4,"div",2),te(5,Use,8,1,"div",3),B(),I(6,"div",4)(7,"button",5),ne("click",function(){return n.removeAll()}),I(8,"uds-translate"),K(9,"Remove all"),B()()(),I(10,"div",6)(11,"mat-form-field",7)(12,"input",8),ne("keyup",function(c){return n.checkKey(c)})("ngModelChange",function(c){return n.input=c}),B(),I(13,"button",9),ne("click",function(){return n.addElements()}),I(14,"uds-translate"),K(15,"Add"),B()()()()()(),I(16,"mat-dialog-actions")(17,"button",10)(18,"uds-translate"),K(19,"Cancel"),B()(),I(20,"button",11),ne("click",function(){return n.save()}),I(21,"uds-translate"),K(22,"Ok"),B()()()),2&r&&(G(1),Le(" ",n.data.title,"\n"),G(4),U("ngForOf",n.values),G(7),U("ngModel",n.input))},directives:[si,jr,ir,qn,Gn,or,ua,yi,pr,ar,wg,li,_i],styles:[".content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between;justify-self:center}.list[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:1rem;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:#00000024 0 1px 4px;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}"]}),i}(),Wse=function(){var i=function(){function s(r){R(this,s),this.api=r,this.changed=new ye}return L(s,[{key:"ngOnInit",value:function(){}},{key:"launch",value:function(){var n=this;void 0===this.field.values&&(this.field.values=[]),jse.launch(this.api,this.field.gui.label,this.field.values).subscribe(function(l){n.changed.emit({field:n.field})})}},{key:"getValue",value:function(){if(void 0===this.field.values)return"";var n=this.field.values.filter(function(l,c,p){return c<5}).join(", ");return this.field.values.length>5&&(n+=django.gettext(", (%i more items)").replace("%i",""+(this.field.values.length-5))),n}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"mat-form-field",0)(1,"mat-label"),K(2),B(),I(3,"input",1),ne("click",function(){return n.launch()}),B()()),2&r&&(G(2),Le(" ",n.field.gui.label," "),G(1),U("readonly",!0)("value",n.getValue())("placeholder",n.field.gui.tooltip)("disabled",!0===n.field.gui.rdonly))},directives:[or,Tr,ua],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]}),i}(),Yse=function(){var i=function(){function s(){R(this,s),this.changed=new ye}return L(s,[{key:"ngOnInit",value:function(){this.field.value=function(s){return""===s||null==s}(this.field.value)?fP(this.field.gui.defvalue):fP(this.field.value)}},{key:"getValue",value:function(){return fP(this.field.value)?django.gettext("Yes"):django.gettext("No")}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"div",0)(1,"span",1),K(2),B(),I(3,"mat-slide-toggle",2),ne("ngModelChange",function(c){return n.field.value=c})("change",function(){return n.changed.emit(n)}),K(4),B()()),2&r&&(G(2),Ln(n.field.gui.label),G(1),U("ngModel",n.field.value)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly),G(1),Le(" ",n.getValue()," "))},directives:[zS,QQ,pr,ar,Vs],styles:[".label[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;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:0px 0px;white-space:nowrap}"]}),i}();function qse(i,s){if(1&i&&Se(0,"div",5),2&i){var r=Q().$implicit;U("innerHTML",Q().asIcon(r),Xi)}}function Zse(i,s){if(1&i&&(I(0,"div"),te(1,qse,1,1,"div",4),B()),2&i){var r=s.$implicit,n=Q();G(1),U("ngIf",r.id==n.field.value)}}function Xse(i,s){if(1&i){var r=xe();I(0,"uds-mat-select-search",6),ne("changed",function(l){return he(r),Q().filter=l}),B()}}function Kse(i,s){if(1&i&&(I(0,"mat-option",7),Se(1,"div",5),B()),2&i){var r=s.$implicit,n=Q();U("value",r.id),G(1),U("innerHTML",n.asIcon(r),Xi)}}var $se=function(){var i=function(){function s(r){R(this,s),this.api=r,this.changed=new ye,this.filter=""}return L(s,[{key:"ngOnInit",value: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)}},{key:"asIcon",value:function(n){return this.api.safeString(this.api.gui.icon(n.img)+n.text)}},{key:"filteredValues",value:function(){if(!this.filter)return this.field.gui.values;var n=this.filter.toLocaleLowerCase();return this.field.gui.values.filter(function(l){return l.text.toLocaleLowerCase().includes(n)})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"mat-form-field")(1,"mat-label"),K(2),B(),I(3,"mat-select",0),ne("valueChange",function(){return n.changed.emit(n)})("ngModelChange",function(c){return n.field.value=c}),I(4,"mat-select-trigger"),te(5,Zse,2,1,"div",1),B(),te(6,Xse,1,0,"uds-mat-select-search",2),te(7,Kse,2,2,"mat-option",3),B()()),2&r&&(G(2),Le(" ",n.field.gui.label," "),G(1),U("placeholder",n.field.gui.tooltip)("ngModel",n.field.value)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly),G(2),U("ngForOf",n.field.gui.values),G(1),U("ngIf",n.field.gui.values.length>10),G(1),U("ngForOf",n.filteredValues()))},directives:[or,Tr,Ua,pr,ar,Vs,pq,ir,en,kc,Pi],styles:[""]}),i}(),Qse=function(){var i=function(){function s(){R(this,s),this.changed=new ye,this.value=new Date}return L(s,[{key:"date",get:function(){return this.value},set:function(n){this.value!==n&&(this.value=n,this.field.value=yg("%Y-%m-%d",this.value))}},{key:"ngOnInit",value:function(){this.field.value=this.field.value||this.field.gui.defvalue,"2000-01-01"===this.field.value?this.field.value=yg("%Y-01-01"):"2000-01-01"===this.field.value&&(this.field.value=yg("%Y-12-31"));var n=this.field.value.split("-");3===n.length&&(this.value=new Date(+n[0],+n[1]-1,+n[2]))}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=ke({type:i,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(r,n){if(1&r&&(I(0,"mat-form-field",0)(1,"mat-label"),K(2),B(),I(3,"input",1),ne("ngModelChange",function(p){return n.date=p}),B(),Se(4,"mat-datepicker-toggle",2)(5,"mat-datepicker",null,3),B()),2&r){var l=Dn(6);G(2),Le(" ",n.field.gui.label," "),G(1),U("matDatepicker",l)("ngModel",n.date)("placeholder",n.field.gui.tooltip)("disabled",!0===n.field.gui.rdonly),G(1),U("for",l)}},directives:[or,Tr,ua,BH,yi,pr,ar,kJ,wg,MJ],styles:[""]}),i}();function Jse(i,s){if(1&i){var r=xe();I(0,"mat-chip",5),ne("removed",function(){var _=he(r).$implicit;return Q().remove(_)}),K(1),I(2,"i",6),K(3,"cancel"),B()()}if(2&i){var n=s.$implicit,l=Q();U("selectable",!1)("removable",!0!==l.field.gui.rdonly),G(1),Le(" ",n," ")}}var ele=function(){var i=function(){function s(){R(this,s),this.changed=new ye,this.separatorKeysCodes=[13,188]}return L(s,[{key:"ngOnInit",value:function(){void 0===this.field.values&&(this.field.values=new Array,this.field.value=void 0),this.field.values.forEach(function(n,l,c){""===n.trim()&&c.splice(l,1)})}},{key:"add",value:function(n){var l=n.input,c=n.value;(c||"").trim()&&this.field.values.push(c.trim()),l&&(l.value="")}},{key:"remove",value:function(n){var l=this.field.values.indexOf(n);l>=0&&this.field.values.splice(l,1)}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=ke({type:i,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(r,n){if(1&r&&(I(0,"mat-form-field",0)(1,"mat-label"),K(2),B(),I(3,"mat-chip-list",1,2),ne("change",function(){return n.changed.emit(n)}),te(5,Jse,4,3,"mat-chip",3),I(6,"input",4),ne("matChipInputTokenEnd",function(p){return n.add(p)}),B()()()),2&r){var l=Dn(4);G(2),Le(" ",n.field.gui.label," "),G(1),U("selectable",!1)("disabled",!0===n.field.gui.rdonly),G(2),U("ngForOf",n.field.values),G(1),U("placeholder",n.field.gui.tooltip)("matChipInputFor",l)("matChipInputSeparatorKeyCodes",n.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},directives:[or,Tr,XJ,ir,zH,YJ,ZJ],styles:["*.mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]}),i}(),tle=(Ht(8691),function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i,bootstrap:[Tse]}),i.\u0275inj=St({providers:[Ot,rn,{provide:kg,useClass:Ase}],imports:[[ic,QU,Hoe,DW,mse,bu.forRoot({echarts:function(){return Promise.resolve().then(Ht.bind(Ht,8045))}})]]}),i}());(function mp(i,s,r){var n=i.\u0275cmp;n.directiveDefs=function(){return s.map(id)},n.pipeDefs=function(){return r.map(lM)}})(ab,[rc,kP,kf,Ese,Ose,Fse,Ise,Rse,Lse,Vse,Gse,Wse,Yse,$se,Qse,ele],[]),function D8(){false}(),EU().bootstrapModule(tle).catch(function(i){return console.log(i)})},8045:function(Ul,$r,Ht){"use strict";Ht.r($r),Ht.d($r,{Axis:function(){return Fa},ChartView:function(){return jn},ComponentModel:function(){return sn},ComponentView:function(){return Ze},List:function(){return ga},Model:function(){return Kn},PRIORITY:function(){return k2},SeriesModel:function(){return fr},color:function(){return Ye},connect:function(){return l8},dataTool:function(){return L2},dependencies:function(){return wr},disConnect:function(){return ZD},disconnect:function(){return u8},dispose:function(){return O2},env:function(){return tn},extendChartView:function(){return _n},extendComponentModel:function(){return J8},extendComponentView:function(){return Hi},extendSeriesModel:function(){return jt},format:function(){return an},getCoordinateSystemDimensions:function(){return JZ},getInstanceByDom:function(){return RC},getInstanceById:function(){return I2},getMap:function(){return JD},graphic:function(){return Qn},helper:function(){return _t},init:function(){return s8},innerDrawElementOnCanvas:function(){return xC},matrix:function(){return Po},number:function(){return se},parseGeoJSON:function(){return uL},parseGeoJson:function(){return uL},registerAction:function(){return uu},registerCoordinateSystem:function(){return f8},registerLayout:function(){return d8},registerLoading:function(){return kv},registerLocale:function(){return zd},registerMap:function(){return FC},registerPostInit:function(){return c8},registerPostUpdate:function(){return $D},registerPreprocessor:function(){return XD},registerProcessor:function(){return KD},registerTheme:function(){return LC},registerTransform:function(){return Dv},registerUpdateLifecycle:function(){return QD},registerVisual:function(){return ph},setCanvasCreator:function(){return eX},setPlatformAPI:function(){return Pg},throttle:function(){return vC},time:function(){return Er},use:function(){return Nt},util:function(){return wu},vector:function(){return ca},version:function(){return EC},zrUtil:function(){return qe},zrender:function(){return L}});var qe={};Ht.r(qe),Ht.d(qe,{HashMap:function(){return tM},RADIAN_TO_DEGREE:function(){return Bg},assert:function(){return fa},bind:function(){return ze},clone:function(){return ot},concatArray:function(){return Ng},createCanvas:function(){return on},createHashMap:function(){return $e},createObject:function(){return ji},curry:function(){return wt},defaults:function(){return rt},disableUserSelect:function(){return nM},each:function(){return q},eqNaN:function(){return Rg},extend:function(){return ve},filter:function(){return Un},find:function(){return XH},guid:function(){return $S},hasOwn:function(){return je},indexOf:function(){return Ct},inherits:function(){return pp},isArray:function(){return Ce},isArrayLike:function(){return Ca},isBuiltInObject:function(){return JS},isDom:function(){return vp},isFunction:function(){return et},isGradientObject:function(){return Sb},isImagePatternObject:function(){return HP},isNumber:function(){return Cn},isObject:function(){return Ke},isPrimitive:function(){return nd},isRegExp:function(){return KH},isString:function(){return Ne},isStringSafe:function(){return QS},isTypedArray:function(){return Oo},keys:function(){return Zt},logError:function(){return Xe},map:function(){return Me},merge:function(){return Dt},mergeAll:function(){return gr},mixin:function(){return Ir},noop:function(){return Jr},normalizeCssArray:function(){return Lg},reduce:function(){return Ys},retrieve:function(){return Ui},retrieve2:function(){return Ft},retrieve3:function(){return Su},setAsPrimitive:function(){return Fg},slice:function(){return gp},trim:function(){return Io}});var ca={};Ht.r(ca),Ht.d(ca,{add:function(){return Hg},applyTransform:function(){return Yi},clone:function(){return ss},copy:function(){return wa},create:function(){return gn},dist:function(){return Oc},distSquare:function(){return qs},distance:function(){return Tb},distanceSquare:function(){return JH},div:function(){return st},dot:function(){return rM},len:function(){return zg},lenSquare:function(){return ln},length:function(){return En},lengthSquare:function(){return WP},lerp:function(){return Ab},max:function(){return da},min:function(){return Ic},mul:function(){return sZ},negate:function(){return Ro},normalize:function(){return ei},scale:function(){return $t},scaleAndAdd:function(){return Zn},set:function(){return ur},sub:function(){return Wl}});var Ye={};Ht.r(Ye),Ht.d(Ye,{fastLerp:function(){return zb},fastMapToColor:function(){return _Z},lerp:function(){return rO},lift:function(){return cM},lum:function(){return Gb},mapToColor:function(){return yZ},modifyAlpha:function(){return Sp},modifyHSL:function(){return Zg},parse:function(){return mo},random:function(){return bZ},stringify:function(){return No},toHex:function(){return mZ}});var Po={};Ht.r(Po),Ht.d(Po,{clone:function(){return Da},copy:function(){return nm},create:function(){return ka},identity:function(){return Tp},invert:function(){return ud},mul:function(){return Js},rotate:function(){return el},scale:function(){return $b},translate:function(){return vs}});var L={};Ht.r(L),Ht.d(L,{dispose:function(){return yO},disposeAll:function(){return bO},getInstance:function(){return Ep},init:function(){return PM},registerPainter:function(){return cn},version:function(){return OM}});var R={};Ht.r(R),Ht.d(R,{Arc:function(){return t_},BezierCurve:function(){return Vi},BoundingRect:function(){return zt},Circle:function(){return ks},CompoundPath:function(){return Qe},Ellipse:function(){return $m},Group:function(){return ct},Image:function(){return Ki},IncrementalDisplayable:function(){return _D},Line:function(){return Nr},LinearGradient:function(){return ju},OrientedBoundingRect:function(){return sC},Path:function(){return Xt},Point:function(){return Et},Polygon:function(){return Ia},Polyline:function(){return Ra},RadialGradient:function(){return vv},Rect:function(){return fn},Ring:function(){return e_},Sector:function(){return Ja},Text:function(){return dn},applyTransform:function(){return Cl},clipPointsByRect:function(){return dC},clipRectByRect:function(){return GR},createIcon:function(){return gv},extendPath:function(){return HR},extendShape:function(){return VR},getShapeClass:function(){return uC},getTransform:function(){return df},groupTransition:function(){return l_},initProps:function(){return nr},isElementRemoved:function(){return Bd},lineLineIntersect:function(){return mG},linePolygonIntersect:function(){return hC},makeImage:function(){return cC},makePath:function(){return ff},mergePath:function(){return Mo},registerShape:function(){return Ds},removeElement:function(){return ru},removeElementWithFadeOut:function(){return Xp},resizePath:function(){return CD},setTooltipConfig:function(){return ih},subPixelOptimize:function(){return fC},subPixelOptimizeLine:function(){return a_},subPixelOptimizeRect:function(){return o_},transformDirection:function(){return s_},traverseElements:function(){return hf},updateProps:function(){return Ut}});var _t={};Ht.r(_t),Ht.d(_t,{createDimensions:function(){return b8},createList:function(){return aL},createScale:function(){return z_},createSymbol:function(){return Dr},createTextStyle:function(){return U8},dataStack:function(){return z8},enableHoverEmphasis:function(){return Yc},getECData:function(){return vt},getLayoutRect:function(){return oi},mixinAxisModelCommonMethods:function(){return G8}});var se={};Ht.r(se),Ht.d(se,{MAX_SAFE_INTEGER:function(){return SO},asc:function(){return Zi},getPercentWithPrecision:function(){return wO},getPixelPrecision:function(){return Ae},getPrecision:function(){return Xl},getPrecisionSafe:function(){return CO},isNumeric:function(){return RM},isRadianAroundZero:function(){return n0},linearMap:function(){return wn},nice:function(){return hi},numericToNumber:function(){return Iu},parseDate:function(){return ms},quantile:function(){return Ip},quantity:function(){return Op},quantityExponent:function(){return IM},reformIntervals:function(){return bd},remRadian:function(){return MO},round:function(){return Mr}});var Er={};Ht.r(Er),Ht.d(Er,{format:function(){return Nm},parse:function(){return ms}});var Qn={};Ht.r(Qn),Ht.d(Qn,{Arc:function(){return t_},BezierCurve:function(){return Vi},BoundingRect:function(){return zt},Circle:function(){return ks},CompoundPath:function(){return Qe},Ellipse:function(){return $m},Group:function(){return ct},Image:function(){return Ki},IncrementalDisplayable:function(){return _D},Line:function(){return Nr},LinearGradient:function(){return ju},Polygon:function(){return Ia},Polyline:function(){return Ra},RadialGradient:function(){return vv},Rect:function(){return fn},Ring:function(){return e_},Sector:function(){return Ja},Text:function(){return dn},clipPointsByRect:function(){return dC},clipRectByRect:function(){return GR},createIcon:function(){return gv},extendPath:function(){return HR},extendShape:function(){return VR},getShapeClass:function(){return uC},getTransform:function(){return df},initProps:function(){return nr},makeImage:function(){return cC},makePath:function(){return ff},mergePath:function(){return Mo},registerShape:function(){return Ds},resizePath:function(){return CD},updateProps:function(){return Ut}});var an={};Ht.r(an),Ht.d(an,{addCommas:function(){return Tk},capitalFirst:function(){return w4},encodeHTML:function(){return Ka},formatTime:function(){return AI},formatTpl:function(){return Ek},getTextRect:function(){return KC},getTooltipMarker:function(){return C4},normalizeCssArray:function(){return jd},toCamelCase:function(){return z0},truncateText:function(){return l0}});var wu={};Ht.r(wu),Ht.d(wu,{bind:function(){return ze},clone:function(){return ot},curry:function(){return wt},defaults:function(){return rt},each:function(){return q},extend:function(){return ve},filter:function(){return Un},indexOf:function(){return Ct},inherits:function(){return pp},isArray:function(){return Ce},isFunction:function(){return et},isObject:function(){return Ke},isString:function(){return Ne},map:function(){return Me},merge:function(){return Dt},reduce:function(){return Ys}});var ue=function(a,t){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(e[u]=o[u])})(a,t)};function de(a,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=a}ue(a,t),a.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}var Ii=function a(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},Gr=new function a(){this.browser=new Ii,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(Gr.wxa=!0,Gr.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?Gr.worker=!0:"undefined"==typeof navigator?(Gr.node=!0,Gr.svgSupported=!0):function Tc(a,t){var e=t.browser,o=a.match(/Firefox\/([\d.]+)/),u=a.match(/MSIE\s([\d.]+)/)||a.match(/Trident\/.+?rv:(([\d.]+))/),f=a.match(/Edge?\/([\d.]+)/),d=/micromessenger/i.test(a);o&&(e.firefox=!0,e.version=o[1]),u&&(e.ie=!0,e.version=u[1]),f&&(e.edge=!0,e.version=f[1],e.newEdge=+f[1].split(".")[0]>18),d&&(e.weChat=!0),t.svgSupported="undefined"!=typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported="undefined"!=typeof document;var h=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in h||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in h)&&!("OTransition"in h),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}(navigator.userAgent,Gr);var a,t,tn=Gr,bb="sans-serif",ho="12px "+bb,ZS=function qH(a){var t={};if("undefined"==typeof JSON)return t;for(var e=0;e=0)h=d*e.length;else for(var v=0;v>1)%2;d.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",o[v]+":0",u[g]+":0",o[1-v]+":auto",u[1-g]+":auto",""].join("!important;"),a.appendChild(d),e.push(d)}return e}(t,f),h=function Ue(a,t,e){for(var o=e?"invTrans":"trans",u=t[o],f=t.srcCoords,d=[],h=[],v=!0,g=0;g<4;g++){var m=a[g].getBoundingClientRect(),y=2*g,b=m.left,C=m.top;d.push(b,C),v=v&&f&&b===f[y]&&C===f[y+1],h.push(a[g].offsetLeft,a[g].offsetTop)}return v&&u?u:(t.srcCoords=d,t[o]=e?ez(h,d):ez(d,h))}(d,f,u);if(h)return h(a,e,o),!0}return!1}function tz(a){return"CANVAS"===a.nodeName.toUpperCase()}var St=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ug=[],qP=tn.browser.firefox&&+tn.browser.version.split(".")[0]<39;function aM(a,t,e,o){return e=e||{},o?ZP(a,t,e):qP&&null!=t.layerX&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):null!=t.offsetX?(e.zrX=t.offsetX,e.zrY=t.offsetY):ZP(a,t,e),e}function ZP(a,t,e){if(tn.domSupported&&a.getBoundingClientRect){var o=t.clientX,u=t.clientY;if(tz(a)){var f=a.getBoundingClientRect();return e.zrX=o-f.left,void(e.zrY=u-f.top)}if(YP(Ug,a,o,u))return e.zrX=Ug[0],void(e.zrY=Ug[1])}e.zrX=e.zrY=0}function Eb(a){return a||window.event}function Wa(a,t,e){if(null!=(t=Eb(t)).zrX)return t;var o=t.type;if(o&&o.indexOf("touch")>=0){var d="touchend"!==o?t.targetTouches[0]:t.changedTouches[0];d&&aM(a,d,t,e)}else{aM(a,t,t,e);var f=function oM(a){var t=a.wheelDelta;if(t)return t;var e=a.deltaX,o=a.deltaY;return null==e||null==o?t:3*Math.abs(0!==o?o:e)*(o>0?-1:o<0?1:e>0?-1:1)}(t);t.zrDelta=f?f/120:-(t.detail||0)/3}var h=t.button;return null==t.which&&void 0!==h&&St.test(t.type)&&(t.which=1&h?1:2&h?3:4&h?2:0),t}function Pb(a,t,e,o){a.addEventListener(t,e,o)}function nz(a,t,e,o){a.removeEventListener(t,e,o)}var It=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function Ob(a){return 2===a.which||3===a.which}var rz=function(){function a(){this._track=[]}return a.prototype.recognize=function(t,e,o){return this._doTrack(t,e,o),this._recognize(t)},a.prototype.clear=function(){return this._track.length=0,this},a.prototype._doTrack=function(t,e,o){var u=t.touches;if(u){for(var f={points:[],touches:[],target:e,event:t},d=0,h=u.length;d1&&u&&u.length>1){var d=Mu(u)/Mu(f);!isFinite(d)&&(d=1),e.pinchScale=d;var h=function XP(a){return[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]}(u);return e.pinchX=h[0],e.pinchY=h[1],{type:"pinch",target:t[0].target,event:e}}}}};function pZ(){It(this.event)}var vZ=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.handler=null,e}return lr(t,a),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(ls),Ya=function a(t,e){this.x=t,this.y=e},iz=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],$P=function(a){function t(e,o,u,f){var d=a.call(this)||this;return d._hovered=new Ya(0,0),d.storage=e,d.painter=o,d.painterRoot=f,u=u||new vZ,d.proxy=null,d.setHandlerProxy(u),d._draggingMgr=new uZ(d),d}return lr(t,a),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(q(iz,function(o){e.on&&e.on(o,this[o],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var o=e.zrX,u=e.zrY,f=QP(this,o,u),d=this._hovered,h=d.target;h&&!h.__zr&&(h=(d=this.findHover(d.x,d.y)).target);var v=this._hovered=f?new Ya(o,u):this.findHover(o,u),g=v.target,m=this.proxy;m.setCursor&&m.setCursor(g?g.cursor:"default"),h&&g!==h&&this.dispatchToElement(d,"mouseout",e),this.dispatchToElement(v,"mousemove",e),g&&g!==h&&this.dispatchToElement(v,"mouseover",e)},t.prototype.mouseout=function(e){var o=e.zrEventControl;"only_globalout"!==o&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==o&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Ya(0,0)},t.prototype.dispatch=function(e,o){var u=this[e];u&&u.call(this,o)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var o=this.proxy;o.setCursor&&o.setCursor(e)},t.prototype.dispatchToElement=function(e,o,u){var f=(e=e||{}).target;if(!f||!f.silent){for(var d="on"+o,h=function Zs(a,t,e){return{type:a,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:pZ}}(o,e,u);f&&(f[d]&&(h.cancelBubble=!!f[d].call(f,h)),f.trigger(o,h),f=f.__hostTarget?f.__hostTarget:f.parent,!h.cancelBubble););h.cancelBubble||(this.trigger(o,h),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(v){"function"==typeof v[d]&&v[d].call(v,h),v.trigger&&v.trigger(o,h)}))}},t.prototype.findHover=function(e,o,u){for(var f=this.storage.getDisplayList(),d=new Ya(e,o),h=f.length-1;h>=0;h--){var v=void 0;if(f[h]!==u&&!f[h].ignore&&(v=az(f[h],e,o))&&(!d.topTarget&&(d.topTarget=f[h]),"silent"!==v)){d.target=f[h];break}}return d},t.prototype.processGesture=function(e,o){this._gestureMgr||(this._gestureMgr=new rz);var u=this._gestureMgr;"start"===o&&u.clear();var f=u.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===o&&u.clear(),f){var d=f.type;e.gestureEvent=d;var h=new Ya;h.target=f.target,this.dispatchToElement(h,d,f.event)}},t}(ls);function az(a,t,e){if(a[a.rectHover?"rectContain":"contain"](t,e)){for(var o=a,u=void 0,f=!1;o;){if(o.ignoreClip&&(f=!0),!f){var d=o.getClipPath();if(d&&!d.contain(t,e))return!1;o.silent&&(u=!0)}o=o.__hostTarget||o.parent}return!u||"silent"}return!1}function QP(a,t,e){var o=a.painter;return t<0||t>o.getWidth()||e<0||e>o.getHeight()}q(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){$P.prototype[a]=function(t){var f,d,e=t.zrX,o=t.zrY,u=QP(this,e,o);if(("mouseup"!==a||!u)&&(d=(f=this.findHover(e,o)).target),"mousedown"===a)this._downEl=d,this._downPoint=[t.zrX,t.zrY],this._upEl=d;else if("mouseup"===a)this._upEl=d;else if("click"===a){if(this._downEl!==this._upEl||!this._downPoint||Oc(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(f,a,t)}});var cr=$P;function jg(a,t,e,o){var u=t+1;if(u===e)return 1;if(o(a[u++],a[t])<0){for(;u=0;)u++;return u-t}function Rb(a,t,e,o,u){for(o===t&&o++;o>>1])<0?h=v:d=v+1;var g=o-d;switch(g){case 3:a[d+3]=a[d+2];case 2:a[d+2]=a[d+1];case 1:a[d+1]=a[d];break;default:for(;g>0;)a[d+g]=a[d+g-1],g--}a[d]=f}}function Lb(a,t,e,o,u,f){var d=0,h=0,v=1;if(f(a,t[e+u])>0){for(h=o-u;v0;)d=v,(v=1+(v<<1))<=0&&(v=h);v>h&&(v=h),d+=u,v+=u}else{for(h=u+1;vh&&(v=h);var g=d;d=u-v,v=u-g}for(d++;d>>1);f(a,t[e+m])>0?d=m+1:v=m}return v}function Xs(a,t,e,o,u,f){var d=0,h=0,v=1;if(f(a,t[e+u])<0){for(h=u+1;vh&&(v=h);var g=d;d=u-v,v=u-g}else{for(h=o-u;v=0;)d=v,(v=1+(v<<1))<=0&&(v=h);v>h&&(v=h),d+=u,v+=u}for(d++;d>>1);f(a,t[e+m])<0?v=m:d=m+1}return v}function Fb(a,t,e,o){e||(e=0),o||(o=a.length);var u=o-e;if(!(u<2)){var f=0;if(u<32)return void Rb(a,e,o,e+(f=jg(a,e,o,t)),t);var d=function Wg(a,t){var d,h,e=7,v=0,g=[];function C(D){var x=d[D],T=h[D],E=d[D+1],P=h[D+1];h[D]=T+P,D===v-3&&(d[D+1]=d[D+2],h[D+1]=h[D+2]),v--;var V=Xs(a[E],a,x,T,0,t);x+=V,0!=(T-=V)&&0!==(P=Lb(a[x+T-1],a,E,P,P-1,t))&&(T<=P?function S(D,x,T,E){var P=0;for(P=0;P=7||W>=7);if(X)break;j<0&&(j=0),j+=2}if((e=j)<1&&(e=1),1===x){for(P=0;P=0;P--)a[Z+P]=a[j+P];if(0===x){ee=!0;break}}if(a[H--]=g[N--],1==--E){ee=!0;break}if(0!=(J=E-Lb(a[V],g,0,E,E-1,t))){for(E-=J,Z=1+(H-=J),j=1+(N-=J),P=0;P=7||J>=7);if(ee)break;W<0&&(W=0),W+=2}if((e=W)<1&&(e=1),1===E){for(Z=1+(H-=x),j=1+(V-=x),P=x-1;P>=0;P--)a[Z+P]=a[j+P];a[H]=g[N]}else{if(0===E)throw new Error;for(j=H-(E-1),P=0;P=0;P--)a[Z+P]=a[j+P];a[H]=g[N]}else for(j=H-(E-1),P=0;P1;){var D=v-2;if(D>=1&&h[D-1]<=h[D]+h[D+1]||D>=2&&h[D-2]<=h[D]+h[D-1])h[D-1]h[D+1])break;C(D)}},forceMergeRuns:function b(){for(;v>1;){var D=v-2;D>0&&h[D-1]=32;)t|=1&a,a>>=1;return a+t}(u);do{if((f=jg(a,e,o,t))h&&(v=h),Rb(a,e,e+v,e+f,t),f=v}d.pushRun(e,f),d.mergeRuns(),u-=f,e+=f}while(0!==u);d.forceMergeRuns()}}var lM=!1;function Nb(){lM||(lM=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Mt(a,t){return a.zlevel===t.zlevel?a.z===t.z?a.z2-t.z2:a.z-t.z:a.zlevel-t.zlevel}var be,sz=function(){function a(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Mt}return a.prototype.traverse=function(t,e){for(var o=0;o0&&(m.__clipPaths=[]),isNaN(m.z)&&(Nb(),m.z=0),isNaN(m.z2)&&(Nb(),m.z2=0),isNaN(m.zlevel)&&(Nb(),m.zlevel=0),this._displayList[this._displayListLen++]=m}var y=t.getDecalElement&&t.getDecalElement();y&&this._updateAndAddDisplayable(y,e,o);var b=t.getTextGuideLine();b&&this._updateAndAddDisplayable(b,e,o);var C=t.getTextContent();C&&this._updateAndAddDisplayable(C,e,o)}},a.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},a.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,o=t.length;e=0&&this._roots.splice(u,1)}},a.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},a.prototype.getRoots=function(){return this._roots},a.prototype.dispose=function(){this._displayList=null,this._roots=null},a}(),JP=sz;be=tn.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(a){return setTimeout(a,16)};var qi=be,Li={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,o=.1;return 0===t?0:1===t?1:(!o||o<1?(o=1,e=.1):e=.4*Math.asin(1/o)/(2*Math.PI),-o*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,o=.1;return 0===t?0:1===t?1:(!o||o<1?(o=1,e=.1):e=.4*Math.asin(1/o)/(2*Math.PI),o*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,o=.1;return 0===t?0:1===t?1:(!o||o<1?(o=1,e=.1):e=.4*Math.asin(1/o)/(2*Math.PI),(t*=2)<1?o*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:o*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-Li.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*Li.bounceIn(2*t):.5*Li.bounceOut(2*t-1)+.5}},Du=Li,Yl=Math.pow,Fi=Math.sqrt,_p=Fi(3),od=1/3,Sa=gn(),_r=gn(),yp=gn();function Ni(a){return a>-1e-8&&a<1e-8}function at(a){return a>1e-8||a<-1e-8}function xt(a,t,e,o,u){var f=1-u;return f*f*(f*a+3*u*t)+u*u*(u*o+3*f*e)}function Lr(a,t,e,o,u){var f=1-u;return 3*(((t-a)*f+2*(e-t)*u)*f+(o-e)*u*u)}function Ma(a,t,e,o,u,f){var d=o+3*(t-e)-a,h=3*(e-2*t+a),v=3*(t-a),g=a-u,m=h*h-3*d*v,y=h*v-9*d*g,b=v*v-3*h*g,C=0;if(Ni(m)&&Ni(y))Ni(h)?f[0]=0:(S=-v/h)>=0&&S<=1&&(f[C++]=S);else{var k=y*y-4*m*b;if(Ni(k)){var D=y/m,x=-D/2;(S=-h/d+D)>=0&&S<=1&&(f[C++]=S),x>=0&&x<=1&&(f[C++]=x)}else if(k>0){var T=Fi(k),E=m*h+1.5*d*(-y+T),P=m*h+1.5*d*(-y-T);(S=(-h-((E=E<0?-Yl(-E,od):Yl(E,od))+(P=P<0?-Yl(-P,od):Yl(P,od))))/(3*d))>=0&&S<=1&&(f[C++]=S)}else{var V=(2*m*h-3*d*y)/(2*Fi(m*m*m)),N=Math.acos(V)/3,H=Fi(m),j=Math.cos(N),S=(-h-2*H*j)/(3*d),Z=(x=(-h+H*(j+_p*Math.sin(N)))/(3*d),(-h+H*(j-_p*Math.sin(N)))/(3*d));S>=0&&S<=1&&(f[C++]=S),x>=0&&x<=1&&(f[C++]=x),Z>=0&&Z<=1&&(f[C++]=Z)}}return C}function Rc(a,t,e,o,u){var f=6*e-12*t+6*a,d=9*t+3*o-3*a-9*e,h=3*t-3*a,v=0;if(Ni(d))at(f)&&(g=-h/f)>=0&&g<=1&&(u[v++]=g);else{var m=f*f-4*d*h;if(Ni(m))u[0]=-f/(2*d);else if(m>0){var g,y=Fi(m),b=(-f-y)/(2*d);(g=(-f+y)/(2*d))>=0&&g<=1&&(u[v++]=g),b>=0&&b<=1&&(u[v++]=b)}}return v}function Fr(a,t,e,o,u,f){var d=(t-a)*u+a,h=(e-t)*u+t,v=(o-e)*u+e,g=(h-d)*u+d,m=(v-h)*u+h,y=(m-g)*u+g;f[0]=a,f[1]=d,f[2]=g,f[3]=y,f[4]=y,f[5]=m,f[6]=v,f[7]=o}function Lc(a,t,e,o,u,f,d,h,v,g,m){var y,S,k,D,x,b=.005,C=1/0;Sa[0]=v,Sa[1]=g;for(var T=0;T<1;T+=.05)_r[0]=xt(a,e,u,d,T),_r[1]=xt(t,o,f,h,T),(D=qs(Sa,_r))=0&&D=0&&C=1?1:Ma(0,o,f,1,v,h)&&xt(0,u,d,1,h[0])}}}var Cp=function(){function a(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Jr,this.ondestroy=t.ondestroy||Jr,this.onrestart=t.onrestart||Jr,t.easing&&this.setEasing(t.easing)}return a.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var o=this._life,u=t-this._startTime-this._pausedTime,f=u/o;f<0&&(f=0),f=Math.min(f,1);var d=this.easingFunc,h=d?d(f):f;if(this.onframe(h),1===f){if(!this.loop)return!0;this._startTime=t-u%o,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},a.prototype.pause=function(){this._paused=!0},a.prototype.resume=function(){this._paused=!1},a.prototype.setEasing=function(t){this.easing=t,this.easingFunc=et(t)?t:Du[t]||sd(t)},a}(),Ks=Cp,yr=function a(t){this.value=t},lz=function(){function a(){this._len=0}return a.prototype.insert=function(t){var e=new yr(t);return this.insertEntry(e),e},a.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++},a.prototype.remove=function(t){var e=t.prev,o=t.next;e?e.next=o:this.head=o,o?o.prev=e:this.tail=e,t.next=t.prev=null,this._len--},a.prototype.len=function(){return this._len},a.prototype.clear=function(){this.head=this.tail=null,this._len=0},a}(),uz=function(){function a(t){this._list=new lz,this._maxSize=10,this._map={},this._maxSize=t}return a.prototype.put=function(t,e){var o=this._list,u=this._map,f=null;if(null==u[t]){var d=o.len(),h=this._lastRemovedEntry;if(d>=this._maxSize&&d>0){var v=o.head;o.remove(v),delete u[v.key],f=v.value,this._lastRemovedEntry=v}h?h.value=e:h=new yr(e),h.key=t,o.insertEntry(h),u[t]=h}return f},a.prototype.get=function(t){var e=this._map[t],o=this._list;if(null!=e)return e!==o.tail&&(o.remove(e),o.insertEntry(e)),e.value},a.prototype.clear=function(){this._list.clear(),this._map={}},a.prototype.len=function(){return this._list.len()},a}(),go=uz,us={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 Lo(a){return(a=Math.round(a))<0?0:a>255?255:a}function Nc(a){return a<0?0:a>1?1:a}function Fo(a){var t=a;return t.length&&"%"===t.charAt(t.length-1)?Lo(parseFloat(t)/100*255):Lo(parseInt(t,10))}function wp(a){var t=a;return t.length&&"%"===t.charAt(t.length-1)?Nc(parseFloat(t)/100):Nc(parseFloat(t))}function eO(a,t,e){return e<0?e+=1:e>1&&(e-=1),6*e<1?a+(t-a)*e*6:2*e<1?t:3*e<2?a+(t-a)*(2/3-e)*6:a}function Bc(a,t,e){return a+(t-a)*e}function cs(a,t,e,o,u){return a[0]=t,a[1]=e,a[2]=o,a[3]=u,a}function tO(a,t){return a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3],a}var cz=new go(20),uM=null;function qg(a,t){uM&&tO(uM,t),uM=cz.put(a,uM||t.slice())}function mo(a,t){if(a){t=t||[];var e=cz.get(a);if(e)return tO(t,e);var o=(a+="").replace(/ /g,"").toLowerCase();if(o in us)return tO(t,us[o]),qg(a,t),t;var f,u=o.length;if("#"===o.charAt(0))return 4===u||5===u?(f=parseInt(o.slice(1,4),16))>=0&&f<=4095?(cs(t,(3840&f)>>4|(3840&f)>>8,240&f|(240&f)>>4,15&f|(15&f)<<4,5===u?parseInt(o.slice(4),16)/15:1),qg(a,t),t):void cs(t,0,0,0,1):7===u||9===u?(f=parseInt(o.slice(1,7),16))>=0&&f<=16777215?(cs(t,(16711680&f)>>16,(65280&f)>>8,255&f,9===u?parseInt(o.slice(7),16)/255:1),qg(a,t),t):void cs(t,0,0,0,1):void 0;var d=o.indexOf("("),h=o.indexOf(")");if(-1!==d&&h+1===u){var v=o.substr(0,d),g=o.substr(d+1,h-(d+1)).split(","),m=1;switch(v){case"rgba":if(4!==g.length)return 3===g.length?cs(t,+g[0],+g[1],+g[2],1):cs(t,0,0,0,1);m=wp(g.pop());case"rgb":return 3!==g.length?void cs(t,0,0,0,1):(cs(t,Fo(g[0]),Fo(g[1]),Fo(g[2]),m),qg(a,t),t);case"hsla":return 4!==g.length?void cs(t,0,0,0,1):(g[3]=wp(g[3]),nO(g,t),qg(a,t),t);case"hsl":return 3!==g.length?void cs(t,0,0,0,1):(nO(g,t),qg(a,t),t);default:return}}cs(t,0,0,0,1)}}function nO(a,t){var e=(parseFloat(a[0])%360+360)%360/360,o=wp(a[1]),u=wp(a[2]),f=u<=.5?u*(o+1):u+o-u*o,d=2*u-f;return cs(t=t||[],Lo(255*eO(d,f,e+1/3)),Lo(255*eO(d,f,e)),Lo(255*eO(d,f,e-1/3)),1),4===a.length&&(t[3]=a[3]),t}function cM(a,t){var e=mo(a);if(e){for(var o=0;o<3;o++)e[o]=t<0?e[o]*(1-t)|0:(255-e[o])*t+e[o]|0,e[o]>255?e[o]=255:e[o]<0&&(e[o]=0);return No(e,4===e.length?"rgba":"rgb")}}function mZ(a){var t=mo(a);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function zb(a,t,e){if(t&&t.length&&a>=0&&a<=1){e=e||[];var o=a*(t.length-1),u=Math.floor(o),f=Math.ceil(o),d=t[u],h=t[f],v=o-u;return e[0]=Lo(Bc(d[0],h[0],v)),e[1]=Lo(Bc(d[1],h[1],v)),e[2]=Lo(Bc(d[2],h[2],v)),e[3]=Nc(Bc(d[3],h[3],v)),e}}var _Z=zb;function rO(a,t,e){if(t&&t.length&&a>=0&&a<=1){var o=a*(t.length-1),u=Math.floor(o),f=Math.ceil(o),d=mo(t[u]),h=mo(t[f]),v=o-u,g=No([Lo(Bc(d[0],h[0],v)),Lo(Bc(d[1],h[1],v)),Lo(Bc(d[2],h[2],v)),Nc(Bc(d[3],h[3],v))],"rgba");return e?{color:g,leftIndex:u,rightIndex:f,value:o}:g}}var yZ=rO;function Zg(a,t,e,o){var u=mo(a);if(a)return u=function gZ(a){if(a){var v,g,t=a[0]/255,e=a[1]/255,o=a[2]/255,u=Math.min(t,e,o),f=Math.max(t,e,o),d=f-u,h=(f+u)/2;if(0===d)v=0,g=0;else{g=h<.5?d/(f+u):d/(2-f-u);var m=((f-t)/6+d/2)/d,y=((f-e)/6+d/2)/d,b=((f-o)/6+d/2)/d;t===f?v=b-y:e===f?v=1/3+m-b:o===f&&(v=2/3+y-m),v<0&&(v+=1),v>1&&(v-=1)}var C=[360*v,g,h];return null!=a[3]&&C.push(a[3]),C}}(u),null!=t&&(u[0]=function Hb(a){return(a=Math.round(a))<0?0:a>360?360:a}(t)),null!=e&&(u[1]=wp(e)),null!=o&&(u[2]=wp(o)),No(nO(u),"rgba")}function Sp(a,t){var e=mo(a);if(e&&null!=t)return e[3]=Nc(t),No(e,"rgba")}function No(a,t){if(a&&a.length){var e=a[0]+","+a[1]+","+a[2];return("rgba"===t||"hsva"===t||"hsla"===t)&&(e+=","+a[3]),t+"("+e+")"}}function Gb(a,t){var e=mo(a);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function bZ(){return No([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var Ub=Math.round;function fs(a){var t;if(a&&"transparent"!==a){if("string"==typeof a&&a.indexOf("rgba")>-1){var e=mo(a);e&&(a="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}}else a="none";return{color:a,opacity:null==t?1:t}}function xn(a){return a<1e-4&&a>-1e-4}function Xg(a){return Ub(1e3*a)/1e3}function fM(a){return Ub(1e4*a)/1e4}var oO={left:"start",right:"end",center:"middle",middle:"middle"};function jb(a){return a&&!!a.image}function sO(a){return"linear"===a.type}function lO(a){return"radial"===a.type}function Wb(a){return"url(#"+a+")"}function Yb(a){var t=a.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function pz(a){var t=a.x||0,e=a.y||0,o=(a.rotation||0)*Bg,u=Ft(a.scaleX,1),f=Ft(a.scaleY,1),d=a.skewX||0,h=a.skewY||0,v=[];return(t||e)&&v.push("translate("+t+"px,"+e+"px)"),o&&v.push("rotate("+o+")"),(1!==u||1!==f)&&v.push("scale("+u+","+f+")"),(d||h)&&v.push("skew("+Ub(d*Bg)+"deg, "+Ub(h*Bg)+"deg)"),v.join(" ")}var ni=tn.hasGlobalWindow&&et(window.btoa)?function(a){return window.btoa(unescape(a))}:"undefined"!=typeof Buffer?function(a){return Buffer.from(a).toString("base64")}:function(a){return null},qb=Array.prototype.slice;function xu(a,t,e){return(t-a)*e+a}function ri(a,t,e,o){for(var u=t.length,f=0;fo?t:a,f=Math.min(e,o),d=u[f-1]||{color:[0,0,0,0],offset:0},h=f;hd)o.length=d;else for(var v=f;v=1},a.prototype.getAdditiveTrack=function(){return this._additiveTrack},a.prototype.addKeyframe=function(t,e,o){this._needsSort=!0;var u=this.keyframes,f=u.length,d=!1,h=6,v=e;if(Ca(e)){var g=function Bo(a){return Ca(a&&a[0])?2:1}(e);h=g,(1===g&&!Cn(e[0])||2===g&&!Cn(e[0][0]))&&(d=!0)}else if(Cn(e)&&!Rg(e))h=0;else if(Ne(e))if(isNaN(+e)){var m=mo(e);m&&(v=m,h=3)}else h=0;else if(Sb(e)){var y=ve({},v);y.colorStops=Me(e.colorStops,function(C){return{offset:C.offset,color:mo(C.color)}}),sO(e)?h=4:lO(e)&&(h=5),v=y}0===f?this.valType=h:(h!==this.valType||6===h)&&(d=!0),this.discrete=this.discrete||d;var b={time:t,value:v,rawValue:e,percent:0};return o&&(b.easing=o,b.easingFunc=et(o)?o:Du[o]||sd(o)),u.push(b),b},a.prototype.prepare=function(t,e){var o=this.keyframes;this._needsSort&&o.sort(function(k,D){return k.time-D.time});for(var u=this.valType,f=o.length,d=o[f-1],h=this.discrete,v=mM(u),g=gM(u),m=0;m=0&&!(d[m].percent<=e);m--);m=b(m,h-2)}else{for(m=y;me);m++);m=b(m-1,h-2)}S=d[m+1],C=d[m]}if(C&&S){this._lastFr=m,this._lastFrP=e;var D=S.percent-C.percent,x=0===D?1:b((e-C.percent)/D,1);S.easingFunc&&(x=S.easingFunc(x));var T=o?this._additiveValue:g?Jg:t[v];if((mM(f)||g)&&!T&&(T=this._additiveValue=[]),this.discrete)t[v]=x<1?C.rawValue:S.rawValue;else if(mM(f))1===f?ri(T,C[u],S[u],x):function vz(a,t,e,o){for(var u=t.length,f=u&&t[0].length,d=0;d0&&v.addKeyframe(0,ld(g),u),this._trackKeys.push(h)}v.addKeyframe(t,ld(e[h]),u)}return this._maxTime=Math.max(this._maxTime,t),this},a.prototype.pause=function(){this._clip.pause(),this._paused=!0},a.prototype.resume=function(){this._clip.resume(),this._paused=!1},a.prototype.isPaused=function(){return!!this._paused},a.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},a.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,o=0;o0)){this._started=1;for(var e=this,o=[],u=this._maxTime||0,f=0;f1){var h=d.pop();f.addKeyframe(h.time,t[u]),f.prepare(this._maxTime,f.getAdditiveTrack())}}}},a}(),Xb=_z;function kp(){return(new Date).getTime()}var yz=function(a){function t(e){var o=a.call(this)||this;return o._running=!1,o._time=0,o._pausedTime=0,o._pauseStart=0,o._paused=!1,o.stage=(e=e||{}).stage||{},o}return lr(t,a),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var o=e.getClip();o&&this.addClip(o)},t.prototype.removeClip=function(e){if(e.animation){var o=e.prev,u=e.next;o?o.next=u:this._head=u,u?u.prev=o:this._tail=o,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var o=e.getClip();o&&this.removeClip(o),e.animation=null},t.prototype.update=function(e){for(var o=kp()-this._pausedTime,u=o-this._time,f=this._head;f;){var d=f.next;f.step(o,u)&&(f.ondestroy(),this.removeClip(f)),f=d}this._time=o,e||(this.trigger("frame",u),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,qi(function o(){e._running&&(qi(o),!e._paused&&e.update())})},t.prototype.start=function(){this._running||(this._time=kp(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=kp(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=kp()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var o=e.next;e.prev=e.next=e.animation=null,e=o}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,o){o=o||{},this.start();var u=new Xb(e,o.loop);return this.addAnimator(u),u},t}(ls),Oe=yz,he=tn.domSupported,di=function(){var a=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:a,touch:["touchstart","touchend","touchmove"],pointer:Me(a,function(u){var f=u.replace("mouse","pointer");return e.hasOwnProperty(f)?f:u})}}(),_M_mouse=["mousemove","mouseup"],_M_pointer=["pointermove","pointerup"],Dp=!1;function ps(a){var t=a.pointerType;return"pen"===t||"touch"===t}function em(a){a&&(a.zrByTouch=!0)}function cO(a,t){for(var e=t,o=!1;e&&9!==e.nodeType&&!(o=e.domBelongToZr||e!==t&&e===a.painterRoot);)e=e.parentNode;return o}var SZ=function a(t,e){this.stopPropagation=Jr,this.stopImmediatePropagation=Jr,this.preventDefault=Jr,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},_o={mousedown:function(t){t=Wa(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Wa(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=Wa(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){cO(this,(t=Wa(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Dp=!0,t=Wa(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Dp||(t=Wa(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){em(t=Wa(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),_o.mousemove.call(this,t),_o.mousedown.call(this,t)},touchmove:function(t){em(t=Wa(this.dom,t)),this.handler.processGesture(t,"change"),_o.mousemove.call(this,t)},touchend:function(t){em(t=Wa(this.dom,t)),this.handler.processGesture(t,"end"),_o.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&_o.click.call(this,t)},pointerdown:function(t){_o.mousedown.call(this,t)},pointermove:function(t){ps(t)||_o.mousemove.call(this,t)},pointerup:function(t){_o.mouseup.call(this,t)},pointerout:function(t){ps(t)||_o.mouseout.call(this,t)}};q(["click","dblclick","contextmenu"],function(a){_o[a]=function(t){t=Wa(this.dom,t),this.trigger(a,t)}});var ha={pointermove:function(t){ps(t)||ha.mousemove.call(this,t)},pointerup:function(t){ha.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 Eu(a,t,e,o){a.mounted[t]=e,a.listenerOpts[t]=o,Pb(a.domTarget,t,e,o)}function Qs(a){var t=a.mounted;for(var e in t)t.hasOwnProperty(e)&&nz(a.domTarget,e,t[e],a.listenerOpts[e]);a.mounted={}}var dO=function a(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},hO=function(a){function t(e,o){var u=a.call(this)||this;return u.__pointerCapturing=!1,u.dom=e,u.painterRoot=o,u._localHandlerScope=new dO(e,_o),he&&(u._globalHandlerScope=new dO(document,ha)),function Au(a,t){var e=t.domHandlers;tn.pointerEventsSupported?q(di.pointer,function(o){Eu(t,o,function(u){e[o].call(a,u)})}):(tn.touchEventsSupported&&q(di.touch,function(o){Eu(t,o,function(u){e[o].call(a,u),function yM(a){a.touching=!0,null!=a.touchTimer&&(clearTimeout(a.touchTimer),a.touchTimer=null),a.touchTimer=setTimeout(function(){a.touching=!1,a.touchTimer=null},700)}(t)})}),q(di.mouse,function(o){Eu(t,o,function(u){u=Eb(u),t.touching||e[o].call(a,u)})}))}(u,u._localHandlerScope),u}return lr(t,a),t.prototype.dispose=function(){Qs(this._localHandlerScope),he&&Qs(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,he&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var o=this._globalHandlerScope;e?function fO(a,t){function e(o){Eu(t,o,function u(f){f=Eb(f),cO(a,f.target)||(f=function wZ(a,t){return Wa(a.dom,new SZ(a,t),!0)}(a,f),t.domHandlers[o].call(a,f))},{capture:!0})}tn.pointerEventsSupported?q(_M_pointer,e):tn.touchEventsSupported||q(_M_mouse,e)}(this,o):Qs(o)}},t}(ls),bz=hO,pO=1;tn.hasGlobalWindow&&(pO=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var xp=pO,tm="#333",bM="#ccc";function ka(){return[1,0,0,1,0,0]}function Tp(a){return a[0]=1,a[1]=0,a[2]=0,a[3]=1,a[4]=0,a[5]=0,a}function nm(a,t){return a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3],a[4]=t[4],a[5]=t[5],a}function Js(a,t,e){var u=t[1]*e[0]+t[3]*e[1],f=t[0]*e[2]+t[2]*e[3],d=t[1]*e[2]+t[3]*e[3],h=t[0]*e[4]+t[2]*e[5]+t[4],v=t[1]*e[4]+t[3]*e[5]+t[5];return a[0]=t[0]*e[0]+t[2]*e[1],a[1]=u,a[2]=f,a[3]=d,a[4]=h,a[5]=v,a}function vs(a,t,e){return a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3],a[4]=t[4]+e[0],a[5]=t[5]+e[1],a}function el(a,t,e){var o=t[0],u=t[2],f=t[4],d=t[1],h=t[3],v=t[5],g=Math.sin(e),m=Math.cos(e);return a[0]=o*m+d*g,a[1]=-o*g+d*m,a[2]=u*m+h*g,a[3]=-u*g+m*h,a[4]=m*f+g*v,a[5]=m*v-g*f,a}function $b(a,t,e){var o=e[0],u=e[1];return a[0]=t[0]*o,a[1]=t[1]*u,a[2]=t[2]*o,a[3]=t[3]*u,a[4]=t[4]*o,a[5]=t[5]*u,a}function ud(a,t){var e=t[0],o=t[2],u=t[4],f=t[1],d=t[3],h=t[5],v=e*d-f*o;return v?(a[0]=d*(v=1/v),a[1]=-f*v,a[2]=-o*v,a[3]=e*v,a[4]=(o*h-d*u)*v,a[5]=(f*u-e*h)*v,a):null}function Da(a){var t=[1,0,0,1,0,0];return nm(t,a),t}var Pu=Tp;function Bi(a){return a>5e-5||a<-5e-5}var cd=[],Zl=[],CM=[1,0,0,1,0,0],wM=Math.abs,Cz=function(){function a(){}return a.prototype.getLocalTransform=function(t){return a.getLocalTransform(this,t)},a.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},a.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},a.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},a.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},a.prototype.needLocalTransform=function(){return Bi(this.rotation)||Bi(this.x)||Bi(this.y)||Bi(this.scaleX-1)||Bi(this.scaleY-1)||Bi(this.skewX)||Bi(this.skewY)},a.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),o=this.transform;e||t?(o=o||[1,0,0,1,0,0],e?this.getLocalTransform(o):Pu(o),t&&(e?Js(o,t,o):nm(o,t)),this.transform=o,this._resolveGlobalScaleRatio(o)):o&&Pu(o)},a.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(cd);var o=cd[0]<0?-1:1,u=cd[1]<0?-1:1,f=((cd[0]-o)*e+o)/cd[0]||0,d=((cd[1]-u)*e+u)/cd[1]||0;t[0]*=f,t[1]*=f,t[2]*=d,t[3]*=d}this.invTransform=this.invTransform||[1,0,0,1,0,0],ud(this.invTransform,t)},a.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},a.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],o=t[2]*t[2]+t[3]*t[3],u=Math.atan2(t[1],t[0]),f=Math.PI/2+u-Math.atan2(t[3],t[2]);o=Math.sqrt(o)*Math.cos(f),e=Math.sqrt(e),this.skewX=f,this.skewY=0,this.rotation=-u,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=o,this.originX=0,this.originY=0}},a.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Js(Zl,t.invTransform,e),e=Zl);var o=this.originX,u=this.originY;(o||u)&&(CM[4]=o,CM[5]=u,Js(Zl,e,CM),Zl[4]-=o,Zl[5]-=u,e=Zl),this.setLocalTransform(e)}},a.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)},a.prototype.transformCoordToLocal=function(t,e){var o=[t,e],u=this.invTransform;return u&&Yi(o,o,u),o},a.prototype.transformCoordToGlobal=function(t,e){var o=[t,e],u=this.transform;return u&&Yi(o,o,u),o},a.prototype.getLineScale=function(){var t=this.transform;return t&&wM(t[0]-1)>1e-10&&wM(t[3]-1)>1e-10?Math.sqrt(wM(t[0]*t[3]-t[2]*t[1])):1},a.prototype.copyTransform=function(t){rm(this,t)},a.getLocalTransform=function(t,e){e=e||[];var o=t.originX||0,u=t.originY||0,f=t.scaleX,d=t.scaleY,h=t.anchorX,v=t.anchorY,g=t.rotation||0,m=t.x,y=t.y,b=t.skewX?Math.tan(t.skewX):0,C=t.skewY?Math.tan(-t.skewY):0;if(o||u||h||v){var S=o+h,k=u+v;e[4]=-S*f-b*k*d,e[5]=-k*d-C*S*f}else e[4]=e[5]=0;return e[0]=f,e[3]=d,e[1]=C*f,e[2]=b*d,g&&el(e,e,g),e[4]+=o+m,e[5]+=u+y,e},a.initDefaultProps=function(){var t=a.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),a}(),Vo=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function rm(a,t){for(var e=0;eS&&(S=E,Et.set(im,kS&&(S=P,Et.set(im,0,x=o.x&&t<=o.x+o.width&&e>=o.y&&e<=o.y+o.height},a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height)},a.prototype.copy=function(t){a.copy(this,t)},a.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},a.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},a.prototype.isZero=function(){return 0===this.width||0===this.height},a.create=function(t){return new a(t.x,t.y,t.width,t.height)},a.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},a.applyTransform=function(t,e,o){if(o){if(o[1]<1e-5&&o[1]>-1e-5&&o[2]<1e-5&&o[2]>-1e-5){var u=o[0],f=o[3],h=o[5];return t.x=e.x*u+o[4],t.y=e.y*f+h,t.width=e.width*u,t.height=e.height*f,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}nl.x=dd.x=e.x,nl.y=rl.y=e.y,fd.x=rl.x=e.x+e.width,fd.y=dd.y=e.y+e.height,nl.transform(o),rl.transform(o),fd.transform(o),dd.transform(o),t.x=Qb(nl.x,fd.x,dd.x,rl.x),t.y=Qb(nl.y,fd.y,dd.y,rl.y);var v=tl(nl.x,fd.x,dd.x,rl.x),g=tl(nl.y,fd.y,dd.y,rl.y);t.width=v-t.x,t.height=g-t.y}else t!==e&&a.copy(t,e)},a}(),zt=wz,Sz={};function xa(a,t){var e=Sz[t=t||ho];e||(e=Sz[t]=new go(500));var o=e.get(a);return null==o&&(o=Ws.measureText(a,t).width,e.put(a,o)),o}function MM(a,t,e,o){var u=xa(a,t),f=am(t),d=Vc(0,u,e),h=vd(0,f,o);return new zt(d,h,u,f)}function pd(a,t,e,o){var u=((a||"")+"").split("\n");if(1===u.length)return MM(u[0],t,e,o);for(var d=new zt(0,0,0,0),h=0;h=0?parseFloat(a)/100*t:parseFloat(a):a}function Ou(a,t,e){var o=t.position||"inside",u=null!=t.distance?t.distance:5,f=e.height,d=e.width,h=f/2,v=e.x,g=e.y,m="left",y="top";if(o instanceof Array)v+=il(o[0],e.width),g+=il(o[1],e.height),m=null,y=null;else switch(o){case"left":v-=u,g+=h,m="right",y="middle";break;case"right":v+=u+d,g+=h,y="middle";break;case"top":v+=d/2,g-=u,m="center",y="bottom";break;case"bottom":v+=d/2,g+=f+u,m="center";break;case"inside":v+=d/2,g+=h,m="center",y="middle";break;case"insideLeft":v+=u,g+=h,y="middle";break;case"insideRight":v+=d-u,g+=h,m="right",y="middle";break;case"insideTop":v+=d/2,g+=u,m="center";break;case"insideBottom":v+=d/2,g+=f-u,m="center",y="bottom";break;case"insideTopLeft":v+=u,g+=u;break;case"insideTopRight":v+=d-u,g+=u,m="right";break;case"insideBottomLeft":v+=u,g+=f-u,y="bottom";break;case"insideBottomRight":v+=d-u,g+=f-u,m="right",y="bottom"}return(a=a||{}).x=v,a.y=g,a.align=m,a.verticalAlign=y,a}var sm="__zr_normal__",Ap=Vo.concat(["ignore"]),Mz=Ys(Vo,function(a,t){return a[t]=!0,a},{ignore:!1}),gd={},mO=new zt(0,0,0,0),kM=function(){function a(t){this.id=$S(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return a.prototype._init=function(t){this.attr(t)},a.prototype.drift=function(t,e,o){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var u=this.transform;u||(u=this.transform=[1,0,0,1,0,0]),u[4]+=t,u[5]+=e,this.decomposeTransform(),this.markRedraw()},a.prototype.beforeUpdate=function(){},a.prototype.afterUpdate=function(){},a.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},a.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var o=this.textConfig,u=o.local,f=e.innerTransformable,d=void 0,h=void 0,v=!1;f.parent=u?this:null;var g=!1;if(f.copyTransform(e),null!=o.position){var m=mO;m.copy(o.layoutRect?o.layoutRect:this.getBoundingRect()),u||m.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(gd,o,m):Ou(gd,o,m),f.x=gd.x,f.y=gd.y,d=gd.align,h=gd.verticalAlign;var y=o.origin;if(y&&null!=o.rotation){var b=void 0,C=void 0;"center"===y?(b=.5*m.width,C=.5*m.height):(b=il(y[0],m.width),C=il(y[1],m.height)),g=!0,f.originX=-f.x+b+(u?0:m.x),f.originY=-f.y+C+(u?0:m.y)}}null!=o.rotation&&(f.rotation=o.rotation);var S=o.offset;S&&(f.x+=S[0],f.y+=S[1],g||(f.originX=-S[0],f.originY=-S[1]));var k=null==o.inside?"string"==typeof o.position&&o.position.indexOf("inside")>=0:o.inside,D=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),x=void 0,T=void 0,E=void 0;k&&this.canBeInsideText()?(T=o.insideStroke,(null==(x=o.insideFill)||"auto"===x)&&(x=this.getInsideTextFill()),(null==T||"auto"===T)&&(T=this.getInsideTextStroke(x),E=!0)):(T=o.outsideStroke,(null==(x=o.outsideFill)||"auto"===x)&&(x=this.getOutsideFill()),(null==T||"auto"===T)&&(T=this.getOutsideStroke(x),E=!0)),((x=x||"#000")!==D.fill||T!==D.stroke||E!==D.autoStroke||d!==D.align||h!==D.verticalAlign)&&(v=!0,D.fill=x,D.stroke=T,D.autoStroke=E,D.align=d,D.verticalAlign=h,e.setDefaultTextStyle(D)),e.__dirty|=1,v&&e.dirtyStyle(!0)}},a.prototype.canBeInsideText=function(){return!0},a.prototype.getInsideTextFill=function(){return"#fff"},a.prototype.getInsideTextStroke=function(t){return"#000"},a.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?bM:tm},a.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),o="string"==typeof e&&mo(e);o||(o=[255,255,255,1]);for(var u=o[3],f=this.__zr.isDarkMode(),d=0;d<3;d++)o[d]=o[d]*u+(f?0:255)*(1-u);return o[3]=1,No(o,"rgba")},a.prototype.traverse=function(t,e){},a.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||{},ve(this.extra,e)):this[t]=e},a.prototype.hide=function(){this.ignore=!0,this.markRedraw()},a.prototype.show=function(){this.ignore=!1,this.markRedraw()},a.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(Ke(t))for(var u=Zt(t),f=0;f0},a.prototype.getState=function(t){return this.states[t]},a.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},a.prototype.clearStates=function(t){this.useState(sm,!1,t)},a.prototype.useState=function(t,e,o,u){var f=t===sm;if(this.hasState()||!f){var h=this.currentStates,v=this.stateTransition;if(!(Ct(h,t)>=0)||!e&&1!==h.length){var g;if(this.stateProxy&&!f&&(g=this.stateProxy(t)),g||(g=this.states&&this.states[t]),!g&&!f)return void Xe("State "+t+" not exists.");f||this.saveCurrentToNormalState(g);var m=!!(g&&g.hoverLayer||u);m&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,g,this._normalState,e,!o&&!this.__inHover&&v&&v.duration>0,v);var y=this._textContent,b=this._textGuide;return y&&y.useState(t,e,o,m),b&&b.useState(t,e,o,m),f?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!m&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),g}}},a.prototype.useStates=function(t,e,o){if(t.length){var u=[],f=this.currentStates,d=t.length,h=d===f.length;if(h)for(var v=0;v0,S);var k=this._textContent,D=this._textGuide;k&&k.useStates(t,e,b),D&&D.useStates(t,e,b),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!b&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},a.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var o=this.currentStates.slice();o.splice(e,1),this.useStates(o)}},a.prototype.replaceState=function(t,e,o){var u=this.currentStates.slice(),f=Ct(u,t),d=Ct(u,e)>=0;f>=0?d?u.splice(f,1):u[f]=e:o&&!d&&u.push(e),this.useStates(u)},a.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},a.prototype._mergeStates=function(t){for(var o,e={},u=0;u=0&&f.splice(d,1)}),this.animators.push(t),o&&o.animation.addAnimator(t),o&&o.wakeUp()},a.prototype.updateDuringAnimation=function(t){this.markRedraw()},a.prototype.stopAnimation=function(t,e){for(var o=this.animators,u=o.length,f=[],d=0;d0&&e.during&&f[0].during(function(S,k){e.during(k)});for(var b=0;b0||u.force&&!d.length){var V,j=void 0,Z=void 0,W=void 0;if(h)for(Z={},b&&(j={}),P=0;P=0&&(u.splice(f,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,o){var u=Ct(this._children,e);return u>=0&&this.replaceAt(o,u),this},t.prototype.replaceAt=function(e,o){var u=this._children,f=u[o];if(e&&e!==this&&e.parent!==this&&e!==f){u[o]=e,f.parent=null;var d=this.__zr;d&&f.removeSelfFromZr(d),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var o=this.__zr;o&&o!==e.__zr&&e.addSelfToZr(o),o&&o.refresh()},t.prototype.remove=function(e){var o=this.__zr,u=this._children,f=Ct(u,e);return f<0||(u.splice(f,1),e.parent=null,o&&e.removeSelfFromZr(o),o&&o.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,o=this.__zr,u=0;u0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},a.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},a.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},a.prototype.refreshHover=function(){this._needsRefreshHover=!0},a.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},a.prototype.resize=function(t){this.painter.resize((t=t||{}).width,t.height),this.handler.resize()},a.prototype.clearAnimation=function(){this.animation.clear()},a.prototype.getWidth=function(){return this.painter.getWidth()},a.prototype.getHeight=function(){return this.painter.getHeight()},a.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},a.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},a.prototype.on=function(t,e,o){return this.handler.on(t,e,o),this},a.prototype.off=function(t,e){this.handler.off(t,e)},a.prototype.trigger=function(t,e){this.handler.trigger(t,e)},a.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e0){if(a<=u)return d;if(a>=f)return h}else{if(a>=u)return d;if(a<=f)return h}else{if(a===u)return d;if(a===f)return h}return(a-u)/v*g+d}function Ie(a,t){switch(a){case"center":case"middle":a="50%";break;case"left":case"top":a="0%";break;case"right":case"bottom":a="100%"}return Ne(a)?function Pp(a){return a.replace(/^\s+|\s+$/g,"")}(a).match(/%$/)?parseFloat(a)/100*t:parseFloat(a):null==a?NaN:+a}function Mr(a,t,e){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),a=(+a).toFixed(t),e?a:+a}function Zi(a){return a.sort(function(t,e){return t-e}),a}function Xl(a){if(a=+a,isNaN(a))return 0;if(a>1e-14)for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(a*t)/t===a)return e;return CO(a)}function CO(a){var t=a.toString().toLowerCase(),e=t.indexOf("e"),o=e>0?+t.slice(e+1):0,u=e>0?e:t.length,f=t.indexOf(".");return Math.max(0,(f<0?0:u-1-f)-o)}function Ae(a,t){var e=Math.log,o=Math.LN10,u=Math.floor(e(a[1]-a[0])/o),f=Math.round(e(Math.abs(t[1]-t[0]))/o),d=Math.min(Math.max(-u+f,0),20);return isFinite(d)?d:20}function wO(a,t,e){if(!a[t])return 0;var o=Ys(a,function(S,k){return S+(isNaN(k)?0:k)},0);if(0===o)return 0;for(var u=Math.pow(10,e),f=Me(a,function(S){return(isNaN(S)?0:S)/o*u*100}),d=100*u,h=Me(f,function(S){return Math.floor(S)}),v=Ys(h,function(S,k){return S+k},0),g=Me(f,function(S,k){return S-h[k]});vm&&(m=g[b],y=b);++h[y],g[y]=0,++v}return h[t]/u}function MZ(a,t){var e=Math.max(Xl(a),Xl(t)),o=a+t;return e>20?o:Mr(o,e)}var SO=9007199254740991;function MO(a){var t=2*Math.PI;return(a%t+t)%t}function n0(a){return a>-1e-4&&a<1e-4}var kZ=/^(?:(\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 ms(a){if(a instanceof Date)return a;if(Ne(a)){var t=kZ.exec(a);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return null==a?new Date(NaN):new Date(Math.round(a))}function Op(a){return Math.pow(10,IM(a))}function IM(a){if(0===a)return 0;var t=Math.floor(Math.log(a)/Math.LN10);return a/Math.pow(10,t)>=10&&t++,t}function hi(a,t){var e=IM(a),o=Math.pow(10,e),u=a/o;return a=(t?u<1.5?1:u<2.5?2:u<4?3:u<7?5:10:u<1?1:u<2?2:u<3?3:u<5?5:10)*o,e>=-20?+a.toFixed(e<0?-e:0):a}function Ip(a,t){var e=(a.length-1)*t+1,o=Math.floor(e),u=+a[o-1],f=e-o;return f?u+f*(a[o]-u):u}function bd(a){a.sort(function(v,g){return h(v,g,0)?-1:1});for(var t=-1/0,e=1,o=0;o=0||f&&Ct(f,v)<0)){var g=o.getShallow(v,t);null!=g&&(d[a[h][0]]=g)}}return d}}var xZ=ol([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),RO=function(){function a(){}return a.prototype.getAreaStyle=function(t,e){return xZ(this,t,e)},a}(),UM=new go(50);function TZ(a){if("string"==typeof a){var t=UM.get(a);return t&&t.image}return a}function jM(a,t,e,o,u){if(a){if("string"==typeof a){if(t&&t.__zrImageSrc===a||!e)return t;var f=UM.get(a),d={hostEl:e,cb:o,cbPayload:u};if(f)!s0(t=f.image)&&f.pending.push(d);else{var h=Ws.loadImage(a,LO,LO);h.__zrImageSrc=a,UM.put(a,h.__cachedImgObj={image:h,pending:[d]})}return t}return a}return t}function LO(){var a=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=d;v++)h-=d;var g=xa(e,t);return g>h&&(e="",g=0),h=a-g,u.ellipsis=e,u.ellipsisWidth=g,u.contentWidth=h,u.containerWidth=a,u}function FO(a,t){var e=t.containerWidth,o=t.font,u=t.contentWidth;if(!e)return"";var f=xa(a,o);if(f<=e)return a;for(var d=0;;d++){if(f<=u||d>=t.maxIterations){a+=t.ellipsis;break}var h=0===d?Fz(a,u,t.ascCharWidth,t.cnCharWidth):f>0?Math.floor(a.length*u/f):0;f=xa(a=a.substr(0,h),o)}return""===a&&(a=t.placeholder),a}function Fz(a,t,e,o){for(var u=0,f=0,d=a.length;f0&&S+o.accumWidth>o.width&&(m=t.split("\n"),g=!0),o.accumWidth=S}else{var k=VO(t,v,o.width,o.breakAll,o.accumWidth);o.accumWidth=k.accumWidth+C,y=k.linesWidths,m=k.lines}}else m=t.split("\n");for(var D=0;D=33&&t<=383}(a)||!!Nz[a]}function VO(a,t,e,o,u){for(var f=[],d=[],h="",v="",g=0,m=0,y=0;ye:u+m+C>e)?m?(h||v)&&(S?(h||(h=v,v="",m=g=0),f.push(h),d.push(m-g),v+=b,h="",m=g+=C):(v&&(h+=v,v="",g=0),f.push(h),d.push(m),h=b,m=C)):S?(f.push(v),d.push(g),v=b,g=C):(f.push(b),d.push(C)):(m+=C,S?(v+=b,g+=C):(v&&(h+=v,v="",g=0),h+=b))}else v&&(h+=v,m+=g),f.push(h),d.push(m),h="",v="",g=0,m=0}return!f.length&&!h&&(h=a,v="",g=0),v&&(h+=v),h&&(f.push(h),d.push(m)),1===f.length&&(m+=u),{accumWidth:m,lines:f,linesWidths:d}}var WM="__zr_style_"+Math.round(10*Math.random()),Td={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ta={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Td[WM]=!0;var sl=["z","z2","invisible"],HO=["invisible"],Vz=function(a){function t(e){return a.call(this,e)||this}return lr(t,a),t.prototype._init=function(e){for(var o=Zt(e),u=0;u1e-4)return h[0]=a-e,h[1]=t-o,v[0]=a+e,void(v[1]=t+o);if(KM[0]=XM(u)*e+a,KM[1]=ZM(u)*o+t,d0[0]=XM(f)*e+a,d0[1]=ZM(f)*o+t,g(h,KM,d0),m(v,KM,d0),(u%=Ad)<0&&(u+=Ad),(f%=Ad)<0&&(f+=Ad),u>f&&!d?f+=Ad:uu&&(Hc[0]=XM(C)*e+a,Hc[1]=ZM(C)*o+t,g(h,Hc,h),m(v,Hc,v))}var er={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ed=[],Lu=[],ys=[],$l=[],Ql=[],Jl=[],h0=Math.min,QM=Math.max,Pd=Math.cos,Od=Math.sin,Fu=Math.abs,p0=Math.PI,ul=2*p0,v0="undefined"!=typeof Float32Array,Id=[];function JM(a){return Math.round(a/p0*1e8)/1e8%2*p0}function br(a,t){var e=JM(a[0]);e<0&&(e+=ul);var u=a[1];u+=e-a[0],!t&&u-e>=ul?u=e+ul:t&&e-u>=ul?u=e-ul:!t&&e>u?u=e+(ul-JM(e-u)):t&&e0&&(this._ux=Fu(o/xp/t)||0,this._uy=Fu(o/xp/e)||0)},a.prototype.setDPR=function(t){this.dpr=t},a.prototype.setContext=function(t){this._ctx=t},a.prototype.getContext=function(){return this._ctx},a.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},a.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},a.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(er.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},a.prototype.lineTo=function(t,e){var o=Fu(t-this._xi),u=Fu(e-this._yi),f=o>this._ux||u>this._uy;if(this.addData(er.L,t,e),this._ctx&&f&&this._ctx.lineTo(t,e),f)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var d=o*o+u*u;d>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=d)}return this},a.prototype.bezierCurveTo=function(t,e,o,u,f,d){return this._drawPendingPt(),this.addData(er.C,t,e,o,u,f,d),this._ctx&&this._ctx.bezierCurveTo(t,e,o,u,f,d),this._xi=f,this._yi=d,this},a.prototype.quadraticCurveTo=function(t,e,o,u){return this._drawPendingPt(),this.addData(er.Q,t,e,o,u),this._ctx&&this._ctx.quadraticCurveTo(t,e,o,u),this._xi=o,this._yi=u,this},a.prototype.arc=function(t,e,o,u,f,d){return this._drawPendingPt(),Id[0]=u,Id[1]=f,br(Id,d),this.addData(er.A,t,e,o,o,u=Id[0],(f=Id[1])-u,0,d?0:1),this._ctx&&this._ctx.arc(t,e,o,u,f,d),this._xi=Pd(f)*o+t,this._yi=Od(f)*o+e,this},a.prototype.arcTo=function(t,e,o,u,f){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,o,u,f),this},a.prototype.rect=function(t,e,o,u){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,o,u),this.addData(er.R,t,e,o,u),this},a.prototype.closePath=function(){this._drawPendingPt(),this.addData(er.Z);var t=this._ctx,e=this._x0,o=this._y0;return t&&t.closePath(),this._xi=e,this._yi=o,this},a.prototype.fill=function(t){t&&t.fill(),this.toStatic()},a.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},a.prototype.len=function(){return this._len},a.prototype.setData=function(t){var e=t.length;(!this.data||this.data.length!==e)&&v0&&(this.data=new Float32Array(e));for(var o=0;om.length&&(this._expandData(),m=this.data);for(var y=0;y0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},a.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},a.prototype.getBoundingRect=function(){ys[0]=ys[1]=Ql[0]=Ql[1]=Number.MAX_VALUE,$l[0]=$l[1]=Jl[0]=Jl[1]=-Number.MAX_VALUE;var d,t=this.data,e=0,o=0,u=0,f=0;for(d=0;do||Fu(E)>u||b===e-1)&&(k=Math.sqrt(T*T+E*E),f=D,d=x);break;case er.C:var P=t[b++],V=t[b++],x=(D=t[b++],t[b++]),N=t[b++],H=t[b++];k=fi(f,d,P,V,D,x,N,H,10),f=N,d=H;break;case er.Q:k=bp(f,d,P=t[b++],V=t[b++],D=t[b++],x=t[b++],10),f=D,d=x;break;case er.A:var j=t[b++],Z=t[b++],W=t[b++],X=t[b++],J=t[b++],ee=t[b++],re=ee+J;b+=1,b++,S&&(h=Pd(J)*W+j,v=Od(J)*X+Z),k=QM(W,X)*h0(ul,Math.abs(ee)),f=Pd(re)*W+j,d=Od(re)*X+Z;break;case er.R:h=f=t[b++],v=d=t[b++],k=2*t[b++]+2*t[b++];break;case er.Z:var T=h-f;E=v-d,k=Math.sqrt(T*T+E*E),f=h,d=v}k>=0&&(g[y++]=k,m+=k)}return this._pathLen=m,m},a.prototype.rebuildPath=function(t,e){var h,v,g,m,y,b,S,T,P,V,o=this.data,u=this._ux,f=this._uy,d=this._len,C=e<1,D=0,x=0,E=0;if(!C||(this._pathSegLen||this._calculateLength(),S=this._pathSegLen,T=e*this._pathLen))e:for(var N=0;N0&&(t.lineTo(P,V),E=0),H){case er.M:h=g=o[N++],v=m=o[N++],t.moveTo(g,m);break;case er.L:y=o[N++],b=o[N++];var Z=Fu(y-g),W=Fu(b-m);if(Z>u||W>f){if(C){if(D+(X=S[x++])>T){t.lineTo(g*(1-(J=(T-D)/X))+y*J,m*(1-J)+b*J);break e}D+=X}t.lineTo(y,b),g=y,m=b,E=0}else{var ee=Z*Z+W*W;ee>E&&(P=y,V=b,E=ee)}break;case er.C:var re=o[N++],ie=o[N++],ce=o[N++],me=o[N++],pe=o[N++],_e=o[N++];if(C){if(D+(X=S[x++])>T){Fr(g,re,ce,pe,J=(T-D)/X,Ed),Fr(m,ie,me,_e,J,Lu),t.bezierCurveTo(Ed[1],Lu[1],Ed[2],Lu[2],Ed[3],Lu[3]);break e}D+=X}t.bezierCurveTo(re,ie,ce,me,pe,_e),g=pe,m=_e;break;case er.Q:if(re=o[N++],ie=o[N++],ce=o[N++],me=o[N++],C){if(D+(X=S[x++])>T){ql(g,re,ce,J=(T-D)/X,Ed),ql(m,ie,me,J,Lu),t.quadraticCurveTo(Ed[1],Lu[1],Ed[2],Lu[2]);break e}D+=X}t.quadraticCurveTo(re,ie,ce,me),g=ce,m=me;break;case er.A:var Pe=o[N++],Be=o[N++],He=o[N++],nt=o[N++],ht=o[N++],In=o[N++],Bn=o[N++],Tt=!o[N++],pt=He>nt?He:nt,Vt=Fu(He-nt)>.001,Lt=ht+In,Je=!1;if(C&&(D+(X=S[x++])>T&&(Lt=ht+In*(T-D)/X,Je=!0),D+=X),Vt&&t.ellipse?t.ellipse(Pe,Be,He,nt,Bn,ht,Lt,Tt):t.arc(Pe,Be,pt,ht,Lt,Tt),Je)break e;j&&(h=Pd(ht)*He+Pe,v=Od(ht)*nt+Be),g=Pd(Lt)*He+Pe,m=Od(Lt)*nt+Be;break;case er.R:h=g=o[N],v=m=o[N+1],y=o[N++],b=o[N++];var kt=o[N++],sr=o[N++];if(C){if(D+(X=S[x++])>T){var Yt=T-D;t.moveTo(y,b),t.lineTo(y+h0(Yt,kt),b),(Yt-=kt)>0&&t.lineTo(y+kt,b+h0(Yt,sr)),(Yt-=sr)>0&&t.lineTo(y+QM(kt-Yt,0),b+sr),(Yt-=kt)>0&&t.lineTo(y,b+QM(sr-Yt,0));break e}D+=X}t.rect(y,b,kt,sr);break;case er.Z:if(C){var X;if(D+(X=S[x++])>T){var J;t.lineTo(g*(1-(J=(T-D)/X))+h*J,m*(1-J)+v*J);break e}D+=X}t.closePath(),g=h,m=v}}},a.prototype.clone=function(){var t=new a,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},a.CMD=er,a.initDefaultProps=function(){var t=a.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),a}(),eu=Xi;function Qt(a,t,e,o,u,f,d){if(0===u)return!1;var v,h=u;if(d>t+h&&d>o+h||da+h&&f>e+h||ft+y&&m>o+y&&m>f+y&&m>h+y||ma+y&&g>e+y&&g>u+y&&g>d+y||gt+g&&v>o+g&&v>f+g||va+g&&h>e+g&&h>u+g||he||m+gu&&(u+=_m);var b=Math.atan2(v,h);return b<0&&(b+=_m),b>=o&&b<=u||b+_m>=o&&b+_m<=u}function Gc(a,t,e,o,u,f){if(f>t&&f>o||fu?h:0}var Rd=eu.CMD,cl=2*Math.PI,Aa=[-1,-1,-1],Go=[-1,-1];function Ea(){var a=Go[0];Go[0]=Go[1],Go[1]=a}function ym(a,t,e,o,u,f,d,h,v,g){if(g>t&&g>o&&g>f&&g>h||g1&&Ea(),C=xt(t,o,f,h,Go[0]),b>1&&(S=xt(t,o,f,h,Go[1]))),y+=2===b?Dt&&h>o&&h>f||h=0&&g<=1&&(u[v++]=g);else{var m=d*d-4*f*h;if(Ni(m))(g=-d/(2*f))>=0&&g<=1&&(u[v++]=g);else if(m>0){var g,y=Fi(m),b=(-d-y)/(2*f);(g=(-d+y)/(2*f))>=0&&g<=1&&(u[v++]=g),b>=0&&b<=1&&(u[v++]=b)}}return v}(t,o,f,h,Aa);if(0===v)return 0;var g=Yg(t,o,f);if(g>=0&&g<=1){for(var m=0,y=ti(t,o,f,g),b=0;be||h<-e)return 0;var v=Math.sqrt(e*e-h*h);Aa[0]=-v,Aa[1]=v;var g=Math.abs(o-u);if(g<1e-4)return 0;if(g>=cl-1e-4){o=0,u=cl;var m=f?1:-1;return d>=Aa[0]+a&&d<=Aa[1]+a?m:0}if(o>u){var y=o;o=u,u=y}o<0&&(o+=cl,u+=cl);for(var b=0,C=0;C<2;C++){var S=Aa[C];if(S+a>d){var k=Math.atan2(h,S);m=f?1:-1,k<0&&(k=cl+k),(k>=o&&k<=u||k+cl>=o&&k+cl<=u)&&(k>Math.PI/2&&k<1.5*Math.PI&&(m=-m),b+=m)}}return b}function YO(a,t,e,o,u){for(var b,C,f=a.data,d=a.len(),h=0,v=0,g=0,m=0,y=0,S=0;S1&&(e||(h+=Gc(v,g,m,y,o,u))),D&&(m=v=f[S],y=g=f[S+1]),k){case Rd.M:v=m=f[S++],g=y=f[S++];break;case Rd.L:if(e){if(Qt(v,g,f[S],f[S+1],t,o,u))return!0}else h+=Gc(v,g,f[S],f[S+1],o,u)||0;v=f[S++],g=f[S++];break;case Rd.C:if(e){if(UO(v,g,f[S++],f[S++],f[S++],f[S++],f[S],f[S+1],t,o,u))return!0}else h+=ym(v,g,f[S++],f[S++],f[S++],f[S++],f[S],f[S+1],o,u)||0;v=f[S++],g=f[S++];break;case Rd.Q:if(e){if(jO(v,g,f[S++],f[S++],f[S],f[S+1],t,o,u))return!0}else h+=tk(v,g,f[S++],f[S++],f[S],f[S+1],o,u)||0;v=f[S++],g=f[S++];break;case Rd.A:var x=f[S++],T=f[S++],E=f[S++],P=f[S++],V=f[S++],N=f[S++];S+=1;var H=!!(1-f[S++]);b=Math.cos(V)*E+x,C=Math.sin(V)*P+T,D?(m=b,y=C):h+=Gc(v,g,b,C,o,u);var j=(o-x)*P/E+x;if(e){if(Gz(x,T,P,V,V+N,H,t,j,u))return!0}else h+=Uz(x,T,P,V,V+N,H,j,u);v=Math.cos(V+N)*E+x,g=Math.sin(V+N)*P+T;break;case Rd.R:if(m=v=f[S++],y=g=f[S++],b=m+f[S++],C=y+f[S++],e){if(Qt(m,y,b,y,t,o,u)||Qt(b,y,b,C,t,o,u)||Qt(b,C,m,C,t,o,u)||Qt(m,C,m,y,t,o,u))return!0}else h+=Gc(b,y,b,C,o,u),h+=Gc(m,C,m,y,o,u);break;case Rd.Z:if(e){if(Qt(v,g,m,y,t,o,u))return!0}else h+=Gc(v,g,m,y,o,u);v=m,g=y}}return!e&&!function ek(a,t){return Math.abs(a-t)<1e-4}(g,y)&&(h+=Gc(v,g,m,y,o,u)||0),0!==h}var bm=rt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Td),Wz={style:rt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ta.style)},g0=Vo.concat(["invisible","culling","z","z2","zlevel","parent"]),Yz=function(a){function t(e){return a.call(this,e)||this}return lr(t,a),t.prototype.update=function(){var e=this;a.prototype.update.call(this);var o=this.style;if(o.decal){var u=this._decalEl=this._decalEl||new t;u.buildPath===t.prototype.buildPath&&(u.buildPath=function(v){e.buildPath(v,e.shape)}),u.silent=!0;var f=u.style;for(var d in o)f[d]!==o[d]&&(f[d]=o[d]);f.fill=o.fill?o.decal:null,f.decal=null,f.shadowColor=null,o.strokeFirst&&(f.stroke=null);for(var h=0;h.5?tm:o>.2?"#eee":bM}if(e)return bM}return tm},t.prototype.getInsideTextStroke=function(e){var o=this.style.fill;if(Ne(o)){var u=this.__zr;if(!(!u||!u.isDarkMode())==Gb(e,0)<.4)return o}},t.prototype.buildPath=function(e,o,u){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new eu(!1)},t.prototype.hasStroke=function(){var e=this.style,o=e.stroke;return!(null==o||"none"===o||!(e.lineWidth>0))},t.prototype.hasFill=function(){var o=this.style.fill;return null!=o&&"none"!==o},t.prototype.getBoundingRect=function(){var e=this._rect,o=this.style,u=!e;if(u){var f=!1;this.path||(f=!0,this.createPathProxy());var d=this.path;(f||4&this.__dirty)&&(d.beginPath(),this.buildPath(d,this.shape,!1),this.pathUpdated()),e=d.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var h=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||u){h.copy(e);var v=o.strokeNoScale?this.getLineScale():1,g=o.lineWidth;if(!this.hasFill()){var m=this.strokeContainThreshold;g=Math.max(g,null==m?4:m)}v>1e-10&&(h.width+=g/v,h.height+=g/v,h.x-=g/v/2,h.y-=g/v/2)}return h}return e},t.prototype.contain=function(e,o){var u=this.transformCoordToLocal(e,o),f=this.getBoundingRect(),d=this.style;if(f.contain(e=u[0],o=u[1])){var h=this.path;if(this.hasStroke()){var v=d.lineWidth,g=d.strokeNoScale?this.getLineScale():1;if(g>1e-10&&(this.hasFill()||(v=Math.max(v,this.strokeContainThreshold)),function jz(a,t,e,o){return YO(a,t,!0,e,o)}(h,v/g,e,o)))return!0}if(this.hasFill())return function qO(a,t,e){return YO(a,0,!1,t,e)}(h,e,o)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,o){"shape"===e?this.setShape(o):a.prototype.attrKV.call(this,e,o)},t.prototype.setShape=function(e,o){var u=this.shape;return u||(u=this.shape={}),"string"==typeof e?u[e]=o:ve(u,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(4&this.__dirty)},t.prototype.createStyle=function(e){return ji(bm,e)},t.prototype._innerSaveToNormal=function(e){a.prototype._innerSaveToNormal.call(this,e);var o=this._normalState;e.shape&&!o.shape&&(o.shape=ve({},this.shape))},t.prototype._applyStateObj=function(e,o,u,f,d,h){a.prototype._applyStateObj.call(this,e,o,u,f,d,h);var g,v=!(o&&f);if(o&&o.shape?d?f?g=o.shape:(g=ve({},u.shape),ve(g,o.shape)):(g=ve({},f?this.shape:u.shape),ve(g,o.shape)):v&&(g=u.shape),g)if(d){this.shape=ve({},this.shape);for(var m={},y=Zt(g),b=0;b0},t.prototype.hasFill=function(){var o=this.style.fill;return null!=o&&"none"!==o},t.prototype.createStyle=function(e){return ji(nk,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var o=e.text;null!=o?o+="":o="";var u=pd(o,e.font,e.textAlign,e.textBaseline);if(u.x+=e.x||0,u.y+=e.y||0,this.hasStroke()){var f=e.lineWidth;u.x-=f/2,u.y-=f/2,u.width+=f,u.height+=f}this._rect=u}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(_s);ZO.prototype.type="tspan";var Cm=ZO,rk=rt({x:0,y:0},Td),qz={style:rt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ta.style)},Vp=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return lr(t,a),t.prototype.createStyle=function(e){return ji(rk,e)},t.prototype._getSize=function(e){var o=this.style,u=o[e];if(null!=u)return u;var f=function Zz(a){return!!(a&&"string"!=typeof a&&a.width&&a.height)}(o.image)?o.image:this.__image;if(!f)return 0;var d="width"===e?"height":"width",h=o[d];return null==h?f[e]:f[e]/f[d]*h},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return qz},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new zt(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(_s);Vp.prototype.type="image";var Ki=Vp,Hp=Math.round;function XO(a,t,e){if(t){var o=t.x1,u=t.x2,f=t.y1,d=t.y2;a.x1=o,a.x2=u,a.y1=f,a.y2=d;var h=e&&e.lineWidth;return h&&(Hp(2*o)===Hp(2*u)&&(a.x1=a.x2=Uc(o,h,!0)),Hp(2*f)===Hp(2*d)&&(a.y1=a.y2=Uc(f,h,!0))),a}}function KO(a,t,e){if(t){var o=t.x,u=t.y,f=t.width,d=t.height;a.x=o,a.y=u,a.width=f,a.height=d;var h=e&&e.lineWidth;return h&&(a.x=Uc(o,h,!0),a.y=Uc(u,h,!0),a.width=Math.max(Uc(o+f,h,!1)-a.x,0===f?0:1),a.height=Math.max(Uc(u+d,h,!1)-a.y,0===d?0:1)),a}}function Uc(a,t,e){if(!t)return a;var o=Hp(2*a);return(o+Hp(t))%2==0?o/2:(o+(e?1:-1))/2}var Kz=function a(){this.x=0,this.y=0,this.width=0,this.height=0},$z={},$O=function(a){function t(e){return a.call(this,e)||this}return lr(t,a),t.prototype.getDefaultShape=function(){return new Kz},t.prototype.buildPath=function(e,o){var u,f,d,h;if(this.subPixelOptimize){var v=KO($z,o,this.style);u=v.x,f=v.y,d=v.width,h=v.height,v.r=o.r,o=v}else u=o.x,f=o.y,d=o.width,h=o.height;o.r?function Xz(a,t){var h,v,g,m,y,e=t.x,o=t.y,u=t.width,f=t.height,d=t.r;u<0&&(e+=u,u=-u),f<0&&(o+=f,f=-f),"number"==typeof d?h=v=g=m=d:d instanceof Array?1===d.length?h=v=g=m=d[0]:2===d.length?(h=g=d[0],v=m=d[1]):3===d.length?(h=d[0],v=m=d[1],g=d[2]):(h=d[0],v=d[1],g=d[2],m=d[3]):h=v=g=m=0,h+v>u&&(h*=u/(y=h+v),v*=u/y),g+m>u&&(g*=u/(y=g+m),m*=u/y),v+g>f&&(v*=f/(y=v+g),g*=f/y),h+m>f&&(h*=f/(y=h+m),m*=f/y),a.moveTo(e+h,o),a.lineTo(e+u-v,o),0!==v&&a.arc(e+u-v,o+v,v,-Math.PI/2,0),a.lineTo(e+u,o+f-g),0!==g&&a.arc(e+u-g,o+f-g,g,0,Math.PI/2),a.lineTo(e+m,o+f),0!==m&&a.arc(e+m,o+f-m,m,Math.PI/2,Math.PI),a.lineTo(e,o+h),0!==h&&a.arc(e+h,o+h,h,Math.PI,1.5*Math.PI)}(e,o):e.rect(u,f,d,h)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Xt);$O.prototype.type="rect";var fn=$O,QO={fill:"#000"},JO={style:rt({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},Ta.style)},eI=function(a){function t(e){var o=a.call(this)||this;return o.type="text",o._children=[],o._defaultStyle=QO,o.attr(e),o}return lr(t,a),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){a.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;eC&&g){var S=Math.floor(C/h);y=y.slice(0,S)}if(a&&f&&null!=m)for(var k=Dd(m,u,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),D=0;D0,J=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),ee=d.calculatedLineHeight,re=0;reh&&f0(e,a.substring(h,g),t,d),f0(e,v[2],t,d,v[1]),h=Np.lastIndex}hu){V>0?(T.tokens=T.tokens.slice(0,V),D(T,P,E),e.lines=e.lines.slice(0,x+1)):e.lines=e.lines.slice(0,x);break e}var J=H.width,ee=null==J||"auto"===J;if("string"==typeof J&&"%"===J.charAt(J.length-1))N.percentWidth=J,m.push(N),N.contentWidth=xa(N.text,W);else{if(ee){var re=H.backgroundColor,ie=re&&re.image;ie&&s0(ie=TZ(ie))&&(N.width=Math.max(N.width,ie.width*X/ie.height))}var ce=S&&null!=o?o-P:null;null!=ce&&ce=0&&"right"===(re=N[ee]).align;)this._placeToken(re,e,j,x,J,"right",E),Z-=re.width,J-=re.width,ee--;for(X+=(f-(X-D)-(T-J)-Z)/2;W<=ee;)this._placeToken(re=N[W],e,j,x,X+re.width/2,"center",E),X+=re.width,W++;x+=j}},t.prototype._placeToken=function(e,o,u,f,d,h,v){var g=o.rich[e.styleName]||{};g.text=e.text;var m=e.verticalAlign,y=f+u/2;"top"===m?y=f+e.height/2:"bottom"===m&&(y=f+u-e.height/2),!e.isLineHolder&&b0(g)&&this._renderBackground(g,o,"right"===h?d-e.width:"center"===h?d-e.width/2:d,y-e.height/2,e.width,e.height);var C=!!g.backgroundColor,S=e.textPadding;S&&(d=ak(d,h,S),y-=e.height/2-S[0]-e.innerHeight/2);var k=this._getOrCreateChild(Cm),D=k.createStyle();k.useStyle(D);var x=this._defaultStyle,T=!1,E=0,P=tI("fill"in g?g.fill:"fill"in o?o.fill:(T=!0,x.fill)),V=y0("stroke"in g?g.stroke:"stroke"in o?o.stroke:C||v||x.autoStroke&&!T?null:(E=2,x.stroke)),N=g.textShadowBlur>0||o.textShadowBlur>0;D.text=e.text,D.x=d,D.y=y,N&&(D.shadowBlur=g.textShadowBlur||o.textShadowBlur||0,D.shadowColor=g.textShadowColor||o.textShadowColor||"transparent",D.shadowOffsetX=g.textShadowOffsetX||o.textShadowOffsetX||0,D.shadowOffsetY=g.textShadowOffsetY||o.textShadowOffsetY||0),D.textAlign=h,D.textBaseline="middle",D.font=e.font||ho,D.opacity=Su(g.opacity,o.opacity,1),ik(D,g),V&&(D.lineWidth=Su(g.lineWidth,o.lineWidth,E),D.lineDash=Ft(g.lineDash,o.lineDash),D.lineDashOffset=o.lineDashOffset||0,D.stroke=V),P&&(D.fill=P);var H=e.contentWidth,j=e.contentHeight;k.setBoundingRect(new zt(Vc(D.x,H,D.textAlign),vd(D.y,j,D.textBaseline),H,j))},t.prototype._renderBackground=function(e,o,u,f,d,h){var k,D,T,v=e.backgroundColor,g=e.borderWidth,m=e.borderColor,y=v&&v.image,b=v&&!y,C=e.borderRadius,S=this;if(b||e.lineHeight||g&&m){(k=this._getOrCreateChild(fn)).useStyle(k.createStyle()),k.style.fill=null;var x=k.shape;x.x=u,x.y=f,x.width=d,x.height=h,x.r=C,k.dirtyShape()}if(b)(T=k.style).fill=v||null,T.fillOpacity=Ft(e.fillOpacity,1);else if(y){(D=this._getOrCreateChild(Ki)).onload=function(){S.dirtyStyle()};var E=D.style;E.image=v.image,E.x=u,E.y=f,E.width=d,E.height=h}g&&m&&((T=k.style).lineWidth=g,T.stroke=m,T.strokeOpacity=Ft(e.strokeOpacity,1),T.lineDash=e.borderDash,T.lineDashOffset=e.borderDashOffset||0,k.strokeContainThreshold=0,k.hasFill()&&k.hasStroke()&&(T.strokeFirst=!0,T.lineWidth*=2));var P=(k||D).style;P.shadowBlur=e.shadowBlur||0,P.shadowColor=e.shadowColor||"transparent",P.shadowOffsetX=e.shadowOffsetX||0,P.shadowOffsetY=e.shadowOffsetY||0,P.opacity=Su(e.opacity,o.opacity,1)},t.makeFont=function(e){var o="";return e4(e)&&(o=[e.fontStyle,e.fontWeight,Jz(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),o&&Io(o)||e.textFont||e.font},t}(_s),zp={left:!0,right:1,center:1},tu={top:1,bottom:1,middle:1},Qz=["fontStyle","fontWeight","fontSize","fontFamily"];function Jz(a){return"string"!=typeof a||-1===a.indexOf("px")&&-1===a.indexOf("rem")&&-1===a.indexOf("em")?isNaN(+a)?"12px":a+"px":a}function ik(a,t){for(var e=0;e=0,f=!1;if(a instanceof Xt){var d=Ld(a),h=u&&d.selectFill||d.normalFill,v=u&&d.selectStroke||d.normalStroke;if(jc(h)||jc(v)){var g=(o=o||{}).style||{};"inherit"===g.fill?(f=!0,o=ve({},o),(g=ve({},g)).fill=h):!jc(g.fill)&&jc(h)?(f=!0,o=ve({},o),(g=ve({},g)).fill=rI(h)):!jc(g.stroke)&&jc(v)&&(f||(o=ve({},o),g=ve({},g)),g.stroke=rI(v)),o.style=g}}if(o&&null==o.z2){f||(o=ve({},o));var m=a.z2EmphasisLift;o.z2=a.z2+(null!=m?m:10)}return o}(this,0,t,e);if("blur"===a)return function D0(a,t,e){var o=Ct(a.currentStates,t)>=0,u=a.style.opacity,f=o?null:function uk(a,t,e,o){for(var u=a.style,f={},d=0;d0){var v={dataIndex:h,seriesIndex:e.seriesIndex};null!=d&&(v.dataType=d),t.push(v)}})}),t}function Yc(a,t,e){Nd(a,!0),nu(a,Nu),vk(a,t,e)}function Yr(a,t,e,o){o?function u4(a){Nd(a,!1)}(a):Yc(a,t,e)}function vk(a,t,e){var o=vt(a);null!=t?(o.focus=t,o.blurScope=e):o.focus&&(o.focus=null)}var gk=["emphasis","blur","select"],c4={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function pa(a,t,e,o){e=e||"itemStyle";for(var u=0;u0){var S={duration:m.duration,delay:m.delay||0,easing:m.easing,done:f,force:!!f||!!d,setToFinal:!g,scope:a,during:d};h?t.animateFrom(e,S):t.animateTo(e,S)}else t.stopAnimation(),!h&&t.attr(e),d&&d(1),f&&f()}function Ut(a,t,e,o,u,f){Am("update",a,t,e,o,u,f)}function nr(a,t,e,o,u,f){Am("enter",a,t,e,o,u,f)}function Bd(a){if(!a.__zr)return!0;for(var t=0;t-1?"ZH":"EN";function zd(a,t){a=a.toUpperCase(),Ck[a]=new Kn(t),Im[a]=t}function Rm(a){return Ck[a]}zd("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:". "}}}}),zd("ZH",{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 Lm=36e5,Wo=24*Lm,wk=365*Wo,Ud={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}"},Qp="{yyyy}-{MM}-{dd}",Sk={year:"{yyyy}",month:"{yyyy}-{MM}",day:Qp,hour:Qp+" "+Ud.hour,minute:Qp+" "+Ud.minute,second:Qp+" "+Ud.second,millisecond:Ud.none},Jp=["year","month","day","hour","minute","second","millisecond"],yI=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Co(a,t){return"0000".substr(0,t-(a+="").length)+a}function Fm(a){switch(a){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return a}}function bI(a){return a===Fm(a)}function Nm(a,t,e,o){var u=ms(a),f=u[Xa(e)](),d=u[ev(e)]()+1,h=Math.floor((d-1)/4)+1,v=u[B0(e)](),g=u["get"+(e?"UTC":"")+"Day"](),m=u[V0(e)](),y=(m-1)%12+1,b=u[Mk(e)](),C=u[Bm(e)](),S=u[kk(e)](),D=(o instanceof Kn?o:Rm(o||_I)||function $p(){return Ck.EN}()).getModel("time"),x=D.get("month"),T=D.get("monthAbbr"),E=D.get("dayOfWeek"),P=D.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,f+"").replace(/{yy}/g,f%100+"").replace(/{Q}/g,h+"").replace(/{MMMM}/g,x[d-1]).replace(/{MMM}/g,T[d-1]).replace(/{MM}/g,Co(d,2)).replace(/{M}/g,d+"").replace(/{dd}/g,Co(v,2)).replace(/{d}/g,v+"").replace(/{eeee}/g,E[g]).replace(/{ee}/g,P[g]).replace(/{e}/g,g+"").replace(/{HH}/g,Co(m,2)).replace(/{H}/g,m+"").replace(/{hh}/g,Co(y+"",2)).replace(/{h}/g,y+"").replace(/{mm}/g,Co(b,2)).replace(/{m}/g,b+"").replace(/{ss}/g,Co(C,2)).replace(/{s}/g,C+"").replace(/{SSS}/g,Co(S,3)).replace(/{S}/g,S+"")}function SI(a,t){var e=ms(a),o=e[ev(t)]()+1,u=e[B0(t)](),f=e[V0(t)](),d=e[Mk(t)](),h=e[Bm(t)](),g=0===e[kk(t)](),m=g&&0===h,y=m&&0===d,b=y&&0===f,C=b&&1===u;return C&&1===o?"year":C?"month":b?"day":y?"hour":m?"minute":g?"second":"millisecond"}function MI(a,t,e){var o=Cn(a)?ms(a):a;switch(t=t||SI(a,e)){case"year":return o[Xa(e)]();case"half-year":return o[ev(e)]()>=6?1:0;case"quarter":return Math.floor((o[ev(e)]()+1)/4);case"month":return o[ev(e)]();case"day":return o[B0(e)]();case"half-day":return o[V0(e)]()/24;case"hour":return o[V0(e)]();case"minute":return o[Mk(e)]();case"second":return o[Bm(e)]();case"millisecond":return o[kk(e)]()}}function Xa(a){return a?"getUTCFullYear":"getFullYear"}function ev(a){return a?"getUTCMonth":"getMonth"}function B0(a){return a?"getUTCDate":"getDate"}function V0(a){return a?"getUTCHours":"getHours"}function Mk(a){return a?"getUTCMinutes":"getMinutes"}function Bm(a){return a?"getUTCSeconds":"getSeconds"}function kk(a){return a?"getUTCMilliseconds":"getMilliseconds"}function _4(a){return a?"setUTCFullYear":"setFullYear"}function H0(a){return a?"setUTCMonth":"setMonth"}function Dk(a){return a?"setUTCDate":"setDate"}function kI(a){return a?"setUTCHours":"setHours"}function DI(a){return a?"setUTCMinutes":"setMinutes"}function xI(a){return a?"setUTCSeconds":"setSeconds"}function xk(a){return a?"setUTCMilliseconds":"setMilliseconds"}function Tk(a){if(!RM(a))return Ne(a)?a:"-";var t=(a+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function z0(a,t){return a=(a||"").toLowerCase().replace(/-(.)/g,function(e,o){return o.toUpperCase()}),t&&a&&(a=a.charAt(0).toUpperCase()+a.slice(1)),a}var jd=Lg,y4=/([&<>"'])/g,TI={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ka(a){return null==a?"":(a+"").replace(y4,function(t,e){return TI[e]})}function Ak(a,t,e){function u(m){return m&&Io(m)?m:"-"}function f(m){return!(null==m||isNaN(m)||!isFinite(m))}var d="time"===t,h=a instanceof Date;if(d||h){var v=d?ms(a):a;if(!isNaN(+v))return Nm(v,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",e);if(h)return"-"}if("ordinal"===t)return QS(a)?u(a):Cn(a)&&f(a)?a+"":"-";var g=Iu(a);return f(g)?Tk(g):QS(a)?u(a):"boolean"==typeof a?a+"":"-"}var hl=["a","b","c","d","e","f","g"],Vm=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Ek(a,t,e){Ce(t)||(t=[t]);var o=t.length;if(!o)return"";for(var u=t[0].$vars||[],f=0;f':'':{renderMode:f,content:"{"+(e.markerId||"markerX")+"|} ",style:"subItem"===u?{width:4,height:4,borderRadius:2,backgroundColor:o}:{width:10,height:10,borderRadius:5,backgroundColor:o}}:""}function AI(a,t,e){("week"===a||"month"===a||"quarter"===a||"half-year"===a||"year"===a)&&(a="MM-dd\nyyyy");var o=ms(t),u=e?"getUTC":"get",f=o[u+"FullYear"](),d=o[u+"Month"]()+1,h=o[u+"Date"](),v=o[u+"Hours"](),g=o[u+"Minutes"](),m=o[u+"Seconds"](),y=o[u+"Milliseconds"]();return a.replace("MM",Co(d,2)).replace("M",d).replace("yyyy",f).replace("yy",f%100+"").replace("dd",Co(h,2)).replace("d",h).replace("hh",Co(v,2)).replace("h",v).replace("mm",Co(g,2)).replace("m",g).replace("ss",Co(m,2)).replace("s",m).replace("SSS",Co(y,3))}function w4(a){return a&&a.charAt(0).toUpperCase()+a.substr(1)}function Wd(a,t){return t=t||"transparent",Ne(a)?a:Ke(a)&&a.colorStops&&(a.colorStops[0]||{}).color||t}function G0(a,t){if("_blank"===t||"blank"===t){var e=window.open();e.opener=null,e.location.href=a}else window.open(a,t)}var tv=q,EI=["left","right","top","bottom","width","height"],Yd=[["width","left","right"],["height","top","bottom"]];function nv(a,t,e,o,u){var f=0,d=0;null==o&&(o=1/0),null==u&&(u=1/0);var h=0;t.eachChild(function(v,g){var C,S,m=v.getBoundingRect(),y=t.childAt(g+1),b=y&&y.getBoundingRect();if("horizontal"===a){var k=m.width+(b?-b.x+m.x:0);(C=f+k)>o||v.newline?(f=0,C=k,d+=h+e,h=m.height):h=Math.max(h,m.height)}else{var D=m.height+(b?-b.y+m.y:0);(S=d+D)>u||v.newline?(f+=h+e,d=0,S=D,h=m.width):h=Math.max(h,m.width)}v.newline||(v.x=f,v.y=d,v.markRedraw(),"horizontal"===a?f=C+e:d=S+e)})}var Hu=nv;function oi(a,t,e){e=jd(e||0);var o=t.width,u=t.height,f=Ie(a.left,o),d=Ie(a.top,u),h=Ie(a.right,o),v=Ie(a.bottom,u),g=Ie(a.width,o),m=Ie(a.height,u),y=e[2]+e[0],b=e[1]+e[3],C=a.aspect;switch(isNaN(g)&&(g=o-h-b-f),isNaN(m)&&(m=u-v-y-d),null!=C&&(isNaN(g)&&isNaN(m)&&(C>o/u?g=.8*o:m=.8*u),isNaN(g)&&(g=C*m),isNaN(m)&&(m=g/C)),isNaN(f)&&(f=o-h-g-b),isNaN(d)&&(d=u-v-m-y),a.left||a.right){case"center":f=o/2-g/2-e[3];break;case"right":f=o-g-b}switch(a.top||a.bottom){case"middle":case"center":d=u/2-m/2-e[0];break;case"bottom":d=u-m-y}f=f||0,d=d||0,isNaN(g)&&(g=o-b-f-(h||0)),isNaN(m)&&(m=u-y-d-(v||0));var S=new zt(f+e[3],d+e[0],g,m);return S.margin=e,S}function Ok(a,t,e,o,u,f){var g,d=!u||!u.hv||u.hv[0],h=!u||!u.hv||u.hv[1],v=u&&u.boundingMode||"all";if((f=f||a).x=a.x,f.y=a.y,!d&&!h)return!1;if("raw"===v)g="group"===a.type?new zt(0,0,+t.width||0,+t.height||0):a.getBoundingRect();else if(g=a.getBoundingRect(),a.needLocalTransform()){var m=a.getLocalTransform();(g=g.clone()).applyTransform(m)}var y=oi(rt({width:g.width,height:g.height},t),e,o),b=d?y.x-g.x:0,C=h?y.y-g.y:0;return"raw"===v?(f.x=b,f.y=C):(f.x+=b,f.y+=C),f===a&&a.markRedraw(),!0}function qd(a){var t=a.layoutMode||a.constructor.layoutMode;return Ke(t)?t:t?{type:t}:null}function Zd(a,t,e){var o=e&&e.ignoreSize;!Ce(o)&&(o=[o,o]);var u=d(Yd[0],0),f=d(Yd[1],1);function d(m,y){var b={},C=0,S={},k=0;if(tv(m,function(E){S[E]=a[E]}),tv(m,function(E){h(t,E)&&(b[E]=S[E]=t[E]),v(b,E)&&C++,v(S,E)&&k++}),o[y])return v(t,m[1])?S[m[2]]=null:v(t,m[2])&&(S[m[1]]=null),S;if(2===k||!C)return S;if(C>=2)return b;for(var x=0;x=0;v--)h=Dt(h,u[v],!0);o.defaultOption=h}return o.defaultOption},t.prototype.getReferringComponents=function(e,o){var f=e+"Id";return ge(this.ecModel,e,{index:this.get(e+"Index",!0),id:this.get(f,!0)},o)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=((e=t.prototype).type="component",e.id="",e.name="",e.mainType="",e.subType="",void(e.componentIndex=0)),t;var e}(Kn);a0(Xd,Kn),Ru(Xd),function gI(a){var t={};a.registerSubTypeDefaulter=function(e,o){var u=ai(e);t[u.main]=o},a.determineSubType=function(e,o){var u=o.type;if(!u){var f=ai(e).main;a.hasSubTypes(e)&&t[f]&&(u=t[f](o))}return u}}(Xd),function bk(a,t){function o(f,d){return f[d]||(f[d]={predecessor:[],successor:[]}),f[d]}a.topologicalTravel=function(f,d,h,v){if(f.length){var g=function e(f){var d={},h=[];return q(f,function(v){var g=o(d,v),y=function u(f,d){var h=[];return q(f,function(v){Ct(d,v)>=0&&h.push(v)}),h}(g.originalDeps=t(v),f);g.entryCount=y.length,0===g.entryCount&&h.push(v),q(y,function(b){Ct(g.predecessor,b)<0&&g.predecessor.push(b);var C=o(d,b);Ct(C.successor,b)<0&&C.successor.push(v)})}),{graph:d,noEntryList:h}}(d),m=g.graph,y=g.noEntryList,b={};for(q(f,function(T){b[T]=!0});y.length;){var C=y.pop(),S=m[C],k=!!b[C];k&&(h.call(v,C,S.originalDeps.slice()),delete b[C]),q(S.successor,k?x:D)}q(b,function(){throw new Error("")})}function D(T){m[T].entryCount--,0===m[T].entryCount&&y.push(T)}function x(T){b[T]=!0,D(T)}}}(Xd,function II(a){var t=[];return q(Xd.getClassesByMainType(a),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=Me(t,function(e){return ai(e).main}),"dataset"!==a&&Ct(t,"dataset")<=0&&t.unshift("dataset"),t});var sn=Xd,au="";"undefined"!=typeof navigator&&(au=navigator.platform||"");var zu="rgba(0, 0, 0, 0.2)",S4={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:zu,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:zu,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:zu,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:zu,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:zu,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:zu,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:au.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},RI=$e(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),pl="original",Qi="arrayRows",Yo="objectRows",Cs="keyedColumns",qo="typedArray",LI="unknown",ws="column",Kd="row",Rk=Sn();function U0(a,t,e){var o={},u=Fk(t);if(!u||!a)return o;var m,y,f=[],d=[],v=Rk(t.ecModel).datasetMap,g=u.uid+"_"+e.seriesLayoutBy;q(a=a.slice(),function(k,D){var x=Ke(k)?k:a[D]={name:k};"ordinal"===x.type&&null==m&&(m=D,y=S(x)),o[x.name]=[]});var b=v.get(g)||v.set(g,{categoryWayDim:y,valueWayDim:0});function C(k,D,x){for(var T=0;Tt)return a[o];return a[e-1]}(o,d):e;if((m=m||e)&&m.length){var y=m[v];return u&&(g[u]=y),h.paletteIdx=(v+1)%m.length,y}}var j0,av,VI,T4="\0_ec_inner",HI=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return de(t,a),t.prototype.init=function(e,o,u,f,d,h){f=f||{},this.option=null,this._theme=new Kn(f),this._locale=new Kn(d),this._optionManager=h},t.prototype.setOption=function(e,o,u){var f=W0(o);this._optionManager.setOption(e,u,f),this._resetOption(null,f)},t.prototype.resetOption=function(e,o){return this._resetOption(e,W0(o))},t.prototype._resetOption=function(e,o){var u=!1,f=this._optionManager;if(!e||"recreate"===e){var d=f.mountOption("recreate"===e);this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(d,o)):VI(this,d),u=!0}if(("timeline"===e||"media"===e)&&this.restoreData(),!e||"recreate"===e||"timeline"===e){var h=f.getTimelineOption(this);h&&(u=!0,this._mergeOption(h,o))}if(!e||"recreate"===e||"media"===e){var v=f.getMediaOption(this);v.length&&q(v,function(g){u=!0,this._mergeOption(g,o)},this)}return u},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,o){var u=this.option,f=this._componentsMap,d=this._componentsCount,h=[],v=$e(),g=o&&o.replaceMergeMainTypeMap;(function M4(a){Rk(a).datasetMap=$e()})(this),q(e,function(y,b){null!=y&&(sn.hasClass(b)?b&&(h.push(b),v.set(b,!0)):u[b]=null==u[b]?ot(y):Dt(u[b],y,!0))}),g&&g.each(function(y,b){sn.hasClass(b)&&!v.get(b)&&(h.push(b),v.set(b,!0))}),sn.topologicalTravel(h,sn.getAllClassMainTypes(),function m(y){var b=function iv(a,t,e){var o=Bk.get(t);if(!o)return e;var u=o(a);return u?e.concat(u):e}(this,y,Xn(e[y])),C=f.get(y),k=yo(C,b,C?g&&g.get(y)?"replaceMerge":"normalMerge":"replaceAll");(function BM(a,t,e){q(a,function(o){var u=o.newOption;Ke(u)&&(o.keyInfo.mainType=t,o.keyInfo.subType=function r0(a,t,e,o){return t.type?t.type:e?e.subType:o.determineSubType(a,t)}(t,u,o.existing,e))})})(k,y,sn),u[y]=null,f.set(y,null),d.set(y,0);var E,D=[],x=[],T=0;q(k,function(V,N){var H=V.existing,j=V.newOption;if(j){var W=sn.getClass(y,V.keyInfo.subType,!("series"===y));if(!W)return;if("tooltip"===y){if(E)return;E=!0}if(H&&H.constructor===W)H.name=V.keyInfo.name,H.mergeOption(j,this),H.optionUpdated(j,!1);else{var ee=ve({componentIndex:N},V.keyInfo);ve(H=new W(j,this,this,ee),ee),V.brandNew&&(H.__requireNewView=!0),H.init(j,this,this),H.optionUpdated(null,!0)}}else H&&(H.mergeOption({},this),H.optionUpdated({},!1));H?(D.push(H.option),x.push(H),T++):(D.push(void 0),x.push(void 0))},this),u[y]=D,f.set(y,x),d.set(y,T),"series"===y&&j0(this)},this),this._seriesIndices||j0(this)},t.prototype.getOption=function(){var e=ot(this.option);return q(e,function(o,u){if(sn.hasClass(u)){for(var f=Xn(o),d=f.length,h=!1,v=d-1;v>=0;v--)f[v]&&!hm(f[v])?h=!0:(f[v]=null,!h&&d--);f.length=d,e[u]=f}}),delete e[T4],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,o){var u=this._componentsMap.get(e);if(u){var f=u[o||0];if(f)return f;if(null==o)for(var d=0;d=t:"max"===e?a<=t:a===t})(o[g],f,v)||(u=!1)}}),u}var Re=WI,vl=q,Qd=Ke,ZI=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Gk(a){var t=a&&a.itemStyle;if(t)for(var e=0,o=ZI.length;e=0;k--){var D=a[k];if(h||(C=D.data.rawIndexOf(D.stackedByDimension,b)),C>=0){var x=D.data.getByRawIndex(D.stackResultDimension,C);if(y>=0&&x>0||y<=0&&x<0){y=MZ(y,x),S=x;break}}}return o[0]=y,o[1]=S,o})})}var Gu=function a(t){this.data=t.data||(t.sourceFormat===Cs?{}:[]),this.sourceFormat=t.sourceFormat||LI,this.seriesLayoutBy=t.seriesLayoutBy||ws,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var o=0;oD&&(D=P)}S[0]=k,S[1]=D}},u=function(){return this._data?this._data.length/this._dimSize:0};function f(d){for(var h=0;h=0&&(k=d.interpolatedValue[D])}return null!=k?k+"":""}):void 0},a.prototype.getRawValue=function(t,e){return uv(this.getData(e),t)},a.prototype.formatTooltip=function(t,e,o){},a}();function H4(a){var t,e;return Ke(a)?a.type&&(e=a):t=a,{text:t,frag:e}}function X0(a){return new HZ(a)}var HZ=function(){function a(t){this._reset=(t=t||{}).reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return a.prototype.perform=function(t){var f,e=this._upstream,o=t&&t.skip;if(this._dirty&&e){var u=this.context;u.data=u.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!o&&(f=this._plan(this.context));var y,d=m(this._modBy),h=this._modDataCount||0,v=m(t&&t.modBy),g=t&&t.modDataCount||0;function m(T){return!(T>=1)&&(T=1),T}(d!==v||h!==g)&&(f="reset"),(this._dirty||"reset"===f)&&(this._dirty=!1,y=this._doReset(o)),this._modBy=v,this._modDataCount=g;var b=t&&t.step;if(this._dueEnd=e?e._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var C=this._dueIndex,S=Math.min(null!=b?this._dueIndex+b:1/0,this._dueEnd);if(!o&&(y||C1&&o>0?h:d}};return f;function d(){return t=a?null:ve},gte:function(t,e){return t>=e}},q4=function(){function a(t,e){Cn(e)||Pn(""),this._opFn=Y4[t],this._rvalFloat=Iu(e)}return a.prototype.evaluate=function(t){return Cn(t)?this._opFn(t,this._rvalFloat):this._opFn(Iu(t),this._rvalFloat)},a}(),Xk=function(){function a(t,e){var o="desc"===t;this._resultLT=o?1:-1,null==e&&(e=o?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return a.prototype.evaluate=function(t,e){var o=Cn(t)?t:Iu(t),u=Cn(e)?e:Iu(e),f=isNaN(o),d=isNaN(u);if(f&&(o=this._incomparable),d&&(u=this._incomparable),f&&d){var h=Ne(t),v=Ne(e);h&&(o=v?t:0),v&&(u=h?e:0)}return ou?-this._resultLT:0},a}(),Z4=function(){function a(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Iu(e)}return a.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var o=typeof t;o!==this._rvalTypeof&&("number"===o||"number"===this._rvalTypeof)&&(e=Iu(t)===this._rvalFloat)}return this._isEQ?e:!e},a}();function dR(a,t){return"eq"===a||"ne"===a?new Z4("eq"===a,t):je(Y4,a)?new q4(a,t):null}var hR=function(){function a(){}return a.prototype.getRawData=function(){throw new Error("not supported")},a.prototype.getRawDataItem=function(t){throw new Error("not supported")},a.prototype.cloneRawData=function(){},a.prototype.getDimensionInfo=function(t){},a.prototype.cloneAllDimensionInfo=function(){},a.prototype.count=function(){},a.prototype.retrieveValue=function(t,e){},a.prototype.retrieveValueFromItem=function(t,e){},a.prototype.convertValue=function(t,e){return sf(t,e)},a}();function jZ(a){return Qk(a.sourceFormat)||Pn(""),a.data}function WZ(a){var t=a.sourceFormat,e=a.data;if(Qk(t)||Pn(""),t===Qi){for(var u=[],f=0,d=e.length;f65535?B:Se}function Wm(a){var t=a.constructor;return t===Array?a.slice():new t(a)}function Jk(a,t,e,o,u){var f=Rn[e||"float"];if(u){var d=a[t],h=d&&d.length;if(h!==o){for(var v=new f(o),g=0;gD[1]&&(D[1]=k)}return this._rawCount=this._count=v,{start:h,end:v}},a.prototype._initDataFromProvider=function(t,e,o){for(var u=this._provider,f=this._chunks,d=this._dimensions,h=d.length,v=this._rawExtent,g=Me(d,function(T){return T.property}),m=0;mx[1]&&(x[1]=D)}}!u.persistent&&u.clean&&u.clean(),this._rawCount=this._count=e,this._extent=[]},a.prototype.count=function(){return this._count},a.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,o=e[t];if(null!=o&&ot))return d;f=d-1}}return-1},a.prototype.indicesOfNearest=function(t,e,o){var f=this._chunks[t],d=[];if(!f)return d;null==o&&(o=1/0);for(var h=1/0,v=-1,g=0,m=0,y=this.count();m=0&&v<0)&&(h=S,v=C,g=0),C===v&&(d[g++]=m))}return d.length=g,d},a.prototype.getIndices=function(){var t,e=this._indices;if(e){var u=this._count;if((o=e.constructor)===Array){t=new o(u);for(var f=0;f=y&&T<=b||isNaN(T))&&(v[g++]=k),k++;S=!0}else if(2===f){D=C[u[0]];var E=C[u[1]],P=t[u[1]][0],V=t[u[1]][1];for(x=0;x=y&&T<=b||isNaN(T))&&(N>=P&&N<=V||isNaN(N))&&(v[g++]=k),k++}S=!0}}if(!S)if(1===f)for(x=0;x=y&&T<=b||isNaN(T))&&(v[g++]=H)}else for(x=0;xt[W][1])&&(j=!1)}j&&(v[g++]=e.getRawIndex(x))}return gx[1]&&(x[1]=D)}}},a.prototype.lttbDownSample=function(t,e){var m,y,b,o=this.clone([t],!0),f=o._chunks[t],d=this.count(),h=0,v=Math.floor(1/e),g=this.getRawIndex(0),C=new($a(this._rawCount))(Math.min(2*(Math.ceil(d/v)+2),d));C[h++]=g;for(var S=1;Sm&&(m=y,b=P)}X>0&&Xm-S&&(h.length=v=m-S);for(var k=0;ky[1]&&(y[1]=x),b[C++]=T}return f._count=C,f._indices=b,f._updateGetRawIdx(),f},a.prototype.each=function(t,e){if(this._count)for(var o=t.length,u=this._chunks,f=0,d=this.count();fv&&(v=y)}return this._extent[t]=d=[h,v],d},a.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var o=[],u=this._chunks,f=0;f=0?this._indices[t]:-1},a.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},a.internalField=function(){function t(e,o,u,f){return sf(e[f],this._dimensions[f])}On={arrayRows:t,objectRows:function(o,u,f,d){return sf(o[u],this._dimensions[d])},keyedColumns:t,original:function(o,u,f,d){var h=o&&(null==o.value?o:o.value);return sf(h instanceof Array?h[d]:h,this._dimensions[d])},typedArray:function(o,u,f,d){return o[d]}}}(),a}(),ne=eD,cv=function(){function a(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return a.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},a.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},a.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},a.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},a.prototype._createSource=function(){this._setLocalSource([],[]);var u,f,t=this._sourceHost,e=this._getUpstreamSourceManagers(),o=!!e.length;if(Ym(t)){var d=t,h=void 0,v=void 0,g=void 0;if(o){var m=e[0];m.prepareSource(),h=(g=m.getSource()).data,v=g.sourceFormat,f=[m._getVersionSign()]}else v=Oo(h=d.get("data",!0))?qo:pl,f=[];var y=this._getSourceMetaRawOption()||{},b=g&&g.metaRawOption||{},C=Ft(y.seriesLayoutBy,b.seriesLayoutBy)||null,S=Ft(y.sourceHeader,b.sourceHeader),k=Ft(y.dimensions,b.dimensions);u=C!==b.seriesLayoutBy||!!S!=!!b.sourceHeader||k?[Jc(h,{seriesLayoutBy:C,sourceHeader:S,dimensions:k},v)]:[]}else{var x=t;if(o){var T=this._applyTransform(e);u=T.sourceList,f=T.upstreamSignList}else u=[Jc(x.get("source",!0),this._getSourceMetaRawOption(),null)],f=[]}this._setLocalSource(u,f)},a.prototype._applyTransform=function(t){var e=this._sourceHost,o=e.get("transform",!0),u=e.get("fromTransformResult",!0);null!=u&&1!==t.length&&tD("");var d,h=[],v=[];return q(t,function(g){g.prepareSource();var m=g.getSource(u||0);null!=u&&!m&&tD(""),h.push(m),v.push(g._getVersionSign())}),o?d=function U(a,t,e){var o=Xn(a),u=o.length;u||Pn("");for(var d=0,h=u;d1||e>0&&!a.noHeader;return q(a.blocks,function(u){var f=nD(u);f>=t&&(t=f+ +(o&&(!f||Uu(u)&&!u.noHeader)))}),t}return 0}function gR(a,t,e,o){var u=t.noHeader,f=function _R(a){return{html:K4[a],richText:vi[a]}}(nD(t)),d=[],h=t.blocks||[];fa(!h||Ce(h)),h=h||[];var v=a.orderMode;if(t.sortBlocks&&v){h=h.slice();var g={valueAsc:"asc",valueDesc:"desc"};if(je(g,v)){var m=new Xk(g[v],null);h.sort(function(S,k){return m.evaluate(S.sortParam,k.sortParam)})}else"seriesDesc"===v&&h.reverse()}q(h,function(S,k){var D=t.valueFormatter,x=$0(S)(D?ve(ve({},a),{valueFormatter:D}):a,S,k>0?f.html:0,o);null!=x&&d.push(x)});var y="richText"===a.renderMode?d.join(f.richText):Q0(d.join(""),u?e:f.html);if(u)return y;var b=Ak(t.header,"ordinal",a.useUTC),C=Q(o,a.renderMode).nameStyle;return"richText"===a.renderMode?$4(a,b,C)+f.richText+y:Q0('
'+Ka(b)+"
"+y,e)}function mR(a,t,e,o){var u=a.renderMode,f=t.noName,d=t.noValue,h=!t.markerType,v=t.name,g=a.useUTC,m=t.valueFormatter||a.valueFormatter||function(P){return Me(P=Ce(P)?P:[P],function(V,N){return Ak(V,Ce(C)?C[N]:C,g)})};if(!f||!d){var y=h?"":a.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",u),b=f?"":Ak(v,"ordinal",g),C=t.valueType,S=d?[]:m(t.value),k=!h||!f,D=!h&&f,x=Q(o,u),T=x.nameStyle,E=x.valueStyle;return"richText"===u?(h?"":y)+(f?"":$4(a,b,T))+(d?"":function Q4(a,t,e,o,u){var f=[u];return e&&f.push({padding:[0,0,0,o?10:20],align:"right"}),a.markupStyleCreator.wrapRichTextStyle(Ce(t)?t.join(" "):t,f)}(a,S,k,D,E)):Q0((h?"":y)+(f?"":function yR(a,t,e){return''+Ka(a)+""}(b,!h,T))+(d?"":function bR(a,t,e,o){return''+Me(a=Ce(a)?a:[a],function(d){return Ka(d)}).join("  ")+""}(S,k,D,E)),e)}}function rD(a,t,e,o,u,f){if(a)return $0(a)({useUTC:u,renderMode:e,orderMode:o,markupStyleCreator:t,valueFormatter:a.valueFormatter},a,0,f)}function Q0(a,t){return'
'+a+'
'}function $4(a,t,e){return a.markupStyleCreator.wrapRichTextStyle(t,e)}function CR(a,t){return Wd(a.getData().getItemVisual(t,"style")[a.visualDrawType])}function iD(a,t){var e=a.get("padding");return null!=e?e:"richText"===t?[8,10]:10}var aD=function(){function a(){this.richTextStyles={},this._nextStyleNameId=zo()}return a.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},a.prototype.makeTooltipMarker=function(t,e,o){var u="richText"===o?this._generateStyleName():null,f=C4({color:e,type:t,renderMode:o,markerId:u});return Ne(f)?f:(this.richTextStyles[u]=f.style,f.content)},a.prototype.wrapRichTextStyle=function(t,e){var o={};Ce(e)?q(e,function(f){return ve(o,f)}):ve(o,e);var u=this._generateStyleName();return this.richTextStyles[u]=o,"{"+u+"|"+t+"}"},a}();function Si(a){var m,y,b,C,t=a.series,e=a.dataIndex,o=a.multipleSeries,u=t.getData(),f=u.mapDimensionsAll("defaultedTooltip"),d=f.length,h=t.getRawValue(e),v=Ce(h),g=CR(t,e);if(d>1||v&&!d){var S=function wR(a,t,e,o,u){var f=t.getData(),d=Ys(a,function(y,b,C){var S=f.getDimensionInfo(C);return y||S&&!1!==S.tooltip&&null!=S.displayName},!1),h=[],v=[],g=[];function m(y,b){var C=f.getDimensionInfo(b);!C||!1===C.otherDims.tooltip||(d?g.push(Gt("nameValue",{markerType:"subItem",markerColor:u,name:C.displayName,value:y,valueType:C.type})):(h.push(y),v.push(C.type)))}return o.length?q(o,function(y){m(uv(f,e,y),y)}):q(a,m),{inlineValues:h,inlineValueTypes:v,blocks:g}}(h,t,e,f,g);m=S.inlineValues,y=S.inlineValueTypes,b=S.blocks,C=S.inlineValues[0]}else if(d){var k=u.getDimensionInfo(f[0]);C=m=uv(u,e,f[0]),y=k.type}else C=m=v?h[0]:h;var D=Fp(t),x=D&&t.name||"",T=u.getName(e),E=o?x:T;return Gt("section",{header:x,noHeader:o||!D,sortParam:C,blocks:[Gt("nameValue",{markerType:"item",markerColor:g,name:E,noName:!Io(E),value:m,valueType:y})].concat(b||[])})}var uf=Sn();function J0(a,t){return a.getName(t)||a.getId(t)}var qm="__universalTransitionEnabled",eC=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return de(t,a),t.prototype.init=function(e,o,u){this.seriesIndex=this.componentIndex,this.dataTask=X0({count:fv,reset:J4}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,u),(uf(this).sourceManager=new cv(this)).prepareSource();var d=this.getInitialData(e,u);sD(d,this),this.dataTask.context.data=d,uf(this).dataBeforeProcessed=d,oD(this),this._initSelectedMapFromData(d)},t.prototype.mergeDefaultAndTheme=function(e,o){var u=qd(this),f=u?rv(e):{},d=this.subType;sn.hasClass(d)&&(d+="Series"),Dt(e,o.getTheme().get(this.subType)),Dt(e,this.getDefaultOption()),Cd(e,"label",["show"]),this.fillDataTextStyle(e.data),u&&Zd(e,f,u)},t.prototype.mergeOption=function(e,o){e=Dt(this.option,e,!0),this.fillDataTextStyle(e.data);var u=qd(this);u&&Zd(this.option,e,u);var f=uf(this).sourceManager;f.dirty(),f.prepareSource();var d=this.getInitialData(e,o);sD(d,this),this.dataTask.dirty(),this.dataTask.context.data=d,uf(this).dataBeforeProcessed=d,oD(this),this._initSelectedMapFromData(d)},t.prototype.fillDataTextStyle=function(e){if(e&&!Oo(e))for(var o=["show"],u=0;uthis.getShallow("animationThreshold")&&(o=!1),!!o},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,o,u){var f=this.ecModel,d=Vk.prototype.getColorFromPalette.call(this,e,o,u);return d||(d=f.getColorFromPalette(e,o,u)),d},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,o){this._innerSelect(this.getData(o),e)},t.prototype.unselect=function(e,o){var u=this.option.selectedMap;if(u){var f=this.option.selectedMode,d=this.getData(o);if("series"===f||"all"===u)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var h=0;h=0&&u.push(d)}return u},t.prototype.isSelected=function(e,o){var u=this.option.selectedMap;if(!u)return!1;var f=this.getData(o);return("all"===u||u[J0(f,e)])&&!f.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[qm])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,o){var u,f,d=this.option,h=d.selectedMode,v=o.length;if(h&&v)if("series"===h)d.selectedMap="all";else if("multiple"===h){Ke(d.selectedMap)||(d.selectedMap={});for(var g=d.selectedMap,m=0;m0&&this._innerSelect(e,o)}},t.registerClass=function(e){return sn.registerClass(e)},t.protoInitialize=((e=t.prototype).type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",void(e.visualDrawType="fill")),t;var e}(sn);function oD(a){var t=a.name;Fp(a)||(a.name=function SR(a){var t=a.getRawData(),e=t.mapDimensionsAll("seriesName"),o=[];return q(e,function(u){var f=t.getDimensionInfo(u);f.displayName&&o.push(f.displayName)}),o.join(" ")}(a)||t)}function fv(a){return a.model.getRawData().count()}function J4(a){var t=a.model;return t.setData(t.getRawData().cloneShallow()),eG}function eG(a,t){t.outputData&&a.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function sD(a,t){q(Ng(a.CHANGABLE_METHODS,a.DOWNSAMPLE_METHODS),function(e){a.wrapMethod(e,wt(tG,t))})}function tG(a,t){var e=tC(a);return e&&e.setOutputEnd((t||this).count()),t}function tC(a){var t=(a.ecModel||{}).scheduler,e=t&&t.getPipeline(a.uid);if(e){var o=e.currentTask;if(o){var u=o.agentStubMap;u&&(o=u.get(a.uid))}return o}}Ir(eC,Zk),Ir(eC,Vk),a0(eC,sn);var fr=eC,ta=function(){function a(){this.group=new ct,this.uid=Zc("viewComponent")}return a.prototype.init=function(t,e){},a.prototype.render=function(t,e,o,u){},a.prototype.dispose=function(t,e){},a.prototype.updateView=function(t,e,o,u){},a.prototype.updateLayout=function(t,e,o,u){},a.prototype.updateVisual=function(t,e,o,u){},a.prototype.toggleBlurSeries=function(t,e,o){},a.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},a}();GM(ta),Ru(ta);var Ze=ta;function Qa(){var a=Sn();return function(t){var e=a(t),o=t.pipelineContext,u=!!e.large,f=!!e.progressiveRender,d=e.large=!(!o||!o.large),h=e.progressiveRender=!(!o||!o.progressiveRender);return(u!==d||f!==h)&&"reset"}}var dv=eu.CMD,nG=[[],[],[]],ml=Math.sqrt,_l=Math.atan2;function Ms(a,t){if(t){var u,f,d,h,v,g,e=a.data,o=a.len(),m=dv.M,y=dv.C,b=dv.L,C=dv.R,S=dv.A,k=dv.Q;for(d=0,h=0;d1&&(d*=nC(S),h*=nC(S));var k=(u===f?-1:1)*nC((d*d*(h*h)-d*d*(C*C)-h*h*(b*b))/(d*d*(C*C)+h*h*(b*b)))||0,D=k*d*C/h,x=k*-h*b/d,T=(a+e)/2+rC(y)*D-Zm(y)*x,E=(t+o)/2+Zm(y)*D+rC(y)*x,P=iC([1,0],[(b-D)/d,(C-x)/h]),V=[(b-D)/d,(C-x)/h],N=[(-1*b-D)/d,(-1*C-x)/h],H=iC(V,N);if(lD(V,N)<=-1&&(H=Xm),lD(V,N)>=1&&(H=0),H<0){var j=Math.round(H/Xm*1e6)/1e6;H=2*Xm+j%2*Xm}m.addData(g,T,E,d,h,P,H,y,f)}var rG=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,kR=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,uD=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return lr(t,a),t.prototype.applyTransform=function(e){},t}(Xt);function cD(a){return null!=a.setData}function Km(a,t){var e=function iG(a){var t=new eu;if(!a)return t;var d,e=0,o=0,u=e,f=o,h=eu.CMD,v=a.match(rG);if(!v)return t;for(var g=0;gre*re+ie*ie&&(j=W,Z=X),{cx:j,cy:Z,x0:-m,y0:-y,x1:j*(u/V-1),y1:Z*(u/V-1)}}var uG=function a(){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},ER=function(a){function t(e){return a.call(this,e)||this}return lr(t,a),t.prototype.getDefaultShape=function(){return new uG},t.prototype.buildPath=function(e,o){!function lG(a,t){var e,o=Jm(t.r,0),u=Jm(t.r0||0,0),f=o>0;if(f||u>0){if(f||(o=u,u=0),u>o){var h=o;o=u,u=h}var v=t.startAngle,g=t.endAngle;if(!isNaN(v)&&!isNaN(g)){var m=t.cx,y=t.cy,b=!!t.clockwise,C=AR(g-v),S=C>aC&&C%aC;if(S>yl&&(C=S),o>yl)if(C>aC-yl)a.moveTo(m+o*nh(v),y+o*cf(v)),a.arc(m,y,o,v,g,!b),u>yl&&(a.moveTo(m+u*nh(g),y+u*cf(g)),a.arc(m,y,u,g,v,b));else{var k=void 0,D=void 0,x=void 0,T=void 0,E=void 0,P=void 0,V=void 0,N=void 0,H=void 0,j=void 0,Z=void 0,W=void 0,X=void 0,J=void 0,ee=void 0,re=void 0,ie=o*nh(v),ce=o*cf(v),me=u*nh(g),pe=u*cf(g),_e=C>yl;if(_e){var Pe=t.cornerRadius;Pe&&(e=function sG(a){var t;if(Ce(a)){var e=a.length;if(!e)return a;t=1===e?[a[0],a[0],0,0]:2===e?[a[0],a[0],a[1],a[1]]:3===e?a.concat(a[2]):a}else t=[a,a,a,a];return t}(Pe),k=e[0],D=e[1],x=e[2],T=e[3]);var Be=AR(o-u)/2;if(E=su(Be,x),P=su(Be,T),V=su(Be,k),N=su(Be,D),Z=H=Jm(E,P),W=j=Jm(V,N),(H>yl||j>yl)&&(X=o*nh(g),J=o*cf(g),ee=u*nh(v),re=u*cf(v),Cyl){var Vt=su(x,Z),Lt=su(T,Z),Je=oC(ee,re,ie,ce,o,Vt,b),kt=oC(X,J,me,pe,o,Lt,b);a.moveTo(m+Je.cx+Je.x0,y+Je.cy+Je.y0),Z0&&a.arc(m+Je.cx,y+Je.cy,Vt,Oa(Je.y0,Je.x0),Oa(Je.y1,Je.x1),!b),a.arc(m,y,o,Oa(Je.cy+Je.y1,Je.cx+Je.x1),Oa(kt.cy+kt.y1,kt.cx+kt.x1),!b),Lt>0&&a.arc(m+kt.cx,y+kt.cy,Lt,Oa(kt.y1,kt.x1),Oa(kt.y0,kt.x0),!b))}else a.moveTo(m+ie,y+ce),a.arc(m,y,o,v,g,!b);else a.moveTo(m+ie,y+ce);u>yl&&_e?W>yl?(Vt=su(k,W),Je=oC(me,pe,X,J,u,-(Lt=su(D,W)),b),kt=oC(ie,ce,ee,re,u,-Vt,b),a.lineTo(m+Je.cx+Je.x0,y+Je.cy+Je.y0),W0&&a.arc(m+Je.cx,y+Je.cy,Lt,Oa(Je.y0,Je.x0),Oa(Je.y1,Je.x1),!b),a.arc(m,y,u,Oa(Je.cy+Je.y1,Je.cx+Je.x1),Oa(kt.cy+kt.y1,kt.cx+kt.x1),b),Vt>0&&a.arc(m+kt.cx,y+kt.cy,Vt,Oa(kt.y1,kt.x1),Oa(kt.y0,kt.x0),!b))):(a.lineTo(m+me,y+pe),a.arc(m,y,u,g,v,b)):a.lineTo(m+me,y+pe)}else a.moveTo(m,y);a.closePath()}}}(e,o)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Xt);ER.prototype.type="sector";var Ja=ER,cG=function a(){this.cx=0,this.cy=0,this.r=0,this.r0=0},PR=function(a){function t(e){return a.call(this,e)||this}return lr(t,a),t.prototype.getDefaultShape=function(){return new cG},t.prototype.buildPath=function(e,o){var u=o.cx,f=o.cy,d=2*Math.PI;e.moveTo(u+o.r,f),e.arc(u,f,o.r,0,d,!1),e.moveTo(u+o.r0,f),e.arc(u,f,o.r0,0,d,!0)},t}(Xt);PR.prototype.type="ring";var e_=PR;function hD(a,t,e){var o=t.smooth,u=t.points;if(u&&u.length>=2){if(o){var f=function OR(a,t,e,o){var v,g,m,y,u=[],f=[],d=[],h=[];if(o){m=[1/0,1/0],y=[-1/0,-1/0];for(var b=0,C=a.length;bdr[1]){if(h=!1,f)return h;var m=Math.abs(dr[0]-lu[1]),y=Math.abs(lu[0]-dr[1]);Math.min(m,y)>u.len()&&Et.scale(u,g,mMath.abs(f[1])?f[0]>0?"right":"left":f[1]>0?"bottom":"top"}function wD(a){return!a.isGroup}function l_(a,t,e){if(a&&t){var f=function o(d){var h={};return d.traverse(function(v){wD(v)&&v.anid&&(h[v.anid]=v)}),h}(a);t.traverse(function(d){if(wD(d)&&d.anid){var h=f[d.anid];if(h){var v=u(d);d.attr(u(h)),Ut(d,v,e,vt(d).dataIndex)}}})}function u(d){var h={x:d.x,y:d.y,rotation:d.rotation};return function zR(a){return null!=a.shape}(d)&&(h.shape=ve({},d.shape)),h}}function dC(a,t){return Me(a,function(e){var o=e[0];o=r_(o,t.x),o=lC(o,t.x+t.width);var u=e[1];return u=r_(u,t.y),[o,u=lC(u,t.y+t.height)]})}function GR(a,t){var e=r_(a.x,t.x),o=lC(a.x+a.width,t.x+t.width),u=r_(a.y,t.y),f=lC(a.y+a.height,t.y+t.height);if(o>=e&&f>=u)return{x:e,y:u,width:o-e,height:f-u}}function gv(a,t,e){var o=ve({rectHover:!0},t),u=o.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},a)return 0===a.indexOf("image://")?(u.image=a.slice(8),rt(u,e),new Ki(o)):ff(a.replace("path://",""),o,e,"center")}function hC(a,t,e,o,u){for(var f=0,d=u[u.length-1];f=-1e-6}(b))return!1;var C=a-u,S=t-f,k=UR(C,S,v,g)/b;if(k<0||k>1)return!1;var D=UR(C,S,m,y)/b;return!(D<0||D>1)}function UR(a,t,e,o){return a*o-e*t}function ih(a){var t=a.itemTooltipOption,e=a.componentModel,o=a.itemName,u=Ne(t)?{formatter:t}:t,f=e.mainType,d=e.componentIndex,h={componentType:f,name:o,$vars:["name"]};h[f+"Index"]=d;var v=a.formatterParamsExtra;v&&q(Zt(v),function(m){je(h,m)||(h[m]=v[m],h.$vars.push(m))});var g=vt(a.el);g.componentMainType=f,g.componentIndex=d,g.tooltipConfig={name:o,option:rt({content:o,formatterParams:h},u)}}function u_(a,t){var e;a.isGroup&&(e=t(a)),e||a.traverse(t)}function hf(a,t){if(a)if(Ce(a))for(var e=0;e=0?y():d=setTimeout(y,-h),u=o};return b.clear=function(){d&&(clearTimeout(d),d=null)},b.debounceNextCall=function(C){m=C},b}function sh(a,t,e,o){var u=a[t];if(u){var f=u[pC]||u;if(u[ZR]!==e||u[oh]!==o){if(null==e||!o)return a[t]=f;(u=a[t]=vC(f,e,"debounce"===o))[pC]=f,u[oh]=o,u[ZR]=e}return u}}function c_(a,t){var e=a[t];e&&e[pC]&&(e.clear&&e.clear(),a[t]=e[pC])}var SD=Sn(),XR={itemStyle:ol(m4,!0),lineStyle:ol(g4,!0)},KR={lineStyle:"stroke",itemStyle:"fill"};function $R(a,t){return a.visualStyleMapper||XR[t]||(console.warn("Unkown style type '"+t+"'."),XR.itemStyle)}function gC(a,t){return a.visualDrawType||KR[t]||(console.warn("Unkown style type '"+t+"'."),"fill")}var CG={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var o=t.getData(),u=t.visualStyleAccessPath||"itemStyle",f=t.getModel(u),h=$R(t,u)(f),v=f.getShallow("decal");v&&(o.setVisual("decal",v),v.dirty=!0);var g=gC(t,u),m=h[g],y=et(m)?m:null;if(!h[g]||y||"auto"===h.fill||"auto"===h.stroke){var C=t.getColorFromPalette(t.name,null,e.getSeriesCount());h[g]||(h[g]=C,o.setVisual("colorFromPalette",!0)),h.fill="auto"===h.fill||et(h.fill)?C:h.fill,h.stroke="auto"===h.stroke||et(h.stroke)?C:h.stroke}if(o.setVisual("style",h),o.setVisual("drawType",g),!e.isSeriesFiltered(t)&&y)return o.setVisual("colorFromPalette",!1),{dataEach:function(k,D){var x=t.getDataParams(D),T=ve({},h);T[g]=y(x),k.setItemVisual(D,"style",T)}}}},mv=new Kn,QR={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var o=t.getData(),u=t.visualStyleAccessPath||"itemStyle",f=$R(t,u),d=o.getVisual("drawType");return{dataEach:o.hasItemOption?function(h,v){var g=h.getRawDataItem(v);if(g&&g[u]){mv.option=g[u];var m=f(mv);ve(h.ensureUniqueItemVisual(v,"style"),m),mv.option.decal&&(h.setItemVisual(v,"decal",mv.option.decal),mv.option.decal.dirty=!0),d in m&&h.setItemVisual(v,"colorFromPalette",!1)}}:null}}}},wG={performRawSeries:!0,overallReset:function(t){var e=$e();t.eachSeries(function(o){var u=o.getColorBy();if(!o.isColorBySeries()){var f=o.type+"-"+u,d=e.get(f);d||e.set(f,d={}),SD(o).scope=d}}),t.eachSeries(function(o){if(!o.isColorBySeries()&&!t.isSeriesFiltered(o)){var u=o.getRawData(),f={},d=o.getData(),h=SD(o).scope,g=gC(o,o.visualStyleAccessPath||"itemStyle");d.each(function(m){var y=d.getRawIndex(m);f[y]=m}),u.each(function(m){var y=f[m];if(d.getItemVisual(y,"colorFromPalette")){var C=d.ensureUniqueItemVisual(y,"style"),S=u.getName(m)||m+"",k=u.count();C[g]=o.getColorFromPalette(S,h,k)}})}})}},mC=Math.PI,MD=function(){function a(t,e,o,u){this._stageTaskMap=$e(),this.ecInstance=t,this.api=e,o=this._dataProcessorHandlers=o.slice(),u=this._visualHandlers=u.slice(),this._allHandlers=o.concat(u)}return a.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(o){var u=o.overallTask;u&&u.dirty()})},a.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var o=this._pipelineMap.get(t.__pipeline.id),u=o.context,d=!e&&o.progressiveEnabled&&(!u||u.progressiveRender)&&t.__idxInPipeline>o.blockIndex?o.step:null,h=u&&u.modDataCount;return{step:d,modBy:null!=h?Math.ceil(h/d):null,modDataCount:h}}},a.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},a.prototype.updateStreamModes=function(t,e){var o=this._pipelineMap.get(t.uid),f=t.getData().count(),d=o.progressiveEnabled&&e.incrementalPrepareRender&&f>=o.threshold,h=t.get("large")&&f>=t.get("largeThreshold"),v="mod"===t.get("progressiveChunkMode")?f:null;t.pipelineContext=o.context={progressiveRender:d,modDataCount:v,large:h}},a.prototype.restorePipelines=function(t){var e=this,o=e._pipelineMap=$e();t.eachSeries(function(u){var f=u.getProgressive(),d=u.uid;o.set(d,{id:d,head:null,tail:null,threshold:u.getProgressiveThreshold(),progressiveEnabled:f&&!(u.preventIncremental&&u.preventIncremental()),blockIndex:-1,step:Math.round(f||700),count:0}),e._pipe(u,u.dataTask)})},a.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),o=this.api;q(this._allHandlers,function(u){var f=t.get(u.uid)||t.set(u.uid,{});fa(!(u.reset&&u.overallReset),""),u.reset&&this._createSeriesStageTask(u,f,e,o),u.overallReset&&this._createOverallStageTask(u,f,e,o)},this)},a.prototype.prepareView=function(t,e,o,u){var f=t.renderTask,d=f.context;d.model=e,d.ecModel=o,d.api=u,f.__block=!t.incrementalPrepareRender,this._pipe(e,f)},a.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},a.prototype.performVisualTasks=function(t,e,o){this._performStageTasks(this._visualHandlers,t,e,o)},a.prototype._performStageTasks=function(t,e,o,u){u=u||{};var f=!1,d=this;function h(v,g){return v.setDirty&&(!v.dirtyMap||v.dirtyMap.get(g.__pipeline.id))}q(t,function(v,g){if(!u.visualType||u.visualType===v.visualType){var m=d._stageTaskMap.get(v.uid),y=m.seriesTaskMap,b=m.overallTask;if(b){var C,S=b.agentStubMap;S.each(function(D){h(u,D)&&(D.dirty(),C=!0)}),C&&b.dirty(),d.updatePayload(b,o);var k=d.getPerformArgs(b,u.block);S.each(function(D){D.perform(k)}),b.perform(k)&&(f=!0)}else y&&y.each(function(D,x){h(u,D)&&D.dirty();var T=d.getPerformArgs(D,u.block);T.skip=!v.performRawSeries&&e.isSeriesFiltered(D.context.model),d.updatePayload(D,o),D.perform(T)&&(f=!0)})}}),this.unfinished=f||this.unfinished},a.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(o){e=o.dataTask.perform()||e}),this.unfinished=e||this.unfinished},a.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)})},a.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},a.prototype._createSeriesStageTask=function(t,e,o,u){var f=this,d=e.seriesTaskMap,h=e.seriesTaskMap=$e(),v=t.seriesType,g=t.getTargetSeries;function m(y){var b=y.uid,C=h.set(b,d&&d.get(b)||X0({plan:xG,reset:TG,count:EG}));C.context={model:y,ecModel:o,api:u,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:f},f._pipe(y,C)}t.createOnAllSeries?o.eachRawSeries(m):v?o.eachRawSeriesByType(v,m):g&&g(o,u).each(m)},a.prototype._createOverallStageTask=function(t,e,o,u){var f=this,d=e.overallTask=e.overallTask||X0({reset:MG});d.context={ecModel:o,api:u,overallReset:t.overallReset,scheduler:f};var h=d.agentStubMap,v=d.agentStubMap=$e(),g=t.seriesType,m=t.getTargetSeries,y=!0,b=!1;function S(k){var D=k.uid,x=v.set(D,h&&h.get(D)||(b=!0,X0({reset:JR,onDirty:DG})));x.context={model:k,overallProgress:y},x.agent=d,x.__block=y,f._pipe(k,x)}fa(!t.createOnAllSeries,""),g?o.eachRawSeriesByType(g,S):m?m(o,u).each(S):(y=!1,q(o.getSeries(),S)),b&&d.dirty()},a.prototype._pipe=function(t,e){var u=this._pipelineMap.get(t.uid);!u.head&&(u.head=e),u.tail&&u.tail.pipe(e),u.tail=e,e.__idxInPipeline=u.count++,e.__pipeline=u},a.wrapStageHandler=function(t,e){return et(t)&&(t={overallReset:t,seriesType:PG(t)}),t.uid=Zc("stageHandler"),e&&(t.visualType=e),t},a}();function MG(a){a.overallReset(a.ecModel,a.api,a.payload)}function JR(a){return a.overallProgress&&kG}function kG(){this.agent.dirty(),this.getDownstream().dirty()}function DG(){this.agent&&this.agent.dirty()}function xG(a){return a.plan?a.plan(a.model,a.ecModel,a.api,a.payload):null}function TG(a){a.useClearVisual&&a.data.clearAllVisual();var t=a.resetDefines=Xn(a.reset(a.model,a.ecModel,a.api,a.payload));return t.length>1?Me(t,function(e,o){return e2(o)}):AG}var AG=e2(0);function e2(a){return function(t,e){var o=e.data,u=e.resetDefines[a];if(u&&u.dataEach)for(var f=t.start;f0&&C===g.length-b.length){var S=g.slice(0,C);"data"!==S&&(e.mainType=S,e[b.toLowerCase()]=v,m=!0)}}h.hasOwnProperty(g)&&(o[g]=v,m=!0),m||(u[g]=v)})}return{cptQuery:e,dataQuery:o,otherQuery:u}},a.prototype.filter=function(t,e){var o=this.eventInfo;if(!o)return!0;var u=o.targetEl,f=o.packedEvent,d=o.model,h=o.view;if(!d||!h)return!0;var v=e.cptQuery,g=e.dataQuery;return m(v,d,"mainType")&&m(v,d,"subType")&&m(v,d,"index","componentIndex")&&m(v,d,"name")&&m(v,d,"id")&&m(g,f,"name")&&m(g,f,"dataIndex")&&m(g,f,"dataType")&&(!h.filterForExposedEvent||h.filterForExposedEvent(t,e.otherQuery,u,f));function m(y,b,C,S){return null==y[C]||b[S||C]===y[C]}},a.prototype.afterTrigger=function(){this.eventInfo=null},a}(),f_=["symbol","symbolSize","symbolRotate","symbolOffset"],r2=f_.concat(["symbolKeepAspect"]),ft={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var o=t.getData();if(t.legendIcon&&o.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var u={},f={},d=!1,h=0;h0&&function GG(a,t){return a&&"solid"!==a&&t>0?"dashed"===a?[4*t,2*t]:"dotted"===a?[t]:Cn(a)?[a]:Ce(a)?a:null:null}(t.lineDash,t.lineWidth),o=t.lineDashOffset;if(e){var u=t.strokeNoScale&&a.getLineScale?a.getLineScale():1;u&&1!==u&&(e=Me(e,function(f){return f/u}),o/=u)}return[e,o]}var qu=new eu(!0);function g_(a){var t=a.stroke;return!(null==t||"none"===t||!(a.lineWidth>0))}function ch(a){return"string"==typeof a&&"none"!==a}function ID(a){var t=a.fill;return null!=t&&"none"!==t}function RD(a,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var e=a.globalAlpha;a.globalAlpha=t.fillOpacity*t.opacity,a.fill(),a.globalAlpha=e}else a.fill()}function o2(a,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var e=a.globalAlpha;a.globalAlpha=t.strokeOpacity*t.opacity,a.stroke(),a.globalAlpha=e}else a.stroke()}function s2(a,t,e){var o=jM(t.image,t.__image,e);if(s0(o)){var u=a.createPattern(o,t.repeat||"repeat");if("function"==typeof DOMMatrix&&u&&u.setTransform){var f=new DOMMatrix;f.translateSelf(t.x||0,t.y||0),f.rotateSelf(0,0,(t.rotation||0)*Bg),f.scaleSelf(t.scaleX||1,t.scaleY||1),u.setTransform(f)}return u}}var kC=["shadowBlur","shadowOffsetX","shadowOffsetY"],m_=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function xs(a,t,e,o,u){var f=!1;if(!o&&t===(e=e||{}))return!1;if(o||t.opacity!==e.opacity){to(a,u),f=!0;var d=Math.max(Math.min(t.opacity,1),0);a.globalAlpha=isNaN(d)?Td.opacity:d}(o||t.blend!==e.blend)&&(f||(to(a,u),f=!0),a.globalCompositeOperation=t.blend||Td.blend);for(var h=0;h0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,o,u){if(!this[La]){if(this._disposed)return;var f,d,h;if(Ke(o)&&(u=o.lazyUpdate,f=o.silent,d=o.replaceMerge,h=o.transition,o=o.notMerge),this[La]=!0,!this._model||o){var v=new Re(this._api),g=this._theme,m=this._model=new zI;m.scheduler=this._scheduler,m.ssr=this._ssr,m.init(null,null,null,g,this._locale,v)}this._model.setOption(e,{replaceMerge:d},A_);var y={seriesTransition:h,optionChanged:!0};if(u)this[ro]={silent:f,updateParams:y},this[La]=!1,this.getZr().wakeUp();else{try{Mi(this),mf.update.call(this,null,y)}catch(b){throw this[ro]=null,this[La]=!1,b}this._ssr||this._zr.flush(),this[ro]=null,this[La]=!1,hh.call(this,f),w_.call(this,f)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||XG&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return this._zr.painter.getRenderedCanvas({backgroundColor:(e=e||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return this._zr.painter.renderToString({useViewBox:(e=e||{}).useViewBox})},t.prototype.getSvgDataURL=function(){if(tn.svgSupported){var e=this._zr;return q(e.storage.getDisplayList(),function(u){u.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){var u=this._model,f=[],d=this;q((e=e||{}).excludeComponents,function(v){u.eachComponent({mainType:v},function(g){var m=d._componentsMap[g.__viewId];m.group.ignore||(f.push(m),m.group.ignore=!0)})});var h="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return q(f,function(v){v.group.ignore=!1}),h}},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var o="svg"===e.type,u=this.group,f=Math.min,d=Math.max,h=1/0;if(E_[u]){var v=h,g=h,m=-h,y=-h,b=[],C=e&&e.pixelRatio||this.getDevicePixelRatio();q(_f,function(E,P){if(E.group===u){var V=o?E.getZr().painter.getSvgDom().innerHTML:E.renderToCanvas(ot(e)),N=E.getDom().getBoundingClientRect();v=f(N.left,v),g=f(N.top,g),m=d(N.right,m),y=d(N.bottom,y),b.push({dom:V,left:N.left,top:N.top})}});var S=(m*=C)-(v*=C),k=(y*=C)-(g*=C),D=Ws.createCanvas(),x=PM(D,{renderer:o?"svg":"canvas"});if(x.resize({width:S,height:k}),o){var T="";return q(b,function(E){T+=''+E.dom+""}),x.painter.getSvgRoot().innerHTML=T,e.connectedBackgroundColor&&x.painter.setBackgroundColor(e.connectedBackgroundColor),x.refreshImmediately(),x.painter.toDataURL()}return e.connectedBackgroundColor&&x.add(new fn({shape:{x:0,y:0,width:S,height:k},style:{fill:e.connectedBackgroundColor}})),q(b,function(E){var P=new Ki({style:{x:E.left*C-v,y:E.top*C-g,image:E.dom}});x.add(P)}),x.refreshImmediately(),D.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}},t.prototype.convertToPixel=function(e,o){return x2(this,"convertToPixel",e,o)},t.prototype.convertFromPixel=function(e,o){return x2(this,"convertFromPixel",e,o)},t.prototype.containPixel=function(e,o){var f;if(!this._disposed)return q(vm(this._model,e),function(h,v){v.indexOf("Models")>=0&&q(h,function(g){var m=g.coordinateSystem;if(m&&m.containPoint)f=f||!!m.containPoint(o);else if("seriesModels"===v){var y=this._chartsMap[g.__viewId];y&&y.containPoint&&(f=f||y.containPoint(o,g))}},this)},this),!!f},t.prototype.getVisual=function(e,o){var f=vm(this._model,e,{defaultMainType:"series"}),h=f.seriesModel.getData(),v=f.hasOwnProperty("dataIndexInside")?f.dataIndexInside:f.hasOwnProperty("dataIndex")?h.indexOfRawIndex(f.dataIndex):null;return null!=v?CC(h,v,o):d_(h,o)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;q(A2,function(o){var u=function(d){var g,h=e.getModel(),v=d.target;if("globalout"===o?g={}:v&&Cv(v,function(k){var D=vt(k);if(D&&null!=D.dataIndex){var x=D.dataModel||h.getSeriesByIndex(D.seriesIndex);return g=x&&x.getDataParams(D.dataIndex,D.dataType)||{},!0}if(D.eventData)return g=ve({},D.eventData),!0},!0),g){var y=g.componentType,b=g.componentIndex;("markLine"===y||"markPoint"===y||"markArea"===y)&&(y="series",b=g.seriesIndex);var C=y&&null!=b&&h.getComponent(y,b),S=C&&e["series"===C.mainType?"_chartsMap":"_componentsMap"][C.__viewId];g.event=d,g.type=o,e._$eventProcessor.eventInfo={targetEl:v,packedEvent:g,model:C,view:S},e.trigger(o,g)}};u.zrEventfulCallAtLast=!0,e._zr.on(o,u,e)}),q(x_,function(o,u){e._messageCenter.on(u,function(f){this.trigger(u,f)},e)}),q(["selectchanged"],function(o){e._messageCenter.on(o,function(u){this.trigger(o,u)},e)}),function Wu(a,t,e){a.on("selectchanged",function(o){var u=e.getModel();o.isFromClick?(bv("map","selectchanged",t,u,o),bv("pie","selectchanged",t,u,o)):"select"===o.fromAction?(bv("map","selected",t,u,o),bv("pie","selected",t,u,o)):"unselect"===o.fromAction&&(bv("map","unselected",t,u,o),bv("pie","unselected",t,u,o))})}(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(!this._disposed){this._disposed=!0,this.getDom()&&VM(this.getDom(),IC,"");var o=this,u=o._api,f=o._model;q(o._componentsViews,function(d){d.dispose(f,u)}),q(o._chartsViews,function(d){d.dispose(f,u)}),o._zr.dispose(),o._dom=o._model=o._chartsMap=o._componentsMap=o._chartsViews=o._componentsViews=o._scheduler=o._api=o._zr=o._throttledZrFlush=o._theme=o._coordSysMgr=o._messageCenter=null,delete _f[o.id]}},t.prototype.resize=function(e){if(!this[La]){if(this._disposed)return;this._zr.resize(e);var o=this._model;if(this._loadingFX&&this._loadingFX.resize(),o){var u=o.resetOption("media"),f=e&&e.silent;this[ro]&&(null==f&&(f=this[ro].silent),u=!0,this[ro]=null),this[La]=!0;try{u&&Mi(this),mf.update.call(this,{type:"resize",animation:ve({duration:0},e&&e.animation)})}catch(d){throw this[La]=!1,d}this[La]=!1,hh.call(this,f),w_.call(this,f)}}},t.prototype.showLoading=function(e,o){if(!this._disposed&&(Ke(e)&&(o=e,e=""),e=e||"default",this.hideLoading(),qD[e])){var u=qD[e](this._api,o),f=this._zr;this._loadingFX=u,f.add(u)}},t.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var o=ve({},e);return o.type=x_[e.type],o},t.prototype.dispatchAction=function(e,o){if(!this._disposed&&(Ke(o)||(o={silent:!!o}),D_[e.type]&&this._model)){if(this[La])return void this._pendingActions.push(e);var u=o.silent;HD.call(this,e,u);var f=o.flush;f?this._zr.flush():!1!==f&&tn.browser.weChat&&this._throttledZrFlush(),hh.call(this,u),w_.call(this,u)}},t.prototype.updateLabelLayout=function(){no.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(!this._disposed){var o=e.seriesIndex;this.getModel().getSeriesByIndex(o).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(y){y.clearColorPalette(),y.eachSeries(function(b){b.clearColorPalette()})}function u(y){for(var b=[],C=y.currentStates,S=0;S0?{duration:k,delay:C.get("delay"),easing:C.get("easing")}:null;b.eachRendered(function(x){if(x.states&&x.states.emphasis){if(Bd(x))return;if(x instanceof Xt&&function dl(a){var t=Ld(a);t.normalFill=a.style.fill,t.normalStroke=a.style.stroke;var e=a.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}(x),x.__dirty){var T=x.prevStates;T&&x.useStates(T)}if(S){x.stateTransition=D;var E=x.getTextContent(),P=x.getTextGuideLine();E&&(E.stateTransition=D),P&&(P.stateTransition=D)}x.__dirty&&u(x)}})}Mi=function(b){var C=b._scheduler;C.restorePipelines(b._model),C.prepareStageTasks(),gf(b,!0),gf(b,!1),C.plan()},gf=function(b,C){for(var S=b._model,k=b._scheduler,D=C?b._componentsViews:b._chartsViews,x=C?b._componentsMap:b._chartsMap,T=b._zr,E=b._api,P=0;Pb.get("hoverLayerThreshold")&&!tn.node&&!tn.worker&&b.eachSeries(function(D){if(!D.preventUsingHoverLayer){var x=y._chartsMap[D.__viewId];x.__alive&&x.eachRendered(function(T){T.states.emphasis&&(T.states.emphasis.hoverLayer=!0)})}})}(b,C),no.trigger("series:afterupdate",C,S,D)},ko=function(b){b[C_]=!0,b.getZr().wakeUp()},a8=function(b){!b[C_]||(b.getZr().storage.traverse(function(C){Bd(C)||u(C)}),b[C_]=!1)},UD=function(b){return new(function(C){function S(){return null!==C&&C.apply(this,arguments)||this}return de(S,C),S.prototype.getCoordinateSystems=function(){return b._coordSysMgr.getCoordinateSystems()},S.prototype.getComponentByElement=function(k){for(;k;){var D=k.__ecComponentInfo;if(null!=D)return b._model.getComponent(D.mainType,D.index);k=k.parent}},S.prototype.enterEmphasis=function(k,D){jo(k,D),ko(b)},S.prototype.leaveEmphasis=function(k,D){Bu(k,D),ko(b)},S.prototype.enterBlur=function(k){fk(k),ko(b)},S.prototype.leaveBlur=function(k){dk(k),ko(b)},S.prototype.enterSelect=function(k){oI(k),ko(b)},S.prototype.leaveSelect=function(k){hk(k),ko(b)},S.prototype.getModel=function(){return b.getModel()},S.prototype.getViewOfComponentModel=function(k){return b.getViewOfComponentModel(k)},S.prototype.getViewOfSeriesModel=function(k){return b.getViewOfSeriesModel(k)},S}(L4))(b)},M_=function(b){function C(S,k){for(var D=0;D=0)){h8.push(e);var f=DD.wrapStageHandler(e,u);f.__prio=t,f.__raw=e,a.push(f)}}function kv(a,t){qD[a]=t}function eX(a){Pg({createCanvas:a})}function FC(a,t,e){var o=m2("registerMap");o&&o(a,t,e)}function JD(a){var t=m2("getMap");return t&&t(a)}var Dv=function lf(a){var t=(a=ot(a)).type;t||Pn("");var o=t.split(":");2!==o.length&&Pn("");var u=!1;"echarts"===o[0]&&(t=o[1],u=!0),a.__isBuiltIn=u,z.set(t,a)};ph(2e3,CG),ph(4500,QR),ph(4500,wG),ph(2e3,ft),ph(4500,LG),ph(7e3,function ye(a,t){a.eachRawSeries(function(e){if(!a.isSeriesFiltered(e)){var o=e.getData();o.hasItemVisual()&&o.each(function(d){var h=o.getItemVisual(d,"decal");h&&(o.ensureUniqueItemVisual(d,"style").decal=__(h,t))});var u=o.getVisual("decal");u&&(o.getVisual("style").decal=__(u,t))}})}),XD(eh),KD(900,function ov(a){var t=$e();a.eachSeries(function(e){var o=e.get("stack");if(o){var u=t.get(o)||t.set(o,[]),f=e.getData(),d={stackResultDimension:f.getCalculationInfo("stackResultDimension"),stackedOverDimension:f.getCalculationInfo("stackedOverDimension"),stackedDimension:f.getCalculationInfo("stackedDimension"),stackedByDimension:f.getCalculationInfo("stackedByDimension"),isStackedByIndex:f.getCalculationInfo("isStackedByIndex"),data:f,seriesModel:e};if(!d.stackedDimension||!d.isStackedByIndex&&!d.stackedByDimension)return;u.length&&f.setCalculationInfo("stackedOnSeries",u[u.length-1].seriesModel),u.push(d)}}),t.each(sv)}),kv("default",function SG(a,t){rt(t=t||{},{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 e=new ct,o=new fn({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(o);var d,u=new dn({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),f=new fn({style:{fill:"none"},textContent:u,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return e.add(f),t.showSpinner&&((d=new t_({shape:{startAngle:-mC/2,endAngle:-mC/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*mC/2}).start("circularInOut"),d.animateShape(!0).when(1e3,{startAngle:3*mC/2}).delay(300).start("circularInOut"),e.add(d)),e.resize=function(){var h=u.getBoundingRect().width,v=t.showSpinner?t.spinnerRadius:0,g=(a.getWidth()-2*v-(t.showSpinner&&h?10:0)-h)/2-(t.showSpinner&&h?0:5+h/2)+(t.showSpinner?0:h/2)+(h?0:v),m=a.getHeight()/2;t.showSpinner&&d.setShape({cx:g,cy:m}),f.setShape({x:g-v,y:m-v,width:2*v,height:2*v}),o.setShape({x:0,y:0,width:a.getWidth(),height:a.getHeight()})},e.resize(),e}),uu({type:Fd,event:Fd,update:Fd},Jr),uu({type:w0,event:w0,update:w0},Jr),uu({type:Wp,event:Wp,update:Wp},Jr),uu({type:Yp,event:Yp,update:Yp},Jr),uu({type:qp,event:qp,update:qp},Jr),LC("light",OG),LC("dark",IG);var L2={},p8=[],ex={registerPreprocessor:XD,registerProcessor:KD,registerPostInit:c8,registerPostUpdate:$D,registerUpdateLifecycle:QD,registerAction:uu,registerCoordinateSystem:f8,registerLayout:d8,registerVisual:ph,registerTransform:Dv,registerLoading:kv,registerMap:FC,registerImpl:function ZG(a,t){hr[a]=t},PRIORITY:k2,ComponentModel:sn,ComponentView:Ze,SeriesModel:fr,ChartView:jn,registerComponentModel:function(t){sn.registerClass(t)},registerComponentView:function(t){Ze.registerClass(t)},registerSeriesModel:function(t){fr.registerClass(t)},registerChartView:function(t){jn.registerClass(t)},registerSubTypeDefaulter:function(t,e){sn.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){cn(t,e)}};function Nt(a){Ce(a)?q(a,function(t){Nt(t)}):Ct(p8,a)>=0||(p8.push(a),et(a)&&(a={install:a}),a.install(ex))}function yf(a){return null==a?0:a.length||1}function tx(a){return a}var tX=function(){function a(t,e,o,u,f,d){this._old=t,this._new=e,this._oldKeyGetter=o||tx,this._newKeyGetter=u||tx,this.context=f,this._diffModeMultiple="multiple"===d}return a.prototype.add=function(t){return this._add=t,this},a.prototype.update=function(t){return this._update=t,this},a.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},a.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},a.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},a.prototype.remove=function(t){return this._remove=t,this},a.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},a.prototype._executeOneToOne=function(){var t=this._old,e=this._new,o={},u=new Array(t.length),f=new Array(e.length);this._initIndexMap(t,null,u,"_oldKeyGetter"),this._initIndexMap(e,o,f,"_newKeyGetter");for(var d=0;d1){var m=v.shift();1===v.length&&(o[h]=v[0]),this._update&&this._update(m,d)}else 1===g?(o[h]=null,this._update&&this._update(v,d)):this._remove&&this._remove(d)}this._performRestAdd(f,o)},a.prototype._executeMultiple=function(){var e=this._new,o={},u={},f=[],d=[];this._initIndexMap(this._old,o,f,"_oldKeyGetter"),this._initIndexMap(e,u,d,"_newKeyGetter");for(var h=0;h1&&1===b)this._updateManyToOne&&this._updateManyToOne(m,g),u[v]=null;else if(1===y&&b>1)this._updateOneToMany&&this._updateOneToMany(m,g),u[v]=null;else if(1===y&&1===b)this._update&&this._update(m,g),u[v]=null;else if(y>1&&b>1)this._updateManyToMany&&this._updateManyToMany(m,g),u[v]=null;else if(y>1)for(var C=0;C1)for(var h=0;h30}var z2,xv,O_,I_,ix,Tv,Ku,P_=Ke,cu=Me,_8="undefined"==typeof Int32Array?Array:Int32Array,V2=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],H2=["_approximateExtent"],G2=function(){function a(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var o,u=!1;N2(t)?(o=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(u=!0,o=t),o=o||["x","y"];for(var f={},d=[],h={},v=!1,g={},m=0;m=e)){var u=this._store.getProvider();this._updateOrdinalMeta();var f=this._nameList,d=this._idList;if(u.getSource().sourceFormat===pl&&!u.pure)for(var g=[],m=t;m0},a.prototype.ensureUniqueItemVisual=function(t,e){var o=this._itemVisuals,u=o[t];u||(u=o[t]={});var f=u[e];return null==f&&(Ce(f=this.getVisual(e))?f=f.slice():P_(f)&&(f=ve({},f)),u[e]=f),f},a.prototype.setItemVisual=function(t,e,o){var u=this._itemVisuals[t]||{};this._itemVisuals[t]=u,P_(e)?ve(u,e):u[e]=o},a.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},a.prototype.setLayout=function(t,e){P_(t)?ve(this._layout,t):this._layout[t]=e},a.prototype.getLayout=function(t){return this._layout[t]},a.prototype.getItemLayout=function(t){return this._itemLayouts[t]},a.prototype.setItemLayout=function(t,e,o){this._itemLayouts[t]=o?ve(this._itemLayouts[t]||{},e):e},a.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},a.prototype.setItemGraphicEl=function(t,e){wm(this.hostModel&&this.hostModel.seriesIndex,this.dataType,t,e),this._graphicEls[t]=e},a.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},a.prototype.eachItemGraphicEl=function(t,e){q(this._graphicEls,function(o,u){o&&t&&t.call(e,o,u)})},a.prototype.cloneShallow=function(t){return t||(t=new a(this._schema?this._schema:cu(this.dimensions,this._getDimInfo,this),this.hostModel)),ix(t,this),t._store=this._store,t},a.prototype.wrapMethod=function(t,e){var o=this[t];!et(o)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var u=o.apply(this,arguments);return e.apply(this,[u].concat(gp(arguments)))})},a.internalField=(z2=function(e){var o=e._invertedIndicesMap;q(o,function(u,f){var d=e._dimInfos[f],h=d.ordinalMeta,v=e._store;if(h){u=o[f]=new _8(h.categories.length);for(var g=0;g1&&(g+="__ec__"+y),f[o]=g}})),a}(),ga=G2;function b8(a,t){return R_(a,t).dimensions}function R_(a,t){Qc(a)||(a=ef(a));var e=(t=t||{}).coordDimensions||[],o=t.dimensionsDefine||a.dimensionsDefine||[],u=$e(),f=[],d=function U2(a,t,e,o){var u=Math.max(a.dimensionsDetectedCount||1,t.length,e.length,o||0);return q(t,function(f){var d;Ke(f)&&(d=f.dimsDef)&&(u=Math.max(u,d.length))}),u}(a,e,o,t.dimensionsCount),h=t.canOmitUnusedDimensions&&Pt(d),v=o===a.dimensionsDefine,g=v?B2(a):BC(o),m=t.encodeDefine;!m&&t.encodeDefaulter&&(m=t.encodeDefaulter(a,d));for(var y=$e(m),b=new X4(d),C=0;C0&&(o.name=u+(f-1)),f++,t.set(u,f)}}(f),new m8({source:a,dimensions:f,fullDimensionCount:d,dimensionOmitted:h})}function w8(a,t,e){var o=t.data;if(e||o.hasOwnProperty(a)){for(var u=0;o.hasOwnProperty(a+u);)u++;a+=u}return t.set(a,!0),a}var j2=function a(t){this.coordSysDims=[],this.axisMap=$e(),this.categoryAxisMap=$e(),this.coordSysName=t},M8={cartesian2d:function(t,e,o,u){var f=t.getReferringComponents("xAxis",ii).models[0],d=t.getReferringComponents("yAxis",ii).models[0];e.coordSysDims=["x","y"],o.set("x",f),o.set("y",d),L_(f)&&(u.set("x",f),e.firstCategoryDimIndex=0),L_(d)&&(u.set("y",d),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,o,u){var f=t.getReferringComponents("singleAxis",ii).models[0];e.coordSysDims=["single"],o.set("single",f),L_(f)&&(u.set("single",f),e.firstCategoryDimIndex=0)},polar:function(t,e,o,u){var f=t.getReferringComponents("polar",ii).models[0],d=f.findAxisModel("radiusAxis"),h=f.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],o.set("radius",d),o.set("angle",h),L_(d)&&(u.set("radius",d),e.firstCategoryDimIndex=0),L_(h)&&(u.set("angle",h),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,o,u){e.coordSysDims=["lng","lat"]},parallel:function(t,e,o,u){var f=t.ecModel,d=f.getComponent("parallel",t.get("parallelIndex")),h=e.coordSysDims=d.dimensions.slice();q(d.parallelAxisIndex,function(v,g){var m=f.getComponent("parallelAxis",v),y=h[g];o.set(y,m),L_(m)&&(u.set(y,m),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=g))})}};function L_(a){return"category"===a.get("type")}function HC(a,t,e){var f,d,h,o=(e=e||{}).byIndex,u=e.stackedCoordDimension;!function W2(a){return!N2(a.schema)}(t)?(f=(d=t.schema).dimensions,h=t.store):f=t;var g,m,y,b,v=!(!a||!a.get("stack"));if(q(f,function(T,E){Ne(T)&&(f[E]=T={name:T}),v&&!T.isExtraCoord&&(!o&&!g&&T.ordinalMeta&&(g=T),!m&&"ordinal"!==T.type&&"time"!==T.type&&(!u||u===T.coordDim)&&(m=T))}),m&&!o&&!g&&(o=!0),m){y="__\0ecstackresult_"+a.id,b="__\0ecstackedover_"+a.id,g&&(g.createInvertedIndices=!0);var C=m.coordDim,S=m.type,k=0;q(f,function(T){T.coordDim===C&&k++});var D={name:y,coordDim:C,coordDimIndex:k,type:S,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:f.length},x={name:b,coordDim:b,coordDimIndex:k+1,type:S,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:f.length+1};d?(h&&(D.storeDimIndex=h.ensureCalculationDimension(b,S),x.storeDimIndex=h.ensureCalculationDimension(y,S)),d.appendCalculationDimension(D),d.appendCalculationDimension(x)):(f.push(D),f.push(x))}return{stackedDimension:m&&m.name,stackedByDimension:g&&g.name,isStackedByIndex:o,stackedOverDimension:b,stackResultDimension:y}}function $u(a,t){return!!t&&t===a.getCalculationInfo("stackedDimension")}function ax(a,t){return $u(a,t)?a.getCalculationInfo("stackResultDimension"):t}var wl=function ox(a,t,e){e=e||{};var u,o=t.getSourceManager(),f=!1;a?(f=!0,u=ef(a)):f=(u=o.getSource()).sourceFormat===pl;var d=function S8(a){var t=a.get("coordinateSystem"),e=new j2(t),o=M8[t];if(o)return o(a,e,e.axisMap,e.categoryAxisMap),e}(t),h=function Y2(a,t){var u,e=a.get("coordinateSystem"),o=Hm.get(e);return t&&t.coordSysDims&&(u=Me(t.coordSysDims,function(f){var d={name:f},h=t.axisMap.get(f);if(h){var v=h.get("type");d.type=rx(v)}return d})),u||(u=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),u}(t,d),v=e.useEncodeDefaulter,g=et(v)?v:v?wt(U0,h,t):null,y=R_(u,{coordDimensions:h,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:g,canOmitUnusedDimensions:!f}),b=function F_(a,t,e){var o,u;return e&&q(a,function(f,d){var v=e.categoryAxisMap.get(f.coordDim);v&&(null==o&&(o=d),f.ordinalMeta=v.getOrdinalMeta(),t&&(f.createInvertedIndices=!0)),null!=f.otherDims.itemName&&(u=!0)}),!u&&null!=o&&(a[o].otherDims.itemName=0),o}(y.dimensions,e.createInvertedIndices,d),C=f?null:o.getSharedDataStore(y),S=HC(t,{schema:y,store:C}),k=new ga(y,t);k.setCalculationInfo(S);var D=null!=b&&function q2(a){if(a.sourceFormat===pl){var t=function k8(a){for(var t=0;te[1]&&(e[1]=t[1])},a.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},a.prototype.getExtent=function(){return this._extent.slice()},a.prototype.setExtent=function(t,e){var o=this._extent;isNaN(t)||(o[0]=t),isNaN(e)||(o[1]=e)},a.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},a.prototype.isBlank=function(){return this._isBlank},a.prototype.setBlank=function(t){this._isBlank=t},a}();Ru(sx);var bf=sx,D8=0,iX=function(){function a(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++D8}return a.createByAxisModel=function(t){var e=t.option,o=e.data,u=o&&Me(o,aX);return new a({categories:u,needCollect:!u,deduplication:!1!==e.dedplication})},a.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},a.prototype.parseAndCollect=function(t){var e,o=this._needCollect;if(!Ne(t)&&!o)return t;if(o&&!this._deduplication)return this.categories[e=this.categories.length]=t,e;var u=this._getOrCreateMap();return null==(e=u.get(t))&&(o?(this.categories[e=this.categories.length]=t,u.set(t,e)):e=NaN),e},a.prototype._getOrCreateMap=function(){return this._map||(this._map=$e(this.categories))},a}();function aX(a){return Ke(a)&&null!=a.value?a.value:a+""}var zC=iX;function lx(a){return"interval"===a.type||"log"===a.type}function ux(a){var t=Math.pow(10,IM(a)),e=a/t;return e?2===e?e=3:3===e?e=5:e*=2:e=1,Mr(e*t)}function Z2(a){return Xl(a)+2}function T8(a,t,e){a[t]=Math.max(Math.min(a[t],e[1]),e[0])}function cx(a,t){return a>=t[0]&&a<=t[1]}function GC(a,t){return t[1]===t[0]?.5:(a-t[0])/(t[1]-t[0])}function Av(a,t){return a*(t[1]-t[0])+t[0]}var A8=function(a){function t(e){var o=a.call(this,e)||this;o.type="ordinal";var u=o.getSetting("ordinalMeta");return u||(u=new zC({})),Ce(u)&&(u=new zC({categories:Me(u,function(f){return Ke(f)?f.value:f})})),o._ordinalMeta=u,o._extent=o.getSetting("extent")||[0,u.categories.length-1],o}return de(t,a),t.prototype.parse=function(e){return null==e?NaN:Ne(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return cx(e=this.parse(e),this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return GC(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(Av(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],o=this._extent,u=o[0];u<=o[1];)e.push({value:u}),u++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var o=e.ordinalNumbers,u=this._ordinalNumbersByTick=[],f=this._ticksByOrdinalNumber=[],d=0,h=this._ordinalMeta.categories.length,v=Math.min(h,o.length);d=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(bf);bf.registerClass(A8);var fx=A8,Ev=Mr,Cf=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return de(t,a),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return cx(e,this._extent)},t.prototype.normalize=function(e){return GC(e,this._extent)},t.prototype.scale=function(e){return Av(e,this._extent)},t.prototype.setExtent=function(e,o){var u=this._extent;isNaN(e)||(u[0]=parseFloat(e)),isNaN(o)||(u[1]=parseFloat(o))},t.prototype.unionExtent=function(e){var o=this._extent;e[0]o[1]&&(o[1]=e[1]),this.setExtent(o[0],o[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=Z2(e)},t.prototype.getTicks=function(e){var o=this._interval,u=this._extent,f=this._niceExtent,d=this._intervalPrecision,h=[];if(!o)return h;u[0]1e4)return[];var m=h.length?h[h.length-1].value:f[1];return u[1]>m&&h.push(e?{value:Ev(m+o,d)}:{value:u[1]}),h},t.prototype.getMinorTicks=function(e){for(var o=this.getTicks(!0),u=[],f=this.getExtent(),d=1;df[0]&&Co&&(d=u.interval=o);var h=u.intervalPrecision=Z2(d);return function oX(a,t){!isFinite(a[0])&&(a[0]=t[0]),!isFinite(a[1])&&(a[1]=t[1]),T8(a,0,t),T8(a,1,t),a[0]>a[1]&&(a[0]=a[1])}(u.niceTickExtent=[Mr(Math.ceil(a[0]/d)*d,h),Mr(Math.floor(a[1]/d)*d,h)],a),u}(f,e,o,u);this._intervalPrecision=h.intervalPrecision,this._interval=h.interval,this._niceExtent=h.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var o=this._extent;if(o[0]===o[1])if(0!==o[0]){var u=o[0];e.fixMax||(o[1]+=u/2),o[0]-=u/2}else o[1]=1;isFinite(o[1]-o[0])||(o[0]=0,o[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var d=this._interval;e.fixMin||(o[0]=Ev(Math.floor(o[0]/d)*d)),e.fixMax||(o[1]=Ev(Math.ceil(o[1]/d)*d))},t.prototype.setNiceExtent=function(e,o){this._niceExtent=[e,o]},t.type="interval",t}(bf);bf.registerClass(Cf);var Qu=Cf,UC="undefined"!=typeof Float32Array,dx=UC?Float32Array:Array;function Ju(a){return Ce(a)?UC?new Float32Array(a):a:new dx(a)}var N_="__ec_stack_";function B_(a){return a.get("stack")||N_+a.seriesIndex}function jC(a){return a.dim+a.index}function E8(a,t){var e=[];return t.eachSeriesByType(a,function(o){$2(o)&&e.push(o)}),e}function P8(a){var t=function lX(a){var t={};q(a,function(v){var m=v.coordinateSystem.getBaseAxis();if("time"===m.type||"value"===m.type)for(var y=v.getData(),b=m.dim+"_"+m.index,C=y.getDimensionIndex(y.mapDimension(m.dim)),S=y.getStore(),k=0,D=S.count();k0&&(f=null===f?h:Math.min(f,h))}e[o]=f}}return e}(a),e=[];return q(a,function(o){var h,f=o.coordinateSystem.getBaseAxis(),d=f.getExtent();if("category"===f.type)h=f.getBandWidth();else if("value"===f.type||"time"===f.type){var g=t[f.dim+"_"+f.index],m=Math.abs(d[1]-d[0]),y=f.scale.getExtent(),b=Math.abs(y[1]-y[0]);h=g?m/b*g:m}else{var C=o.getData();h=Math.abs(d[1]-d[0])/C.count()}var S=Ie(o.get("barWidth"),h),k=Ie(o.get("barMaxWidth"),h),D=Ie(o.get("barMinWidth")||(px(o)?.5:1),h),x=o.get("barGap"),T=o.get("barCategoryGap");e.push({bandWidth:h,barWidth:S,barMaxWidth:k,barMinWidth:D,barGap:x,barCategoryGap:T,axisKey:jC(f),stackId:B_(o)})}),hx(e)}function hx(a){var t={};q(a,function(o,u){var f=o.axisKey,d=o.bandWidth,h=t[f]||{bandWidth:d,remainedWidth:d,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},v=h.stacks;t[f]=h;var g=o.stackId;v[g]||h.autoWidthCount++,v[g]=v[g]||{width:0,maxWidth:0};var m=o.barWidth;m&&!v[g].width&&(v[g].width=m,m=Math.min(h.remainedWidth,m),h.remainedWidth-=m);var y=o.barMaxWidth;y&&(v[g].maxWidth=y);var b=o.barMinWidth;b&&(v[g].minWidth=b);var C=o.barGap;null!=C&&(h.gap=C);var S=o.barCategoryGap;null!=S&&(h.categoryGap=S)});var e={};return q(t,function(o,u){e[u]={};var f=o.stacks,d=o.bandWidth,h=o.categoryGap;if(null==h){var v=Zt(f).length;h=Math.max(35-4*v,15)+"%"}var g=Ie(h,d),m=Ie(o.gap,1),y=o.remainedWidth,b=o.autoWidthCount,C=(y-g)/(b+(b-1)*m);C=Math.max(C,0),q(f,function(x){var T=x.maxWidth,E=x.minWidth;if(x.width){var P=x.width;T&&(P=Math.min(P,T)),E&&(P=Math.max(P,E)),x.width=P,y-=P+m*P,b--}else P=C,T&&TP&&(P=E),P!==C&&(x.width=P,y-=P+m*P,b--)}),C=(y-g)/(b+(b-1)*m),C=Math.max(C,0);var k,S=0;q(f,function(x,T){x.width||(x.width=C),k=x,S+=x.width*(1+m)}),k&&(S-=k.width*m);var D=-S/2;q(f,function(x,T){e[u][T]=e[u][T]||{bandWidth:d,offset:D,width:x.width},D+=x.width*(1+m)})}),e}function X2(a,t){var e=E8(a,t),o=P8(e);q(e,function(u){var f=u.getData(),h=u.coordinateSystem.getBaseAxis(),v=B_(u),g=o[jC(h)][v];f.setLayout({bandWidth:g.bandWidth,offset:g.offset,size:g.width})})}function K2(a){return{seriesType:a,plan:Qa(),reset:function(e){if($2(e)){var o=e.getData(),u=e.coordinateSystem,f=u.getBaseAxis(),d=u.getOtherAxis(f),h=o.getDimensionIndex(o.mapDimension(d.dim)),v=o.getDimensionIndex(o.mapDimension(f.dim)),g=e.get("showBackground",!0),m=o.mapDimension(d.dim),y=o.getCalculationInfo("stackResultDimension"),b=$u(o,m)&&!!o.getCalculationInfo("stackedOnSeries"),C=d.isHorizontal(),S=function Q2(a,t){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}(0,d),k=px(e),D=e.get("barMinHeight")||0,x=y&&o.getDimensionIndex(y),T=o.getLayout("size"),E=o.getLayout("offset");return{progress:function(V,N){for(var ee,H=V.count,j=k&&Ju(3*H),Z=k&&g&&Ju(3*H),W=k&&Ju(H),X=u.master.getRect(),J=C?X.width:X.height,re=N.getStore(),ie=0;null!=(ee=V.next());){var ce=re.get(b?x:h,ee),me=re.get(v,ee),pe=S,_e=void 0;b&&(_e=+ce-re.get(h,ee));var Pe=void 0,Be=void 0,He=void 0,nt=void 0;if(C){var ht=u.dataToPoint([ce,me]);b&&(pe=u.dataToPoint([_e,me])[0]),Pe=pe,Be=ht[1]+E,He=ht[0]-pe,nt=T,Math.abs(He)0)for(var h=0;h=0;--h)if(v[g]){f=v[g];break}f=f||d.none}if(Ce(f)){var y=null==a.level?0:a.level>=0?a.level:f.length+a.level;f=f[y=Math.min(y,f.length-1)]}}return Nm(new Date(a.value),f,u,o)}(e,o,u,this.getSetting("locale"),f)},t.prototype.getTicks=function(){var o=this._extent,u=[];if(!this._interval)return u;u.push({value:o[0],level:0});var f=this.getSetting("useUTC"),d=function cX(a,t,e,o){var f=yI,d=0;function h(W,X,J,ee,re,ie,ce){for(var me=new Date(X),pe=X,_e=me[ee]();pe1&&0===ie&&J.unshift({value:J[0].value-pe})}}for(ie=0;ie=o[0]&&T<=o[1]&&y++)}var E=(o[1]-o[0])/t;if(y>1.5*E&&b>E/1.5||(g.push(D),y>E||a===f[C]))break}m=[]}}var P=Un(Me(g,function(W){return Un(W,function(X){return X.value>=o[0]&&X.value<=o[1]&&!X.notAdd})}),function(W){return W.length>0}),V=[],N=P.length-1;for(C=0;Cu&&(this._approxInterval=u);var h=WC.length,v=Math.min(function(t,e,o,u){for(;o>>1;t[f][1]16?16:a>7.5?7:a>3.5?4:a>1.5?2:1}function uX(a){return(a/=2592e6)>6?6:a>3?3:a>2?2:1}function nL(a){return(a/=Lm)>12?12:a>6?6:a>3.5?4:a>2?2:1}function Pv(a,t){return(a/=t?6e4:1e3)>30?30:a>20?20:a>15?15:a>10?10:a>5?5:a>2?2:1}function I8(a){return hi(a,!0)}function R8(a,t,e){var o=new Date(a);switch(Fm(t)){case"year":case"month":o[H0(e)](0);case"day":o[Dk(e)](1);case"hour":o[kI(e)](0);case"minute":o[DI(e)](0);case"second":o[xI(e)](0),o[xk(e)](0)}return o.getTime()}bf.registerClass(eL);var L8=eL,rL=bf.prototype,V_=Qu.prototype,fX=Mr,dX=Math.floor,hX=Math.ceil,vx=Math.pow,Sl=Math.log,gx=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Qu,e._interval=0,e}return de(t,a),t.prototype.getTicks=function(e){var u=this._extent,f=this._originalScale.getExtent();return Me(V_.getTicks.call(this,e),function(h){var v=h.value,g=Mr(vx(this.base,v));return g=v===u[0]&&this._fixMin?mx(g,f[0]):g,{value:g=v===u[1]&&this._fixMax?mx(g,f[1]):g}},this)},t.prototype.setExtent=function(e,o){var u=this.base;e=Sl(e)/Sl(u),o=Sl(o)/Sl(u),V_.setExtent.call(this,e,o)},t.prototype.getExtent=function(){var e=this.base,o=rL.getExtent.call(this);o[0]=vx(e,o[0]),o[1]=vx(e,o[1]);var f=this._originalScale.getExtent();return this._fixMin&&(o[0]=mx(o[0],f[0])),this._fixMax&&(o[1]=mx(o[1],f[1])),o},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var o=this.base;e[0]=Sl(e[0])/Sl(o),e[1]=Sl(e[1])/Sl(o),rL.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,o){this.unionExtent(e.getApproximateExtent(o))},t.prototype.calcNiceTicks=function(e){e=e||10;var o=this._extent,u=o[1]-o[0];if(!(u===1/0||u<=0)){var f=Op(u);for(e/u*f<=.5&&(f*=10);!isNaN(f)&&Math.abs(f)<1&&Math.abs(f)>0;)f*=10;var h=[Mr(hX(o[0]/f)*f),Mr(dX(o[1]/f)*f)];this._interval=f,this._niceExtent=h}},t.prototype.calcNiceExtent=function(e){V_.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return cx(e=Sl(e)/Sl(this.base),this._extent)},t.prototype.normalize=function(e){return GC(e=Sl(e)/Sl(this.base),this._extent)},t.prototype.scale=function(e){return e=Av(e,this._extent),vx(this.base,e)},t.type="log",t}(bf),F8=gx.prototype;function mx(a,t){return fX(a,Xl(t))}F8.getMinorTicks=V_.getMinorTicks,F8.getLabel=V_.getLabel,bf.registerClass(gx);var pX=gx,vX=function(){function a(t,e,o){this._prepareParams(t,e,o)}return a.prototype._prepareParams=function(t,e,o){o[1]0&&v>0&&!g&&(h=0),h<0&&v<0&&!m&&(v=0));var b=this._determinedMin,C=this._determinedMax;return null!=b&&(h=b,g=!0),null!=C&&(v=C,m=!0),{min:h,max:v,minFixed:g,maxFixed:m,isBlank:y}},a.prototype.modifyDataMinMax=function(t,e){this[fu[t]]=e},a.prototype.setDeterminedMinMax=function(t,e){this[YC[t]]=e},a.prototype.freeze=function(){this.frozen=!0},a}(),YC={min:"_determinedMin",max:"_determinedMax"},fu={min:"_dataMin",max:"_dataMax"};function N8(a,t,e){var o=a.rawExtentInfo;return o||(o=new vX(a,t,e),a.rawExtentInfo=o,o)}function qC(a,t){return null==t?null:Rg(t)?NaN:a.parse(t)}function iL(a,t){var e=a.type,o=N8(a,t,a.getExtent()).calculate();a.setBlank(o.isBlank);var u=o.min,f=o.max,d=t.ecModel;if(d&&"time"===e){var h=E8("bar",d),v=!1;if(q(h,function(y){v=v||y.getBaseAxis()===t.axis}),v){var g=P8(h),m=function Jt(a,t,e,o){var u=e.axis.getExtent(),f=u[1]-u[0],d=function O8(a,t,e){if(a&&t){var o=a[jC(t)];return null!=o&&null!=e?o[B_(e)]:o}}(o,e.axis);if(void 0===d)return{min:a,max:t};var h=1/0;q(d,function(C){h=Math.min(C.offset,h)});var v=-1/0;q(d,function(C){v=Math.max(C.offset+C.width,v)}),h=Math.abs(h),v=Math.abs(v);var g=h+v,m=t-a,b=m/(1-(h+v)/f)-m;return{min:a-=b*(h/g),max:t+=b*(v/g)}}(u,f,t,g);u=m.min,f=m.max}}return{extent:[u,f],fixMin:o.minFixed,fixMax:o.maxFixed}}function $o(a,t){var e=t,o=iL(a,e),u=o.extent,f=e.get("splitNumber");a instanceof pX&&(a.base=e.get("logBase"));var d=a.type,h=e.get("interval"),v="interval"===d||"time"===d;a.setExtent(u[0],u[1]),a.calcNiceExtent({splitNumber:f,fixMin:o.fixMin,fixMax:o.fixMax,minInterval:v?e.get("minInterval"):null,maxInterval:v?e.get("maxInterval"):null}),null!=h&&a.setInterval&&a.setInterval(h)}function H_(a,t){if(t=t||a.get("type"))switch(t){case"category":return new fx({ordinalMeta:a.getOrdinalMeta?a.getOrdinalMeta():a.getCategories(),extent:[1/0,-1/0]});case"time":return new L8({locale:a.ecModel.getLocaleModel(),useUTC:a.ecModel.get("useUTC")});default:return new(bf.getClass(t)||Qu)}}function Ov(a){var o,t=a.getLabelModel().get("formatter"),e="category"===a.type?a.scale.getExtent()[0]:null;return"time"===a.scale.type?(o=t,function(u,f){return a.scale.getFormattedLabel(u,f,o)}):Ne(t)?function(o){return function(u){var f=a.scale.getLabel(u);return o.replace("{value}",null!=f?f:"")}}(t):et(t)?function(o){return function(u,f){return null!=e&&(f=u.value-e),o(ZC(a,u),f,null!=u.level?{level:u.level}:null)}}(t):function(o){return a.scale.getLabel(o)}}function ZC(a,t){return"category"===a.type?a.scale.getLabel(t):t.value}function _x(a,t){var e=t*Math.PI/180,o=a.width,u=a.height,f=o*Math.abs(Math.cos(e))+Math.abs(u*Math.sin(e)),d=o*Math.abs(Math.sin(e))+Math.abs(u*Math.cos(e));return new zt(a.x,a.y,f,d)}function XC(a){var t=a.get("interval");return null==t?"auto":t}function du(a){return"category"===a.type&&0===XC(a.getLabelModel())}function tc(a,t){var e={};return q(a.mapDimensionsAll(t),function(o){e[ax(a,o)]=!0}),Zt(e)}var wf=function(){function a(){}return a.prototype.getNeedCrossZero=function(){return!this.option.scale},a.prototype.getCoordSysModel=function(){},a}();function aL(a){return wl(null,a)}var z8={isDimensionStacked:$u,enableDataStack:HC,getStackedDimension:ax};function z_(a,t){var e=t;t instanceof Kn||(e=new Kn(t));var o=H_(e);return o.setExtent(a[0],a[1]),$o(o,e),o}function G8(a){Ir(a,wf)}function U8(a,t){return Cr(a,null,null,"normal"!==(t=t||{}).state)}function yx(a,t){return Math.abs(a-t)<1e-8}function ki(a,t,e){var o=0,u=a[0];if(!u)return!1;for(var f=1;fu&&(o=d,u=v)}if(o)return function Zr(a){for(var t=0,e=0,o=0,u=a.length,f=a[u-1][0],d=a[u-1][1],h=0;h>1^-(1&h),v=v>>1^-(1&v),u=h+=u,f=v+=f,o.push([h/e,v/e])}return o}function uL(a,t){return a=function Y8(a){if(!a.UTF8Encoding)return a;var t=a,e=t.UTF8Scale;return null==e&&(e=1024),q(t.features,function(u){var f=u.geometry,d=f.encodeOffsets,h=f.coordinates;if(d)switch(f.type){case"LineString":f.coordinates=q8(h,d,e);break;case"Polygon":case"MultiLineString":bx(h,d,e);break;case"MultiPolygon":q(h,function(v,g){return bx(v,d[g],e)})}}),t.UTF8Encoding=!1,t}(a),Me(Un(a.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var o=e.properties,u=e.geometry,f=[];switch(u.type){case"Polygon":var d=u.coordinates;f.push(new j8(d[0],d.slice(1)));break;case"MultiPolygon":q(u.coordinates,function(v){v[0]&&f.push(new j8(v[0],v.slice(1)))});break;case"LineString":f.push(new sL([u.coordinates]));break;case"MultiLineString":f.push(new sL(u.coordinates))}var h=new lL(o[t||"name"],f,o.cp);return h.properties=o,h})}function KC(a,t,e,o,u,f,d,h){return new dn({style:{text:a,font:t,align:e,verticalAlign:o,padding:u,rich:f,overflow:d?"truncate":null,lineHeight:h}}).getBoundingRect()}var Sf=Sn();function Z8(a,t){var f,d,e=cL(a,"labels"),o=XC(t);return fL(e,o)||(et(o)?f=QC(a,o):(d="auto"===o?function X8(a){var t=Sf(a).autoInterval;return null!=t?t:Sf(a).autoInterval=a.calculateCategoryInterval()}(a):o,f=Qo(a,d)),Sx(e,o,{labels:f,labelCategoryInterval:d}))}function cL(a,t){return Sf(a)[t]||(Sf(a)[t]=[])}function fL(a,t){for(var e=0;e1&&m/v>2&&(g=Math.round(Math.ceil(g/v)*v));var y=du(a),b=d.get("showMinLabel")||y,C=d.get("showMaxLabel")||y;b&&g!==f[0]&&k(f[0]);for(var S=g;S<=f[1];S+=v)k(S);function k(D){var x={value:D};h.push(e?D:{formattedLabel:o(x),rawLabel:u.getLabel(x),tickValue:D})}return C&&S-v!==f[1]&&k(f[1]),h}function QC(a,t,e){var o=a.scale,u=Ov(a),f=[];return q(o.getTicks(),function(d){var h=o.getLabel(d),v=d.value;t(d.value,h)&&f.push(e?v:{formattedLabel:u(d),rawLabel:h,tickValue:v})}),f}var dL=[0,1],$8=function(){function a(t,e,o){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=o||[0,0]}return a.prototype.contain=function(t){var e=this._extent,o=Math.min(e[0],e[1]),u=Math.max(e[0],e[1]);return t>=o&&t<=u},a.prototype.containData=function(t){return this.scale.contain(t)},a.prototype.getExtent=function(){return this._extent.slice()},a.prototype.getPixelPrecision=function(t){return Ae(t||this.scale.getExtent(),this._extent)},a.prototype.setExtent=function(t,e){var o=this._extent;o[0]=t,o[1]=e},a.prototype.dataToCoord=function(t,e){var o=this._extent,u=this.scale;return t=u.normalize(t),this.onBand&&"ordinal"===u.type&&hL(o=o.slice(),u.count()),wn(t,dL,o,e)},a.prototype.coordToData=function(t,e){var o=this._extent,u=this.scale;this.onBand&&"ordinal"===u.type&&hL(o=o.slice(),u.count());var f=wn(t,o,dL,e);return this.scale.scale(f)},a.prototype.pointToData=function(t,e){},a.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),f=Me(function Ts(a,t){return"category"===a.type?function gX(a,t){var f,d,e=cL(a,"ticks"),o=XC(t),u=fL(e,o);if(u)return u;if((!t.get("show")||a.scale.isBlank())&&(f=[]),et(o))f=QC(a,o,!0);else if("auto"===o){var h=Z8(a,a.getLabelModel());d=h.labelCategoryInterval,f=Me(h.labels,function(v){return v.tickValue})}else f=Qo(a,d=o,!0);return Sx(e,o,{ticks:f,tickCategoryInterval:d})}(a,t):{ticks:Me(a.scale.getTicks(),function(e){return e.value})}}(this,e).ticks,function(h){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(h):h),tickValue:h}},this);return function Q8(a,t,e,o){var u=t.length;if(a.onBand&&!e&&u){var d,f=a.getExtent();if(1===u)t[0].coord=f[0],d=t[1]={coord:f[0]};else{var g=(t[u-1].coord-t[0].coord)/(t[u-1].tickValue-t[0].tickValue);q(t,function(C){C.coord-=g/2});var m=a.scale.getExtent();t.push(d={coord:t[u-1].coord+g*(1+m[1]-t[u-1].tickValue)})}var y=f[0]>f[1];b(t[0].coord,f[0])&&(o?t[0].coord=f[0]:t.shift()),o&&b(f[0],t[0].coord)&&t.unshift({coord:f[0]}),b(f[1],d.coord)&&(o?d.coord=f[1]:t.pop()),o&&b(d.coord,f[1])&&t.push({coord:f[1]})}function b(C,S){return C=Mr(C),S=Mr(S),y?C>S:C0&&e<100||(e=5),Me(this.scale.getMinorTicks(e),function(f){return Me(f,function(d){return{coord:this.dataToCoord(d),tickValue:d}},this)},this)},a.prototype.getViewLabels=function(){return function $C(a){return"category"===a.type?function Cx(a){var t=a.getLabelModel(),e=Z8(a,t);return!t.get("show")||a.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}(a):function mX(a){var t=a.scale.getTicks(),e=Ov(a);return{labels:Me(t,function(o,u){return{level:o.level,formattedLabel:e(o,u),rawLabel:a.scale.getLabel(o),tickValue:o.value}})}}(a)}(this).labels},a.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},a.prototype.getTickModel=function(){return this.model.getModel("axisTick")},a.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),o=e[1]-e[0]+(this.onBand?1:0);0===o&&(o=1);var u=Math.abs(t[1]-t[0]);return Math.abs(u)/o},a.prototype.calculateCategoryInterval=function(){return function K8(a){var t=function _X(a){var t=a.getLabelModel();return{axisRotate:a.getRotate?a.getRotate():a.isHorizontal&&!a.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}(a),e=Ov(a),o=(t.axisRotate-t.labelRotate)/180*Math.PI,u=a.scale,f=u.getExtent(),d=u.count();if(f[1]-f[0]<1)return 0;var h=1;d>40&&(h=Math.max(1,Math.floor(d/40)));for(var v=f[0],g=a.dataToCoord(v+1)-a.dataToCoord(v),m=Math.abs(g*Math.cos(o)),y=Math.abs(g*Math.sin(o)),b=0,C=0;v<=f[1];v+=h){var k,D=pd(e({value:v}),t.font,"center","top");k=1.3*D.height,b=Math.max(b,1.3*D.width,7),C=Math.max(C,k,7)}var x=b/m,T=C/y;isNaN(x)&&(x=1/0),isNaN(T)&&(T=1/0);var E=Math.max(0,Math.floor(Math.min(x,T))),P=Sf(a.model),V=a.getExtent(),N=P.lastAutoInterval,H=P.lastTickCount;return null!=N&&null!=H&&Math.abs(N-E)<=1&&Math.abs(H-d)<=1&&N>E&&P.axisExtent0===V[0]&&P.axisExtent1===V[1]?E=N:(P.lastTickCount=d,P.lastAutoInterval=E,P.axisExtent0=V[0],P.axisExtent1=V[1]),E}(this)},a}();function hL(a,t){var u=(a[1]-a[0])/t/2;a[0]+=u,a[1]-=u}var Fa=$8;function J8(a){var t=sn.extend(a);return sn.registerClass(t),t}function Hi(a){var t=Ze.extend(a);return Ze.registerClass(t),t}function jt(a){var t=fr.extend(a);return fr.registerClass(t),t}function _n(a){var t=jn.extend(a);return jn.registerClass(t),t}var G_=2*Math.PI,hu=eu.CMD,nc=["top","right","bottom","left"];function JC(a,t,e,o,u){var f=e.width,d=e.height;switch(a){case"top":o.set(e.x+f/2,e.y-t),u.set(0,-1);break;case"bottom":o.set(e.x+f/2,e.y+d+t),u.set(0,1);break;case"left":o.set(e.x-t,e.y+d/2),u.set(-1,0);break;case"right":o.set(e.x+f+t,e.y+d/2),u.set(1,0)}}function Ml(a,t,e,o,u,f,d,h,v){d-=a,h-=t;var g=Math.sqrt(d*d+h*h),m=(d/=g)*e+a,y=(h/=g)*e+t;if(Math.abs(o-u)%G_<1e-4)return v[0]=m,v[1]=y,g-e;if(f){var b=o;o=zc(u),u=zc(b)}else o=zc(o),u=zc(u);o>u&&(u+=G_);var C=Math.atan2(h,d);if(C<0&&(C+=G_),C>=o&&C<=u||C+G_>=o&&C+G_<=u)return v[0]=m,v[1]=y,g-e;var S=e*Math.cos(o)+a,k=e*Math.sin(o)+t,D=e*Math.cos(u)+a,x=e*Math.sin(u)+t,T=(S-d)*(S-d)+(k-h)*(k-h),E=(D-d)*(D-d)+(x-h)*(x-h);return T0){t=t/180*Math.PI,Do.fromArray(a[0]),rr.fromArray(a[1]),Br.fromArray(a[2]),Et.sub(pu,Do,rr),Et.sub(Dl,Br,rr);var e=pu.len(),o=Dl.len();if(!(e<.001||o<.001)){pu.scale(1/e),Dl.scale(1/o);var u=pu.dot(Dl);if(Math.cos(t)1&&Et.copy(ma,Br),ma.toArray(a[1])}}}}function vL(a,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Do.fromArray(a[0]),rr.fromArray(a[1]),Br.fromArray(a[2]),Et.sub(pu,rr,Do),Et.sub(Dl,Br,rr);var o=pu.len(),u=Dl.len();if(!(o<.001||u<.001)&&(pu.scale(1/o),Dl.scale(1/u),pu.dot(t)=v)Et.copy(ma,Br);else{ma.scaleAndAdd(Dl,h/Math.tan(Math.PI/2-m));var y=Br.x!==rr.x?(ma.x-rr.x)/(Br.x-rr.x):(ma.y-rr.y)/(Br.y-rr.y);if(isNaN(y))return;y<0?Et.copy(ma,rr):y>1&&Et.copy(ma,Br)}ma.toArray(a[1])}}}function gL(a,t,e,o){var u="normal"===e,f=u?a:a.ensureState(e);f.ignore=t;var d=o.get("smooth");d&&!0===d&&(d=.3),f.shape=f.shape||{},d>0&&(f.shape.smooth=d);var h=o.getModel("lineStyle").getLineStyle();u?a.useStyle(h):f.style=h}function tU(a,t){var e=t.smooth,o=t.points;if(o)if(a.moveTo(o[0][0],o[0][1]),e>0&&o.length>=3){var u=Oc(o[0],o[1]),f=Oc(o[1],o[2]);if(!u||!f)return a.lineTo(o[1][0],o[1][1]),void a.lineTo(o[2][0],o[2][1]);var d=Math.min(u,f)*e,h=Ab([],o[1],o[0],d/u),v=Ab([],o[1],o[2],d/f),g=Ab([],h,v,.5);a.bezierCurveTo(h[0],h[1],h[0],h[1],g[0],g[1]),a.bezierCurveTo(v[0],v[1],v[0],v[1],o[2][0],o[2][1])}else for(var m=1;m0&&f&&N(-y/d,0,d);var T,E,D=a[0],x=a[d-1];return P(),T<0&&H(-T,.8),E<0&&H(E,.8),P(),V(T,E,1),V(E,T,-1),P(),T<0&&j(-T),E<0&&j(E),g}function P(){T=D.rect[t]-o,E=u-x.rect[t]-x.rect[e]}function V(Z,W,X){if(Z<0){var J=Math.min(W,-Z);if(J>0){N(J*X,0,d);var ee=J+Z;ee<0&&H(-ee*X,1)}else H(-Z*X,1)}}function N(Z,W,X){0!==Z&&(g=!0);for(var J=W;J0)for(ee=0;ee0;ee--)N(-X[ee-1]*ce,ee,d)}}function j(Z){var W=Z<0?-1:1;Z=Math.abs(Z);for(var X=Math.ceil(Z/(d-1)),J=0;J0?N(X,0,J+1):N(-X,d-J-1,d),(Z-=X)<=0)return}}function U_(a,t,e,o){return mL(a,"y","height",t,e,o)}function Iv(a){var t=[];a.sort(function(k,D){return D.priority-k.priority});var e=new zt(0,0,0,0);function o(k){if(!k.ignore){var D=k.ensureState("emphasis");null==D.ignore&&(D.ignore=!1)}k.ignore=!0}for(var u=0;u=0&&o.attr(f.oldLayoutSelect),Ct(b,"emphasis")>=0&&o.attr(f.oldLayoutEmphasis)),Ut(o,g,e,v)}else if(o.attr(g),!Hd(o).valueAnimation){var y=Ft(o.style.opacity,1);o.style.opacity=0,nr(o,{style:{opacity:y}},e,v)}if(f.oldLayout=g,o.states.select){var C=f.oldLayoutSelect={};rw(C,g,iw),rw(C,o.states.select,iw)}if(o.states.emphasis){var S=f.oldLayoutEmphasis={};rw(S,g,iw),rw(S,o.states.emphasis,iw)}F0(o,v,m,e,e)}if(u&&!u.ignore&&!u.invisible){var f=Tx(u),k={points:u.shape.points};(d=f.oldLayout)?(u.attr({shape:d}),Ut(u,{shape:k},e)):(u.setShape(k),u.style.strokePercent=0,nr(u,{style:{strokePercent:1}},e)),f.oldLayout=k}},a}(),Ax=iU,Ex=Sn();function yL(a){a.registerUpdateLifecycle("series:beforeupdate",function(t,e,o){var u=Ex(e).labelManager;u||(u=Ex(e).labelManager=new Ax),u.clearLabels()}),a.registerUpdateLifecycle("series:layoutlabels",function(t,e,o){var u=Ex(e).labelManager;o.updatedSeries.forEach(function(f){u.addLabelsOfSeries(e.getViewOfSeriesModel(f))}),u.updateLayoutConfig(e),u.layout(e),u.processLabelsOverall()})}function bL(a,t,e){var o=Ws.createCanvas(),u=t.getWidth(),f=t.getHeight(),d=o.style;return d&&(d.position="absolute",d.left="0",d.top="0",d.width=u+"px",d.height=f+"px",o.setAttribute("data-zr-dom-id",a)),o.width=u*e,o.height=f*e,o}Nt(yL);var Px=function(a){function t(e,o,u){var d,f=a.call(this)||this;f.motionBlur=!1,f.lastFrameAlpha=.7,f.dpr=1,f.virtual=!1,f.config={},f.incremental=!1,f.zlevel=0,f.maxRepaintRectCount=5,f.__dirty=!0,f.__firstTimePaint=!0,f.__used=!1,f.__drawIndex=0,f.__startIndex=0,f.__endIndex=0,f.__prevStartIndex=null,f.__prevEndIndex=null,u=u||xp,"string"==typeof e?d=bL(e,o,u):Ke(e)&&(e=(d=e).id),f.id=e,f.dom=d;var h=d.style;return h&&(nM(d),d.onselectstart=function(){return!1},h.padding="0",h.margin="0",h.borderWidth="0"),f.painter=o,f.dpr=u,f}return lr(t,a),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=bL("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,o,u,f){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var D,d=[],h=this.maxRepaintRectCount,v=!1,g=new zt(0,0,0,0);function m(T){if(T.isFinite()&&!T.isZero())if(0===d.length)(E=new zt(0,0,0,0)).copy(T),d.push(E);else{for(var P=!1,V=1/0,N=0,H=0;H=h)}}for(var y=this.__startIndex;y15)break}ce.prevElClipPaths&&T.restore()};if(E)if(0===E.length)Z=x.__endIndex;else for(var X=C.dpr,J=0;J0&&t>u[0]){for(v=0;vt);v++);h=o[u[v]]}if(u.splice(v+1,0,t),o[t]=e,!e.virtual)if(h){var g=h.dom;g.nextSibling?d.insertBefore(e.dom,g.nextSibling):d.appendChild(e.dom)}else d.firstChild?d.insertBefore(e.dom,d.firstChild):d.appendChild(e.dom);e.__painter=this}},a.prototype.eachLayer=function(t,e){for(var o=this._zlevelList,u=0;u0?.01:0),this._needsManuallyCompositing),m.__builtin__||Xe("ZLevel "+g+" has been used by unkown layer "+m.id),m!==f&&(m.__used=!0,m.__startIndex!==v&&(m.__dirty=!0),m.__startIndex=v,m.__drawIndex=m.incremental?-1:v,e(v),f=m),1&u.__dirty&&!u.__inHover&&(m.__dirty=!0,m.incremental&&m.__drawIndex<0&&(m.__drawIndex=v))}e(v),this.eachBuiltinLayer(function(y,b){!y.__used&&y.getElementCount()>0&&(y.__dirty=!0,y.__startIndex=y.__endIndex=y.__drawIndex=0),y.__dirty&&y.__drawIndex<0&&(y.__drawIndex=y.__startIndex)})},a.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},a.prototype._clearLayer=function(t){t.clear()},a.prototype.setBackgroundColor=function(t){this._backgroundColor=t,q(this._layers,function(e){e.setUnpainted()})},a.prototype.configLayer=function(t,e){if(e){var o=this._layerConfig;o[t]?Dt(o[t],e,!0):o[t]=e;for(var u=0;u=Mf:-g>=Mf),C=g>0?g%Mf:g%Mf+Mf;S=!!b||!xn(y)&&C>=ML==!!m;var k=t+o*en(d),D=e+u*SL(d);this._start&&this._add("M",k,D);var x=Math.round(f*Rx);if(b){var T=1/this._p,E=(m?1:-1)*(Mf-T);this._add("A",o,u,x,1,+m,t+o*en(d+E),e+u*SL(d+E)),T>.01&&this._add("A",o,u,x,0,+m,k,D)}else{var P=t+o*en(h),V=e+u*SL(h);this._add("A",o,u,x,+S,+m,P,V)}},a.prototype.rect=function(t,e,o,u){this._add("M",t,e),this._add("l",o,0),this._add("l",0,u),this._add("l",-o,0),this._add("Z")},a.prototype.closePath=function(){this._d.length>0&&this._add("Z")},a.prototype._add=function(t,e,o,u,f,d,h,v,g){for(var m=[],y=this._p,b=1;b"}(d,u.attrs)+(u.text||"")+(f?""+e+Me(f,function(v){return o(v)}).join(e)+e:"")+function dU(a){return""}(d)}(a)}function Fx(a){return{zrId:a,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function TL(a,t,e,o){return xi("svg","root",{width:a,height:t,xmlns:Es,"xmlns:xlink":DL,version:"1.1",baseProfile:"full",viewBox:!!o&&"0 0 "+a+" "+t},e)}var AL={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},_h="transform-origin";function pU(a,t,e){var o=ve({},a.shape);ve(o,t),a.buildPath(e,o);var u=new kf;return u.reset(Yb(a)),e.rebuildPath(u,1),u.generateStr(),u.getStr()}function vU(a,t){var e=t.originX,o=t.originY;(e||o)&&(a[_h]=e+"px "+o+"px")}var gU={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Nx(a,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=a,e}function PL(a){return Ne(a)?AL[a]?"cubic-bezier("+AL[a]+")":sd(a)?a:"":""}function ow(a,t,e,o){var u=a.animators,f=u.length,d=[];if(a instanceof Qe){var h=function EL(a,t,e){var f,d,u={};if(q(a.shape.paths,function(v){var g=Fx(e.zrId);g.animation=!0,ow(v,{},g,!0);var m=g.cssAnims,y=g.cssNodes,b=Zt(m),C=b.length;if(C){var S=m[d=b[C-1]];for(var k in S){var D=S[k];u[k]=u[k]||{d:""},u[k].d+=D.d||""}for(var x in y){var T=y[x].animation;T.indexOf(d)>=0&&(f=T)}}}),f){t.d=!1;var h=Nx(u,e);return f.replace(d,h)}}(a,t,e);if(h)d.push(h);else if(!f)return}else if(!f)return;for(var v={},g=0;g0}).length)return Nx(H,e)+" "+T[0]+" both"}for(var D in v)(h=k(v[D]))&&d.push(h);if(d.length){var x=e.zrId+"-cls-"+e.cssClassIdx++;e.cssNodes["."+x]={animation:d.join(",")},t.class=x}}var W_=Math.round;function sw(a){return a&&Ne(a.src)}function lw(a){return a&&et(a.toDataURL)}function Bx(a,t,e,o){(function bX(a,t,e,o){var u=null==t.opacity?1:t.opacity;if(e instanceof Ki)a("opacity",u);else{if(function kL(a){var t=a.fill;return null!=t&&t!==mh}(t)){var f=fs(t.fill);a("fill",f.color);var d=null!=t.fillOpacity?t.fillOpacity*f.opacity*u:f.opacity*u;(o||d<1)&&a("fill-opacity",d)}else a("fill",mh);if(function sU(a){var t=a.stroke;return null!=t&&t!==mh}(t)){var h=fs(t.stroke);a("stroke",h.color);var v=t.strokeNoScale?e.getLineScale():1,g=v?(t.lineWidth||0)/v:0,m=null!=t.strokeOpacity?t.strokeOpacity*h.opacity*u:h.opacity*u,y=t.strokeFirst;if((o||1!==g)&&a("stroke-width",g),(o||y)&&a("paint-order",y?"stroke":"fill"),(o||m<1)&&a("stroke-opacity",m),t.lineDash){var b=OD(e),C=b[0],S=b[1];C&&(S=yX(S||0),a("stroke-dasharray",C.join(",")),(S||o)&&a("stroke-dashoffset",S))}else o&&a("stroke-dasharray",mh);for(var k=0;kf?Gx(a,null==e[v+1]?null:e[v+1].elm,e,u,v):fw(a,t,o,f))}(e,o,u):xl(u)?(xl(a.text)&&Vx(e,""),Gx(e,null,u,0,u.length-1)):xl(o)?fw(e,o,0,o.length-1):xl(a.text)&&Vx(e,""):a.text!==t.text&&(xl(o)&&fw(e,o,0,o.length-1),Vx(e,t.text)))}var HL=0,AX=function(){function a(t,e,o){if(this.type="svg",this.refreshHover=function(){},this.configLayer=function(){},this.storage=e,this._opts=o=ve({},o),this.root=t,this._id="zr"+HL++,this._oldVNode=TL(o.width,o.height),t&&!o.ssr){var u=this._viewport=document.createElement("div");u.style.cssText="position:relative;overflow:hidden";var f=this._svgDom=this._oldVNode.elm=xL("svg");Ux(null,this._oldVNode),u.appendChild(f),t.appendChild(u)}this.resize(o.width,o.height)}return a.prototype.getType=function(){return this.type},a.prototype.getViewportRoot=function(){return this._viewport},a.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},a.prototype.getSvgDom=function(){return this._svgDom},a.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",function dw(a,t){if(Ch(a,t))Fv(a,t);else{var e=a.elm,o=Y_(e);Lv(t),null!==o&&(yh(o,t.elm,NL(e)),fw(o,[a],0,0))}}(this._oldVNode,t),this._oldVNode=t}},a.prototype.renderOneToVNode=function(t){return RL(t,Fx(this._id))},a.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),o=this._backgroundColor,u=this._width,f=this._height,d=Fx(this._id);d.animation=t.animation,d.willUpdate=t.willUpdate,d.compress=t.compress;var h=[];if(o&&"none"!==o){var v=fs(o);this._bgVNode=xi("rect","bg",{width:u,height:f,x:"0",y:"0",id:"0",fill:v.color,"fill-opacity":v.opacity}),h.push(this._bgVNode)}else this._bgVNode=null;var y=t.compress?null:this._mainVNode=xi("g","main",{},[]);this._paintList(e,d,y?y.children:h),y&&h.push(y);var b=Me(Zt(d.defs),function(k){return d.defs[k]});if(b.length&&h.push(xi("defs","defs",{},b)),t.animation){var C=function hU(a,t,e){var o=(e=e||{}).newline?"\n":"",u=" {"+o,f=o+"}",d=Me(Zt(a),function(v){return v+u+Me(Zt(a[v]),function(g){return g+":"+a[v][g]+";"}).join(o)+f}).join(o),h=Me(Zt(t),function(v){return"@keyframes "+v+u+Me(Zt(t[v]),function(g){return g+u+Me(Zt(t[v][g]),function(m){var y=t[v][g][m];return"d"===m&&(y='path("'+y+'")'),m+":"+y+";"}).join(o)+f}).join(o)+f}).join(o);return d||h?[""].join(o):""}(d.cssNodes,d.cssAnims,{newline:!0});if(C){var S=xi("style","stl",{},[],C);h.push(S)}}return TL(u,f,h,t.useViewBox)},a.prototype.renderToString=function(t){return Lx(this.renderToVNode({animation:Ft((t=t||{}).cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Ft(t.useViewBox,!0)}),{newline:!0})},a.prototype.setBackgroundColor=function(t){this._backgroundColor=t;var e=this._bgVNode;if(e&&e.elm){var o=fs(t),f=o.opacity;e.elm.setAttribute("fill",o.color),f<1&&e.elm.setAttribute("fill-opacity",f)}},a.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},a.prototype._paintList=function(t,e,o){for(var h,v,u=t.length,f=[],d=0,g=0,m=0;m=0&&(!b||!v||b[k]!==v[k]);k--);for(var D=S-1;D>k;D--)h=f[--d-1];for(var x=k+1;x-1&&(g.style.stroke=g.style.fill,g.style.fill="#fff",g.style.lineWidth=2),o},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={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},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,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(fr),DU=zL;function Nv(a,t){var e=a.mapDimensionsAll("defaultedLabel"),o=e.length;if(1===o){var u=uv(a,t,e[0]);return null!=u?u+"":null}if(o){for(var f=[],d=0;d=0&&o.push(t[f])}return o.join(" ")}var UL=function(a){function t(e,o,u,f){var d=a.call(this)||this;return d.updateData(e,o,u,f),d}return de(t,a),t.prototype._createSymbol=function(e,o,u,f,d){this.removeAll();var h=Dr(e,-1,-1,2,2,null,d);h.attr({z2:100,culling:!0,scaleX:f[0]/2,scaleY:f[1]/2}),h.drift=xU,this._symbolType=e,this.add(h)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){jo(this.childAt(0))},t.prototype.downplay=function(){Bu(this.childAt(0))},t.prototype.setZ=function(e,o){var u=this.childAt(0);u.zlevel=e,u.z=o},t.prototype.setDraggable=function(e){var o=this.childAt(0);o.draggable=e,o.cursor=e?"move":o.cursor},t.prototype.updateData=function(e,o,u,f){this.silent=!1;var d=e.getItemVisual(o,"symbol")||"circle",h=e.hostModel,v=t.getSymbolSize(e,o),g=d!==this._symbolType,m=f&&f.disableAnimation;if(g){var y=e.getItemVisual(o,"symbolKeepAspect");this._createSymbol(d,e,o,v,y)}else{(b=this.childAt(0)).silent=!1;var C={scaleX:v[0]/2,scaleY:v[1]/2};m?b.attr(C):Ut(b,C,h,o),iu(b)}if(this._updateCommon(e,o,v,u,f),g){var b=this.childAt(0);m||(C={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:b.style.opacity}},b.scaleX=b.scaleY=0,b.style.opacity=0,nr(b,C,h,o))}m&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,o,u,f,d){var g,m,y,b,C,S,k,D,x,h=this.childAt(0),v=e.hostModel;if(f&&(g=f.emphasisItemStyle,m=f.blurItemStyle,y=f.selectItemStyle,b=f.focus,C=f.blurScope,k=f.labelStatesModels,D=f.hoverScale,x=f.cursorStyle,S=f.emphasisDisabled),!f||e.hasItemOption){var T=f&&f.itemModel?f.itemModel:e.getItemModel(o),E=T.getModel("emphasis");g=E.getModel("itemStyle").getItemStyle(),y=T.getModel(["select","itemStyle"]).getItemStyle(),m=T.getModel(["blur","itemStyle"]).getItemStyle(),b=E.get("focus"),C=E.get("blurScope"),S=E.get("disabled"),k=va(T),D=E.getShallow("scale"),x=T.getShallow("cursor")}var P=e.getItemVisual(o,"symbolRotate");h.attr("rotation",(P||0)*Math.PI/180||0);var V=uh(e.getItemVisual(o,"symbolOffset"),u);V&&(h.x=V[0],h.y=V[1]),x&&h.attr("cursor",x);var N=e.getItemVisual(o,"style"),H=N.fill;if(h instanceof Ki){var j=h.style;h.useStyle(ve({image:j.image,x:j.x,y:j.y,width:j.width,height:j.height},N))}else h.useStyle(h.__isEmptyBrush?ve({},N):N),h.style.decal=null,h.setColor(H,d&&d.symbolInnerColor),h.style.strokeNoScale=!0;var Z=e.getItemVisual(o,"liftZ"),W=this._z2;null!=Z?null==W&&(this._z2=h.z2,h.z2+=Z):null!=W&&(h.z2=W,this._z2=null);var X=d&&d.useNameLabel;$i(h,k,{labelFetcher:v,labelDataIndex:o,defaultText:function J(ie){return X?e.getName(ie):Nv(e,ie)},inheritColor:H,defaultOpacity:N.opacity}),this._sizeX=u[0]/2,this._sizeY=u[1]/2;var ee=h.ensureState("emphasis");if(ee.style=g,h.ensureState("select").style=y,h.ensureState("blur").style=m,D){var re=Math.max(Cn(D)?D:1.1,3/this._sizeY);ee.scaleX=this._sizeX*re,ee.scaleY=this._sizeY*re}this.setSymbolScale(1),Yr(this,b,C,S)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,o,u){var f=this.childAt(0),d=vt(this).dataIndex,h=u&&u.animation;if(this.silent=f.silent=!0,u&&u.fadeLabel){var v=f.getTextContent();v&&ru(v,{style:{opacity:0}},o,{dataIndex:d,removeOpt:h,cb:function(){f.removeTextContent()}})}else f.removeTextContent();ru(f,{style:{opacity:0},scaleX:0,scaleY:0},o,{dataIndex:d,cb:e,removeOpt:h})},t.getSymbolSize=function(e,o){return p_(e.getItemVisual(o,"symbolSize"))},t}(ct);function xU(a,t){this.parent.drift(a,t)}var X_=UL;function hw(a,t,e,o){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(o.isIgnore&&o.isIgnore(e))&&!(o.clipShape&&!o.clipShape.contain(t[0],t[1]))&&"none"!==a.getItemVisual(e,"symbol")}function jL(a){return null!=a&&!Ke(a)&&(a={isIgnore:a}),a||{}}function WL(a){var t=a.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:va(t),cursorStyle:t.get("cursor")}}var TU=function(){function a(t){this.group=new ct,this._SymbolCtor=t||X_}return a.prototype.updateData=function(t,e){this._progressiveEls=null,e=jL(e);var o=this.group,u=t.hostModel,f=this._data,d=this._SymbolCtor,h=e.disableAnimation,v=WL(t),g={disableAnimation:h},m=e.getSymbolPoint||function(y){return t.getItemLayout(y)};f||o.removeAll(),t.diff(f).add(function(y){var b=m(y);if(hw(t,b,y,e)){var C=new d(t,y,v,g);C.setPosition(b),t.setItemGraphicEl(y,C),o.add(C)}}).update(function(y,b){var C=f.getItemGraphicEl(b),S=m(y);if(hw(t,S,y,e)){var k=t.getItemVisual(y,"symbol")||"circle",D=C&&C.getSymbolType&&C.getSymbolType();if(!C||D&&D!==k)o.remove(C),(C=new d(t,y,v,g)).setPosition(S);else{C.updateData(t,y,v,g);var x={x:S[0],y:S[1]};h?C.attr(x):Ut(C,x,u)}o.add(C),t.setItemGraphicEl(y,C)}else o.remove(C)}).remove(function(y){var b=f.getItemGraphicEl(y);b&&b.fadeOut(function(){o.remove(b)},u)}).execute(),this._getSymbolPoint=m,this._data=t},a.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(o,u){var f=t._getSymbolPoint(u);o.setPosition(f),o.markRedraw()})},a.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=WL(t),this._data=null,this.group.removeAll()},a.prototype.incrementalUpdate=function(t,e,o){function u(v){v.isGroup||(v.incremental=!0,v.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],o=jL(o);for(var f=t.start;f0?e=o[0]:o[1]<0&&(e=o[1]),e}(u,e),d=o.dim,h=u.dim,v=t.mapDimension(h),g=t.mapDimension(d),m="x"===h||"radius"===h?1:0,y=Me(a.dimensions,function(S){return t.mapDimension(S)}),b=!1,C=t.getCalculationInfo("stackResultDimension");return $u(t,y[0])&&(b=!0,y[0]=C),$u(t,y[1])&&(b=!0,y[1]=C),{dataDimsForPoint:y,valueStart:f,valueAxisDim:h,baseAxisDim:d,stacked:!!b,valueDim:v,baseDim:g,baseDataOffset:m,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function qL(a,t,e,o){var u=NaN;a.stacked&&(u=e.get(e.getCalculationInfo("stackedOverDimension"),o)),isNaN(u)&&(u=a.valueStart);var f=a.baseDataOffset,d=[];return d[f]=e.get(a.baseDim,o),d[1-f]=u,t.dataToPoint(d)}var ic=Math.min,wh=Math.max;function Sh(a,t){return isNaN(a)||isNaN(t)}function ZL(a,t,e,o,u,f,d,h,v){for(var g,m,y,b,C,S,k=e,D=0;D=u||k<0)break;if(Sh(x,T)){if(v){k+=f;continue}break}if(k===e)a[f>0?"moveTo":"lineTo"](x,T),y=x,b=T;else{var E=x-g,P=T-m;if(E*E+P*P<.5){k+=f;continue}if(d>0){for(var V=k+f,N=t[2*V],H=t[2*V+1];N===x&&H===T&&D=o||Sh(N,H))C=x,S=T;else{W=N-g,X=H-m;var re=x-g,ie=N-x,ce=T-m,me=H-T,pe=void 0,_e=void 0;if("x"===h){var Pe=W>0?1:-1;C=x-Pe*(pe=Math.abs(re))*d,S=T,J=x+Pe*(_e=Math.abs(ie))*d,ee=T}else if("y"===h){var Be=X>0?1:-1;C=x,S=T-Be*(pe=Math.abs(ce))*d,J=x,ee=T+Be*(_e=Math.abs(me))*d}else pe=Math.sqrt(re*re+ce*ce),C=x-W*d*(1-(Z=(_e=Math.sqrt(ie*ie+me*me))/(_e+pe))),S=T-X*d*(1-Z),ee=T+X*d*Z,J=ic(J=x+W*d*Z,wh(N,x)),ee=ic(ee,wh(H,T)),J=wh(J,ic(N,x)),S=T-(X=(ee=wh(ee,ic(H,T)))-T)*pe/_e,C=ic(C=x-(W=J-x)*pe/_e,wh(g,x)),S=ic(S,wh(m,T)),J=x+(W=x-(C=wh(C,ic(g,x))))*_e/pe,ee=T+(X=T-(S=wh(S,ic(m,T))))*_e/pe}a.bezierCurveTo(y,b,C,S,x,T),y=J,b=ee}else a.lineTo(x,T)}g=x,m=T,k+=f}return D}var OU=function a(){this.smooth=0,this.smoothConstraint=!0},IU=function(a){function t(e){var o=a.call(this,e)||this;return o.type="ec-polyline",o}return de(t,a),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new OU},t.prototype.buildPath=function(e,o){var u=o.points,f=0,d=u.length/2;if(o.connectNulls){for(;d>0&&Sh(u[2*d-2],u[2*d-1]);d--);for(;f=0){var P=g?(S-v)*E+v:(C-h)*E+h;return g?[e,P]:[P,e]}h=C,v=S;break;case d.C:C=f[y++],S=f[y++],k=f[y++],D=f[y++],x=f[y++],T=f[y++];var V=g?Ma(h,C,k,x,e,m):Ma(v,S,D,T,e,m);if(V>0)for(var N=0;N=0)return P=g?xt(v,S,D,T,H):xt(h,C,k,x,H),g?[e,P]:[P,e]}h=x,v=T}}},t}(Xt),RU=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return de(t,a),t}(OU),XL=function(a){function t(e){var o=a.call(this,e)||this;return o.type="ec-polygon",o}return de(t,a),t.prototype.getDefaultShape=function(){return new RU},t.prototype.buildPath=function(e,o){var u=o.points,f=o.stackedOnPoints,d=0,h=u.length/2,v=o.smoothMonotone;if(o.connectNulls){for(;h>0&&Sh(u[2*h-2],u[2*h-1]);h--);for(;do)return!1;return!0}(f,t))){var d=t.mapDimension(f.dim),h={};return q(f.getViewLabels(),function(v){var g=f.scale.getRawOrdinalNumber(v.tickValue);h[g]=1}),function(v){return!h.hasOwnProperty(t.get(d,v))}}}}(e,v,d),W=this._data;W&&W.eachItemGraphicEl(function(Bn,Tt){Bn.__temp&&(h.remove(Bn),W.setItemGraphicEl(Tt,null))}),H||S.remove(),h.add(x);var J,X=!b&&e.get("step");d&&d.getArea&&e.get("clip",!0)&&(null!=(J=d.getArea()).width?(J.x-=.1,J.y-=.1,J.width+=.2,J.height+=.2):J.r0&&(J.r0-=.5,J.r+=.5)),this._clipShapeForSymbol=J;var ee=function VU(a,t,e){var o=a.getVisual("visualMeta");if(o&&o.length&&a.count()&&"cartesian2d"===t.type){for(var u,f,d=o.length-1;d>=0;d--){var h=a.getDimensionInfo(o[d].dimension);if("x"===(u=h&&h.coordDim)||"y"===u){f=o[d];break}}if(f){var v=t.getAxis(u),g=Me(f.stops,function(E){return{coord:v.toGlobalCoord(v.dataToCoord(E.value)),color:E.color}}),m=g.length,y=f.outerColors.slice();m&&g[0].coord>g[m-1].coord&&(g.reverse(),y.reverse());var b=function PX(a,t){var u,f,e=[],o=a.length;function d(m,y,b){var C=m.coord;return{coord:b,color:rO((b-C)/(y.coord-C),[m.color,y.color])}}for(var h=0;ht){f?e.push(d(f,v,t)):u&&e.push(d(u,v,0),d(u,v,t));break}u&&(e.push(d(u,v,0)),u=null),e.push(v),f=v}}return e}(g,"x"===u?e.getWidth():e.getHeight()),C=b.length;if(!C&&m)return g[0].coord<0?y[1]?y[1]:g[m-1].color:y[0]?y[0]:g[0].color;var k=b[0].coord-10,D=b[C-1].coord+10,x=D-k;if(x<.001)return"transparent";q(b,function(E){E.offset=(E.coord-k)/x}),b.push({offset:C?b[C-1].offset:.5,color:y[1]||"transparent"}),b.unshift({offset:C?b[0].offset:.5,color:y[0]||"transparent"});var T=new ju(0,0,0,0,b,!0);return T[u]=k,T[u+"2"]=D,T}}}(v,d,u)||v.getVisual("style")[v.getVisual("drawType")];if(k&&C.type===d.type&&X===this._step){E&&!D?D=this._newPolygon(y,N):D&&!E&&(x.remove(D),D=this._polygon=null),b||this._initOrUpdateEndLabel(e,d,Wd(ee));var re=x.getClipPath();re?nr(re,{shape:$L(this,d,!1,e).shape},e):x.setClipPath($L(this,d,!0,e)),H&&S.updateData(v,{isIgnore:Z,clipShape:J,disableAnimation:!0,getSymbolPoint:function(Tt){return[y[2*Tt],y[2*Tt+1]]}}),(!NU(this._stackedOnPoints,N)||!NU(this._points,y))&&(T?this._doUpdateAnimation(v,N,d,u,X,P,j):(X&&(y=Mh(y,d,X,j),N&&(N=Mh(N,d,X,j))),k.setShape({points:y}),D&&D.setShape({points:y,stackedOnPoints:N})))}else H&&S.updateData(v,{isIgnore:Z,clipShape:J,disableAnimation:!0,getSymbolPoint:function(Tt){return[y[2*Tt],y[2*Tt+1]]}}),T&&this._initSymbolLabelAnimation(v,d,J),X&&(y=Mh(y,d,X,j),N&&(N=Mh(N,d,X,j))),k=this._newPolyline(y),E&&(D=this._newPolygon(y,N)),b||this._initOrUpdateEndLabel(e,d,Wd(ee)),x.setClipPath($L(this,d,!0,e));var ce=e.getModel("emphasis"),me=ce.get("focus"),pe=ce.get("blurScope"),_e=ce.get("disabled");k.useStyle(rt(g.getLineStyle(),{fill:"none",stroke:ee,lineJoin:"bevel"})),pa(k,e,"lineStyle"),k.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"])&&(k.getState("emphasis").style.lineWidth=+k.style.lineWidth+1),vt(k).seriesIndex=e.seriesIndex,Yr(k,me,pe,_e);var Be=Wx(e.get("smooth")),He=e.get("smoothMonotone");if(k.setShape({smooth:Be,smoothMonotone:He,connectNulls:j}),D){var nt=v.getCalculationInfo("stackedOnSeries"),ht=0;D.useStyle(rt(m.getAreaStyle(),{fill:ee,opacity:.7,lineJoin:"bevel",decal:v.getVisual("style").decal})),nt&&(ht=Wx(nt.get("smooth"))),D.setShape({smooth:Be,stackedOnSmooth:ht,smoothMonotone:He,connectNulls:j}),pa(D,e,"areaStyle"),vt(D).seriesIndex=e.seriesIndex,Yr(D,me,pe,_e)}var In=function(Tt){f._changePolyState(Tt)};v.eachItemGraphicEl(function(Bn){Bn&&(Bn.onHoverStateChange=In)}),this._polyline.onHoverStateChange=In,this._data=v,this._coordSys=d,this._stackedOnPoints=N,this._points=y,this._step=X,this._valueOrigin=P,e.get("triggerLineEvent")&&(this.packEventData(e,k),D&&this.packEventData(e,D))},t.prototype.packEventData=function(e,o){vt(o).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,o,u,f){var d=e.getData(),h=wd(d,f);if(this._changePolyState("emphasis"),!(h instanceof Array)&&null!=h&&h>=0){var v=d.getLayout("points"),g=d.getItemGraphicEl(h);if(!g){var m=v[2*h],y=v[2*h+1];if(isNaN(m)||isNaN(y)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(m,y))return;var b=e.get("zlevel"),C=e.get("z");(g=new X_(d,h)).x=m,g.y=y,g.setZ(b,C);var S=g.getSymbolPath().getTextContent();S&&(S.zlevel=b,S.z=C,S.z2=this._polyline.z2+1),g.__temp=!0,d.setItemGraphicEl(h,g),g.stopSymbolAnimation(!0),this.group.add(g)}g.highlight()}else jn.prototype.highlight.call(this,e,o,u,f)},t.prototype.downplay=function(e,o,u,f){var d=e.getData(),h=wd(d,f);if(this._changePolyState("normal"),null!=h&&h>=0){var v=d.getItemGraphicEl(h);v&&(v.__temp?(d.setItemGraphicEl(h,null),this.group.remove(v)):v.downplay())}else jn.prototype.downplay.call(this,e,o,u,f)},t.prototype._changePolyState=function(e){var o=this._polygon;xm(this._polyline,e),o&&xm(o,e)},t.prototype._newPolyline=function(e){var o=this._polyline;return o&&this._lineGroup.remove(o),o=new IU({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(o),this._polyline=o,o},t.prototype._newPolygon=function(e,o){var u=this._polygon;return u&&this._lineGroup.remove(u),u=new XL({shape:{points:e,stackedOnPoints:o},segmentIgnoreThreshold:2}),this._lineGroup.add(u),this._polygon=u,u},t.prototype._initSymbolLabelAnimation=function(e,o,u){var f,d,h=o.getBaseAxis(),v=h.inverse;"cartesian2d"===o.type?(f=h.isHorizontal(),d=!1):"polar"===o.type&&(f="angle"===h.dim,d=!0);var g=e.hostModel,m=g.get("animationDuration");et(m)&&(m=m(null));var y=g.get("animationDelay")||0,b=et(y)?y(null):y;e.eachItemGraphicEl(function(C,S){var k=C;if(k){var x=void 0,T=void 0,E=void 0;if(u)if(d){var P=u,V=o.pointToCoord([C.x,C.y]);f?(x=P.startAngle,T=P.endAngle,E=-V[1]/180*Math.PI):(x=P.r0,T=P.r,E=V[0])}else f?(x=u.x,T=u.x+u.width,E=C.x):(x=u.y+u.height,T=u.y,E=C.y);var H=T===x?0:(E-x)/(T-x);v&&(H=1-H);var j=et(y)?y(S):m*H+b,Z=k.getSymbolPath(),W=Z.getTextContent();k.attr({scaleX:0,scaleY:0}),k.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:j}),W&&W.animateFrom({style:{opacity:0}},{duration:300,delay:j}),Z.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,o,u){var f=e.getModel("endLabel");if(GU(e)){var d=e.getData(),h=this._polyline,v=d.getLayout("points");if(!v)return h.removeTextContent(),void(this._endLabel=null);var g=this._endLabel;g||((g=this._endLabel=new dn({z2:200})).ignoreClip=!0,h.setTextContent(this._endLabel),h.disableLabelAnimation=!0);var m=function RX(a){for(var t=a.length/2;t>0&&IX(a[2*t-2],a[2*t-1]);t--);return t-1}(v);m>=0&&($i(h,va(e,"endLabel"),{inheritColor:u,labelFetcher:e,labelDataIndex:m,defaultText:function(b,C,S){return null!=S?GL(d,S):Nv(d,b)},enableTextSetter:!0},function FX(a,t){var e=t.getBaseAxis(),o=e.isHorizontal(),u=e.inverse,f=o?u?"right":"left":"center",d=o?"middle":u?"top":"bottom";return{normal:{align:a.get("align")||f,verticalAlign:a.get("verticalAlign")||d}}}(f,o)),h.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,o,u,f,d,h,v){var g=this._endLabel,m=this._polyline;if(g){e<1&&null==f.originalX&&(f.originalX=g.x,f.originalY=g.y);var y=u.getLayout("points"),b=u.hostModel,C=b.get("connectNulls"),S=h.get("precision"),k=h.get("distance")||0,D=v.getBaseAxis(),x=D.isHorizontal(),T=D.inverse,E=o.shape,P=T?x?E.x:E.y+E.height:x?E.x+E.width:E.y,V=(x?k:0)*(T?-1:1),N=(x?0:-k)*(T?-1:1),H=x?"x":"y",j=function LX(a,t,e){for(var f,d,o=a.length/2,u="x"===e?0:1,h=0,v=-1,g=0;g=t||f>=t&&d<=t){v=g;break}h=g,f=d}return{range:[h,v],t:(t-f)/(d-f)}}(y,P,H),Z=j.range,W=Z[1]-Z[0],X=void 0;if(W>=1){if(W>1&&!C){var J=zU(y,Z[0]);g.attr({x:J[0]+V,y:J[1]+N}),d&&(X=b.getRawValue(Z[0]))}else{(J=m.getPointOn(P,H))&&g.attr({x:J[0]+V,y:J[1]+N});var ee=b.getRawValue(Z[0]),re=b.getRawValue(Z[1]);d&&(X=EO(u,S,ee,re,j.t))}f.lastFrameIndex=Z[0]}else{var ie=1===e||f.lastFrameIndex>0?Z[0]:0;J=zU(y,ie),d&&(X=b.getRawValue(ie)),g.attr({x:J[0]+V,y:J[1]+N})}d&&Hd(g).setLabelText(X)}},t.prototype._doUpdateAnimation=function(e,o,u,f,d,h,v){var g=this._polyline,m=this._polygon,y=e.hostModel,b=function PU(a,t,e,o,u,f,d,h){for(var v=function EU(a,t){var e=[];return t.diff(a).add(function(o){e.push({cmd:"+",idx:o})}).update(function(o,u){e.push({cmd:"=",idx:u,idx1:o})}).remove(function(o){e.push({cmd:"-",idx:o})}).execute(),e}(a,t),g=[],m=[],y=[],b=[],C=[],S=[],k=[],D=YL(u,t,d),x=a.getLayout("points")||[],T=t.getLayout("points")||[],E=0;E3e3||m&&BU(S,D)>3e3)return g.stopAnimation(),g.setShape({points:k}),void(m&&(m.stopAnimation(),m.setShape({points:k,stackedOnPoints:D})));g.shape.__points=b.current,g.shape.points=C;var x={shape:{points:k}};b.current!==C&&(x.shape.__points=b.next),g.stopAnimation(),Ut(g,x,y),m&&(m.setShape({points:C,stackedOnPoints:S}),m.stopAnimation(),Ut(m,{shape:{stackedOnPoints:D}},y),g.shape.points!==m.shape.points&&(m.shape.points=g.shape.points));for(var T=[],E=b.status,P=0;Pe&&(e=t[o]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,o=0;o10&&"cartesian2d"===h.type&&d){var g=h.getBaseAxis(),m=h.getOtherAxis(g),y=g.getExtent(),b=u.getDevicePixelRatio(),C=Math.abs(y[1]-y[0])*(b||1),S=Math.round(v/C);if(isFinite(S)&&S>1){"lttb"===d&&e.setData(f.lttbDownSample(f.mapDimension(m.dim),1/S));var k=void 0;Ne(d)?k=Yx[d]:et(d)&&(k=d),k&&e.setData(f.downSample(f.mapDimension(m.dim),1/S,k,UU))}}}}}var dt=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.getInitialData=function(e,o){return wl(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e){var o=this.coordinateSystem;if(o&&o.clampData){var u=o.dataToPoint(o.clampData(e)),f=this.getData(),d=f.getLayout("offset"),h=f.getLayout("size");return u[o.getBaseAxis().isHorizontal()?0:1]+=d+h/2,u}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(fr);fr.registerClass(dt);var oc=dt,Ur=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.getInitialData=function(){return wl(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),o=this.get("largeThreshold");return o>e&&(e=o),e},t.prototype.brushSelector=function(e,o,u){return u.rect(o.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Xc(oc.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}),t}(oc),QL=Ur,JL=function a(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Bv=function(a){function t(e){var o=a.call(this,e)||this;return o.type="sausage",o}return de(t,a),t.prototype.getDefaultShape=function(){return new JL},t.prototype.buildPath=function(e,o){var u=o.cx,f=o.cy,d=Math.max(o.r0||0,0),h=Math.max(o.r,0),v=.5*(h-d),g=d+v,m=o.startAngle,y=o.endAngle,b=o.clockwise,C=2*Math.PI,S=b?y-mh)return!0;h=y}return!1},t.prototype._isOrderDifferentInView=function(e,o){for(var u=o.scale,f=u.getExtent(),d=Math.max(0,f[0]),h=Math.min(f[1],u.getOrdinalMeta().categories.length-1);d<=h;++d)if(e.ordinalNumbers[d]!==u.getRawOrdinalNumber(d))return!0},t.prototype._updateSortWithinSameData=function(e,o,u,f){if(this._isOrderChangedWithinSameData(e,o,u)){var d=this._dataSort(e,u,o);this._isOrderDifferentInView(d,u)&&(this._removeOnRenderedListener(f),f.dispatchAction({type:"changeAxisOrder",componentType:u.dim+"Axis",axisId:u.index,sortInfo:d}))}},t.prototype._dispatchInitSort=function(e,o,u){var f=o.baseAxis,d=this._dataSort(e,f,function(h){return e.get(e.mapDimension(o.otherAxis.dim),h)});u.dispatchAction({type:"changeAxisOrder",componentType:f.dim+"Axis",isInitSort:!0,axisId:f.index,sortInfo:d})},t.prototype.remove=function(e,o){this._clear(this._model),this._removeOnRenderedListener(o)},t.prototype.dispose=function(e,o){this._removeOnRenderedListener(o)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var o=this.group,u=this._data;e&&e.isAnimationEnabled()&&u&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],u.eachItemGraphicEl(function(f){Xp(f,e,vt(f).dataIndex)})):o.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(jn),eF={cartesian2d:function(t,e){var o=e.width<0?-1:1,u=e.height<0?-1:1;o<0&&(e.x+=e.width,e.width=-e.width),u<0&&(e.y+=e.height,e.height=-e.height);var f=t.x+t.width,d=t.y+t.height,h=mw(e.x,t.x),v=Df(e.x+e.width,f),g=mw(e.y,t.y),m=Df(e.y+e.height,d),y=vf?v:h,e.y=b&&g>d?m:g,e.width=y?0:v-h,e.height=b?0:m-g,o<0&&(e.x+=e.width,e.width=-e.width),u<0&&(e.y+=e.height,e.height=-e.height),y||b},polar:function(t,e){var o=e.r0<=e.r?1:-1;if(o<0){var u=e.r;e.r=e.r0,e.r0=u}var f=Df(e.r,t.r),d=mw(e.r0,t.r0);e.r=f,e.r0=d;var h=f-d<0;return o<0&&(u=e.r,e.r=e.r0,e.r0=u),h}},Zx={cartesian2d:function(t,e,o,u,f,d,h,v,g){var m=new fn({shape:ve({},u),z2:1});return m.__dataIndex=o,m.name="item",d&&(m.shape[f?"height":"width"]=0),m},polar:function(t,e,o,u,f,d,h,v,g){var m=!f&&g?vw:Ja,y=new m({shape:u,z2:1});y.name="item";var b=$x(f);if(y.calculateTextPosition=function jU(a,t){var e=(t=t||{}).isRoundCap;return function(o,u,f){var d=u.position;if(!d||d instanceof Array)return Ou(o,u,f);var h=a(d),v=null!=u.distance?u.distance:5,g=this.shape,m=g.cx,y=g.cy,b=g.r,C=g.r0,S=(b+C)/2,k=g.startAngle,D=g.endAngle,x=(k+D)/2,T=e?Math.abs(b-C)/2:0,E=Math.cos,P=Math.sin,V=m+b*E(k),N=y+b*P(k),H="left",j="top";switch(h){case"startArc":V=m+(C-v)*E(x),N=y+(C-v)*P(x),H="center",j="top";break;case"insideStartArc":V=m+(C+v)*E(x),N=y+(C+v)*P(x),H="center",j="bottom";break;case"startAngle":V=m+S*E(k)+gw(k,v+T,!1),N=y+S*P(k)+Q_(k,v+T,!1),H="right",j="middle";break;case"insideStartAngle":V=m+S*E(k)+gw(k,-v+T,!1),N=y+S*P(k)+Q_(k,-v+T,!1),H="left",j="middle";break;case"middle":V=m+S*E(x),N=y+S*P(x),H="center",j="middle";break;case"endArc":V=m+(b+v)*E(x),N=y+(b+v)*P(x),H="center",j="bottom";break;case"insideEndArc":V=m+(b-v)*E(x),N=y+(b-v)*P(x),H="center",j="top";break;case"endAngle":V=m+S*E(D)+gw(D,v+T,!0),N=y+S*P(D)+Q_(D,v+T,!0),H="left",j="middle";break;case"insideEndAngle":V=m+S*E(D)+gw(D,-v+T,!0),N=y+S*P(D)+Q_(D,-v+T,!0),H="right",j="middle";break;default:return Ou(o,u,f)}return(o=o||{}).x=V,o.y=N,o.align=H,o.verticalAlign=j,o}}(b,{isRoundCap:m===vw}),d){var S=f?"r":"endAngle",k={};y.shape[S]=f?0:u.startAngle,k[S]=u[S],(v?Ut:nr)(y,{shape:k},d)}return y}};function Xx(a,t,e,o,u,f,d,h){var v,g;f?(g={x:o.x,width:o.width},v={y:o.y,height:o.height}):(g={y:o.y,height:o.height},v={x:o.x,width:o.width}),h||(d?Ut:nr)(e,{shape:v},t,u,null),(d?Ut:nr)(e,{shape:g},t?a.baseAxis.model:null,u)}function nF(a,t){for(var e=0;e0?1:-1,h=u.height>0?1:-1;return{x:u.x+d*f/2,y:u.y+h*f/2,width:u.width-d*f,height:u.height-h*f}},polar:function(t,e,o){var u=t.getItemLayout(e);return{cx:u.cx,cy:u.cy,r0:u.r0,r:u.r,startAngle:u.startAngle,endAngle:u.endAngle,clockwise:u.clockwise}}};function $x(a){return function(t){var e=t?"Arc":"Angle";return function(o){switch(o){case"start":case"insideStart":case"end":case"insideEnd":return o+e;default:return o}}}(a)}function bw(a,t,e,o,u,f,d,h){var v=t.getItemVisual(e,"style");h||a.setShape("r",o.get(["itemStyle","borderRadius"])||0),a.useStyle(v);var g=o.getShallow("cursor");g&&a.attr("cursor",g);var m=h?d?u.r>=u.r0?"endArc":"startArc":u.endAngle>=u.startAngle?"endAngle":"startAngle":d?u.height>=0?"bottom":"top":u.width>=0?"right":"left",y=va(o);$i(a,y,{labelFetcher:f,labelDataIndex:e,defaultText:Nv(f.getData(),e),inheritColor:v.fill,defaultOpacity:v.opacity,defaultOutsidePosition:m});var b=a.getTextContent();if(h&&b){var C=o.get(["label","position"]);a.textConfig.inside="middle"===C||null,function WU(a,t,e,o){if(Cn(o))a.setTextConfig({rotation:o});else if(Ce(t))a.setTextConfig({rotation:0});else{var v,u=a.shape,f=u.clockwise?u.startAngle:u.endAngle,d=u.clockwise?u.endAngle:u.startAngle,h=(f+d)/2,g=e(t);switch(g){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":v=h;break;case"startAngle":case"insideStartAngle":v=f;break;case"endAngle":case"insideEndAngle":v=d;break;default:return void a.setTextConfig({rotation:0})}var m=1.5*Math.PI-v;"middle"===g&&m>Math.PI/2&&m<1.5*Math.PI&&(m-=Math.PI),a.setTextConfig({rotation:m})}}(a,"outside"===C?m:C,$x(d),o.get(["label","rotate"]))}dI(b,y,f.getRawValue(e),function(k){return GL(t,k)});var S=o.getModel(["emphasis"]);Yr(a,S.get("focus"),S.get("blurScope"),S.get("disabled")),pa(a,o),function rF(a){return null!=a.startAngle&&null!=a.endAngle&&a.startAngle===a.endAngle}(u)&&(a.style.fill="none",a.style.stroke="none",q(a.states,function(k){k.style&&(k.style.fill=k.style.stroke="none")}))}var aF=function a(){},Qx=function(a){function t(e){var o=a.call(this,e)||this;return o.type="largeBar",o}return de(t,a),t.prototype.getDefaultShape=function(){return new aF},t.prototype.buildPath=function(e,o){for(var u=o.points,f=this.baseDimIdx,d=1-this.baseDimIdx,h=[],v=[],g=this.barWidth,m=0;m=h[0]&&t<=h[0]+v[0]&&e>=h[1]&&e<=h[1]+v[1])return d[m]}return-1}(this,a.offsetX,a.offsetY);vt(this).dataIndex=e>=0?e:null},30,!1);function ZU(a,t,e){if(ac(e,"cartesian2d")){var o=t,u=e.getArea();return{x:a?o.x:u.x,y:a?u.y:o.y,width:a?o.width:u.width,height:a?u.height:o.height}}return{cx:(u=e.getArea()).cx,cy:u.cy,r0:a?u.r0:t.r0,r:a?u.r:t.r,startAngle:a?t.startAngle:0,endAngle:a?t.endAngle:2*Math.PI}}var UX=YU,Jx=2*Math.PI,XU=Math.PI/180;function sF(a,t){return oi(a.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function lF(a,t){var e=sF(a,t),o=a.get("center"),u=a.get("radius");Ce(u)||(u=[0,u]),Ce(o)||(o=[o,o]);var f=Ie(e.width,t.getWidth()),d=Ie(e.height,t.getHeight()),h=Math.min(f,d);return{cx:Ie(o[0],f)+e.x,cy:Ie(o[1],d)+e.y,r0:Ie(u[0],h/2),r:Ie(u[1],h/2)}}function uF(a,t,e){t.eachSeriesByType(a,function(o){var u=o.getData(),f=u.mapDimension("value"),d=sF(o,e),h=lF(o,e),v=h.cx,g=h.cy,m=h.r,y=h.r0,b=-o.get("startAngle")*XU,C=o.get("minAngle")*XU,S=0;u.each(f,function(W){!isNaN(W)&&S++});var k=u.getSum(f),D=Math.PI/(k||S)*2,x=o.get("clockwise"),T=o.get("roseType"),E=o.get("stillShowZeroSum"),P=u.getDataExtent(f);P[0]=0;var V=Jx,N=0,H=b,j=x?1:-1;if(u.setLayout({viewRect:d,r:m}),u.each(f,function(W,X){var J;if(isNaN(W))u.setItemLayout(X,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:v,cy:g,r0:y,r:T?NaN:m});else{(J="area"!==T?0===k&&E?D:W*D:Jx/S)e?x:D,V=Math.abs(E.label.y-e);if(V>=P.maxY){var N=E.label.x-t-E.len2*u,H=o+E.len,j=Math.abs(N)a.unconstrainedWidth?null:C:null)}var k=o.getBoundingRect();f.width=k.width,f.height=k.height+((o.style.margin||0)+2.1),f.y-=(f.height-y)/2}}}function nT(a){return"center"===a.position}function J_(a,t,e){var o=a.get("borderRadius");if(null==o)return e?{cornerRadius:0}:null;Ce(o)||(o=[o,o,o,o]);var u=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Me(o,function(f){return il(f,u)})}}var $U=function(a){function t(e,o,u){var f=a.call(this)||this;f.z2=2;var d=new dn;return f.setTextContent(d),f.updateData(e,o,u,!0),f}return de(t,a),t.prototype.updateData=function(e,o,u,f){var d=this,h=e.hostModel,v=e.getItemModel(o),g=v.getModel("emphasis"),m=e.getItemLayout(o),y=ve(J_(v.getModel("itemStyle"),m,!0),m);if(isNaN(y.startAngle))d.setShape(y);else{if(f){d.setShape(y);var b=h.getShallow("animationType");h.ecModel.ssr?(nr(d,{scaleX:0,scaleY:0},h,{dataIndex:o,isFrom:!0}),d.originX=y.cx,d.originY=y.cy):"scale"===b?(d.shape.r=m.r0,nr(d,{shape:{r:m.r}},h,o)):null!=u?(d.setShape({startAngle:u,endAngle:u}),nr(d,{shape:{startAngle:m.startAngle,endAngle:m.endAngle}},h,o)):(d.shape.endAngle=m.startAngle,Ut(d,{shape:{endAngle:m.endAngle}},h,o))}else iu(d),Ut(d,{shape:y},h,o);d.useStyle(e.getItemVisual(o,"style")),pa(d,v);var C=(m.startAngle+m.endAngle)/2,S=h.get("selectedOffset"),k=Math.cos(C)*S,D=Math.sin(C)*S,x=v.getShallow("cursor");x&&d.attr("cursor",x),this._updateLabel(h,e,o),d.ensureState("emphasis").shape=ve({r:m.r+(g.get("scale")&&g.get("scaleSize")||0)},J_(g.getModel("itemStyle"),m)),ve(d.ensureState("select"),{x:k,y:D,shape:J_(v.getModel(["select","itemStyle"]),m)}),ve(d.ensureState("blur"),{shape:J_(v.getModel(["blur","itemStyle"]),m)});var T=d.getTextGuideLine(),E=d.getTextContent();T&&ve(T.ensureState("select"),{x:k,y:D}),ve(E.ensureState("select"),{x:k,y:D}),Yr(this,g.get("focus"),g.get("blurScope"),g.get("disabled"))}},t.prototype._updateLabel=function(e,o,u){var f=this,d=o.getItemModel(u),h=d.getModel("labelLine"),v=o.getItemVisual(u,"style"),g=v&&v.fill,m=v&&v.opacity;$i(f,va(d),{labelFetcher:o.hostModel,labelDataIndex:u,inheritColor:g,defaultOpacity:m,defaultText:e.getFormattedLabel(u,"normal")||o.getName(u)});var y=f.getTextContent();f.setTextConfig({position:null,rotation:null}),y.attr({z2:10});var b=e.get(["label","position"]);if("outside"!==b&&"outer"!==b)f.removeTextGuideLine();else{var C=this.getTextGuideLine();C||(C=new Ra,this.setTextGuideLine(C)),Mx(this,kx(d),{stroke:g,opacity:Su(h.get(["lineStyle","opacity"]),m,1)})}},t}(Ja),QU=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return de(t,a),t.prototype.render=function(e,o,u,f){var g,d=e.getData(),h=this._data,v=this.group;if(!h&&d.count()>0){for(var m=d.getItemLayout(0),y=1;isNaN(m&&m.startAngle)&&y0?"right":"left":He>0?"left":"right"}var zr=Math.PI,Ar=0,la=J.get("rotate");if(Cn(la))Ar=la*(zr/180);else if("center"===ee)Ar=0;else if("radial"===la||!0===la)Ar=He<0?-Be+zr:-Be;else if("tangential"===la&&"outside"!==ee&&"outer"!==ee){var co=Math.atan2(He,nt);co<0&&(co=2*zr+co),nt>0&&(co=zr+co),Ar=co-zr}if(f=!!Ar,Z.x=ht,Z.y=In,Z.rotation=Ar,Z.setStyle({verticalAlign:"middle"}),pt){Z.setStyle({align:Tt});var yH=Z.states.select;yH&&(yH.x+=Z.x,yH.y+=Z.y)}else{var cp=Z.getBoundingRect().clone();cp.applyTransform(Z.getComputedTransform());var Sq=(Z.style.margin||0)+2.1;cp.y-=Sq/2,cp.height+=Sq,e.push({label:Z,labelLine:W,position:ee,len:_e,len2:Pe,minTurnAngle:pe.get("minTurnAngle"),maxSurfaceAngle:pe.get("maxSurfaceAngle"),surfaceNormal:new Et(He,nt),linePoints:Bn,textAlign:Tt,labelDistance:re,labelAlignTo:ie,edgeDistance:ce,bleedMargin:me,rect:cp,unconstrainedWidth:cp.width,labelStyleWidth:Z.style.width})}H.setTextConfig({inside:pt})}}),!f&&a.get("avoidLabelOverlap")&&function KU(a,t,e,o,u,f,d,h){for(var v=[],g=[],m=Number.MAX_VALUE,y=-Number.MAX_VALUE,b=0;b=f.r0}},t.type="pie",t}(jn),YX=QU;function ey(a,t,e){t=Ce(t)&&{coordDimensions:t}||ve({encodeDefine:a.getEncode()},t);var o=a.getSource(),u=R_(o,t).dimensions,f=new ga(u,a);return f.initData(o,e),f}var Na=function(){function a(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return a.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},a.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},a.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},a.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},a}(),ty=Na,JU=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return de(t,a),t.prototype.init=function(e){a.prototype.init.apply(this,arguments),this.legendVisualProvider=new ty(ze(this.getData,this),ze(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){a.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return ey(this,{coordDimensions:["value"],encodeDefaulter:wt(Lk,this)})},t.prototype.getDataParams=function(e){var o=this.getData(),u=a.prototype.getDataParams.call(this,e),f=[];return o.each(o.mapDimension("value"),function(d){f.push(d)}),u.percent=wO(f,e,o.hostModel.get("percentPrecision")),u.$vars.push("percent"),u},t.prototype._defaultLabelLine=function(e){Cd(e,"labelLine",["show"]);var o=e.labelLine,u=e.emphasis.labelLine;o.show=o.show&&e.label.show,u.show=u.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",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,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(fr),e6=JU,n6=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return de(t,a),t.prototype.getInitialData=function(e,o){return wl(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,o,u){return u.point(o.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(fr),r6=n6,rT=function a(){},dF=function(a){function t(e){var o=a.call(this,e)||this;return o._off=0,o.hoverDataIdx=-1,o}return de(t,a),t.prototype.getDefaultShape=function(){return new rT},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,o){var y,u=o.points,f=o.size,d=this.symbolProxy,h=d.shape,v=e.getContext?e.getContext():e,m=this.softClipShape;if(v&&f[0]<4)this._ctx=v;else{for(this._ctx=null,y=this._off;y=0;g--){var m=2*g,y=f[m]-h/2,b=f[m+1]-v/2;if(e>=y&&o>=b&&e<=y+h&&o<=b+v)return g}return-1},t.prototype.contain=function(e,o){var u=this.transformCoordToLocal(e,o);return this.getBoundingRect().contain(e=u[0],o=u[1])?(this.hoverDataIdx=this.findDataIndex(e,o))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var o=this.shape,u=o.points,f=o.size,d=f[0],h=f[1],v=1/0,g=1/0,m=-1/0,y=-1/0,b=0;b=0&&(g.dataIndex=y+(t.startIndex||0))})},a.prototype.remove=function(){this._clear()},a.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},a}(),i6=ny,hF=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.render=function(e,o,u){var f=e.getData();this._updateSymbolDraw(f,e).updateData(f,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,o,u){var f=e.getData();this._updateSymbolDraw(f,e).incrementalPrepareUpdate(f),this._finished=!1},t.prototype.incrementalRender=function(e,o,u){this._symbolDraw.incrementalUpdate(e,o.getData(),{clipShape:this._getClipShape(o)}),this._finished=e.end===o.getData().count()},t.prototype.updateTransform=function(e,o,u){var f=e.getData();if(this.group.dirty(),!this._finished||f.count()>1e4)return{update:!0};var d=pw("").reset(e,o,u);d.progress&&d.progress({start:0,end:f.count(),count:f.count()},f),this._symbolDraw.updateLayout(f)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){var o=e.coordinateSystem,u=o&&o.getArea&&o.getArea();return e.get("clip",!0)?u:null},t.prototype._updateSymbolDraw=function(e,o){var u=this._symbolDraw,d=o.pipelineContext.large;return(!u||d!==this._isLargeDraw)&&(u&&u.remove(),u=this._symbolDraw=d?new i6:new K_,this._isLargeDraw=d,this.group.removeAll()),this.group.add(u.group),u},t.prototype.remove=function(e,o){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(jn),ry=hF,ww=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return de(t,a),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(sn),a6=ww,Dh=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return de(t,a),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ii).models[0]},t.type="cartesian2dAxis",t}(sn);Ir(Dh,wf);var iT={show:!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)"]}}},o6=Dt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},iT),_a=Dt({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}}},iT),aT={category:o6,value:_a,time:Dt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},_a),log:rt({logBase:10},_a)},To={value:1,category:1,time:1,log:1};function xf(a,t,e,o){q(To,function(u,f){var d=Dt(Dt({},aT[f],!0),o,!0),h=function(v){function g(){var m=null!==v&&v.apply(this,arguments)||this;return m.type=t+"Axis."+f,m}return de(g,v),g.prototype.mergeDefaultAndTheme=function(m,y){var b=qd(this),C=b?rv(m):{};Dt(m,y.getTheme().get(f+"Axis")),Dt(m,this.getDefaultOption()),m.type=oT(m),b&&Zd(m,C,b)},g.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=zC.createByAxisModel(this))},g.prototype.getCategories=function(m){var y=this.option;if("category"===y.type)return m?y.data:this.__ordinalMeta.categories},g.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},g.type=t+"Axis."+f,g.defaultOption=d,g}(e);a.registerComponentModel(h)}),a.registerSubTypeDefaulter(t+"Axis",oT)}function oT(a){return a.type||(a.data?"category":"value")}var l6=function(){function a(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return a.prototype.getAxis=function(t){return this._axes[t]},a.prototype.getAxes=function(){return Me(this._dimList,function(t){return this._axes[t]},this)},a.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Un(this.getAxes(),function(e){return e.scale.type===t})},a.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},a}(),sT=["x","y"];function xh(a){return"interval"===a.type||"time"===a.type}var ao=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=sT,e}return de(t,a),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,o=this.getAxis("y").scale;if(xh(e)&&xh(o)){var u=e.getExtent(),f=o.getExtent(),d=this.dataToPoint([u[0],f[0]]),h=this.dataToPoint([u[1],f[1]]),v=u[1]-u[0],g=f[1]-f[0];if(v&&g){var m=(h[0]-d[0])/v,y=(h[1]-d[1])/g,S=this._transform=[m,0,0,y,d[0]-u[0]*m,d[1]-f[0]*y];this._invTransform=ud([],S)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var o=this.getAxis("x"),u=this.getAxis("y");return o.contain(o.toLocalCoord(e[0]))&&u.contain(u.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.dataToPoint=function(e,o,u){u=u||[];var f=e[0],d=e[1];if(this._transform&&null!=f&&isFinite(f)&&null!=d&&isFinite(d))return Yi(u,e,this._transform);var h=this.getAxis("x"),v=this.getAxis("y");return u[0]=h.toGlobalCoord(h.dataToCoord(f,o)),u[1]=v.toGlobalCoord(v.dataToCoord(d,o)),u},t.prototype.clampData=function(e,o){var u=this.getAxis("x").scale,f=this.getAxis("y").scale,d=u.getExtent(),h=f.getExtent(),v=u.parse(e[0]),g=f.parse(e[1]);return(o=o||[])[0]=Math.min(Math.max(Math.min(d[0],d[1]),v),Math.max(d[0],d[1])),o[1]=Math.min(Math.max(Math.min(h[0],h[1]),g),Math.max(h[0],h[1])),o},t.prototype.pointToData=function(e,o){var u=[];if(this._invTransform)return Yi(u,e,this._invTransform);var f=this.getAxis("x"),d=this.getAxis("y");return u[0]=f.coordToData(f.toLocalCoord(e[0]),o),u[1]=d.coordToData(d.toLocalCoord(e[1]),o),u},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),o=this.getAxis("y").getGlobalExtent(),u=Math.min(e[0],e[1]),f=Math.min(o[0],o[1]),d=Math.max(e[0],e[1])-u,h=Math.max(o[0],o[1])-f;return new zt(u,f,d,h)},t}(l6),u6=ao,sc=function(a){function t(e,o,u,f,d){var h=a.call(this,e,o,u)||this;return h.index=0,h.type=f||"value",h.position=d||"bottom",h}return de(t,a),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var o=this.getExtent();return o[0]=this.toGlobalCoord(o[0]),o[1]=this.toGlobalCoord(o[1]),e&&o[0]>o[1]&&o.reverse(),o},t.prototype.pointToData=function(e,o){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),o)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(Fa),lT=sc;function Th(a,t,e){e=e||{};var o=a.coordinateSystem,u=t.axis,f={},d=u.getAxesOnZeroOf()[0],h=u.position,v=d?"onZero":h,g=u.dim,m=o.getRect(),y=[m.x,m.x+m.width,m.y,m.y+m.height],b={left:0,right:1,top:0,bottom:1,onZero:2},C=t.get("offset")||0,S="x"===g?[y[2]-C,y[3]+C]:[y[0]-C,y[1]+C];if(d){var k=d.toGlobalCoord(d.dataToCoord(0));S[b.onZero]=Math.max(Math.min(k,S[1]),S[0])}f.position=["y"===g?S[b[v]]:y[0],"x"===g?S[b[v]]:y[3]],f.rotation=Math.PI/2*("x"===g?0:1),f.labelDirection=f.tickDirection=f.nameDirection={top:-1,bottom:1,left:-1,right:1}[h],f.labelOffset=d?S[b[h]]-S[b.onZero]:0,t.get(["axisTick","inside"])&&(f.tickDirection=-f.tickDirection),Ui(e.labelInside,t.get(["axisLabel","inside"]))&&(f.labelDirection=-f.labelDirection);var x=t.get(["axisLabel","rotate"]);return f.labelRotate="top"===v?-x:x,f.z2=1,f}function uT(a){return"cartesian2d"===a.get("coordinateSystem")}function vF(a){var t={xAxisModel:null,yAxisModel:null};return q(t,function(e,o){var u=o.replace(/Model$/,""),f=a.getReferringComponents(u,ii).models[0];t[o]=f}),t}var cT=Math.log;function gF(a,t,e){var o=Qu.prototype,u=o.getTicks.call(e),f=o.getTicks.call(e,!0),d=u.length-1,h=o.getInterval.call(e),v=iL(a,t),g=v.extent,m=v.fixMin,y=v.fixMax;if("log"===a.type){var b=cT(a.base);g=[cT(g[0])/b,cT(g[1])/b]}a.setExtent(g[0],g[1]),a.calcNiceExtent({splitNumber:d,fixMin:m,fixMax:y});var C=o.getExtent.call(a);m&&(g[0]=C[0]),y&&(g[1]=C[1]);var S=o.getInterval.call(a),k=g[0],D=g[1];if(m&&y)S=(D-k)/d;else if(m)for(D=g[0]+S*d;Dg[0]&&isFinite(k)&&isFinite(g[0]);)S=ux(S),k=g[1]-S*d;else{a.getTicks().length-1>d&&(S=ux(S));var T=S*d;(k=Mr((D=Math.ceil(g[1]/S)*S)-T))<0&&g[0]>=0?(k=0,D=Mr(T)):D>0&&g[1]<=0&&(D=0,k=-Mr(T))}var E=(u[0].value-f[0].value)/h,P=(u[d].value-f[d].value)/h;o.setExtent.call(a,k+S*E,D+S*P),o.setInterval.call(a,S),(E||P)&&o.setNiceExtent.call(a,k+S,D-S)}var c6=function(){function a(t,e,o){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=sT,this._initCartesian(t,e,o),this.model=t}return a.prototype.getRect=function(){return this._rect},a.prototype.update=function(t,e){var o=this._axesMap;function u(d){var h,v=Zt(d),g=v.length;if(g){for(var m=[],y=g-1;y>=0;y--){var C=d[+v[y]],S=C.model,k=C.scale;lx(k)&&S.get("alignTicks")&&null==S.get("interval")?m.push(C):($o(k,S),lx(k)&&(h=C))}m.length&&(h||$o((h=m.pop()).scale,h.model),q(m,function(D){gF(D.scale,D.model,h.scale)}))}}this._updateScale(t,this.model),u(o.x),u(o.y);var f={};q(o.x,function(d){mF(o,"y",d,f)}),q(o.y,function(d){mF(o,"x",d,f)}),this.resize(this.model,e)},a.prototype.resize=function(t,e,o){var u=t.getBoxLayoutParams(),f=!o&&t.get("containLabel"),d=oi(u,{width:e.getWidth(),height:e.getHeight()});this._rect=d;var h=this._axesList;function v(){q(h,function(g){var m=g.isHorizontal(),y=m?[0,d.width]:[0,d.height],b=g.inverse?1:0;g.setExtent(y[b],y[1-b]),function _F(a,t){var e=a.getExtent(),o=e[0]+e[1];a.toGlobalCoord="x"===a.dim?function(u){return u+t}:function(u){return o-u+t},a.toLocalCoord="x"===a.dim?function(u){return u-t}:function(u){return o-u+t}}(g,m?d.x:d.y)})}v(),f&&(q(h,function(g){if(!g.model.get(["axisLabel","inside"])){var m=function V8(a){var e=a.scale;if(a.model.get(["axisLabel","show"])&&!e.isBlank()){var o,u,f=e.getExtent();u=e instanceof fx?e.count():(o=e.getTicks()).length;var v,d=a.getLabelModel(),h=Ov(a),g=1;u>40&&(g=Math.ceil(u/40));for(var m=0;m0&&o>0||e<0&&o<0)}(a)}var f6=c6,Tf=Math.PI,Ah=function(){function a(t,e){this.group=new ct,this.opt=e,this.axisModel=t,rt(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var o=new ct({x:e.position[0],y:e.position[1],rotation:e.rotation});o.updateTransform(),this._transformGroup=o}return a.prototype.hasBuilder=function(t){return!!yF[t]},a.prototype.add=function(t){yF[t](this.opt,this.axisModel,this.group,this._transformGroup)},a.prototype.getGroup=function(){return this.group},a.innerTextLayout=function(t,e,o){var f,d,u=MO(e-t);return n0(u)?(d=o>0?"top":"bottom",f="center"):n0(u-Tf)?(d=o>0?"bottom":"top",f="center"):(d="middle",f=u>0&&u0?"right":"left":o>0?"left":"right"),{rotation:u,textAlign:f,textVerticalAlign:d}},a.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},a.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},a}(),yF={axisLine:function(t,e,o,u){var f=e.get(["axisLine","show"]);if("auto"===f&&t.handleAutoShown&&(f=t.handleAutoShown("axisLine")),f){var d=e.axis.getExtent(),h=u.transform,v=[d[0],0],g=[d[1],0];h&&(Yi(v,v,h),Yi(g,g,h));var m=ve({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),y=new Nr({subPixelOptimize:!0,shape:{x1:v[0],y1:v[1],x2:g[0],y2:g[1]},style:m,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});y.anid="line",o.add(y);var b=e.get(["axisLine","symbol"]);if(null!=b){var C=e.get(["axisLine","symbolSize"]);Ne(b)&&(b=[b,b]),(Ne(C)||Cn(C))&&(C=[C,C]);var S=uh(e.get(["axisLine","symbolOffset"])||0,C),k=C[0],D=C[1];q([{rotate:t.rotation+Math.PI/2,offset:S[0],r:0},{rotate:t.rotation-Math.PI/2,offset:S[1],r:Math.sqrt((v[0]-g[0])*(v[0]-g[0])+(v[1]-g[1])*(v[1]-g[1]))}],function(x,T){if("none"!==b[T]&&null!=b[T]){var E=Dr(b[T],-k/2,-D/2,k,D,m.stroke,!0),P=x.r+x.offset;E.attr({rotation:x.rotate,x:v[0]+P*Math.cos(t.rotation),y:v[1]-P*Math.sin(t.rotation),silent:!0,z2:11}),o.add(E)}})}}},axisTickLabel:function(t,e,o,u){var f=function d6(a,t,e,o){var u=e.axis,f=e.getModel("axisTick"),d=f.get("show");if("auto"===d&&o.handleAutoShown&&(d=o.handleAutoShown("axisTick")),d&&!u.scale.isBlank()){for(var h=f.getModel("lineStyle"),v=o.tickDirection*f.get("length"),m=Mw(u.getTicksCoords(),t.transform,v,rt(h.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),y=0;ym[1]?-1:1,b=["start"===d?m[0]-y*g:"end"===d?m[1]+y*g:(m[0]+m[1])/2,hT(d)?t.labelOffset+h*g:0],S=e.get("nameRotate");null!=S&&(S=S*Tf/180),hT(d)?C=Ah.innerTextLayout(t.rotation,null!=S?S:t.rotation,h):(C=function bF(a,t,e,o){var f,d,u=MO(e-a),h=o[0]>o[1],v="start"===t&&!h||"start"!==t&&h;return n0(u-Tf/2)?(d=v?"bottom":"top",f="center"):n0(u-1.5*Tf)?(d=v?"top":"bottom",f="center"):(d="middle",f=u<1.5*Tf&&u>Tf/2?v?"left":"right":v?"right":"left"),{rotation:u,textAlign:f,textVerticalAlign:d}}(t.rotation,d,S||0,m),null!=(k=t.axisNameAvailableWidth)&&(k=Math.abs(k/Math.sin(C.rotation)),!isFinite(k)&&(k=null)));var D=v.getFont(),x=e.get("nameTruncate",!0)||{},T=x.ellipsis,E=Ui(t.nameTruncateMaxWidth,x.maxWidth,k),P=new dn({x:b[0],y:b[1],rotation:C.rotation,silent:Ah.isLabelSilent(e),style:Cr(v,{text:f,font:D,overflow:"truncate",width:E,ellipsis:T,fill:v.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:v.get("align")||C.textAlign,verticalAlign:v.get("verticalAlign")||C.textVerticalAlign}),z2:1});if(ih({el:P,componentModel:e,itemName:f}),P.__fullText=f,P.anid="name",e.get("triggerEvent")){var V=Ah.makeAxisEventDataBase(e);V.targetType="axisName",V.name=f,vt(P).eventData=V}u.add(P),P.updateTransform(),o.add(P),P.decomposeTransform()}}};function Ps(a){a&&(a.ignore=!0)}function Eh(a,t){var e=a&&a.getBoundingRect().clone(),o=t&&t.getBoundingRect().clone();if(e&&o){var u=Tp([]);return el(u,u,-a.rotation),e.applyTransform(Js([],u,a.getLocalTransform())),o.applyTransform(Js([],u,t.getLocalTransform())),e.intersect(o)}}function hT(a){return"middle"===a||"center"===a}function Mw(a,t,e,o,u){for(var f=[],d=[],h=[],v=0;v=0||a===t}function v6(a){var t=pT(a);if(t){var e=t.axisPointerModel,o=t.axis.scale,u=e.option,f=e.get("status"),d=e.get("value");null!=d&&(d=o.parse(d));var h=kw(e);null==f&&(u.status=h?"show":"hide");var v=o.getExtent().slice();v[0]>v[1]&&v.reverse(),(null==d||d>v[1])&&(d=v[1]),d0&&!S.min?S.min=0:null!=S.min&&S.min<0&&!S.max&&(S.max=0);var k=v;null!=S.color&&(k=rt({color:S.color},v));var D=Dt(ot(S),{boundaryGap:e,splitNumber:o,scale:u,axisLine:f,axisTick:d,axisLabel:h,name:S.text,showName:g,nameLocation:"end",nameGap:y,nameTextStyle:k,triggerEvent:b},!1);if(g||(D.name=""),Ne(m)){var x=D.name;D.name=m.replace("{value}",null!=x?x:"")}else et(m)&&(D.name=m(D.name,D));var T=new Kn(D,null,this.ecModel);return Ir(T,wf.prototype),T.mainType="radar",T.componentIndex=this.componentIndex,T},this);this._indicatorModels=C},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Dt({lineStyle:{color:"#bbb"}},ly.axisLine),axisLabel:Oh(ly.axisLabel,!1),axisTick:Oh(ly.axisTick,!1),splitLine:Oh(ly.splitLine,!0),splitArea:Oh(ly.splitArea,!0),indicator:[]},t}(sn),w6=C6,S6=["axisLine","axisTickLabel","axisName"],M6=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.render=function(e,o,u){this.group.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var o=e.coordinateSystem;q(Me(o.getIndicatorAxes(),function(d){var h=d.model.get("showName")?d.name:"";return new ra(d.model,{axisName:h,position:[o.cx,o.cy],rotation:d.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(d){q(S6,d.add,d),this.group.add(d.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var o=e.coordinateSystem,u=o.getIndicatorAxes();if(u.length){var f=e.get("shape"),d=e.getModel("splitLine"),h=e.getModel("splitArea"),v=d.getModel("lineStyle"),g=h.getModel("areaStyle"),m=d.get("show"),y=h.get("show"),b=v.get("color"),C=g.get("color"),S=Ce(b)?b:[b],k=Ce(C)?C:[C],D=[],x=[];if("circle"===f)for(var E=u[0].getTicksCoords(),P=o.cx,V=o.cy,N=0;N3?1.4:d>1?1.2:1.1;Pw(this,"zoom","zoomOnMouseWheel",e,{scale:f>0?g:1/g,originX:h,originY:v,isAvailableBehavior:null})}if(u){var y=Math.abs(f);Pw(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:(f>0?1:-1)*(y>3?.4:y>1?.15:.05),originX:h,originY:v,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){yT(this._zr,"globalPan")||Pw(this,"zoom",null,e,{scale:e.pinchScale>1?1.1:1/1.1,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})},t}(ls);function Pw(a,t,e,o,u){a.pointerChecker&&a.pointerChecker(o,u.originX,u.originY)&&(It(o.event),Ow(a,t,e,o,u))}function Ow(a,t,e,o,u){u.isAvailableBehavior=ze(uy,null,e,o),a.trigger(t,u)}function uy(a,t,e){var o=e[a];return!a||o&&(!Ne(o)||t.event[o+"Key"])}var Ih=Ew;function cy(a,t,e){var o=a.target;o.x+=t,o.y+=e,o.dirty()}function CT(a,t,e,o){var u=a.target,f=a.zoomLimit,d=a.zoom=a.zoom||1;if(d*=t,f){var h=f.min||0;d=Math.max(Math.min(f.max||1/0,d),h)}var g=d/a.zoom;a.zoom=d,u.x-=(e-u.x)*(g-1),u.y-=(o-u.y)*(g-1),u.scaleX*=g,u.scaleY*=g,u.dirty()}var fy={axisPointer:1,tooltip:1,brush:1};function Iw(a,t,e){var o=t.getComponentByElement(a.topTarget),u=o&&o.coordinateSystem;return o&&o!==e&&!fy.hasOwnProperty(o.mainType)&&u&&u.model!==e}function RF(a){Ne(a)&&(a=(new DOMParser).parseFromString(a,"text/xml"));var e=a;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}var wT,Rh={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},zv=Zt(Rh),Gv={"alignment-baseline":"textBaseline","stop-color":"stopColor"},ST=Zt(Gv),LF=function(){function a(){this._defs={},this._root=null}return a.prototype.parse=function(t,e){e=e||{};var o=RF(t);this._defsUsePending=[];var u=new ct;this._root=u;var m,y,f=[],d=o.getAttribute("viewBox")||"",h=parseFloat(o.getAttribute("width")||e.width),v=parseFloat(o.getAttribute("height")||e.height);isNaN(h)&&(h=null),isNaN(v)&&(v=null),Ao(o,u,null,!0,!1);for(var g=o.firstChild;g;)this._parseNode(g,u,f,null,!1,!1),g=g.nextSibling;if(function T6(a,t){for(var e=0;e=4&&(m={x:parseFloat(b[0]||0),y:parseFloat(b[1]||0),width:parseFloat(b[2]),height:parseFloat(b[3])})}if(m&&null!=h&&null!=v&&(y=Pf(m,{x:0,y:0,width:h,height:v}),!e.ignoreViewBox)){var C=u;(u=new ct).add(C),C.scaleX=C.scaleY=y.scale,C.x=y.x,C.y=y.y}return!e.ignoreRootClip&&null!=h&&null!=v&&u.setClipPath(new fn({shape:{x:0,y:0,width:h,height:v}})),{root:u,width:h,height:v,viewBoxRect:m,viewBoxTransform:y,named:f}},a.prototype._parseNode=function(t,e,o,u,f,d){var v,h=t.nodeName.toLowerCase(),g=u;if("defs"===h&&(f=!0),"text"===h&&(d=!0),"defs"===h||"switch"===h)v=e;else{if(!f){var m=wT[h];if(m&&je(wT,h)){v=m.call(this,t,e);var y=t.getAttribute("name");if(y){var b={name:y,namedFrom:null,svgNodeTagLower:h,el:v};o.push(b),"g"===h&&(g=b)}else u&&o.push({name:u.name,namedFrom:u,svgNodeTagLower:h,el:v});e.add(v)}}var C=FF[h];if(C&&je(FF,h)){var S=C.call(this,t),k=t.getAttribute("id");k&&(this._defs[k]=S)}}if(v&&v.isGroup)for(var D=t.firstChild;D;)1===D.nodeType?this._parseNode(D,v,o,g,f,d):3===D.nodeType&&d&&this._parseText(D,v),D=D.nextSibling},a.prototype._parseText=function(t,e){var o=new Cm({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Is(e,o),Ao(t,o,this._defsUsePending,!1,!1),function Lw(a,t){var e=t.__selfStyle;if(e){var o=e.textBaseline,u=o;o&&"auto"!==o&&"baseline"!==o?"before-edge"===o||"text-before-edge"===o?u="top":"after-edge"===o||"text-after-edge"===o?u="bottom":("central"===o||"mathematical"===o)&&(u="middle"):u="alphabetic",a.style.textBaseline=u}var f=t.__inheritedStyle;if(f){var d=f.textAlign,h=d;d&&("middle"===d&&(h="center"),a.style.textAlign=h)}}(o,e);var u=o.style,f=u.fontSize;f&&f<9&&(u.fontSize=9,o.scaleX*=f/9,o.scaleY*=f/9);var d=(u.fontSize||u.fontFamily)&&[u.fontStyle,u.fontWeight,(u.fontSize||12)+"px",u.fontFamily||"sans-serif"].join(" ");u.font=d;var h=o.getBoundingRect();return this._textX+=h.width,e.add(o),o},a.internalField=void(wT={g:function(e,o){var u=new ct;return Is(o,u),Ao(e,u,this._defsUsePending,!1,!1),u},rect:function(e,o){var u=new fn;return Is(o,u),Ao(e,u,this._defsUsePending,!1,!1),u.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),u.silent=!0,u},circle:function(e,o){var u=new ks;return Is(o,u),Ao(e,u,this._defsUsePending,!1,!1),u.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),u.silent=!0,u},line:function(e,o){var u=new Nr;return Is(o,u),Ao(e,u,this._defsUsePending,!1,!1),u.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),u.silent=!0,u},ellipse:function(e,o){var u=new $m;return Is(o,u),Ao(e,u,this._defsUsePending,!1,!1),u.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),u.silent=!0,u},polygon:function(e,o){var f,u=e.getAttribute("points");u&&(f=BF(u));var d=new Ia({shape:{points:f||[]},silent:!0});return Is(o,d),Ao(e,d,this._defsUsePending,!1,!1),d},polyline:function(e,o){var f,u=e.getAttribute("points");u&&(f=BF(u));var d=new Ra({shape:{points:f||[]},silent:!0});return Is(o,d),Ao(e,d,this._defsUsePending,!1,!1),d},image:function(e,o){var u=new Ki;return Is(o,u),Ao(e,u,this._defsUsePending,!1,!1),u.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),u.silent=!0,u},text:function(e,o){var u=e.getAttribute("x")||"0",f=e.getAttribute("y")||"0",d=e.getAttribute("dx")||"0",h=e.getAttribute("dy")||"0";this._textX=parseFloat(u)+parseFloat(d),this._textY=parseFloat(f)+parseFloat(h);var v=new ct;return Is(o,v),Ao(e,v,this._defsUsePending,!1,!0),v},tspan:function(e,o){var u=e.getAttribute("x"),f=e.getAttribute("y");null!=u&&(this._textX=parseFloat(u)),null!=f&&(this._textY=parseFloat(f));var d=e.getAttribute("dx")||"0",h=e.getAttribute("dy")||"0",v=new ct;return Is(o,v),Ao(e,v,this._defsUsePending,!1,!0),this._textX+=parseFloat(d),this._textY+=parseFloat(h),v},path:function(e,o){var f=DR(e.getAttribute("d")||"");return Is(o,f),Ao(e,f,this._defsUsePending,!1,!1),f.silent=!0,f}}),a}(),FF={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),o=parseInt(t.getAttribute("y1")||"0",10),u=parseInt(t.getAttribute("x2")||"10",10),f=parseInt(t.getAttribute("y2")||"0",10),d=new ju(e,o,u,f);return Rw(t,d),NF(t,d),d},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),o=parseInt(t.getAttribute("cy")||"0",10),u=parseInt(t.getAttribute("r")||"0",10),f=new vv(e,o,u);return Rw(t,f),NF(t,f),f}};function Rw(a,t){"userSpaceOnUse"===a.getAttribute("gradientUnits")&&(t.global=!0)}function NF(a,t){for(var e=a.firstChild;e;){if(1===e.nodeType&&"stop"===e.nodeName.toLocaleLowerCase()){var u,o=e.getAttribute("offset");u=o&&o.indexOf("%")>0?parseInt(o,10)/100:o?parseFloat(o):0;var f={};uc(e,f,f);var d=f.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:u,color:d})}e=e.nextSibling}}function Is(a,t){a&&a.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),rt(t.__inheritedStyle,a.__inheritedStyle))}function BF(a){for(var t=dy(a),e=[],o=0;o0;f-=2){var h=o[f-1],v=dy(o[f]);switch(u=u||[1,0,0,1,0,0],h){case"translate":vs(u,u,[parseFloat(v[0]),parseFloat(v[1]||"0")]);break;case"scale":$b(u,u,[parseFloat(v[0]),parseFloat(v[1]||v[0])]);break;case"rotate":el(u,u,-parseFloat(v[0])*MT);break;case"skewX":Js(u,[1,0,Math.tan(parseFloat(v[0])*MT),1,0,0],u);break;case"skewY":Js(u,[1,Math.tan(parseFloat(v[0])*MT),0,1,0,0],u);break;case"matrix":u[0]=parseFloat(v[0]),u[1]=parseFloat(v[1]),u[2]=parseFloat(v[2]),u[3]=parseFloat(v[3]),u[4]=parseFloat(v[4]),u[5]=parseFloat(v[5])}}t.setLocalTransform(u)}}(a,t),uc(a,d,h),o||function P6(a,t,e){for(var o=0;o0,D={api:o,geo:v,mapOrGeoModel:t,data:h,isVisualEncodedByVisualMap:k,isGeo:d,transformInfoRaw:b};"geoJSON"===v.resourceType?this._buildGeoJSON(D):"geoSVG"===v.resourceType&&this._buildSVG(D),this._updateController(t,e,o),this._updateMapSelectHandler(t,g,o,u)},a.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=$e(),o=$e(),u=this._regionsGroup,f=t.transformInfoRaw,d=t.mapOrGeoModel,h=t.data,v=t.geo.projection,g=v&&v.stream;function m(C,S){return S&&(C=S(C)),C&&[C[0]*f.scaleX+f.x,C[1]*f.scaleY+f.y]}function y(C){for(var S=[],k=!g&&v&&v.project,D=0;D=0)&&(b=u);var C=d?{normal:{align:"center",verticalAlign:"middle"}}:null;$i(t,va(o),{labelFetcher:b,labelDataIndex:y,defaultText:e},C);var S=t.getTextContent();if(S&&(xT(S).ignore=S.ignore,t.textConfig&&d)){var k=t.getBoundingRect().clone();t.textConfig.layoutRect=k,t.textConfig.position=[(d[0]-k.x)/k.width*100+"%",(d[1]-k.y)/k.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function YF(a,t,e,o,u,f){a.data?a.data.setItemGraphicEl(f,t):vt(t).eventData={componentType:"geo",componentIndex:u.componentIndex,geoIndex:u.componentIndex,name:e,region:o&&o.option||{}}}function qF(a,t,e,o,u){a.data||ih({el:t,componentModel:u,itemName:e,itemTooltipOption:o.get("tooltip")})}function ZF(a,t,e,o,u){t.highDownSilentOnTouch=!!u.get("selectedMode");var f=o.getModel("emphasis"),d=f.get("focus");return Yr(t,d,f.get("blurScope"),f.get("disabled")),a.isGeo&&function G(a,t,e){var o=vt(a);o.componentMainType=t.mainType,o.componentIndex=t.componentIndex,o.componentHighDownName=e}(t,u,e),d}function XF(a,t,e){var u,o=[];function f(){u=[]}function d(){u.length&&(o.push(u),u=[])}var h=t({polygonStart:f,polygonEnd:d,lineStart:f,lineEnd:d,point:function(g,m){isFinite(g)&&isFinite(m)&&u.push([g,m])},sphere:function(){}});return!e&&h.polygonStart(),q(a,function(v){h.lineStart();for(var g=0;g-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),u},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={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"},t}(fr),Hw=$F;function G6(a){var t={};a.eachSeriesByType("map",function(e){var o=e.getHostGeoModel(),u=o?"o"+o.id:"i"+e.getMapType();(t[u]=t[u]||[]).push(e)}),q(t,function(e,o){for(var u=function z6(a,t){var e={};return q(a,function(o){o.each(o.mapDimension("value"),function(u,f){var d="ec-"+o.getName(f);e[d]=e[d]||[],isNaN(u)||e[d].push(u)})}),a[0].map(a[0].mapDimension("value"),function(o,u){for(var f="ec-"+a[0].getName(u),d=0,h=1/0,v=-1/0,g=e[f].length,m=0;m1?(P.width=E,P.height=E/D):(P.height=E,P.width=E*D),P.y=T[1]-P.height/2,P.x=T[0]-P.width/2;else{var V=a.getBoxLayoutParams();V.aspect=D,P=oi(V,{width:S,height:k})}this.setViewRect(P.x,P.y,P.width,P.height),this.setCenter(a.get("center")),this.setZoom(a.get("zoom"))}var j6=function(){function a(){this.dimensions=eN}return a.prototype.create=function(t,e){var o=[];function u(d){return{nameProperty:d.get("nameProperty"),aspectScale:d.get("aspectScale"),projection:d.get("projection")}}t.eachComponent("geo",function(d,h){var v=d.get("map"),g=new rN(v+h,v,ve({nameMap:d.get("nameMap")},u(d)));g.zoomLimit=d.get("scaleLimit"),o.push(g),d.coordinateSystem=g,g.model=d,g.resize=iN,g.resize(d,e)}),t.eachSeries(function(d){if("geo"===d.get("coordinateSystem")){var v=d.get("geoIndex")||0;d.coordinateSystem=o[v]}});var f={};return t.eachSeriesByType("map",function(d){if(!d.getHostGeoModel()){var h=d.getMapType();f[h]=f[h]||[],f[h].push(d)}}),q(f,function(d,h){var v=Me(d,function(m){return m.get("nameMap")}),g=new rN(h,h,ve({nameMap:gr(v)},u(d[0])));g.zoomLimit=Ui.apply(null,Me(d,function(m){return m.get("scaleLimit")})),o.push(g),g.resize=iN,g.resize(d[0],e),q(d,function(m){m.coordinateSystem=g,function U6(a,t){q(t.get("geoCoord"),function(e,o){a.addGeoCoord(o,e)})}(g,m)})}),o},a.prototype.getFilledRegions=function(t,e,o,u){for(var f=(t||[]).slice(),d=$e(),h=0;h=0;){var f=t[e];f.hierNode.prelim+=o,f.hierNode.modifier+=o,o+=f.hierNode.shift+(u+=f.hierNode.change)}}(a);var f=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;u?(a.hierNode.prelim=u.hierNode.prelim+t(a,u),a.hierNode.modifier=a.hierNode.prelim-f):a.hierNode.prelim=f}else u&&(a.hierNode.prelim=u.hierNode.prelim+t(a,u));a.parentNode.hierNode.defaultAncestor=function pN(a,t,e,o){if(t){for(var u=a,f=a,d=f.parentNode.children[0],h=t,v=u.hierNode.modifier,g=f.hierNode.modifier,m=d.hierNode.modifier,y=h.hierNode.modifier;h=PT(h),f=by(f),h&&f;){u=PT(u),d=by(d),u.hierNode.ancestor=a;var b=h.hierNode.prelim+y-f.hierNode.prelim-g+o(h,f);b>0&&(J6(Q6(h,a,e),a,b),g+=b,v+=b),y+=h.hierNode.modifier,g+=f.hierNode.modifier,v+=u.hierNode.modifier,m+=d.hierNode.modifier}h&&!PT(u)&&(u.hierNode.thread=h,u.hierNode.modifier+=y-v),f&&!by(d)&&(d.hierNode.thread=f,d.hierNode.modifier+=g-m,e=a)}return e}(a,u,a.parentNode.hierNode.defaultAncestor||o[0],t)}function dN(a){a.setLayout({x:a.hierNode.prelim+a.parentNode.hierNode.modifier},!0),a.hierNode.modifier+=a.parentNode.hierNode.modifier}function hN(a){return arguments.length?a:ej}function yy(a,t){return a-=Math.PI/2,{x:t*Math.cos(a),y:t*Math.sin(a)}}function PT(a){var t=a.children;return t.length&&a.isExpand?t[t.length-1]:a.hierNode.thread}function by(a){var t=a.children;return t.length&&a.isExpand?t[0]:a.hierNode.thread}function Q6(a,t,e){return a.hierNode.ancestor.parentNode===t.parentNode?a.hierNode.ancestor:e}function J6(a,t,e){var o=e/(t.hierNode.i-a.hierNode.i);t.hierNode.change-=o,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,a.hierNode.change+=o}function ej(a,t){return a.parentNode===t.parentNode?1:2}var OT=function a(){this.parentPoint=[],this.childPoints=[]},vN=function(a){function t(e){return a.call(this,e)||this}return de(t,a),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new OT},t.prototype.buildPath=function(e,o){var u=o.childPoints,f=u.length,d=o.parentPoint,h=u[0],v=u[f-1];if(1===f)return e.moveTo(d[0],d[1]),void e.lineTo(h[0],h[1]);var g=o.orient,m="TB"===g||"BT"===g?0:1,y=1-m,b=Ie(o.forkPosition,1),C=[];C[m]=d[m],C[y]=d[y]+(v[y]-d[y])*b,e.moveTo(d[0],d[1]),e.lineTo(C[0],C[1]),e.moveTo(h[0],h[1]),C[m]=h[m],e.lineTo(C[0],C[1]),C[m]=v[m],e.lineTo(C[0],C[1]),e.lineTo(v[0],v[1]);for(var S=1;ST.x)||(P-=Math.PI);var H=V?"left":"right",j=h.getModel("label"),Z=j.get("rotate"),W=Z*(Math.PI/180),X=D.getTextContent();X&&(D.setTextConfig({position:j.get("position")||H,rotation:null==Z?-P:W,origin:"center"}),X.setStyle("verticalAlign","middle"))}var J=h.get(["emphasis","focus"]),ee="ancestor"===J?d.getAncestorsIndices():"descendant"===J?d.getDescendantIndices():null;ee&&(vt(e).focus=ee),function nj(a,t,e,o,u,f,d,h){var v=t.getModel(),g=a.get("edgeShape"),m=a.get("layout"),y=a.getOrient(),b=a.get(["lineStyle","curveness"]),C=a.get("edgeForkPosition"),S=v.getModel("lineStyle").getLineStyle(),k=o.__edge;if("curve"===g)t.parentNode&&t.parentNode!==e&&(k||(k=o.__edge=new Vi({shape:Ba(m,y,b,u,u)})),Ut(k,{shape:Ba(m,y,b,f,d)},a));else if("polyline"===g&&"orthogonal"===m&&t!==e&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var D=t.children,x=[],T=0;Te&&(e=u.height)}this.height=e+1},a.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,o=this.children,u=o.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},a.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},a.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},a.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},a.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},a.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},a.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},a.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},a.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e=0){var o=e.getData().tree.root,u=a.targetNode;if(Ne(u)&&(u=o.getNodeById(u)),u&&o.contains(u))return{node:u};var f=a.targetNodeId;if(null!=f&&(u=o.getNodeById(f)))return{node:u}}}function FT(a){for(var t=[];a;)(a=a.parentNode)&&t.push(a);return t.reverse()}function NT(a,t){return Ct(FT(a),t)>=0}function Ww(a,t){for(var e=[];a;){var o=a.dataIndex;e.push({name:a.name,dataIndex:o,value:t.getRawValue(o)}),a=a.parentNode}return e.reverse(),e}var sj=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return de(t,a),t.prototype.getInitialData=function(e){var o={name:e.name,children:e.data},f=new Kn(e.leaves||{},this,this.ecModel),d=LT.createTree(o,this,function h(y){y.wrapMethod("getItemModel",function(b,C){var S=d.getNodeByDataIndex(C);return S&&S.children.length&&S.isExpand||(b.parentModel=f),b})}),v=0;d.eachNode("preorder",function(y){y.depth>v&&(v=y.depth)});var m=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:v;return d.root.eachNode("preorder",function(y){var b=y.hostTree.data.getRawDataItem(y.dataIndex);y.isExpand=b&&null!=b.collapsed?!b.collapsed:y.depth<=m}),d.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,o,u){for(var f=this.getData().tree,d=f.root.children[0],h=f.getNodeByDataIndex(e),v=h.getValue(),g=h.name;h&&h!==d;)g=h.parentNode.name+"."+g,h=h.parentNode;return Gt("nameValue",{name:g,value:v,noValue:isNaN(v)||null==v})},t.prototype.getDataParams=function(e){var o=a.prototype.getDataParams.apply(this,arguments),u=this.getData().tree.getNodeByDataIndex(e);return o.treeAncestors=Ww(u,this),o.collapsed=!u.isExpand,o},t.type="series.tree",t.layoutMode="box",t.defaultOption={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},t}(fr),wN=sj;function wy(a,t){for(var o,e=[a];o=e.pop();)if(t(o),o.isExpand){var u=o.children;if(u.length)for(var f=u.length-1;f>=0;f--)e.push(u[f])}}function uj(a,t){a.eachSeriesByType("tree",function(e){!function BT(a,t){var e=function K6(a,t){return oi(a.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(a,t);a.layoutInfo=e;var o=a.get("layout"),u=0,f=0,d=null;"radial"===o?(u=2*Math.PI,f=Math.min(e.height,e.width)/2,d=hN(function(E,P){return(E.parentNode===P.parentNode?1:2)/E.depth})):(u=e.width,f=e.height,d=hN());var h=a.getData().tree.root,v=h.children[0];if(v){(function cN(a){var t=a;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var o,u,e=[t];o=e.pop();)if(u=o.children,o.isExpand&&u.length)for(var d=u.length-1;d>=0;d--){var h=u[d];h.hierNode={defaultAncestor:null,ancestor:h,prelim:0,modifier:0,change:0,shift:0,i:d,thread:null},e.push(h)}})(h),function lj(a,t,e){for(var f,o=[a],u=[];f=o.pop();)if(u.push(f),f.isExpand){var d=f.children;if(d.length)for(var h=0;hm.getLayout().x&&(m=E),E.depth>y.depth&&(y=E)});var b=g===m?1:d(g,m)/2,C=b-g.getLayout().x,S=0,k=0,D=0,x=0;if("radial"===o)S=u/(m.getLayout().x+b+C),k=f/(y.depth-1||1),wy(v,function(E){var P=yy(D=(E.getLayout().x+C)*S,x=(E.depth-1)*k);E.setLayout({x:P.x,y:P.y,rawX:D,rawY:x},!0)});else{var T=a.getOrient();"RL"===T||"LR"===T?(k=f/(m.getLayout().x+b+C),S=u/(y.depth-1||1),wy(v,function(E){x=(E.getLayout().x+C)*k,E.setLayout({x:D="LR"===T?(E.depth-1)*S:u-(E.depth-1)*S,y:x},!0)})):("TB"===T||"BT"===T)&&(S=u/(m.getLayout().x+b+C),k=f/(y.depth-1||1),wy(v,function(E){D=(E.getLayout().x+C)*S,E.setLayout({x:D,y:x="TB"===T?(E.depth-1)*k:f-(E.depth-1)*k},!0)}))}}}(e,t)})}function cj(a){a.eachSeriesByType("tree",function(t){var e=t.getData();e.tree.eachNode(function(u){var d=u.getModel().getModel("itemStyle").getItemStyle();ve(e.ensureUniqueItemVisual(u.dataIndex,"style"),d)})})}var MN=["treemapZoomToNode","treemapRender","treemapMove"];function kN(a){var t=a.getData(),o={};t.tree.eachNode(function(u){for(var f=u;f&&f.depth>1;)f=f.parentNode;var d=Hk(a.ecModel,f.name||f.dataIndex+"",o);u.setVisual("decal",d)})}var gt=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return de(t,a),t.prototype.getInitialData=function(e,o){var u={name:e.name,children:e.data};Va(u);var f=e.levels||[],d=this.designatedVisualItemStyle={},h=new Kn({itemStyle:d},this,o);f=e.levels=function DN(a,t){var e=Xn(t.get("color")),o=Xn(t.get(["aria","decal","decals"]));if(e){var u,f;q(a=a||[],function(h){var v=new Kn(h),g=v.get("color"),m=v.get("decal");(v.get(["itemStyle","color"])||g&&"none"!==g)&&(u=!0),(v.get(["itemStyle","decal"])||m&&"none"!==m)&&(f=!0)});var d=a[0]||(a[0]={});return u||(d.color=e.slice()),!f&&o&&(d.decal=o.slice()),a}}(f,o);var v=Me(f||[],function(y){return new Kn(y,h,o)},this),g=LT.createTree(u,this,function m(y){y.wrapMethod("getItemModel",function(b,C){var S=g.getNodeByDataIndex(C);return b.parentModel=(S?v[S.depth]:null)||h,b})});return g.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,o,u){var f=this.getData(),d=this.getRawValue(e);return Gt("nameValue",{name:f.getName(e),value:d})},t.prototype.getDataParams=function(e){var o=a.prototype.getDataParams.apply(this,arguments),u=this.getData().tree.getNodeByDataIndex(e);return o.treeAncestors=Ww(u,this),o.treePathInfo=o.treeAncestors,o},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},ve(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var o=this._idIndexMap;o||(o=this._idIndexMap=$e(),this._idIndexMapCount=0);var u=o.get(e);return null==u&&o.set(e,u=this._idIndexMapCount++),u},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var o=this.getRawData().tree.root;(!e||e!==o&&!o.contains(e))&&(this._viewRoot=o)},t.prototype.enableAriaDecal=function(){kN(this)},t.type="series.treemap",t.layoutMode="box",t.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%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(fr);function Va(a){var t=0;q(a.children,function(o){Va(o);var u=o.value;Ce(u)&&(u=u[0]),t+=u});var e=a.value;Ce(e)&&(e=e[0]),(null==e||isNaN(e))&&(e=t),e<0&&(e=0),Ce(a.value)?a.value[0]=e:a.value=e}var Yw=gt,dj=function(){function a(t){this.group=new ct,t.add(this.group)}return a.prototype.render=function(t,e,o,u){var f=t.getModel("breadcrumb"),d=this.group;if(d.removeAll(),f.get("show")&&o){var h=f.getModel("itemStyle"),v=h.getModel("textStyle"),g={pos:{left:f.get("left"),right:f.get("right"),top:f.get("top"),bottom:f.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:f.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(o,g,v),this._renderContent(t,g,h,v,u),Ok(d,g.pos,g.box)}},a.prototype._prepare=function(t,e,o){for(var u=t;u;u=u.parentNode){var f=wi(u.getModel().get("name"),""),d=o.getTextRect(f),h=Math.max(d.width+16,e.emptyItemWidth);e.totalWidth+=h+8,e.renderList.push({node:u,text:f,width:h})}},a.prototype._renderContent=function(t,e,o,u,f){for(var d=0,h=e.emptyItemWidth,v=t.get(["breadcrumb","height"]),g=function Pk(a,t,e){var o=t.width,u=t.height,f=Ie(a.left,o),d=Ie(a.top,u),h=Ie(a.right,o),v=Ie(a.bottom,u);return(isNaN(f)||isNaN(parseFloat(a.left)))&&(f=0),(isNaN(h)||isNaN(parseFloat(a.right)))&&(h=o),(isNaN(d)||isNaN(parseFloat(a.top)))&&(d=0),(isNaN(v)||isNaN(parseFloat(a.bottom)))&&(v=u),e=jd(e||0),{width:Math.max(h-f-e[1]-e[3],0),height:Math.max(v-d-e[0]-e[2],0)}}(e.pos,e.box),m=e.totalWidth,y=e.renderList,b=y.length-1;b>=0;b--){var C=y[b],S=C.node,k=C.width,D=C.text;m>g.width&&(m-=k-h,k=h,D=null);var x=new Ia({shape:{points:hj(d,0,k,v,b===y.length-1,0===b)},style:rt(o.getItemStyle(),{lineJoin:"bevel"}),textContent:new dn({style:{text:D,fill:u.getTextColor(),font:u.getFont()}}),textConfig:{position:"inside"},z2:1e5,onclick:wt(f,S)});x.disableLabelAnimation=!0,this.group.add(x),pj(x,t,S),d+=k+8}},a.prototype.remove=function(){this.group.removeAll()},a}();function hj(a,t,e,o,u,f){var d=[[u?a:a-5,t],[a+e,t],[a+e,t+o],[u?a:a-5,t+o]];return!f&&d.splice(2,0,[a+e+5,t+o/2]),!u&&d.push([a,t+o/2]),d}function pj(a,t,e){vt(a).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&Ww(e,t)}}var gu=dj,xN=function(){function a(){this._storage=[],this._elExistsMap={}}return a.prototype.add=function(t,e,o,u,f){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:o,delay:u,easing:f}),!0)},a.prototype.finished=function(t){return this._finishedCallback=t,this},a.prototype.start=function(){for(var t=this,e=this._storage.length,o=function(){--e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},u=0,f=this._storage.length;u3||Math.abs(e.dy)>3)){var o=this.seriesModel.getData().tree.root;if(!o)return;var u=o.getLayout();if(!u)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:u.x+e.dx,y:u.y+e.dy,width:u.width,height:u.height}})}},t.prototype._onZoom=function(e){var o=e.originX,u=e.originY;if("animating"!==this._state){var f=this.seriesModel.getData().tree.root;if(!f)return;var d=f.getLayout();if(!d)return;var h=new zt(d.x,d.y,d.width,d.height),v=this.seriesModel.layoutInfo,g=[1,0,0,1,0,0];vs(g,g,[-(o-=v.x),-(u-=v.y)]),$b(g,g,[e.scale,e.scale]),vs(g,g,[o,u]),h.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:h.x,y:h.y,width:h.width,height:h.height}})}},t.prototype._initEvents=function(e){var o=this;e.on("click",function(u){if("ready"===o._state){var f=o.seriesModel.get("nodeClick",!0);if(f){var d=o.findTarget(u.offsetX,u.offsetY);if(d){var h=d.node;if(h.getLayout().isLeafRoot)o._rootToNode(d);else if("zoomToNode"===f)o._zoomToNode(d);else if("link"===f){var v=h.hostTree.data.getItemModel(h.dataIndex),g=v.get("link",!0),m=v.get("target",!0)||"blank";g&&G0(g,m)}}}}},this)},t.prototype._renderBreadcrumb=function(e,o,u){var f=this;u||(u=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(o.getWidth()/2,o.getHeight()/2))||(u={node:e.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new gu(this.group))).render(e,o,u.node,function(d){"animating"!==f._state&&(NT(e.getViewRoot(),d)?f._rootToNode({node:d}):f._zoomToNode({node:d}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,o){var u;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(d){var h=this._storage.background[d.getRawIndex()];if(h){var v=h.transformCoordToLocal(e,o),g=h.shape;if(!(g.x<=v[0]&&v[0]<=g.x+g.width&&g.y<=v[1]&&v[1]<=g.y+g.height))return!1;u={node:d,offsetX:v[0],offsetY:v[1]}}},this),u},t.type="treemap",t}(jn),Qw=mj,Yv=q,PN=Ke,GT=function(){function a(t){var e=t.mappingMethod,o=t.type,u=this.option=ot(t);this.type=o,this.mappingMethod=e,this._normalizeData=ON[e];var f=a.visualHandlers[o];this.applyVisual=f.applyVisual,this.getColorMapper=f.getColorMapper,this._normalizedToVisual=f._normalizedToVisual[e],"piecewise"===e?(UT(u),function yj(a){var t=a.pieceList;a.hasSpecialVisual=!1,q(t,function(e,o){e.originIndex=o,null!=e.visual&&(a.hasSpecialVisual=!0)})}(u)):"category"===e?u.categories?function Jw(a){var t=a.categories,e=a.categoryMap={},o=a.visual;if(Yv(t,function(d,h){e[d]=h}),!Ce(o)){var u=[];Ke(o)?Yv(o,function(d,h){var v=e[h];u[null!=v?v:-1]=d}):u[-1]=o,o=qv(a,u)}for(var f=t.length-1;f>=0;f--)null==o[f]&&(delete e[t[f]],t.pop())}(u):UT(u,!0):(fa("linear"!==e||u.dataExtent),UT(u))}return a.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},a.prototype.getNormalizer=function(){return ze(this._normalizeData,this)},a.listVisualTypes=function(){return Zt(a.visualHandlers)},a.isValidType=function(t){return a.visualHandlers.hasOwnProperty(t)},a.eachVisual=function(t,e,o){Ke(t)?q(t,e,o):e.call(o,t)},a.mapVisual=function(t,e,o){var u,f=Ce(t)?[]:Ke(t)?{}:(u=!0,null);return a.eachVisual(t,function(d,h){var v=e.call(o,d,h);u?f=v:f[h]=v}),f},a.retrieveVisuals=function(t){var o,e={};return t&&Yv(a.visualHandlers,function(u,f){t.hasOwnProperty(f)&&(e[f]=t[f],o=!0)}),o?e:null},a.prepareVisualTypes=function(t){if(Ce(t))t=t.slice();else{if(!PN(t))return[];var e=[];Yv(t,function(o,u){e.push(u)}),t=e}return t.sort(function(o,u){return"color"===u&&"color"!==o&&0===o.indexOf("color")?1:-1}),t},a.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},a.findPieceIndex=function(t,e,o){for(var u,f=1/0,d=0,h=e.length;dg[1]&&(g[1]=v);var m=t.get("colorMappingBy"),y={type:d.name,dataExtent:g,visual:d.range};"color"!==y.type||"index"!==m&&"id"!==m?y.mappingMethod="linear":(y.mappingMethod="category",y.loop=!0);var b=new pn(y);return Bh(b).drColorMappingBy=m,b}}}(0,u,f,0,v,C);q(C,function(k,D){if(k.depth>=e.length||k===e[k.depth]){var x=function $X(a,t,e,o,u,f){var d=ve({},t);if(u){var h=u.type,v="color"===h&&Bh(u).drColorMappingBy,g="index"===v?o:"id"===v?f.mapIdToIndex(e.getId()):e.getValue(a.get("visualDimension"));d[h]=u.mapValueToVisual(g)}return d}(u,v,k,D,S,o);YT(k,x,e,o)}})}else b=RN(v),g.fill=b}}function RN(a){var t=Xv(a,"color");if(t){var e=Xv(a,"colorAlpha"),o=Xv(a,"colorSaturation");return o&&(t=Zg(t,null,null,o)),e&&(t=Sp(t,e)),t}}function Xv(a,t){var e=a[t];if(null!=e&&"none"!==e)return e}function qT(a,t){var e=a.get(t);return Ce(e)&&e.length?{name:t,range:e}:null}var zh=Math.max,r1=Math.min,ZT=Ui,Gh=q,hc=["itemStyle","borderWidth"],XT=["itemStyle","gapWidth"],bj=["upperLabel","show"],Cj=["upperLabel","height"],wj={seriesType:"treemap",reset:function(t,e,o,u){var f=o.getWidth(),d=o.getHeight(),h=t.option,v=oi(t.getBoxLayoutParams(),{width:o.getWidth(),height:o.getHeight()}),g=h.size||[],m=Ie(ZT(v.width,g[0]),f),y=Ie(ZT(v.height,g[1]),d),b=u&&u.type,S=Cy(u,["treemapZoomToNode","treemapRootToNode"],t),k="treemapRender"===b||"treemapMove"===b?u.rootRect:null,D=t.getViewRoot(),x=FT(D);if("treemapMove"!==b){var T="treemapZoomToNode"===b?function tK(a,t,e,o,u){var f=(t||{}).node,d=[o,u];if(!f||f===e)return d;for(var h,v=o*u,g=v*a.option.zoomToNodeRatio;h=f.parentNode;){for(var m=0,y=h.children,b=0,C=y.length;bSO&&(g=SO),f=h}gh[1]&&(h[1]=g)})):h=[NaN,NaN],{sum:o,dataExtent:h}}(t,d,h);if(0===g.sum)return a.viewChildren=[];if(g.sum=function QX(a,t,e,o,u){if(!o)return e;for(var f=a.get("visibleMin"),d=u.length,h=d,v=d-1;v>=0;v--){var g=u["asc"===o?d-v-1:v].getValue();g/e*to&&(o=d));var v=a.area*a.area,g=t*t*e;return v?zh(g*o/v,v/(g*u)):1/0}function Sj(a,t,e,o,u){var f=t===e.width?0:1,d=1-f,h=["x","y"],v=["width","height"],g=e[h[f]],m=t?a.area/t:0;(u||m>e[v[d]])&&(m=e[v[d]]);for(var y=0,b=a.length;yu&&(u=e);var d=u%2?u+2:u+3;f=[];for(var h=0;h0&&(V[0]=-V[0],V[1]=-V[1]);var H=P[0]<0?-1:1;if("start"!==f.__position&&"end"!==f.__position){var j=-Math.atan2(P[1],P[0]);y[0].8?"left":b[0]<-.8?"right":"center",k=b[1]>.8?"top":b[1]<-.8?"bottom":"middle";break;case"start":f.x=-b[0]*x+m[0],f.y=-b[1]*T+m[1],S=b[0]>.8?"right":b[0]<-.8?"left":"center",k=b[1]>.8?"bottom":b[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":f.x=x*H+m[0],f.y=m[1]+Z,S=P[0]<0?"right":"left",f.originX=-x*H,f.originY=-Z;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":f.x=N[0],f.y=N[1]+Z,S="center",f.originY=-Z;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":f.x=-x*H+y[0],f.y=y[1]+Z,S=P[0]>=0?"right":"left",f.originX=x*H,f.originY=-Z}f.scaleX=f.scaleY=d,f.setStyle({verticalAlign:f.__verticalAlign||k,align:f.__align||S})}}}function C(W,X){var J=W.__specifiedRotation;if(null==J){var ee=v.tangentAt(X);W.attr("rotation",(1===X?-1:1)*Math.PI/2-Math.atan2(ee[1],ee[0]))}else W.attr("rotation",J)}},t}(ct),Ha=Lf,tA=function(){function a(t){this.group=new ct,this._LineCtor=t||Ha}return a.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var o=this,u=o.group,f=o._lineData;o._lineData=t,f||u.removeAll();var d=Uh(t);t.diff(f).add(function(h){e._doAdd(t,h,d)}).update(function(h,v){e._doUpdate(f,t,v,h,d)}).remove(function(h){u.remove(f.getItemGraphicEl(h))}).execute()},a.prototype.updateLayout=function(){var t=this._lineData;!t||t.eachItemGraphicEl(function(e,o){e.updateLayout(t,o)},this)},a.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Uh(t),this._lineData=null,this.group.removeAll()},a.prototype.incrementalUpdate=function(t,e){function o(h){!h.isGroup&&!function nA(a){return a.animators&&a.animators.length>0}(h)&&(h.incremental=!0,h.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var u=t.start;u=0?h+=g:h-=g:S>=0?h-=g:h+=g}return h}function XN(a,t){var e=[],o=ql,u=[[],[],[]],f=[[],[]],d=[];t/=2,a.eachEdge(function(h,v){var g=h.getLayout(),m=h.getVisual("fromSymbol"),y=h.getVisual("toSymbol");g.__original||(g.__original=[ss(g[0]),ss(g[1])],g[2]&&g.__original.push(ss(g[2])));var b=g.__original;if(null!=g[2]){if(wa(u[0],b[0]),wa(u[1],b[2]),wa(u[2],b[1]),m&&"none"!==m){var C=xy(h.node1),S=rA(u,b[0],C*t);o(u[0][0],u[1][0],u[2][0],S,e),u[0][0]=e[3],u[1][0]=e[4],o(u[0][1],u[1][1],u[2][1],S,e),u[0][1]=e[3],u[1][1]=e[4]}y&&"none"!==y&&(C=xy(h.node2),S=rA(u,b[1],C*t),o(u[0][0],u[1][0],u[2][0],S,e),u[1][0]=e[1],u[2][0]=e[2],o(u[0][1],u[1][1],u[2][1],S,e),u[1][1]=e[1],u[2][1]=e[2]),wa(g[0],u[0]),wa(g[1],u[2]),wa(g[2],u[1])}else wa(f[0],b[0]),wa(f[1],b[1]),Wl(d,f[1],f[0]),ei(d,d),m&&"none"!==m&&(C=xy(h.node1),Zn(f[0],f[0],d,C*t)),y&&"none"!==y&&(C=xy(h.node2),Zn(f[1],f[1],d,-C*t)),wa(g[0],f[0]),wa(g[1],f[1])})}function Ej(a){return"view"===a.type}var hK=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.init=function(e,o){var u=new K_,f=new Fs,d=this.group;this._controller=new Ih(o.getZr()),this._controllerHost={target:d},d.add(u.group),d.add(f.group),this._symbolDraw=u,this._lineDraw=f,this._firstRender=!0},t.prototype.render=function(e,o,u){var f=this,d=e.coordinateSystem;this._model=e;var h=this._symbolDraw,v=this._lineDraw,g=this.group;if(Ej(d)){var m={x:d.x,y:d.y,scaleX:d.scaleX,scaleY:d.scaleY};this._firstRender?g.attr(m):Ut(g,m,e)}XN(e.getGraph(),es(e));var y=e.getData();h.updateData(y);var b=e.getEdgeData();v.updateData(b),this._updateNodeAndLinkScale(),this._updateController(e,o,u),clearTimeout(this._layoutTimeout);var C=e.forceLayout,S=e.get(["force","layoutAnimation"]);C&&this._startForceLayoutIteration(C,S),y.graph.eachNode(function(T){var E=T.dataIndex,P=T.getGraphicEl(),V=T.getModel();if(P){P.off("drag").off("dragend");var N=V.get("draggable");N&&P.on("drag",function(){C&&(C.warmUp(),!f._layouting&&f._startForceLayoutIteration(C,S),C.setFixed(E),y.setItemLayout(E,[P.x,P.y]))}).on("dragend",function(){C&&C.setUnfixed(E)}),P.setDraggable(N&&!!C),"adjacency"===V.get(["emphasis","focus"])&&(vt(P).focus=T.getAdjacentDataIndices())}}),y.graph.eachEdge(function(T){var E=T.getGraphicEl(),P=T.getModel().get(["emphasis","focus"]);!E||"adjacency"===P&&(vt(E).focus={edge:[T.dataIndex],node:[T.node1.dataIndex,T.node2.dataIndex]})});var k="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),D=y.getLayout("cx"),x=y.getLayout("cy");y.eachItemGraphicEl(function(T,E){var V=y.getItemModel(E).get(["label","rotate"])||0,N=T.getSymbolPath();if(k){var H=y.getItemLayout(E),j=Math.atan2(H[1]-x,H[0]-D);j<0&&(j=2*Math.PI+j);var Z=H[0]=0&&t.call(e,o[f],f)},a.prototype.eachEdge=function(t,e){for(var o=this.edges,u=o.length,f=0;f=0&&o[f].node1.dataIndex>=0&&o[f].node2.dataIndex>=0&&t.call(e,o[f],f)},a.prototype.breadthFirstTraverse=function(t,e,o,u){if(e instanceof $v||(e=this._nodesMap[Oy(e)]),e){for(var f="out"===o?"outEdges":"in"===o?"inEdges":"edges",d=0;d=0&&v.node2.dataIndex>=0}),f=0,d=u.length;f=0&&this[a][t].setItemVisual(this.dataIndex,o,u)},getVisual:function(o){return this[a][t].getItemVisual(this.dataIndex,o)},setLayout:function(o,u){this.dataIndex>=0&&this[a][t].setItemLayout(this.dataIndex,o,u)},getLayout:function(){return this[a][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[a][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[a][t].getRawIndex(this.dataIndex)}}}Ir($v,iA("hostGraph","data")),Ir(Pj,iA("hostGraph","edgeData"));var gK=vK;function Oj(a,t,e,o,u){for(var f=new gK(o),d=0;d "+b)),g++)}var S,C=e.get("coordinateSystem");if("cartesian2d"===C||"polar"===C)S=wl(a,e);else{var k=Hm.get(C),D=k&&k.dimensions||[];Ct(D,"value")<0&&D.concat(["value"]);var x=R_(a,{coordDimensions:D,encodeDefine:e.getEncode()}).dimensions;(S=new ga(x,e)).initData(a)}var T=new ga(["value"],e);return T.initData(v,h),u&&u(S,T),jw({mainData:S,struct:f,structAttr:"graph",datas:{node:S,edge:T},datasAttr:{node:"data",edge:"edgeData"}}),f.update(),f}var mK=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return de(t,a),t.prototype.init=function(e){a.prototype.init.apply(this,arguments);var o=this;function u(){return o._categoriesData}this.legendVisualProvider=new ty(u,u),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){a.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){a.prototype.mergeDefaultAndTheme.apply(this,arguments),Cd(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,o){var u=e.edges||e.links||[],f=e.data||e.nodes||[],d=this;if(f&&u){!function oK(a){!KT(a)||(a.__curvenessList=[],a.__edgeMap={},Dj(a))}(this);var h=Oj(f,u,this,!0,function v(g,m){g.wrapMethod("getItemModel",function(S){var x=d._categoriesModels[S.getShallow("category")];return x&&(x.parentModel=S.parentModel,S.parentModel=x),S});var y=Kn.prototype.getModel;function b(S,k){var D=y.call(this,S,k);return D.resolveParentPath=C,D}function C(S){if(S&&("label"===S[0]||"label"===S[1])){var k=S.slice();return"label"===S[0]?k[0]="edgeLabel":"label"===S[1]&&(k[1]="edgeLabel"),k}return S}m.wrapMethod("getItemModel",function(S){return S.resolveParentPath=C,S.getModel=b,S})});return q(h.edges,function(g){!function sK(a,t,e,o){if(KT(e)){var u=a1(a,t,e),f=e.__edgeMap,d=f[If(u)];f[u]&&!d?f[u].isForward=!0:d&&f[u]&&(d.isForward=!0,f[u].isForward=!1),f[u]=f[u]||[],f[u].push(o)}}(g.node1,g.node2,this,g.dataIndex)},this),h.data}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,o,u){if("edge"===u){var f=this.getData(),d=this.getDataParams(e,u),h=f.graph.getEdgeByIndex(e),v=f.getName(h.node1.dataIndex),g=f.getName(h.node2.dataIndex),m=[];return null!=v&&m.push(v),null!=g&&m.push(g),Gt("nameValue",{name:m.join(" > "),value:d.value,noValue:null==d.value})}return Si({series:this,dataIndex:e,multipleSeries:o})},t.prototype._updateCategoriesData=function(){var e=Me(this.option.categories||[],function(u){return null!=u.value?u:ve({value:0},u)}),o=new ga(["value"],this);o.initData(e),this._categoriesData=o,this._categoriesModels=o.mapArray(function(u){return o.getItemModel(u)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return a.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={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"}}},t}(fr),_K=mK,aA={type:"graphRoam",event:"graphRoam",update:"none"},bK=function a(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},CK=function(a){function t(e){var o=a.call(this,e)||this;return o.type="pointer",o}return de(t,a),t.prototype.getDefaultShape=function(){return new bK},t.prototype.buildPath=function(e,o){var u=Math.cos,f=Math.sin,d=o.r,h=o.width,v=o.angle,g=o.x-u(v)*h*(h>=d/3?1:2),m=o.y-f(v)*h*(h>=d/3?1:2);v=o.angle-Math.PI/2,e.moveTo(g,m),e.lineTo(o.x+u(v)*h,o.y+f(v)*h),e.lineTo(o.x+u(o.angle)*d,o.y+f(o.angle)*d),e.lineTo(o.x-u(v)*h,o.y-f(v)*h),e.lineTo(g,m)},t}(Xt),wK=CK;function oA(a,t){var e=null==a?"":a+"";return t&&(Ne(t)?e=t.replace("{value}",e):et(t)&&(e=t(a))),e}var MK=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.render=function(e,o,u){this.group.removeAll();var f=e.get(["axisLine","lineStyle","color"]),d=function SK(a,t){var e=a.get("center"),o=t.getWidth(),u=t.getHeight(),f=Math.min(o,u);return{cx:Ie(e[0],t.getWidth()),cy:Ie(e[1],t.getHeight()),r:Ie(a.get("radius"),f/2)}}(e,u);this._renderMain(e,o,u,f,d),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,o,u,f,d){var h=this.group,v=e.get("clockwise"),g=-e.get("startAngle")/180*Math.PI,m=-e.get("endAngle")/180*Math.PI,y=e.getModel("axisLine"),C=y.get("roundCap")?vw:Ja,S=y.get("show"),k=y.getModel("lineStyle"),D=k.get("width"),x=[g,m];br(x,!v);for(var T=(m=x[1])-(g=x[0]),E=g,P=0;S&&P=Z&&(0===W?0:f[W-1][0]).8?"bottom":"middle",align:re<-.4?"left":re>.4?"right":"center"},{inheritColor:Pe}),silent:!0}))}if(T.get("show")&&ce!==P){me=(me=T.get("distance"))?me+m:m;for(var Be=0;Be<=V;Be++){re=Math.cos(j),ie=Math.sin(j);var He=new Nr({shape:{x1:re*(S-me)+b,y1:ie*(S-me)+C,x2:re*(S-H-me)+b,y2:ie*(S-H-me)+C},silent:!0,style:J});"auto"===J.stroke&&He.setStyle({stroke:f((ce+Be/V)/P)}),y.add(He),j+=W}j-=W}else j+=Z}},t.prototype._renderPointer=function(e,o,u,f,d,h,v,g,m){var y=this.group,b=this._data,C=this._progressEls,S=[],k=e.get(["pointer","show"]),D=e.getModel("progress"),x=D.get("show"),T=e.getData(),E=T.mapDimension("value"),P=+e.get("min"),V=+e.get("max"),N=[P,V],H=[h,v];function j(W,X){var Be,ee=T.getItemModel(W).getModel("pointer"),re=Ie(ee.get("width"),d.r),ie=Ie(ee.get("length"),d.r),ce=e.get(["pointer","icon"]),me=ee.get("offsetCenter"),pe=Ie(me[0],d.r),_e=Ie(me[1],d.r),Pe=ee.get("keepAspect");return(Be=ce?Dr(ce,pe-re/2,_e-ie,re,ie,null,Pe):new wK({shape:{angle:-Math.PI/2,width:re,r:ie,x:pe,y:_e}})).rotation=-(X+Math.PI/2),Be.x=d.cx,Be.y=d.cy,Be}function Z(W,X){var ee=D.get("roundCap")?vw:Ja,re=D.get("overlap"),ie=re?D.get("width"):m/T.count(),pe=new ee({shape:{startAngle:h,endAngle:X,cx:d.cx,cy:d.cy,clockwise:g,r0:re?d.r-ie:d.r-(W+1)*ie,r:re?d.r:d.r-W*ie}});return re&&(pe.z2=V-T.get(E,W)%V),pe}(x||k)&&(T.diff(b).add(function(W){var X=T.get(E,W);if(k){var J=j(W,h);nr(J,{rotation:-((isNaN(+X)?H[0]:wn(X,N,H,!0))+Math.PI/2)},e),y.add(J),T.setItemGraphicEl(W,J)}if(x){var ee=Z(W,h),re=D.get("clip");nr(ee,{shape:{endAngle:wn(X,N,H,re)}},e),y.add(ee),wm(e.seriesIndex,T.dataType,W,ee),S[W]=ee}}).update(function(W,X){var J=T.get(E,W);if(k){var ee=b.getItemGraphicEl(X),re=ee?ee.rotation:h,ie=j(W,re);ie.rotation=re,Ut(ie,{rotation:-((isNaN(+J)?H[0]:wn(J,N,H,!0))+Math.PI/2)},e),y.add(ie),T.setItemGraphicEl(W,ie)}if(x){var ce=C[X],pe=Z(W,ce?ce.shape.endAngle:h),_e=D.get("clip");Ut(pe,{shape:{endAngle:wn(J,N,H,_e)}},e),y.add(pe),wm(e.seriesIndex,T.dataType,W,pe),S[W]=pe}}).execute(),T.each(function(W){var X=T.getItemModel(W),J=X.getModel("emphasis"),ee=J.get("focus"),re=J.get("blurScope"),ie=J.get("disabled");if(k){var ce=T.getItemGraphicEl(W),me=T.getItemVisual(W,"style"),pe=me.fill;if(ce instanceof Ki){var _e=ce.style;ce.useStyle(ve({image:_e.image,x:_e.x,y:_e.y,width:_e.width,height:_e.height},me))}else ce.useStyle(me),"pointer"!==ce.type&&ce.setColor(pe);ce.setStyle(X.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===ce.style.fill&&ce.setStyle("fill",f(wn(T.get(E,W),N,[0,1],!0))),ce.z2EmphasisLift=0,pa(ce,X),Yr(ce,ee,re,ie)}if(x){var Pe=S[W];Pe.useStyle(T.getItemVisual(W,"style")),Pe.setStyle(X.getModel(["progress","itemStyle"]).getItemStyle()),Pe.z2EmphasisLift=0,pa(Pe,X),Yr(Pe,ee,re,ie)}}),this._progressEls=S)},t.prototype._renderAnchor=function(e,o){var u=e.getModel("anchor");if(u.get("show")){var d=u.get("size"),h=u.get("icon"),v=u.get("offsetCenter"),g=u.get("keepAspect"),m=Dr(h,o.cx-d/2+Ie(v[0],o.r),o.cy-d/2+Ie(v[1],o.r),d,d,null,g);m.z2=u.get("showAbove")?1:0,m.setStyle(u.getModel("itemStyle").getItemStyle()),this.group.add(m)}},t.prototype._renderTitleAndDetail=function(e,o,u,f,d){var h=this,v=e.getData(),g=v.mapDimension("value"),m=+e.get("min"),y=+e.get("max"),b=new ct,C=[],S=[],k=e.isAnimationEnabled(),D=e.get(["pointer","showAbove"]);v.diff(this._data).add(function(x){C[x]=new dn({silent:!0}),S[x]=new dn({silent:!0})}).update(function(x,T){C[x]=h._titleEls[T],S[x]=h._detailEls[T]}).execute(),v.each(function(x){var T=v.getItemModel(x),E=v.get(g,x),P=new ct,V=f(wn(E,[m,y],[0,1],!0)),N=T.getModel("title");if(N.get("show")){var H=N.get("offsetCenter"),j=d.cx+Ie(H[0],d.r),Z=d.cy+Ie(H[1],d.r);(W=C[x]).attr({z2:D?0:2,style:Cr(N,{x:j,y:Z,text:v.getName(x),align:"center",verticalAlign:"middle"},{inheritColor:V})}),P.add(W)}var X=T.getModel("detail");if(X.get("show")){var J=X.get("offsetCenter"),ee=d.cx+Ie(J[0],d.r),re=d.cy+Ie(J[1],d.r),ie=Ie(X.get("width"),d.r),ce=Ie(X.get("height"),d.r),me=e.get(["progress","show"])?v.getItemVisual(x,"style").fill:V,W=S[x],pe=X.get("formatter");W.attr({z2:D?0:2,style:Cr(X,{x:ee,y:re,text:oA(E,pe),width:isNaN(ie)?null:ie,height:isNaN(ce)?null:ce,align:"center",verticalAlign:"middle"},{inheritColor:me})}),dI(W,{normal:X},E,function(Pe){return oA(Pe,pe)}),k&&F0(W,x,v,e,{getFormattedLabel:function(Be,He,nt,ht,In,Bn){return oA(Bn?Bn.interpolatedValue:E,pe)}}),P.add(W)}b.add(P)}),this.group.add(b),this._titleEls=C,this._detailEls=S},t.type="gauge",t}(jn),kK=MK,DK=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return de(t,a),t.prototype.getInitialData=function(e,o){return ey(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",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,showAbove:!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}},t}(fr),xK=DK,AK=["itemStyle","opacity"],EK=function(a){function t(e,o){var u=a.call(this)||this,f=u,d=new Ra,h=new dn;return f.setTextContent(h),u.setTextGuideLine(d),u.updateData(e,o,!0),u}return de(t,a),t.prototype.updateData=function(e,o,u){var f=this,d=e.hostModel,h=e.getItemModel(o),v=e.getItemLayout(o),g=h.getModel("emphasis"),m=h.get(AK);m=null==m?1:m,u||iu(f),f.useStyle(e.getItemVisual(o,"style")),f.style.lineJoin="round",u?(f.setShape({points:v.points}),f.style.opacity=0,nr(f,{style:{opacity:m}},d,o)):Ut(f,{style:{opacity:m},shape:{points:v.points}},d,o),pa(f,h),this._updateLabel(e,o),Yr(this,g.get("focus"),g.get("blurScope"),g.get("disabled"))},t.prototype._updateLabel=function(e,o){var u=this,f=this.getTextGuideLine(),d=u.getTextContent(),h=e.hostModel,v=e.getItemModel(o),m=e.getItemLayout(o).label,y=e.getItemVisual(o,"style"),b=y.fill;$i(d,va(v),{labelFetcher:e.hostModel,labelDataIndex:o,defaultOpacity:y.opacity,defaultText:e.getName(o)},{normal:{align:m.textAlign,verticalAlign:m.verticalAlign}}),u.setTextConfig({local:!0,inside:!!m.inside,insideStroke:b,outsideFill:b});var C=m.linePoints;f.setShape({points:C}),u.textGuideLineConfig={anchor:C?new Et(C[0][0],C[0][1]):null},Ut(d,{style:{x:m.x,y:m.y}},h,o),d.attr({rotation:m.rotation,originX:m.x,originY:m.y,z2:10}),Mx(u,kx(v),{stroke:b})},t}(Ia),PK=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.ignoreLabelLineUpdate=!0,e}return de(t,a),t.prototype.render=function(e,o,u){var f=e.getData(),d=this._data,h=this.group;f.diff(d).add(function(v){var g=new EK(f,v);f.setItemGraphicEl(v,g),h.add(g)}).update(function(v,g){var m=d.getItemGraphicEl(g);m.updateData(f,v),h.add(m),f.setItemGraphicEl(v,m)}).remove(function(v){Xp(d.getItemGraphicEl(v),e,v)}).execute(),this._data=f},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(jn),OK=PK,IK=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.init=function(e){a.prototype.init.apply(this,arguments),this.legendVisualProvider=new ty(ze(this.getData,this),ze(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,o){return ey(this,{coordDimensions:["value"],encodeDefaulter:wt(Lk,this)})},t.prototype._defaultLabelLine=function(e){Cd(e,"labelLine",["show"]);var o=e.labelLine,u=e.emphasis.labelLine;o.show=o.show&&e.label.show,u.show=u.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var o=this.getData(),u=a.prototype.getDataParams.call(this,e),f=o.mapDimension("value"),d=o.getSum(f);return u.percent=d?+(o.get(f,e)/d*100).toFixed(2):0,u.$vars.push("percent"),u},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",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"}}},t}(fr),RK=IK;function BK(a,t){a.eachSeriesByType("funnel",function(e){var o=e.getData(),u=o.mapDimension("value"),f=e.get("sort"),d=function LK(a,t){return oi(a.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t),h=e.get("orient"),v=d.width,g=d.height,m=function FK(a,t){for(var e=a.mapDimension("value"),o=a.mapArray(e,function(v){return v}),u=[],f="ascending"===t,d=0,h=a.count();d5)return;var f=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==f.behavior&&this._dispatchExpand({axisExpandWindow:f.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&JN(this,"mousemove")){var e=this._model,o=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),u=o.behavior;"jump"===u&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===u?null:{axisExpandWindow:o.axisExpandWindow,animation:"jump"===u?null:{duration:0}})}}};function JN(a,t){var e=a._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}var r$=t$,i$=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.init=function(){a.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){e&&Dt(this.option,e,!0),this._initDimensions()},t.prototype.contains=function(e,o){var u=e.get("parallelIndex");return null!=u&&o.getComponent("parallel",u)===this},t.prototype.setAxisExpand=function(e){q(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(o){e.hasOwnProperty(o)&&(this.option[o]=e[o])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],o=this.parallelAxisIndex=[];q(Un(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(f){return(f.get("parallelIndex")||0)===this.componentIndex},this),function(f){e.push("dim"+f.get("dim")),o.push(f.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={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},t}(sn),a$=i$,o$=function(a){function t(e,o,u,f,d){var h=a.call(this,e,o,u)||this;return h.type=f||"value",h.axisIndex=d,h}return de(t,a),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(Fa),s$=o$;function Qv(a,t,e,o,u,f){a=a||0;var d=e[1]-e[0];if(null!=u&&(u=Iy(u,[0,d])),null!=f&&(f=Math.max(f,null!=u?u:0)),"all"===o){var h=Math.abs(t[1]-t[0]);h=Iy(h,[0,d]),u=f=Iy(h,[u,f]),o=0}t[0]=Iy(t[0],e),t[1]=Iy(t[1],e);var v=e3(t,o);t[o]+=a;var y,g=u||0,m=e.slice();return v.sign<0?m[0]+=g:m[1]-=g,t[o]=Iy(t[o],m),y=e3(t,o),null!=u&&(y.sign!==v.sign||y.spanf&&(t[1-o]=t[o]+y.sign*f),t}function e3(a,t){var e=a[t]-a[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function Iy(a,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,a))}var t3=q,Lj=Math.min,Fj=Math.max,Nj=Math.floor,l$=Math.ceil,Bj=Mr,u$=Math.PI,c$=function(){function a(t,e,o){this.type="parallel",this._axesMap=$e(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,o)}return a.prototype._init=function(t,e,o){var f=t.parallelAxisIndex;t3(t.dimensions,function(d,h){var v=f[h],g=e.getComponent("parallelAxis",v),m=this._axesMap.set(d,new s$(d,H_(g),[0,0],g.get("type"),v));m.onBand="category"===m.type&&g.get("boundaryGap"),m.inverse=g.get("inverse"),g.axis=m,m.model=g,m.coordinateSystem=g.coordinateSystem=this},this)},a.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},a.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),o=e.axisBase,u=e.layoutBase,f=e.pixelDimIndex,d=t[1-f],h=t[f];return d>=o&&d<=o+e.axisLength&&h>=u&&h<=u+e.layoutLength},a.prototype.getModel=function(){return this._model},a.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(o){if(t.contains(o,e)){var u=o.getData();t3(this.dimensions,function(f){var d=this._axesMap.get(f);d.scale.unionExtentFromData(u,u.mapDimension(f)),$o(d.scale,d.model)},this)}},this)},a.prototype.resize=function(t,e){this._rect=oi(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},a.prototype.getRect=function(){return this._rect},a.prototype._makeLayoutInfo=function(){var S,t=this._model,e=this._rect,o=["x","y"],u=["width","height"],f=t.get("layout"),d="horizontal"===f?0:1,h=e[u[d]],v=[0,h],g=this.dimensions.length,m=sA(t.get("axisExpandWidth"),v),y=sA(t.get("axisExpandCount")||0,[0,g]),b=t.get("axisExpandable")&&g>3&&g>y&&y>1&&m>0&&h>0,C=t.get("axisExpandWindow");C?(S=sA(C[1]-C[0],v),C[1]=C[0]+S):(S=sA(m*(y-1),v),(C=[m*(t.get("axisExpandCenter")||Nj(g/2))-S/2])[1]=C[0]+S);var D=(h-S)/(g-y);D<3&&(D=0);var x=[Nj(Bj(C[0]/m,1))+1,l$(Bj(C[1]/m,1))-1];return{layout:f,pixelDimIndex:d,layoutBase:e[o[d]],layoutLength:h,axisBase:e[o[1-d]],axisLength:e[u[1-d]],axisExpandable:b,axisExpandWidth:m,axisCollapseWidth:D,axisExpandWindow:C,axisCount:g,winInnerIndices:x,axisExpandWindow0Pos:D/m*C[0]}},a.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,o=this.dimensions,u=this._makeLayoutInfo(),f=u.layout;e.each(function(d){var h=[0,u.axisLength],v=d.inverse?1:0;d.setExtent(h[v],h[1-v])}),t3(o,function(d,h){var v=(u.axisExpandable?d$:f$)(h,u),g={horizontal:{x:v.position,y:u.axisLength},vertical:{x:0,y:v.position}},y=[g[f].x+t.x,g[f].y+t.y],b={horizontal:u$/2,vertical:0}[f],C=[1,0,0,1,0,0];el(C,C,b),vs(C,C,y),this._axesLayout[d]={position:y,rotation:b,transform:C,axisNameAvailableWidth:v.axisNameAvailableWidth,axisLabelShow:v.axisLabelShow,nameTruncateMaxWidth:v.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},a.prototype.getAxis=function(t){return this._axesMap.get(t)},a.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},a.prototype.eachActiveState=function(t,e,o,u){null==o&&(o=0),null==u&&(u=t.count());var f=this._axesMap,d=this.dimensions,h=[],v=[];q(d,function(D){h.push(t.mapDimension(D)),v.push(f.get(D).model)});for(var g=this.hasAxisBrushed(),m=o;mf*(1-y[0])?(g="jump",v=h-f*(1-y[2])):(v=h-f*y[1])>=0&&(v=h-f*(1-y[1]))<=0&&(v=0),(v*=e.axisExpandWidth/m)?Qv(v,u,d,"all"):g="none";else{var C=u[1]-u[0];(u=[Fj(0,d[1]*h/C-C/2)])[1]=Lj(d[1],u[0]+C),u[0]=u[1]-C}return{axisExpandWindow:u,behavior:g}},a}();function sA(a,t){return Lj(Fj(a,t[0]),t[1])}function f$(a,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*a,axisNameAvailableWidth:e,axisLabelShow:!0}}function d$(a,t){var h,m,o=t.axisExpandWidth,f=t.axisCollapseWidth,d=t.winInnerIndices,v=f,g=!1;return a=0;u--)Zi(o[u])},t.prototype.getActiveState=function(e){var o=this.activeIntervals;if(!o.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===o.length){var u=o[0];if(u[0]<=e&&e<=u[1])return"active"}else for(var f=0,d=o.length;f6}(a)||u){if(f&&!u){"single"===d.brushMode&&o3(a);var v=ot(d);v.brushType=vA(v.brushType,f),v.panelId=f===Jv?null:f.panelId,u=a._creatingCover=Uj(a,v),a._covers.push(u)}if(u){var g=d1[vA(a._brushType,f)];u.__brushOption.range=g.getCreatingRange(f1(a,u,a._track)),o&&(a3(a,u),g.updateCommon(a,u)),lA(a,u),h={isEnd:o}}}else o&&"single"===d.brushMode&&d.removeOnClick&&cA(a,t,e)&&o3(a)&&(h={isEnd:o,removeOnClick:!0});return h}function vA(a,t){return"auto"===a?t.defaultBrushType:a}var f3={mousedown:function(t){if(this._dragging)gA(this,t);else if(!t.target||!t.target.draggable){pA(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=cA(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var u=this.group.transformCoordToLocal(t.offsetX,t.offsetY);if(function Xj(a,t,e){if(a._brushType&&!function Kj(a,t,e){var o=a._zr;return t<0||t>o.getWidth()||e<0||e>o.getHeight()}(a,t.offsetX,t.offsetY)){var o=a._zr,u=a._covers,f=cA(a,t,e);if(!a._dragging)for(var d=0;d=0&&(h[d[v].depth]=new Kn(d[v],this,o));if(f&&u)return Oj(f,u,this,!0,function m(y,b){y.wrapMethod("getItemModel",function(C,S){var k=C.parentModel,D=k.getData().getItemLayout(S);if(D){var T=k.levelModels[D.depth];T&&(C.parentModel=T)}return C}),b.wrapMethod("getItemModel",function(C,S){var k=C.parentModel,x=k.getGraph().getEdgeByIndex(S).node1.getLayout();if(x){var E=k.levelModels[x.depth];E&&(C.parentModel=E)}return C})}).data},t.prototype.setNodePosition=function(e,o){var f=(this.option.data||this.option.nodes)[e];f.localX=o[0],f.localY=o[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,o,u){function f(C){return isNaN(C)||null==C}if("edge"===u){var d=this.getDataParams(e,u),h=d.data,v=d.value;return Gt("nameValue",{name:h.source+" -- "+h.target,value:v,noValue:f(v)})}var y=this.getGraph().getNodeByIndex(e).getLayout().value,b=this.getDataParams(e,u).data.name;return Gt("nameValue",{name:null!=b?b+"":null,value:y,noValue:f(y)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,o){var u=a.prototype.getDataParams.call(this,e,o);if(null==u.value&&"node"===o){var d=this.getGraph().getNodeByIndex(e).getLayout().value;u.value=d}return u},t.type="series.sankey",t.defaultOption={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},t}(fr),b3=y3;function bA(a,t){a.eachSeriesByType("sankey",function(e){var o=e.get("nodeWidth"),u=e.get("nodeGap"),f=function w$(a,t){return oi(a.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t);e.layoutInfo=f;var d=f.width,h=f.height,v=e.getGraph(),g=v.nodes,m=v.edges;!function n7(a){q(a,function(t){var e=qh(t.outEdges,wA),o=qh(t.inEdges,wA),u=t.getValue()||0,f=Math.max(e,o,u);t.setLayout({value:f},!0)})}(g),function C3(a,t,e,o,u,f,d,h,v){(function r7(a,t,e,o,u,f,d){for(var h=[],v=[],g=[],m=[],y=0,b=0;b=0;x&&D.depth>C&&(C=D.depth),k.setLayout({depth:x?D.depth:y},!0),k.setLayout("vertical"===f?{dy:e}:{dx:e},!0);for(var T=0;Ty-1?C:y-1;d&&"left"!==d&&function a7(a,t,e,o){if("right"===t){for(var u=[],f=a,d=0;f.length;){for(var h=0;h0;f--)u7(h,v*=.99,d),CA(h,u,e,o,d),S$(h,v,d),CA(h,u,e,o,d)}(a,t,f,u,o,d,h),function M$(a,t){var e="vertical"===t?"x":"y";q(a,function(o){o.outEdges.sort(function(u,f){return u.node2.getLayout()[e]-f.node2.getLayout()[e]}),o.inEdges.sort(function(u,f){return u.node1.getLayout()[e]-f.node1.getLayout()[e]})}),q(a,function(o){var u=0,f=0;q(o.outEdges,function(d){d.setLayout({sy:u},!0),u+=d.getLayout().dy}),q(o.inEdges,function(d){d.setLayout({ty:f},!0),f+=d.getLayout().dy})})}(a,h)}(g,m,o,u,d,h,0!==Un(g,function(k){return 0===k.getLayout().value}).length?0:e.get("layoutIterations"),e.get("orient"),e.get("nodeAlign"))})}function w3(a){var t=a.hostGraph.data.getRawDataItem(a.dataIndex);return null!=t.depth&&t.depth>=0}function CA(a,t,e,o,u){var f="vertical"===u?"x":"y";q(a,function(d){d.sort(function(k,D){return k.getLayout()[f]-D.getLayout()[f]});for(var h,v,g,m=0,y=d.length,b="vertical"===u?"dx":"dy",C=0;C0&&(h=v.getLayout()[f]+g,v.setLayout("vertical"===u?{x:h}:{y:h},!0)),m=v.getLayout()[f]+v.getLayout()[b]+t;if((g=m-t-("vertical"===u?o:e))>0)for(h=v.getLayout()[f]-g,v.setLayout("vertical"===u?{x:h}:{y:h},!0),m=h,C=y-2;C>=0;--C)(g=(v=d[C]).getLayout()[f]+v.getLayout()[b]+t-m)>0&&(h=v.getLayout()[f]-g,v.setLayout("vertical"===u?{x:h}:{y:h},!0)),m=v.getLayout()[f]})}function u7(a,t,e){q(a.slice().reverse(),function(o){q(o,function(u){if(u.outEdges.length){var f=qh(u.outEdges,c7,e)/qh(u.outEdges,wA);if(isNaN(f)){var d=u.outEdges.length;f=d?qh(u.outEdges,f7,e)/d:0}if("vertical"===e){var h=u.getLayout().x+(f-Yh(u,e))*t;u.setLayout({x:h},!0)}else{var v=u.getLayout().y+(f-Yh(u,e))*t;u.setLayout({y:v},!0)}}})})}function c7(a,t){return Yh(a.node2,t)*a.getValue()}function f7(a,t){return Yh(a.node2,t)}function k3(a,t){return Yh(a.node1,t)*a.getValue()}function d7(a,t){return Yh(a.node1,t)}function Yh(a,t){return"vertical"===t?a.getLayout().x+a.getLayout().dx/2:a.getLayout().y+a.getLayout().dy/2}function wA(a){return a.getValue()}function qh(a,t,e){for(var o=0,u=a.length,f=-1;++ff&&(f=h)}),q(o,function(d){var v=new pn({type:"color",mappingMethod:"linear",dataExtent:[u,f],visual:t.get("color")}).mapValueToVisual(d.getLayout().value),g=d.getModel().get(["itemStyle","color"]);null!=g?(d.setVisual("color",g),d.setVisual("style",{fill:g})):(d.setVisual("color",v),d.setVisual("style",{fill:v}))})}})}var D3=function(){function a(){}return a.prototype.getInitialData=function(t,e){var o,v,u=e.getComponent("xAxis",this.get("xAxisIndex")),f=e.getComponent("yAxis",this.get("yAxisIndex")),d=u.get("type"),h=f.get("type");"category"===d?(t.layout="horizontal",o=u.getOrdinalMeta(),v=!0):"category"===h?(t.layout="vertical",o=f.getOrdinalMeta(),v=!0):t.layout=t.layout||"horizontal";var g=["x","y"],m="horizontal"===t.layout?0:1,y=this._baseAxisDim=g[m],b=g[1-m],C=[u,f],S=C[m].get("type"),k=C[1-m].get("type"),D=t.data;if(D&&v){var x=[];q(D,function(P,V){var N;Ce(P)?(N=P.slice(),P.unshift(V)):Ce(P.value)?((N=ve({},P)).value=N.value.slice(),P.value.unshift(V)):N=P,x.push(N)}),t.data=x}var T=this.defaultValueDimensions,E=[{name:y,type:rx(S),ordinalMeta:o,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:b,type:rx(k),dimsDef:T.slice()}];return ey(this,{coordDimensions:E,dimensionsCount:T.length+1,encodeDefaulter:wt(U0,E,this)})},a.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},a}(),x3=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return de(t,a),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={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},t}(fr);Ir(x3,D3,!0);var T3=x3,tg=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.render=function(e,o,u){var f=e.getData(),d=this.group,h=this._data;this._data||d.removeAll();var v="horizontal"===e.get("layout")?1:0;f.diff(h).add(function(g){if(f.hasValue(g)){var y=A3(f.getItemLayout(g),f,g,v,!0);f.setItemGraphicEl(g,y),d.add(y)}}).update(function(g,m){var y=h.getItemGraphicEl(m);if(f.hasValue(g)){var b=f.getItemLayout(g);y?(iu(y),E3(b,y,f,g)):y=A3(b,f,g,v),d.add(y),f.setItemGraphicEl(g,y)}else d.remove(y)}).remove(function(g){var m=h.getItemGraphicEl(g);m&&d.remove(m)}).execute(),this._data=f},t.prototype.remove=function(e){var o=this.group,u=this._data;this._data=null,u&&u.eachItemGraphicEl(function(f){f&&o.remove(f)})},t.type="boxplot",t}(jn),h7=function a(){},p7=function(a){function t(e){var o=a.call(this,e)||this;return o.type="boxplotBoxPath",o}return de(t,a),t.prototype.getDefaultShape=function(){return new h7},t.prototype.buildPath=function(e,o){var u=o.points,f=0;for(e.moveTo(u[f][0],u[f][1]),f++;f<4;f++)e.lineTo(u[f][0],u[f][1]);for(e.closePath();fk)&&o.push([x,E])}}return{boxData:e,outliers:o}}(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:u.boxData},{data:u.outliers}]}},L3=["color","borderColor"],g7=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.render=function(e,o,u){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,o,u){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,o,u,f){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,o):this._incrementalRenderNormal(e,o)},t.prototype.eachRendered=function(e){hf(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var o=e.pipelineContext.large;(null==this._isLargeDraw||o!==this._isLargeDraw)&&(this._isLargeDraw=o,this._clear())},t.prototype._renderNormal=function(e){var o=e.getData(),u=this._data,f=this.group,d=o.getLayout("isSimpleBox"),h=e.get("clip",!0),v=e.coordinateSystem,g=v.getArea&&v.getArea();this._data||f.removeAll(),o.diff(u).add(function(m){if(o.hasValue(m)){var y=o.getItemLayout(m);if(h&&TA(g,y))return;var b=$n(y,0,!0);nr(b,{shape:{points:y.ends}},e,m),m1(b,o,m,d),f.add(b),o.setItemGraphicEl(m,b)}}).update(function(m,y){var b=u.getItemGraphicEl(y);if(o.hasValue(m)){var C=o.getItemLayout(m);h&&TA(g,C)?f.remove(b):(b?(Ut(b,{shape:{points:C.ends}},e,m),iu(b)):b=$n(C),m1(b,o,m,d),f.add(b),o.setItemGraphicEl(m,b))}else f.remove(b)}).remove(function(m){var y=u.getItemGraphicEl(m);y&&f.remove(y)}).execute(),this._data=o},t.prototype._renderLarge=function(e){this._clear(),Yn(e,this.group);var o=e.get("clip",!0)?$_(e.coordinateSystem,!1,e):null;o?this.group.setClipPath(o):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,o){for(var d,u=o.getData(),f=u.getLayout("isSimpleBox");null!=(d=e.next());){var v=$n(u.getItemLayout(d));m1(v,u,d,f),v.incremental=!0,this.group.add(v),this._progressiveEls.push(v)}},t.prototype._incrementalRenderLarge=function(e,o){Yn(o,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(jn),vc=function a(){},zi=function(a){function t(e){var o=a.call(this,e)||this;return o.type="normalCandlestickBox",o}return de(t,a),t.prototype.getDefaultShape=function(){return new vc},t.prototype.buildPath=function(e,o){var u=o.points;this.__simpleBox?(e.moveTo(u[4][0],u[4][1]),e.lineTo(u[6][0],u[6][1])):(e.moveTo(u[0][0],u[0][1]),e.lineTo(u[1][0],u[1][1]),e.lineTo(u[2][0],u[2][1]),e.lineTo(u[3][0],u[3][1]),e.closePath(),e.moveTo(u[4][0],u[4][1]),e.lineTo(u[5][0],u[5][1]),e.moveTo(u[6][0],u[6][1]),e.lineTo(u[7][0],u[7][1]))},t}(Xt);function $n(a,t,e){var o=a.ends;return new zi({shape:{points:e?mt(o,a):o},z2:100})}function TA(a,t){for(var e=!0,o=0;o0?"borderColor":"borderColor0"])||e.get(["itemStyle",a>0?"color":"color0"]),f=e.getModel("itemStyle").getItemStyle(L3);t.useStyle(f),t.style.fill=null,t.style.stroke=u}var _1=g7,_7=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return de(t,a),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,o,u){var f=o.getItemLayout(e);return f&&u.rect(f.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={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},t}(fr);Ir(_7,D3,!0);var y1=_7;function D$(a){!a||!Ce(a.series)||q(a.series,function(t){Ke(t)&&"k"===t.type&&(t.type="candlestick")})}var F3=["itemStyle","borderColor"],By=["itemStyle","borderColor0"],N3=["itemStyle","color"],AA=["itemStyle","color0"],Nn={seriesType:"candlestick",plan:Qa(),performRawSeries:!0,reset:function(t,e){function o(d,h){return h.get(d>0?N3:AA)}function u(d,h){return h.get(d>0?F3:By)}if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(h,v){for(var g;null!=(g=h.next());){var m=v.getItemModel(g),y=v.getItemLayout(g).sign,b=m.getItemStyle();b.fill=o(y,m),b.stroke=u(y,m)||b.fill,ve(v.ensureUniqueItemVisual(g,"style"),b)}}}}},b1=Nn,B3={seriesType:"candlestick",plan:Qa(),reset:function(t){var e=t.coordinateSystem,o=t.getData(),u=function y7(a,t){var o,e=a.getBaseAxis(),u="category"===e.type?e.getBandWidth():(o=e.getExtent(),Math.abs(o[1]-o[0])/t.count()),f=Ie(Ft(a.get("barMaxWidth"),u),u),d=Ie(Ft(a.get("barMinWidth"),1),u),h=a.get("barWidth");return null!=h?Ie(h,u):Math.max(Math.min(u/2,f),d)}(t,o),h=["x","y"],v=o.getDimensionIndex(o.mapDimension(h[0])),g=Me(o.mapDimensionsAll(h[1]),o.getDimensionIndex,o),m=g[0],y=g[1],b=g[2],C=g[3];if(o.setLayout({candleWidth:u,isSimpleBox:u<=1.3}),!(v<0||g.length<4))return{progress:t.pipelineContext.large?function k(D,x){for(var P,H,T=Ju(4*D.count),E=0,V=[],N=[],j=x.getStore();null!=(H=D.next());){var Z=j.get(v,H),W=j.get(m,H),X=j.get(y,H),J=j.get(b,H),ee=j.get(C,H);isNaN(Z)||isNaN(J)||isNaN(ee)?(T[E++]=NaN,E+=3):(T[E++]=V3(j,H,W,X,y),V[0]=Z,V[1]=J,P=e.dataToPoint(V,null,N),T[E++]=P?P[0]:NaN,T[E++]=P?P[1]:NaN,V[1]=ee,P=e.dataToPoint(V,null,N),T[E++]=P?P[1]:NaN)}x.setLayout("largePoints",T)}:function S(D,x){for(var T,E=x.getStore();null!=(T=D.next());){var P=E.get(v,T),V=E.get(m,T),N=E.get(y,T),H=E.get(b,T),j=E.get(C,T),Z=Math.min(V,N),W=Math.max(V,N),X=ce(Z,P),J=ce(W,P),ee=ce(H,P),re=ce(j,P),ie=[];me(ie,J,0),me(ie,X,1),ie.push(_e(re),_e(J),_e(ee),_e(X)),x.setItemLayout(T,{sign:V3(E,T,V,N,y),initBaseline:V>N?J[1]:X[1],ends:ie,brushRect:(Pe=H,Be=j,He=P,nt=void 0,ht=void 0,nt=ce(Pe,He),ht=ce(Be,He),nt[0]-=u/2,ht[0]-=u/2,{x:nt[0],y:nt[1],width:u,height:ht[1]-nt[1]})})}var Pe,Be,He,nt,ht;function ce(Pe,Be){var He=[];return He[0]=Be,He[1]=Pe,isNaN(Be)||isNaN(Pe)?[NaN,NaN]:e.dataToPoint(He)}function me(Pe,Be,He){var nt=Be.slice(),ht=Be.slice();nt[0]=fC(nt[0]+u/2,1,!1),ht[0]=fC(ht[0]-u/2,1,!0),He?Pe.push(nt,ht):Pe.push(ht,nt)}function _e(Pe){return Pe[0]=fC(Pe[0],1),Pe}}}}};function V3(a,t,e,o,u){return e>o?-1:e0?a.get(u,t-1)<=o?1:-1:1}var b7=B3;function H3(a,t){var e=t.rippleEffectColor||t.color;a.eachChild(function(o){o.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?e:null,fill:"fill"===t.brushType?e:null}})})}var w7=function(a){function t(e,o){var u=a.call(this)||this,f=new X_(e,o),d=new ct;return u.add(f),u.add(d),u.updateData(e,o),u}return de(t,a),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var o=e.symbolType,u=e.color,f=e.rippleNumber,d=this.childAt(1),h=0;h0&&(h=this._getLineLength(f)/g*1e3),h!==this._period||v!==this._loop){f.stopAnimation();var y=void 0;y=et(m)?m(u):m,f.__t>0&&(y=-h*f.__t),this._animateSymbol(f,h,y,v)}this._period=h,this._loop=v}},t.prototype._animateSymbol=function(e,o,u,f){if(o>0){e.__t=0;var d=this,h=e.animate("",f).when(o,{__t:1}).delay(u).during(function(){d._updateSymbolPosition(e)});f||h.done(function(){d.remove(e)}),h.start()}},t.prototype._getLineLength=function(e){return Oc(e.__p1,e.__cp1)+Oc(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,o){e.__p1=o[0],e.__p2=o[1],e.__cp1=o[2]||[(o[0][0]+o[1][0])/2,(o[0][1]+o[1][1])/2]},t.prototype.updateData=function(e,o,u){this.childAt(0).updateData(e,o,u),this._updateEffectSymbol(e,o)},t.prototype._updateSymbolPosition=function(e){var o=e.__p1,u=e.__p2,f=e.__cp1,d=e.__t,h=[e.x,e.y],v=h.slice(),g=ti,m=Fc;h[0]=g(o[0],f[0],u[0],d),h[1]=g(o[1],f[1],u[1],d);var y=m(o[0],f[0],u[0],d),b=m(o[1],f[1],u[1],d);e.rotation=-Math.atan2(b,y)-Math.PI/2,("line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)&&(void 0!==e.__lastT&&e.__lastT=0&&!(f[v]<=o);v--);v=Math.min(v,d-2)}else{for(v=h;vo);v++);v=Math.min(v-1,d-2)}var m=(o-f[v])/(f[v+1]-f[v]),y=u[v],b=u[v+1];e.x=y[0]*(1-m)+m*b[0],e.y=y[1]*(1-m)+m*b[1],e.rotation=-Math.atan2(b[1]-y[1],b[0]-y[0])-Math.PI/2,this._lastFrame=v,this._lastFramePercent=o,e.ignore=!1}},t}(z3),P7=E7,O7=function a(){this.polyline=!1,this.curveness=0,this.segs=[]},I7=function(a){function t(e){var o=a.call(this,e)||this;return o._off=0,o.hoverDataIdx=-1,o}return de(t,a),t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new O7},t.prototype.buildPath=function(e,o){var d,u=o.segs,f=o.curveness;if(o.polyline)for(d=this._off;d0){e.moveTo(u[d++],u[d++]);for(var v=1;v0?e.quadraticCurveTo((g+y)/2-(m-b)*f,(m+b)/2-(y-g)*f,y,b):e.lineTo(y,b)}this.incremental&&(this._off=d,this.notClear=!0)},t.prototype.findDataIndex=function(e,o){var u=this.shape,f=u.segs,d=u.curveness,h=this.style.lineWidth;if(u.polyline)for(var v=0,g=0;g0)for(var y=f[g++],b=f[g++],C=1;C0){if(jO(y,b,(y+S)/2-(b-k)*d,(b+k)/2-(S-y)*d,S,k,h,e,o))return v}else if(Qt(y,b,S,k,h,e,o))return v;v++}return-1},t.prototype.contain=function(e,o){var u=this.transformCoordToLocal(e,o);return this.getBoundingRect().contain(e=u[0],o=u[1])?(this.hoverDataIdx=this.findDataIndex(e,o))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var u=this.shape.segs,f=1/0,d=1/0,h=-1/0,v=-1/0,g=0;g0&&(d.dataIndex=v+t.__startIndex)})},a.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},a}(),A$=T$,R7={seriesType:"lines",plan:Qa(),reset:function(t){var e=t.coordinateSystem;if(e){var o=t.get("polyline"),u=t.pipelineContext.large;return{progress:function(d,h){var v=[];if(u){var g=void 0,m=d.end-d.start;if(o){for(var y=0,b=d.start;b0&&(m||g.configLayer(h,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(v/10+.9,1),0)})),d.updateData(f);var y=e.get("clip",!0)&&$_(e.coordinateSystem,!1,e);y?this.group.setClipPath(y):this.group.removeClipPath(),this._lastZlevel=h,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,o,u){var f=e.getData();this._updateLineDraw(f,e).incrementalPrepareUpdate(f),this._clearLayer(u),this._finished=!1},t.prototype.incrementalRender=function(e,o,u){this._lineDraw.incrementalUpdate(e,o.getData()),this._finished=e.end===o.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,o,u){var f=e.getData(),d=e.pipelineContext;if(!this._finished||d.large||d.progressiveRender)return{update:!0};var h=U3.reset(e,o,u);h.progress&&h.progress({start:0,end:f.count(),count:f.count()},f),this._lineDraw.updateLayout(),this._clearLayer(u)},t.prototype._updateLineDraw=function(e,o){var u=this._lineDraw,f=this._showEffect(o),d=!!o.get("polyline"),v=o.pipelineContext.large;return(!u||f!==this._hasEffet||d!==this._isPolyline||v!==this._isLargeDraw)&&(u&&u.remove(),u=this._lineDraw=v?new A$:new Fs(d?f?P7:G3:f?z3:Ha),this._hasEffet=f,this._isPolyline=d,this._isLargeDraw=v),this.group.add(u.group),u},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var o=e.getZr();"svg"!==o.painter.getType()&&null!=this._lastZlevel&&o.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,o){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(o)},t.prototype.dispose=function(e,o){this.remove(e,o)},t.type="lines",t}(jn),F7=L7,N7="undefined"==typeof Uint32Array?Array:Uint32Array,B7="undefined"==typeof Float64Array?Array:Float64Array;function j3(a){var t=a.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(a.data=Me(t,function(e){var u={coords:[e[0].coord,e[1].coord]};return e[0].name&&(u.fromName=e[0].name),e[1].name&&(u.toName=e[1].name),gr([u,e[0],e[1]])}))}var V7=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return de(t,a),t.prototype.init=function(e){e.data=e.data||[],j3(e);var o=this._processFlatCoordsArray(e.data);this._flatCoords=o.flatCoords,this._flatCoordsOffset=o.flatCoordsOffset,o.flatCoords&&(e.data=new Float32Array(o.count)),a.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(j3(e),e.data){var o=this._processFlatCoordsArray(e.data);this._flatCoords=o.flatCoords,this._flatCoordsOffset=o.flatCoordsOffset,o.flatCoords&&(e.data=new Float32Array(o.count))}a.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var o=this._processFlatCoordsArray(e.data);o.flatCoords&&(this._flatCoords?(this._flatCoords=Ng(this._flatCoords,o.flatCoords),this._flatCoordsOffset=Ng(this._flatCoordsOffset,o.flatCoordsOffset)):(this._flatCoords=o.flatCoords,this._flatCoordsOffset=o.flatCoordsOffset),e.data=new Float32Array(o.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var o=this.getData().getItemModel(e);return o.option instanceof Array?o.option:o.getShallow("coords")},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,o){if(this._flatCoordsOffset){for(var u=this._flatCoordsOffset[2*e],f=this._flatCoordsOffset[2*e+1],d=0;d ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),o=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&o>0?o+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",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}},t}(fr),H7=V7;function C1(a){return a instanceof Array||(a=[a,a]),a}var z7={seriesType:"lines",reset:function(t){var e=C1(t.get("symbol")),o=C1(t.get("symbolSize")),u=t.getData();return u.setVisual("fromSymbol",e&&e[0]),u.setVisual("toSymbol",e&&e[1]),u.setVisual("fromSymbolSize",o&&o[0]),u.setVisual("toSymbolSize",o&&o[1]),{dataEach:u.hasItemOption?function f(d,h){var v=d.getItemModel(h),g=C1(v.getShallow("symbol",!0)),m=C1(v.getShallow("symbolSize",!0));g[0]&&d.setItemVisual(h,"fromSymbol",g[0]),g[1]&&d.setItemVisual(h,"toSymbol",g[1]),m[0]&&d.setItemVisual(h,"fromSymbolSize",m[0]),m[1]&&d.setItemVisual(h,"toSymbolSize",m[1])}:null}}},E$=z7,EA=function(){function a(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Ws.createCanvas();this.canvas=t}return a.prototype.update=function(t,e,o,u,f,d){var h=this._getBrush(),v=this._getGradient(f,"inRange"),g=this._getGradient(f,"outOfRange"),m=this.pointSize+this.blurSize,y=this.canvas,b=y.getContext("2d"),C=t.length;y.width=e,y.height=o;for(var S=0;S0){var J=d(E)?v:g;E>0&&(E=E*W+j),V[N++]=J[X],V[N++]=J[X+1],V[N++]=J[X+2],V[N++]=J[X+3]*E*256}else N+=4}return b.putImageData(P,0,0),y},a.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Ws.createCanvas()),e=this.pointSize+this.blurSize,o=2*e;t.width=o,t.height=o;var u=t.getContext("2d");return u.clearRect(0,0,o,o),u.shadowOffsetX=o,u.shadowBlur=this.blurSize,u.shadowColor="#000",u.beginPath(),u.arc(-e,e,this.pointSize,0,2*Math.PI,!0),u.closePath(),u.fill(),t},a.prototype._getGradient=function(t,e){for(var o=this._gradientPixels,u=o[e]||(o[e]=new Uint8ClampedArray(1024)),f=[0,0,0,0],d=0,h=0;h<256;h++)t[e](h/255,!0,f),u[d++]=f[0],u[d++]=f[1],u[d++]=f[2],u[d++]=f[3];return u},a}(),Hf=EA;function w1(a){var t=a.dimensions;return"lng"===t[0]&&"lat"===t[1]}var OA=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.render=function(e,o,u){var f;o.eachComponent("visualMap",function(h){h.eachTargetSeries(function(v){v===e&&(f=h)})}),this._progressiveEls=null,this.group.removeAll();var d=e.coordinateSystem;"cartesian2d"===d.type||"calendar"===d.type?this._renderOnCartesianAndCalendar(e,u,0,e.getData().count()):w1(d)&&this._renderOnGeo(d,e,f,u)},t.prototype.incrementalPrepareRender=function(e,o,u){this.group.removeAll()},t.prototype.incrementalRender=function(e,o,u,f){var d=o.coordinateSystem;d&&(w1(d)?this.render(o,u,f):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(o,f,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){hf(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,o,u,f,d){var g,m,y,b,h=e.coordinateSystem,v=ac(h,"cartesian2d");if(v){var C=h.getAxis("x"),S=h.getAxis("y");g=C.getBandWidth()+.5,m=S.getBandWidth()+.5,y=C.scale.getExtent(),b=S.scale.getExtent()}for(var k=this.group,D=e.getData(),x=e.getModel(["emphasis","itemStyle"]).getItemStyle(),T=e.getModel(["blur","itemStyle"]).getItemStyle(),E=e.getModel(["select","itemStyle"]).getItemStyle(),P=e.get(["itemStyle","borderRadius"]),V=va(e),N=e.getModel("emphasis"),H=N.get("focus"),j=N.get("blurScope"),Z=N.get("disabled"),W=v?[D.mapDimension("x"),D.mapDimension("y"),D.mapDimension("value")]:[D.mapDimension("time"),D.mapDimension("value")],X=u;Xy[1]||ieb[1])continue;var ce=h.dataToPoint([re,ie]);J=new fn({shape:{x:ce[0]-g/2,y:ce[1]-m/2,width:g,height:m},style:ee})}else{if(isNaN(D.get(W[1],X)))continue;J=new fn({z2:1,shape:h.dataToRect([D.get(W[0],X)]).contentShape,style:ee})}if(D.hasItemOption){var me=D.getItemModel(X),pe=me.getModel("emphasis");x=pe.getModel("itemStyle").getItemStyle(),T=me.getModel(["blur","itemStyle"]).getItemStyle(),E=me.getModel(["select","itemStyle"]).getItemStyle(),P=me.get(["itemStyle","borderRadius"]),H=pe.get("focus"),j=pe.get("blurScope"),Z=pe.get("disabled"),V=va(me)}J.shape.r=P;var _e=e.getRawValue(X),Pe="-";_e&&null!=_e[2]&&(Pe=_e[2]+""),$i(J,V,{labelFetcher:e,labelDataIndex:X,defaultOpacity:ee.opacity,defaultText:Pe}),J.ensureState("emphasis").style=x,J.ensureState("blur").style=T,J.ensureState("select").style=E,Yr(J,H,j,Z),J.incremental=d,d&&(J.states.emphasis.hoverLayer=!0),k.add(J),D.setItemGraphicEl(X,J),this._progressiveEls&&this._progressiveEls.push(J)}},t.prototype._renderOnGeo=function(e,o,u,f){var d=u.targetVisuals.inRange,h=u.targetVisuals.outOfRange,v=o.getData(),g=this._hmLayer||this._hmLayer||new Hf;g.blurSize=o.get("blurSize"),g.pointSize=o.get("pointSize"),g.minOpacity=o.get("minOpacity"),g.maxOpacity=o.get("maxOpacity");var m=e.getViewRect().clone(),y=e.getRoamTransform();m.applyTransform(y);var b=Math.max(m.x,0),C=Math.max(m.y,0),S=Math.min(m.width+m.x,f.getWidth()),k=Math.min(m.height+m.y,f.getHeight()),D=S-b,x=k-C,T=[v.mapDimension("lng"),v.mapDimension("lat"),v.mapDimension("value")],E=v.mapArray(T,function(H,j,Z){var W=e.dataToPoint([H,j]);return W[0]-=b,W[1]-=C,W.push(Z),W}),P=u.getExtent(),V="visualMap.continuous"===u.type?function PA(a,t){var e=a[1]-a[0];return t=[(t[0]-a[0])/e,(t[1]-a[0])/e],function(o){return o>=t[0]&&o<=t[1]}}(P,u.option.range):function W3(a,t,e){var o=a[1]-a[0],u=(t=Me(t,function(d){return{interval:[(d.interval[0]-a[0])/o,(d.interval[1]-a[0])/o]}})).length,f=0;return function(d){var h;for(h=f;h=0;h--){var v;if((v=t[h].interval)[0]<=d&&d<=v[1]){f=h;break}}return h>=0&&h0?1:-1})(e,f,u,o,b),function W7(a,t,e,o,u,f,d,h,v,g){var S,m=v.valueDim,y=v.categoryDim,b=Math.abs(e[y.wh]),C=a.getItemVisual(t,"symbolSize");(S=Ce(C)?C.slice():null==C?["100%","100%"]:[C,C])[y.index]=Ie(S[y.index],b),S[m.index]=Ie(S[m.index],o?b:Math.abs(f)),g.symbolSize=S,(g.symbolScale=[S[0]/h,S[1]/h])[m.index]*=(v.isHorizontal?-1:1)*d}(a,t,u,f,0,b.boundingLength,b.pxSign,m,o,b),function K3(a,t,e,o,u){var f=a.get(Z3)||0;f&&(RA.attr({scaleX:t[0],scaleY:t[1],rotation:e}),RA.updateTransform(),f/=RA.getLineScale(),f*=t[o.valueDim.index]),u.valueLineWidth=f||0}(e,b.symbolScale,g,o,b);var C=b.symbolSize,S=uh(e.get("symbolOffset"),C);return function $3(a,t,e,o,u,f,d,h,v,g,m,y){var b=m.categoryDim,C=m.valueDim,S=y.pxSign,k=Math.max(t[C.index]+h,0),D=k;if(o){var x=Math.abs(v),T=Ui(a.get("symbolMargin"),"15%")+"",E=!1;T.lastIndexOf("!")===T.length-1&&(E=!0,T=T.slice(0,T.length-1));var P=Ie(T,t[C.index]),V=Math.max(k+2*P,0),N=E?0:2*P,H=RM(o),j=H?o:tB((x+N)/V);V=k+2*(P=(x-j*k)/2/(E?j:Math.max(j-1,1))),N=E?0:2*P,!H&&"fixed"!==o&&(j=g?tB((Math.abs(g)+N)/V):0),D=j*V-N,y.repeatTimes=j,y.symbolMargin=P}var W=S*(D/2),X=y.pathPosition=[];X[b.index]=e[b.wh]/2,X[C.index]="start"===d?W:"end"===d?v-W:v/2,f&&(X[0]+=f[0],X[1]+=f[1]);var J=y.bundlePosition=[];J[b.index]=e[b.xy],J[C.index]=e[C.xy];var ee=y.barRectShape=ve({},e);ee[C.wh]=S*Math.max(Math.abs(e[C.wh]),Math.abs(X[C.index]+W)),ee[b.wh]=e[b.wh];var re=y.clipShape={};re[b.xy]=-e[b.xy],re[b.wh]=m.ecSize[b.wh],re[C.xy]=0,re[C.wh]=e[C.wh]}(e,C,u,f,0,S,h,b.valueLineWidth,b.boundingLength,b.repeatCutLength,o,b),b}function M1(a,t){return a.toGlobalCoord(a.dataToCoord(a.scale.parse(t)))}function Y7(a){var t=a.symbolPatternSize,e=Dr(a.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),"image"!==e.type&&e.setStyle({strokeNoScale:!0}),e}function LA(a,t,e,o){var u=a.__pictorialBundle,h=e.pathPosition,v=t.valueDim,g=e.repeatTimes||0,m=0,y=e.symbolSize[t.valueDim.index]+e.valueLineWidth+2*e.symbolMargin;for(gc(a,function(k){k.__pictorialAnimationIndex=m,k.__pictorialRepeatTimes=g,m0:x<0)&&(T=g-1-k),D[v.index]=y*(T-g/2+.5)+h[v.index],{x:D[0],y:D[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function k1(a,t,e,o){var u=a.__pictorialBundle,f=a.__pictorialMainPath;f?Gf(f,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,o):(f=a.__pictorialMainPath=Y7(e),u.add(f),Gf(f,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,o))}function Q3(a,t,e){var o=ve({},t.barRectShape),u=a.__pictorialBarRect;u?Gf(u,null,{shape:o},t,e):((u=a.__pictorialBarRect=new fn({z2:2,shape:o,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,a.add(u))}function FA(a,t,e,o){if(e.symbolClip){var u=a.__pictorialClipPath,f=ve({},e.clipShape),d=t.valueDim,h=e.animationModel,v=e.dataIndex;if(u)Ut(u,{shape:f},h,v);else{f[d.wh]=0,u=new fn({shape:f}),a.__pictorialBundle.setClipPath(u),a.__pictorialClipPath=u;var g={};g[d.wh]=e.clipShape[d.wh],R[o?"updateProps":"initProps"](u,{shape:g},h,v)}}}function J3(a,t){var e=a.getItemModel(t);return e.getAnimationDelayParams=eB,e.isAnimationEnabled=NA,e}function eB(a){return{index:a.__pictorialAnimationIndex,count:a.__pictorialRepeatTimes}}function NA(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Vy(a,t,e,o){var u=new ct,f=new ct;return u.add(f),u.__pictorialBundle=f,f.x=e.bundlePosition[0],f.y=e.bundlePosition[1],e.symbolRepeat?LA(u,t,e):k1(u,0,e),Q3(u,e,o),FA(u,t,e,o),u.__pictorialShapeStr=x1(a,e),u.__pictorialSymbolMeta=e,u}function BA(a,t,e,o){var u=o.__pictorialBarRect;u&&u.removeTextContent();var f=[];gc(o,function(d){f.push(d)}),o.__pictorialMainPath&&f.push(o.__pictorialMainPath),o.__pictorialClipPath&&(e=null),q(f,function(d){ru(d,{scaleX:0,scaleY:0},e,t,function(){o.parent&&o.parent.remove(o)})}),a.setItemGraphicEl(t,null)}function x1(a,t){return[a.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function gc(a,t,e){q(a.__pictorialBundle.children(),function(o){o!==a.__pictorialBarRect&&t.call(e,o)})}function Gf(a,t,e,o,u,f){t&&a.attr(t),o.symbolClip&&!u?e&&a.attr(e):e&&R[u?"updateProps":"initProps"](a,e,o.animationModel,o.dataIndex,f)}function Hy(a,t,e){var o=e.dataIndex,u=e.itemModel,f=u.getModel("emphasis"),d=f.getModel("itemStyle").getItemStyle(),h=u.getModel(["blur","itemStyle"]).getItemStyle(),v=u.getModel(["select","itemStyle"]).getItemStyle(),g=u.getShallow("cursor"),m=f.get("focus"),y=f.get("blurScope"),b=f.get("scale");gc(a,function(k){if(k instanceof Ki){var D=k.style;k.useStyle(ve({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},e.style))}else k.useStyle(e.style);var x=k.ensureState("emphasis");x.style=d,b&&(x.scaleX=1.1*k.scaleX,x.scaleY=1.1*k.scaleY),k.ensureState("blur").style=h,k.ensureState("select").style=v,g&&(k.cursor=g),k.z2=e.z2});var C=t.valueDim.posDesc[+(e.boundingLength>0)];$i(a.__pictorialBarRect,va(u),{labelFetcher:t.seriesModel,labelDataIndex:o,defaultText:Nv(t.seriesModel.getData(),o),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:C}),Yr(a,m,y,f.get("disabled"))}function tB(a){var t=Math.round(a);return Math.abs(a-t)<1e-4?t:Math.ceil(a)}var ng=j7,P$=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return de(t,a),t.prototype.getInitialData=function(e){return e.stack=null,a.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Xc(oc.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"}}}),t}(oc),Uf=P$,rB=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e._layers=[],e}return de(t,a),t.prototype.render=function(e,o,u){var f=e.getData(),d=this,h=this.group,v=e.getLayerSeries(),g=f.getLayout("layoutInfo"),m=g.rect,y=g.boundaryGap;function b(D){return D.name}h.x=0,h.y=m.y+y[0];var C=new Zu(this._layersSeries||[],v,b,b),S=[];function k(D,x,T){var E=d._layers;if("remove"!==D){for(var N,P=[],V=[],H=v[x].indices,j=0;jf&&(f=h),o.push(h)}for(var g=0;gf&&(f=y)}return{y0:u,max:f}}(h),g=v.y0,m=e/v.max,y=u.length,b=u[0].indices.length,S=0;SMath.PI/2?"right":"left"):J&&"center"!==J?"left"===J?(W=d.r0+X,v>Math.PI/2&&(J="right")):"right"===J&&(W=d.r-X,v>Math.PI/2&&(J="left")):(W=h===2*Math.PI&&0===d.r0?0:(d.r+d.r0)/2,J="center"),P.style.align=J,P.style.verticalAlign=D(T,"verticalAlign")||"middle",P.x=W*g+d.cx,P.y=W*m+d.cy;var ee=D(T,"rotate"),re=0;"radial"===ee?(re=-v)<-Math.PI/2&&(re+=Math.PI):"tangential"===ee?(re=Math.PI/2-v)>Math.PI/2?re-=Math.PI:re<-Math.PI/2&&(re+=Math.PI):Cn(ee)&&(re=ee*Math.PI/180),P.rotation=re}),b.dirtyStyle()},t}(Ja),aB=K7,so="sunburstRootToNode",zA="sunburstHighlight",O$=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.render=function(e,o,u,f){var d=this;this.seriesModel=e,this.api=u,this.ecModel=o;var h=e.getData(),v=h.tree.root,g=e.getViewRoot(),m=this.group,y=e.get("renderLabelForZeroData"),b=[];g.eachNode(function(T){b.push(T)}),function S(T,E){function P(N){return N.getId()}function V(N,H){!function k(T,E){if(!y&&T&&!T.getValue()&&(T=null),T!==v&&E!==v)if(E&&E.piece)T?(E.piece.updateData(!1,T,e,o,u),h.setItemGraphicEl(T.dataIndex,E.piece)):function D(T){!T||T.piece&&(m.remove(T.piece),T.piece=null)}(E);else if(T){var P=new aB(T,e,o,u);m.add(P),h.setItemGraphicEl(T.dataIndex,P)}}(null==N?null:T[N],null==H?null:E[H])}0===T.length&&0===E.length||new Zu(E,T,P,P).add(V).update(V).remove(wt(V,null)).execute()}(b,this._oldChildren||[]),function x(T,E){E.depth>0?(d.virtualPiece?d.virtualPiece.updateData(!1,T,e,o,u):(d.virtualPiece=new aB(T,e,o,u),m.add(d.virtualPiece)),E.piece.off("click"),d.virtualPiece.on("click",function(P){d._rootToNode(E.parentNode)})):d.virtualPiece&&(m.remove(d.virtualPiece),d.virtualPiece=null)}(v,g),this._initEvents(),this._oldChildren=b},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(o){var u=!1;e.seriesModel.getViewRoot().eachNode(function(d){if(!u&&d.piece&&d.piece===o.target){var h=d.getModel().get("nodeClick");if("rootToNode"===h)e._rootToNode(d);else if("link"===h){var v=d.getModel(),g=v.get("link");g&&G0(g,v.get("target",!0)||"_blank")}u=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:so,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,o){var f=o.getData().getItemLayout(0);if(f){var d=e[0]-f.cx,h=e[1]-f.cy,v=Math.sqrt(d*d+h*h);return v<=f.r&&v>=f.r0}},t.type="sunburst",t}(jn),$7=O$,Q7=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.ignoreStyleOnData=!0,e}return de(t,a),t.prototype.getInitialData=function(e,o){var u={name:e.name,children:e.data};J7(u);var f=this._levelModels=Me(e.levels||[],function(v){return new Kn(v,this,o)},this),d=LT.createTree(u,this,function h(v){v.wrapMethod("getItemModel",function(g,m){var y=d.getNodeByDataIndex(m),b=f[y.depth];return b&&(g.parentModel=b),g})});return d.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var o=a.prototype.getDataParams.apply(this,arguments),u=this.getData().tree.getNodeByDataIndex(e);return o.treePathInfo=Ww(u,this),o},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var o=this.getRawData().tree.root;(!e||e!==o&&!o.contains(e))&&(this._viewRoot=o)},t.prototype.enableAriaDecal=function(){kN(this)},t.type="series.sunburst",t.defaultOption={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:[],sort:"desc"},t}(fr);function J7(a){var t=0;q(a.children,function(o){J7(o);var u=o.value;Ce(u)&&(u=u[0]),t+=u});var e=a.value;Ce(e)&&(e=e[0]),(null==e||isNaN(e))&&(e=t),e<0&&(e=0),Ce(a.value)?a.value[0]=e:a.value=e}var I$=Q7,Gy=Math.PI/180;function eW(a,t,e){t.eachSeriesByType(a,function(o){var u=o.get("center"),f=o.get("radius");Ce(f)||(f=[0,f]),Ce(u)||(u=[u,u]);var d=e.getWidth(),h=e.getHeight(),v=Math.min(d,h),g=Ie(u[0],d),m=Ie(u[1],h),y=Ie(f[0],v/2),b=Ie(f[1],v/2),C=-o.get("startAngle")*Gy,S=o.get("minAngle")*Gy,k=o.getData().tree.root,D=o.getViewRoot(),x=D.depth,T=o.get("sort");null!=T&&oB(D,T);var E=0;q(D.children,function(ce){!isNaN(ce.getValue())&&E++});var P=D.getValue(),V=Math.PI/(P||E)*2,N=D.depth>0,j=(b-y)/(D.height-(N?-1:1)||1),Z=o.get("clockwise"),W=o.get("stillShowZeroSum"),X=Z?1:-1;if(N){var ie=2*Math.PI;k.setLayout({angle:ie,startAngle:C,endAngle:C+ie,clockwise:Z,cx:g,cy:m,r0:y,r:y+j})}!function ce(me,pe){if(me){var _e=pe;if(me!==k){var Pe=me.getValue(),Be=0===P&&W?V:Pe*V;Be1;)d=d.parentNode;var h=u.getColorFromPalette(d.name||d.dataIndex+"",t);return o.depth>1&&Ne(h)&&(h=cM(h,(o.depth-1)/(f-1)*.5)),h}(d,o,f.root.height)),ve(u.ensureUniqueItemVisual(d.dataIndex,"style"),v)})})}var GA={color:"fill",borderColor:"stroke"},sB={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},mc=Sn(),lB=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,o){return wl(null,this)},t.prototype.getDataParams=function(e,o,u){var f=a.prototype.getDataParams.call(this,e,o);return u&&(f.info=mc(u).info),f},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(fr),uB=lB;function nW(a,t){return t=t||[0,0],Me(["x","y"],function(e,o){var u=this.getAxis(e),f=t[o],d=a[o]/2;return"category"===u.type?u.getBandWidth():Math.abs(u.dataToCoord(f-d)-u.dataToCoord(f+d))},this)}function iW(a,t){return t=t||[0,0],Me([0,1],function(e){var o=t[e],u=a[e]/2,f=[],d=[];return f[e]=o-u,d[e]=o+u,f[1-e]=d[1-e]=t[1-e],Math.abs(this.dataToPoint(f)[e]-this.dataToPoint(d)[e])},this)}function oW(a,t){var e=this.getAxis(),o=t instanceof Array?t[0]:t,u=(a instanceof Array?a[0]:a)/2;return"category"===e.type?e.getBandWidth():Math.abs(e.dataToCoord(o-u)-e.dataToCoord(o+u))}function sW(a,t){return t=t||[0,0],Me(["Radius","Angle"],function(e,o){var f=this["get"+e+"Axis"](),d=t[o],h=a[o]/2,v="category"===f.type?f.getBandWidth():Math.abs(f.dataToCoord(d-h)-f.dataToCoord(d+h));return"Angle"===e&&(v=v*Math.PI/180),v},this)}function R1(a,t,e,o){return a&&(a.legacy||!1!==a.legacy&&!e&&!o&&"tspan"!==t&&("text"===t||je(a,"text")))}function fB(a,t,e){var u,f,d,o=a;if("text"===t)d=o;else{d={},je(o,"text")&&(d.text=o.text),je(o,"rich")&&(d.rich=o.rich),je(o,"textFill")&&(d.fill=o.textFill),je(o,"textStroke")&&(d.stroke=o.textStroke),je(o,"fontFamily")&&(d.fontFamily=o.fontFamily),je(o,"fontSize")&&(d.fontSize=o.fontSize),je(o,"fontStyle")&&(d.fontStyle=o.fontStyle),je(o,"fontWeight")&&(d.fontWeight=o.fontWeight),f={type:"text",style:d,silent:!0},u={};var h=je(o,"textPosition");e?u.position=h?o.textPosition:"inside":h&&(u.position=o.textPosition),je(o,"textPosition")&&(u.position=o.textPosition),je(o,"textOffset")&&(u.offset=o.textOffset),je(o,"textRotation")&&(u.rotation=o.textRotation),je(o,"textDistance")&&(u.distance=o.textDistance)}return dB(d,a),q(d.rich,function(v){dB(v,v)}),{textConfig:u,textContent:f}}function dB(a,t){!t||(t.font=t.textFont||t.font,je(t,"textStrokeWidth")&&(a.lineWidth=t.textStrokeWidth),je(t,"textAlign")&&(a.align=t.textAlign),je(t,"textVerticalAlign")&&(a.verticalAlign=t.textVerticalAlign),je(t,"textLineHeight")&&(a.lineHeight=t.textLineHeight),je(t,"textWidth")&&(a.width=t.textWidth),je(t,"textHeight")&&(a.height=t.textHeight),je(t,"textBackgroundColor")&&(a.backgroundColor=t.textBackgroundColor),je(t,"textPadding")&&(a.padding=t.textPadding),je(t,"textBorderColor")&&(a.borderColor=t.textBorderColor),je(t,"textBorderWidth")&&(a.borderWidth=t.textBorderWidth),je(t,"textBorderRadius")&&(a.borderRadius=t.textBorderRadius),je(t,"textBoxShadowColor")&&(a.shadowColor=t.textBoxShadowColor),je(t,"textBoxShadowBlur")&&(a.shadowBlur=t.textBoxShadowBlur),je(t,"textBoxShadowOffsetX")&&(a.shadowOffsetX=t.textBoxShadowOffsetX),je(t,"textBoxShadowOffsetY")&&(a.shadowOffsetY=t.textBoxShadowOffsetY))}function hB(a,t,e){var o=a;o.textPosition=o.textPosition||e.position||"inside",null!=e.offset&&(o.textOffset=e.offset),null!=e.rotation&&(o.textRotation=e.rotation),null!=e.distance&&(o.textDistance=e.distance);var u=o.textPosition.indexOf("inside")>=0,f=a.fill||"#000";pB(o,t);var d=null==o.textFill;return u?d&&(o.textFill=e.insideFill||"#fff",!o.textStroke&&e.insideStroke&&(o.textStroke=e.insideStroke),!o.textStroke&&(o.textStroke=f),null==o.textStrokeWidth&&(o.textStrokeWidth=2)):(d&&(o.textFill=a.fill||e.outsideFill||"#000"),!o.textStroke&&e.outsideStroke&&(o.textStroke=e.outsideStroke)),o.text=t.text,o.rich=t.rich,q(t.rich,function(h){pB(h,h)}),o}function pB(a,t){!t||(je(t,"fill")&&(a.textFill=t.fill),je(t,"stroke")&&(a.textStroke=t.fill),je(t,"lineWidth")&&(a.textStrokeWidth=t.lineWidth),je(t,"font")&&(a.font=t.font),je(t,"fontStyle")&&(a.fontStyle=t.fontStyle),je(t,"fontWeight")&&(a.fontWeight=t.fontWeight),je(t,"fontSize")&&(a.fontSize=t.fontSize),je(t,"fontFamily")&&(a.fontFamily=t.fontFamily),je(t,"align")&&(a.textAlign=t.align),je(t,"verticalAlign")&&(a.textVerticalAlign=t.verticalAlign),je(t,"lineHeight")&&(a.textLineHeight=t.lineHeight),je(t,"width")&&(a.textWidth=t.width),je(t,"height")&&(a.textHeight=t.height),je(t,"backgroundColor")&&(a.textBackgroundColor=t.backgroundColor),je(t,"padding")&&(a.textPadding=t.padding),je(t,"borderColor")&&(a.textBorderColor=t.borderColor),je(t,"borderWidth")&&(a.textBorderWidth=t.borderWidth),je(t,"borderRadius")&&(a.textBorderRadius=t.borderRadius),je(t,"shadowColor")&&(a.textBoxShadowColor=t.shadowColor),je(t,"shadowBlur")&&(a.textBoxShadowBlur=t.shadowBlur),je(t,"shadowOffsetX")&&(a.textBoxShadowOffsetX=t.shadowOffsetX),je(t,"shadowOffsetY")&&(a.textBoxShadowOffsetY=t.shadowOffsetY),je(t,"textShadowColor")&&(a.textShadowColor=t.textShadowColor),je(t,"textShadowBlur")&&(a.textShadowBlur=t.textShadowBlur),je(t,"textShadowOffsetX")&&(a.textShadowOffsetX=t.textShadowOffsetX),je(t,"textShadowOffsetY")&&(a.textShadowOffsetY=t.textShadowOffsetY))}var jA={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},vB=Zt(jA),Uy=(Ys(Vo,function(a,t){return a[t]=1,a},{}),Vo.join(", "),["","style","shape","extra"]),rg=Sn();function L1(a,t,e,o,u){var f=a+"Animation",d=Zp(a,o,u)||{},h=rg(t).userDuring;return d.duration>0&&(d.during=h?ze(hW,{el:t,userDuring:h}):null,d.setToFinal=!0,d.scope=a),ve(d,e[f]),d}function F1(a,t,e,o){var u=(o=o||{}).dataIndex,f=o.isInit,d=o.clearStyle,h=e.isAnimationEnabled(),v=rg(a),g=t.style;v.userDuring=t.during;var m={},y={};if(function vW(a,t,e){for(var o=0;o=0)){var b=a.getAnimationStyleProps(),C=b?b.style:null;if(C){!f&&(f=o.style={});var S=Zt(e);for(g=0;g0&&a.animateFrom(b,C)}else!function cW(a,t,e,o,u){if(u){var f=L1("update",a,t,o,e);f.duration>0&&a.animateFrom(u,f)}}(a,t,u||0,e,m);lW(a,t),g?a.dirty():a.markRedraw()}function lW(a,t){for(var e=rg(a).leaveToProps,o=0;o=0){!d&&(d=o[a]={});var C=Zt(f);for(m=0;mo[1]&&o.reverse(),{coordSys:{type:"polar",cx:a.cx,cy:a.cy,r:o[1],r0:o[0]},api:{coord:function(f){var d=t.dataToRadius(f[0]),h=e.dataToAngle(f[1]),v=a.coordToPoint([d,h]);return v.push(d,h*Math.PI/180),v},size:ze(sW,a)}}},calendar:function UA(a){var t=a.getRect(),e=a.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:a.getCellWidth(),cellHeight:a.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(u,f){return a.dataToPoint(u,f)}}}}};function Yy(a){return a instanceof Xt}function KA(a){return a instanceof _s}var H1=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.render=function(e,o,u,f){this._progressiveEls=null;var d=this._data,h=e.getData(),v=this.group,g=yB(e,h,o,u);d||v.removeAll(),h.diff(d).add(function(y){U1(u,null,y,g(y,f),e,v,h)}).remove(function(y){var b=d.getItemGraphicEl(y);ig(b,mc(b).option,e)}).update(function(y,b){var C=d.getItemGraphicEl(b);U1(u,C,y,g(y,f),e,v,h)}).execute();var m=e.get("clip",!0)?$_(e.coordinateSystem,!1,e):null;m?v.setClipPath(m):v.removeClipPath(),this._data=h},t.prototype.incrementalPrepareRender=function(e,o,u){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,o,u,f,d){var h=o.getData(),v=yB(o,h,u,f),g=this._progressiveEls=[];function m(C){C.isGroup||(C.incremental=!0,C.ensureState("emphasis").hoverLayer=!0)}for(var y=e.start;y=0?t.getStore().get(me,ie):void 0}var pe=t.get(ce.name,ie),_e=ce&&ce.ordinalMeta;return _e?_e.categories[pe]:pe},styleEmphasis:function H(re,ie){null==ie&&(ie=g);var ce=T(ie,_c).getItemStyle(),me=E(ie,_c),pe=Cr(me,null,null,!0,!0);pe.text=me.getShallow("show")?Su(a.getFormattedLabel(ie,_c),a.getFormattedLabel(ie,jf),Nv(t,ie)):null;var _e=L0(me,null,!0);return Z(re,ce),ce=hB(ce,pe,_e),re&&j(ce,re),ce.legacy=!0,ce},visual:function W(re,ie){if(null==ie&&(ie=g),je(GA,re)){var ce=t.getItemVisual(ie,"style");return ce?ce[GA[re]]:null}if(je(sB,re))return t.getItemVisual(ie,re)},barLayout:function X(re){if("cartesian2d"===f.type)return function sX(a){var t=[],e=a.axis,o="axis0";if("category"===e.type){for(var u=e.getBandWidth(),f=0;f=m;y--)ig(t.childAt(y),mc(t).option,u)}}(a,g,e,o,u),d>=0?f.replaceAt(g,d):f.add(g),g}function JA(a,t,e){var o=mc(a),u=t.type,f=t.shape,d=t.style;return e.isUniversalTransitionEnabled()||null!=u&&u!==o.customGraphicType||"path"===u&&function W1(a){return a&&(je(a,"pathData")||je(a,"d"))}(f)&&tE(f)!==o.customPathData||"image"===u&&je(d,"image")&&d.image!==o.customImagePath}function bB(a,t,e){var o=t?sg(a,t):a,u=t?eE(a,o,_c):a.style,f=a.type,d=o?o.textConfig:null,h=a.textContent,v=h?t?sg(h,t):h:null;if(u&&(e.isLegacy||R1(u,f,!!d,!!v))){e.isLegacy=!0;var g=fB(u,f,!t);!d&&g.textConfig&&(d=g.textConfig),!v&&g.textContent&&(v=g.textContent)}!t&&v&&!v.type&&(v.type="text");var y=t?e[t]:e.normal;y.cfg=d,y.conOpt=v}function sg(a,t){return t?a?a[t]:null:a}function eE(a,t,e){var o=t&&t.style;return null==o&&e===_c&&a&&(o=a.styleEmphasis),o}function wB(a,t){var e=a&&a.name;return null!=e?e:"e\0\0"+t}function SB(a,t){var e=this.context;QA(e.api,null!=t?e.oldChildren[t]:null,e.dataIndex,null!=a?e.newChildren[a]:null,e.seriesModel,e.group)}function MW(a){var t=this.context,e=t.oldChildren[a];ig(e,mc(e).option,t.seriesModel)}function tE(a){return a&&(a.pathData||a.d)}var $h=Sn(),nE=ot,rE=ze,kW=function(){function a(){this._dragging=!1,this.animationThreshold=15}return a.prototype.render=function(t,e,o,u){var f=e.get("value"),d=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=o,u||this._lastValue!==f||this._lastStatus!==d){this._lastValue=f,this._lastStatus=d;var h=this._group,v=this._handle;if(!d||"hide"===d)return h&&h.hide(),void(v&&v.hide());h&&h.show(),v&&v.show();var g={};this.makeElOption(g,f,t,e,o);var m=g.graphicKey;m!==this._lastGraphicKey&&this.clear(o),this._lastGraphicKey=m;var y=this._moveAnimation=this.determineAnimation(t,e);if(h){var b=wt(kB,e,y);this.updatePointerEl(h,g,b),this.updateLabelEl(h,g,b,e)}else h=this._group=new ct,this.createPointerEl(h,g,t,e),this.createLabelEl(h,g,t,e),o.getZr().add(h);mi(h,e,!0),this._renderHandle(f)}},a.prototype.remove=function(t){this.clear(t)},a.prototype.dispose=function(t){this.clear(t)},a.prototype.determineAnimation=function(t,e){var o=e.get("animation"),u=t.axis,f="category"===u.type,d=e.get("snap");if(!d&&!f)return!1;if("auto"===o||null==o){var h=this.animationThreshold;if(f&&u.getBandWidth()>h)return!0;if(d){var v=pT(t).seriesDataCount,g=u.getExtent();return Math.abs(g[0]-g[1])/v>h}return!1}return!0===o},a.prototype.makeElOption=function(t,e,o,u,f){},a.prototype.createPointerEl=function(t,e,o,u){var f=e.pointer;if(f){var d=$h(t).pointerEl=new R[f.type](nE(e.pointer));t.add(d)}},a.prototype.createLabelEl=function(t,e,o,u){if(e.label){var f=$h(t).labelEl=new dn(nE(e.label));t.add(f),xB(f,u)}},a.prototype.updatePointerEl=function(t,e,o){var u=$h(t).pointerEl;u&&e.pointer&&(u.setStyle(e.pointer.style),o(u,{shape:e.pointer.shape}))},a.prototype.updateLabelEl=function(t,e,o,u){var f=$h(t).labelEl;f&&(f.setStyle(e.label.style),o(f,{x:e.label.x,y:e.label.y}),xB(f,u))},a.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var h,e=this._axisPointerModel,o=this._api.getZr(),u=this._handle,f=e.getModel("handle"),d=e.get("status");if(!f.get("show")||!d||"hide"===d)return u&&o.remove(u),void(this._handle=null);this._handle||(h=!0,u=this._handle=gv(f.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(m){It(m.event)},onmousedown:rE(this._onHandleDragMove,this,0,0),drift:rE(this._onHandleDragMove,this),ondragend:rE(this._onHandleDragEnd,this)}),o.add(u)),mi(u,e,!1),u.setStyle(f.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var v=f.get("size");Ce(v)||(v=[v,v]),u.scaleX=v[0]/2,u.scaleY=v[1]/2,sh(this,"_doDispatchAxisPointer",f.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,h)}},a.prototype._moveHandleToValue=function(t,e){kB(this._axisPointerModel,!e&&this._moveAnimation,this._handle,iE(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},a.prototype._onHandleDragMove=function(t,e){var o=this._handle;if(o){this._dragging=!0;var u=this.updateHandleTransform(iE(o),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=u,o.stopAnimation(),o.attr(iE(u)),$h(o).lastProp=null,this._doDispatchAxisPointer()}},a.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,o=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:o.axis.dim,axisIndex:o.componentIndex}]})}},a.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},a.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),o=this._group,u=this._handle;e&&o&&(this._lastGraphicKey=null,o&&e.remove(o),u&&e.remove(u),this._group=null,this._handle=null,this._payloadInfo=null),c_(this,"_doDispatchAxisPointer")},a.prototype.doClear=function(){},a.prototype.buildLabel=function(t,e,o){return{x:t[o=o||0],y:t[1-o],width:e[o],height:e[1-o]}},a}();function kB(a,t,e,o){DB($h(e).lastProp,o)||($h(e).lastProp=o,t?Ut(e,o,a):(e.stopAnimation(),e.attr(o)))}function DB(a,t){if(Ke(a)&&Ke(t)){var e=!0;return q(t,function(o,u){e=e&&DB(a[u],o)}),!!e}return a===t}function xB(a,t){a[t.get(["label","show"])?"show":"hide"]()}function iE(a){return{x:a.x||0,y:a.y||0,rotation:a.rotation||0}}function mi(a,t,e){var o=t.get("z"),u=t.get("zlevel");a&&a.traverse(function(f){"group"!==f.type&&(null!=o&&(f.z=o),null!=u&&(f.zlevel=u),f.silent=e)})}var Y1=kW;function q1(a){var o,t=a.get("type"),e=a.getModel(t+"Style");return"line"===t?(o=e.getLineStyle()).fill=null:"shadow"===t&&((o=e.getAreaStyle()).stroke=null),o}function TB(a,t,e,o,u){var d=xW(e.get("value"),t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),h=e.getModel("label"),v=jd(h.get("padding")||0),g=h.getFont(),m=pd(d,g),y=u.position,b=m.width+v[1]+v[3],C=m.height+v[0]+v[2],S=u.align;"right"===S&&(y[0]-=b),"center"===S&&(y[0]-=b/2);var k=u.verticalAlign;"bottom"===k&&(y[1]-=C),"middle"===k&&(y[1]-=C/2),function DW(a,t,e,o){var u=o.getWidth(),f=o.getHeight();a[0]=Math.min(a[0]+t,u)-t,a[1]=Math.min(a[1]+e,f)-e,a[0]=Math.max(a[0],0),a[1]=Math.max(a[1],0)}(y,b,C,o);var D=h.get("backgroundColor");(!D||"auto"===D)&&(D=t.get(["axisLine","lineStyle","color"])),a.label={x:y[0],y:y[1],style:Cr(h,{text:d,font:g,fill:h.getTextColor(),padding:v,backgroundColor:D}),z2:10}}function xW(a,t,e,o,u){a=t.scale.parse(a);var f=t.scale.getLabel({value:a},{precision:u.precision}),d=u.formatter;if(d){var h={value:ZC(t,{value:a}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};q(o,function(v){var g=e.getSeriesByIndex(v.seriesIndex),y=g&&g.getDataParams(v.dataIndexInside);y&&h.seriesData.push(y)}),Ne(d)?f=d.replace("{value}",f):et(d)&&(f=d(h))}return f}function AB(a,t,e){var o=[1,0,0,1,0,0];return el(o,o,e.rotation),vs(o,o,e.position),Cl([a.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],o)}function TW(a,t,e,o,u,f){var d=ra.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=u.get(["label","margin"]),TB(t,o,u,f,{position:AB(o.axis,a,e),align:d.textAlign,verticalAlign:d.textVerticalAlign})}function aE(a,t,e){return{x1:a[e=e||0],y1:a[1-e],x2:t[e],y2:t[1-e]}}function EB(a,t,e){return{x:a[e=e||0],y:a[1-e],width:t[e],height:t[1-e]}}function PB(a,t,e,o,u,f){return{cx:a,cy:t,r0:e,r:o,startAngle:u,endAngle:f,clockwise:!0}}var OB=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return de(t,a),t.prototype.makeElOption=function(e,o,u,f,d){var h=u.axis,v=h.grid,g=f.get("type"),m=IB(v,h).getOtherAxis(h).getGlobalExtent(),y=h.toGlobalCoord(h.dataToCoord(o,!0));if(g&&"none"!==g){var b=q1(f),C=AW[g](h,y,m);C.style=b,e.graphicKey=C.type,e.pointer=C}TW(o,e,Th(v.model,u),u,f,d)},t.prototype.getHandleTransform=function(e,o,u){var f=Th(o.axis.grid.model,o,{labelInside:!1});f.labelMargin=u.get(["handle","margin"]);var d=AB(o.axis,e,f);return{x:d[0],y:d[1],rotation:f.rotation+(f.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,o,u,f){var d=u.axis,h=d.grid,v=d.getGlobalExtent(!0),g=IB(h,d).getOtherAxis(d).getGlobalExtent(),m="x"===d.dim?0:1,y=[e.x,e.y];y[m]+=o[m],y[m]=Math.min(v[1],y[m]),y[m]=Math.max(v[0],y[m]);var b=(g[1]+g[0])/2,C=[b,b];return C[m]=y[m],{x:y[0],y:y[1],rotation:e.rotation,cursorPoint:C,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][m]}},t}(Y1);function IB(a,t){var e={};return e[t.dim+"AxisIndex"]=t.index,a.getCartesian(e)}var AW={line:function(t,e,o){return{type:"Line",subPixelOptimize:!0,shape:aE([e,o[0]],[e,o[1]],RB(t))}},shadow:function(t,e,o){var u=Math.max(1,t.getBandWidth());return{type:"Rect",shape:EB([e-u/2,o[0]],[u,o[1]-o[0]],RB(t))}}};function RB(a){return"x"===a.dim?0:1}var EW=OB,vn=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.type="axisPointer",t.defaultOption={show:"auto",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}},t}(sn),N$=vn,Yf=Sn(),B$=q;function Fl(a,t,e){if(!tn.node){var o=t.getZr();Yf(o).records||(Yf(o).records={}),function yc(a,t){function e(o,u){a.on(o,function(f){var d=function LB(a){var t={showTip:[],hideTip:[]};return{dispatchAction:function o(u){var f=t[u.type];f?f.push(u):(u.dispatchAction=o,a.dispatchAction(u))},pendings:t}}(t);B$(Yf(a).records,function(h){h&&u(h,f,d.dispatchAction)}),function bc(a,t){var u,e=a.showTip.length,o=a.hideTip.length;e?u=a.showTip[e-1]:o&&(u=a.hideTip[o-1]),u&&(u.dispatchAction=null,t.dispatchAction(u))}(d.pendings,t)})}Yf(a).initialized||(Yf(a).initialized=!0,e("click",wt(X1,"click")),e("mousemove",wt(X1,"mousemove")),e("globalout",Z1))}(o,t),(Yf(o).records[a]||(Yf(o).records[a]={})).handler=e}}function Z1(a,t,e){a.handler("leave",null,e)}function X1(a,t,e,o){t.handler(a,e,o)}function K1(a,t){if(!tn.node){var e=t.getZr();(Yf(e).records||{})[a]&&(Yf(e).records[a]=null)}}var PW=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.render=function(e,o,u){var f=o.getComponent("tooltip"),d=e.get("triggerOn")||f&&f.get("triggerOn")||"mousemove|click";Fl("axisPointer",u,function(h,v,g){"none"!==d&&("leave"===h||d.indexOf(h)>=0)&&g({type:"updateAxisPointer",currTrigger:h,x:v&&v.offsetX,y:v&&v.offsetY})})},t.prototype.remove=function(e,o){K1("axisPointer",o)},t.prototype.dispose=function(e,o){K1("axisPointer",o)},t.type="axisPointer",t}(Ze),oa=PW;function qf(a,t){var u,e=[],o=a.seriesIndex;if(null==o||!(u=t.getSeriesByIndex(o)))return{point:[]};var f=u.getData(),d=wd(f,a);if(null==d||d<0||Ce(d))return{point:[]};var h=f.getItemGraphicEl(d),v=u.coordinateSystem;if(u.getTooltipPosition)e=u.getTooltipPosition(d)||[];else if(v&&v.dataToPoint)if(a.isStacked){var g=v.getBaseAxis(),y=v.getOtherAxis(g).dim,C="x"===y||"radius"===y?1:0,S=f.mapDimension(g.dim),k=[];k[C]=f.get(S,d),k[1-C]=f.get(f.getCalculationInfo("stackResultDimension"),d),e=v.dataToPoint(k)||[]}else e=v.dataToPoint(f.getValues(Me(v.dimensions,function(x){return f.mapDimension(x)}),d))||[];else if(h){var D=h.getBoundingRect().clone();D.applyTransform(h.transform),e=[D.x+D.width/2,D.y+D.height/2]}return{point:e,el:h}}var FB=Sn();function oE(a,t,e){var o=a.currTrigger,u=[a.x,a.y],f=a,d=a.dispatchAction||ze(e.dispatchAction,e),h=t.getComponent("axisPointer").coordSysAxesInfo;if(h){sE(u)&&(u=qf({seriesIndex:f.seriesIndex,dataIndex:f.dataIndex},t).point);var v=sE(u),g=f.axesInfo,m=h.axesInfo,y="leave"===o||sE(u),b={},C={},S={list:[],map:{}},k={showPointer:wt(IW,C),showTooltip:wt(RW,S)};q(h.coordSysMap,function(x,T){var E=v||x.containPoint(u);q(h.coordSysAxesInfo[T],function(P,V){var N=P.axis,H=function z$(a,t){for(var e=0;e<(a||[]).length;e++){var o=a[e];if(t.axis.dim===o.axisDim&&t.axis.model.componentIndex===o.axisIndex)return o}}(g,P);if(!y&&E&&(!g||H)){var j=H&&H.value;null==j&&!v&&(j=N.pointToData(u)),null!=j&&NB(P,j,k,!1,b)}})});var D={};return q(m,function(x,T){var E=x.linkGroup;E&&!C[T]&&q(E.axesInfo,function(P,V){var N=C[V];if(P!==x&&N){var H=N.value;E.mapper&&(H=x.axis.scale.parse(E.mapper(H,lg(P),lg(x)))),D[x.key]=H}})}),q(D,function(x,T){NB(m[T],x,k,!0,b)}),function V$(a,t,e){var o=e.axesInfo=[];q(t,function(u,f){var d=u.axisPointerModel.option,h=a[f];h?(!u.useHandle&&(d.status="show"),d.value=h.value,d.seriesDataIndices=(h.payloadBatch||[]).slice()):!u.useHandle&&(d.status="hide"),"show"===d.status&&o.push({axisDim:u.axis.dim,axisIndex:u.axis.model.componentIndex,value:d.value})})}(C,m,b),function qy(a,t,e,o){if(!sE(t)&&a.list.length){var u=((a.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};o({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:u.dataIndexInside,dataIndex:u.dataIndex,seriesIndex:u.seriesIndex,dataByCoordSys:a.list})}else o({type:"hideTip"})}(S,u,a,d),function H$(a,t,e){var o=e.getZr(),u="axisPointerLastHighlights",f=FB(o)[u]||{},d=FB(o)[u]={};q(a,function(g,m){var y=g.axisPointerModel.option;"show"===y.status&&q(y.seriesDataIndices,function(b){d[b.seriesIndex+" | "+b.dataIndex]=b})});var h=[],v=[];q(f,function(g,m){!d[m]&&v.push(g)}),q(d,function(g,m){!f[m]&&h.push(g)}),v.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:v}),h.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:h})}(m,0,e),b}}function NB(a,t,e,o,u){var f=a.axis;if(!f.scale.isBlank()&&f.containData(t)){if(!a.involveSeries)return void e.showPointer(a,t);var d=function OW(a,t){var e=t.axis,o=e.dim,u=a,f=[],d=Number.MAX_VALUE,h=-1;return q(t.seriesModels,function(v,g){var y,b,m=v.getData().mapDimensionsAll(o);if(v.getAxisTooltipData){var C=v.getAxisTooltipData(m,a,e);b=C.dataIndices,y=C.nestestValue}else{if(!(b=v.getData().indicesOfNearest(m[0],a,"category"===e.type?.5:null)).length)return;y=v.getData().get(m[0],b[0])}if(null!=y&&isFinite(y)){var S=a-y,k=Math.abs(S);k<=d&&((k=0&&h<0)&&(d=k,h=S,u=y,f.length=0),q(b,function(D){f.push({seriesIndex:v.seriesIndex,dataIndexInside:D,dataIndex:v.getData().getRawIndex(D)})}))}}),{payloadBatch:f,snapToValue:u}}(t,a),h=d.payloadBatch,v=d.snapToValue;h[0]&&null==u.seriesIndex&&ve(u,h[0]),!o&&a.snap&&f.containData(v)&&null!=v&&(t=v),e.showPointer(a,t,h),e.showTooltip(a,d,v)}}function IW(a,t,e,o){a[t.key]={value:e,payloadBatch:o}}function RW(a,t,e,o){var u=e.payloadBatch,f=t.axis,d=f.model,h=t.axisPointerModel;if(t.triggerTooltip&&u.length){var v=t.coordSys.model,g=iy(v),m=a.map[g];m||(m=a.map[g]={coordSysId:v.id,coordSysIndex:v.componentIndex,coordSysType:v.type,coordSysMainType:v.mainType,dataByAxis:[]},a.list.push(m)),m.dataByAxis.push({axisDim:f.dim,axisIndex:d.componentIndex,axisType:d.type,axisId:d.id,value:o,valueLabelOpt:{precision:h.get(["label","precision"]),formatter:h.get(["label","formatter"])},seriesDataIndices:u.slice()})}}function lg(a){var t=a.axis.model,e={},o=e.axisDim=a.axis.dim;return e.axisIndex=e[o+"AxisIndex"]=t.componentIndex,e.axisName=e[o+"AxisName"]=t.name,e.axisId=e[o+"AxisId"]=t.id,e}function sE(a){return!a||null==a[0]||isNaN(a[0])||null==a[1]||isNaN(a[1])}function Zy(a){Af.registerAxisPointerClass("CartesianAxisPointer",EW),a.registerComponentModel(N$),a.registerComponentView(oa),a.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Ce(e)&&(t.axisPointer.link=[e])}}),a.registerProcessor(a.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=function CF(a,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function wF(a,t,e){var o=t.getComponent("tooltip"),u=t.getComponent("axisPointer"),f=u.get("link",!0)||[],d=[];q(e.getCoordinateSystems(),function(h){if(h.axisPointerEnabled){var v=iy(h.model),g=a.coordSysAxesInfo[v]={};a.coordSysMap[v]=h;var y=h.model.getModel("tooltip",o);if(q(h.getAxes(),wt(k,!1,null)),h.getTooltipAxes&&o&&y.get("show")){var b="axis"===y.get("trigger"),C="cross"===y.get(["axisPointer","type"]),S=h.getTooltipAxes(y.get(["axisPointer","axis"]));(b||C)&&q(S.baseAxes,wt(k,!C||"cross",b)),C&&q(S.otherAxes,wt(k,"cross",!1))}}function k(D,x,T){var E=T.model.getModel("axisPointer",u),P=E.get("show");if(P&&("auto"!==P||D||kw(E))){null==x&&(x=E.get("triggerTooltip")),E=D?function SF(a,t,e,o,u,f){var d=t.getModel("axisPointer"),v={};q(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(b){v[b]=ot(d.get(b))}),v.snap="category"!==a.type&&!!f,"cross"===d.get("type")&&(v.type="line");var g=v.label||(v.label={});if(null==g.show&&(g.show=!1),"cross"===u){var m=d.get(["label","show"]);if(g.show=null==m||m,!f){var y=v.lineStyle=d.get("crossStyle");y&&rt(g,y.textStyle)}}return a.model.getModel("axisPointer",new Kn(v,e,o))}(T,y,u,t,D,x):E;var V=E.get("snap"),N=iy(T.model),H=x||V||"category"===T.type,j=a.axesInfo[N]={key:N,axis:T,coordSys:h,axisPointerModel:E,triggerTooltip:x,involveSeries:H,snap:V,useHandle:kw(E),seriesModels:[],linkGroup:null};g[N]=j,a.seriesInvolved=a.seriesInvolved||H;var Z=function ya(a,t){for(var e=t.model,o=t.dim,u=0;uD?"left":"right",y=Math.abs(g[1]-x)/k<.3?"middle":g[1]>x?"top":"bottom"}return{position:g,align:m,verticalAlign:y}}(o,u,0,v,f.get(["label","margin"]));TB(e,u,f,d,D)},t}(Y1),VB={line:function(t,e,o,u){return"angle"===t.dim?{type:"Line",shape:aE(e.coordToPoint([u[0],o]),e.coordToPoint([u[1],o]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:o}}},shadow:function(t,e,o,u){var f=Math.max(1,t.getBandWidth()),d=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:PB(e.cx,e.cy,u[0],u[1],(-o-f/2)*d,(f/2-o)*d)}:{type:"Sector",shape:PB(e.cx,e.cy,o-f/2,o+f/2,0,2*Math.PI)}}},HB=LW,zB=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.findAxisModel=function(e){var o;return this.ecModel.eachComponent(e,function(f){f.getCoordSysModel()===this&&(o=f)},this),o},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(sn),FW=zB,uE=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return de(t,a),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ii).models[0]},t.type="polarAxis",t}(sn);Ir(uE,wf);var GB=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.type="angleAxis",t}(uE),Nl=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.type="radiusAxis",t}(uE),Cc=function(a){function t(e,o){return a.call(this,"radius",e,o)||this}return de(t,a),t.prototype.pointToData=function(e,o){return this.polar.pointToData(e,o)["radius"===this.dim?0:1]},t}(Fa);Cc.prototype.dataToRadius=Fa.prototype.dataToCoord,Cc.prototype.radiusToData=Fa.prototype.coordToData;var NW=Cc,BW=Sn(),Xy=function(a){function t(e,o){return a.call(this,"angle",e,o||[0,360])||this}return de(t,a),t.prototype.pointToData=function(e,o){return this.polar.pointToData(e,o)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,o=e.getLabelModel(),u=e.scale,f=u.getExtent(),d=u.count();if(f[1]-f[0]<1)return 0;var h=f[0],v=e.dataToCoord(h+1)-e.dataToCoord(h),g=Math.abs(v),m=pd(null==h?"":h+"",o.getFont(),"center","top"),b=Math.max(m.height,7)/g;isNaN(b)&&(b=1/0);var C=Math.max(0,Math.floor(b)),S=BW(e.model),k=S.lastAutoInterval,D=S.lastTickCount;return null!=k&&null!=D&&Math.abs(k-C)<=1&&Math.abs(D-d)<=1&&k>C?C=k:(S.lastTickCount=d,S.lastAutoInterval=C),C},t}(Fa);Xy.prototype.dataToAngle=Fa.prototype.dataToCoord,Xy.prototype.angleToData=Fa.prototype.coordToData;var G$=Xy,VW=["radius","angle"],U$=function(){function a(t){this.dimensions=VW,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new NW,this._angleAxis=new G$,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return a.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},a.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},a.prototype.getAxis=function(t){return this["_"+t+"Axis"]},a.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},a.prototype.getAxesByScale=function(t){var e=[],o=this._angleAxis,u=this._radiusAxis;return o.scale.type===t&&e.push(o),u.scale.type===t&&e.push(u),e},a.prototype.getAngleAxis=function(){return this._angleAxis},a.prototype.getRadiusAxis=function(){return this._radiusAxis},a.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},a.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},a.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},a.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},a.prototype.pointToData=function(t,e){var o=this.pointToCoord(t);return[this._radiusAxis.radiusToData(o[0],e),this._angleAxis.angleToData(o[1],e)]},a.prototype.pointToCoord=function(t){var e=t[0]-this.cx,o=t[1]-this.cy,u=this.getAngleAxis(),f=u.getExtent(),d=Math.min(f[0],f[1]),h=Math.max(f[0],f[1]);u.inverse?d=h-360:h=d+360;var v=Math.sqrt(e*e+o*o);e/=v,o/=v;for(var g=Math.atan2(-o,e)/Math.PI*180,m=gh;)g+=360*m;return[v,g]},a.prototype.coordToPoint=function(t){var e=t[0],o=t[1]/180*Math.PI;return[Math.cos(o)*e+this.cx,-Math.sin(o)*e+this.cy]},a.prototype.getArea=function(){var t=this.getAngleAxis(),o=this.getRadiusAxis().getExtent().slice();o[0]>o[1]&&o.reverse();var u=t.getExtent(),f=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:o[0],r:o[1],startAngle:-u[0]*f,endAngle:-u[1]*f,clockwise:t.inverse,contain:function(h,v){var g=h-this.cx,m=v-this.cy,y=g*g+m*m-1e-4,b=this.r,C=this.r0;return y<=b*b&&y>=C*C}}},a.prototype.convertToPixel=function(t,e,o){return $1(e)===this?this.dataToPoint(o):null},a.prototype.convertFromPixel=function(t,e,o){return $1(e)===this?this.pointToData(o):null},a}();function $1(a){var t=a.seriesModel,e=a.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}var j$=U$;function UB(a,t){var e=this,o=e.getAngleAxis(),u=e.getRadiusAxis();if(o.scale.setExtent(1/0,-1/0),u.scale.setExtent(1/0,-1/0),a.eachSeries(function(h){if(h.coordinateSystem===e){var v=h.getData();q(tc(v,"radius"),function(g){u.scale.unionExtentFromData(v,g)}),q(tc(v,"angle"),function(g){o.scale.unionExtentFromData(v,g)})}}),$o(o.scale,o.model),$o(u.scale,u.model),"category"===o.type&&!o.onBand){var f=o.getExtent(),d=360/o.scale.count();o.inverse?f[1]+=d:f[1]-=d,o.setExtent(f[0],f[1])}}function Pi(a,t){if(a.type=t.get("type"),a.scale=H_(t),a.onBand=t.get("boundaryGap")&&"category"===a.type,a.inverse=t.get("inverse"),function zW(a){return"angleAxis"===a.mainType}(t)){a.inverse=a.inverse!==t.get("clockwise");var e=t.get("startAngle");a.setExtent(e,e+(a.inverse?-360:360))}t.axis=a,a.model=t}var cE={dimensions:VW,create:function(t,e){var o=[];return t.eachComponent("polar",function(u,f){var d=new j$(f+"");d.update=UB;var h=d.getRadiusAxis(),v=d.getAngleAxis(),g=u.findAxisModel("radiusAxis"),m=u.findAxisModel("angleAxis");Pi(h,g),Pi(v,m),function HW(a,t,e){var o=t.get("center"),u=e.getWidth(),f=e.getHeight();a.cx=Ie(o[0],u),a.cy=Ie(o[1],f);var d=a.getRadiusAxis(),h=Math.min(u,f)/2,v=t.get("radius");null==v?v=[0,"100%"]:Ce(v)||(v=[0,v]);var g=[Ie(v[0],h),Ie(v[1],h)];d.inverse?d.setExtent(g[1],g[0]):d.setExtent(g[0],g[1])}(d,u,e),o.push(d),u.coordinateSystem=d,d.model=u}),t.eachSeries(function(u){if("polar"===u.get("coordinateSystem")){var f=u.getReferringComponents("polar",ii).models[0];u.coordinateSystem=f.coordinateSystem}}),o}},jB=cE,Q1=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function J1(a,t,e){t[1]>t[0]&&(t=t.slice().reverse());var o=a.coordToPoint([t[0],e]),u=a.coordToPoint([t[1],e]);return{x1:o[0],y1:o[1],x2:u[0],y2:u[1]}}function ug(a){return a.getRadiusAxis().inverse?0:1}function WB(a){var t=a[0],e=a[a.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&a.pop()}var W$=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return de(t,a),t.prototype.render=function(e,o){if(this.group.removeAll(),e.get("show")){var u=e.axis,f=u.polar,d=f.getRadiusAxis().getExtent(),h=u.getTicksCoords(),v=u.getMinorTicksCoords(),g=Me(u.getViewLabels(),function(m){m=ot(m);var y=u.scale,b="ordinal"===y.type?y.getRawOrdinalNumber(m.tickValue):m.tickValue;return m.coord=u.dataToCoord(b),m});WB(g),WB(h),q(Q1,function(m){e.get([m,"show"])&&(!u.scale.isBlank()||"axisLine"===m)&&GW[m](this.group,e,f,h,v,d,g)},this)}},t.type="angleAxis",t}(Af),GW={axisLine:function(t,e,o,u,f,d){var m,h=e.getModel(["axisLine","lineStyle"]),v=ug(o),g=v?0:1;(m=0===d[g]?new ks({shape:{cx:o.cx,cy:o.cy,r:d[v]},style:h.getLineStyle(),z2:1,silent:!0}):new e_({shape:{cx:o.cx,cy:o.cy,r:d[v],r0:d[g]},style:h.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(m)},axisTick:function(t,e,o,u,f,d){var h=e.getModel("axisTick"),v=(h.get("inside")?-1:1)*h.get("length"),g=d[ug(o)],m=Me(u,function(y){return new Nr({shape:J1(o,[g,g+v],y.coord)})});t.add(Mo(m,{style:rt(h.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,o,u,f,d){if(f.length){for(var h=e.getModel("axisTick"),v=e.getModel("minorTick"),g=(h.get("inside")?-1:1)*v.get("length"),m=d[ug(o)],y=[],b=0;bT?"left":"right",V=Math.abs(x[1]-E)/D<.3?"middle":x[1]>E?"top":"bottom";if(v&&v[k]){var N=v[k];Ke(N)&&N.textStyle&&(S=new Kn(N.textStyle,g,g.ecModel))}var H=new dn({silent:ra.isLabelSilent(e),style:Cr(S,{x:x[0],y:x[1],fill:S.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:b.formattedLabel,align:P,verticalAlign:V})});if(t.add(H),y){var j=ra.makeAxisEventDataBase(e);j.targetType="axisLabel",j.value=b.rawLabel,vt(H).eventData=j}},this)},splitLine:function(t,e,o,u,f,d){var v=e.getModel("splitLine").getModel("lineStyle"),g=v.get("color"),m=0;g=g instanceof Array?g:[g];for(var y=[],b=0;b=0?"p":"n",ee=H;V&&(o[m][X]||(o[m][X]={p:H,n:H}),ee=o[m][X][J]);var re=void 0,ie=void 0,ce=void 0,me=void 0;if("radius"===S.dim){var pe=S.dataToCoord(W)-H,_e=v.dataToCoord(X);Math.abs(pe)=me})}}})},XW={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},KW={splitNumber:5},_i=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.type="polar",t}(Ze);function jr(a,t){t=t||{};var o=a.axis,u={},f=o.position,d=o.orient,h=a.coordinateSystem.getRect(),v=[h.x,h.x+h.width,h.y,h.y+h.height],g={horizontal:{top:v[2],bottom:v[3]},vertical:{left:v[0],right:v[1]}};u.position=["vertical"===d?g.vertical[f]:v[0],"horizontal"===d?g.horizontal[f]:v[3]],u.rotation=Math.PI/2*{horizontal:0,vertical:1}[d],u.labelDirection=u.tickDirection=u.nameDirection={top:-1,bottom:1,right:1,left:-1}[f],a.get(["axisTick","inside"])&&(u.tickDirection=-u.tickDirection),Ui(t.labelInside,a.get(["axisLabel","inside"]))&&(u.labelDirection=-u.labelDirection);var b=t.rotate;return null==b&&(b=a.get(["axisLabel","rotate"])),u.labelRotation="top"===f?-b:b,u.z2=1,u}var li=["axisLine","axisTickLabel","axisName"],ZB=["splitArea","splitLine"],$W=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="SingleAxisPointer",e}return de(t,a),t.prototype.render=function(e,o,u,f){var d=this.group;d.removeAll();var h=this._axisGroup;this._axisGroup=new ct;var v=jr(e),g=new ra(e,v);q(li,g.add,g),d.add(this._axisGroup),d.add(g.getGroup()),q(ZB,function(m){e.get([m,"show"])&&QW[m](this,this.group,this._axisGroup,e)},this),l_(h,this._axisGroup,e),a.prototype.render.call(this,e,o,u,f)},t.prototype.remove=function(){Ef(this)},t.type="singleAxis",t}(Af),QW={splitLine:function(t,e,o,u){var f=u.axis;if(!f.scale.isBlank()){var d=u.getModel("splitLine"),h=d.getModel("lineStyle"),v=h.get("color");v=v instanceof Array?v:[v];for(var g=u.coordinateSystem.getRect(),m=f.isHorizontal(),y=[],b=0,C=f.getTicksCoords({tickModel:d}),S=[],k=[],D=0;D=e.y&&t[1]<=e.y+e.height:o.contain(o.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},a.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},a.prototype.dataToPoint=function(t){var e=this.getAxis(),o=this.getRect(),u=[],f="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),u[f]=e.toGlobalCoord(e.dataToCoord(+t)),u[1-f]=0===f?o.y+o.height/2:o.x+o.width/2,u},a.prototype.convertToPixel=function(t,e,o){return cg(e)===this?this.dataToPoint(o):null},a.prototype.convertFromPixel=function(t,e,o){return cg(e)===this?this.pointToData(o):null},a}();function cg(a){var t=a.seriesModel,e=a.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}var tS=qn,$B={create:function Gn(a,t){var e=[];return a.eachComponent("singleAxis",function(o,u){var f=new tS(o,a,t);f.name="single_"+u,f.resize(o,t),o.coordinateSystem=f,e.push(f)}),a.eachSeries(function(o){if("singleAxis"===o.get("coordinateSystem")){var u=o.getReferringComponents("singleAxis",ii).models[0];o.coordinateSystem=u&&u.coordinateSystem}}),e},dimensions:KB},t9=$B,QB=["x","y"],n9=["width","height"],fg=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return de(t,a),t.prototype.makeElOption=function(e,o,u,f,d){var h=u.axis,v=h.coordinateSystem,g=nS(v,1-za(h)),m=v.dataToPoint(o)[0],y=f.get("type");if(y&&"none"!==y){var b=q1(f),C=JB[y](h,m,g);C.style=b,e.graphicKey=C.type,e.pointer=C}TW(o,e,jr(u),u,f,d)},t.prototype.getHandleTransform=function(e,o,u){var f=jr(o,{labelInside:!1});f.labelMargin=u.get(["handle","margin"]);var d=AB(o.axis,e,f);return{x:d[0],y:d[1],rotation:f.rotation+(f.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,o,u,f){var d=u.axis,h=d.coordinateSystem,v=za(d),g=nS(h,v),m=[e.x,e.y];m[v]+=o[v],m[v]=Math.min(g[1],m[v]),m[v]=Math.max(g[0],m[v]);var y=nS(h,1-v),b=(y[1]+y[0])/2,C=[b,b];return C[v]=m[v],{x:m[0],y:m[1],rotation:e.rotation,cursorPoint:C,tooltipOption:{verticalAlign:"middle"}}},t}(Y1),JB={line:function(t,e,o){return{type:"Line",subPixelOptimize:!0,shape:aE([e,o[0]],[e,o[1]],za(t))}},shadow:function(t,e,o){var u=t.getBandWidth();return{type:"Rect",shape:EB([e-u/2,o[0]],[u,o[1]-o[0]],za(t))}}};function za(a){return a.isHorizontal()?0:1}function nS(a,t){var e=a.getRect();return[e[QB[t]],e[QB[t]]+e[n9[t]]]}var r9=fg,eV=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.type="single",t}(Ze),Ga=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.init=function(e,o,u){var f=rv(e);a.prototype.init.apply(this,arguments),tV(e,f)},t.prototype.mergeOption=function(e){a.prototype.mergeOption.apply(this,arguments),tV(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={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%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(sn);function tV(a,t){var o,e=a.cellSize;1===(o=Ce(e)?e:a.cellSize=[e,e]).length&&(o[1]=o[0]);var u=Me([0,1],function(f){return function NZ(a,t){return null!=a[Yd[t][0]]||null!=a[Yd[t][1]]&&null!=a[Yd[t][2]]}(t,f)&&(o[f]="auto"),null!=o[f]&&"auto"!==o[f]});Zd(a,t,{type:"box",ignoreSize:u})}var nV=Ga,i9=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.render=function(e,o,u){var f=this.group;f.removeAll();var d=e.coordinateSystem,h=d.getRangeInfo(),v=d.getOrient(),g=o.getLocaleModel();this._renderDayRect(e,h,f),this._renderLines(e,h,v,f),this._renderYearText(e,h,v,f),this._renderMonthText(e,g,v,f),this._renderWeekText(e,g,h,v,f)},t.prototype._renderDayRect=function(e,o,u){for(var f=e.coordinateSystem,d=e.getModel("itemStyle").getItemStyle(),h=f.getCellWidth(),v=f.getCellHeight(),g=o.start.time;g<=o.end.time;g=f.getNextNDay(g,1).time){var m=f.dataToRect([g],!1).tl,y=new fn({shape:{x:m[0],y:m[1],width:h,height:v},cursor:"default",style:d});u.add(y)}},t.prototype._renderLines=function(e,o,u,f){var d=this,h=e.coordinateSystem,v=e.getModel(["splitLine","lineStyle"]).getLineStyle(),g=e.get(["splitLine","show"]),m=v.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var y=o.start,b=0;y.time<=o.end.time;b++){S(y.formatedDate),0===b&&(y=h.getDateInfo(o.start.y+"-"+o.start.m));var C=y.date;C.setMonth(C.getMonth()+1),y=h.getDateInfo(C)}function S(k){d._firstDayOfMonth.push(h.getDateInfo(k)),d._firstDayPoints.push(h.dataToRect([k],!1).tl);var D=d._getLinePointsOfOneWeek(e,k,u);d._tlpoints.push(D[0]),d._blpoints.push(D[D.length-1]),g&&d._drawSplitline(D,v,f)}S(h.getNextNDay(o.end.time,1).formatedDate),g&&this._drawSplitline(d._getEdgesPoints(d._tlpoints,m,u),v,f),g&&this._drawSplitline(d._getEdgesPoints(d._blpoints,m,u),v,f)},t.prototype._getEdgesPoints=function(e,o,u){var f=[e[0].slice(),e[e.length-1].slice()],d="horizontal"===u?0:1;return f[0][d]=f[0][d]-o/2,f[1][d]=f[1][d]+o/2,f},t.prototype._drawSplitline=function(e,o,u){var f=new Ra({z2:20,shape:{points:e},style:o});u.add(f)},t.prototype._getLinePointsOfOneWeek=function(e,o,u){for(var f=e.coordinateSystem,d=f.getDateInfo(o),h=[],v=0;v<7;v++){var g=f.getNextNDay(d.time,v),m=f.dataToRect([g.time],!1);h[2*g.day]=m.tl,h[2*g.day+1]=m["horizontal"===u?"bl":"tr"]}return h},t.prototype._formatterLabel=function(e,o){return Ne(e)&&e?function b4(a,t,e){return q(t,function(o,u){a=a.replace("{"+u+"}",e?Ka(o):o)}),a}(e,o):et(e)?e(o):o.nameMap},t.prototype._yearTextPositionControl=function(e,o,u,f,d){var h=o[0],v=o[1],g=["center","bottom"];"bottom"===f?(v+=d,g=["center","top"]):"left"===f?h-=d:"right"===f?(h+=d,g=["center","top"]):v-=d;var m=0;return("left"===f||"right"===f)&&(m=Math.PI/2),{rotation:m,x:h,y:v,style:{align:g[0],verticalAlign:g[1]}}},t.prototype._renderYearText=function(e,o,u,f){var d=e.getModel("yearLabel");if(d.get("show")){var h=d.get("margin"),v=d.get("position");v||(v="horizontal"!==u?"top":"left");var g=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],m=(g[0][0]+g[1][0])/2,y=(g[0][1]+g[1][1])/2,b="horizontal"===u?0:1,C={top:[m,g[b][1]],bottom:[m,g[1-b][1]],left:[g[1-b][0],y],right:[g[b][0],y]},S=o.start.y;+o.end.y>+o.start.y&&(S=S+"-"+o.end.y);var k=d.get("formatter"),x=this._formatterLabel(k,{start:o.start.y,end:o.end.y,nameMap:S}),T=new dn({z2:30,style:Cr(d,{text:x})});T.attr(this._yearTextPositionControl(T,C[v],u,v,h)),f.add(T)}},t.prototype._monthTextPositionControl=function(e,o,u,f,d){var h="left",v="top",g=e[0],m=e[1];return"horizontal"===u?(m+=d,o&&(h="center"),"start"===f&&(v="bottom")):(g+=d,o&&(v="middle"),"start"===f&&(h="right")),{x:g,y:m,align:h,verticalAlign:v}},t.prototype._renderMonthText=function(e,o,u,f){var d=e.getModel("monthLabel");if(d.get("show")){var h=d.get("nameMap"),v=d.get("margin"),g=d.get("position"),m=d.get("align"),y=[this._tlpoints,this._blpoints];(!h||Ne(h))&&(h&&(o=Rm(h)||o),h=o.get(["time","monthAbbr"])||[]);var b="start"===g?0:1,C="horizontal"===u?0:1;v="start"===g?-v:v;for(var S="center"===m,k=0;k=u.start.time&&o.timeh.end.time&&e.reverse(),e},a.prototype._getRangeInfo=function(t){var o,e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];e[0].time>e[1].time&&(o=!0,e.reverse());var u=Math.floor(e[1].time/pE)-Math.floor(e[0].time/pE)+1,f=new Date(e[0].time),d=f.getDate(),h=e[1].date.getDate();f.setDate(d+u-1);var v=f.getDate();if(v!==h)for(var g=f.getTime()-e[1].time>0?1:-1;(v=f.getDate())!==h&&(f.getTime()-e[1].time)*g>0;)u-=g,f.setDate(v-g);var m=Math.floor((u+e[0].day+6)/7),y=o?1-m:m-1;return o&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:u,weeks:m,nthWeek:y,fweek:e[0].day,lweek:e[1].day}},a.prototype._getDateByWeeksAndDay=function(t,e,o){var u=this._getRangeInfo(o);if(t>u.weeks||0===t&&eu.lweek)return null;var f=7*(t-1)-u.fweek+e,d=new Date(u.start.time);return d.setDate(+u.start.d+f),this.getDateInfo(d)},a.create=function(t,e){var o=[];return t.eachComponent("calendar",function(u){var f=new a(u,t,e);o.push(f),u.coordinateSystem=f}),t.eachSeries(function(u){"calendar"===u.get("coordinateSystem")&&(u.coordinateSystem=o[u.get("calendarIndex")||0])}),o},a.dimensions=["time","value"],a}();function wc(a){var t=a.calendarModel,e=a.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem:null}var rV=yi;function iV(a,t){var e;return q(t,function(o){null!=a[o]&&"auto"!==a[o]&&(e=!0)}),e}var vE=["transition","enterFrom","leaveTo"],aV=vE.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Ky(a,t,e){if(e&&(!a[e]&&t[e]&&(a[e]={}),a=a[e],t=t[e]),a&&t)for(var o=e?vE:aV,u=0;u=0;m--){var y,b,C;if(C=null!=(b=wi((y=u[m]).id,null))?d.get(b):null){x=ns(S=C.parent);var S,E={},P=Ok(C,y,S===f?{width:h,height:v}:{width:x.width,height:x.height},null,{hv:y.hv,boundingMode:y.bounding},E);if(!ns(C).isNew&&P){for(var V=y.transition,N={},H=0;H=0)?N[j]=Z:C[j]=Z}Ut(C,N,e,0)}else C.attr(E)}}},t.prototype._clear=function(){var e=this,o=this._elMap;o.each(function(u){$y(u,ns(u).option,o,e._lastGraphicModel)}),this._elMap=$e()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Ze);function dg(a){var e=new(je(gE,a)?gE[a]:uC(a))({});return ns(e).type=a,e}function mE(a,t,e,o){var u=dg(e);return t.add(u),o.set(a,u),ns(u).id=a,ns(u).isNew=!0,u}function $y(a,t,e,o){a&&a.parent&&("group"===a.type&&a.traverse(function(f){$y(f,t,e,o)}),ig(a,t,o),e.removeKey(ns(a).id))}function _E(a,t,e,o){if(!a.isGroup){var u=a;u.cursor=Ft(t.cursor,_s.prototype.cursor),u.z=Ft(t.z,e||0),u.zlevel=Ft(t.zlevel,o||0);var f=t.z2;null!=f&&(u.z2=f||0)}q(Zt(t),function(d){var h=t[d];0===d.indexOf("on")&&et(h)&&(a[d]=h)}),a.draggable=t.draggable,null!=t.name&&(a.name=t.name),null!=t.id&&(a.id=t.id)}var yE=["x","y","radius","angle","single"],bE=["cartesian2d","polar","singleAxis"];function yu(a){return a+"Axis"}function iS(a){var t=a.ecModel,e={infoList:[],infoMap:$e()};return a.eachTargetAxis(function(o,u){var f=t.getComponent(yu(o),u);if(f){var d=f.getCoordSysModel();if(d){var h=d.uid,v=e.infoMap.get(h);v||(e.infoList.push(v={model:d,axisModels:[]}),e.infoMap.set(h,v)),v.axisModels.push(f)}}}),e}var hg=function(){function a(){this.indexList=[],this.indexMap=[]}return a.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},a}(),hV=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return de(t,a),t.prototype.init=function(e,o,u){var f=CE(e);this.settledOption=f,this.mergeDefaultAndTheme(e,u),this._doInit(f)},t.prototype.mergeOption=function(e){var o=CE(e);Dt(this.option,e,!0),Dt(this.settledOption,o,!0),this._doInit(o)},t.prototype._doInit=function(e){var o=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var u=this.settledOption;q([["start","startValue"],["end","endValue"]],function(f,d){"value"===this._rangePropMode[d]&&(o[f[0]]=u[f[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),o=this._targetAxisInfoMap=$e();this._fillSpecifiedTargetAxis(o)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(o,this._orient)),this._noTarget=!0,o.each(function(f){f.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var o=!1;return q(yE,function(u){var f=this.getReferringComponents(yu(u),Pz);if(f.specified){o=!0;var d=new hg;q(f.models,function(h){d.add(h.componentIndex)}),e.set(u,d)}},this),o},t.prototype._fillAutoTargetAxisByOrient=function(e,o){var u=this.ecModel,f=!0;if(f){var d="vertical"===o?"y":"x";v(u.findComponents({mainType:d+"Axis"}),d)}function v(g,m){var y=g[0];if(y){var b=new hg;if(b.add(y.componentIndex),e.set(m,b),f=!1,"x"===m||"y"===m){var C=y.getReferringComponents("grid",ii).models[0];C&&q(g,function(S){y.componentIndex!==S.componentIndex&&C===S.getReferringComponents("grid",ii).models[0]&&b.add(S.componentIndex)})}}}f&&v(u.findComponents({mainType:"singleAxis",filter:function(y){return y.get("orient",!0)===o}}),"single"),f&&q(yE,function(g){if(f){var m=u.findComponents({mainType:yu(g),filter:function(C){return"category"===C.get("type",!0)}});if(m[0]){var y=new hg;y.add(m[0].componentIndex),e.set(g,y),f=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(o){!e&&(e=o)},this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var o=this.ecModel.option;this.option.throttle=o.animation&&o.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var o=this._rangePropMode,u=this.get("rangeMode");q([["start","startValue"],["end","endValue"]],function(f,d){var h=null!=e[f[0]],v=null!=e[f[1]];h&&!v?o[d]="percent":!h&&v?o[d]="value":u?o[d]=u[d]:h&&(o[d]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(o,u){null==e&&(e=this.ecModel.getComponent(yu(o),u))},this),e},t.prototype.eachTargetAxis=function(e,o){this._targetAxisInfoMap.each(function(u,f){q(u.indexList,function(d){e.call(o,f,d)})})},t.prototype.getAxisProxy=function(e,o){var u=this.getAxisModel(e,o);if(u)return u.__dzAxisProxy},t.prototype.getAxisModel=function(e,o){var u=this._targetAxisInfoMap.get(e);if(u&&u.indexMap[o])return this.ecModel.getComponent(yu(e),o)},t.prototype.setRawRange=function(e){var o=this.option,u=this.settledOption;q([["start","startValue"],["end","endValue"]],function(f){(null!=e[f[0]]||null!=e[f[1]])&&(o[f[0]]=u[f[0]]=e[f[0]],o[f[1]]=u[f[1]]=e[f[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var o=this.option;q(["start","startValue","end","endValue"],function(u){o[u]=e[u]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,o){if(null!=e||null!=o)return this.getAxisProxy(e,o).getDataValueWindow();var u=this.findRepresentativeAxisProxy();return u?u.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var o,u=this._targetAxisInfoMap.keys(),f=0;f=0}(e)){var o=yu(this._dimName),u=e.getReferringComponents(o,ii).models[0];u&&this._axisIndex===u.componentIndex&&t.push(e)}},this),t},a.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},a.prototype.getMinMaxSpan=function(){return ot(this._minMaxSpan)},a.prototype.calculateDataWindow=function(t){var g,e=this._dataExtent,u=this.getAxisModel().axis.scale,f=this._dataZoomModel.getRangePropMode(),d=[0,100],h=[],v=[];Xf(["start","end"],function(b,C){var S=t[b],k=t[b+"Value"];"percent"===f[C]?(null==S&&(S=d[C]),k=u.parse(wn(S,d,e))):(g=!0,S=wn(k=null==k?e[C]:u.parse(k),e,d)),v[C]=k,h[C]=S}),aS(v),aS(h);var m=this._minMaxSpan;function y(b,C,S,k,D){var x=D?"Span":"ValueSpan";Qv(0,b,S,"all",m["min"+x],m["max"+x]);for(var T=0;T<2;T++)C[T]=wn(b[T],S,k,!0),D&&(C[T]=u.parse(C[T]))}return g?y(v,h,e,d,!1):y(h,v,d,e,!0),{valueWindow:v,percentWindow:h}},a.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function u9(a,t,e){var o=[1/0,-1/0];Xf(e,function(d){!function H8(a,t,e){t&&q(tc(t,e),function(o){var u=t.getApproximateExtent(o);u[0]a[1]&&(a[1]=u[1])})}(o,d.getData(),t)});var u=a.getAxisModel(),f=N8(u.axis.scale,u,o).calculate();return[f.min,f.max]}(this,this._dimName,e),this._updateMinMaxSpan();var o=this.calculateDataWindow(t.settledOption);this._valueWindow=o.valueWindow,this._percentWindow=o.percentWindow,this._setAxisModel()}},a.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var o=this._dimName,u=this.getTargetSeriesModels(),f=t.get("filterMode"),d=this._valueWindow;"none"!==f&&Xf(u,function(v){var g=v.getData(),m=g.mapDimensionsAll(o);if(m.length){if("weakFilter"===f){var y=g.getStore(),b=Me(m,function(C){return g.getDimensionIndex(C)},g);g.filterSelf(function(C){for(var S,k,D,x=0;xd[1];if(E&&!P&&!V)return!0;E&&(D=!0),P&&(S=!0),V&&(k=!0)}return D&&S&&k})}else Xf(m,function(C){if("empty"===f)v.setData(g=g.map(C,function(k){return function h(v){return v>=d[0]&&v<=d[1]}(k)?k:NaN}));else{var S={};S[C]=d,g.selectRange(S)}});Xf(m,function(C){g.setApproximateExtent(d,C)})}})}},a.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,o=this._dataExtent;Xf(["min","max"],function(u){var f=e.get(u+"Span"),d=e.get(u+"ValueSpan");null!=d&&(d=this.getAxisModel().axis.scale.parse(d)),null!=d?f=wn(o[0]+d,o,[0,100],!0):null!=f&&(d=wn(f,[0,100],o,!0)-o[0]),t[u+"Span"]=f,t[u+"ValueSpan"]=d},this)},a.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,o=this._valueWindow;if(e){var u=Ae(o,[0,500]);u=Math.min(u,20);var f=t.axis.scale.rawExtentInfo;0!==e[0]&&f.setDeterminedMinMax("min",+o[0].toFixed(u)),100!==e[1]&&f.setDeterminedMinMax("max",+o[1].toFixed(u)),f.freeze()}},a}(),wE=oS,c9={getTargetSeries:function(t){function e(f){t.eachComponent("dataZoom",function(d){d.eachTargetAxis(function(h,v){var g=t.getComponent(yu(h),v);f(h,v,g,d)})})}e(function(f,d,h,v){h.__dzAxisProxy=null});var o=[];e(function(f,d,h,v){h.__dzAxisProxy||(h.__dzAxisProxy=new wE(f,d,v,t),o.push(h.__dzAxisProxy))});var u=$e();return q(o,function(f){q(f.getTargetSeriesModels(),function(d){u.set(d.uid,d)})}),u},overallReset:function(t,e){t.eachComponent("dataZoom",function(o){o.eachTargetAxis(function(u,f){o.getAxisProxy(u,f).reset(o)}),o.eachTargetAxis(function(u,f){o.getAxisProxy(u,f).filterData(o,e)})}),t.eachComponent("dataZoom",function(o){var u=o.findRepresentativeAxisProxy();if(u){var f=u.getDataPercentWindow(),d=u.getDataValueWindow();o.setCalculatedRange({start:f[0],end:f[1],startValue:d[0],endValue:d[1]})}})}},q$=c9,f9=!1;function gV(a){f9||(f9=!0,a.registerProcessor(a.PRIORITY.PROCESSOR.FILTER,q$),function Z$(a){a.registerAction("dataZoom",function(t,e){q(function dV(a,t){var f,e=$e(),o=[],u=$e();a.eachComponent({mainType:"dataZoom",query:t},function(m){u.get(m.uid)||h(m)});do{f=!1,a.eachComponent("dataZoom",d)}while(f);function d(m){!u.get(m.uid)&&function v(m){var y=!1;return m.eachTargetAxis(function(b,C){var S=e.get(b);S&&S[C]&&(y=!0)}),y}(m)&&(h(m),f=!0)}function h(m){u.set(m.uid,!0),o.push(m),function g(m){m.eachTargetAxis(function(y,b){(e.get(y)||e.set(y,[]))[b]=!0})}(m)}return o}(e,t),function(u){u.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}(a),a.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function X$(a){a.registerComponentModel(lo),a.registerComponentView(pr),gV(a)}var Vl=function a(){},mV={};function Jh(a,t){mV[a]=t}function _V(a){return mV[a]}var d9=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.optionUpdated=function(){a.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;q(this.option.feature,function(o,u){var f=_V(u);f&&(f.getDefaultOption&&(f.defaultOption=f.getDefaultOption(e)),Dt(o,f.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,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"}},t}(sn),h9=d9;function vg(a,t){var e=jd(t.get("padding")),o=t.getItemStyle(["color","opacity"]);return o.fill=t.get("backgroundColor"),new fn({shape:{x:a.x-e[3],y:a.y-e[0],width:a.width+e[1]+e[3],height:a.height+e[0]+e[2],r:t.get("borderRadius")},style:o,silent:!0,z2:-1})}var lS=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return de(t,a),t.prototype.render=function(e,o,u,f){var d=this.group;if(d.removeAll(),e.get("show")){var h=+e.get("itemSize"),v="vertical"===e.get("orient"),g=e.get("feature")||{},m=this._features||(this._features={}),y=[];q(g,function(S,k){y.push(k)}),new Zu(this._featureNames||[],y).add(b).update(b).remove(wt(b,null)).execute(),this._featureNames=y,function sS(a,t,e){var o=t.getBoxLayoutParams(),u=t.get("padding"),f={width:e.getWidth(),height:e.getHeight()},d=oi(o,f,u);Hu(t.get("orient"),a,t.get("itemGap"),d.width,d.height),Ok(a,o,f,u)}(d,e,u),d.add(vg(d.getBoundingRect(),e)),v||d.eachChild(function(S){var k=S.__title,D=S.ensureState("emphasis"),x=D.textConfig||(D.textConfig={}),T=S.getTextContent(),E=T&&T.ensureState("emphasis");if(E&&!et(E)&&k){var P=E.style||(E.style={}),V=pd(k,dn.makeFont(P)),N=S.x+d.x,j=!1;S.y+d.y+h+V.height>u.getHeight()&&(x.position="top",j=!0);var Z=j?-5-V.height:h+10;N+V.width/2>u.getWidth()?(x.position=["100%",Z],P.align="right"):N-V.width/2<0&&(x.position=[0,Z],P.align="left")}})}function b(S,k){var P,D=y[S],x=y[k],T=g[D],E=new Kn(T,e,e.ecModel);if(f&&null!=f.newTitle&&f.featureName===D&&(T.title=f.newTitle),D&&!x){if(function uS(a){return 0===a.indexOf("my")}(D))P={onclick:E.option.onclick,featureName:D};else{var V=_V(D);if(!V)return;P=new V}m[D]=P}else if(!(P=m[x]))return;P.uid=Zc("toolbox-feature"),P.model=E,P.ecModel=o,P.api=u;var N=P instanceof Vl;D||!x?!E.get("show")||N&&P.unusable?N&&P.remove&&P.remove(o,u):(function C(S,k,D){var V,N,x=S.getModel("iconStyle"),T=S.getModel(["emphasis","iconStyle"]),E=k instanceof Vl&&k.getIcons?k.getIcons():S.get("icon"),P=S.get("title")||{};Ne(E)?(V={})[D]=E:V=E,Ne(P)?(N={})[D]=P:N=P;var H=S.iconPaths={};q(V,function(j,Z){var W=gv(j,{},{x:-h/2,y:-h/2,width:h,height:h});W.setStyle(x.getItemStyle()),W.ensureState("emphasis").style=T.getItemStyle();var J=new dn({style:{text:N[Z],align:T.get("textAlign"),borderRadius:T.get("textBorderRadius"),padding:T.get("textPadding"),fill:null},ignore:!0});W.setTextContent(J),ih({el:W,componentModel:e,itemName:Z,formatterParamsExtra:{title:N[Z]}}),W.__title=N[Z],W.on("mouseover",function(){var ee=T.getItemStyle(),re=v?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";J.setStyle({fill:T.get("textFill")||ee.fill||ee.stroke||"#000",backgroundColor:T.get("textBackgroundColor")}),W.setTextConfig({position:T.get("textPosition")||re}),J.ignore=!e.get("showTitle"),u.enterEmphasis(this)}).on("mouseout",function(){"emphasis"!==S.get(["iconStatus",Z])&&u.leaveEmphasis(this),J.hide()}),("emphasis"===S.get(["iconStatus",Z])?jo:Bu)(W),d.add(W),W.on("click",ze(k.onclick,k,o,u,Z)),H[Z]=W})}(E,P,D),E.setIconStatus=function(H,j){var Z=this.option,W=this.iconPaths;Z.iconStatus=Z.iconStatus||{},Z.iconStatus[H]=j,W[H]&&("emphasis"===j?jo:Bu)(W[H])},P instanceof Vl&&P.render&&P.render(E,o,u,f)):N&&P.dispose&&P.dispose(o,u)}},t.prototype.updateView=function(e,o,u,f){q(this._features,function(d){d instanceof Vl&&d.updateView&&d.updateView(d.model,o,u,f)})},t.prototype.remove=function(e,o){q(this._features,function(u){u instanceof Vl&&u.remove&&u.remove(e,o)}),this.group.removeAll()},t.prototype.dispose=function(e,o){q(this._features,function(u){u instanceof Vl&&u.dispose&&u.dispose(e,o)})},t.type="toolbox",t}(Ze),p9=lS,SE=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return de(t,a),t.prototype.onclick=function(e,o){var u=this.model,f=u.get("name")||e.get("title.0.text")||"echarts",d="svg"===o.getZr().painter.getType(),h=d?"svg":u.get("type",!0)||"png",v=o.getConnectedDataURL({type:h,backgroundColor:u.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:u.get("connectedBackgroundColor"),excludeComponents:u.get("excludeComponents"),pixelRatio:u.get("pixelRatio")}),g=tn.browser;if(et(MouseEvent)&&(g.newEdge||!g.ie&&!g.edge)){var m=document.createElement("a");m.download=f+"."+h,m.target="_blank",m.href=v;var y=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});m.dispatchEvent(y)}else if(window.navigator.msSaveOrOpenBlob||d){var b=v.split(","),C=b[0].indexOf("base64")>-1,S=d?decodeURIComponent(b[1]):b[1];C&&(S=window.atob(S));var k=f+"."+h;if(window.navigator.msSaveOrOpenBlob){for(var D=S.length,x=new Uint8Array(D);D--;)x[D]=S.charCodeAt(D);var T=new Blob([x]);window.navigator.msSaveOrOpenBlob(T,k)}else{var E=document.createElement("iframe");document.body.appendChild(E);var P=E.contentWindow,V=P.document;V.open("image/svg+xml","replace"),V.write(S),V.close(),P.focus(),V.execCommand("SaveAs",!0,k),document.body.removeChild(E)}}else{var N=u.get("lang"),H='',j=window.open();j.document.write(H),j.document.title=f}},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},t}(Vl),cS=SE,yV="__ec_magicType_stack__",g9=[["line","bar"],["stack"]],bV=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return de(t,a),t.prototype.getIcons=function(){var e=this.model,o=e.get("icon"),u={};return q(e.get("type"),function(f){o[f]&&(u[f]=o[f])}),u},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,o,u){var f=this.model,d=f.get(["seriesIndex",u]);if(CV[u]){var h={series:[]};q(g9,function(y){Ct(y,u)>=0&&q(y,function(b){f.setIconStatus(b,"normal")})}),f.setIconStatus(u,"emphasis"),e.eachComponent({mainType:"series",query:null==d?null:{seriesIndex:d}},function(b){var k=CV[u](b.subType,b.id,b,f);k&&(rt(k,b.option),h.series.push(k));var D=b.coordinateSystem;if(D&&"cartesian2d"===D.type&&("line"===u||"bar"===u)){var x=D.getAxesByScale("ordinal")[0];if(x){var E=x.dim+"Axis",V=b.getReferringComponents(E,ii).models[0].componentIndex;h[E]=h[E]||[];for(var N=0;N<=V;N++)h[E][V]=h[E][V]||{};h[E][V].boundaryGap="bar"===u}}});var g,m=u;"stack"===u&&(g=Dt({stack:f.option.title.tiled,tiled:f.option.title.stack},f.option.title),"emphasis"!==f.get(["iconStatus",u])&&(m="tiled")),o.dispatchAction({type:"changeMagicType",currentType:m,newOption:h,newTitle:g,featureName:"magicType"})}},t}(Vl),CV={line:function(t,e,o,u){if("bar"===t)return Dt({id:e,type:"line",data:o.get("data"),stack:o.get("stack"),markPoint:o.get("markPoint"),markLine:o.get("markLine")},u.get(["option","line"])||{},!0)},bar:function(t,e,o,u){if("line"===t)return Dt({id:e,type:"bar",data:o.get("data"),stack:o.get("stack"),markPoint:o.get("markPoint"),markLine:o.get("markLine")},u.get(["option","bar"])||{},!0)},stack:function(t,e,o,u){var f=o.get("stack")===yV;if("line"===t||"bar"===t)return u.setIconStatus("stack",f?"normal":"emphasis"),Dt({id:e,stack:f?"":yV},u.get(["option","stack"])||{},!0)}};uu({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(a,t){t.mergeOption(a.newOption)});var $$=bV,fS=new Array(60).join("-");function ME(a){var t=[];return q(a,function(e,o){var u=e.categoryAxis,d=e.valueAxis.dim,h=[" "].concat(Me(e.series,function(C){return C.name})),v=[u.model.getCategories()];q(e.series,function(C){var S=C.getRawData();v.push(C.getRawData().mapArray(S.mapDimension(d),function(k){return k}))});for(var g=[h.join("\t")],m=0;m=0)return!0}(u)){var d=function DE(a){for(var t=a.split(/\n+/g),o=[],u=Me(gg(t.shift()).split(SV),function(v){return{name:v,data:[]}}),f=0;f=0)&&d(f,u._targetInfoList)})}return a.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(o,u,f){if((o.coordRanges||(o.coordRanges=[])).push(u),!o.coordRange){o.coordRange=u;var d=tp[o.brushType](0,f,u);o.__rangeOffset={offset:PE[o.brushType](d.values,o.range,[1,1]),xyMinMax:d.xyMinMax}}}),t},a.prototype.matchOutputRanges=function(t,e,o){q(t,function(u){var f=this.findTargetInfo(u,e);f&&!0!==f&&q(f.coordSyses,function(d){var h=tp[u.brushType](1,d,u.range,!0);o(u,h.values,d,e)})},this)},a.prototype.setInputRanges=function(t,e){q(t,function(o){var u=this.findTargetInfo(o,e);if(o.range=o.range||[],u&&!0!==u){o.panelId=u.panelId;var f=tp[o.brushType](0,u.coordSys,o.coordRange),d=o.__rangeOffset;o.range=d?PE[o.brushType](f.values,d.offset,function J$(a,t){var e=C9(a),o=C9(t),u=[e[0]/o[0],e[1]/o[1]];return isNaN(u[0])&&(u[0]=1),isNaN(u[1])&&(u[1]=1),u}(f.xyMinMax,d.xyMinMax)):f.values}},this)},a.prototype.makePanelOpts=function(t,e){return Me(this._targetInfoList,function(o){var u=o.getPanelRect();return{panelId:o.panelId,defaultBrushType:e?e(o):null,clipPath:mA(u),isTargetByCursor:_A(u,t,o.coordSysModel),getLinearBrushOtherExtent:h1(u)}})},a.prototype.controlSeries=function(t,e,o){var u=this.findTargetInfo(t,o);return!0===u||u&&Ct(u.coordSyses,e.coordinateSystem)>=0},a.prototype.findTargetInfo=function(t,e){for(var o=this._targetInfoList,u=AE(e,t),f=0;fa[1]&&a.reverse(),a}function AE(a,t){return vm(a,t,{includeMainTypes:xV})}var EE={grid:function(t,e){var o=t.xAxisModels,u=t.yAxisModels,f=t.gridModels,d=$e(),h={},v={};!o&&!u&&!f||(q(o,function(g){var m=g.axis.grid.model;d.set(m.id,m),h[m.id]=!0}),q(u,function(g){var m=g.axis.grid.model;d.set(m.id,m),v[m.id]=!0}),q(f,function(g){d.set(g.id,g),h[g.id]=!0,v[g.id]=!0}),d.each(function(g){var y=[];q(g.coordinateSystem.getCartesians(),function(b,C){(Ct(o,b.getAxis("x").model)>=0||Ct(u,b.getAxis("y").model)>=0)&&y.push(b)}),e.push({panelId:"grid--"+g.id,gridModel:g,coordSysModel:g,coordSys:y[0],coordSyses:y,getPanelRect:EV.grid,xAxisDeclared:h[g.id],yAxisDeclared:v[g.id]})}))},geo:function(t,e){q(t.geoModels,function(o){var u=o.coordinateSystem;e.push({panelId:"geo--"+o.id,geoModel:o,coordSysModel:o,coordSys:u,coordSyses:[u],getPanelRect:EV.geo})})}},AV=[function(a,t){var e=a.xAxisModel,o=a.yAxisModel,u=a.gridModel;return!u&&e&&(u=e.axis.grid.model),!u&&o&&(u=o.axis.grid.model),u&&u===t.gridModel},function(a,t){var e=a.geoModel;return e&&e===t.geoModel}],EV={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(df(t)),e}},tp={lineX:wt(Sc,0),lineY:wt(Sc,1),rect:function(t,e,o,u){var f=t?e.pointToData([o[0][0],o[1][0]],u):e.dataToPoint([o[0][0],o[1][0]],u),d=t?e.pointToData([o[0][1],o[1][1]],u):e.dataToPoint([o[0][1],o[1][1]],u),h=[tb([f[0],d[0]]),tb([f[1],d[1]])];return{values:h,xyMinMax:h}},polygon:function(t,e,o,u){var f=[[1/0,-1/0],[1/0,-1/0]];return{values:Me(o,function(h){var v=t?e.pointToData(h,u):e.dataToPoint(h,u);return f[0][0]=Math.min(f[0][0],v[0]),f[1][0]=Math.min(f[1][0],v[1]),f[0][1]=Math.max(f[0][1],v[0]),f[1][1]=Math.max(f[1][1],v[1]),v}),xyMinMax:f}}};function Sc(a,t,e,o){var u=e.getAxis(["x","y"][a]),f=tb(Me([0,1],function(h){return t?u.coordToData(u.toLocalCoord(o[h]),!0):u.toGlobalCoord(u.dataToCoord(o[h]))})),d=[];return d[a]=f,d[1-a]=[NaN,NaN],{values:f,xyMinMax:d}}var PE={lineX:wt(b9,0),lineY:wt(b9,1),rect:function(t,e,o){return[[t[0][0]-o[0]*e[0][0],t[0][1]-o[0]*e[0][1]],[t[1][0]-o[1]*e[1][0],t[1][1]-o[1]*e[1][1]]]},polygon:function(t,e,o){return Me(t,function(u,f){return[u[0]-o[0]*e[f][0],u[1]-o[1]*e[f][1]]})}};function b9(a,t,e,o){return[t[0]-o[a]*e[0],t[1]-o[a]*e[1]]}function C9(a){return a?[a[0][1]-a[0][0],a[1][1]-a[1][0]]:[NaN,NaN]}var PV=TV,OE=q,OV=function pm(a){return"\0_ec_\0"+a}("toolbox-dataZoom_"),IV=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return de(t,a),t.prototype.render=function(e,o,u,f){this._brushController||(this._brushController=new d3(u.getZr()),this._brushController.on("brush",ze(this._onBrush,this)).mount()),function Kf(a,t,e,o,u){var f=e._isZoomActive;o&&"takeGlobalCursor"===o.type&&(f="dataZoomSelect"===o.key&&o.dataZoomSelectActive),e._isZoomActive=f,a.setIconStatus("zoom",f?"emphasis":"normal");var h=new PV(nb(a),t,{include:["grid"]}).makePanelOpts(u,function(v){return v.xAxisDeclared&&!v.yAxisDeclared?"lineX":!v.xAxisDeclared&&v.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(h).enableBrush(!(!f||!h.length)&&{brushType:"auto",brushStyle:a.getModel("brushStyle").getItemStyle()})}(e,o,this,f,u),function w9(a,t){a.setIconStatus("back",function kV(a){return eb(a).length}(t)>1?"emphasis":"normal")}(e,o)},t.prototype.onclick=function(e,o,u){ar[u].call(this)},t.prototype.remove=function(e,o){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,o){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var o=e.areas;if(e.isEnd&&o.length){var u={},f=this.ecModel;this._brushController.updateCovers([]),new PV(nb(this.model),f,{include:["grid"]}).matchOutputRanges(o,f,function(g,m,y){if("cartesian2d"===y.type){var b=g.brushType;"rect"===b?(h("x",y,m[0]),h("y",y,m[1])):h({lineX:"x",lineY:"y"}[b],y,m)}}),function TE(a,t){var e=eb(a);hS(t,function(o,u){for(var f=e.length-1;f>=0&&!e[f][u];f--);if(f<0){var h=a.queryComponents({mainType:"dataZoom",subType:"select",id:u})[0];if(h){var v=h.getPercentRange();e[0][u]={dataZoomId:u,start:v[0],end:v[1]}}}}),e.push(t)}(f,u),this._dispatchZoomAction(u)}function h(g,m,y){var b=m.getAxis(g),C=b.model,S=function v(g,m,y){var b;return y.eachComponent({mainType:"dataZoom",subType:"select"},function(C){C.getAxisModel(g,m.componentIndex)&&(b=C)}),b}(g,C,f),k=S.findRepresentativeAxisProxy(C).getMinMaxSpan();(null!=k.minValueSpan||null!=k.maxValueSpan)&&(y=Qv(0,y.slice(),b.scale.getExtent(),0,k.minValueSpan,k.maxValueSpan)),S&&(u[S.id]={dataZoomId:S.id,startValue:y[0],endValue:y[1]})}},t.prototype._dispatchZoomAction=function(e){var o=[];OE(e,function(u,f){o.push(ot(u))}),o.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:o})},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},t}(Vl),ar={zoom:function(){this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:!this._isZoomActive})},back:function(){this._dispatchZoomAction(function MV(a){var t=eb(a),e=t[t.length-1];t.length>1&&t.pop();var o={};return hS(e,function(u,f){for(var d=t.length-1;d>=0;d--)if(u=t[d][f]){o[f]=u;break}}),o}(this.ecModel))}};function nb(a){var t={xAxisIndex:a.get("xAxisIndex",!0),yAxisIndex:a.get("yAxisIndex",!0),xAxisId:a.get("xAxisId",!0),yAxisId:a.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}!function k4(a,t){fa(null==Bk.get(a)&&t),Bk.set(a,t)}("dataZoom",function(a){var t=a.getComponent("toolbox",0),e=["feature","dataZoom"];if(t&&null!=t.get(e)){var o=t.getModel(e),u=[],d=vm(a,nb(o));return OE(d.xAxisModels,function(v){return h(v,"xAxis","xAxisIndex")}),OE(d.yAxisModels,function(v){return h(v,"yAxis","yAxisIndex")}),u}function h(v,g,m){var y=v.componentIndex,b={type:"select",$fromToolbox:!0,filterMode:o.get("filterMode",!0)||"filter",id:OV+g+y};b[m]=y,u.push(b)}});var S9=IV,RV=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={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}},t}(sn),M9=RV;function IE(a){var t=a.get("confine");return null!=t?!!t:"richText"===a.get("renderMode")}function LV(a){if(tn.domSupported)for(var t=document.documentElement.style,e=0,o=a.length;e-1?(h+="top:50%",v+="translateY(-50%) rotate("+(g="left"===f?-225:-45)+"deg)"):(h+="left:50%",v+="translateX(-50%) rotate("+(g="top"===f?225:45)+"deg)");var m=g*Math.PI/180,y=d+u,b=y*Math.abs(Math.cos(m))+y*Math.abs(Math.sin(m)),S=t+" solid "+u+"px;";return'
'}(o,u,f)),Ne(t))d.innerHTML=t+h;else if(t){d.innerHTML="",Ce(t)||(t=[t]);for(var v=0;v=0?this._tryShow(f,d):"leave"===u&&this._hide(d))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,o=this._ecModel,u=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")){var f=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!u.isDisposed()&&f.manuallyShowTip(e,o,u,{x:f._lastX,y:f._lastY,dataByCoordSys:f._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,o,u,f){if(f.from!==this.uid&&!tn.node&&u.getDom()){var d=GE(f,u);this._ticket="";var h=f.dataByCoordSys,v=function jV(a,t,e){var o=Sd(a).queryOptionMap,u=o.keys()[0];if(u&&"series"!==u){var v,d=ge(t,u,o.get(u),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(d&&(e.getViewOfComponentModel(d).group.traverse(function(g){var m=vt(g).tooltipConfig;if(m&&m.name===a.name)return v=g,!0}),v))return{componentMainType:u,componentIndex:d.componentIndex,el:v}}}(f,o,u);if(v){var g=v.el.getBoundingRect().clone();g.applyTransform(v.el.transform),this._tryShow({offsetX:g.x+g.width/2,offsetY:g.y+g.height/2,target:v.el,position:f.position,positionDefault:"bottom"},d)}else if(f.tooltip&&null!=f.x&&null!=f.y){var m=nQ;m.x=f.x,m.y=f.y,m.update(),vt(m).tooltipConfig={name:null,option:f.tooltip},this._tryShow({offsetX:f.x,offsetY:f.y,target:m},d)}else if(h)this._tryShow({offsetX:f.x,offsetY:f.y,position:f.position,dataByCoordSys:h,tooltipOption:f.tooltipOption},d);else if(null!=f.seriesIndex){if(this._manuallyAxisShowTip(e,o,u,f))return;var y=qf(f,o),b=y.point[0],C=y.point[1];null!=b&&null!=C&&this._tryShow({offsetX:b,offsetY:C,target:y.el,position:f.position,positionDefault:"bottom"},d)}else null!=f.x&&null!=f.y&&(u.dispatchAction({type:"updateAxisPointer",x:f.x,y:f.y}),this._tryShow({offsetX:f.x,offsetY:f.y,position:f.position,target:u.getZr().findHover(f.x,f.y).target},d))}},t.prototype.manuallyHideTip=function(e,o,u,f){!this._alwaysShowContent&&this._tooltipModel&&this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,f.from!==this.uid&&this._hide(GE(f,u))},t.prototype._manuallyAxisShowTip=function(e,o,u,f){var d=f.seriesIndex,h=f.dataIndex,v=o.getComponent("axisPointer").coordSysAxesInfo;if(null!=d&&null!=h&&null!=v){var g=o.getSeriesByIndex(d);if(g&&"axis"===rb([g.getData().getItemModel(h),g,(g.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return u.dispatchAction({type:"updateAxisPointer",seriesIndex:d,dataIndex:h,position:f.position}),!0}},t.prototype._tryShow=function(e,o){var u=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var d=e.dataByCoordSys;if(d&&d.length)this._showAxisTooltip(d,e);else if(u){var h,v;this._lastDataByCoordSys=null,Cv(u,function(g){return null!=vt(g).dataIndex?(h=g,!0):null!=vt(g).tooltipConfig?(v=g,!0):void 0},!0),h?this._showSeriesItemTooltip(e,h,o):v?this._showComponentItemTooltip(e,v,o):this._hide(o)}else this._lastDataByCoordSys=null,this._hide(o)}},t.prototype._showOrMove=function(e,o){var u=e.get("showDelay");o=ze(o,this),clearTimeout(this._showTimout),u>0?this._showTimout=setTimeout(o,u):o()},t.prototype._showAxisTooltip=function(e,o){var u=this._ecModel,f=this._tooltipModel,d=[o.offsetX,o.offsetY],h=rb([o.tooltipOption],f),v=this._renderMode,g=[],m=Gt("section",{blocks:[],noHeader:!0}),y=[],b=new aD;q(e,function(T){q(T.dataByAxis,function(E){var P=u.getComponent(E.axisDim+"Axis",E.axisIndex),V=E.value;if(P&&null!=V){var N=xW(V,P.axis,u,E.seriesDataIndices,E.valueLabelOpt),H=Gt("section",{header:N,noHeader:!Io(N),sortBlocks:!0,blocks:[]});m.blocks.push(H),q(E.seriesDataIndices,function(j){var Z=u.getSeriesByIndex(j.seriesIndex),W=j.dataIndexInside,X=Z.getDataParams(W);if(!(X.dataIndex<0)){X.axisDim=E.axisDim,X.axisIndex=E.axisIndex,X.axisType=E.axisType,X.axisId=E.axisId,X.axisValue=ZC(P.axis,{value:V}),X.axisValueLabel=N,X.marker=b.makeTooltipMarker("item",Wd(X.color),v);var J=H4(Z.formatTooltip(W,!0,null)),ee=J.frag;if(ee){var re=rb([Z],f).get("valueFormatter");H.blocks.push(re?ve({valueFormatter:re},ee):ee)}J.text&&y.push(J.text),g.push(X)}})}})}),m.blocks.reverse(),y.reverse();var C=o.position,S=h.get("order"),k=rD(m,b,v,S,u.get("useUTC"),h.get("textStyle"));k&&y.unshift(k);var x=y.join("richText"===v?"\n\n":"
");this._showOrMove(h,function(){this._updateContentNotChangedOnAxis(e,g)?this._updatePosition(h,C,d[0],d[1],this._tooltipContent,g):this._showTooltipContent(h,x,g,Math.random()+"",d[0],d[1],C,null,b)})},t.prototype._showSeriesItemTooltip=function(e,o,u){var f=this._ecModel,d=vt(o),h=d.seriesIndex,v=f.getSeriesByIndex(h),g=d.dataModel||v,m=d.dataIndex,y=d.dataType,b=g.getData(y),C=this._renderMode,S=e.positionDefault,k=rb([b.getItemModel(m),g,v&&(v.coordinateSystem||{}).model],this._tooltipModel,S?{position:S}:null),D=k.get("trigger");if(null==D||"item"===D){var x=g.getDataParams(m,y),T=new aD;x.marker=T.makeTooltipMarker("item",Wd(x.color),C);var E=H4(g.formatTooltip(m,!1,y)),P=k.get("order"),V=k.get("valueFormatter"),N=E.frag,H=N?rD(V?ve({valueFormatter:V},N):N,T,C,P,f.get("useUTC"),k.get("textStyle")):E.text,j="item_"+g.name+"_"+m;this._showOrMove(k,function(){this._showTooltipContent(k,H,x,j,e.offsetX,e.offsetY,e.position,e.target,T)}),u({type:"showTip",dataIndexInside:m,dataIndex:b.getRawIndex(m),seriesIndex:h,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,o,u){var f=vt(o),h=f.tooltipConfig.option||{};Ne(h)&&(h={content:h,formatter:h});var g=[h],m=this._ecModel.getComponent(f.componentMainType,f.componentIndex);m&&g.push(m),g.push({formatter:h.content});var y=e.positionDefault,b=rb(g,this._tooltipModel,y?{position:y}:null),C=b.get("content"),S=Math.random()+"",k=new aD;this._showOrMove(b,function(){var D=ot(b.get("formatterParams")||{});this._showTooltipContent(b,C,D,S,e.offsetX,e.offsetY,e.position,o,k)}),u({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,o,u,f,d,h,v,g,m){if(this._ticket="",e.get("showContent")&&e.get("show")){var y=this._tooltipContent;y.setEnterable(e.get("enterable"));var b=e.get("formatter");v=v||e.get("position");var C=o,k=this._getNearestPoint([d,h],u,e.get("trigger"),e.get("borderColor")).color;if(b)if(Ne(b)){var D=e.ecModel.get("useUTC"),x=Ce(u)?u[0]:u;C=b,x&&x.axisType&&x.axisType.indexOf("time")>=0&&(C=Nm(x.axisValue,C,D)),C=Ek(C,u,!0)}else if(et(b)){var E=ze(function(P,V){P===this._ticket&&(y.setContent(V,m,e,k,v),this._updatePosition(e,v,d,h,y,u,g))},this);this._ticket=f,C=b(u,f,E)}else C=b;y.setContent(C,m,e,k,v),y.show(e,k),this._updatePosition(e,v,d,h,y,u,g)}},t.prototype._getNearestPoint=function(e,o,u,f){return"axis"===u||Ce(o)?{color:f||("html"===this._renderMode?"#fff":"none")}:Ce(o)?void 0:{color:f||o.color||o.borderColor}},t.prototype._updatePosition=function(e,o,u,f,d,h,v){var g=this._api.getWidth(),m=this._api.getHeight();o=o||e.get("position");var y=d.getSize(),b=e.get("align"),C=e.get("verticalAlign"),S=v&&v.getBoundingRect().clone();if(v&&S.applyTransform(v.transform),et(o)&&(o=o([u,f],h,d.el,S,{viewSize:[g,m],contentSize:y.slice()})),Ce(o))u=Ie(o[0],g),f=Ie(o[1],m);else if(Ke(o)){var k=o;k.width=y[0],k.height=y[1];var D=oi(k,{width:g,height:m});u=D.x,f=D.y,b=null,C=null}else if(Ne(o)&&v){var x=function np(a,t,e,o){var u=e[0],f=e[1],d=Math.ceil(Math.SQRT2*o)+8,h=0,v=0,g=t.width,m=t.height;switch(a){case"inside":h=t.x+g/2-u/2,v=t.y+m/2-f/2;break;case"top":h=t.x+g/2-u/2,v=t.y-f-d;break;case"bottom":h=t.x+g/2-u/2,v=t.y+m+d;break;case"left":h=t.x-u-d,v=t.y+m/2-f/2;break;case"right":h=t.x+g+d,v=t.y+m/2-f/2}return[h,v]}(o,S,y,e.get("borderWidth"));u=x[0],f=x[1]}else x=function P9(a,t,e,o,u,f,d){var h=e.getSize(),v=h[0],g=h[1];return null!=f&&(a+v+f+2>o?a-=v+f:a+=f),null!=d&&(t+g+d>u?t-=g+d:t+=d),[a,t]}(u,f,d,g,m,b?null:20,C?null:20),u=x[0],f=x[1];b&&(u-=UV(b)?y[0]/2:"right"===b?y[0]:0),C&&(f-=UV(C)?y[1]/2:"bottom"===C?y[1]:0),IE(e)&&(x=function GV(a,t,e,o,u){var f=e.getSize(),d=f[0],h=f[1];return a=Math.min(a+d,o)-d,t=Math.min(t+h,u)-h,[a=Math.max(a,0),t=Math.max(t,0)]}(u,f,d,g,m),u=x[0],f=x[1]),d.moveTo(u,f)},t.prototype._updateContentNotChangedOnAxis=function(e,o){var u=this._lastDataByCoordSys,f=this._cbParamsList,d=!!u&&u.length===e.length;return d&&q(u,function(h,v){var g=h.dataByAxis||[],y=(e[v]||{}).dataByAxis||[];(d=d&&g.length===y.length)&&q(g,function(b,C){var S=y[C]||{},k=b.seriesDataIndices||[],D=S.seriesDataIndices||[];(d=d&&b.value===S.value&&b.axisType===S.axisType&&b.axisId===S.axisId&&k.length===D.length)&&q(k,function(x,T){var E=D[T];d=d&&x.seriesIndex===E.seriesIndex&&x.dataIndex===E.dataIndex}),f&&q(b.seriesDataIndices,function(x){var T=x.seriesIndex,E=o[T],P=f[T];E&&P&&P.data!==E.data&&(d=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=o,!!d},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,o){tn.node||!o.getDom()||(c_(this,"_updatePosition"),this._tooltipContent.dispose(),K1("itemTooltip",o))},t.type="tooltip",t}(Ze);function rb(a,t,e){var u,o=t.ecModel;e?(u=new Kn(e,o,o),u=new Kn(t.option,u,o)):u=t;for(var f=a.length-1;f>=0;f--){var d=a[f];d&&(d instanceof Kn&&(d=d.get("tooltip",!0)),Ne(d)&&(d={formatter:d}),d&&(u=new Kn(d,u,o)))}return u}function GE(a,t){return a.dispatchAction||ze(t.dispatchAction,t)}function UV(a){return"center"===a||"middle"===a}var O9=zE,I9=["rect","polygon","keep","clear"];function R9(a,t){var e=Xn(a?a.brush:[]);if(e.length){var o=[];q(e,function(v){var g=v.hasOwnProperty("toolbox")?v.toolbox:[];g instanceof Array&&(o=o.concat(g))});var u=a&&a.toolbox;Ce(u)&&(u=u[0]),u||(a.toolbox=[u={feature:{}}]);var f=u.feature||(u.feature={}),d=f.brush||(f.brush={}),h=d.type||(d.type=[]);h.push.apply(h,o),function Vs(a){var t={};q(a,function(e){t[e]=1}),a.length=0,q(t,function(e,o){a.push(o)})}(h),t&&!h.length&&h.push.apply(h,I9)}}var ib=q;function YV(a){if(a)for(var t in a)if(a.hasOwnProperty(t))return!0}function vS(a,t,e){var o={};return ib(t,function(f){var d=o[f]=function u(){var f=function(){};return f.prototype.__hidden=f.prototype,new f}();ib(a[f],function(h,v){if(pn.isValidType(v)){var g={type:v,visual:h};e&&e(g,f),d[v]=new pn(g),"opacity"===v&&((g=ot(g)).type="colorAlpha",d.__hidden.__alphaForOpacity=new pn(g))}})}),o}function qV(a,t,e){var o;q(e,function(u){t.hasOwnProperty(u)&&YV(t[u])&&(o=!0)}),o&&q(e,function(u){t.hasOwnProperty(u)&&YV(t[u])?a[u]=ot(t[u]):delete a[u]})}var XV={lineX:UE(0),lineY:UE(1),rect:{point:function(t,e,o){return t&&o.boundingRect.contain(t[0],t[1])},rect:function(t,e,o){return t&&o.boundingRect.intersect(t)}},polygon:{point:function(t,e,o){return t&&o.boundingRect.contain(t[0],t[1])&&ki(o.range,t[0],t[1])},rect:function(t,e,o){var u=o.range;if(!t||u.length<=1)return!1;var f=t.x,d=t.y,h=t.width,v=t.height,g=u[0];return!!(ki(u,f,d)||ki(u,f+h,d)||ki(u,f,d+v)||ki(u,f+h,d+v)||zt.create(t).contain(g[0],g[1])||hC(f,d,f+h,d,u)||hC(f,d,f,d+v,u)||hC(f+h,d,f+h,d+v,u)||hC(f,d+v,f+h,d+v,u))||void 0}}};function UE(a){var t=["x","y"],e=["width","height"];return{point:function(u,f,d){if(u)return mS(u[a],d.range)},rect:function(u,f,d){if(u){var h=d.range,v=[u[t[a]],u[t[a]]+u[e[a]]];return v[1]e[0][1]&&(e[0][1]=d[0]),d[1]e[1][1]&&(e[1][1]=d[1])}return e&&JV(e)}};function JV(a){return new zt(a[0][0],a[1][0],a[0][1]-a[0][0],a[1][1]-a[1][0])}var B9=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.init=function(e,o){this.ecModel=e,this.api=o,(this._brushController=new d3(o.getZr())).on("brush",ze(this._onBrush,this)).mount()},t.prototype.render=function(e,o,u,f){this.model=e,this._updateController(e,o,u,f)},t.prototype.updateTransform=function(e,o,u,f){KV(o),this._updateController(e,o,u,f)},t.prototype.updateVisual=function(e,o,u,f){this.updateTransform(e,o,u,f)},t.prototype.updateView=function(e,o,u,f){this._updateController(e,o,u,f)},t.prototype._updateController=function(e,o,u,f){(!f||f.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(u)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var o=this.model.id,u=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:o,areas:ot(u),$from:o}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:o,areas:ot(u),$from:o})},t.type="brush",t}(Ze),V9=B9,z9=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.areas=[],e.brushOption={},e}return de(t,a),t.prototype.optionUpdated=function(e,o){var u=this.option;!o&&qV(u,e,["inBrush","outOfBrush"]);var f=u.inBrush=u.inBrush||{};u.outOfBrush=u.outOfBrush||{color:"#ddd"},f.hasOwnProperty("liftZ")||(f.liftZ=5)},t.prototype.setAreas=function(e){!e||(this.areas=Me(e,function(o){return e5(this.option,o)},this))},t.prototype.setBrushOption=function(e){this.brushOption=e5(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.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},t}(sn);function e5(a,t){return Dt({brushType:a.brushType,brushMode:a.brushMode,transformable:a.transformable,brushStyle:new Kn(a.brushStyle).getItemStyle(),removeOnClick:a.removeOnClick,z:a.z},t,!0)}var G9=z9,U9=["rect","polygon","lineX","lineY","keep","clear"],j9=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return de(t,a),t.prototype.render=function(e,o,u){var f,d,h;o.eachComponent({mainType:"brush"},function(v){f=v.brushType,d=v.brushOption.brushMode||"single",h=h||!!v.areas.length}),this._brushType=f,this._brushMode=d,q(e.get("type",!0),function(v){e.setIconStatus(v,("keep"===v?"multiple"===d:"clear"===v?h:v===f)?"emphasis":"normal")})},t.prototype.updateView=function(e,o,u){this.render(e,o,u)},t.prototype.getIcons=function(){var e=this.model,o=e.get("icon",!0),u={};return q(e.get("type",!0),function(f){o[f]&&(u[f]=o[f])}),u},t.prototype.onclick=function(e,o,u){var f=this._brushType,d=this._brushMode;"clear"===u?(o.dispatchAction({type:"axisAreaSelect",intervals:[]}),o.dispatchAction({type:"brush",command:"clear",areas:[]})):o.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===u?f:f!==u&&u,brushMode:"keep"===u?"multiple"===d?"single":"multiple":d}})},t.getDefaultOption=function(e){return{show:!0,type:U9.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:e.getLocaleModel().get(["toolbox","brush","title"])}},t}(Vl),W9=j9,q9=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return de(t,a),t.type="title",t.defaultOption={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"}},t}(sn),Z9=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.render=function(e,o,u){if(this.group.removeAll(),e.get("show")){var f=this.group,d=e.getModel("textStyle"),h=e.getModel("subtextStyle"),v=e.get("textAlign"),g=Ft(e.get("textBaseline"),e.get("textVerticalAlign")),m=new dn({style:Cr(d,{text:e.get("text"),fill:d.getTextColor()},{disableBox:!0}),z2:10}),y=m.getBoundingRect(),b=e.get("subtext"),C=new dn({style:Cr(h,{text:b,fill:h.getTextColor(),y:y.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),S=e.get("link"),k=e.get("sublink"),D=e.get("triggerEvent",!0);m.silent=!S&&!D,C.silent=!k&&!D,S&&m.on("click",function(){G0(S,"_"+e.get("target"))}),k&&C.on("click",function(){G0(k,"_"+e.get("subtarget"))}),vt(m).eventData=vt(C).eventData=D?{componentType:"title",componentIndex:e.componentIndex}:null,f.add(m),b&&f.add(C);var x=f.getBoundingRect(),T=e.getBoxLayoutParams();T.width=x.width,T.height=x.height;var E=oi(T,{width:u.getWidth(),height:u.getHeight()},e.get("padding"));v||("middle"===(v=e.get("left")||e.get("right"))&&(v="center"),"right"===v?E.x+=E.width:"center"===v&&(E.x+=E.width/2)),g||("center"===(g=e.get("top")||e.get("bottom"))&&(g="middle"),"bottom"===g?E.y+=E.height:"middle"===g&&(E.y+=E.height/2),g=g||"top"),f.x=E.x,f.y=E.y,f.markRedraw();var P={align:v,verticalAlign:g};m.setStyle(P),C.setStyle(P),x=f.getBoundingRect();var V=E.margin,N=e.getItemStyle(["color","opacity"]);N.fill=e.get("backgroundColor");var H=new fn({shape:{x:x.x-V[3],y:x.y-V[0],width:x.width+V[1]+V[3],height:x.height+V[0]+V[2],r:e.get("borderRadius")},style:N,subPixelOptimize:!0,silent:!0});f.add(H)}},t.type="title",t}(Ze),oQ=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return de(t,a),t.prototype.init=function(e,o,u){this.mergeDefaultAndTheme(e,u),this._initData()},t.prototype.mergeOption=function(e){a.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var o=this._data.count();this.option.loop?e=(e%o+o)%o:(e>=o&&(e=o-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var d,e=this.option,o=e.data||[],u=e.axisType,f=this._names=[];"category"===u?(d=[],q(o,function(g,m){var b,y=wi(fm(g),"");Ke(g)?(b=ot(g)).value=m:b=m,d.push(b),f.push(y)})):d=o,(this._data=new ga([{name:"value",type:{category:"ordinal",time:"time",value:"number"}[u]||"number"}],this)).initData(d,f)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={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:[]},t}(sn),t5=oQ,n5=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.type="timeline.slider",t.defaultOption=Xc(t5.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:[]}),t}(t5);Ir(n5,Zk.prototype);var r5=n5,K9=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.type="timeline",t}(Ze),sQ=K9,a5=function(a){function t(e,o,u,f){var d=a.call(this,e,o,u)||this;return d.type=f||"value",d}return de(t,a),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(Fa),o5=a5,rs=Math.PI,s5=Sn(),l5=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.init=function(e,o){this.api=o},t.prototype.render=function(e,o,u){if(this.model=e,this.api=u,this.ecModel=o,this.group.removeAll(),e.get("show",!0)){var f=this._layout(e,u),d=this._createGroup("_mainGroup"),h=this._createGroup("_labelGroup"),v=this._axis=this._createAxis(f,e);e.formatTooltip=function(g){return Gt("nameValue",{noName:!0,value:v.scale.getLabel({value:g})})},q(["AxisLine","AxisTick","Control","CurrentPointer"],function(g){this["_render"+g](f,d,v,e)},this),this._renderAxisLabel(f,h,v,e),this._position(f,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,o){var h,u=e.get(["label","position"]),f=e.get("orient"),d=function $9(a,t){return oi(a.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},a.get("padding"))}(e,o),v={horizontal:"center",vertical:(h=null==u||"auto"===u?"horizontal"===f?d.y+d.height/2=0||"+"===h?"left":"right"},g={horizontal:h>=0||"+"===h?"top":"bottom",vertical:"middle"},m={horizontal:0,vertical:rs/2},y="vertical"===f?d.height:d.width,b=e.getModel("controlStyle"),C=b.get("show",!0),S=C?b.get("itemSize"):0,k=C?b.get("itemGap"):0,D=S+k,x=e.get(["label","rotate"])||0;x=x*rs/180;var T,E,P,V=b.get("position",!0),N=C&&b.get("showPlayBtn",!0),H=C&&b.get("showPrevBtn",!0),j=C&&b.get("showNextBtn",!0),Z=0,W=y;"left"===V||"bottom"===V?(N&&(T=[0,0],Z+=D),H&&(E=[Z,0],Z+=D),j&&(P=[W-S,0],W-=D)):(N&&(T=[W-S,0],W-=D),H&&(E=[0,0],Z+=D),j&&(P=[W-S,0],W-=D));var X=[Z,W];return e.get("inverse")&&X.reverse(),{viewRect:d,mainLength:y,orient:f,rotation:m[f],labelRotation:x,labelPosOpt:h,labelAlign:e.get(["label","align"])||v[f],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||g[f],playPosition:T,prevBtnPosition:E,nextBtnPosition:P,axisExtent:X,controlSize:S,controlGap:k}},t.prototype._position=function(e,o){var u=this._mainGroup,f=this._labelGroup,d=e.viewRect;if("vertical"===e.orient){var h=[1,0,0,1,0,0],v=d.x,g=d.y+d.height;vs(h,h,[-v,-g]),el(h,h,-rs/2),vs(h,h,[v,g]),(d=d.clone()).applyTransform(h)}var m=T(d),y=T(u.getBoundingRect()),b=T(f.getBoundingRect()),C=[u.x,u.y],S=[f.x,f.y];S[0]=C[0]=m[0][0];var D,k=e.labelPosOpt;function x(P){P.originX=m[0][0]-P.x,P.originY=m[1][0]-P.y}function T(P){return[[P.x,P.x+P.width],[P.y,P.y+P.height]]}function E(P,V,N,H,j){P[H]+=N[H][j]-V[H][j]}null==k||Ne(k)?(E(C,y,m,1,D="+"===k?0:1),E(S,b,m,1,1-D)):(E(C,y,m,1,D=k>=0?0:1),S[1]=C[1]+k),u.setPosition(C),f.setPosition(S),u.rotation=f.rotation=e.rotation,x(u),x(f)},t.prototype._createAxis=function(e,o){var u=o.getData(),f=o.get("axisType"),d=function Hs(a,t){if(t=t||a.get("type"))switch(t){case"category":return new fx({ordinalMeta:a.getCategories(),extent:[1/0,-1/0]});case"time":return new L8({locale:a.ecModel.getLocaleModel(),useUTC:a.ecModel.get("useUTC")});default:return new Qu}}(o,f);d.getTicks=function(){return u.mapArray(["value"],function(g){return{value:g}})};var h=u.getDataExtent("value");d.setExtent(h[0],h[1]),d.calcNiceTicks();var v=new o5("value",d,e.axisExtent,f);return v.model=o,v},t.prototype._createGroup=function(e){var o=this[e]=new ct;return this.group.add(o),o},t.prototype._renderAxisLine=function(e,o,u,f){var d=u.getExtent();if(f.get(["lineStyle","show"])){var h=new Nr({shape:{x1:d[0],y1:0,x2:d[1],y2:0},style:ve({lineCap:"round"},f.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});o.add(h);var v=this._progressLine=new Nr({shape:{x1:d[0],x2:this._currentPointer?this._currentPointer.x:d[0],y1:0,y2:0},style:rt({lineCap:"round",lineWidth:h.style.lineWidth},f.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});o.add(v)}},t.prototype._renderAxisTick=function(e,o,u,f){var d=this,h=f.getData(),v=u.scale.getTicks();this._tickSymbols=[],q(v,function(g){var m=u.dataToCoord(g.value),y=h.getItemModel(g.value),b=y.getModel("itemStyle"),C=y.getModel(["emphasis","itemStyle"]),S=y.getModel(["progress","itemStyle"]),k={x:m,y:0,onclick:ze(d._changeTimeline,d,g.value)},D=u5(y,b,o,k);D.ensureState("emphasis").style=C.getItemStyle(),D.ensureState("progress").style=S.getItemStyle(),Yc(D);var x=vt(D);y.get("tooltip")?(x.dataIndex=g.value,x.dataModel=f):x.dataIndex=x.dataModel=null,d._tickSymbols.push(D)})},t.prototype._renderAxisLabel=function(e,o,u,f){var d=this;if(u.getLabelModel().get("show")){var v=f.getData(),g=u.getViewLabels();this._tickLabels=[],q(g,function(m){var y=m.tickValue,b=v.getItemModel(y),C=b.getModel("label"),S=b.getModel(["emphasis","label"]),k=b.getModel(["progress","label"]),D=u.dataToCoord(m.tickValue),x=new dn({x:D,y:0,rotation:e.labelRotation-e.rotation,onclick:ze(d._changeTimeline,d,y),silent:!1,style:Cr(C,{text:m.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});x.ensureState("emphasis").style=Cr(S),x.ensureState("progress").style=Cr(k),o.add(x),Yc(x),s5(x).dataIndex=y,d._tickLabels.push(x)})}},t.prototype._renderControl=function(e,o,u,f){var d=e.controlSize,h=e.rotation,v=f.getModel("controlStyle").getItemStyle(),g=f.getModel(["emphasis","controlStyle"]).getItemStyle(),m=f.getPlayState(),y=f.get("inverse",!0);function b(C,S,k,D){if(C){var x=il(Ft(f.get(["controlStyle",S+"BtnSize"]),d),d),E=function Q9(a,t,e,o){var u=o.style,f=gv(a.get(["controlStyle",t]),o||{},new zt(e[0],e[1],e[2],e[3]));return u&&f.setStyle(u),f}(f,S+"Icon",[0,-x/2,x,x],{x:C[0],y:C[1],originX:d/2,originY:0,rotation:D?-h:0,rectHover:!0,style:v,onclick:k});E.ensureState("emphasis").style=g,o.add(E),Yc(E)}}b(e.nextBtnPosition,"next",ze(this._changeTimeline,this,y?"-":"+")),b(e.prevBtnPosition,"prev",ze(this._changeTimeline,this,y?"+":"-")),b(e.playPosition,m?"stop":"play",ze(this._handlePlayClick,this,!m),!0)},t.prototype._renderCurrentPointer=function(e,o,u,f){var d=f.getData(),h=f.getCurrentIndex(),v=d.getItemModel(h).getModel("checkpointStyle"),g=this;this._currentPointer=u5(v,v,this._mainGroup,{},this._currentPointer,{onCreate:function(b){b.draggable=!0,b.drift=ze(g._handlePointerDrag,g),b.ondragend=ze(g._handlePointerDragend,g),WE(b,g._progressLine,h,u,f,!0)},onUpdate:function(b){WE(b,g._progressLine,h,u,f)}})},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,o,u){this._clearTimer(),this._pointerChangeTimeline([u.offsetX,u.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,o){var u=this._toAxisCoord(e)[0],d=Zi(this._axis.getExtent().slice());u>d[1]&&(u=d[1]),u=0&&(d[f]=+d[f].toFixed(b)),[d,y]}var p5={min:wt(ZE,"min"),max:wt(ZE,"max"),average:wt(ZE,"average"),median:wt(ZE,"median")};function CS(a,t){var e=a.getData(),o=a.coordinateSystem;if(t&&!function lQ(a){return!isNaN(parseFloat(a.x))&&!isNaN(parseFloat(a.y))}(t)&&!Ce(t.coord)&&o){var u=o.dimensions,f=rY(t,e,o,a);if((t=ot(t)).type&&p5[t.type]&&f.baseAxis&&f.valueAxis){var d=Ct(u,f.baseAxis.dim),h=Ct(u,f.valueAxis.dim),v=p5[t.type](e,f.baseDataDim,f.valueDataDim,d,h);t.coord=v[0],t.value=v[1]}else{for(var g=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],m=0;m<2;m++)p5[g[m]]&&(g[m]=XE(e,e.mapDimension(u[m]),g[m]));t.coord=g}}return t}function rY(a,t,e,o){var u={};return null!=a.valueIndex||null!=a.valueDim?(u.valueDataDim=null!=a.valueIndex?t.getDimension(a.valueIndex):a.valueDim,u.valueAxis=e.getAxis(function uQ(a,t){var e=a.getData().getDimensionInfo(t);return e&&e.coordDim}(o,u.valueDataDim)),u.baseAxis=e.getOtherAxis(u.valueAxis),u.baseDataDim=t.mapDimension(u.baseAxis.dim)):(u.baseAxis=o.getBaseAxis(),u.valueAxis=e.getOtherAxis(u.baseAxis),u.baseDataDim=t.mapDimension(u.baseAxis.dim),u.valueDataDim=t.mapDimension(u.valueAxis.dim)),u}function wS(a,t){return!(a&&a.containData&&t.coord&&!function Hl(a){return!(isNaN(parseFloat(a.x))&&isNaN(parseFloat(a.y)))}(t))||a.containData(t.coord)}function v5(a,t){return a?function(e,o,u,f){return sf(f<2?e.coord&&e.coord[f]:e.value,t[f])}:function(e,o,u,f){return sf(e.value,t[f])}}function XE(a,t,e){if("average"===e){var o=0,u=0;return a.each(t,function(f,d){isNaN(f)||(o+=f,u++)}),o/u}return"median"===e?a.getMedian(t):a.getDataExtent(t)["max"===e?1:0]}var KE=Sn(),iY=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.init=function(){this.markerGroupMap=$e()},t.prototype.render=function(e,o,u){var f=this,d=this.markerGroupMap;d.each(function(h){KE(h).keep=!1}),o.eachSeries(function(h){var v=Jf.getMarkerModelFromSeries(h,f.type);v&&f.renderSeries(h,v,o,u)}),d.each(function(h){!KE(h).keep&&f.group.remove(h.group)})},t.prototype.markKeep=function(e){KE(e).keep=!0},t.prototype.toggleBlurSeries=function(e,o){var u=this;q(e,function(f){var d=Jf.getMarkerModelFromSeries(f,u.type);d&&d.getData().eachItemGraphicEl(function(v){v&&(o?fk(v):dk(v))})})},t.type="marker",t}(Ze),$E=iY;function g5(a,t,e){var o=t.coordinateSystem;a.each(function(u){var d,f=a.getItemModel(u),h=Ie(f.get("x"),e.getWidth()),v=Ie(f.get("y"),e.getHeight());if(isNaN(h)||isNaN(v)){if(t.getMarkerPosition)d=t.getMarkerPosition(a.getValues(a.dimensions,u));else if(o){var g=a.get(o.dimensions[0],u),m=a.get(o.dimensions[1],u);d=o.dataToPoint([g,m])}}else d=[h,v];isNaN(h)||(d[0]=h),isNaN(v)||(d[1]=v),a.setItemLayout(u,d)})}var aY=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.updateTransform=function(e,o,u){o.eachSeries(function(f){var d=Jf.getMarkerModelFromSeries(f,"markPoint");d&&(g5(d.getData(),f,u),this.markerGroupMap.get(f.id).updateLayout())},this)},t.prototype.renderSeries=function(e,o,u,f){var d=e.coordinateSystem,h=e.id,v=e.getData(),g=this.markerGroupMap,m=g.get(h)||g.set(h,new K_),y=function oY(a,t,e){var o;o=a?Me(a&&a.dimensions,function(h){return ve(ve({},t.getData().getDimensionInfo(t.getData().mapDimension(h))||{}),{name:h,ordinalMeta:null})}):[{name:"value",type:"float"}];var u=new ga(o,e),f=Me(e.get("data"),wt(CS,t));a&&(f=Un(f,wt(wS,a)));var d=v5(!!a,o);return u.initData(f,null,d),u}(d,e,o);o.setData(y),g5(o.getData(),e,f),y.each(function(b){var C=y.getItemModel(b),S=C.getShallow("symbol"),k=C.getShallow("symbolSize"),D=C.getShallow("symbolRotate"),x=C.getShallow("symbolOffset"),T=C.getShallow("symbolKeepAspect");if(et(S)||et(k)||et(D)||et(x)){var E=o.getRawValue(b),P=o.getDataParams(b);et(S)&&(S=S(E,P)),et(k)&&(k=k(E,P)),et(D)&&(D=D(E,P)),et(x)&&(x=x(E,P))}var V=C.getModel("itemStyle").getItemStyle(),N=d_(v,"color");V.fill||(V.fill=N),y.setItemVisual(b,{symbol:S,symbolSize:k,symbolRotate:D,symbolOffset:x,symbolKeepAspect:T,style:V})}),m.updateData(y),this.group.add(m.group),y.eachItemGraphicEl(function(b){b.traverse(function(C){vt(C).dataModel=o})}),this.markKeep(m),m.group.silent=o.get("silent")||e.get("silent")},t.type="markPoint",t}($E),sY=aY,uY=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.createMarkerModelFromSeries=function(e,o,u){return new t(e,o,u)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(Jf),cY=uY,SS=Sn(),fY=function(t,e,o,u){var d,f=t.getData();if(Ce(u))d=u;else{var h=u.type;if("min"===h||"max"===h||"average"===h||"median"===h||null!=u.xAxis||null!=u.yAxis){var v=void 0,g=void 0;if(null!=u.yAxis||null!=u.xAxis)v=e.getAxis(null!=u.yAxis?"y":"x"),g=Ui(u.yAxis,u.xAxis);else{var m=rY(u,f,e,t);v=m.valueAxis,g=XE(f,ax(f,m.valueDataDim),h)}var b="x"===v.dim?0:1,C=1-b,S=ot(u),k={coord:[]};S.type=null,S.coord=[],S.coord[C]=-1/0,k.coord[C]=1/0;var D=o.get("precision");D>=0&&Cn(g)&&(g=+g.toFixed(Math.min(D,20))),S.coord[b]=k.coord[b]=g,d=[S,k,{type:h,valueIndex:u.valueIndex,value:g}]}else d=[]}var x=[CS(t,d[0]),CS(t,d[1]),ve({},d[2])];return x[2].type=x[2].type||null,Dt(x[2],x[0]),Dt(x[2],x[1]),x};function ab(a){return!isNaN(a)&&!isFinite(a)}function m5(a,t,e,o){var u=1-a,f=o.dimensions[a];return ab(t[u])&&ab(e[u])&&t[a]===e[a]&&o.getAxis(f).containData(t[a])}function dY(a,t){if("cartesian2d"===a.type){var e=t[0].coord,o=t[1].coord;if(e&&o&&(m5(1,e,o,a)||m5(0,e,o,a)))return!0}return wS(a,t[0])&&wS(a,t[1])}function QE(a,t,e,o,u){var h,f=o.coordinateSystem,d=a.getItemModel(t),v=Ie(d.get("x"),u.getWidth()),g=Ie(d.get("y"),u.getHeight());if(isNaN(v)||isNaN(g)){if(o.getMarkerPosition)h=o.getMarkerPosition(a.getValues(a.dimensions,t));else{var y=a.get((m=f.dimensions)[0],t),b=a.get(m[1],t);h=f.dataToPoint([y,b])}if(ac(f,"cartesian2d")){var m,C=f.getAxis("x"),S=f.getAxis("y");ab(a.get((m=f.dimensions)[0],t))?h[0]=C.toGlobalCoord(C.getExtent()[e?0:1]):ab(a.get(m[1],t))&&(h[1]=S.toGlobalCoord(S.getExtent()[e?0:1]))}isNaN(v)||(h[0]=v),isNaN(g)||(h[1]=g)}else h=[v,g];a.setItemLayout(t,h)}var hY=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.updateTransform=function(e,o,u){o.eachSeries(function(f){var d=Jf.getMarkerModelFromSeries(f,"markLine");if(d){var h=d.getData(),v=SS(d).from,g=SS(d).to;v.each(function(m){QE(v,m,!0,f,u),QE(g,m,!1,f,u)}),h.each(function(m){h.setItemLayout(m,[v.getItemLayout(m),g.getItemLayout(m)])}),this.markerGroupMap.get(f.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,o,u,f){var d=e.coordinateSystem,h=e.id,v=e.getData(),g=this.markerGroupMap,m=g.get(h)||g.set(h,new Fs);this.group.add(m.group);var y=function pY(a,t,e){var o;o=a?Me(a&&a.dimensions,function(g){return ve(ve({},t.getData().getDimensionInfo(t.getData().mapDimension(g))||{}),{name:g,ordinalMeta:null})}):[{name:"value",type:"float"}];var u=new ga(o,e),f=new ga(o,e),d=new ga([],e),h=Me(e.get("data"),wt(fY,t,a,e));a&&(h=Un(h,wt(dY,a)));var v=v5(!!a,o);return u.initData(Me(h,function(g){return g[0]}),null,v),f.initData(Me(h,function(g){return g[1]}),null,v),d.initData(Me(h,function(g){return g[2]})),d.hasItemOption=!0,{from:u,to:f,line:d}}(d,e,o),b=y.from,C=y.to,S=y.line;SS(o).from=b,SS(o).to=C,o.setData(S);var k=o.get("symbol"),D=o.get("symbolSize"),x=o.get("symbolRotate"),T=o.get("symbolOffset");function E(P,V,N){var H=P.getItemModel(V);QE(P,V,N,e,f);var j=H.getModel("itemStyle").getItemStyle();null==j.fill&&(j.fill=d_(v,"color")),P.setItemVisual(V,{symbolKeepAspect:H.get("symbolKeepAspect"),symbolOffset:Ft(H.get("symbolOffset",!0),T[N?0:1]),symbolRotate:Ft(H.get("symbolRotate",!0),x[N?0:1]),symbolSize:Ft(H.get("symbolSize"),D[N?0:1]),symbol:Ft(H.get("symbol",!0),k[N?0:1]),style:j})}Ce(k)||(k=[k,k]),Ce(D)||(D=[D,D]),Ce(x)||(x=[x,x]),Ce(T)||(T=[T,T]),y.from.each(function(P){E(b,P,!0),E(C,P,!1)}),S.each(function(P){var V=S.getItemModel(P).getModel("lineStyle").getLineStyle();S.setItemLayout(P,[b.getItemLayout(P),C.getItemLayout(P)]),null==V.stroke&&(V.stroke=b.getItemVisual(P,"style").fill),S.setItemVisual(P,{fromSymbolKeepAspect:b.getItemVisual(P,"symbolKeepAspect"),fromSymbolOffset:b.getItemVisual(P,"symbolOffset"),fromSymbolRotate:b.getItemVisual(P,"symbolRotate"),fromSymbolSize:b.getItemVisual(P,"symbolSize"),fromSymbol:b.getItemVisual(P,"symbol"),toSymbolKeepAspect:C.getItemVisual(P,"symbolKeepAspect"),toSymbolOffset:C.getItemVisual(P,"symbolOffset"),toSymbolRotate:C.getItemVisual(P,"symbolRotate"),toSymbolSize:C.getItemVisual(P,"symbolSize"),toSymbol:C.getItemVisual(P,"symbol"),style:V})}),m.updateData(S),y.line.eachItemGraphicEl(function(P,V){P.traverse(function(N){vt(N).dataModel=o})}),this.markKeep(m),m.group.silent=o.get("silent")||e.get("silent")},t.type="markLine",t}($E),vY=hY,mY=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.createMarkerModelFromSeries=function(e,o,u){return new t(e,o,u)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(Jf),_Y=mY,MS=Sn(),yY=function(t,e,o,u){var f=CS(t,u[0]),d=CS(t,u[1]),h=f.coord,v=d.coord;h[0]=Ui(h[0],-1/0),h[1]=Ui(h[1],-1/0),v[0]=Ui(v[0],1/0),v[1]=Ui(v[1],1/0);var g=gr([{},f,d]);return g.coord=[f.coord,d.coord],g.x0=f.x,g.y0=f.y,g.x1=d.x,g.y1=d.y,g};function kS(a){return!isNaN(a)&&!isFinite(a)}function _5(a,t,e,o){var u=1-a;return kS(t[u])&&kS(e[u])}function y5(a,t){var e=t.coord[0],o=t.coord[1];return!!(ac(a,"cartesian2d")&&e&&o&&(_5(1,e,o)||_5(0,e,o)))||wS(a,{coord:e,x:t.x0,y:t.y0})||wS(a,{coord:o,x:t.x1,y:t.y1})}function ui(a,t,e,o,u){var h,f=o.coordinateSystem,d=a.getItemModel(t),v=Ie(d.get(e[0]),u.getWidth()),g=Ie(d.get(e[1]),u.getHeight());if(isNaN(v)||isNaN(g)){if(o.getMarkerPosition)h=o.getMarkerPosition(a.getValues(e,t));else{var b=[m=a.get(e[0],t),y=a.get(e[1],t)];f.clampData&&f.clampData(b,b),h=f.dataToPoint(b,!0)}if(ac(f,"cartesian2d")){var C=f.getAxis("x"),S=f.getAxis("y"),m=a.get(e[0],t),y=a.get(e[1],t);kS(m)?h[0]=C.toGlobalCoord(C.getExtent()["x0"===e[0]?0:1]):kS(y)&&(h[1]=S.toGlobalCoord(S.getExtent()["y0"===e[1]?0:1]))}isNaN(v)||(h[0]=v),isNaN(g)||(h[1]=g)}else h=[v,g];return h}var vr=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],b5=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.updateTransform=function(e,o,u){o.eachSeries(function(f){var d=Jf.getMarkerModelFromSeries(f,"markArea");if(d){var h=d.getData();h.each(function(v){var g=Me(vr,function(y){return ui(h,v,y,f,u)});h.setItemLayout(v,g),h.getItemGraphicEl(v).setShape("points",g)})}},this)},t.prototype.renderSeries=function(e,o,u,f){var d=e.coordinateSystem,h=e.id,v=e.getData(),g=this.markerGroupMap,m=g.get(h)||g.set(h,{group:new ct});this.group.add(m.group),this.markKeep(m);var y=function C5(a,t,e){var o,u;if(a){var d=Me(a&&a.dimensions,function(g){var m=t.getData();return ve(ve({},m.getDimensionInfo(m.mapDimension(g))||{}),{name:g,ordinalMeta:null})});u=Me(["x0","y0","x1","y1"],function(g,m){return{name:g,type:d[m%2].type}}),o=new ga(u,e)}else o=new ga(u=[{name:"value",type:"float"}],e);var h=Me(e.get("data"),wt(yY,t,a,e));a&&(h=Un(h,wt(y5,a)));var v=a?function(g,m,y,b){return sf(g.coord[Math.floor(b/2)][b%2],u[b])}:function(g,m,y,b){return sf(g.value,u[b])};return o.initData(h,null,v),o.hasItemOption=!0,o}(d,e,o);o.setData(y),y.each(function(b){var C=Me(vr,function(j){return ui(y,b,j,e,f)}),S=d.getAxis("x").scale,k=d.getAxis("y").scale,D=S.getExtent(),x=k.getExtent(),T=[S.parse(y.get("x0",b)),S.parse(y.get("x1",b))],E=[k.parse(y.get("y0",b)),k.parse(y.get("y1",b))];Zi(T),Zi(E),y.setItemLayout(b,{points:C,allClipped:!!(D[0]>T[1]||D[1]E[1]||x[1]=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={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",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",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"},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}},t}(sn),DS=w5,ip=wt,ob=q,sb=ct,CY=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return de(t,a),t.prototype.init=function(){this.group.add(this._contentGroup=new sb),this.group.add(this._selectorGroup=new sb),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,o,u){var f=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var d=e.get("align"),h=e.get("orient");(!d||"auto"===d)&&(d="right"===e.get("left")&&"vertical"===h?"right":"left");var v=e.get("selector",!0),g=e.get("selectorPosition",!0);v&&(!g||"auto"===g)&&(g="horizontal"===h?"end":"start"),this.renderInner(d,e,o,u,v,h,g);var m=e.getBoxLayoutParams(),y={width:u.getWidth(),height:u.getHeight()},b=e.get("padding"),C=oi(m,y,b),S=this.layoutInner(e,d,C,f,v,g),k=oi(rt({width:S.width,height:S.height},m),y,b);this.group.x=k.x-S.x,this.group.y=k.y-S.y,this.group.markRedraw(),this.group.add(this._backgroundEl=vg(S,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,o,u,f,d,h,v){var g=this.getContentGroup(),m=$e(),y=o.get("selectedMode"),b=[];u.eachRawSeries(function(C){!C.get("legendHoverLink")&&b.push(C.id)}),ob(o.getData(),function(C,S){var k=C.get("name");if(!this.newlineDisabled&&(""===k||"\n"===k)){var D=new sb;return D.newline=!0,void g.add(D)}var x=u.getSeriesByName(k)[0];if(!m.get(k))if(x){var T=x.getData(),E=T.getVisual("legendLineStyle")||{},P=T.getVisual("legendIcon"),V=T.getVisual("style");this._createItem(x,k,S,C,o,e,E,V,P,y).on("click",ip(tP,k,null,f,b)).on("mouseover",ip(nP,x.name,null,f,b)).on("mouseout",ip(rP,x.name,null,f,b)),m.set(k,!0)}else u.eachRawSeries(function(H){if(!m.get(k)&&H.legendVisualProvider){var j=H.legendVisualProvider;if(!j.containName(k))return;var Z=j.indexOfName(k),W=j.getItemVisual(Z,"style"),X=j.getItemVisual(Z,"legendIcon"),J=mo(W.fill);J&&0===J[3]&&(J[3]=.2,W=ve(ve({},W),{fill:No(J,"rgba")})),this._createItem(H,k,S,C,o,e,{},W,X,y).on("click",ip(tP,null,k,f,b)).on("mouseover",ip(nP,null,k,f,b)).on("mouseout",ip(rP,null,k,f,b)),m.set(k,!0)}},this)},this),d&&this._createSelector(d,o,f,h,v)},t.prototype._createSelector=function(e,o,u,f,d){var h=this.getSelectorGroup();ob(e,function(g){var m=g.type,y=new dn({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){u.dispatchAction({type:"all"===m?"legendAllSelect":"legendInverseSelect"})}});h.add(y),$i(y,{normal:o.getModel("selectorLabel"),emphasis:o.getModel(["emphasis","selectorLabel"])},{defaultText:g.title}),Yc(y)})},t.prototype._createItem=function(e,o,u,f,d,h,v,g,m,y){var b=e.visualDrawType,C=d.get("itemWidth"),S=d.get("itemHeight"),k=d.isSelected(o),D=f.get("symbolRotate"),x=f.get("symbolKeepAspect"),T=f.get("icon"),E=function is(a,t,e,o,u,f){function d(S,k){"auto"===S.lineWidth&&(S.lineWidth=k.lineWidth>0?2:0),ob(S,function(D,x){"inherit"===S[x]&&(S[x]=k[x])})}var v=t.getModel("itemStyle").getItemStyle(),g=0===a.lastIndexOf("empty",0)?"fill":"stroke";v.decal=o.decal,"inherit"===v.fill&&(v.fill=o[u]),"inherit"===v.stroke&&(v.stroke=o[g]),"inherit"===v.opacity&&(v.opacity=("fill"===u?o:e).opacity),d(v,o);var m=t.getModel("lineStyle"),y=m.getLineStyle();if(d(y,e),"auto"===v.fill&&(v.fill=o.fill),"auto"===v.stroke&&(v.stroke=o.fill),"auto"===y.stroke&&(y.stroke=o.fill),!f){var b=t.get("inactiveBorderWidth");v.lineWidth="auto"===b?o.lineWidth>0&&v[g]?2:0:v.lineWidth,v.fill=t.get("inactiveColor"),v.stroke=t.get("inactiveBorderColor"),y.stroke=m.get("inactiveColor"),y.lineWidth=m.get("inactiveWidth")}return{itemStyle:v,lineStyle:y}}(m=T||m||"roundRect",f,v,g,b,k),P=new sb,V=f.getModel("textStyle");if(!et(e.getLegendIcon)||T&&"inherit"!==T){var N="inherit"===T&&e.getData().getVisual("symbol")?"inherit"===D?e.getData().getVisual("symbolRotate"):D:0;P.add(function cQ(a){var t=a.icon||"roundRect",e=Dr(t,0,0,a.itemWidth,a.itemHeight,a.itemStyle.fill,a.symbolKeepAspect);return e.setStyle(a.itemStyle),e.rotation=(a.iconRotate||0)*Math.PI/180,e.setOrigin([a.itemWidth/2,a.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}({itemWidth:C,itemHeight:S,icon:m,iconRotate:N,itemStyle:E.itemStyle,lineStyle:E.lineStyle,symbolKeepAspect:x}))}else P.add(e.getLegendIcon({itemWidth:C,itemHeight:S,icon:m,iconRotate:D,itemStyle:E.itemStyle,lineStyle:E.lineStyle,symbolKeepAspect:x}));var H="left"===h?C+5:-5,j=h,Z=d.get("formatter"),W=o;Ne(Z)&&Z?W=Z.replace("{name}",null!=o?o:""):et(Z)&&(W=Z(o));var X=f.get("inactiveColor");P.add(new dn({style:Cr(V,{text:W,x:H,y:S/2,fill:k?V.getTextColor():X,align:j,verticalAlign:"middle"})}));var J=new fn({shape:P.getBoundingRect(),invisible:!0}),ee=f.getModel("tooltip");return ee.get("show")&&ih({el:J,componentModel:d,itemName:o,itemTooltipOption:ee.option}),P.add(J),P.eachChild(function(re){re.silent=!0}),J.silent=!y,this.getContentGroup().add(P),Yc(P),P.__legendDataIndex=u,P},t.prototype.layoutInner=function(e,o,u,f,d,h){var v=this.getContentGroup(),g=this.getSelectorGroup();Hu(e.get("orient"),v,e.get("itemGap"),u.width,u.height);var m=v.getBoundingRect(),y=[-m.x,-m.y];if(g.markRedraw(),v.markRedraw(),d){Hu("horizontal",g,e.get("selectorItemGap",!0));var b=g.getBoundingRect(),C=[-b.x,-b.y],S=e.get("selectorButtonGap",!0),k=e.getOrient().index,D=0===k?"width":"height",x=0===k?"height":"width",T=0===k?"y":"x";"end"===h?C[k]+=m[D]+S:y[k]+=b[D]+S,C[1-k]+=m[x]/2-b[x]/2,g.x=C[0],g.y=C[1],v.x=y[0],v.y=y[1];var E={x:0,y:0};return E[D]=m[D]+S+b[D],E[x]=Math.max(m[x],b[x]),E[T]=Math.min(0,b[T]+C[1-k]),E}return v.x=y[0],v.y=y[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ze);function tP(a,t,e,o){rP(a,t,e,o),e.dispatchAction({type:"legendToggleSelect",name:null!=a?a:t}),nP(a,t,e,o)}function ap(a){for(var e,t=a.getZr().storage.getDisplayList(),o=0,u=t.length;ou[d],D=[-C.x,-C.y];o||(D[f]=m[g]);var x=[0,0],T=[-S.x,-S.y],E=Ft(e.get("pageButtonGap",!0),e.get("itemGap",!0));k&&("end"===e.get("pageButtonPosition",!0)?T[f]+=u[d]-S[d]:x[f]+=S[d]+E),T[1-f]+=C[h]/2-S[h]/2,m.setPosition(D),y.setPosition(x),b.setPosition(T);var V={x:0,y:0};if(V[d]=k?u[d]:C[d],V[h]=Math.max(C[h],S[h]),V[v]=Math.min(0,S[v]+T[1-f]),y.__rectSize=u[d],k){var N={x:0,y:0};N[d]=Math.max(u[d]-S[d]-E,0),N[h]=V[h],y.setClipPath(new fn({shape:N})),y.__rectSize=N[d]}else b.eachChild(function(j){j.attr({invisible:!0,silent:!0})});var H=this._getPageInfo(e);return null!=H.pageIndex&&Ut(m,{x:H.contentPosition[0],y:H.contentPosition[1]},k?e:null),this._updatePageInfoView(e,H),V},t.prototype._pageGo=function(e,o,u){var f=this._getPageInfo(o)[e];null!=f&&u.dispatchAction({type:"legendScroll",scrollDataIndex:f,legendId:o.id})},t.prototype._updatePageInfoView=function(e,o){var u=this._controllerGroup;q(["pagePrev","pageNext"],function(m){var b=null!=o[m+"DataIndex"],C=u.childOfName(m);C&&(C.setStyle("fill",e.get(b?"pageIconColor":"pageIconInactiveColor",!0)),C.cursor=b?"pointer":"default")});var f=u.childOfName("pageText"),d=e.get("pageFormatter"),h=o.pageIndex,v=null!=h?h+1:0,g=o.pageCount;f&&d&&f.setStyle("text",Ne(d)?d.replace("{current}",null==v?"":v+"").replace("{total}",null==g?"":g+""):d({current:v,total:g}))},t.prototype._getPageInfo=function(e){var o=e.get("scrollDataIndex",!0),u=this.getContentGroup(),f=this._containerGroup.__rectSize,d=e.getOrient().index,h=lb[d],v=oP[d],g=this._findTargetItemIndex(o),m=u.children(),y=m[g],b=m.length,C=b?1:0,S={contentPosition:[u.x,u.y],pageCount:C,pageIndex:C-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!y)return S;var k=P(y);S.contentPosition[d]=-k.s;for(var D=g+1,x=k,T=k,E=null;D<=b;++D)(!(E=P(m[D]))&&T.e>x.s+f||E&&!V(E,x.s))&&(x=T.i>x.i?T:E)&&(null==S.pageNextDataIndex&&(S.pageNextDataIndex=x.i),++S.pageCount),T=E;for(D=g-1,x=k,T=k,E=null;D>=-1;--D)(!(E=P(m[D]))||!V(T,E.s))&&x.i=H&&N.s<=H+f}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild(function(d,h){var v=d.__legendDataIndex;null==f&&null!=v&&(f=h),v===e&&(o=h)}),null!=o?o:f):0;var o,f},t.type="legend.scroll",t}(S5),MY=SY;function T5(a){Nt(k5),a.registerComponentModel(xS),a.registerComponentView(MY),function x5(a){a.registerAction("legendScroll","legendscroll",function(t,e){var o=t.scrollDataIndex;null!=o&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(u){u.setScrollDataIndex(o)})})}(a)}var DY=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.type="dataZoom.inside",t.defaultOption=Xc(pg.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(pg),xY=DY,TS=Sn();function A5(a,t,e){TS(a).coordSysRecordMap.each(function(o){var u=o.dataZoomInfoMap.get(t.uid);u&&(u.getRange=e)})}function E5(a,t){if(t){a.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function sa(a,t){a.isDisposed()||a.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function TY(a,t,e,o){return a.coordinateSystem.containPoint([e,o])}var PY=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return de(t,a),t.prototype.render=function(e,o,u){a.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),A5(u,e,{pan:ze(sP.pan,this),zoom:ze(sP.zoom,this),scrollMove:ze(sP.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),a.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){(function Ot(a,t){for(var e=TS(a).coordSysRecordMap,o=e.keys(),u=0;u0?v.pixelStart+v.pixelLength-v.pixel:v.pixel-v.pixelStart)/v.pixelLength*(d[1]-d[0])+d[0],m=Math.max(1/u.scale,0);d[0]=(d[0]-g)*m+g,d[1]=(d[1]-g)*m+g;var y=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Qv(0,d,[0,100],0,y.minSpan,y.maxSpan),this.range=d,f[0]!==d[0]||f[1]!==d[1])return d}},pan:P5(function(a,t,e,o,u,f){var d=lP[o]([f.oldX,f.oldY],[f.newX,f.newY],t,u,e);return d.signal*(a[1]-a[0])*d.pixel/d.pixelLength}),scrollMove:P5(function(a,t,e,o,u,f){return lP[o]([0,0],[f.scrollDelta,f.scrollDelta],t,u,e).signal*(a[1]-a[0])*f.scrollDelta})};function P5(a){return function(t,e,o,u){var f=this.range,d=f.slice(),h=t.axisModels[0];if(h&&(Qv(a(d,h,t,e,o,u),d,[0,100],"all"),this.range=d,f[0]!==d[0]||f[1]!==d[1]))return d}}var lP={grid:function(t,e,o,u,f){var d=o.axis,h={},v=f.model.coordinateSystem.getRect();return t=t||[0,0],"x"===d.dim?(h.pixel=e[0]-t[0],h.pixelLength=v.width,h.pixelStart=v.x,h.signal=d.inverse?1:-1):(h.pixel=e[1]-t[1],h.pixelLength=v.height,h.pixelStart=v.y,h.signal=d.inverse?-1:1),h},polar:function(t,e,o,u,f){var d=o.axis,h={},v=f.model.coordinateSystem,g=v.getRadiusAxis().getExtent(),m=v.getAngleAxis().getExtent();return t=t?v.pointToCoord(t):[0,0],e=v.pointToCoord(e),"radiusAxis"===o.mainType?(h.pixel=e[0]-t[0],h.pixelLength=g[1]-g[0],h.pixelStart=g[0],h.signal=d.inverse?1:-1):(h.pixel=e[1]-t[1],h.pixelLength=m[1]-m[0],h.pixelStart=m[0],h.signal=d.inverse?-1:1),h},singleAxis:function(t,e,o,u,f){var d=o.axis,h=f.model.coordinateSystem.getRect(),v={};return t=t||[0,0],"horizontal"===d.orient?(v.pixel=e[0]-t[0],v.pixelLength=h.width,v.pixelStart=h.x,v.signal=d.inverse?1:-1):(v.pixel=e[1]-t[1],v.pixelLength=h.height,v.pixelStart=h.y,v.signal=d.inverse?-1:1),v}},OY=PY;function O5(a){gV(a),a.registerComponentModel(xY),a.registerComponentView(OY),function EY(a){a.registerProcessor(a.PRIORITY.PROCESSOR.FILTER,function(t,e){var o=TS(e),u=o.coordSysRecordMap||(o.coordSysRecordMap=$e());u.each(function(f){f.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(f){q(iS(f).infoList,function(h){var v=h.model.uid,g=u.get(v)||u.set(v,function Mc(a,t){var e={model:t,containsPoint:wt(TY,t),dispatchAction:wt(sa,a),dataZoomInfoMap:null,controller:null},o=e.controller=new Ih(a.getZr());return q(["pan","zoom","scrollMove"],function(u){o.on(u,function(f){var d=[];e.dataZoomInfoMap.each(function(h){if(f.isAvailableBehavior(h.model.option)){var v=(h.getRange||{})[u],g=v&&v(h.dzReferCoordSysInfo,e.model.mainType,e.controller,f);!h.model.get("disabled",!0)&&g&&d.push({dataZoomId:h.model.id,start:g[0],end:g[1]})}}),d.length&&e.dispatchAction(d)})}),e}(e,h.model));(g.dataZoomInfoMap||(g.dataZoomInfoMap=$e())).set(f.uid,{dzReferCoordSysInfo:h,model:f,getRange:null})})}),u.each(function(f){var h,d=f.controller,v=f.dataZoomInfoMap;if(v){var g=v.keys()[0];null!=g&&(h=v.get(g))}if(h){var m=function AY(a){var t,e="type_",o={type_true:2,type_move:1,type_false:0,type_undefined:-1},u=!0;return a.each(function(f){var d=f.model,h=!d.get("disabled",!0)&&(!d.get("zoomLock",!0)||"move");o[e+h]>o[e+t]&&(t=h),u=u&&d.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!u}}}(v);d.enable(m.controlType,m.opt),d.setPointerChecker(f.containsPoint),sh(f,"dispatchAction",h.model.get("throttle",!0),"fixRate")}else E5(u,f)})})}(a)}var IY=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Xc(pg.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"}}}),t}(pg),RY=IY,ub=fn,cb="horizontal",R5="vertical",L5=["line","bar","candlestick","scatter"],F5={easing:"cubicOut",duration:100,delay:0},fQ=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return de(t,a),t.prototype.init=function(e,o){this.api=o,this._onBrush=ze(this._onBrush,this),this._onBrushEnd=ze(this._onBrushEnd,this)},t.prototype.render=function(e,o,u,f){if(a.prototype.render.apply(this,arguments),sh(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show"))return e.noTarget()?(this._clear(),void this.group.removeAll()):((!f||"dataZoom"!==f.type||f.from!==this.uid)&&this._buildView(),void this._updateView());this.group.removeAll()},t.prototype.dispose=function(){this._clear(),a.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){c_(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var o=this._displayables.sliderGroup=new ct;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(o),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,o=this.api,f=e.get("brushSelect")?7:0,d=this._findCoordRect(),h={width:o.getWidth(),height:o.getHeight()},v=this._orient===cb?{right:h.width-d.x-d.width,top:h.height-30-7-f,width:d.width,height:30}:{right:7,top:d.y,width:30,height:d.height},g=rv(e.option);q(["right","top","width","height"],function(y){"ph"===g[y]&&(g[y]=v[y])});var m=oi(g,h);this._location={x:m.x,y:m.y},this._size=[m.width,m.height],this._orient===R5&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,o=this._location,u=this._orient,f=this.dataZoomModel.getFirstTargetAxisModel(),d=f&&f.get("inverse"),h=this._displayables.sliderGroup,v=(this._dataShadowInfo||{}).otherAxisInverse;h.attr(u!==cb||d?u===cb&&d?{scaleY:v?1:-1,scaleX:-1}:u!==R5||d?{scaleY:v?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:v?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:v?1:-1,scaleX:1});var g=e.getBoundingRect([h]);e.x=o.x-g.x,e.y=o.y-g.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,o=this._size,u=this._displayables.sliderGroup,f=e.get("brushSelect");u.add(new ub({silent:!0,shape:{x:0,y:0,width:o[0],height:o[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var d=new ub({shape:{x:0,y:0,width:o[0],height:o[1]},style:{fill:"transparent"},z2:0,onclick:ze(this._onClickPanel,this)}),h=this.api.getZr();f?(d.on("mousedown",this._onBrushStart,this),d.cursor="crosshair",h.on("mousemove",this._onBrush),h.on("mouseup",this._onBrushEnd)):(h.off("mousemove",this._onBrush),h.off("mouseup",this._onBrushEnd)),u.add(d)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var o=this._size,u=this._shadowSize||[],f=e.series,d=f.getRawData(),h=f.getShadowDim?f.getShadowDim():e.otherDim;if(null!=h){var v=this._shadowPolygonPts,g=this._shadowPolylinePts;if(d!==this._shadowData||h!==this._shadowDim||o[0]!==u[0]||o[1]!==u[1]){var m=d.getDataExtent(h),y=.3*(m[1]-m[0]);m=[m[0]-y,m[1]+y];var E,b=[0,o[1]],S=[[o[0],0],[0,0]],k=[],D=o[0]/(d.count()-1),x=0,T=Math.round(d.count()/o[0]);d.each([h],function(j,Z){if(T>0&&Z%T)x+=D;else{var W=null==j||isNaN(j)||""===j,X=W?0:wn(j,m,b,!0);W&&!E&&Z?(S.push([S[S.length-1][0],0]),k.push([k[k.length-1][0],0])):!W&&E&&(S.push([x,0]),k.push([x,0])),S.push([x,X]),k.push([x,X]),x+=D,E=W}}),v=this._shadowPolygonPts=S,g=this._shadowPolylinePts=k}this._shadowData=d,this._shadowDim=h,this._shadowSize=[o[0],o[1]];for(var Z,W,X,J,P=this.dataZoomModel,N=0;N<3;N++){var H=(Z=void 0,W=void 0,void 0,void 0,Z=P.getModel(1===N?"selectedDataBackground":"dataBackground"),W=new ct,X=new Ia({shape:{points:v},segmentIgnoreThreshold:1,style:Z.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),J=new Ra({shape:{points:g},segmentIgnoreThreshold:1,style:Z.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19}),W.add(X),W.add(J),W);this._displayables.sliderGroup.add(H),this._displayables.dataShadowSegs.push(H)}}}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,o=e.get("showDataShadow");if(!1!==o){var u,f=this.ecModel;return e.eachTargetAxis(function(d,h){q(e.getAxisProxy(d,h).getTargetSeriesModels(),function(g){if(!(u||!0!==o&&Ct(L5,g.get("type"))<0)){var b,m=f.getComponent(yu(d),h).axis,y=function dQ(a){return{x:"y",y:"x",radius:"angle",angle:"radius"}[a]}(d),C=g.coordinateSystem;null!=y&&C.getOtherAxis&&(b=C.getOtherAxis(m).inverse),y=g.getData().mapDimension(y),u={thisAxis:m,series:g,thisDim:d,otherDim:y,otherAxisInverse:b}}},this)},this),u}},t.prototype._renderHandle=function(){var e=this.group,o=this._displayables,u=o.handles=[null,null],f=o.handleLabels=[null,null],d=this._displayables.sliderGroup,h=this._size,v=this.dataZoomModel,g=this.api,m=v.get("borderRadius")||0,y=v.get("brushSelect"),b=o.filler=new ub({silent:y,style:{fill:v.get("fillerColor")},textConfig:{position:"inside"}});d.add(b),d.add(new ub({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:h[0],height:h[1],r:m},style:{stroke:v.get("dataBackgroundColor")||v.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),q([0,1],function(E){var P=v.get("handleIcon");!wC[P]&&P.indexOf("path://")<0&&P.indexOf("image://")<0&&(P="path://"+P);var V=Dr(P,-1,0,2,2,null,!0);V.attr({cursor:NY(this._orient),draggable:!0,drift:ze(this._onDragMove,this,E),ondragend:ze(this._onDragEnd,this),onmouseover:ze(this._showDataInfo,this,!0),onmouseout:ze(this._showDataInfo,this,!1),z2:5});var N=V.getBoundingRect(),H=v.get("handleSize");this._handleHeight=Ie(H,this._size[1]),this._handleWidth=N.width/N.height*this._handleHeight,V.setStyle(v.getModel("handleStyle").getItemStyle()),V.style.strokeNoScale=!0,V.rectHover=!0,V.ensureState("emphasis").style=v.getModel(["emphasis","handleStyle"]).getItemStyle(),Yc(V);var j=v.get("handleColor");null!=j&&(V.style.fill=j),d.add(u[E]=V);var Z=v.getModel("textStyle");e.add(f[E]=new dn({silent:!0,invisible:!0,style:Cr(Z,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:Z.getTextColor(),font:Z.getFont()}),z2:10}))},this);var C=b;if(y){var S=Ie(v.get("moveHandleSize"),h[1]),k=o.moveHandle=new fn({style:v.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:h[1]-.5,height:S}}),D=.8*S,x=o.moveHandleIcon=Dr(v.get("moveHandleIcon"),-D/2,-D/2,D,D,"#fff",!0);x.silent=!0,x.y=h[1]+S/2-.5,k.ensureState("emphasis").style=v.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var T=Math.min(h[1]/2,Math.max(S,10));(C=o.moveZone=new fn({invisible:!0,shape:{y:h[1]-T,height:S+T}})).on("mouseover",function(){g.enterEmphasis(k)}).on("mouseout",function(){g.leaveEmphasis(k)}),d.add(k),d.add(x),d.add(C)}C.attr({draggable:!0,cursor:NY(this._orient),drift:ze(this._onDragMove,this,"all"),ondragstart:ze(this._showDataInfo,this,!0),ondragend:ze(this._onDragEnd,this),onmouseover:ze(this._showDataInfo,this,!0),onmouseout:ze(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),o=this._getViewExtent();this._handleEnds=[wn(e[0],[0,100],o,!0),wn(e[1],[0,100],o,!0)]},t.prototype._updateInterval=function(e,o){var u=this.dataZoomModel,f=this._handleEnds,d=this._getViewExtent(),h=u.findRepresentativeAxisProxy().getMinMaxSpan(),v=[0,100];Qv(o,f,d,u.get("zoomLock")?"all":e,null!=h.minSpan?wn(h.minSpan,v,d,!0):null,null!=h.maxSpan?wn(h.maxSpan,v,d,!0):null);var g=this._range,m=this._range=Zi([wn(f[0],d,v,!0),wn(f[1],d,v,!0)]);return!g||g[0]!==m[0]||g[1]!==m[1]},t.prototype._updateView=function(e){var o=this._displayables,u=this._handleEnds,f=Zi(u.slice()),d=this._size;q([0,1],function(C){var k=this._handleHeight;o.handles[C].attr({scaleX:k/2,scaleY:k/2,x:u[C]+(C?-1:1),y:d[1]/2-k/2})},this),o.filler.setShape({x:f[0],y:0,width:f[1]-f[0],height:d[1]});var h={x:f[0],width:f[1]-f[0]};o.moveHandle&&(o.moveHandle.setShape(h),o.moveZone.setShape(h),o.moveZone.getBoundingRect(),o.moveHandleIcon&&o.moveHandleIcon.attr("x",h.x+h.width/2));for(var v=o.dataShadowSegs,g=[0,f[0],f[1],d[0]],m=0;mo[0]||u[1]<0||u[1]>o[1])){var f=this._handleEnds,h=this._updateInterval("all",u[0]-(f[0]+f[1])/2);this._updateView(),h&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){this._brushStart=new Et(e.offsetX,e.offsetY),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var o=this._displayables.brushRect;if(this._brushing=!1,o){o.attr("ignore",!0);var u=o.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(u.width)<5)){var d=this._getViewExtent(),h=[0,100];this._range=Zi([wn(u.x,d,h,!0),wn(u.x+u.width,d,h,!0)]),this._handleEnds=[u.x,u.x+u.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(It(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,o){var u=this._displayables,d=u.brushRect;d||(d=u.brushRect=new ub({silent:!0,style:this.dataZoomModel.getModel("brushStyle").getItemStyle()}),u.sliderGroup.add(d)),d.attr("ignore",!1);var h=this._brushStart,v=this._displayables.sliderGroup,g=v.transformCoordToLocal(e,o),m=v.transformCoordToLocal(h.x,h.y),y=this._size;g[0]=Math.max(Math.min(y[0],g[0]),0),d.setShape({x:m[0],y:0,width:g[0]-m[0],height:y[1]})},t.prototype._dispatchZoomAction=function(e){var o=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?F5:null,start:o[0],end:o[1]})},t.prototype._findCoordRect=function(){var e,o=iS(this.dataZoomModel).infoList;if(!e&&o.length){var u=o[0].model.coordinateSystem;e=u.getRect&&u.getRect()}if(!e){var f=this.api.getWidth(),d=this.api.getHeight();e={x:.2*f,y:.2*d,width:.6*f,height:.6*d}}return e},t.type="dataZoom.slider",t}(vV);function NY(a){return"vertical"===a?"ns-resize":"ew-resize"}var hQ=fQ;function cP(a){a.registerComponentModel(RY),a.registerComponentView(hQ),gV(a)}var pQ={get:function(t,e,o){var u=ot((vQ[t]||{})[e]);return o&&Ce(u)?u[u.length-1]:u}},vQ={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]}},AS=pQ,N5=pn.mapVisual,uo=pn.eachVisual,B5=Ce,V5=q,H5=Zi,z5=wn,zs=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return de(t,a),t.prototype.init=function(e,o,u){this.mergeDefaultAndTheme(e,u)},t.prototype.optionUpdated=function(e,o){!o&&qV(this.option,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var o=this.stateList;e=ze(e,this),this.controllerVisuals=vS(this.option.controller,o,e),this.targetVisuals=vS(this.option.target,o,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,o=[];return null==e||"all"===e?this.ecModel.eachSeries(function(u,f){o.push(f)}):o=Xn(e),o},t.prototype.eachTargetSeries=function(e,o){q(this.getTargetSeriesIndices(),function(u){var f=this.ecModel.getSeriesByIndex(u);f&&e.call(o,f)},this)},t.prototype.isTargetSeries=function(e){var o=!1;return this.eachTargetSeries(function(u){u===e&&(o=!0)}),o},t.prototype.formatValueText=function(e,o,u){var g,f=this.option,d=f.precision,h=this.dataBound,v=f.formatter;u=u||["<",">"],Ce(e)&&(e=e.slice(),g=!0);var m=o?e:g?[y(e[0]),y(e[1])]:y(e);return Ne(v)?v.replace("{value}",g?m[0]:m).replace("{value2}",g?m[1]:m):et(v)?g?v(e[0],e[1]):v(e):g?e[0]===h[0]?u[0]+" "+m[1]:e[1]===h[1]?u[1]+" "+m[0]:m[0]+" - "+m[1]:m;function y(b){return b===h[0]?"min":b===h[1]?"max":(+b).toFixed(Math.min(d,20))}},t.prototype.resetExtent=function(){var e=this.option,o=H5([e.min,e.max]);this._dataExtent=o},t.prototype.getDataDimensionIndex=function(e){var o=this.option.dimension;if(null!=o)return e.getDimensionIndex(o);for(var u=e.dimensions,f=u.length-1;f>=0;f--){var h=e.getDimensionInfo(u[f]);if(!h.isCalculationCoord)return h.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,o=this.option,u={inRange:o.inRange,outOfRange:o.outOfRange},f=o.target||(o.target={}),d=o.controller||(o.controller={});Dt(f,u),Dt(d,u);var h=this.isCategory();function v(y){B5(o.color)&&!y.inRange&&(y.inRange={color:o.color.slice().reverse()}),y.inRange=y.inRange||{color:e.get("gradientColor")}}v.call(this,f),v.call(this,d),function g(y,b,C){var S=y[b],k=y[C];S&&!k&&(k=y[C]={},V5(S,function(D,x){if(pn.isValidType(x)){var T=AS.get(x,"inactive",h);null!=T&&(k[x]=T,"color"===x&&!k.hasOwnProperty("opacity")&&!k.hasOwnProperty("colorAlpha")&&(k.opacity=[0,0]))}}))}.call(this,f,"inRange","outOfRange"),function m(y){var b=(y.inRange||{}).symbol||(y.outOfRange||{}).symbol,C=(y.inRange||{}).symbolSize||(y.outOfRange||{}).symbolSize,S=this.get("inactiveColor"),D=this.getItemSymbol()||"roundRect";V5(this.stateList,function(x){var T=this.itemSize,E=y[x];E||(E=y[x]={color:h?S:[S]}),null==E.symbol&&(E.symbol=b&&ot(b)||(h?D:[D])),null==E.symbolSize&&(E.symbolSize=C&&ot(C)||(h?T[0]:[T[0],T[0]])),E.symbol=N5(E.symbol,function(N){return"none"===N?D:N});var P=E.symbolSize;if(null!=P){var V=-1/0;uo(P,function(N){N>V&&(V=N)}),E.symbolSize=N5(P,function(N){return z5(N,[0,V],[0,T[0]],!0)})}},this)}.call(this,d)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!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"}},t}(sn),ES=zs,G5=[20,140],fP=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.optionUpdated=function(e,o){a.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(u){u.mappingMethod="linear",u.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){a.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=G5[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=G5[1])},t.prototype._resetRange=function(){var e=this.getExtent(),o=this.option.range;!o||o.auto?(e.auto=1,this.option.range=e):Ce(o)&&(o[0]>o[1]&&o.reverse(),o[0]=Math.max(o[0],e[0]),o[1]=Math.min(o[1],e[1]))},t.prototype.completeVisualOption=function(){a.prototype.completeVisualOption.apply(this,arguments),q(this.stateList,function(e){var o=this.option.controller[e].symbolSize;o&&o[0]!==o[1]&&(o[0]=o[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),o=Zi((this.get("range")||[]).slice());return o[0]>e[1]&&(o[0]=e[1]),o[1]>e[1]&&(o[1]=e[1]),o[0]=u[1]||e<=o[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var o=[];return this.eachTargetSeries(function(u){var f=[],d=u.getData();d.each(this.getDataDimensionIndex(d),function(h,v){e[0]<=h&&h<=e[1]&&f.push(v)},this),o.push({seriesId:u.id,dataIndex:f})},this),o},t.prototype.getVisualMeta=function(e){var o=U5(0,0,this.getExtent()),u=U5(0,0,this.option.range.slice()),f=[];function d(C,S){f.push({value:C,color:e(C,S)})}for(var h=0,v=0,g=u.length,m=o.length;ve[1])break;f.push({color:this.getControllerVisual(v,"color",o),offset:h/100})}return f.push({color:this.getControllerVisual(e[1],"color",o),offset:1}),f},t.prototype._createBarPoints=function(e,o){var u=this.visualMapModel.itemSize;return[[u[0]-o[0],e[0]],[u[0],e[0]],[u[0],e[1]],[u[0]-o[1],e[1]]]},t.prototype._createBarGroup=function(e){var o=this._orient,u=this.visualMapModel.get("inverse");return new ct("horizontal"!==o||u?"horizontal"===o&&u?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==o||u?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,o){if(this._useHandle){var u=this._shapes,f=this.visualMapModel,d=u.handleThumbs,h=u.handleLabels,v=f.itemSize,g=f.getExtent();VY([0,1],function(m){var y=d[m];y.setStyle("fill",o.handlesColor[m]),y.y=e[m];var b=bu(e[m],[0,v[1]],g,!0),C=this.getControllerVisual(b,"symbolSize");y.scaleX=y.scaleY=C/v[0],y.x=v[0]-C/2;var S=Cl(u.handleLabelPoints[m],df(y,this.group));h[m].setStyle({x:S[0],y:S[1],text:f.formatValueText(this._dataInterval[m]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",u.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,o,u,f){var d=this.visualMapModel,h=d.getExtent(),v=d.itemSize,g=[0,v[1]],m=this._shapes,y=m.indicator;if(y){y.attr("invisible",!1);var C=this.getControllerVisual(e,"color",{convertOpacityToAlpha:!0}),S=this.getControllerVisual(e,"symbolSize"),k=bu(e,h,g,!0),D=v[0]-S/2,x={x:y.x,y:y.y};y.y=k,y.x=D;var T=Cl(m.indicatorLabelPoint,df(y,this.group)),E=m.indicatorLabel;E.attr("invisible",!1);var P=this._applyTransform("left",m.mainGroup),N="horizontal"===this._orient;E.setStyle({text:(u||"")+d.formatValueText(o),verticalAlign:N?P:"middle",align:N?"center":P});var H={x:D,y:k,style:{fill:C}},j={style:{x:T[0],y:T[1]}};if(d.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var Z={duration:100,easing:"cubicInOut",additive:!0};y.x=x.x,y.y=x.y,y.animateTo(H,Z),E.animateTo(j,Z)}else y.attr(H),E.attr(j);this._firstShowIndicator=!1;var W=this._shapes.handleLabels;if(W)for(var X=0;Xd[1]&&(y[1]=1/0),o&&(y[0]===-1/0?this._showIndicator(m,y[1],"< ",v):y[1]===1/0?this._showIndicator(m,y[0],"> ",v):this._showIndicator(m,m,"\u2248 ",v));var b=this._hoverLinkDataIndices,C=[];(o||vP(u))&&(C=this._hoverLinkDataIndices=u.findTargetDataIndices(y));var S=function Ez(a,t){var e={},o={};return u(a||[],e),u(t||[],o,e),[f(e),f(o)];function u(d,h,v){for(var g=0,m=d.length;g=0&&(d.dimension=h,u.push(d))}}),t.getData().setVisual("visualMeta",u)}}];function jY(a,t,e,o){for(var u=t.targetVisuals[o],f=pn.prepareVisualTypes(u),d={color:d_(a.getData(),"color")},h=0,v=f.length;h0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"}),a.registerAction(mQ,db),q(UY,function(t){a.registerVisual(a.PRIORITY.VISUAL.COMPONENT,t)}),a.registerPreprocessor(WY))}function Q5(a){a.registerComponentModel(j5),a.registerComponentView(gQ),$5(a)}var YY=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return de(t,a),t.prototype.optionUpdated=function(e,o){a.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var u=this._mode=this._determineMode();this._pieceList=[],qY[this._mode].call(this,this._pieceList),this._resetSelected(e,o);var f=this.option.categories;this.resetVisual(function(d,h){"categories"===u?(d.mappingMethod="category",d.categories=ot(f)):(d.dataExtent=this.getExtent(),d.mappingMethod="piecewise",d.pieceList=Me(this._pieceList,function(v){return v=ot(v),"inRange"!==h&&(v.visual=null),v}))})},t.prototype.completeVisualOption=function(){var e=this.option,o={},u=pn.listVisualTypes(),f=this.isCategory();function d(h,v,g){return h&&h[v]&&h[v].hasOwnProperty(g)}q(e.pieces,function(h){q(u,function(v){h.hasOwnProperty(v)&&(o[v]=1)})}),q(o,function(h,v){var g=!1;q(this.stateList,function(m){g=g||d(e,m,v)||d(e.target,m,v)},this),!g&&q(this.stateList,function(m){(e[m]||(e[m]={}))[v]=AS.get(v,"inRange"===m?"active":"inactive",f)})},this),a.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,o){var u=this.option,f=this._pieceList,d=(o?u:e).selected||{};if(u.selected=d,q(f,function(v,g){var m=this.getSelectedMapKey(v);d.hasOwnProperty(m)||(d[m]=!0)},this),"single"===u.selectedMode){var h=!1;q(f,function(v,g){var m=this.getSelectedMapKey(v);d[m]&&(h?d[m]=!1:h=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=ot(e)},t.prototype.getValueState=function(e){var o=pn.findPieceIndex(e,this._pieceList);return null!=o&&this.option.selected[this.getSelectedMapKey(this._pieceList[o])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var o=[],u=this._pieceList;return this.eachTargetSeries(function(f){var d=[],h=f.getData();h.each(this.getDataDimensionIndex(h),function(v,g){pn.findPieceIndex(v,u)===e&&d.push(g)},this),o.push({seriesId:f.id,dataIndex:d})},this),o},t.prototype.getRepresentValue=function(e){var o;if(this.isCategory())o=e.value;else if(null!=e.value)o=e.value;else{var u=e.interval||[];o=u[0]===-1/0&&u[1]===1/0?0:(u[0]+u[1])/2}return o},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var o=[],u=["",""],f=this,h=this._pieceList.slice();if(h.length){var v=h[0].interval[0];v!==-1/0&&h.unshift({interval:[-1/0,v]}),(v=h[h.length-1].interval[1])!==1/0&&h.push({interval:[v,1/0]})}else h.push({interval:[-1/0,1/0]});var g=-1/0;return q(h,function(m){var y=m.interval;y&&(y[0]>g&&d([g,y[0]],"outOfRange"),d(y.slice()),g=y[1])},this),{stops:o,outerColors:u}}function d(m,y){var b=f.getRepresentValue({interval:m});y||(y=f.getValueState(b));var C=e(b,y);m[0]===-1/0?u[0]=C:m[1]===1/0?u[1]=C:o.push({value:m[0],color:C},{value:m[1],color:C})}},t.type="visualMap.piecewise",t.defaultOption=Xc(ES.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}),t}(ES),qY={splitNumber:function(t){var e=this.option,o=Math.min(e.precision,20),u=this.getExtent(),f=e.splitNumber;f=Math.max(parseInt(f,10),1),e.splitNumber=f;for(var d=(u[1]-u[0])/f;+d.toFixed(o)!==d&&o<5;)o++;e.precision=o,d=+d.toFixed(o),e.minOpen&&t.push({interval:[-1/0,u[0]],close:[0,0]});for(var h=0,v=u[0];h","\u2265"][u[0]]])},this)}};function J5(a,t){var e=a.inverse;("vertical"===a.orient?!e:e)&&t.reverse()}var ZY=YY,XY=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.doRender=function(){var e=this.group;e.removeAll();var o=this.visualMapModel,u=o.get("textGap"),f=o.textStyleModel,d=f.getFont(),h=f.getTextColor(),v=this._getItemAlign(),g=o.itemSize,m=this._getViewData(),y=m.endsText,b=Ui(o.get("showLabel",!0),!y);y&&this._renderEndsText(e,y[0],g,b,v),q(m.viewPieceList,function(C){var S=C.piece,k=new ct;k.onclick=ze(this._onItemClick,this,S),this._enableHoverLink(k,C.indexInModelPieceList);var D=o.getRepresentValue(S);if(this._createItemSymbol(k,D,[0,0,g[0],g[1]]),b){var x=this.visualMapModel.getValueState(D);k.add(new dn({style:{x:"right"===v?-u:g[0]+u,y:g[1]/2,text:S.text,verticalAlign:"middle",align:v,font:d,fill:h,opacity:"outOfRange"===x?.5:1}}))}e.add(k)},this),y&&this._renderEndsText(e,y[1],g,b,v),Hu(o.get("orient"),e,o.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,o){var u=this;e.on("mouseover",function(){return f("highlight")}).on("mouseout",function(){return f("downplay")});var f=function(h){var v=u.visualMapModel;v.option.hoverLink&&u.api.dispatchAction({type:h,batch:fb(v.findTargetDataIndices(o),v)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,o=e.option;if("vertical"===o.orient)return dP(e,this.api,e.itemSize);var u=o.align;return(!u||"auto"===u)&&(u="left"),u},t.prototype._renderEndsText=function(e,o,u,f,d){if(o){var h=new ct;h.add(new dn({style:Cr(this.visualMapModel.textStyleModel,{x:f?"right"===d?u[0]:0:u[0]/2,y:u[1]/2,verticalAlign:"middle",align:f?d:"center",text:o})})),e.add(h)}},t.prototype._getViewData=function(){var e=this.visualMapModel,o=Me(e.getPieceList(),function(h,v){return{piece:h,indexInModelPieceList:v}}),u=e.get("text"),f=e.get("orient"),d=e.get("inverse");return("horizontal"===f?d:!d)?o.reverse():u&&(u=u.slice().reverse()),{viewPieceList:o,endsText:u}},t.prototype._createItemSymbol=function(e,o,u){e.add(Dr(this.getControllerVisual(o,"symbol"),u[0],u[1],u[2],u[3],this.getControllerVisual(o,"color")))},t.prototype._onItemClick=function(e){var o=this.visualMapModel,u=o.option,f=ot(u.selected),d=o.getSelectedMapKey(e);"single"===u.selectedMode?(f[d]=!0,q(f,function(h,v){f[v]=v===d})):f[d]=!f[d],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:f})},t.type="visualMap.piecewise",t}(W5),KY=XY;function eH(a){a.registerComponentModel(ZY),a.registerComponentView(KY),$5(a)}var _Q={label:{enabled:!0},decal:{show:!1}},tH=Sn(),yQ={};function QY(a,t){var e=a.getModel("aria");if(e.get("enabled")){var o=ot(_Q);Dt(o.label,a.getLocaleModel().get("aria"),!1),Dt(e.option,o,!1),function u(){if(e.getModel("decal").get("show")){var y=$e();a.eachSeries(function(b){if(!b.isColorBySeries()){var C=y.get(b.type);C||y.set(b.type,C={}),tH(b).scope=C}}),a.eachRawSeries(function(b){if(!a.isSeriesFiltered(b))if(et(b.enableAriaDecal))b.enableAriaDecal();else{var C=b.getData();if(b.isColorBySeries()){var T=Hk(b.ecModel,b.name,yQ,a.getSeriesCount()),E=C.getVisual("decal");C.setVisual("decal",P(E,T))}else{var S=b.getRawData(),k={},D=tH(b).scope;C.each(function(V){var N=C.getRawIndex(V);k[N]=V});var x=S.count();S.each(function(V){var N=k[V],H=S.getName(V)||V+"",j=Hk(b.ecModel,H,D,x),Z=C.getItemVisual(N,"decal");C.setItemVisual(N,"decal",P(Z,j))})}}function P(V,N){var H=V?ve(ve({},N),V):N;return H.dirty=!0,H}})}}(),function f(){var g=a.getLocaleModel().get("aria"),m=e.getModel("label");if(m.option=rt(m.option,g),m.get("enabled")){var y=t.getZr().dom;if(m.get("description"))return void y.setAttribute("aria-label",m.get("description"));var D,b=a.getSeriesCount(),C=m.get(["data","maxCount"])||10,S=m.get(["series","maxCount"])||10,k=Math.min(b,S);if(!(b<1)){var x=function h(){var g=a.get("title");return g&&g.length&&(g=g[0]),g&&g.text}();if(x)D=d(m.get(["general","withTitle"]),{title:x});else D=m.get(["general","withoutTitle"]);var E=[];D+=d(m.get(b>1?["series","multiple","prefix"]:["series","single","prefix"]),{seriesCount:b}),a.eachSeries(function(j,Z){if(Z1?["series","multiple",J]:["series","single",J]),{seriesId:j.seriesIndex,seriesName:j.get("name"),seriesType:v(j.subType)});var ee=j.getData();ee.count()>C?W+=d(m.get(["data","partialData"]),{displayCnt:C}):W+=m.get(["data","allData"]);for(var ie=m.get(["data","separator","middle"]),ce=m.get(["data","separator","end"]),me=[],pe=0;pe":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},CQ=function(){function a(t){null==(this._condVal=Ne(t)?new RegExp(t):KH(t)?t:null)&&Pn("")}return a.prototype.evaluate=function(t){var e=typeof t;return Ne(e)?this._condVal.test(t):!!Cn(e)&&this._condVal.test(t+"")},a}(),wQ=function(){function a(){}return a.prototype.evaluate=function(){return this.value},a}(),eq=function(){function a(){}return a.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&o.push(u),u=[ee,re]}function m(ee,re,ie,ce){Sg(ee,ie)&&Sg(re,ce)||u.push(ee,re,ie,ce,ie,ce)}for(var b,C,S,k,D=0;Dj:X2&&o.push(u),o}function yP(a,t,e,o,u,f,d,h,v,g){if(Sg(a,e)&&Sg(t,o)&&Sg(u,d)&&Sg(f,h))v.push(d,h);else{var m=2/g,y=m*m,b=d-a,C=h-t,S=Math.sqrt(b*b+C*C);b/=S,C/=S;var k=e-a,D=o-t,x=u-d,T=f-h,E=k*k+D*D,P=x*x+T*T;if(E=0&&P-N*N=0)v.push(d,h);else{var Z=[],W=[];Fr(a,e,u,d,.5,Z),Fr(t,o,f,h,.5,W),yP(Z[0],W[0],Z[1],W[1],Z[2],W[2],Z[3],W[3],v,g),yP(Z[4],W[4],Z[5],W[5],Z[6],W[6],Z[7],W[7],v,g)}}}}function iH(a,t,e){var f=Math.abs(a[t]/a[1-t]),d=Math.ceil(Math.sqrt(f*e)),h=Math.floor(e/d);0===h&&(h=1,d=e);for(var v=[],g=0;g0)for(g=0;gMath.abs(g),y=iH([v,g],m?0:1,t),b=(m?h:g)/y.length,C=0;C1?null:new Et(k*v+a,k*g+t)}function kQ(a,t,e){var o=new Et;Et.sub(o,e,t),o.normalize();var u=new Et;return Et.sub(u,a,t),u.dot(o)}function op(a,t){var e=a[a.length-1];e&&e[0]===t[0]&&e[1]===t[1]||a.push(t)}function sp(a){var t=a.points,e=[],o=[];mm(t,e,o);var u=new zt(e[0],e[1],o[0]-e[0],o[1]-e[1]),f=u.width,d=u.height,h=u.x,v=u.y,g=new Et,m=new Et;return f>d?(g.x=m.x=h+f/2,g.y=v,m.y=v+d):(g.y=m.y=v+d/2,g.x=h,m.x=h+f),function vb(a,t,e){for(var o=a.length,u=[],f=0;f0)for(var V=o/e,N=-o/2;N<=o/2;N+=V){var H=Math.sin(N),j=Math.cos(N),Z=0;for(E=0;E0;g/=2){var m=0,y=0;(a&g)>0&&(m=1),(t&g)>0&&(y=1),h+=g*g*(3*m^y),0===y&&(1===m&&(a=g-1-a,t=g-1-t),v=a,a=t,t=v)}return h}function wP(a){var t=1/0,e=1/0,o=-1/0,u=-1/0,f=Me(a,function(h){var v=h.getBoundingRect(),g=h.getComputedTransform(),m=v.x+v.width/2+(g?g[4]:0),y=v.y+v.height/2+(g?g[5]:0);return t=Math.min(m,t),e=Math.min(y,e),o=Math.max(m,o),u=Math.max(y,u),[m,y]});return Me(f,function(h,v){return{cp:h,z:gq(h[0],h[1],t,e,o,u),path:a[v]}}).sort(function(h,v){return h.z-v.z}).map(function(h){return h.path})}function SP(a){return function lH(a,t){var u,e=[],o=a.shape;switch(a.type){case"rect":(function oH(a,t,e){for(var o=a.width,u=a.height,f=o>u,d=iH([o,u],f?0:1,t),h=f?"width":"height",v=f?"height":"width",g=f?"x":"y",m=f?"y":"x",y=a[h]/d.length,b=0;b=0;u--)if(!e[u].many.length){var v=e[h].many;if(v.length<=1){if(!h)return e;h=0}f=v.length;var g=Math.ceil(f/2);e[u].many=v.slice(g,f),e[h].many=v.slice(0,g),h++}return e}var kP={clone:function(t){for(var e=[],o=1-Math.pow(1-t.path.style.opacity,1/t.count),u=0;u0){var g,m,h=o.getModel("universalTransition").get("delay"),v=Object.assign({setToFinal:!0},d);dH(a)&&(g=a,m=t),dH(t)&&(g=t,m=a);for(var b=g?g===a:a.length>t.length,C=g?hH(m,g):hH(b?t:a,[b?a:t]),S=0,k=0;k1e4))for(var u=o.getIndices(),f=function yq(a){for(var t=a.dimensions,e=0;e0&&P.group.traverse(function(N){N instanceof Xt&&!N.animators.length&&N.animateFrom({style:{opacity:0}},V)})})}function gH(a){return a.getModel("universalTransition").get("seriesKey")||a.id}function mH(a){return Ce(a)?a.sort().join(","):a}function up(a){if(a.hostModel)return a.hostModel.getModel("universalTransition").get("divideShape")}function _H(a,t){for(var e=0;e=0&&u.push({data:t.oldData[h],divide:up(t.oldData[h]),dim:d.dimension})}),q(Xn(a.to),function(d){var h=_H(e.updatedSeries,d);if(h>=0){var v=e.updatedSeries[h].getData();f.push({data:v,divide:up(v),dim:d.dimension})}}),u.length>0&&f.length>0&&vH(u,f,o)}(b,u,o,e)});else{var d=function Cq(a,t){var e=$e(),o=$e(),u=$e();return q(a.oldSeries,function(d,h){var v=a.oldData[h],g=gH(d),m=mH(g);o.set(m,v),Ce(g)&&q(g,function(y){u.set(y,{data:v,key:m})})}),q(t.updatedSeries,function(d){if(d.isUniversalTransitionEnabled()&&d.isAnimationEnabled()){var h=d.getData(),v=gH(d),g=mH(v),m=o.get(g);if(m)e.set(g,{oldSeries:[{divide:up(m),data:m}],newSeries:[{divide:up(h),data:h}]});else if(Ce(v)){var y=[];q(v,function(S){var k=o.get(S);k&&y.push({divide:up(k),data:k})}),y.length&&e.set(g,{oldSeries:y,newSeries:[{data:h,divide:up(h)}]})}else{var b=u.get(v);if(b){var C=e.get(b.key);C||(C={oldSeries:[{data:b.data,divide:up(b.data)}],newSeries:[]},e.set(b.key,C)),C.newSeries.push({data:h,divide:up(h)})}}}}),e}(u,o);q(d.keys(),function(b){var C=d.get(b);vH(C.oldSeries,C.newSeries,e)})}q(o.updatedSeries,function(b){b[qm]&&(b[qm]=!1)})}for(var h=t.getSeries(),v=u.oldSeries=[],g=u.oldData=[],m=0;m=200&&_t.status<=299}function Ye(R){try{R.dispatchEvent(new MouseEvent("click"))}catch(se){var _t=document.createEvent("MouseEvents");_t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),R.dispatchEvent(_t)}}var Po=$r.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),L=$r.saveAs||("object"!=typeof window||window!==$r?function(){}:"download"in HTMLAnchorElement.prototype&&!Po?function(_t,se,Er){var Qn=$r.URL||$r.webkitURL,an=document.createElement("a");an.download=se=se||_t.name||"download",an.rel="noopener","string"==typeof _t?(an.href=_t,an.origin!==location.origin?ca(an.href)?qe(_t,se,Er):Ye(an,an.target="_blank"):Ye(an)):(an.href=Qn.createObjectURL(_t),setTimeout(function(){Qn.revokeObjectURL(an.href)},4e4),setTimeout(function(){Ye(an)},0))}:"msSaveOrOpenBlob"in navigator?function(_t,se,Er){if(se=se||_t.name||"download","string"==typeof _t)if(ca(_t))qe(_t,se,Er);else{var Qn=document.createElement("a");Qn.href=_t,Qn.target="_blank",setTimeout(function(){Ye(Qn)})}else navigator.msSaveOrOpenBlob(function Ht(R,_t){return void 0===_t?_t={autoBom:!1}:"object"!=typeof _t&&(console.warn("Deprecated: Expected third argument to be a object"),_t={autoBom:!_t}),_t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(R.type)?new Blob([String.fromCharCode(65279),R],{type:R.type}):R}(_t,Er),se)}:function(_t,se,Er,Qn){if((Qn=Qn||open("","_blank"))&&(Qn.document.title=Qn.document.body.innerText="downloading..."),"string"==typeof _t)return qe(_t,se,Er);var an="application/octet-stream"===_t.type,wu=/constructor/i.test($r.HTMLElement)||$r.safari,ue=/CriOS\/[\d]+/.test(navigator.userAgent);if((ue||an&&wu||Po)&&"undefined"!=typeof FileReader){var de=new FileReader;de.onloadend=function(){var as=de.result;as=ue?as:as.replace(/^data:[^;]*;/,"data:attachment/file;"),Qn?Qn.location.href=as:location=as,Qn=null},de.readAsDataURL(_t)}else{var Ci=$r.URL||$r.webkitURL,qt=Ci.createObjectURL(_t);Qn?Qn.location=qt:location.href=qt,Qn=null,setTimeout(function(){Ci.revokeObjectURL(qt)},4e4)}});$r.saveAs=L.saveAs=L,Ul.exports=L},7854:function(Ul){var $r=function(Ht){"use strict";var Ye,qe=Object.prototype,ca=qe.hasOwnProperty,Po="function"==typeof Symbol?Symbol:{},L=Po.iterator||"@@iterator",R=Po.asyncIterator||"@@asyncIterator",_t=Po.toStringTag||"@@toStringTag";function se(it,Fe,Te){return Object.defineProperty(it,Fe,{value:Te,enumerable:!0,configurable:!0,writable:!0}),it[Fe]}try{se({},"")}catch(it){se=function(Te,At,kn){return Te[At]=kn}}function Er(it,Fe,Te,At){var bn=Object.create((Fe&&Fe.prototype instanceof qt?Fe:qt).prototype),Or=new Qr(At||[]);return bn._invoke=function YS(it,Fe,Te){var At=an;return function(bn,Or){if(At===ue)throw new Error("Generator is already running");if(At===de){if("throw"===bn)throw Or;return Eg()}for(Te.method=bn,Te.arg=Or;;){var Ii=Te.delegate;if(Ii){var ba=yt(Ii,Te);if(ba){if(ba===Ci)continue;return ba}}if("next"===Te.method)Te.sent=Te._sent=Te.arg;else if("throw"===Te.method){if(At===an)throw At=de,Te.arg;Te.dispatchException(Te.arg)}else"return"===Te.method&&Te.abrupt("return",Te.arg);At=ue;var Gr=Qn(it,Fe,Te);if("normal"===Gr.type){if(At=Te.done?de:wu,Gr.arg===Ci)continue;return{value:Gr.arg,done:Te.done}}"throw"===Gr.type&&(At=de,Te.method="throw",Te.arg=Gr.arg)}}}(it,Te,Or),bn}function Qn(it,Fe,Te){try{return{type:"normal",arg:it.call(Fe,Te)}}catch(At){return{type:"throw",arg:At}}}Ht.wrap=Er;var an="suspendedStart",wu="suspendedYield",ue="executing",de="completed",Ci={};function qt(){}function as(){}function xc(){}var Ag={};se(Ag,L,function(){return this});var Pr=Object.getPrototypeOf,ed=Pr&&Pr(Pr(Hn([])));ed&&ed!==qe&&ca.call(ed,L)&&(Ag=ed);var jl=xc.prototype=qt.prototype=Object.create(Ag);function WS(it){["next","throw","return"].forEach(function(Fe){se(it,Fe,function(Te){return this._invoke(Fe,Te)})})}function td(it,Fe){function Te(bn,Or,Ii,ba){var Gr=Qn(it[bn],it,Or);if("throw"!==Gr.type){var Tc=Gr.arg,tn=Tc.value;return tn&&"object"==typeof tn&&ca.call(tn,"__await")?Fe.resolve(tn.__await).then(function(js){Te("next",js,Ii,ba)},function(js){Te("throw",js,Ii,ba)}):Fe.resolve(tn).then(function(js){Tc.value=js,Ii(Tc)},function(js){return Te("throw",js,Ii,ba)})}ba(Gr.arg)}var At;this._invoke=function kn(bn,Or){function Ii(){return new Fe(function(ba,Gr){Te(bn,Or,ba,Gr)})}return At=At?At.then(Ii,Ii):Ii()}}function yt(it,Fe){var Te=it.iterator[Fe.method];if(Te===Ye){if(Fe.delegate=null,"throw"===Fe.method){if(it.iterator.return&&(Fe.method="return",Fe.arg=Ye,yt(it,Fe),"throw"===Fe.method))return Ci;Fe.method="throw",Fe.arg=new TypeError("The iterator does not provide a 'throw' method")}return Ci}var At=Qn(Te,it.iterator,Fe.arg);if("throw"===At.type)return Fe.method="throw",Fe.arg=At.arg,Fe.delegate=null,Ci;var kn=At.arg;return kn?kn.done?(Fe[it.resultName]=kn.value,Fe.next=it.nextLoc,"return"!==Fe.method&&(Fe.method="next",Fe.arg=Ye),Fe.delegate=null,Ci):kn:(Fe.method="throw",Fe.arg=new TypeError("iterator result is not an object"),Fe.delegate=null,Ci)}function os(it){var Fe={tryLoc:it[0]};1 in it&&(Fe.catchLoc=it[1]),2 in it&&(Fe.finallyLoc=it[2],Fe.afterLoc=it[3]),this.tryEntries.push(Fe)}function yb(it){var Fe=it.completion||{};Fe.type="normal",delete Fe.arg,it.completion=Fe}function Qr(it){this.tryEntries=[{tryLoc:"root"}],it.forEach(os,this),this.reset(!0)}function Hn(it){if(it){var Fe=it[L];if(Fe)return Fe.call(it);if("function"==typeof it.next)return it;if(!isNaN(it.length)){var Te=-1,At=function kn(){for(;++Te=0;--kn){var bn=this.tryEntries[kn],Or=bn.completion;if("root"===bn.tryLoc)return At("end");if(bn.tryLoc<=this.prev){var Ii=ca.call(bn,"catchLoc"),ba=ca.call(bn,"finallyLoc");if(Ii&&ba){if(this.prev=0;--At){var kn=this.tryEntries[At];if(kn.tryLoc<=this.prev&&ca.call(kn,"finallyLoc")&&this.prev=0;--Te){var At=this.tryEntries[Te];if(At.finallyLoc===Fe)return this.complete(At.completion,At.afterLoc),yb(At),Ci}},catch:function(Fe){for(var Te=this.tryEntries.length-1;Te>=0;--Te){var At=this.tryEntries[Te];if(At.tryLoc===Fe){var kn=At.completion;if("throw"===kn.type){var bn=kn.arg;yb(At)}return bn}}throw new Error("illegal catch attempt")},delegateYield:function(Fe,Te,At){return this.delegate={iterator:Hn(Fe),resultName:Te,nextLoc:At},"next"===this.method&&(this.arg=Ye),Ci}},Ht}(Ul.exports);try{regeneratorRuntime=$r}catch(Ht){"object"==typeof globalThis?globalThis.regeneratorRuntime=$r:Function("r","regeneratorRuntime = r")($r)}}},function(Ul){Ul(Ul.s=133)}]); \ No newline at end of file +(self.webpackChunkuds=self.webpackChunkuds||[]).push([[179],{9473:function(Ul,$r,Ht){Ul.exports=Ht(7854)},133:function(Ul,$r,Ht){"use strict";function qe(i){return(qe=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)})(i)}function ca(i,s){for(;!Object.prototype.hasOwnProperty.call(i,s)&&null!==(i=qe(i)););return i}function Ye(){return Ye="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(s,r,n){var l=ca(s,r);if(l){var c=Object.getOwnPropertyDescriptor(l,r);return c.get?c.get.call(arguments.length<3?s:n):c.value}},Ye.apply(this,arguments)}function Po(i,s){for(var r=0;ri.length)&&(s=i.length);for(var r=0,n=new Array(s);r=i.length?{done:!0}:{done:!1,value:i[n++]}},e:function(M){throw M},f:l}}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 _,c=!0,p=!1;return{s:function(){r=r.call(i)},n:function(){var M=r.next();return c=M.done,M},e:function(M){p=!0,_=M},f:function(){try{!c&&null!=r.return&&r.return()}finally{if(p)throw _}}}}function Pr(i,s){return function as(i){if(Array.isArray(i))return i}(i)||function xc(i,s){var r=null==i?null:"undefined"!=typeof Symbol&&i[Symbol.iterator]||i["@@iterator"];if(null!=r){var p,_,n=[],l=!0,c=!1;try{for(r=r.call(i);!(l=(p=r.next()).done)&&(n.push(p.value),!s||n.length!==s);l=!0);}catch(w){c=!0,_=w}finally{try{!l&&null!=r.return&&r.return()}finally{if(c)throw _}}return n}}(i,s)||Ci(i,s)||function Ag(){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 ed(i,s,r){return s in i?Object.defineProperty(i,s,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[s]=r,i}function yt(i){return function td(i){if(Array.isArray(i))return de(i)}(i)||function jl(i){if("undefined"!=typeof Symbol&&null!=i[Symbol.iterator]||null!=i["@@iterator"])return Array.from(i)}(i)||Ci(i)||function YS(){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 os(i,s,r){return(os=Er()?Reflect.construct:function(l,c,p){var _=[null];_.push.apply(_,c);var M=new(Function.bind.apply(l,_));return p&&_t(M,p.prototype),M}).apply(null,arguments)}function Qr(i){var s="function"==typeof Map?new Map:void 0;return Qr=function(n){if(null===n||!function yb(i){return-1!==Function.toString.call(i).indexOf("[native code]")}(n))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(void 0!==s){if(s.has(n))return s.get(n);s.set(n,l)}function l(){return os(n,arguments,qe(this).constructor)}return l.prototype=Object.create(n.prototype,{constructor:{value:l,enumerable:!1,writable:!0,configurable:!0}}),_t(l,n)},Qr(i)}function Hn(i){return"function"==typeof i}function Eg(i){var r=i(function(l){Error.call(l),l.stack=(new Error).stack});return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var it=Eg(function(i){return function(r){i(this),this.message=r?"".concat(r.length," errors occurred during unsubscription:\n").concat(r.map(function(n,l){return"".concat(l+1,") ").concat(n.toString())}).join("\n ")):"",this.name="UnsubscriptionError",this.errors=r}});function Fe(i,s){if(i){var r=i.indexOf(s);0<=r&&i.splice(r,1)}}var i,Te=function(){function i(s){R(this,i),this.initialTeardown=s,this.closed=!1,this._parentage=null,this._finalizers=null}return L(i,[{key:"unsubscribe",value:function(){var r;if(!this.closed){this.closed=!0;var n=this._parentage;if(n)if(this._parentage=null,Array.isArray(n)){var c,l=qt(n);try{for(l.s();!(c=l.n()).done;)c.value.remove(this)}catch(F){l.e(F)}finally{l.f()}}else n.remove(this);var _=this.initialTeardown;if(Hn(_))try{_()}catch(F){r=F instanceof it?F.errors:[F]}var w=this._finalizers;if(w){this._finalizers=null;var A,M=qt(w);try{for(M.s();!(A=M.n()).done;){var O=A.value;try{bn(O)}catch(F){r=null!=r?r:[],F instanceof it?r=[].concat(yt(r),yt(F.errors)):r.push(F)}}}catch(F){M.e(F)}finally{M.f()}}if(r)throw new it(r)}}},{key:"add",value:function(r){var n;if(r&&r!==this)if(this.closed)bn(r);else{if(r instanceof i){if(r.closed||r._hasParent(this))return;r._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(r)}}},{key:"_hasParent",value:function(r){var n=this._parentage;return n===r||Array.isArray(n)&&n.includes(r)}},{key:"_addParent",value:function(r){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(r),n):n?[n,r]:r}},{key:"_removeParent",value:function(r){var n=this._parentage;n===r?this._parentage=null:Array.isArray(n)&&Fe(n,r)}},{key:"remove",value:function(r){var n=this._finalizers;n&&Fe(n,r),r instanceof i&&r._removeParent(this)}}]),i}();Te.EMPTY=((i=new Te).closed=!0,i);var At=Te.EMPTY;function kn(i){return i instanceof Te||i&&"closed"in i&&Hn(i.remove)&&Hn(i.add)&&Hn(i.unsubscribe)}function bn(i){Hn(i)?i():i.unsubscribe()}var Ii={setTimeout:function(i){function s(r,n){return i.apply(this,arguments)}return s.toString=function(){return i.toString()},s}(function(i,s){for(var r=Ii.delegate,n=arguments.length,l=new Array(n>2?n-2:0),c=2;c0}},{key:"_trySubscribe",value:function(c){return this._throwIfClosed(),Ye(qe(n.prototype),"_trySubscribe",this).call(this,c)}},{key:"_subscribe",value:function(c){return this._throwIfClosed(),this._checkFinalizedStatuses(c),this._innerSubscribe(c)}},{key:"_innerSubscribe",value:function(c){var p=this,M=this.observers;return this.hasError||this.isStopped?At:(this.currentObservers=null,M.push(c),new Te(function(){p.currentObservers=null,Fe(M,c)}))}},{key:"_checkFinalizedStatuses",value:function(c){var w=this.isStopped;this.hasError?c.error(this.thrownError):w&&c.complete()}},{key:"asObservable",value:function(){var c=new Jn;return c.source=this,c}}]),n}(Jn);return i.create=function(s,r){return new ot(s,r)},i}(),ot=function(i){se(r,i);var s=ue(r);function r(n,l){var c;return R(this,r),(c=s.call(this)).destination=n,c.source=l,c}return L(r,[{key:"next",value:function(l){var c,p;null===(p=null===(c=this.destination)||void 0===c?void 0:c.next)||void 0===p||p.call(c,l)}},{key:"error",value:function(l){var c,p;null===(p=null===(c=this.destination)||void 0===c?void 0:c.error)||void 0===p||p.call(c,l)}},{key:"complete",value:function(){var l,c;null===(c=null===(l=this.destination)||void 0===l?void 0:l.complete)||void 0===c||c.call(l)}},{key:"_subscribe",value:function(l){var c,p;return null!==(p=null===(c=this.source)||void 0===c?void 0:c.subscribe(l))&&void 0!==p?p:At}}]),r}(Xe);function Dt(i){return Hn(null==i?void 0:i.lift)}function gr(i){return function(s){if(Dt(s))return s.lift(function(r){try{return i(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function ve(i,s,r,n,l){return new rt(i,s,r,n,l)}var rt=function(i){se(r,i);var s=ue(r);function r(n,l,c,p,_,w){var M,A,O,F;return R(this,r),(F=s.call(this,n)).onFinalize=_,F.shouldUnsubscribe=w,F._next=l?function(Y){try{l(Y)}catch($){n.error($)}}:Ye((M=an(F),qe(r.prototype)),"_next",M),F._error=p?function(Y){try{p(Y)}catch($){n.error($)}finally{this.unsubscribe()}}:Ye((A=an(F),qe(r.prototype)),"_error",A),F._complete=c?function(){try{c()}catch(Y){n.error(Y)}finally{this.unsubscribe()}}:Ye((O=an(F),qe(r.prototype)),"_complete",O),F}return L(r,[{key:"unsubscribe",value:function(){var l;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var c=this.closed;Ye(qe(r.prototype),"unsubscribe",this).call(this),!c&&(null===(l=this.onFinalize)||void 0===l||l.call(this))}}}]),r}(qS);function on(i,s){return gr(function(r,n){var l=0;r.subscribe(ve(n,function(c){n.next(i.call(s,c,l++))}))})}var Ct=Ht(9473),pp=Ht.n(Ct);function Zt(i,s,r,n){return new(r||(r=Promise))(function(c,p){function _(A){try{M(n.next(A))}catch(O){p(O)}}function w(A){try{M(n.throw(A))}catch(O){p(O)}}function M(A){A.done?c(A.value):function l(c){return c instanceof r?c:new r(function(p){p(c)})}(A.value).then(_,w)}M((n=n.apply(i,s||[])).next())})}function Ke(i){return this instanceof Ke?(this.v=i,this):new Ke(i)}function JS(i,s,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var l,n=r.apply(i,s||[]),c=[];return l={},p("next"),p("throw"),p("return"),l[Symbol.asyncIterator]=function(){return this},l;function p(F){n[F]&&(l[F]=function(Y){return new Promise(function($,oe){c.push([F,Y,$,oe])>1||_(F,Y)})})}function _(F,Y){try{!function w(F){F.value instanceof Ke?Promise.resolve(F.value.v).then(M,A):O(c[0][2],F)}(n[F](Y))}catch($){O(c[0][3],$)}}function M(F){_("next",F)}function A(F){_("throw",F)}function O(F,Y){F(Y),c.shift(),c.length&&_(c[0][0],c[0][1])}}function vp(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,s=i[Symbol.asyncIterator];return s?s.call(i):(i=function Ce(i){var s="function"==typeof Symbol&&Symbol.iterator,r=s&&i[s],n=0;if(r)return r.call(i);if(i&&"number"==typeof i.length)return{next:function(){return i&&n>=i.length&&(i=void 0),{value:i&&i[n++],done:!i}}};throw new TypeError(s?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(c){r[c]=i[c]&&function(p){return new Promise(function(_,w){!function l(c,p,_,w){Promise.resolve(w).then(function(M){c({value:M,done:_})},p)}(_,w,(p=i[c](p)).done,p.value)})}}}var gp=function(s){return s&&"number"==typeof s.length&&"function"!=typeof s};function Lg(i){return Hn(null==i?void 0:i.then)}function fa(i){return Hn(i[XS])}function Io(i){return Symbol.asyncIterator&&Hn(null==i?void 0:i[Symbol.asyncIterator])}function eM(i){return new TypeError("You provided ".concat(null!==i&&"object"==typeof i?"an invalid object":"'".concat(i,"'")," where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable."))}var nd=function Fg(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function tM(i){return Hn(null==i?void 0:i[nd])}function $e(i){return JS(this,arguments,pp().mark(function s(){var r,n,l;return pp().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:r=i.getReader(),_.prev=1;case 2:return _.next=5,Ke(r.read());case 5:if(l=(n=_.sent).value,!n.done){_.next=12;break}return _.next=11,Ke(void 0);case 11:return _.abrupt("return",_.sent);case 12:return _.next=14,Ke(l);case 14:return _.next=16,_.sent;case 16:_.next=2;break;case 18:return _.prev=18,r.releaseLock(),_.finish(18);case 21:case"end":return _.stop()}},s,null,[[1,,18,21]])}))}function Ng(i){return Hn(null==i?void 0:i.getReader)}function ji(i){if(i instanceof Jn)return i;if(null!=i){if(fa(i))return function nM(i){return new Jn(function(s){var r=i[XS]();if(Hn(r.subscribe))return r.subscribe(s);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(i);if(gp(i))return function je(i){return new Jn(function(s){for(var r=0;r3&&void 0!==arguments[3]?arguments[3]:0,l=arguments.length>4&&void 0!==arguments[4]&&arguments[4],c=s.schedule(function(){r(),l?i.add(this.schedule(null,n)):this.unsubscribe()},n);if(i.add(c),!l)return c}function Jq(i,s,r,n,l,c,p,_){var w=[],M=0,A=0,O=!1,F=function(){O&&!w.length&&!M&&s.complete()},Y=function(le){return M2&&void 0!==arguments[2]?arguments[2]:1/0;return Hn(s)?Ri(function(n,l){return on(function(c,p){return s(n,c,l,p)})(ji(i(n,l)))},r):("number"==typeof s&&(r=s),gr(function(n,l){return Jq(n,l,i,r)}))}function kb(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1/0;return Ri(Ec,i)}var Sr=new Jn(function(i){return i.complete()});function $H(i){return i&&Hn(i.schedule)}function Db(i){return i[i.length-1]}function UP(i){return Hn(Db(i))?i.pop():void 0}function xb(i){return $H(Db(i))?i.pop():void 0}function eZ(i,s){return"number"==typeof Db(i)?i.pop():s}function QH(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return gr(function(r,n){r.subscribe(ve(n,function(l){return Pc(n,i,function(){return n.next(l)},s)},function(){return Pc(n,i,function(){return n.complete()},s)},function(l){return Pc(n,i,function(){return n.error(l)},s)}))})}function Vg(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return gr(function(r,n){n.add(i.schedule(function(){return r.subscribe(n)},s))})}function jP(i,s){if(!i)throw new Error("Iterable cannot be null");return new Jn(function(r){Pc(r,s,function(){var n=i[Symbol.asyncIterator]();Pc(r,s,function(){n.next().then(function(l){l.done?r.complete():r.next(l.value)})},0,!0)})})}function Wi(i,s){return s?function oZ(i,s){if(null!=i){if(fa(i))return function tZ(i,s){return ji(i).pipe(Vg(s),QH(s))}(i,s);if(gp(i))return function rZ(i,s){return new Jn(function(r){var n=0;return s.schedule(function(){n===i.length?r.complete():(r.next(i[n++]),r.closed||this.schedule())})})}(i,s);if(Lg(i))return function nZ(i,s){return ji(i).pipe(Vg(s),QH(s))}(i,s);if(Io(i))return jP(i,s);if(tM(i))return function iZ(i,s){return new Jn(function(r){var n;return Pc(r,s,function(){n=i[nd](),Pc(r,s,function(){var l,c;try{var p=n.next();l=p.value,c=p.done}catch(_){return void r.error(_)}c?r.complete():r.next(l)},0,!0)}),function(){return Hn(null==n?void 0:n.return)&&n.return()}})}(i,s);if(Ng(i))return function aZ(i,s){return jP($e(i),s)}(i,s)}throw eM(i)}(i,s):ji(i)}function Rr(){for(var i=arguments.length,s=new Array(i),r=0;r2?r-2:0),l=2;l ".concat(r," ").concat(n," ").concat(s," <=Actual]")))}(s,i,null,"!=")}function Ue(i){return{token:i.token,providedIn:i.providedIn||null,factory:i.factory,value:void 0}}function St(i){return{providers:i.providers||[],imports:i.imports||[]}}function Ug(i){return qP(i,Wa)||qP(i,Pb)}function qP(i,s){return i.hasOwnProperty(s)?i[s]:null}function Eb(i){return i&&(i.hasOwnProperty(oM)||i.hasOwnProperty(nz))?i[oM]:null}var Ob,Wa=ur({"\u0275prov":ur}),oM=ur({"\u0275inj":ur}),Pb=ur({ngInjectableDef:ur}),nz=ur({ngInjectorDef:ur}),It=function(){return(It=It||{})[It.Default=0]="Default",It[It.Host=1]="Host",It[It.Self=2]="Self",It[It.SkipSelf=4]="SkipSelf",It[It.Optional=8]="Optional",It}();function rz(){return Ob}function Mu(i){var s=Ob;return Ob=i,s}function XP(i,s,r){var n=Ug(i);return n&&"root"==n.providedIn?void 0===n.value?n.value=n.factory():n.value:r&It.Optional?null:void 0!==s?s:void qs(Zn(i),"Injector")}function ku(i){return{toString:i}.toString()}var Zs=function(){return(Zs=Zs||{})[Zs.OnPush=0]="OnPush",Zs[Zs.Default=1]="Default",Zs}(),Ya=function(){return function(i){i[i.Emulated=0]="Emulated",i[i.None=2]="None",i[i.ShadowDom=3]="ShadowDom"}(Ya||(Ya={})),Ya}(),iz="undefined"!=typeof globalThis&&globalThis,$P="undefined"!=typeof window&&window,az="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,QP="undefined"!=typeof global&&global,cr=iz||QP||$P||az,rd={},mr=[],jg=ur({"\u0275cmp":ur}),sM=ur({"\u0275dir":ur}),Rb=ur({"\u0275pipe":ur}),Lb=ur({"\u0275mod":ur}),Xs=ur({"\u0275fac":ur}),Wg=ur({__NG_ELEMENT_ID__:ur}),Fb=0;function ke(i){return ku(function(){var r={},n={type:i.type,providersResolver:null,decls:i.decls,vars:i.vars,factory:null,template:i.template||null,consts:i.consts||null,ngContentSelectors:i.ngContentSelectors,hostBindings:i.hostBindings||null,hostVars:i.hostVars||0,hostAttrs:i.hostAttrs||null,contentQueries:i.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:i.exportAs||null,onPush:i.changeDetection===Zs.OnPush,directiveDefs:null,pipeDefs:null,selectors:i.selectors||mr,viewQuery:i.viewQuery||null,features:i.features||null,data:i.data||{},encapsulation:i.encapsulation||Ya.Emulated,id:"c",styles:i.styles||mr,_:null,setInput:null,schemas:i.schemas||null,tView:null},l=i.directives,c=i.features,p=i.pipes;return n.id+=Fb++,n.inputs=JP(i.inputs,r),n.outputs=JP(i.outputs),c&&c.forEach(function(_){return _(n)}),n.directiveDefs=l?function(){return("function"==typeof l?l():l).map(id)}:null,n.pipeDefs=p?function(){return("function"==typeof p?p():p).map(lM)}:null,n})}function id(i){return Li(i)||function Du(i){return i[sM]||null}(i)}function lM(i){return function Yl(i){return i[Rb]||null}(i)}var Nb={};function Mt(i){return ku(function(){var s={type:i.type,bootstrap:i.bootstrap||mr,declarations:i.declarations||mr,imports:i.imports||mr,exports:i.exports||mr,transitiveCompileScopes:null,schemas:i.schemas||null,id:i.id||null};return null!=i.id&&(Nb[i.id]=i.type),s})}function JP(i,s){if(null==i)return rd;var r={};for(var n in i)if(i.hasOwnProperty(n)){var l=i[n],c=l;Array.isArray(l)&&(c=l[1],l=l[0]),r[l]=n,s&&(s[l]=c)}return r}var be=ke;function qi(i){return{type:i.type,name:i.name,factory:null,pure:!1!==i.pure,onDestroy:i.type.prototype.ngOnDestroy||null}}function Li(i){return i[jg]||null}function Fi(i,s){var r=i[Lb]||null;if(!r&&!0===s)throw new Error("Type ".concat(Zn(i)," does not have '\u0275mod' property."));return r}function go(i){return Array.isArray(i)&&"object"==typeof i[1]}function us(i){return Array.isArray(i)&&!0===i[1]}function Lo(i){return 0!=(8&i.flags)}function Hb(i){return 2==(2&i.flags)}function Nc(i){return 1==(1&i.flags)}function Fo(i){return null!==i.template}function wp(i){return 0!=(512&i[2])}function fs(i,s){return i.hasOwnProperty(Xs)?i[Xs]:null}var iO=function(){function i(s,r,n){R(this,i),this.previousValue=s,this.currentValue=r,this.firstChange=n}return L(i,[{key:"isFirstChange",value:function(){return this.firstChange}}]),i}();function xn(){return Xg}function Xg(i){return i.type.prototype.ngOnChanges&&(i.setInput=CZ),fM}function fM(){var i=oO(this),s=null==i?void 0:i.current;if(s){var r=i.previous;if(r===rd)i.previous=s;else for(var n in s)r[n]=s[n];i.current=null,this.ngOnChanges(s)}}function CZ(i,s,r,n){var l=oO(i)||function fz(i,s){return i[aO]=s}(i,{previous:rd,current:null}),c=l.current||(l.current={}),p=l.previous,_=this.declaredInputs[r],w=p[_];c[_]=new iO(w&&w.currentValue,s,p===rd),i[n]=s}xn.ngInherit=!0;var aO="__ngSimpleChanges__";function oO(i){return i[aO]||null}var pM=void 0;function Yb(){return void 0!==pM?pM:"undefined"!=typeof document?document:void 0}function ni(i){return!!i.listen}var qb={createRenderer:function(s,r){return Yb()}};function ri(i){for(;Array.isArray(i);)i=i[0];return i}function Kg(i,s){return ri(s[i])}function ds(i,s){return ri(s[i.index])}function ld(i,s){return i.data[s]}function Tu(i,s){return i[s]}function Bo(i,s){var r=s[i];return go(r)?r:r[0]}function $g(i){return 4==(4&i[2])}function Mp(i){return 128==(128&i[2])}function hs(i,s){return null==s?null:i[s]}function Zb(i){i[18]=0}function Qg(i,s){i[5]+=s;for(var r=i,n=i[3];null!==n&&(1===s&&1===r[5]||-1===s&&0===r[5]);)n[5]+=s,r=n,n=n[3]}var nn={lFrame:nm(null),bindingsEnabled:!0};function Xb(){return nn.bindingsEnabled}function Oe(){return nn.lFrame.lView}function zn(){return nn.lFrame.tView}function he(i){return nn.lFrame.contextLView=i,i[8]}function di(){for(var i=_M();null!==i&&64===i.type;)i=i.parent;return i}function _M(){return nn.lFrame.currentTNode}function ps(i,s){var r=nn.lFrame;r.currentTNode=i,r.isParent=s}function yM(){return nn.lFrame.isParent}function em(){nn.lFrame.isParent=!1}function ha(){var i=nn.lFrame,s=i.bindingRootIndex;return-1===s&&(s=i.bindingRootIndex=i.tView.bindingStartIndex),s}function Eu(){return nn.lFrame.bindingIndex++}function Qs(i){var s=nn.lFrame,r=s.bindingIndex;return s.bindingIndex=s.bindingIndex+i,r}function bz(i,s){var r=nn.lFrame;r.bindingIndex=r.bindingRootIndex=i,vO(s)}function vO(i){nn.lFrame.currentDirectiveIndex=i}function xp(i){var s=nn.lFrame.currentDirectiveIndex;return-1===s?null:i[s]}function Kb(){return nn.lFrame.currentQueryIndex}function tm(i){nn.lFrame.currentQueryIndex=i}function bM(i){var s=i[1];return 2===s.type?s.declTNode:1===s.type?i[6]:null}function gO(i,s,r){if(r&It.SkipSelf){for(var n=s,l=i;!(null!==(n=n.parent)||r&It.Host||null===(n=bM(l))||(l=l[15],10&n.type)););if(null===n)return!1;s=n,i=l}var c=nn.lFrame=Tp();return c.currentTNode=s,c.lView=i,!0}function ka(i){var s=Tp(),r=i[1];nn.lFrame=s,s.currentTNode=r.firstChild,s.lView=i,s.tView=r,s.contextLView=i,s.bindingIndex=r.bindingStartIndex,s.inI18n=!1}function Tp(){var i=nn.lFrame,s=null===i?null:i.child;return null===s?nm(i):s}function nm(i){var s={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:i,child:null,inI18n:!1};return null!==i&&(i.child=s),s}function Js(){var i=nn.lFrame;return nn.lFrame=i.parent,i.currentTNode=null,i.lView=null,i}var vs=Js;function el(){var i=Js();i.isParent=!0,i.tView=null,i.selectedIndex=-1,i.contextLView=null,i.elementDepthCount=0,i.currentDirectiveIndex=-1,i.currentNamespace=null,i.bindingRootIndex=-1,i.bindingIndex=-1,i.currentQueryIndex=0}function $b(i){var s=nn.lFrame.contextLView=function ud(i,s){for(;i>0;)s=s[15],i--;return s}(i,nn.lFrame.contextLView);return s[8]}function Da(){return nn.lFrame.selectedIndex}function Pu(i){nn.lFrame.selectedIndex=i}function Wr(){var i=nn.lFrame;return ld(i.tView,i.selectedIndex)}function Bi(){nn.lFrame.currentNamespace="svg"}function Zl(){!function CM(){nn.lFrame.currentNamespace=null}()}function Vo(i,s){for(var r=s.directiveStart,n=s.directiveEnd;r=n)break}else s[w]<0&&(i[18]+=65536),(_>11>16&&(3&i[2])===s){i[2]+=2048;try{c.call(_)}finally{}}}else try{c.call(_)}finally{}}var nl=L(function i(s,r,n){R(this,i),this.factory=s,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=n});function xa(i,s,r){for(var n=ni(i),l=0;ls){p=c-1;break}}}for(;c>16}(i),n=s;r>0;)n=n[15],r--;return n}var sm=!0;function Ap(i){var s=sm;return sm=i,s}var kM=0;function md(i,s){var r=TM(i,s);if(-1!==r)return r;var n=s[1];n.firstCreatePass&&(i.injectorIndex=s.length,xM(n.data,i),xM(s,null),xM(n.blueprint,null));var l=Jb(i,s),c=i.injectorIndex;if(am(l))for(var p=om(l),_=Ou(l,s),w=_[1].data,M=0;M<8;M++)s[c+M]=_[p+M]|w[p+M];return s[c+8]=l,c}function xM(i,s){i.push(0,0,0,0,0,0,0,0,s)}function TM(i,s){return-1===i.injectorIndex||i.parent&&i.parent.injectorIndex===i.injectorIndex||null===s[i.injectorIndex+8]?-1:i.injectorIndex}function Jb(i,s){if(i.parent&&-1!==i.parent.injectorIndex)return i.parent.injectorIndex;for(var r=0,n=null,l=s;null!==l;){var c=l[1],p=c.type;if(null===(n=2===p?c.declTNode:1===p?l[6]:null))return-1;if(r++,l=l[15],-1!==n.injectorIndex)return n.injectorIndex|r<<16}return-1}function e0(i,s,r){!function DM(i,s,r){var n;"string"==typeof r?n=r.charCodeAt(0)||0:r.hasOwnProperty(Wg)&&(n=r[Wg]),null==n&&(n=r[Wg]=kM++);var l=255&n;s.data[i+(l>>5)]|=1<3&&void 0!==arguments[3]?arguments[3]:It.Default,l=arguments.length>4?arguments[4]:void 0;if(null!==i){var c=PM(r);if("function"==typeof c){if(!gO(s,i,n))return n&It.Host?AM(l,r,n):EM(s,r,n,l);try{var p=c(n);if(null!=p||n&It.Optional)return p;qs(r)}finally{vs()}}else if("number"==typeof c){var _=null,w=TM(i,s),M=-1,A=n&It.Host?s[16][6]:null;for((-1===w||n&It.SkipSelf)&&(-1!==(M=-1===w?Jb(i,s):s[w+8])&&bO(n,!1)?(_=s[1],w=om(M),s=Ou(M,s)):w=-1);-1!==w;){var O=s[1];if(yO(c,w,O.data)){var F=kz(w,s,r,_,n,A);if(F!==lm)return F}-1!==(M=s[w+8])&&bO(n,s[1].data[w+8]===A)&&yO(c,w,s)?(_=O,w=om(M),s=Ou(M,s)):w=-1}}}return EM(s,r,n,l)}var lm={};function _d(){return new Ep(di(),Oe())}function kz(i,s,r,n,l,c){var p=s[1],_=p.data[i+8],A=t0(_,p,r,null==n?Hb(_)&&sm:n!=p&&0!=(3&_.type),l&It.Host&&c===_);return null!==A?um(s,p,A,_):lm}function t0(i,s,r,n,l){for(var c=i.providerIndexes,p=s.data,_=1048575&c,w=i.directiveStart,A=c>>20,F=l?_+A:i.directiveEnd,Y=n?_:_+A;Y=w&&$.type===r)return Y}if(l){var oe=p[w];if(oe&&Fo(oe)&&oe.type===r)return w}return null}function um(i,s,r,n){var l=i[r],c=s.data;if(function fd(i){return i instanceof nl}(l)){var p=l;p.resolving&&function Tb(i,s){var r=s?". Dependency path: ".concat(s.join(" > ")," > ").concat(i):"";throw new st(-200,"Circular dependency in DI detected for ".concat(i).concat(r))}(ei(c[r]));var _=Ap(p.canSeeViewProviders);p.resolving=!0;var w=p.injectImpl?Mu(p.injectImpl):null;gO(i,n,It.Default);try{l=i[r]=p.factory(void 0,c,i,n),s.firstCreatePass&&r>=n.directiveStart&&function Cz(i,s,r){var n=s.type.prototype,c=n.ngOnInit,p=n.ngDoCheck;if(n.ngOnChanges){var _=Xg(s);(r.preOrderHooks||(r.preOrderHooks=[])).push(i,_),(r.preOrderCheckHooks||(r.preOrderCheckHooks=[])).push(i,_)}c&&(r.preOrderHooks||(r.preOrderHooks=[])).push(0-i,c),p&&((r.preOrderHooks||(r.preOrderHooks=[])).push(i,p),(r.preOrderCheckHooks||(r.preOrderCheckHooks=[])).push(i,p))}(r,c[r],s)}finally{null!==w&&Mu(w),Ap(_),p.resolving=!1,vs()}}return l}function PM(i){if("string"==typeof i)return i.charCodeAt(0)||0;var s=i.hasOwnProperty(Wg)?i[Wg]:void 0;return"number"==typeof s?s>=0?255&s:_d:s}function yO(i,s,r){return!!(r[s+(i>>5)]&1<=i.length?i.push(r):i.splice(s,0,r)}function cm(i,s){return s>=i.length-1?i.pop():i.splice(s,1)[0]}function Rp(i,s){for(var r=[],n=0;n=0?i[1|n]=r:function Cd(i,s,r,n){var l=i.length;if(l==s)i.push(r,n);else if(1===l)i.push(n,i[0]),i[0]=r;else{for(l--,i.push(i[l-1],i[l]);l>s;)i[l]=i[l-2],l--;i[s]=r,i[s+1]=n}}(i,n=~n,s,r),n}function NM(i,s){var r=Lp(i,s);if(r>=0)return i[1|r]}function Lp(i,s){return function DO(i,s,r){for(var n=0,l=i.length>>r;l!==n;){var c=n+(l-n>>1),p=i[c<s?l=c:n=c+1}return~(l<1&&void 0!==arguments[1]?arguments[1]:It.Default;if(void 0===Sd){var r="";throw new st(203,r)}return null===Sd?XP(i,void 0,s):Sd.get(i,s&It.Optional?null:void 0,s)}function ge(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:It.Default;return(rz()||Pz)(ln(i),s)}var HM=ge;function zM(i){for(var s=[],r=0;r3&&void 0!==arguments[3]?arguments[3]:null;i=i&&"\n"===i.charAt(0)&&"\u0275"==i.charAt(1)?i.substr(2):i;var l=Zn(s);if(Array.isArray(s))l=s.map(Zn).join(" -> ");else if("object"==typeof s){var c=[];for(var p in s)if(s.hasOwnProperty(p)){var _=s[p];c.push(p+":"+("string"==typeof _?JSON.stringify(_):Zn(_)))}l="{".concat(c.join(", "),"}")}return"".concat(r).concat(n?"("+n+")":"","[").concat(l,"]: ").concat(i.replace(wd,"\n "))}("\n"+i.message,l,r,n),i.ngTokenPath=l,i[r0]=null,i}var Np,u0,gm=Md(Zi("Inject",function(i){return{token:i}}),-1),ai=Md(Zi("Optional"),8),Kl=Md(Zi("SkipSelf"),4);function Dd(i){var s;return(null===(s=function l0(){if(void 0===Np&&(Np=null,cr.trustedTypes))try{Np=cr.trustedTypes.createPolicy("angular",{createHTML:function(s){return s},createScript:function(s){return s},createScriptURL:function(s){return s}})}catch(i){}return Np}())||void 0===s?void 0:s.createHTML(i))||i}function NO(i){var s;return(null===(s=function c0(){if(void 0===u0&&(u0=null,cr.trustedTypes))try{u0=cr.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:function(s){return s},createScript:function(s){return s},createScriptURL:function(s){return s}})}catch(i){}return u0}())||void 0===s?void 0:s.createHTML(i))||i}var xd=function(){function i(s){R(this,i),this.changingThisBreaksApplicationSecurity=s}return L(i,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: ".concat(this.changingThisBreaksApplicationSecurity)+" (see https://g.co/ng/security#xss)"}}]),i}(),Nz=function(i){se(r,i);var s=ue(r);function r(){return R(this,r),s.apply(this,arguments)}return L(r,[{key:"getTypeName",value:function(){return"HTML"}}]),r}(xd),Bz=function(i){se(r,i);var s=ue(r);function r(){return R(this,r),s.apply(this,arguments)}return L(r,[{key:"getTypeName",value:function(){return"Style"}}]),r}(xd),VO=function(i){se(r,i);var s=ue(r);function r(){return R(this,r),s.apply(this,arguments)}return L(r,[{key:"getTypeName",value:function(){return"Script"}}]),r}(xd),WM=function(i){se(r,i);var s=ue(r);function r(){return R(this,r),s.apply(this,arguments)}return L(r,[{key:"getTypeName",value:function(){return"URL"}}]),r}(xd),Td=function(i){se(r,i);var s=ue(r);function r(){return R(this,r),s.apply(this,arguments)}return L(r,[{key:"getTypeName",value:function(){return"ResourceURL"}}]),r}(xd);function Ta(i){return i instanceof xd?i.changingThisBreaksApplicationSecurity:i}function sl(i,s){var r=HO(i);if(null!=r&&r!==s){if("ResourceURL"===r&&"URL"===s)return!0;throw new Error("Required a safe ".concat(s,", got a ").concat(r," (see https://g.co/ng/security#xss)"))}return r===s}function HO(i){return i instanceof xd&&i.getTypeName()||null}var bo=function(){function i(s){R(this,i),this.inertDocumentHelper=s}return L(i,[{key:"getInertBodyElement",value:function(r){r=""+r;try{var n=(new window.DOMParser).parseFromString(Dd(r),"text/html").body;return null===n?this.inertDocumentHelper.getInertBodyElement(r):(n.removeChild(n.firstChild),n)}catch(l){return null}}}]),i}(),ZM=function(){function i(s){if(R(this,i),this.defaultDoc=s,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var r=this.inertDocument.createElement("html");this.inertDocument.appendChild(r);var n=this.inertDocument.createElement("body");r.appendChild(n)}}return L(i,[{key:"getInertBodyElement",value:function(r){var n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=Dd(r),n;var l=this.inertDocument.createElement("body");return l.innerHTML=Dd(r),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(l),l}},{key:"stripCustomNsAttrs",value:function(r){for(var n=r.attributes,l=n.length-1;0"),!0}},{key:"endElement",value:function(r){var n=r.nodeName.toLowerCase();Lu.hasOwnProperty(n)&&!$M.hasOwnProperty(n)&&(this.buf.push(""))}},{key:"chars",value:function(r){this.buf.push(p0(r))}},{key:"checkClobberedElement",value:function(r,n){if(n&&(r.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: ".concat(r.outerHTML));return n}}]),i}(),Od=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Fu=/([^\#-~ |!])/g;function p0(i){return i.replace(/&/g,"&").replace(Od,function(s){return"&#"+(1024*(s.charCodeAt(0)-55296)+(s.charCodeAt(1)-56320)+65536)+";"}).replace(Fu,function(s){return"&#"+s.charCodeAt(0)+";"}).replace(//g,">")}function v0(i,s){var r=null;try{ul=ul||function qa(i){var s=new ZM(i);return function XM(){try{return!!(new window.DOMParser).parseFromString(Dd(""),"text/html")}catch(i){return!1}}()?new bo(s):s}(i);var n=s?String(s):"";r=ul.getInertBodyElement(n);var l=5,c=n;do{if(0===l)throw new Error("Failed to sanitize html because the input is unstable");l--,n=c,c=r.innerHTML,r=ul.getInertBodyElement(n)}while(n!==c);return Dd((new Pd).sanitizeChildren(Id(r)||r))}finally{if(r)for(var w=Id(r)||r;w.firstChild;)w.removeChild(w.firstChild)}}function Id(i){return"content"in i&&function JM(i){return i.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===i.nodeName}(i)?i.content:null}var br=function(){return(br=br||{})[br.NONE=0]="NONE",br[br.HTML=1]="HTML",br[br.STYLE=2]="STYLE",br[br.SCRIPT=3]="SCRIPT",br[br.URL=4]="URL",br[br.RESOURCE_URL=5]="RESOURCE_URL",br}();function Xi(i){var s=cl();return s?NO(s.sanitize(br.HTML,i)||""):sl(i,"HTML")?NO(Ta(i)):v0(Yb(),$t(i))}function Qt(i){var s=cl();return s?s.sanitize(br.URL,i)||"":sl(i,"URL")?Ta(i):Hc($t(i))}function cl(){var i=Oe();return i&&i[12]}var Go="__ngContext__";function Ea(i,s){i[Go]=s}function tk(i){var s=function ym(i){return i[Go]||null}(i);return s?Array.isArray(s)?s:s.lView:null}function rk(i){return i.ngOriginalError}function Zz(i){for(var s=arguments.length,r=new Array(s>1?s-1:0),n=1;n0&&(i[r-1][4]=n[4]);var c=cm(i,10+s);!function Za(i,s){jo(i,s,s[11],2,null,null),s[0]=null,s[6]=null}(n[1],n);var p=c[19];null!==p&&p.detachView(c[1]),n[3]=null,n[4]=null,n[2]&=-129}return n}}function qp(i,s){if(!(256&s[2])){var r=s[11];ni(r)&&r.destroyNode&&jo(i,s,r,3,null,null),function n4(i){var s=i[13];if(!s)return jc(i[1],i);for(;s;){var r=null;if(go(s))r=s[13];else{var n=s[10];n&&(r=n)}if(!r){for(;s&&!s[4]&&s!==i;)go(s)&&jc(s[1],s),s=s[3];null===s&&(s=i),go(s)&&jc(s[1],s),r=s&&s[4]}s=r}}(s)}}function jc(i,s){if(!(256&s[2])){s[2]&=-129,s[2]|=256,function rI(i,s){var r;if(null!=i&&null!=(r=i.destroyHooks))for(var n=0;n=0?n[l=M]():n[l=-M].unsubscribe(),c+=2}else{var A=n[l=r[c+1]];r[c].call(A)}if(null!==n){for(var O=l+1;Oc?"":l[O+1].toLowerCase();var Y=8&n?F:null;if(Y&&-1!==pk(Y,M,0)||2&n&&M!==F){if(fl(n))return!1;p=!0}}}}else{if(!p&&!fl(n)&&!fl(w))return!1;if(p&&fl(w))continue;p=!1,n=w|1&n}}return fl(n)||p}function fl(i){return 0==(1&i)}function lI(i,s,r,n){if(null===s)return-1;var l=0;if(n||!r){for(var c=!1;l-1)for(r++;r2&&void 0!==arguments[2]&&arguments[2],n=0;n0?'="'+_+'"':"")+"]"}else 8&n?l+="."+p:4&n&&(l+=" "+p);else""!==l&&!fl(p)&&(s+=gk(c,l),l=""),n=p,c=c||!fl(n);r++}return""!==l&&(s+=gk(c,l)),s}var Kt={};function G(i){cI(zn(),Oe(),Da()+i,!1)}function cI(i,s,r,n){if(!n)if(3==(3&s[2])){var c=i.preOrderCheckHooks;null!==c&&rm(s,c,r)}else{var p=i.preOrderHooks;null!==p&&gs(s,p,0,r)}Pu(r)}function Tm(i,s){return i<<17|s<<2}function dl(i){return i>>17&32767}function Am(i){return 2|i}function Ut(i){return(131068&i)>>2}function nr(i,s){return-131069&i|s<<2}function ru(i){return 1|i}function Im(i,s){var r=i.contentQueries;if(null!==r)for(var n=0;n20&&cI(i,s,20,!1),r(n,l)}finally{Pu(c)}}function wk(i,s,r){if(Lo(s))for(var l=s.directiveEnd,c=s.directiveStart;c2&&void 0!==arguments[2]?arguments[2]:ds,n=s.localNames;if(null!==n)for(var l=s.index+1,c=0;c0;){var r=i[--s];if("number"==typeof r&&r<0)return r}return 0})(_)!=w&&_.push(w),_.push(n,l,p)}}function xk(i,s){null!==i.hostBindings&&i.hostBindings(1,s)}function z0(i,s){s.flags|=2,(i.components||(i.components=[])).push(s.index)}function y4(i,s,r){if(r){if(s.exportAs)for(var n=0;n0&&tv(r)}}function tv(i){for(var s=vt(i);null!==s;s=wm(s))for(var r=10;r0&&tv(n)}var p=i[1].components;if(null!==p)for(var _=0;_0&&tv(w)}}function EI(i,s){var r=Bo(s,i),n=r[1];(function Yd(i,s){for(var r=s.length;r1&&void 0!==arguments[1]?arguments[1]:pm;if(n===pm){var l=new Error("NullInjectorError: No provider for ".concat(Zn(r),"!"));throw l.name="NullInjectorError",l}return n}}]),i}(),Cs=new Ae("Set Injector scope."),qo={},LI={},ws=void 0;function Kd(){return void 0===ws&&(ws=new Yo),ws}function Ji(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0,l=Rk(i,s,r,n);return l._resolveInjectorDefTypes(),l}function Rk(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3?arguments[3]:void 0;return new M4(i,r,s||Kd(),n)}var M4=function(){function i(s,r,n){var l=this,c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;R(this,i),this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var p=[];r&&al(r,function(w){return l.processProvider(w,s,r)}),al([s],function(w){return l.processInjectorType(w,[],p)}),this.records.set(Qi,$d(void 0,this));var _=this.records.get(Cs);this.scope=null!=_?_.value:null,this.source=c||("object"==typeof s?null:Zn(s))}return L(i,[{key:"destroyed",get:function(){return this._destroyed}},{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(function(r){return r.ngOnDestroy()})}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:pm,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:It.Default;this.assertNotDestroyed();var c=ii(this),p=Mu(void 0);try{if(!(l&It.SkipSelf)){var _=this.records.get(r);if(void 0===_){var w=Hk(r)&&Ug(r);_=w&&this.injectableDefInScope(w)?$d(U0(r),qo):null,this.records.set(r,_)}if(null!=_)return this.hydrate(r,_)}var M=l&It.Self?Kd():this.parent;return M.get(r,n=l&It.Optional&&n===pm?null:n)}catch(O){if("NullInjectorError"===O.name){var A=O[r0]=O[r0]||[];if(A.unshift(Zn(r)),c)throw O;return Oz(O,r,"R3InjectorError",this.source)}throw O}finally{Mu(p),ii(c)}}},{key:"_resolveInjectorDefTypes",value:function(){var r=this;this.injectorDefTypes.forEach(function(n){return r.get(n)})}},{key:"toString",value:function(){var r=[];return this.records.forEach(function(l,c){return r.push(Zn(c))}),"R3Injector[".concat(r.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new st(205,!1)}},{key:"processInjectorType",value:function(r,n,l){var c=this;if(!(r=ln(r)))return!1;var p=Eb(r),_=null==p&&r.ngModule||void 0,w=void 0===_?r:_,O=-1!==l.indexOf(w);if(void 0!==_&&(p=Eb(_)),null==p)return!1;if(null!=p.imports&&!O){var F;l.push(w);try{al(p.imports,function(ae){c.processInjectorType(ae,n,l)&&(void 0===F&&(F=[]),F.push(ae))})}finally{}if(void 0!==F)for(var Y=function(we){var De=F[we],Ee=De.ngModule,We=De.providers;al(We,function(bt){return c.processProvider(bt,Ee,We||mr)})},$=0;$0)throw Rp(s,"?"),new st(204,!1);var n=function aM(i){var s=i&&(i[Wa]||i[Pb]);if(s){var r=function ZP(i){if(i.hasOwnProperty("name"))return i.name;var s=(""+i).match(/^function\s*([^\s(]+)/);return null===s?"":s[1]}(i);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(r,'" 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(r,'" class.')),s}return null}(i);return null!==n?function(){return n.factory(i)}:function(){return new i}}(i);throw new st(204,!1)}function FI(i,s,r){var n=void 0;if(iv(i)){var l=ln(i);return fs(l)||U0(l)}if(Nk(i))n=function(){return ln(i.useValue)};else if(function k4(i){return!(!i||!i.useFactory)}(i))n=function(){return i.useFactory.apply(i,yt(zM(i.deps||[])))};else if(function Bk(i){return!(!i||!i.useExisting)}(i))n=function(){return ge(ln(i.useExisting))};else{var c=ln(i&&(i.useClass||i.provide));if(!function D4(i){return!!i.deps}(i))return fs(c)||U0(c);n=function(){return os(c,yt(zM(i.deps)))}}return n}function $d(i,s){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:i,value:s,multi:r?[]:void 0}}function Nk(i){return null!==i&&"object"==typeof i&&vm in i}function iv(i){return"function"==typeof i}function Hk(i){return"function"==typeof i||"object"==typeof i&&i instanceof Ae}var kr=function(){var i=function(){function s(){R(this,s)}return L(s,null,[{key:"create",value:function(n,l){var c;if(Array.isArray(n))return Ji({name:""},l,n,"");var p=null!==(c=n.name)&&void 0!==c?c:"";return Ji({name:p},n.parent,n.providers,p)}}]),s}();return i.THROW_IF_NOT_FOUND=pm,i.NULL=new Yo,i.\u0275prov=Ue({token:i,providedIn:"any",factory:function(){return ge(Qi)}}),i.__NG_ELEMENT_ID__=-1,i}();function F4(i,s){Vo(tk(i)[1],di())}function Re(i){for(var s=function qI(i){return Object.getPrototypeOf(i.prototype).constructor}(i.type),r=!0,n=[i];s;){var l=void 0;if(Fo(i))l=s.\u0275cmp||s.\u0275dir;else{if(s.\u0275cmp)throw new st(903,"");l=s.\u0275dir}if(l){if(r){n.push(l);var p=i;p.inputs=Qd(i.inputs),p.declaredInputs=Qd(i.declaredInputs),p.outputs=Qd(i.outputs);var _=l.hostBindings;_&&Pa(i,_);var w=l.viewQuery,M=l.contentQueries;if(w&&ZI(i,w),M&&Gk(i,M),Hg(i.inputs,l.inputs),Hg(i.declaredInputs,l.declaredInputs),Hg(i.outputs,l.outputs),Fo(l)&&l.data.animation){var A=i.data;A.animation=(A.animation||[]).concat(l.data.animation)}}var O=l.features;if(O)for(var F=0;F=0;n--){var l=i[n];l.hostVars=s+=l.hostVars,l.hostAttrs=Vc(l.hostAttrs,r=Vc(r,l.hostAttrs))}}(n)}function Qd(i){return i===rd?{}:i===mr?[]:i}function ZI(i,s){var r=i.viewQuery;i.viewQuery=r?function(n,l){s(n,l),r(n,l)}:s}function Gk(i,s){var r=i.contentQueries;i.contentQueries=r?function(n,l,c){s(n,l,c),r(n,l,c)}:s}function Pa(i,s){var r=i.hostBindings;i.hostBindings=r?function(n,l){s(n,l),r(n,l)}:s}var Y0=null;function wo(){if(!Y0){var i=cr.Symbol;if(i&&i.iterator)Y0=i.iterator;else for(var s=Object.getOwnPropertyNames(Map.prototype),r=0;r1&&void 0!==arguments[1]?arguments[1]:It.Default,r=Oe();if(null===r)return ge(i,s);var n=di();return ct(n,r,ln(i),s)}function lf(){throw new Error("invalid")}function U(i,s,r){var n=Oe();return ea(n,Eu(),s)&&Xa(zn(),Wr(),n,i,s,n[11],r,!1),U}function $k(i,s,r,n,l){var p=l?"class":"style";sn(i,r,s.inputs[p],p,n)}function I(i,s,r,n){var l=Oe(),c=zn(),p=20+i,_=l[11],w=l[p]=Up(_,s,function wM(){return nn.lFrame.currentNamespace}()),M=c.firstCreatePass?function Qk(i,s,r,n,l,c,p){var _=s.consts,M=Kp(s,i,2,l,hs(_,c));return H0(s,r,M,hs(_,p)),null!==M.attrs&&zu(M,M.attrs,!1),null!==M.mergedAttrs&&zu(M,M.mergedAttrs,!0),null!==s.queries&&s.queries.elementStart(s,M),M}(p,c,l,0,s,r,n):c.data[p];ps(M,!0);var A=M.mergedAttrs;null!==A&&xa(_,w,A);var O=M.classes;null!==O&&A0(_,w,O);var F=M.styles;return null!==F&&hk(_,w,F),64!=(64&M.flags)&&k0(c,l,w,M),0===function Jg(){return nn.lFrame.elementDepthCount}()&&Ea(w,l),function mz(){nn.lFrame.elementDepthCount++}(),Nc(M)&&(Ud(c,l,M),wk(c,M,l)),null!==n&&Qp(l,M),I}function B(){var i=di();yM()?em():ps(i=i.parent,!1);var s=i;!function _z(){nn.lFrame.elementDepthCount--}();var r=zn();return r.firstCreatePass&&(Vo(r,i),Lo(i)&&r.queries.elementEnd(i)),null!=s.classesWithoutHost&&function im(i){return 0!=(16&i.flags)}(s)&&$k(r,s,Oe(),s.classesWithoutHost,!0),null!=s.stylesWithoutHost&&function wz(i){return 0!=(32&i.flags)}(s)&&$k(r,s,Oe(),s.stylesWithoutHost,!1),B}function Se(i,s,r,n){return I(i,s,r,n),B(),Se}function Rn(i,s,r){var n=Oe(),l=zn(),c=i+20,p=l.firstCreatePass?function pR(i,s,r,n,l){var c=s.consts,p=hs(c,n),_=Kp(s,i,8,"ng-container",p);return null!==p&&zu(_,p,!0),H0(s,r,_,hs(c,l)),null!==s.queries&&s.queries.elementStart(s,_),_}(c,l,n,s,r):l.data[c];ps(p,!0);var _=n[c]=n[11].createComment("");return k0(l,n,_,p),Ea(_,n),Nc(p)&&(Ud(l,n,p),wk(l,p,n)),null!=r&&Qp(n,p),Rn}function On(){var i=di(),s=zn();return yM()?em():ps(i=i.parent,!1),s.firstCreatePass&&(Vo(s,i),Lo(i)&&s.queries.elementEnd(i)),On}function $a(i,s,r){return Rn(i,s,r),On(),$a}function xe(){return Oe()}function Wm(i){return!!i&&"function"==typeof i.then}function Jk(i){return!!i&&"function"==typeof i.subscribe}var eD=Jk;function ne(i,s,r,n){var l=Oe(),c=zn(),p=di();return Ym(c,l,l[11],p,i,s,!!r,n),ne}function cv(i,s){var r=di(),n=Oe(),l=zn();return Ym(l,n,Xd(xp(l.data),r,n),r,i,s,!1),cv}function Ym(i,s,r,n,l,c,p,_){var w=Nc(n),A=i.firstCreatePass&&OI(i),O=s[8],F=Ik(s),Y=!0;if(3&n.type||_){var $=ds(n,s),oe=_?_($):$,le=F.length,fe=_?function(dp){return _(ri(dp[n.index]))}:n.index;if(ni(r)){var ae=null;if(!_&&w&&(ae=function vR(i,s,r,n){var l=i.cleanup;if(null!=l)for(var c=0;cw?_[w]:null}"string"==typeof p&&(c+=2)}return null}(i,s,l,n.index)),null!==ae)(ae.__ngLastListenerFn__||ae).__ngNextListenerFn__=c,ae.__ngLastListenerFn__=c,Y=!1;else{c=K0(n,s,O,c,!1);var De=r.listen(oe,l,c);F.push(c,De),A&&A.push(l,fe,le,le+1)}}else c=K0(n,s,O,c,!0),oe.addEventListener(l,c,p),F.push(c),A&&A.push(l,fe,le,p)}else c=K0(n,s,O,c,!1);var We,Ee=n.outputs;if(Y&&null!==Ee&&(We=Ee[l])){var bt=We.length;if(bt)for(var Vn=0;Vn0&&void 0!==arguments[0]?arguments[0]:1;return $b(i)}function K4(i,s){for(var r=null,n=function Yc(i){var s=i.attrs;if(null!=s){var r=s.indexOf(5);if(0==(1&r))return s[r+1]}return null}(i),l=0;l1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2?arguments[2]:void 0,n=Oe(),l=zn(),c=Kp(l,20+i,16,null,r||null);null===c.projection&&(c.projection=s),em(),64!=(64&c.flags)&&Bu(l,n,c)}function Uu(i,s,r){return $0(i,"",s,"",r),Uu}function $0(i,s,r,n,l){var c=Oe(),p=eh(c,s,r,n);return p!==Kt&&Xa(zn(),Wr(),c,i,p,c[11],l,!1),$0}function iD(i,s,r,n,l){for(var c=i[r+1],p=null===s,_=n?dl(c):Ut(c),w=!1;0!==_&&(!1===w||p);){var A=i[_+1];aD(i[_],s)&&(w=!0,i[_+1]=n?ru(A):Am(A)),_=n?dl(A):Ut(A)}w&&(i[r+1]=n?Am(c):ru(c))}function aD(i,s){return null===i||null==s||(Array.isArray(i)?i[1]:i)===s||!(!Array.isArray(i)||"string"!=typeof s)&&Lp(i,s)>=0}var Si={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function wR(i){return i.substring(Si.key,Si.keyEnd)}function qm(i,s){var r=Si.textEnd;return r===s?-1:(s=Si.keyEnd=function J4(i,s,r){for(;s32;)s++;return s}(i,Si.key=s,r),fv(i,s,r))}function fv(i,s,r){for(;s=0;r=qm(s,r))yo(i,wR(s),!0)}function _l(i,s,r,n){var l=Oe(),c=zn(),p=Qs(2);c.firstUpdatePass&&Zm(c,i,p,n),s!==Kt&&ea(l,p,s)&&uD(c,c.data[Da()],l,l[11],i,l[p+1]=function DR(i,s){return null==i||("string"==typeof s?i+=s:"object"==typeof i&&(i=Zn(Ta(i)))),i}(s,r),n,p)}function nC(i,s){return s>=i.expandoStartIndex}function Zm(i,s,r,n){var l=i.data;if(null===l[r+1]){var c=l[Da()],p=nC(i,r);xR(c,n)&&null===s&&!p&&(s=!1),s=function rC(i,s,r,n){var l=xp(i),c=n?s.residualClasses:s.residualStyles;if(null===l)0===(n?s.classBindings:s.styleBindings)&&(r=hv(r=iC(null,i,s,r,n),s.attrs,n),c=null);else{var _=s.directiveStylingLast;if(-1===_||i[_]!==l)if(r=iC(l,i,s,r,n),null===c){var M=function Xm(i,s,r){var n=r?s.classBindings:s.styleBindings;if(0!==Ut(n))return i[dl(n)]}(i,s,n);void 0!==M&&Array.isArray(M)&&function MR(i,s,r,n){i[dl(r?s.classBindings:s.styleBindings)]=n}(i,s,n,M=hv(M=iC(null,i,s,M[1],n),s.attrs,n))}else c=function lD(i,s,r){for(var n=void 0,l=s.directiveEnd,c=1+s.directiveStylingLast;c0)&&(M=!0):A=r,l)if(0!==w){var Y=dl(i[_+1]);i[n+1]=Tm(Y,_),0!==Y&&(i[Y+1]=nr(i[Y+1],n)),i[_+1]=function Zp(i,s){return 131071&i|s<<17}(i[_+1],n)}else i[n+1]=Tm(_,0),0!==_&&(i[_+1]=nr(i[_+1],n)),_=n;else i[n+1]=Tm(w,0),0===_?_=n:i[w+1]=nr(i[w+1],n),w=n;M&&(i[n+1]=Am(i[n+1])),iD(i,A,n,!0),iD(i,A,n,!1),function CR(i,s,r,n,l){var c=l?i.residualClasses:i.residualStyles;null!=c&&"string"==typeof s&&Lp(c,s)>=0&&(r[n+1]=ru(r[n+1]))}(s,A,i,n,c),p=Tm(_,w),c?s.classBindings=p:s.styleBindings=p}(l,c,s,r,p,n)}}function iC(i,s,r,n,l){var c=null,p=r.directiveEnd,_=r.directiveStylingLast;for(-1===_?_=r.directiveStart:_++;_0;){var w=i[l],M=Array.isArray(w),A=M?w[1]:w,O=null===A,F=r[l+1];F===Kt&&(F=O?mr:void 0);var Y=O?NM(F,n):A===n?F:void 0;if(M&&!Km(Y)&&(Y=NM(w,n)),Km(Y)&&(_=Y,p))return _;var $=i[l+1];l=p?dl($):Ut($)}if(null!==s){var oe=c?s.residualClasses:s.residualStyles;null!=oe&&(_=NM(oe,n))}return _}function Km(i){return void 0!==i}function xR(i,s){return 0!=(i.flags&(s?16:32))}function K(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=Oe(),n=zn(),l=i+20,c=n.firstCreatePass?Kp(n,l,1,s,null):n.data[l],p=r[l]=Sm(r[11],s);k0(n,r,p,c),ps(c,!1)}function Ln(i){return Le("",i,""),Ln}function Le(i,s,r){var n=Oe(),l=eh(n,i,s,r);return l!==Kt&&au(n,Da(),l),Le}function th(i,s,r,n,l){var c=Oe(),p=ov(c,i,s,r,n,l);return p!==Kt&&au(c,Da(),p),th}function nh(i,s,r){!function Ms(i,s,r,n){var l=zn(),c=Qs(2);l.firstUpdatePass&&Zm(l,null,c,n);var p=Oe();if(r!==Kt&&ea(p,c,r)){var _=l.data[Da()];if(xR(_,n)&&!nC(l,c)){var M=n?_.classesWithoutHost:_.stylesWithoutHost;null!==M&&(r=Wl(M,r||"")),$k(l,_,p,r,n)}else!function iG(i,s,r,n,l,c,p,_){l===Kt&&(l=mr);for(var w=0,M=0,A=0>20;if(iv(i)||!i.multi){var $=new nl(M,l,z),oe=bC(w,s,l?O:O+Y,F);-1===oe?(e0(md(A,_),p,w),yv(p,i,s.length),s.push(w),A.directiveStart++,A.directiveEnd++,l&&(A.providerIndexes+=1048576),r.push($),_.push($)):(r[oe]=$,_[oe]=$)}else{var le=bC(w,s,O+Y,F),fe=bC(w,s,O,O+Y),we=fe>=0&&r[fe];if(l&&!we||!l&&!(le>=0&&r[le])){e0(md(A,_),p,w);var De=function r2(i,s,r,n,l){var c=new nl(i,r,z);return c.multi=[],c.index=s,c.componentProviders=0,xD(c,l,n&&!r),c}(l?RG:IG,r.length,l,n,M);!l&&we&&(r[fe].providerFactory=De),yv(p,i,s.length,0),s.push(w),A.directiveStart++,A.directiveEnd++,l&&(A.providerIndexes+=1048576),r.push(De),_.push(De)}else yv(p,i,le>-1?le:fe,xD(r[l?fe:le],M,!l&&n));!l&&n&&we&&r[fe].componentProviders++}}}function yv(i,s,r,n){var l=iv(s),c=function NI(i){return!!i.useClass}(s);if(l||c){var w=(c?ln(s.useClass):s).prototype.ngOnDestroy;if(w){var M=i.destroyHooks||(i.destroyHooks=[]);if(!l&&s.multi){var A=M.indexOf(r);-1===A?M.push(r,[n,w]):M[A+1].push(n,w)}else M.push(r,w)}}}function xD(i,s,r){return r&&i.componentProviders++,i.multi.push(s)-1}function bC(i,s,r,n){for(var l=r;l1&&void 0!==arguments[1]?arguments[1]:[];return function(r){r.providersResolver=function(n,l){return eo(n,l?l(i):i,s)}}}var LG=L(function i(){R(this,i)}),CC=L(function i(){R(this,i)}),bv=function(){function i(){R(this,i)}return L(i,[{key:"resolveComponentFactory",value:function(r){throw function d_(i){var s=Error("No component factory found for ".concat(Zn(i),". Did you add it to @NgModule.entryComponents?"));return s.ngComponent=i,s}(r)}}]),i}(),Wu=function(){var i=L(function s(){R(this,s)});return i.NULL=new bv,i}();function Cv(){return wv(di(),Oe())}function wv(i,s){return new tt(ds(i,s))}var tt=function(){var i=L(function s(r){R(this,s),this.nativeElement=r});return i.__NG_ELEMENT_ID__=Cv,i}();function NG(i){return i instanceof tt?i.nativeElement:i}var h_=L(function i(){R(this,i)}),Yu=function(){var i=L(function s(){R(this,s)});return i.__NG_ELEMENT_ID__=function(){return function VG(){var i=Oe(),r=Bo(di().index,i);return function BG(i){return i[11]}(go(r)?r:i)}()},i}(),HG=function(){var i=L(function s(){R(this,s)});return i.\u0275prov=Ue({token:i,providedIn:"root",factory:function(){return null}}),i}(),lh=L(function i(s){R(this,i),this.full=s,this.major=s.split(".")[0],this.minor=s.split(".")[1],this.patch=s.split(".").slice(2).join(".")}),wC=new lh("13.3.8"),AD={};function SC(i,s,r,n){for(var l=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==r;){var c=s[r.index];if(null!==c&&n.push(ri(c)),us(c))for(var p=10;p-1&&(Yp(r,l),cm(n,l))}this._attachedToViewContainer=!1}qp(this._lView[1],this._lView)}},{key:"onDestroy",value:function(r){CI(this._lView[1],this._lView,null,r)}},{key:"markForCheck",value:function(){Hu(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){!function Pk(i,s,r){var n=s[10];n.begin&&n.begin();try{$c(i,s,i.template,r)}catch(l){throw II(s,l),l}finally{n.end&&n.end()}}(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){}},{key:"attachToViewContainerRef",value:function(){if(this._appRef)throw new st(902,"");this._attachedToViewContainer=!0}},{key:"detachFromAppRef",value:function(){this._appRef=null,function jp(i,s){jo(i,s,s[11],2,null,null)}(this._lView[1],this._lView)}},{key:"attachToAppRef",value:function(r){if(this._attachedToViewContainer)throw new st(902,"");this._appRef=r}}]),i}(),p_=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n))._view=n,l}return L(r,[{key:"detectChanges",value:function(){oi(this._view)}},{key:"checkNoChanges",value:function(){}},{key:"context",get:function(){return null}}]),r}(Dr),uh=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this)).ngModule=n,l}return L(r,[{key:"resolveComponentFactory",value:function(l){var c=Li(l);return new PD(c,this.ngModule)}}]),r}(Wu);function a2(i){var s=[];for(var r in i)i.hasOwnProperty(r)&&s.push({propName:i[r],templateName:r});return s}var PD=function(i){se(r,i);var s=ue(r);function r(n,l){var c;return R(this,r),(c=s.call(this)).componentDef=n,c.ngModule=l,c.componentType=n.type,c.selector=function pa(i){return i.map(c4).join(",")}(n.selectors),c.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],c.isBoundToModule=!!l,c}return L(r,[{key:"inputs",get:function(){return a2(this.componentDef.inputs)}},{key:"outputs",get:function(){return a2(this.componentDef.outputs)}},{key:"create",value:function(l,c,p,_){var ae,we,w=(_=_||this.ngModule)?function ED(i,s){return{get:function(n,l,c){var p=i.get(n,AD,c);return p!==AD||l===AD?p:s.get(n,l,c)}}}(l,_.injector):l,M=w.get(h_,qb),A=w.get(HG,null),O=M.createRenderer(null,this.componentDef),F=this.componentDef.selectors[0][0]||"div",Y=p?function bI(i,s,r){if(ni(i))return i.selectRootElement(s,r===Ya.ShadowDom);var l="string"==typeof s?i.querySelector(s):s;return l.textContent="",l}(O,p,this.componentDef.encapsulation):Up(M.createRenderer(null,this.componentDef),F,function zG(i){var s=i.toLowerCase();return"svg"===s?"svg":"math"===s?"math":null}(F)),$=this.componentDef.onPush?576:528,oe=function YI(i,s){return{components:[],scheduler:i||QO,clean:rv,playerHandler:s||null,flags:0}}(),le=Jp(0,null,null,1,0,null,null,null,null,null),fe=zd(null,le,oe,$,null,null,M,O,A,w);ka(fe);try{var De=function jI(i,s,r,n,l,c){var p=r[1];r[20]=i;var w=Kp(p,20,2,"#host",null),M=w.mergedAttrs=s.hostAttrs;null!==M&&(zu(w,M,!0),null!==i&&(xa(l,i,M),null!==w.classes&&A0(l,i,w.classes),null!==w.styles&&hk(l,i,w.styles)));var A=n.createRenderer(i,s),O=zd(r,Sk(s),null,s.onPush?64:16,r[20],w,n,A,c||null,null);return p.firstCreatePass&&(e0(md(w,r),p,s.type),z0(p,w),TI(w,r.length,1)),nv(r,O),r[20]=O}(Y,this.componentDef,fe,M,O);if(Y)if(p)xa(O,Y,["ng-version",wC.full]);else{var Ee=function Nd(i){for(var s=[],r=[],n=1,l=2;n0&&A0(O,Y,bt.join(" "))}if(we=ld(le,20),void 0!==c)for(var Vn=we.projection=[],bi=0;bi1&&void 0!==arguments[1]?arguments[1]:kr.THROW_IF_NOT_FOUND,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:It.Default;return l===kr||l===qu||l===Qi?this:this._r3Injector.get(l,c,p)}},{key:"destroy",value:function(){var l=this._r3Injector;!l.destroyed&&l.destroy(),this.destroyCbs.forEach(function(c){return c()}),this.destroyCbs=null}},{key:"onDestroy",value:function(l){this.destroyCbs.push(l)}}]),r}(qu),kC=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this)).moduleType=n,null!==Fi(n)&&function o2(i){var s=new Set;!function r(n){var l=Fi(n,!0),c=l.id;null!==c&&(function RD(i,s,r){if(s&&s!==r)throw new Error("Duplicate module registered for ".concat(i," - ").concat(Zn(s)," vs ").concat(Zn(s.name)))}(c,ch.get(c),n),ch.set(c,n));var M,w=qt(tu(l.imports));try{for(w.s();!(M=w.n()).done;){var A=M.value;s.has(A)||(s.add(A),r(A))}}catch(O){w.e(O)}finally{w.f()}}(i)}(n),l}return L(r,[{key:"create",value:function(l){return new u2(this.moduleType,l)}}]),r}(g_);function m_(i,s,r){var n=ha()+i,l=Oe();return l[n]===Kt?ou(l,n,r?s.call(r):s()):function Um(i,s){return i[s]}(l,n)}function xs(i,s,r,n){return p2(Oe(),ha(),i,s,r,n)}function DC(i,s,r,n,l){return to(Oe(),ha(),i,s,r,n,l)}function Sv(i,s){var r=i[s];return r===Kt?void 0:r}function p2(i,s,r,n,l,c){var p=s+r;return ea(i,p,l)?ou(i,p+1,c?n.call(c,l):n(l)):Sv(i,p+1)}function to(i,s,r,n,l,c,p){var _=s+r;return gl(i,_,l,c)?ou(i,_+2,p?n.call(p,l,c):n(l,c)):Sv(i,_+2)}function vf(i,s){var n,r=zn(),l=i+20;r.firstCreatePass?(n=function LD(i,s){if(s)for(var r=s.length-1;r>=0;r--){var n=s[r];if(i===n.name)return n}}(s,r.pipeRegistry),r.data[l]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(l,n.onDestroy)):n=r.data[l];var c=n.factory||(n.factory=fs(n.type)),p=Mu(z);try{var _=Ap(!1),w=c();return Ap(_),function JI(i,s,r,n){r>=i.data.length&&(i.data[r]=null,i.blueprint[r]=null),s[r]=n}(r,Oe(),l,w),w}finally{Mu(p)}}function fh(i,s,r){var n=i+20,l=Oe(),c=Tu(l,n);return y_(l,n)?p2(l,ha(),s,c.transform,r,c):c.transform(r)}function TC(i,s,r,n){var l=i+20,c=Oe(),p=Tu(c,l);return y_(c,l)?to(c,ha(),s,p.transform,r,n,p):p.transform(r,n)}function y_(i,s){return i[1].data[s].pure}var YG=function(i){se(r,i);var s=ue(r);function r(){var n,l=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return R(this,r),(n=s.call(this)).__isAsync=l,n}return L(r,[{key:"emit",value:function(l){Ye(qe(r.prototype),"next",this).call(this,l)}},{key:"subscribe",value:function(l,c,p){var _,w,M,A=l,O=c||function(){return null},F=p;if(l&&"object"==typeof l){var Y=l;A=null===(_=Y.next)||void 0===_?void 0:_.bind(Y),O=null===(w=Y.error)||void 0===w?void 0:w.bind(Y),F=null===(M=Y.complete)||void 0===M?void 0:M.bind(Y)}this.__isAsync&&(O=AC(O),A&&(A=AC(A)),F&&(F=AC(F)));var $=Ye(qe(r.prototype),"subscribe",this).call(this,{next:A,error:O,complete:F});return l instanceof Te&&l.add($),$}}]),r}(Xe);function AC(i){return function(s){setTimeout(i,void 0,s)}}var ye=YG;function qG(){return this._results[wo()]()}var no=function(){function i(){var s=arguments.length>0&&void 0!==arguments[0]&&arguments[0];R(this,i),this._emitDistinctChangesOnly=s,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;var r=wo(),n=i.prototype;n[r]||(n[r]=qG)}return L(i,[{key:"changes",get:function(){return this._changes||(this._changes=new ye)}},{key:"get",value:function(r){return this._results[r]}},{key:"map",value:function(r){return this._results.map(r)}},{key:"filter",value:function(r){return this._results.filter(r)}},{key:"find",value:function(r){return this._results.find(r)}},{key:"reduce",value:function(r,n){return this._results.reduce(r,n)}},{key:"forEach",value:function(r){this._results.forEach(r)}},{key:"some",value:function(r){return this._results.some(r)}},{key:"toArray",value:function(){return this._results.slice()}},{key:"toString",value:function(){return this._results.toString()}},{key:"reset",value:function(r,n){var l=this;l.dirty=!1;var c=zo(r);(this._changesDetected=!function RM(i,s,r){if(i.length!==s.length)return!1;for(var n=0;n0;)this.remove(this.length-1)}},{key:"get",value:function(l){var c=y2(this._lContainer);return null!==c&&c[l]||null}},{key:"length",get:function(){return this._lContainer.length-10}},{key:"createEmbeddedView",value:function(l,c,p){var _=l.createEmbeddedView(c||{});return this.insert(_,p),_}},{key:"createComponent",value:function(l,c,p,_,w){var A,M=l&&!function bd(i){return"function"==typeof i}(l);if(M)A=c;else{var O=c||{};A=O.index,p=O.injector,_=O.projectableNodes,w=O.ngModuleRef}var F=M?l:new PD(Li(l)),Y=p||this.parentInjector;if(!w&&null==F.ngModule){var oe=(M?Y:this.parentInjector).get(qu,null);oe&&(w=oe)}var le=F.create(Y,_,void 0,w);return this.insert(le.hostView,A),le}},{key:"insert",value:function(l,c){var p=l._lView,_=p[1];if(function uO(i){return us(i[3])}(p)){var w=this.indexOf(l);if(-1!==w)this.detach(w);else{var M=p[3],A=new _2(M,M[6],M[3]);A.detach(A.indexOf(l))}}var O=this._adjustIndex(c),F=this._lContainer;!function Fd(i,s,r,n){var l=10+n,c=r.length;n>0&&(r[l-1][4]=s),n1&&void 0!==arguments[1]?arguments[1]:0;return null==l?this.length+c:l}}]),r}(wr);function y2(i){return i[8]}function FD(i){return i[8]||(i[8]=[])}function b2(i,s){var r,n=s[i.index];if(us(n))r=n;else{var l;if(8&i.type)l=ri(n);else{var c=s[11];l=c.createComment("");var p=ds(i,s);Wc(c,M0(c,p),l,function iI(i,s){return ni(i)?i.nextSibling(s):s.nextSibling}(c,p),!1)}s[i.index]=r=AI(n,s,l,i),nv(s,r)}return new _2(r,i,s)}var S2=function(){function i(s){R(this,i),this.queryList=s,this.matches=null}return L(i,[{key:"clone",value:function(){return new i(this.queryList)}},{key:"setDirty",value:function(){this.queryList.setDirty()}}]),i}(),JG=function(){function i(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];R(this,i),this.queries=s}return L(i,[{key:"createEmbeddedView",value:function(r){var n=r.queries;if(null!==n){for(var l=null!==r.contentQueries?r.contentQueries[0]:n.length,c=[],p=0;p2&&void 0!==arguments[2]?arguments[2]:null;R(this,i),this.predicate=s,this.flags=r,this.read=n}),e8=function(){function i(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];R(this,i),this.queries=s}return L(i,[{key:"elementStart",value:function(r,n){for(var l=0;l1&&void 0!==arguments[1]?arguments[1]:-1;R(this,i),this.metadata=s,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=r}return L(i,[{key:"elementStart",value:function(r,n){this.isApplyingToNode(n)&&this.matchTNode(r,n)}},{key:"elementEnd",value:function(r){this._declarationNodeIndex===r.index&&(this._appliesToNextNode=!1)}},{key:"template",value:function(r,n){this.elementStart(r,n)}},{key:"embeddedTView",value:function(r,n){return this.isApplyingToNode(r)?(this.crossesNgTemplate=!0,this.addMatch(-r.index,n),new i(this.metadata)):null}},{key:"isApplyingToNode",value:function(r){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){for(var n=this._declarationNodeIndex,l=r.parent;null!==l&&8&l.type&&l.index!==n;)l=l.parent;return n===(null!==l?l.index:-1)}return this._appliesToNextNode}},{key:"matchTNode",value:function(r,n){var l=this.metadata.predicate;if(Array.isArray(l))for(var c=0;c0)n.push(p[_/2]);else{for(var M=c[_+1],A=s[-w],O=10;O0&&(_=setTimeout(function(){p._callbacks=p._callbacks.filter(function(w){return w.timeoutId!==_}),n(p._didWork,p.getPendingTasks())},l)),this._callbacks.push({doneCb:n,timeoutId:_,updateCb:c})}},{key:"whenStable",value:function(n,l,c){if(c&&!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(n,l,c),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(n,l,c){return[]}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(Pt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),O_=function(){var i=function(){function s(){R(this,s),this._applications=new Map,Tv.addToWindow(this)}return L(s,[{key:"registerApplication",value:function(n,l){this._applications.set(n,l)}},{key:"unregisterApplication",value:function(n){this._applications.delete(n)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(n){return this._applications.get(n)||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(n){var l=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return Tv.findTestabilityInTree(this,n,l)}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"platform"}),i}(),I_=function(){function i(){R(this,i)}return L(i,[{key:"addToWindow",value:function(r){}},{key:"findTestabilityInTree",value:function(r,n,l){return null}}]),i}(),Tv=new I_,Ku=null,G2=new Ae("AllowMultipleToken"),ga=new Ae("PlatformOnDestroy");function b8(i,s,r){var n=new kC(r);return Promise.resolve(n)}var U2=L(function i(s,r){R(this,i),this.name=s,this.token=r});function w8(i){if(Ku&&!Ku.get(G2,!1))throw new st(400,"");Ku=i;var r=i.get(W2),n=i.get(Nt,null);return n&&n.forEach(function(l){return l()}),r}function j2(i,s){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n="Platform: ".concat(s),l=new Ae(n);return function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],p=HC();if(!p||p.injector.get(G2,!1)){var _=[].concat(yt(r),yt(c),[{provide:l,useValue:!0}]);i?i(_):w8(M8(_,n))}return S8()}}function S8(i){var s=HC();if(!s)throw new st(401,"");return s}function M8(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],s=arguments.length>1?arguments[1]:void 0;return kr.create({name:s,providers:[{provide:Cs,useValue:"platform"},{provide:ga,useValue:function(){return Ku=null}}].concat(yt(i))})}function HC(){var i;return null!==(i=null==Ku?void 0:Ku.get(W2))&&void 0!==i?i:null}var W2=function(){var i=function(){function s(r){R(this,s),this._injector=r,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return L(s,[{key:"bootstrapModuleFactory",value:function(n,l){var c=this,M=function $u(i,s){return"noop"===i?new z2:("zone.js"===i?void 0:i)||new Pt({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==s?void 0:s.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==s?void 0:s.ngZoneRunCoalescing)})}(l?l.ngZone:void 0,{ngZoneEventCoalescing:l&&l.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:l&&l.ngZoneRunCoalescing||!1}),A=[{provide:Pt,useValue:M}];return M.run(function(){var O=kr.create({providers:A,parent:c.injector,name:n.moduleType.name}),F=n.create(O),Y=F.injector.get(Vp,null);if(!Y)throw new st(402,"");return M.runOutsideAngular(function(){var oe=M.onError.subscribe({next:function(fe){Y.handleError(fe)}});F.onDestroy(function(){ox(c._modules,F),oe.unsubscribe()})}),function ax(i,s,r){try{var n=r();return Wm(n)?n.catch(function(l){throw s.runOutsideAngular(function(){return i.handleError(l)}),l}):n}catch(l){throw s.runOutsideAngular(function(){return i.handleError(l)}),l}}(Y,M,function(){var oe=F.injector.get(JD);return oe.runInitializers(),oe.donePromise.then(function(){return function gG(i){po(i,"Expected localeId to be defined"),"string"==typeof i&&i.toLowerCase().replace(/_/g,"-")}(F.injector.get(Xu,ju)||ju),c._moduleDoBootstrap(F),F})})})}},{key:"bootstrapModule",value:function(n){var l=this,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],p=Y2({},c);return b8(0,0,n).then(function(_){return l.bootstrapModuleFactory(_,p)})}},{key:"_moduleDoBootstrap",value:function(n){var l=n.injector.get(F_);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(function(p){return l.bootstrap(p)});else{if(!n.instance.ngDoBootstrap)throw new st(403,"");n.instance.ngDoBootstrap(l)}this._modules.push(n)}},{key:"onDestroy",value:function(n){this._destroyListeners.push(n)}},{key:"injector",get:function(){return this._injector}},{key:"destroy",value:function(){if(this._destroyed)throw new st(404,"");this._modules.slice().forEach(function(c){return c.destroy()}),this._destroyListeners.forEach(function(c){return c()});var l=this._injector.get(ga,null);null==l||l(),this._destroyed=!0}},{key:"destroyed",get:function(){return this._destroyed}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(kr))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"platform"}),i}();function Y2(i,s){return Array.isArray(s)?s.reduce(Y2,i):Object.assign(Object.assign({},i),s)}var F_=function(){var i=function(){function s(r,n,l,c){var p=this;R(this,s),this._zone=r,this._injector=n,this._exceptionHandler=l,this._initStatus=c,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:function(){p._zone.run(function(){p.tick()})}});var _=new Jn(function(M){p._stable=p._zone.isStable&&!p._zone.hasPendingMacrotasks&&!p._zone.hasPendingMicrotasks,p._zone.runOutsideAngular(function(){M.next(p._stable),M.complete()})}),w=new Jn(function(M){var A;p._zone.runOutsideAngular(function(){A=p._zone.onStable.subscribe(function(){Pt.assertNotInAngularZone(),BC(function(){!p._stable&&!p._zone.hasPendingMacrotasks&&!p._zone.hasPendingMicrotasks&&(p._stable=!0,M.next(!0))})})});var O=p._zone.onUnstable.subscribe(function(){Pt.assertInAngularZone(),p._stable&&(p._stable=!1,p._zone.runOutsideAngular(function(){M.next(!1)}))});return function(){A.unsubscribe(),O.unsubscribe()}});this.isStable=Rr(_,w.pipe(function wa(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},s=i.connector,r=void 0===s?function(){return new Xe}:s,n=i.resetOnError,l=void 0===n||n,c=i.resetOnComplete,p=void 0===c||c,_=i.resetOnRefCountZero,w=void 0===_||_;return function(M){var A=null,O=null,F=null,Y=0,$=!1,oe=!1,le=function(){null==O||O.unsubscribe(),O=null},fe=function(){le(),A=F=null,$=oe=!1},ae=function(){var De=A;fe(),null==De||De.unsubscribe()};return gr(function(we,De){Y++,!oe&&!$&&le();var Ee=F=null!=F?F:r();De.add(function(){0==--Y&&!oe&&!$&&(O=ss(ae,w))}),Ee.subscribe(De),A||(A=new Pg({next:function(bt){return Ee.next(bt)},error:function(bt){oe=!0,le(),O=ss(fe,l,bt),Ee.error(bt)},complete:function(){$=!0,le(),O=ss(fe,p),Ee.complete()}}),Wi(we).subscribe(A))})(M)}}()))}return L(s,[{key:"bootstrap",value:function(n,l){var _,c=this;if(!this._initStatus.done)throw new st(405,"");_=n instanceof CC?n:this._injector.get(Wu).resolveComponentFactory(n),this.componentTypes.push(_.componentType);var M=function C8(i){return i.isBoundToModule}(_)?void 0:this._injector.get(qu),O=_.create(kr.NULL,[],l||_.selector,M),F=O.location.nativeElement,Y=O.injector.get(xv,null),$=Y&&O.injector.get(O_);return Y&&$&&$.registerApplication(F,Y),O.onDestroy(function(){c.detachView(O.hostView),ox(c.components,O),$&&$.unregisterApplication(F)}),this._loadComponent(O),O}},{key:"tick",value:function(){var n=this;if(this._runningTick)throw new st(101,"");try{this._runningTick=!0;var p,c=qt(this._views);try{for(c.s();!(p=c.n()).done;)p.value.detectChanges()}catch(O){c.e(O)}finally{c.f()}}catch(O){this._zone.runOutsideAngular(function(){return n._exceptionHandler.handleError(O)})}finally{this._runningTick=!1}}},{key:"attachView",value:function(n){var l=n;this._views.push(l),l.attachToAppRef(this)}},{key:"detachView",value:function(n){var l=n;ox(this._views,l),l.detachFromAppRef()}},{key:"_loadComponent",value:function(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(tx,[]).concat(this._bootstrapListeners).forEach(function(c){return c(n)})}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach(function(n){return n.destroy()}),this._onMicrotaskEmptySubscription.unsubscribe()}},{key:"viewCount",get:function(){return this._views.length}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(Pt),ge(kr),ge(Vp),ge(JD))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}();function ox(i,s){var r=i.indexOf(s);r>-1&&i.splice(r,1)}var hn=function(){var i=L(function s(){R(this,s)});return i.__NG_ELEMENT_ID__=lx,i}();function lx(i){return function x8(i,s,r){if(Hb(i)&&!r){var n=Bo(i.index,s);return new Dr(n,n)}return 47&i.type?new Dr(s[16],s):null}(di(),Oe(),16==(16&i))}var hx=function(){function i(){R(this,i)}return L(i,[{key:"supports",value:function(r){return Gm(r)}},{key:"create",value:function(r){return new X2(r)}}]),i}(),O8=function(s,r){return r},X2=function(){function i(s){R(this,i),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=s||O8}return L(i,[{key:"forEachItem",value:function(r){var n;for(n=this._itHead;null!==n;n=n._next)r(n)}},{key:"forEachOperation",value:function(r){for(var n=this._itHead,l=this._removalsHead,c=0,p=null;n||l;){var _=!l||n&&n.currentIndex0&&void 0!==arguments[0]?arguments[0]:0;this._history.go(c)}},{key:"getState",value:function(){return this._history.state}}]),n}($o);return i.\u0275fac=function(r){return new(r||i)(ge(Jt))},i.\u0275prov=Ue({token:i,factory:function(){return function V8(){return new Ov(ge(Jt))}()},providedIn:"platform"}),i}();function ZC(){return!!window.history.pushState}function _x(i,s){if(0==i.length)return s;if(0==s.length)return i;var r=0;return i.endsWith("/")&&r++,s.startsWith("/")&&r++,2==r?i+s.substring(1):1==r?i+s:i+"/"+s}function XC(i){var s=i.match(/#|\?|$/),r=s&&s.index||i.length;return i.slice(0,r-("/"===i[r-1]?1:0))+i.slice(r)}function du(i){return i&&"?"!==i[0]?"?"+i:i}var tc=function(){var i=function(){function s(){R(this,s)}return L(s,[{key:"historyGo",value:function(n){throw new Error("Not implemented")}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=Ue({token:i,factory:function(){return function H8(i){var s=ge(Jt).location;return new aL(ge($o),s&&s.origin||"")}()},providedIn:"root"}),i}(),wf=new Ae("appBaseHref"),aL=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c){var p;if(R(this,n),(p=r.call(this))._platformLocation=l,p._removeListenerFns=[],null==c&&(c=p._platformLocation.getBaseHrefFromDOM()),null==c)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 p._baseHref=c,p}return L(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(c){this._removeListenerFns.push(this._platformLocation.onPopState(c),this._platformLocation.onHashChange(c))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"prepareExternalUrl",value:function(c){return _x(this._baseHref,c)}},{key:"path",value:function(){var c=arguments.length>0&&void 0!==arguments[0]&&arguments[0],p=this._platformLocation.pathname+du(this._platformLocation.search),_=this._platformLocation.hash;return _&&c?"".concat(p).concat(_):p}},{key:"pushState",value:function(c,p,_,w){var M=this.prepareExternalUrl(_+du(w));this._platformLocation.pushState(c,p,M)}},{key:"replaceState",value:function(c,p,_,w){var M=this.prepareExternalUrl(_+du(w));this._platformLocation.replaceState(c,p,M)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var p,_,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(_=(p=this._platformLocation).historyGo)||void 0===_||_.call(p,c)}}]),n}(tc);return i.\u0275fac=function(r){return new(r||i)(ge($o),ge(wf,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),z8=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c){var p;return R(this,n),(p=r.call(this))._platformLocation=l,p._baseHref="",p._removeListenerFns=[],null!=c&&(p._baseHref=c),p}return L(n,[{key:"ngOnDestroy",value:function(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}},{key:"onPopState",value:function(c){this._removeListenerFns.push(this._platformLocation.onPopState(c),this._platformLocation.onHashChange(c))}},{key:"getBaseHref",value:function(){return this._baseHref}},{key:"path",value:function(){var p=this._platformLocation.hash;return null==p&&(p="#"),p.length>0?p.substring(1):p}},{key:"prepareExternalUrl",value:function(c){var p=_x(this._baseHref,c);return p.length>0?"#"+p:p}},{key:"pushState",value:function(c,p,_,w){var M=this.prepareExternalUrl(_+du(w));0==M.length&&(M=this._platformLocation.pathname),this._platformLocation.pushState(c,p,M)}},{key:"replaceState",value:function(c,p,_,w){var M=this.prepareExternalUrl(_+du(w));0==M.length&&(M=this._platformLocation.pathname),this._platformLocation.replaceState(c,p,M)}},{key:"forward",value:function(){this._platformLocation.forward()}},{key:"back",value:function(){this._platformLocation.back()}},{key:"historyGo",value:function(){var p,_,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(_=(p=this._platformLocation).historyGo)||void 0===_||_.call(p,c)}}]),n}(tc);return i.\u0275fac=function(r){return new(r||i)(ge($o),ge(wf,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),z_=function(){var i=function(){function s(r,n){var l=this;R(this,s),this._subject=new ye,this._urlChangeListeners=[],this._platformStrategy=r;var c=this._platformStrategy.getBaseHref();this._platformLocation=n,this._baseHref=XC(oL(c)),this._platformStrategy.onPopState(function(p){l._subject.emit({url:l.path(!0),pop:!0,state:p.state,type:p.type})})}return L(s,[{key:"path",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.normalize(this._platformStrategy.path(n))}},{key:"getState",value:function(){return this._platformLocation.getState()}},{key:"isCurrentPathEqualTo",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this.path()==this.normalize(n+du(l))}},{key:"normalize",value:function(n){return s.stripTrailingSlash(function U8(i,s){return i&&s.startsWith(i)?s.substring(i.length):s}(this._baseHref,oL(n)))}},{key:"prepareExternalUrl",value:function(n){return n&&"/"!==n[0]&&(n="/"+n),this._platformStrategy.prepareExternalUrl(n)}},{key:"go",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.pushState(c,"",n,l),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+du(l)),c)}},{key:"replaceState",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this._platformStrategy.replaceState(c,"",n,l),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+du(l)),c)}},{key:"forward",value:function(){this._platformStrategy.forward()}},{key:"back",value:function(){this._platformStrategy.back()}},{key:"historyGo",value:function(){var l,c,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;null===(c=(l=this._platformStrategy).historyGo)||void 0===c||c.call(l,n)}},{key:"onUrlChange",value:function(n){var l=this;this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(function(c){l._notifyUrlChangeListeners(c.url,c.state)}))}},{key:"_notifyUrlChangeListeners",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",l=arguments.length>1?arguments[1]:void 0;this._urlChangeListeners.forEach(function(c){return c(n,l)})}},{key:"subscribe",value:function(n,l,c){return this._subject.subscribe({next:n,error:l,complete:c})}}]),s}();return i.normalizeQueryParams=du,i.joinWithSlash=_x,i.stripTrailingSlash=XC,i.\u0275fac=function(r){return new(r||i)(ge(tc),ge($o))},i.\u0275prov=Ue({token:i,factory:function(){return function G8(){return new z_(ge(tc),ge($o))}()},providedIn:"root"}),i}();function oL(i){return i.replace(/\/index.html$/,"")}function CL(i,s){s=encodeURIComponent(s);var n,r=qt(i.split(";"));try{for(r.s();!(n=r.n()).done;){var l=n.value,c=l.indexOf("="),_=Pr(-1==c?[l,""]:[l.slice(0,c),l.slice(c+1)],2),M=_[1];if(_[0].trim()===s)return decodeURIComponent(M)}}catch(A){r.e(A)}finally{r.f()}return null}var As=function(){var i=function(){function s(r,n,l,c){R(this,s),this._iterableDiffers=r,this._keyValueDiffers=n,this._ngEl=l,this._renderer=c,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return L(s,[{key:"klass",set:function(n){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof n?n.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(n){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof n?n.split(/\s+/):n,this._rawClass&&(Gm(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 n=this._iterableDiffer.diff(this._rawClass);n&&this._applyIterableChanges(n)}else if(this._keyValueDiffer){var l=this._keyValueDiffer.diff(this._rawClass);l&&this._applyKeyValueChanges(l)}}},{key:"_applyKeyValueChanges",value:function(n){var l=this;n.forEachAddedItem(function(c){return l._toggleClass(c.key,c.currentValue)}),n.forEachChangedItem(function(c){return l._toggleClass(c.key,c.currentValue)}),n.forEachRemovedItem(function(c){c.previousValue&&l._toggleClass(c.key,!1)})}},{key:"_applyIterableChanges",value:function(n){var l=this;n.forEachAddedItem(function(c){if("string"!=typeof c.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got ".concat(Zn(c.item)));l._toggleClass(c.item,!0)}),n.forEachRemovedItem(function(c){return l._toggleClass(c.item,!1)})}},{key:"_applyClasses",value:function(n){var l=this;n&&(Array.isArray(n)||n instanceof Set?n.forEach(function(c){return l._toggleClass(c,!0)}):Object.keys(n).forEach(function(c){return l._toggleClass(c,!!n[c])}))}},{key:"_removeClasses",value:function(n){var l=this;n&&(Array.isArray(n)||n instanceof Set?n.forEach(function(c){return l._toggleClass(c,!1)}):Object.keys(n).forEach(function(c){return l._toggleClass(c,!1)}))}},{key:"_toggleClass",value:function(n,l){var c=this;(n=n.trim())&&n.split(/\s+/g).forEach(function(p){l?c._renderer.addClass(c._ngEl.nativeElement,p):c._renderer.removeClass(c._ngEl.nativeElement,p)})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(ec),z(Pv),z(tt),z(Yu))},i.\u0275dir=be({type:i,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),i}(),oU=function(){function i(s,r,n,l){R(this,i),this.$implicit=s,this.ngForOf=r,this.index=n,this.count=l}return L(i,[{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}}]),i}(),ir=function(){var i=function(){function s(r,n,l){R(this,s),this._viewContainer=r,this._template=n,this._differs=l,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return L(s,[{key:"ngForOf",set:function(n){this._ngForOf=n,this._ngForOfDirty=!0}},{key:"ngForTrackBy",get:function(){return this._trackByFn},set:function(n){this._trackByFn=n}},{key:"ngForTemplate",set:function(n){n&&(this._template=n)}},{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){var l=this._differ.diff(this._ngForOf);l&&this._applyChanges(l)}}},{key:"_applyChanges",value:function(n){var l=this,c=this._viewContainer;n.forEachOperation(function(A,O,F){if(null==A.previousIndex)c.createEmbeddedView(l._template,new oU(A.item,l._ngForOf,-1,-1),null===F?void 0:F);else if(null==F)c.remove(null===O?void 0:O);else if(null!==O){var Y=c.get(O);c.move(Y,F),wL(Y,A)}});for(var p=0,_=c.length;p<_;p++){var M=c.get(p).context;M.index=p,M.count=_,M.ngForOf=this._ngForOf}n.forEachIdentityChange(function(A){wL(c.get(A.currentIndex),A)})}}],[{key:"ngTemplateContextGuard",value:function(n,l){return!0}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(wr),z(hr),z(ec))},i.\u0275dir=be({type:i,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),i}();function wL(i,s){i.context.$implicit=s.item}var en=function(){var i=function(){function s(r,n){R(this,s),this._viewContainer=r,this._context=new ML,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}return L(s,[{key:"ngIf",set:function(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}},{key:"ngIfThen",set:function(n){Mf("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(n){Mf("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}},{key:"_updateView",value:function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}}],[{key:"ngTemplateContextGuard",value:function(n,l){return!0}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(wr),z(hr))},i.\u0275dir=be({type:i,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),i}(),ML=L(function i(){R(this,i),this.$implicit=null,this.ngIf=null});function Mf(i,s){if(s&&!s.createEmbeddedView)throw new Error("".concat(i," must be a TemplateRef, but received '").concat(Zn(s),"'."))}var Rx=function(){function i(s,r){R(this,i),this._viewContainerRef=s,this._templateRef=r,this._created=!1}return L(i,[{key:"create",value:function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}},{key:"destroy",value:function(){this._created=!1,this._viewContainerRef.clear()}},{key:"enforceState",value:function(r){r&&!this._created?this.create():!r&&this._created&&this.destroy()}}]),i}(),rc=function(){var i=function(){function s(){R(this,s),this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return L(s,[{key:"ngSwitch",set:function(n){this._ngSwitch=n,0===this._caseCount&&this._updateDefaultCases(!0)}},{key:"_addCase",value:function(){return this._caseCount++}},{key:"_addDefault",value:function(n){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(n)}},{key:"_matchCase",value:function(n){var l=n==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||l,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),l}},{key:"_updateDefaultCases",value:function(n){if(this._defaultViews&&n!==this._defaultUsed){this._defaultUsed=n;for(var l=0;l1&&void 0!==arguments[1]?arguments[1]:EL;if(!n||!(n instanceof Map)&&"object"!=typeof n)return null;this.differ||(this.differ=this.differs.find(n).create());var p=this.differ.diff(n),_=c!==this.compareFn;return p&&(this.keyValues=[],p.forEachItem(function(w){l.keyValues.push(gU(w.key,w.currentValue))})),(p||_)&&(this.keyValues.sort(c),this.compareFn=c),this.keyValues}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Pv,16))},i.\u0275pipe=qi({name:"keyvalue",type:i,pure:!1}),i}();function EL(i,s){var r=i.key,n=s.key;if(r===n)return 0;if(void 0===r)return 1;if(void 0===n)return-1;if(null===r)return 1;if(null===n)return-1;if("string"==typeof r&&"string"==typeof n)return r1&&void 0!==arguments[1])||arguments[1],p=r.findTestabilityInTree(l,c);if(null==p)throw new Error("Could not find testability for element.");return p},cr.getAllAngularTestabilities=function(){return r.getAllTestabilities()},cr.getAllAngularRootElements=function(){return r.getAllRootElements()},cr.frameworkStabilizers||(cr.frameworkStabilizers=[]),cr.frameworkStabilizers.push(function(c){var p=cr.getAllAngularTestabilities(),_=p.length,w=!1,M=function(O){w=w||O,0==--_&&c(w)};p.forEach(function(A){A.whenStable(M)})})}},{key:"findTestabilityInTree",value:function(r,n,l){if(null==n)return null;var c=r.getTestability(n);return null!=c?c:l?fu().isShadowRoot(n)?this.findTestabilityInTree(r,n.host,!0):this.findTestabilityInTree(r,n.parentElement,!0):null}}],[{key:"init",value:function(){!function ix(i){Tv=i}(new i)}}]),i}(),TX=function(){var i=function(){function s(){R(this,s)}return L(s,[{key:"build",value:function(){return new XMLHttpRequest}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),Hx=new Ae("EventManagerPlugins"),q_=function(){var i=function(){function s(r,n){var l=this;R(this,s),this._zone=n,this._eventNameToPlugin=new Map,r.forEach(function(c){return c.manager=l}),this._plugins=r.slice().reverse()}return L(s,[{key:"addEventListener",value:function(n,l,c){return this._findPluginFor(l).addEventListener(n,l,c)}},{key:"addGlobalEventListener",value:function(n,l,c){return this._findPluginFor(l).addGlobalEventListener(n,l,c)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(n){var l=this._eventNameToPlugin.get(n);if(l)return l;for(var c=this._plugins,p=0;p-1&&(p.splice(F,1),M+=O+".")}),M+=w,0!=p.length||0===w.length)return null;var A={};return A.domEventName=_,A.fullKey=M,A}},{key:"getEventFullKey",value:function(c){var p="",_=function TU(i){var s=i.key;if(null==s){if(null==(s=i.keyIdentifier))return"Unidentified";s.startsWith("U+")&&(s=String.fromCharCode(parseInt(s.substring(2),16)),3===i.location&&hw.hasOwnProperty(s)&&(s=hw[s]))}return X_[s]||s}(c);return" "===(_=_.toLowerCase())?_="space":"."===_&&(_="dot"),UL.forEach(function(w){w!=_&&(0,jL[w])(c)&&(p+=w+".")}),p+=_}},{key:"eventCallback",value:function(c,p,_){return function(w){n.getEventFullKey(w)===c&&_.runGuarded(function(){return p(w)})}}},{key:"_normalizeKey",value:function(c){return"esc"===c?"escape":c}}]),n}(BL);return i.\u0275fac=function(r){return new(r||i)(ge(Jt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),qL=[{provide:yf,useValue:uw},{provide:Nt,useValue:function K_(){yh.makeCurrent(),xX.init()},multi:!0},{provide:Jt,useFactory:function AU(){return function Wb(i){pM=i}(document),document},deps:[]}],EU=j2(rL,"browser",qL),PU=[{provide:Cs,useValue:"root"},{provide:Vp,useFactory:function YL(){return new Vp},deps:[]},{provide:Hx,useClass:GL,multi:!0,deps:[Jt,Pt,yf]},{provide:Hx,useClass:WL,multi:!0,deps:[Jt]},{provide:Z_,useClass:Z_,deps:[q_,bh,Dv]},{provide:h_,useExisting:Z_},{provide:VL,useExisting:bh},{provide:bh,useClass:bh,deps:[Jt]},{provide:xv,useClass:xv,deps:[Pt]},{provide:q_,useClass:q_,deps:[Hx,Pt]},{provide:cw,useClass:TX,deps:[]}],ic=function(){var i=function(){function s(r){if(R(this,s),r)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 L(s,null,[{key:"withServerTransition",value:function(n){return{ngModule:s,providers:[{provide:Dv,useValue:n.appId},{provide:SU,useExisting:Dv},DX]}}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(i,12))},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({providers:PU,imports:[io,V_]}),i}();"undefined"!=typeof window&&window;var Yx=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=Ue({token:i,factory:function(r){return r?new(r||i):ge(qx)},providedIn:"root"}),i}(),qx=function(){var i=function(s){se(n,s);var r=ue(n);function n(l){var c;return R(this,n),(c=r.call(this))._doc=l,c}return L(n,[{key:"sanitize",value:function(c,p){if(null==p)return null;switch(c){case br.NONE:return p;case br.HTML:return sl(p,"HTML")?Ta(p):v0(this._doc,String(p)).toString();case br.STYLE:return sl(p,"Style")?Ta(p):p;case br.SCRIPT:if(sl(p,"Script"))return Ta(p);throw new Error("unsafe value used in a script context");case br.URL:return HO(p),sl(p,"URL")?Ta(p):Hc(String(p));case br.RESOURCE_URL:if(sl(p,"ResourceURL"))return Ta(p);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(c," (see https://g.co/ng/security#xss)"))}}},{key:"bypassSecurityTrustHtml",value:function(c){return function Vz(i){return new Nz(i)}(c)}},{key:"bypassSecurityTrustStyle",value:function(c){return function YM(i){return new Bz(i)}(c)}},{key:"bypassSecurityTrustScript",value:function(c){return function qM(i){return new VO(i)}(c)}},{key:"bypassSecurityTrustUrl",value:function(c){return function Hz(i){return new WM(i)}(c)}},{key:"bypassSecurityTrustResourceUrl",value:function(c){return function _s(i){return new Td(i)}(c)}}]),n}(Yx);return i.\u0275fac=function(r){return new(r||i)(ge(Jt))},i.\u0275prov=Ue({token:i,factory:function(r){var n;return n=r?new r:function UU(i){return new qx(i.get(Jt))}(ge(kr)),n},providedIn:"root"}),i}();function dt(){for(var i=arguments.length,s=new Array(i),r=0;r0){var c=n.slice(0,l),p=c.toLowerCase(),_=n.slice(l+1).trim();r.maybeSetNormalizedName(c,p),r.headers.has(p)?r.headers.get(p).push(_):r.headers.set(p,[_])}})}:function(){r.headers=new Map,Object.keys(s).forEach(function(n){var l=s[n],c=n.toLowerCase();"string"==typeof l&&(l=[l]),l.length>0&&(r.headers.set(c,l),r.maybeSetNormalizedName(n,c))})}:this.headers=new Map}return L(i,[{key:"has",value:function(r){return this.init(),this.headers.has(r.toLowerCase())}},{key:"get",value:function(r){this.init();var n=this.headers.get(r.toLowerCase());return n&&n.length>0?n[0]:null}},{key:"keys",value:function(){return this.init(),Array.from(this.normalizedNames.values())}},{key:"getAll",value:function(r){return this.init(),this.headers.get(r.toLowerCase())||null}},{key:"append",value:function(r,n){return this.clone({name:r,value:n,op:"a"})}},{key:"set",value:function(r,n){return this.clone({name:r,value:n,op:"s"})}},{key:"delete",value:function(r,n){return this.clone({name:r,value:n,op:"d"})}},{key:"maybeSetNormalizedName",value:function(r,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,r)}},{key:"init",value:function(){var r=this;this.lazyInit&&(this.lazyInit instanceof i?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(n){return r.applyUpdate(n)}),this.lazyUpdate=null))}},{key:"copyFrom",value:function(r){var n=this;r.init(),Array.from(r.headers.keys()).forEach(function(l){n.headers.set(l,r.headers.get(l)),n.normalizedNames.set(l,r.normalizedNames.get(l))})}},{key:"clone",value:function(r){var n=new i;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof i?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([r]),n}},{key:"applyUpdate",value:function(r){var n=r.name.toLowerCase();switch(r.op){case"a":case"s":var l=r.value;if("string"==typeof l&&(l=[l]),0===l.length)return;this.maybeSetNormalizedName(r.name,n);var c=("a"===r.op?this.headers.get(n):void 0)||[];c.push.apply(c,yt(l)),this.headers.set(n,c);break;case"d":var p=r.value;if(p){var _=this.headers.get(n);if(!_)return;0===(_=_.filter(function(w){return-1===p.indexOf(w)})).length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,_)}else this.headers.delete(n),this.normalizedNames.delete(n)}}},{key:"forEach",value:function(r){var n=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(l){return r(n.normalizedNames.get(l),n.headers.get(l))})}}]),i}(),vw=function(){function i(){R(this,i)}return L(i,[{key:"encodeKey",value:function(r){return Q_(r)}},{key:"encodeValue",value:function(r){return Q_(r)}},{key:"decodeKey",value:function(r){return decodeURIComponent(r)}},{key:"decodeValue",value:function(r){return decodeURIComponent(r)}}]),i}();function jU(i,s){var r=new Map;return i.length>0&&i.replace(/^\?/,"").split("&").forEach(function(l){var c=l.indexOf("="),_=Pr(-1==c?[s.decodeKey(l),""]:[s.decodeKey(l.slice(0,c)),s.decodeValue(l.slice(c+1))],2),w=_[0],M=_[1],A=r.get(w)||[];A.push(M),r.set(w,A)}),r}var WU=/%(\d[a-f0-9])/gi,gw={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function Q_(i){return encodeURIComponent(i).replace(WU,function(s,r){var n;return null!==(n=gw[r])&&void 0!==n?n:s})}function mw(i){return"".concat(i)}var Df=function(){function i(){var s=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(R(this,i),this.updates=null,this.cloneFrom=null,this.encoder=r.encoder||new vw,r.fromString){if(r.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=jU(r.fromString,this.encoder)}else r.fromObject?(this.map=new Map,Object.keys(r.fromObject).forEach(function(n){var l=r.fromObject[n];s.map.set(n,Array.isArray(l)?l:[l])})):this.map=null}return L(i,[{key:"has",value:function(r){return this.init(),this.map.has(r)}},{key:"get",value:function(r){this.init();var n=this.map.get(r);return n?n[0]:null}},{key:"getAll",value:function(r){return this.init(),this.map.get(r)||null}},{key:"keys",value:function(){return this.init(),Array.from(this.map.keys())}},{key:"append",value:function(r,n){return this.clone({param:r,value:n,op:"a"})}},{key:"appendAll",value:function(r){var n=[];return Object.keys(r).forEach(function(l){var c=r[l];Array.isArray(c)?c.forEach(function(p){n.push({param:l,value:p,op:"a"})}):n.push({param:l,value:c,op:"a"})}),this.clone(n)}},{key:"set",value:function(r,n){return this.clone({param:r,value:n,op:"s"})}},{key:"delete",value:function(r,n){return this.clone({param:r,value:n,op:"d"})}},{key:"toString",value:function(){var r=this;return this.init(),this.keys().map(function(n){var l=r.encoder.encodeKey(n);return r.map.get(n).map(function(c){return l+"="+r.encoder.encodeValue(c)}).join("&")}).filter(function(n){return""!==n}).join("&")}},{key:"clone",value:function(r){var n=new i({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(r),n}},{key:"init",value:function(){var r=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(n){return r.map.set(n,r.cloneFrom.map.get(n))}),this.updates.forEach(function(n){switch(n.op){case"a":case"s":var l=("a"===n.op?r.map.get(n.param):void 0)||[];l.push(mw(n.value)),r.map.set(n.param,l);break;case"d":if(void 0===n.value){r.map.delete(n.param);break}var c=r.map.get(n.param)||[],p=c.indexOf(mw(n.value));-1!==p&&c.splice(p,1),c.length>0?r.map.set(n.param,c):r.map.delete(n.param)}}),this.cloneFrom=this.updates=null)}}]),i}(),YU=function(){function i(){R(this,i),this.map=new Map}return L(i,[{key:"set",value:function(r,n){return this.map.set(r,n),this}},{key:"get",value:function(r){return this.map.has(r)||this.map.set(r,r.defaultValue()),this.map.get(r)}},{key:"delete",value:function(r){return this.map.delete(r),this}},{key:"has",value:function(r){return this.map.has(r)}},{key:"keys",value:function(){return this.map.keys()}}]),i}();function Zx(i){return"undefined"!=typeof ArrayBuffer&&i instanceof ArrayBuffer}function tF(i){return"undefined"!=typeof Blob&&i instanceof Blob}function Xx(i){return"undefined"!=typeof FormData&&i instanceof FormData}var Kx=function(){function i(s,r,n,l){var c;if(R(this,i),this.url=r,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=s.toUpperCase(),function eF(i){switch(i){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||l?(this.body=void 0!==n?n:null,c=l):c=n,c&&(this.reportProgress=!!c.reportProgress,this.withCredentials=!!c.withCredentials,c.responseType&&(this.responseType=c.responseType),c.headers&&(this.headers=c.headers),c.context&&(this.context=c.context),c.params&&(this.params=c.params)),this.headers||(this.headers=new Bv),this.context||(this.context=new YU),this.params){var p=this.params.toString();if(0===p.length)this.urlWithParams=r;else{var _=r.indexOf("?");this.urlWithParams=r+(-1===_?"?":_0&&void 0!==arguments[0]?arguments[0]:{},l=r.method||this.method,c=r.url||this.url,p=r.responseType||this.responseType,_=void 0!==r.body?r.body:this.body,w=void 0!==r.withCredentials?r.withCredentials:this.withCredentials,M=void 0!==r.reportProgress?r.reportProgress:this.reportProgress,A=r.headers||this.headers,O=r.params||this.params,F=null!==(n=r.context)&&void 0!==n?n:this.context;return void 0!==r.setHeaders&&(A=Object.keys(r.setHeaders).reduce(function(Y,$){return Y.set($,r.setHeaders[$])},A)),r.setParams&&(O=Object.keys(r.setParams).reduce(function(Y,$){return Y.set($,r.setParams[$])},O)),new i(l,c,_,{params:O,headers:A,context:F,reportProgress:M,responseType:p,withCredentials:w})}}]),i}(),Ti=function(){return(Ti=Ti||{})[Ti.Sent=0]="Sent",Ti[Ti.UploadProgress=1]="UploadProgress",Ti[Ti.ResponseHeader=2]="ResponseHeader",Ti[Ti.DownloadProgress=3]="DownloadProgress",Ti[Ti.Response=4]="Response",Ti[Ti.User=5]="User",Ti}(),_w=L(function i(s){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:200,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"OK";R(this,i),this.headers=s.headers||new Bv,this.status=void 0!==s.status?s.status:r,this.statusText=s.statusText||n,this.url=s.url||null,this.ok=this.status>=200&&this.status<300}),yw=function(i){se(r,i);var s=ue(r);function r(){var n,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return R(this,r),(n=s.call(this,l)).type=Ti.ResponseHeader,n}return L(r,[{key:"clone",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new r({headers:l.headers||this.headers,status:void 0!==l.status?l.status:this.status,statusText:l.statusText||this.statusText,url:l.url||this.url||void 0})}}]),r}(_w),rF=function(i){se(r,i);var s=ue(r);function r(){var n,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return R(this,r),(n=s.call(this,l)).type=Ti.Response,n.body=void 0!==l.body?l.body:null,n}return L(r,[{key:"clone",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new r({body:void 0!==l.body?l.body:this.body,headers:l.headers||this.headers,status:void 0!==l.status?l.status:this.status,statusText:l.statusText||this.statusText,url:l.url||this.url||void 0})}}]),r}(_w),$x=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,0,"Unknown Error")).name="HttpErrorResponse",l.ok=!1,l.message=l.status>=200&&l.status<300?"Http failure during parsing for ".concat(n.url||"(unknown url)"):"Http failure response for ".concat(n.url||"(unknown url)",": ").concat(n.status," ").concat(n.statusText),l.error=n.error||null,l}return L(r)}(_w);function bw(i,s){return{body:s,headers:i.headers,context:i.context,observe:i.observe,params:i.params,reportProgress:i.reportProgress,responseType:i.responseType,withCredentials:i.withCredentials}}var iF=function(){var i=function(){function s(r){R(this,s),this.handler=r}return L(s,[{key:"request",value:function(n,l){var _,c=this,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(n instanceof Kx)_=n;else{var w=void 0;w=p.headers instanceof Bv?p.headers:new Bv(p.headers);var M=void 0;p.params&&(M=p.params instanceof Df?p.params:new Df({fromObject:p.params})),_=new Kx(n,l,void 0!==p.body?p.body:null,{headers:w,context:p.context,params:M,reportProgress:p.reportProgress,responseType:p.responseType||"json",withCredentials:p.withCredentials})}var A=dt(_).pipe(oc(function(F){return c.handler.handle(F)}));if(n instanceof Kx||"events"===p.observe)return A;var O=A.pipe(Ur(function(F){return F instanceof rF}));switch(p.observe||"body"){case"body":switch(_.responseType){case"arraybuffer":return O.pipe(on(function(F){if(null!==F.body&&!(F.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return F.body}));case"blob":return O.pipe(on(function(F){if(null!==F.body&&!(F.body instanceof Blob))throw new Error("Response is not a Blob.");return F.body}));case"text":return O.pipe(on(function(F){if(null!==F.body&&"string"!=typeof F.body)throw new Error("Response is not a string.");return F.body}));default:return O.pipe(on(function(F){return F.body}))}case"response":return O;default:throw new Error("Unreachable: unhandled observe type ".concat(p.observe,"}"))}}},{key:"delete",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("DELETE",n,l)}},{key:"get",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("GET",n,l)}},{key:"head",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("HEAD",n,l)}},{key:"jsonp",value:function(n,l){return this.request("JSONP",n,{params:(new Df).append(l,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}},{key:"options",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.request("OPTIONS",n,l)}},{key:"patch",value:function(n,l){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PATCH",n,bw(c,l))}},{key:"post",value:function(n,l){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("POST",n,bw(c,l))}},{key:"put",value:function(n,l){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.request("PUT",n,bw(c,l))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(QL))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),aF=function(){function i(s,r){R(this,i),this.next=s,this.interceptor=r}return L(i,[{key:"handle",value:function(r){return this.interceptor.intercept(r,this.next)}}]),i}(),Qx=new Ae("HTTP_INTERCEPTORS"),oF=function(){var i=function(){function s(){R(this,s)}return L(s,[{key:"intercept",value:function(n,l){return l.handle(n)}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),sF=/^\)\]\}',?\n/,uF=function(){var i=function(){function s(r){R(this,s),this.xhrFactory=r}return L(s,[{key:"handle",value:function(n){var l=this;if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new Jn(function(c){var p=l.xhrFactory.build();if(p.open(n.method,n.urlWithParams),n.withCredentials&&(p.withCredentials=!0),n.headers.forEach(function(fe,ae){return p.setRequestHeader(fe,ae.join(","))}),n.headers.has("Accept")||p.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){var _=n.detectContentTypeHeader();null!==_&&p.setRequestHeader("Content-Type",_)}if(n.responseType){var w=n.responseType.toLowerCase();p.responseType="json"!==w?w:"text"}var M=n.serializeBody(),A=null,O=function(){if(null!==A)return A;var ae=p.statusText||"OK",we=new Bv(p.getAllResponseHeaders()),De=function lF(i){return"responseURL"in i&&i.responseURL?i.responseURL:/^X-Request-URL:/m.test(i.getAllResponseHeaders())?i.getResponseHeader("X-Request-URL"):null}(p)||n.url;return A=new yw({headers:we,status:p.status,statusText:ae,url:De})},F=function(){var ae=O(),we=ae.headers,De=ae.status,Ee=ae.statusText,We=ae.url,bt=null;204!==De&&(bt=void 0===p.response?p.responseText:p.response),0===De&&(De=bt?200:0);var Vn=De>=200&&De<300;if("json"===n.responseType&&"string"==typeof bt){var bi=bt;bt=bt.replace(sF,"");try{bt=""!==bt?JSON.parse(bt):null}catch(ci){bt=bi,Vn&&(Vn=!1,bt={error:ci,text:bt})}}Vn?(c.next(new rF({body:bt,headers:we,status:De,statusText:Ee,url:We||void 0})),c.complete()):c.error(new $x({error:bt,headers:we,status:De,statusText:Ee,url:We||void 0}))},Y=function(ae){var we=O(),Ee=new $x({error:ae,status:p.status||0,statusText:p.statusText||"Unknown Error",url:we.url||void 0});c.error(Ee)},$=!1,oe=function(ae){$||(c.next(O()),$=!0);var we={type:Ti.DownloadProgress,loaded:ae.loaded};ae.lengthComputable&&(we.total=ae.total),"text"===n.responseType&&!!p.responseText&&(we.partialText=p.responseText),c.next(we)},le=function(ae){var we={type:Ti.UploadProgress,loaded:ae.loaded};ae.lengthComputable&&(we.total=ae.total),c.next(we)};return p.addEventListener("load",F),p.addEventListener("error",Y),p.addEventListener("timeout",Y),p.addEventListener("abort",Y),n.reportProgress&&(p.addEventListener("progress",oe),null!==M&&p.upload&&p.upload.addEventListener("progress",le)),p.send(M),c.next({type:Ti.Sent}),function(){p.removeEventListener("error",Y),p.removeEventListener("abort",Y),p.removeEventListener("load",F),p.removeEventListener("timeout",Y),n.reportProgress&&(p.removeEventListener("progress",oe),null!==M&&p.upload&&p.upload.removeEventListener("progress",le)),p.readyState!==p.DONE&&p.abort()}})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(cw))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),kh=new Ae("XSRF_COOKIE_NAME"),eT=new Ae("XSRF_HEADER_NAME"),tT=L(function i(){R(this,i)}),KU=function(){var i=function(){function s(r,n,l){R(this,s),this.doc=r,this.platform=n,this.cookieName=l,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return L(s,[{key:"getToken",value:function(){if("server"===this.platform)return null;var n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=CL(n,this.cookieName),this.lastCookieString=n),this.lastToken}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(Jt),ge(yf),ge(kh))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),Cw=function(){var i=function(){function s(r,n){R(this,s),this.tokenService=r,this.headerName=n}return L(s,[{key:"intercept",value:function(n,l){var c=n.url.toLowerCase();if("GET"===n.method||"HEAD"===n.method||c.startsWith("http://")||c.startsWith("https://"))return l.handle(n);var p=this.tokenService.getToken();return null!==p&&!n.headers.has(this.headerName)&&(n=n.clone({headers:n.headers.set(this.headerName,p)})),l.handle(n)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(tT),ge(eT))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),nT=function(){var i=function(){function s(r,n){R(this,s),this.backend=r,this.injector=n,this.chain=null}return L(s,[{key:"handle",value:function(n){if(null===this.chain){var l=this.injector.get(Qx,[]);this.chain=l.reduceRight(function(c,p){return new aF(c,p)},this.backend)}return this.chain.handle(n)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(JL),ge(kr))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),$U=function(){var i=function(){function s(){R(this,s)}return L(s,null,[{key:"disable",value:function(){return{ngModule:s,providers:[{provide:Cw,useClass:oF}]}}},{key:"withOptions",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{ngModule:s,providers:[n.cookieName?{provide:kh,useValue:n.cookieName}:[],n.headerName?{provide:eT,useValue:n.headerName}:[]]}}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({providers:[Cw,{provide:Qx,useExisting:Cw,multi:!0},{provide:tT,useClass:KU},{provide:kh,useValue:"XSRF-TOKEN"},{provide:eT,useValue:"X-XSRF-TOKEN"}]}),i}(),QU=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({providers:[iF,{provide:QL,useClass:nT},uF,{provide:JL,useExisting:uF}],imports:[[$U.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),i}(),Na=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this))._value=n,l}return L(r,[{key:"value",get:function(){return this.getValue()}},{key:"_subscribe",value:function(l){var c=Ye(qe(r.prototype),"_subscribe",this).call(this,l);return!c.closed&&l.next(this._value),c}},{key:"getValue",value:function(){var p=this._value;if(this.hasError)throw this.thrownError;return this._throwIfClosed(),p}},{key:"next",value:function(l){Ye(qe(r.prototype),"next",this).call(this,this._value=l)}}]),r}(Xe),ty=Array.isArray,JU=Object.getPrototypeOf,e6=Object.prototype,t6=Object.keys;function cF(i){if(1===i.length){var s=i[0];if(ty(s))return{args:s,keys:null};if(function n6(i){return i&&"object"==typeof i&&JU(i)===e6}(s)){var r=t6(s);return{args:r.map(function(n){return s[n]}),keys:r}}}return{args:i,keys:null}}var r6=Array.isArray;function rT(i){return on(function(s){return function fF(i,s){return r6(s)?i.apply(void 0,yt(s)):i(s)}(i,s)})}function dF(i,s){return i.reduce(function(r,n,l){return r[n]=s[l],r},{})}function ny(){for(var i=arguments.length,s=new Array(i),r=0;r2&&void 0!==arguments[2]?arguments[2]:Ec;return function(n){hF(s,function(){for(var l=i.length,c=new Array(l),p=l,_=l,w=function(O){hF(s,function(){var F=Wi(i[O],s),Y=!1;F.subscribe(ve(n,function($){c[O]=$,Y||(Y=!0,_--),_||n.next(r(c.slice()))},function(){--p||n.complete()}))},n)},M=0;M=2,!0))}function To(i){return gr(function(s,r){var c,n=null,l=!1;n=s.subscribe(ve(r,void 0,void 0,function(p){c=ji(i(p,To(i)(s))),n?(n.unsubscribe(),n=null,c.subscribe(r)):l=!0})),l&&(n.unsubscribe(),n=null,c.subscribe(r))})}function xf(i){return i<=0?function(){return Sr}:gr(function(s,r){var n=[];s.subscribe(ve(r,function(l){n.push(l),i0&&void 0!==arguments[0]?arguments[0]:l6;return gr(function(s,r){var n=!1;s.subscribe(ve(r,function(l){n=!0,r.next(l)},function(){return n?r.complete():r.error(i())}))})}function l6(){return new ww}function pF(i){return gr(function(s,r){var n=!1;s.subscribe(ve(r,function(l){n=!0,r.next(l)},function(){n||r.next(i),r.complete()}))})}function xh(i,s){var r=arguments.length>=2;return function(n){return n.pipe(i?Ur(function(l,c){return i(l,c,n)}):Ec,gn(1),r?pF(s):oT(function(){return new ww}))}}function ao(i,s,r){var n=Hn(i)||s||r?{next:i,error:s,complete:r}:i;return n?gr(function(l,c){var p;null===(p=n.subscribe)||void 0===p||p.call(n);var _=!0;l.subscribe(ve(c,function(w){var M;null===(M=n.next)||void 0===M||M.call(n,w),c.next(w)},function(){var w;_=!1,null===(w=n.complete)||void 0===w||w.call(n),c.complete()},function(w){var M;_=!1,null===(M=n.error)||void 0===M||M.call(n,w),c.error(w)},function(){var w,M;_&&(null===(w=n.unsubscribe)||void 0===w||w.call(n)),null===(M=n.finalize)||void 0===M||M.call(n)}))}):Ec}var sc=L(function i(s,r){R(this,i),this.id=s,this.url=r}),lT=function(i){se(r,i);var s=ue(r);function r(n,l){var c,p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"imperative",_=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return R(this,r),(c=s.call(this,n,l)).navigationTrigger=p,c.restoredState=_,c}return L(r,[{key:"toString",value:function(){return"NavigationStart(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),r}(sc),Th=function(i){se(r,i);var s=ue(r);function r(n,l,c){var p;return R(this,r),(p=s.call(this,n,l)).urlAfterRedirects=c,p}return L(r,[{key:"toString",value:function(){return"NavigationEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"')")}}]),r}(sc),uT=function(i){se(r,i);var s=ue(r);function r(n,l,c){var p;return R(this,r),(p=s.call(this,n,l)).reason=c,p}return L(r,[{key:"toString",value:function(){return"NavigationCancel(id: ".concat(this.id,", url: '").concat(this.url,"')")}}]),r}(sc),vF=function(i){se(r,i);var s=ue(r);function r(n,l,c){var p;return R(this,r),(p=s.call(this,n,l)).error=c,p}return L(r,[{key:"toString",value:function(){return"NavigationError(id: ".concat(this.id,", url: '").concat(this.url,"', error: ").concat(this.error,")")}}]),r}(sc),cT=function(i){se(r,i);var s=ue(r);function r(n,l,c,p){var _;return R(this,r),(_=s.call(this,n,l)).urlAfterRedirects=c,_.state=p,_}return L(r,[{key:"toString",value:function(){return"RoutesRecognized(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),r}(sc),gF=function(i){se(r,i);var s=ue(r);function r(n,l,c,p){var _;return R(this,r),(_=s.call(this,n,l)).urlAfterRedirects=c,_.state=p,_}return L(r,[{key:"toString",value:function(){return"GuardsCheckStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),r}(sc),c6=function(i){se(r,i);var s=ue(r);function r(n,l,c,p,_){var w;return R(this,r),(w=s.call(this,n,l)).urlAfterRedirects=c,w.state=p,w.shouldActivate=_,w}return L(r,[{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,")")}}]),r}(sc),fT=function(i){se(r,i);var s=ue(r);function r(n,l,c,p){var _;return R(this,r),(_=s.call(this,n,l)).urlAfterRedirects=c,_.state=p,_}return L(r,[{key:"toString",value:function(){return"ResolveStart(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),r}(sc),mF=function(i){se(r,i);var s=ue(r);function r(n,l,c,p){var _;return R(this,r),(_=s.call(this,n,l)).urlAfterRedirects=c,_.state=p,_}return L(r,[{key:"toString",value:function(){return"ResolveEnd(id: ".concat(this.id,", url: '").concat(this.url,"', urlAfterRedirects: '").concat(this.urlAfterRedirects,"', state: ").concat(this.state,")")}}]),r}(sc),dT=function(){function i(s){R(this,i),this.route=s}return L(i,[{key:"toString",value:function(){return"RouteConfigLoadStart(path: ".concat(this.route.path,")")}}]),i}(),_F=function(){function i(s){R(this,i),this.route=s}return L(i,[{key:"toString",value:function(){return"RouteConfigLoadEnd(path: ".concat(this.route.path,")")}}]),i}(),f6=function(){function i(s){R(this,i),this.snapshot=s}return L(i,[{key:"toString",value:function(){return"ChildActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),i}(),Tf=function(){function i(s){R(this,i),this.snapshot=s}return L(i,[{key:"toString",value:function(){return"ChildActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),i}(),Ah=function(){function i(s){R(this,i),this.snapshot=s}return L(i,[{key:"toString",value:function(){return"ActivationStart(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),i}(),yF=function(){function i(s){R(this,i),this.snapshot=s}return L(i,[{key:"toString",value:function(){return"ActivationEnd(path: '".concat(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"","')")}}]),i}(),bF=function(){function i(s,r,n){R(this,i),this.routerEvent=s,this.position=r,this.anchor=n}return L(i,[{key:"toString",value:function(){var r=this.position?"".concat(this.position[0],", ").concat(this.position[1]):null;return"Scroll(anchor: '".concat(this.anchor,"', position: '").concat(r,"')")}}]),i}(),An="primary",Ps=function(){function i(s){R(this,i),this.params=s||{}}return L(i,[{key:"has",value:function(r){return Object.prototype.hasOwnProperty.call(this.params,r)}},{key:"get",value:function(r){if(this.has(r)){var n=this.params[r];return Array.isArray(n)?n[0]:n}return null}},{key:"getAll",value:function(r){if(this.has(r)){var n=this.params[r];return Array.isArray(n)?n:[n]}return[]}},{key:"keys",get:function(){return Object.keys(this.params)}}]),i}();function Eh(i){return new Ps(i)}var hT="ngNavigationCancelingError";function Mw(i){var s=Error("NavigationCancelingError: "+i);return s[hT]=!0,s}function h6(i,s,r){var n=r.path.split("/");if(n.length>i.length||"full"===r.pathMatch&&(s.hasChildren()||n.length0?i[i.length-1]:null}function ya(i,s){for(var r in i)i.hasOwnProperty(r)&&s(i[r],r)}function Os(i){return eD(i)?i:Wm(i)?Wi(Promise.resolve(i)):dt(i)}var pT={exact:function vT(i,s,r){if(!Ph(i.segments,s.segments)||!ay(i.segments,s.segments,r)||i.numberOfChildren!==s.numberOfChildren)return!1;for(var n in s.children)if(!i.children[n]||!vT(i.children[n],s.children[n],r))return!1;return!0},subset:Af},MF={exact:function iy(i,s){return ra(i,s)},subset:function g6(i,s){return Object.keys(s).length<=Object.keys(i).length&&Object.keys(s).every(function(r){return CF(i[r],s[r])})},ignored:function(){return!0}};function kw(i,s,r){return pT[r.paths](i.root,s.root,r.matrixParams)&&MF[r.queryParams](i.queryParams,s.queryParams)&&!("exact"===r.fragment&&i.fragment!==s.fragment)}function Af(i,s,r){return Dw(i,s,s.segments,r)}function Dw(i,s,r,n){if(i.segments.length>r.length){var l=i.segments.slice(0,r.length);return!(!Ph(l,r)||s.hasChildren()||!ay(l,r,n))}if(i.segments.length===r.length){if(!Ph(i.segments,r)||!ay(i.segments,r,n))return!1;for(var c in s.children)if(!i.children[c]||!Af(i.children[c],s.children[c],n))return!1;return!0}var p=r.slice(0,i.segments.length),_=r.slice(i.segments.length);return!!(Ph(i.segments,p)&&ay(i.segments,p,n)&&i.children[An])&&Dw(i.children[An],s,_,n)}function ay(i,s,r){return s.every(function(n,l){return MF[r](i[l].parameters,n.parameters)})}var Ef=function(){function i(s,r,n){R(this,i),this.root=s,this.queryParams=r,this.fragment=n}return L(i,[{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Eh(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){return _6.serialize(this)}}]),i}(),Fn=function(){function i(s,r){var n=this;R(this,i),this.segments=s,this.children=r,this.parent=null,ya(r,function(l,c){return l.parent=n})}return L(i,[{key:"hasChildren",value:function(){return this.numberOfChildren>0}},{key:"numberOfChildren",get:function(){return Object.keys(this.children).length}},{key:"toString",value:function(){return sy(this)}}]),i}(),oy=function(){function i(s,r){R(this,i),this.path=s,this.parameters=r}return L(i,[{key:"parameterMap",get:function(){return this._parameterMap||(this._parameterMap=Eh(this.parameters)),this._parameterMap}},{key:"toString",value:function(){return PF(this)}}]),i}();function Ph(i,s){return i.length===s.length&&i.every(function(r,n){return r.path===s[n].path})}var xF=L(function i(){R(this,i)}),m6=function(){function i(){R(this,i)}return L(i,[{key:"parse",value:function(r){var n=new k6(r);return new Ef(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}},{key:"serialize",value:function(r){var n="/".concat(Vv(r.root,!0)),l=function b6(i){var s=Object.keys(i).map(function(r){var n=i[r];return Array.isArray(n)?n.map(function(l){return"".concat(xw(r),"=").concat(xw(l))}).join("&"):"".concat(xw(r),"=").concat(xw(n))}).filter(function(r){return!!r});return s.length?"?".concat(s.join("&")):""}(r.queryParams),c="string"==typeof r.fragment?"#".concat(function AF(i){return encodeURI(i)}(r.fragment)):"";return"".concat(n).concat(l).concat(c)}}]),i}(),_6=new m6;function sy(i){return i.segments.map(function(s){return PF(s)}).join("/")}function Vv(i,s){if(!i.hasChildren())return sy(i);if(s){var r=i.children[An]?Vv(i.children[An],!1):"",n=[];return ya(i.children,function(c,p){p!==An&&n.push("".concat(p,":").concat(Vv(c,!1)))}),n.length>0?"".concat(r,"(").concat(n.join("//"),")"):r}var l=function DF(i,s){var r=[];return ya(i.children,function(n,l){l===An&&(r=r.concat(s(n,l)))}),ya(i.children,function(n,l){l!==An&&(r=r.concat(s(n,l)))}),r}(i,function(c,p){return p===An?[Vv(i.children[An],!1)]:["".concat(p,":").concat(Vv(c,!1))]});return 1===Object.keys(i.children).length&&null!=i.children[An]?"".concat(sy(i),"/").concat(l[0]):"".concat(sy(i),"/(").concat(l.join("//"),")")}function TF(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function xw(i){return TF(i).replace(/%3B/gi,";")}function Tw(i){return TF(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Aw(i){return decodeURIComponent(i)}function EF(i){return Aw(i.replace(/\+/g,"%20"))}function PF(i){return"".concat(Tw(i.path)).concat(function y6(i){return Object.keys(i).map(function(s){return";".concat(Tw(s),"=").concat(Tw(i[s]))}).join("")}(i.parameters))}var ly=/^[^\/()?;=#]+/;function Oh(i){var s=i.match(ly);return s?s[0]:""}var C6=/^[^=?&#]+/,S6=/^[^&#]+/,k6=function(){function i(s){R(this,i),this.url=s,this.remaining=s}return L(i,[{key:"parseRootSegment",value:function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Fn([],{}):new Fn([],this.parseChildren())}},{key:"parseQueryParams",value:function(){var r={};if(this.consumeOptional("?"))do{this.parseQueryParam(r)}while(this.consumeOptional("&"));return r}},{key:"parseFragment",value:function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}},{key:"parseChildren",value:function(){if(""===this.remaining)return{};this.consumeOptional("/");var r=[];for(this.peekStartsWith("(")||r.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),r.push(this.parseSegment());var n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));var l={};return this.peekStartsWith("(")&&(l=this.parseParens(!1)),(r.length>0||Object.keys(n).length>0)&&(l[An]=new Fn(r,n)),l}},{key:"parseSegment",value:function(){var r=Oh(this.remaining);if(""===r&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '".concat(this.remaining,"'."));return this.capture(r),new oy(Aw(r),this.parseMatrixParams())}},{key:"parseMatrixParams",value:function(){for(var r={};this.consumeOptional(";");)this.parseParam(r);return r}},{key:"parseParam",value:function(r){var n=Oh(this.remaining);if(n){this.capture(n);var l="";if(this.consumeOptional("=")){var c=Oh(this.remaining);c&&this.capture(l=c)}r[Aw(n)]=Aw(l)}}},{key:"parseQueryParam",value:function(r){var n=function w6(i){var s=i.match(C6);return s?s[0]:""}(this.remaining);if(n){this.capture(n);var l="";if(this.consumeOptional("=")){var c=function M6(i){var s=i.match(S6);return s?s[0]:""}(this.remaining);c&&this.capture(l=c)}var p=EF(n),_=EF(l);if(r.hasOwnProperty(p)){var w=r[p];Array.isArray(w)||(r[p]=w=[w]),w.push(_)}else r[p]=_}}},{key:"parseParens",value:function(r){var n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var l=Oh(this.remaining),c=this.remaining[l.length];if("/"!==c&&")"!==c&&";"!==c)throw new Error("Cannot parse url '".concat(this.url,"'"));var p=void 0;l.indexOf(":")>-1?(p=l.substr(0,l.indexOf(":")),this.capture(p),this.capture(":")):r&&(p=An);var _=this.parseChildren();n[p]=1===Object.keys(_).length?_[An]:new Fn([],_),this.consumeOptional("//")}return n}},{key:"peekStartsWith",value:function(r){return this.remaining.startsWith(r)}},{key:"consumeOptional",value:function(r){return!!this.peekStartsWith(r)&&(this.remaining=this.remaining.substring(r.length),!0)}},{key:"capture",value:function(r){if(!this.consumeOptional(r))throw new Error('Expected "'.concat(r,'".'))}}]),i}(),OF=function(){function i(s){R(this,i),this._root=s}return L(i,[{key:"root",get:function(){return this._root.value}},{key:"parent",value:function(r){var n=this.pathFromRoot(r);return n.length>1?n[n.length-2]:null}},{key:"children",value:function(r){var n=gT(r,this._root);return n?n.children.map(function(l){return l.value}):[]}},{key:"firstChild",value:function(r){var n=gT(r,this._root);return n&&n.children.length>0?n.children[0].value:null}},{key:"siblings",value:function(r){var n=mT(r,this._root);return n.length<2?[]:n[n.length-2].children.map(function(c){return c.value}).filter(function(c){return c!==r})}},{key:"pathFromRoot",value:function(r){return mT(r,this._root).map(function(n){return n.value})}}]),i}();function gT(i,s){if(i===s.value)return s;var n,r=qt(s.children);try{for(r.s();!(n=r.n()).done;){var c=gT(i,n.value);if(c)return c}}catch(p){r.e(p)}finally{r.f()}return null}function mT(i,s){if(i===s.value)return[s];var n,r=qt(s.children);try{for(r.s();!(n=r.n()).done;){var c=mT(i,n.value);if(c.length)return c.unshift(s),c}}catch(p){r.e(p)}finally{r.f()}return[]}var lc=function(){function i(s,r){R(this,i),this.value=s,this.children=r}return L(i,[{key:"toString",value:function(){return"TreeNode(".concat(this.value,")")}}]),i}();function Hv(i){var s={};return i&&i.children.forEach(function(r){return s[r.value.outlet]=r}),s}var IF=function(i){se(r,i);var s=ue(r);function r(n,l){var c;return R(this,r),(c=s.call(this,n)).snapshot=l,Ow(an(c),n),c}return L(r,[{key:"toString",value:function(){return this.snapshot.toString()}}]),r}(OF);function _T(i,s){var r=function D6(i,s){var p=new Ew([],{},{},"",{},An,s,null,i.root,-1,{});return new Pw("",new lc(p,[]))}(i,s),n=new Na([new oy("",{})]),l=new Na({}),c=new Na({}),p=new Na({}),_=new Na(""),w=new Vr(n,l,p,_,c,An,s,r.root);return w.snapshot=r.root,new IF(new lc(w,[]),r)}var Vr=function(){function i(s,r,n,l,c,p,_,w){R(this,i),this.url=s,this.params=r,this.queryParams=n,this.fragment=l,this.data=c,this.outlet=p,this.component=_,this._futureSnapshot=w}return L(i,[{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(on(function(r){return Eh(r)}))),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(on(function(r){return Eh(r)}))),this._queryParamMap}},{key:"toString",value:function(){return this.snapshot?this.snapshot.toString():"Future(".concat(this._futureSnapshot,")")}}]),i}();function yT(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"emptyOnly",r=i.pathFromRoot,n=0;if("always"!==s)for(n=r.length-1;n>=1;){var l=r[n],c=r[n-1];if(l.routeConfig&&""===l.routeConfig.path)n--;else{if(c.component)break;n--}}return bT(r.slice(n))}function bT(i){return i.reduce(function(s,r){return{params:Object.assign(Object.assign({},s.params),r.params),data:Object.assign(Object.assign({},s.data),r.data),resolve:Object.assign(Object.assign({},s.resolve),r._resolvedData)}},{params:{},data:{},resolve:{}})}var Ew=function(){function i(s,r,n,l,c,p,_,w,M,A,O){R(this,i),this.url=s,this.params=r,this.queryParams=n,this.fragment=l,this.data=c,this.outlet=p,this.component=_,this.routeConfig=w,this._urlSegment=M,this._lastPathIndex=A,this._resolve=O}return L(i,[{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=Eh(this.params)),this._paramMap}},{key:"queryParamMap",get:function(){return this._queryParamMap||(this._queryParamMap=Eh(this.queryParams)),this._queryParamMap}},{key:"toString",value:function(){var r=this.url.map(function(l){return l.toString()}).join("/"),n=this.routeConfig?this.routeConfig.path:"";return"Route(url:'".concat(r,"', path:'").concat(n,"')")}}]),i}(),Pw=function(i){se(r,i);var s=ue(r);function r(n,l){var c;return R(this,r),(c=s.call(this,l)).url=n,Ow(an(c),l),c}return L(r,[{key:"toString",value:function(){return uy(this._root)}}]),r}(OF);function Ow(i,s){s.value._routerState=i,s.children.forEach(function(r){return Ow(i,r)})}function uy(i){var s=i.children.length>0?" { ".concat(i.children.map(uy).join(", ")," } "):"";return"".concat(i.value).concat(s)}function Ih(i){if(i.snapshot){var s=i.snapshot,r=i._futureSnapshot;i.snapshot=r,ra(s.queryParams,r.queryParams)||i.queryParams.next(r.queryParams),s.fragment!==r.fragment&&i.fragment.next(r.fragment),ra(s.params,r.params)||i.params.next(r.params),function p6(i,s){if(i.length!==s.length)return!1;for(var r=0;rl;){if(c-=l,!(n=n.parent))throw new Error("Invalid number of '../'");l=n.segments.length}return new Rw(n,!1,l-c)}(r.snapshot._urlSegment,r.snapshot._lastPathIndex+c,i.numberOfDoubleDots)}(c,s,i),_=p.processChildren?Lw(p.segmentGroup,p.index,c.commands):Ao(p.segmentGroup,p.index,c.commands);return Gv(s.root,p.segmentGroup,_,n,l)}function Rh(i){return"object"==typeof i&&null!=i&&!i.outlets&&!i.segmentPath}function zv(i){return"object"==typeof i&&null!=i&&i.outlets}function Gv(i,s,r,n,l){var c={};if(n&&ya(n,function(_,w){c[w]=Array.isArray(_)?_.map(function(M){return"".concat(M)}):"".concat(_)}),i===s)return new Ef(r,c,l);var p=ST(i,s,r);return new Ef(p,c,l)}function ST(i,s,r){var n={};return ya(i.children,function(l,c){n[c]=l===s?r:ST(l,s,r)}),new Fn(i.segments,n)}var LF=function(){function i(s,r,n){if(R(this,i),this.isAbsolute=s,this.numberOfDoubleDots=r,this.commands=n,s&&n.length>0&&Rh(n[0]))throw new Error("Root segment cannot have matrix parameters");var l=n.find(zv);if(l&&l!==SF(n))throw new Error("{outlets:{}} has to be the last command")}return L(i,[{key:"toRoot",value:function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}]),i}(),Rw=L(function i(s,r,n){R(this,i),this.segmentGroup=s,this.processChildren=r,this.index=n});function Ao(i,s,r){if(i||(i=new Fn([],{})),0===i.segments.length&&i.hasChildren())return Lw(i,s,r);var n=function x6(i,s,r){for(var n=0,l=s,c={match:!1,pathIndex:0,commandIndex:0};l=r.length)return c;var p=i.segments[l],_=r[n];if(zv(_))break;var w="".concat(_),M=n0&&void 0===w)break;if(w&&M&&"object"==typeof M&&void 0===M.outlets){if(!dy(w,M,p))return c;n+=2}else{if(!dy(w,{},p))return c;n++}l++}return{match:!0,pathIndex:l,commandIndex:n}}(i,s,r),l=r.slice(n.commandIndex);if(n.match&&n.pathIndex1&&void 0!==arguments[1]?arguments[1]:"",r=0;r0)?Object.assign({},jF):{matched:!0,consumedSegments:[],remainingSegments:r,parameters:{},positionalParamSegments:{}};var c=(s.matcher||h6)(r,i,s);if(!c)return Object.assign({},jF);var p={};ya(c.posParams,function(w,M){p[M]=w.path});var _=c.consumed.length>0?Object.assign(Object.assign({},p),c.consumed[c.consumed.length-1].parameters):p;return{matched:!0,consumedSegments:c.consumed,remainingSegments:r.slice(c.consumed.length),parameters:_,positionalParamSegments:null!==(n=c.posParams)&&void 0!==n?n:{}}}function Of(i,s,r,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"corrected";if(r.length>0&&B6(i,r,n)){var c=new Fn(s,DT(i,s,n,new Fn(r,i.children)));return c._sourceSegment=i,c._segmentIndexShift=s.length,{segmentGroup:c,slicedSegments:[]}}if(0===r.length&&V6(i,r,n)){var p=new Fn(i.segments,fc(i,s,r,n,i.children,l));return p._sourceSegment=i,p._segmentIndexShift=s.length,{segmentGroup:p,slicedSegments:r}}var _=new Fn(i.segments,i.children);return _._sourceSegment=i,_._segmentIndexShift=s.length,{segmentGroup:_,slicedSegments:r}}function fc(i,s,r,n,l,c){var w,p={},_=qt(n);try{for(_.s();!(w=_.n()).done;){var M=w.value;if(Vw(i,r,M)&&!l[Rs(M)]){var A=new Fn([],{});A._sourceSegment=i,A._segmentIndexShift="legacy"===c?i.segments.length:s.length,p[Rs(M)]=A}}}catch(O){_.e(O)}finally{_.f()}return Object.assign(Object.assign({},l),p)}function DT(i,s,r,n){var l={};l[An]=n,n._sourceSegment=i,n._segmentIndexShift=s.length;var p,c=qt(r);try{for(c.s();!(p=c.n()).done;){var _=p.value;if(""===_.path&&Rs(_)!==An){var w=new Fn([],{});w._sourceSegment=i,w._segmentIndexShift=s.length,l[Rs(_)]=w}}}catch(M){c.e(M)}finally{c.f()}return l}function B6(i,s,r){return r.some(function(n){return Vw(i,s,n)&&Rs(n)!==An})}function V6(i,s,r){return r.some(function(n){return Vw(i,s,n)})}function Vw(i,s,r){return(!(i.hasChildren()||s.length>0)||"full"!==r.pathMatch)&&""===r.path}function xT(i,s,r,n){return!!(Rs(i)===n||n!==An&&Vw(s,r,i))&&("**"===i.path||Bw(s,i,r).matched)}function py(i,s,r){return 0===s.length&&!i.children[r]}var vy=L(function i(s){R(this,i),this.segmentGroup=s||null}),WF=L(function i(s){R(this,i),this.urlTree=s});function jv(i){return ry(new vy(i))}function TT(i){return ry(new WF(i))}function YF(i){return ry(new Error("Only absolute redirects can have named outlets. redirectTo: '".concat(i,"'")))}var XF=function(){function i(s,r,n,l,c){R(this,i),this.configLoader=r,this.urlSerializer=n,this.urlTree=l,this.config=c,this.allowRedirects=!0,this.ngModule=s.get(qu)}return L(i,[{key:"apply",value:function(){var r=this,n=Of(this.urlTree.root,[],[],this.config).segmentGroup,l=new Fn(n.segments,n.children);return this.expandSegmentGroup(this.ngModule,this.config,l,An).pipe(on(function(_){return r.createUrlTree(AT(_),r.urlTree.queryParams,r.urlTree.fragment)})).pipe(To(function(_){if(_ instanceof WF)return r.allowRedirects=!1,r.match(_.urlTree);throw _ instanceof vy?r.noMatchError(_):_}))}},{key:"match",value:function(r){var n=this;return this.expandSegmentGroup(this.ngModule,this.config,r.root,An).pipe(on(function(p){return n.createUrlTree(AT(p),r.queryParams,r.fragment)})).pipe(To(function(p){throw p instanceof vy?n.noMatchError(p):p}))}},{key:"noMatchError",value:function(r){return new Error("Cannot match any routes. URL Segment: '".concat(r.segmentGroup,"'"))}},{key:"createUrlTree",value:function(r,n,l){var c=r.segments.length>0?new Fn([],ed({},An,r)):r;return new Ef(c,n,l)}},{key:"expandSegmentGroup",value:function(r,n,l,c){return 0===l.segments.length&&l.hasChildren()?this.expandChildren(r,n,l).pipe(on(function(p){return new Fn([],p)})):this.expandSegment(r,l,n,l.segments,c,!0)}},{key:"expandChildren",value:function(r,n,l){for(var c=this,p=[],_=0,w=Object.keys(l.children);_=2;return function(n){return n.pipe(i?Ur(function(l,c){return i(l,c,n)}):Ec,xf(1),r?pF(s):oT(function(){return new ww}))}}())}},{key:"expandSegment",value:function(r,n,l,c,p,_){var w=this;return Wi(l).pipe(oc(function(M){return w.expandSegmentAgainstRoute(r,n,l,M,c,p,_).pipe(To(function(O){if(O instanceof vy)return dt(null);throw O}))}),xh(function(M){return!!M}),To(function(M,A){if(M instanceof ww||"EmptyError"===M.name)return py(n,c,p)?dt(new Fn([],{})):jv(n);throw M}))}},{key:"expandSegmentAgainstRoute",value:function(r,n,l,c,p,_,w){return xT(c,n,p,_)?void 0===c.redirectTo?this.matchSegmentAgainstRoute(r,n,c,p,_):w&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(r,n,l,c,p,_):jv(n):jv(n)}},{key:"expandSegmentAgainstRouteUsingRedirect",value:function(r,n,l,c,p,_){return"**"===c.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(r,l,c,_):this.expandRegularSegmentAgainstRouteUsingRedirect(r,n,l,c,p,_)}},{key:"expandWildCardWithParamsAgainstRouteUsingRedirect",value:function(r,n,l,c){var p=this,_=this.applyRedirectCommands([],l.redirectTo,{});return l.redirectTo.startsWith("/")?TT(_):this.lineralizeSegments(l,_).pipe(Ri(function(w){var M=new Fn(w,{});return p.expandSegment(r,M,n,w,c,!1)}))}},{key:"expandRegularSegmentAgainstRouteUsingRedirect",value:function(r,n,l,c,p,_){var w=this,M=Bw(n,c,p),O=M.consumedSegments,F=M.remainingSegments,Y=M.positionalParamSegments;if(!M.matched)return jv(n);var $=this.applyRedirectCommands(O,c.redirectTo,Y);return c.redirectTo.startsWith("/")?TT($):this.lineralizeSegments(c,$).pipe(Ri(function(oe){return w.expandSegment(r,n,l,oe.concat(F),_,!1)}))}},{key:"matchSegmentAgainstRoute",value:function(r,n,l,c,p){var _=this;if("**"===l.path)return l.loadChildren?(l._loadedConfig?dt(l._loadedConfig):this.configLoader.load(r.injector,l)).pipe(on(function($){return l._loadedConfig=$,new Fn(c,{})})):dt(new Fn(c,{}));var M=Bw(n,l,c),O=M.consumedSegments,F=M.remainingSegments;return M.matched?this.getChildConfig(r,l,c).pipe(Ri(function($){var oe=$.module,le=$.routes,fe=Of(n,O,F,le),ae=fe.segmentGroup,we=fe.slicedSegments,De=new Fn(ae.segments,ae.children);if(0===we.length&&De.hasChildren())return _.expandChildren(oe,le,De).pipe(on(function(Vn){return new Fn(O,Vn)}));if(0===le.length&&0===we.length)return dt(new Fn(O,{}));var We=Rs(l)===p;return _.expandSegment(oe,De,le,we,We?An:p,!0).pipe(on(function(Vn){return new Fn(O.concat(Vn.segments),Vn.children)}))})):jv(n)}},{key:"getChildConfig",value:function(r,n,l){var c=this;return n.children?dt(new Nw(n.children,r)):n.loadChildren?void 0!==n._loadedConfig?dt(n._loadedConfig):this.runCanLoadGuards(r.injector,n,l).pipe(Ri(function(p){return p?c.configLoader.load(r.injector,n).pipe(on(function(_){return n._loadedConfig=_,_})):function qF(i){return ry(Mw("Cannot load children because the guard of the route \"path: '".concat(i.path,"'\" returned false")))}(n)})):dt(new Nw([],r))}},{key:"runCanLoadGuards",value:function(r,n,l){var c=this,p=n.canLoad;if(!p||0===p.length)return dt(!0);var _=p.map(function(w){var A,M=r.get(w);if(function O6(i){return i&&uc(i.canLoad)}(M))A=M.canLoad(n,l);else{if(!uc(M))throw new Error("Invalid CanLoad guard");A=M(n,l)}return Os(A)});return dt(_).pipe(Lh(),ao(function(w){if(Pf(w)){var M=Mw('Redirecting to "'.concat(c.urlSerializer.serialize(w),'"'));throw M.url=w,M}}),on(function(w){return!0===w}))}},{key:"lineralizeSegments",value:function(r,n){for(var l=[],c=n.root;;){if(l=l.concat(c.segments),0===c.numberOfChildren)return dt(l);if(c.numberOfChildren>1||!c.children[An])return YF(r.redirectTo);c=c.children[An]}}},{key:"applyRedirectCommands",value:function(r,n,l){return this.applyRedirectCreatreUrlTree(n,this.urlSerializer.parse(n),r,l)}},{key:"applyRedirectCreatreUrlTree",value:function(r,n,l,c){var p=this.createSegmentGroup(r,n.root,l,c);return new Ef(p,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}},{key:"createQueryParams",value:function(r,n){var l={};return ya(r,function(c,p){if("string"==typeof c&&c.startsWith(":")){var w=c.substring(1);l[p]=n[w]}else l[p]=c}),l}},{key:"createSegmentGroup",value:function(r,n,l,c){var p=this,_=this.createSegments(r,n.segments,l,c),w={};return ya(n.children,function(M,A){w[A]=p.createSegmentGroup(r,M,l,c)}),new Fn(_,w)}},{key:"createSegments",value:function(r,n,l,c){var p=this;return n.map(function(_){return _.path.startsWith(":")?p.findPosParam(r,_,c):p.findOrReturn(_,l)})}},{key:"findPosParam",value:function(r,n,l){var c=l[n.path.substring(1)];if(!c)throw new Error("Cannot redirect to '".concat(r,"'. Cannot find '").concat(n.path,"'."));return c}},{key:"findOrReturn",value:function(r,n){var p,l=0,c=qt(n);try{for(c.s();!(p=c.n()).done;){var _=p.value;if(_.path===r.path)return n.splice(l),_;l++}}catch(w){c.e(w)}finally{c.f()}return r}}]),i}();function AT(i){for(var s={},r=0,n=Object.keys(i.children);r0||p.hasChildren())&&(s[l]=p)}return function KF(i){if(1===i.numberOfChildren&&i.children[An]){var s=i.children[An];return new Fn(i.segments.concat(s.segments),s.children)}return i}(new Fn(i.segments,s))}var $F=L(function i(s){R(this,i),this.path=s,this.route=this.path[this.path.length-1]}),Hw=L(function i(s,r){R(this,i),this.component=s,this.route=r});function z6(i,s,r){var n=i._root;return gy(n,s?s._root:null,r,[n.value])}function zw(i,s,r){var n=function QF(i){if(!i)return null;for(var s=i.parent;s;s=s.parent){var r=s.routeConfig;if(r&&r._loadedConfig)return r._loadedConfig}return null}(s);return(n?n.module.injector:r).get(i)}function gy(i,s,r,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},c=Hv(s);return i.children.forEach(function(p){JF(p,c[p.value.outlet],r,n.concat([p.value]),l),delete c[p.value.outlet]}),ya(c,function(p,_){return _y(p,r.getContext(_),l)}),l}function JF(i,s,r,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{canDeactivateChecks:[],canActivateChecks:[]},c=i.value,p=s?s.value:null,_=r?r.getContext(i.value.outlet):null;if(p&&c.routeConfig===p.routeConfig){var w=my(p,c,c.routeConfig.runGuardsAndResolvers);w?l.canActivateChecks.push(new $F(n)):(c.data=p.data,c._resolvedData=p._resolvedData),gy(i,s,c.component?_?_.children:null:r,n,l),w&&_&&_.outlet&&_.outlet.isActivated&&l.canDeactivateChecks.push(new Hw(_.outlet.component,p))}else p&&_y(s,_,l),l.canActivateChecks.push(new $F(n)),gy(i,null,c.component?_?_.children:null:r,n,l);return l}function my(i,s,r){if("function"==typeof r)return r(i,s);switch(r){case"pathParamsChange":return!Ph(i.url,s.url);case"pathParamsOrQueryParamsChange":return!Ph(i.url,s.url)||!ra(i.queryParams,s.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!cy(i,s)||!ra(i.queryParams,s.queryParams);default:return!cy(i,s)}}function _y(i,s,r){var n=Hv(i),l=i.value;ya(n,function(c,p){_y(c,l.component?s?s.children.getContext(p):null:s,r)}),r.canDeactivateChecks.push(new Hw(l.component&&s&&s.outlet&&s.outlet.isActivated?s.outlet.component:null,l))}var aN=L(function i(){R(this,i)});function oN(i){return new Jn(function(s){return s.error(i)})}var sN=function(){function i(s,r,n,l,c,p){R(this,i),this.rootComponentType=s,this.config=r,this.urlTree=n,this.url=l,this.paramsInheritanceStrategy=c,this.relativeLinkResolution=p}return L(i,[{key:"recognize",value:function(){var r=Of(this.urlTree.root,[],[],this.config.filter(function(_){return void 0===_.redirectTo}),this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,r,An);if(null===n)return null;var l=new Ew([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},An,this.rootComponentType,null,this.urlTree.root,-1,{}),c=new lc(l,n),p=new Pw(this.url,c);return this.inheritParamsAndData(p._root),p}},{key:"inheritParamsAndData",value:function(r){var n=this,l=r.value,c=yT(l,this.paramsInheritanceStrategy);l.params=Object.freeze(c.params),l.data=Object.freeze(c.data),r.children.forEach(function(p){return n.inheritParamsAndData(p)})}},{key:"processSegmentGroup",value:function(r,n,l){return 0===n.segments.length&&n.hasChildren()?this.processChildren(r,n):this.processSegment(r,n,n.segments,l)}},{key:"processChildren",value:function(r,n){for(var l=[],c=0,p=Object.keys(n.children);c0?SF(l).parameters:{};p=new Ew(l,M,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,fN(r),Rs(r),r.component,r,uN(n),cN(n)+l.length,dN(r))}else{var A=Bw(n,r,l);if(!A.matched)return null;w=A.remainingSegments,p=new Ew(_=A.consumedSegments,A.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,fN(r),Rs(r),r.component,r,uN(n),cN(n)+_.length,dN(r))}var O=function q6(i){return i.children?i.children:i.loadChildren?i._loadedConfig.routes:[]}(r),F=Of(n,_,w,O.filter(function(ae){return void 0===ae.redirectTo}),this.relativeLinkResolution),Y=F.segmentGroup,$=F.slicedSegments;if(0===$.length&&Y.hasChildren()){var oe=this.processChildren(O,Y);return null===oe?null:[new lc(p,oe)]}if(0===O.length&&0===$.length)return[new lc(p,[])];var le=Rs(r)===c,fe=this.processSegment(O,Y,$,le?An:c);return null===fe?null:[new lc(p,fe)]}}]),i}();function lN(i){var l,s=[],r=new Set,n=qt(i);try{var c=function(){var F=l.value;if(!function Z6(i){var s=i.value.routeConfig;return s&&""===s.path&&void 0===s.redirectTo}(F))return s.push(F),"continue";var $,Y=s.find(function(oe){return F.value.routeConfig===oe.value.routeConfig});void 0!==Y?(($=Y.children).push.apply($,yt(F.children)),r.add(Y)):s.push(F)};for(n.s();!(l=n.n()).done;)c()}catch(O){n.e(O)}finally{n.f()}var w,_=qt(r);try{for(_.s();!(w=_.n()).done;){var M=w.value,A=lN(M.children);s.push(new lc(M.value,A))}}catch(O){_.e(O)}finally{_.f()}return s.filter(function(O){return!r.has(O)})}function uN(i){for(var s=i;s._sourceSegment;)s=s._sourceSegment;return s}function cN(i){for(var s=i,r=s._segmentIndexShift?s._segmentIndexShift:0;s._sourceSegment;)r+=(s=s._sourceSegment)._segmentIndexShift?s._segmentIndexShift:0;return r-1}function fN(i){return i.data||{}}function dN(i){return i.resolve||{}}function pN(i){return[].concat(yt(Object.keys(i)),yt(Object.getOwnPropertySymbols(i)))}function by(i){return _a(function(s){var r=i(s);return r?Wi(r).pipe(on(function(){return s})):dt(s)})}var Q6=L(function i(){R(this,i)}),J6=function(){function i(){R(this,i)}return L(i,[{key:"shouldDetach",value:function(r){return!1}},{key:"store",value:function(r,n){}},{key:"shouldAttach",value:function(r){return!1}},{key:"retrieve",value:function(r){return null}},{key:"shouldReuseRoute",value:function(r,n){return r.routeConfig===n.routeConfig}}]),i}(),ej=function(i){se(r,i);var s=ue(r);function r(){return R(this,r),s.apply(this,arguments)}return L(r)}(J6),OT=new Ae("ROUTES"),vN=function(){function i(s,r,n,l){R(this,i),this.injector=s,this.compiler=r,this.onLoadStartListener=n,this.onLoadEndListener=l}return L(i,[{key:"load",value:function(r,n){var l=this;if(n._loader$)return n._loader$;this.onLoadStartListener&&this.onLoadStartListener(n);var p=this.loadModuleFactory(n.loadChildren).pipe(on(function(_){l.onLoadEndListener&&l.onLoadEndListener(n);var w=_.create(r);return new Nw(wF(w.injector.get(OT,void 0,It.Self|It.Optional)).map(kT),w)}),To(function(_){throw n._loader$=void 0,_}));return n._loader$=new o6(p,function(){return new Xe}).pipe(iT()),n._loader$}},{key:"loadModuleFactory",value:function(r){var n=this;return Os(r()).pipe(Ri(function(l){return l instanceof g_?dt(l):Wi(n.compiler.compileModuleAsync(l))}))}}]),i}(),tj=L(function i(){R(this,i)}),gN=function(){function i(){R(this,i)}return L(i,[{key:"shouldProcessUrl",value:function(r){return!0}},{key:"extract",value:function(r){return r}},{key:"merge",value:function(r,n){return r}}]),i}();function mN(i){throw i}function nj(i,s,r){return s.parse("/")}function IT(i,s){return dt(null)}var _N={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},yN={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},Ba=function(){var i=function(){function s(r,n,l,c,p,_,w){var M=this;R(this,s),this.rootComponentType=r,this.urlSerializer=n,this.rootContexts=l,this.location=c,this.config=w,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Xe,this.errorHandler=mN,this.malformedUriErrorHandler=nj,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:IT,afterPreactivation:IT},this.urlHandlingStrategy=new gN,this.routeReuseStrategy=new ej,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=p.get(qu),this.console=p.get(Zu);var F=p.get(Pt);this.isNgZoneEnabled=F instanceof Pt&&Pt.isInAngularZone(),this.resetConfig(w),this.currentUrlTree=function v6(){return new Ef(new Fn([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new vN(p,_,function($){return M.triggerEvent(new dT($))},function($){return M.triggerEvent(new _F($))}),this.routerState=_T(this.currentUrlTree,this.rootComponentType),this.transitions=new Na({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 L(s,[{key:"browserPageId",get:function(){var n;return null===(n=this.location.getState())||void 0===n?void 0:n.\u0275routerPageId}},{key:"setupNavigations",value:function(n){var l=this,c=this.events;return n.pipe(Ur(function(p){return 0!==p.id}),on(function(p){return Object.assign(Object.assign({},p),{extractedUrl:l.urlHandlingStrategy.extract(p.rawUrl)})}),_a(function(p){var _=!1,w=!1;return dt(p).pipe(ao(function(M){l.currentNavigation={id:M.id,initialUrl:M.currentRawUrl,extractedUrl:M.extractedUrl,trigger:M.source,extras:M.extras,previousNavigation:l.lastSuccessfulNavigation?Object.assign(Object.assign({},l.lastSuccessfulNavigation),{previousNavigation:null}):null}}),_a(function(M){var A=l.browserUrlTree.toString(),O=!l.navigated||M.extractedUrl.toString()!==A||A!==l.currentUrlTree.toString();if(("reload"===l.onSameUrlNavigation||O)&&l.urlHandlingStrategy.shouldProcessUrl(M.rawUrl))return Jo(M.source)&&(l.browserUrlTree=M.extractedUrl),dt(M).pipe(_a(function(Ee){var We=l.transitions.getValue();return c.next(new lT(Ee.id,l.serializeUrl(Ee.extractedUrl),Ee.source,Ee.restoredState)),We!==l.transitions.getValue()?Sr:Promise.resolve(Ee)}),function H6(i,s,r,n){return _a(function(l){return function ZF(i,s,r,n,l){return new XF(i,s,r,n,l).apply()}(i,s,r,l.extractedUrl,n).pipe(on(function(c){return Object.assign(Object.assign({},l),{urlAfterRedirects:c})}))})}(l.ngModule.injector,l.configLoader,l.urlSerializer,l.config),ao(function(Ee){l.currentNavigation=Object.assign(Object.assign({},l.currentNavigation),{finalUrl:Ee.urlAfterRedirects})}),function hN(i,s,r,n,l){return Ri(function(c){return function Y6(i,s,r,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"emptyOnly",c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"legacy";try{var p=new sN(i,s,r,n,l,c).recognize();return null===p?oN(new aN):dt(p)}catch(_){return oN(_)}}(i,s,c.urlAfterRedirects,r(c.urlAfterRedirects),n,l).pipe(on(function(p){return Object.assign(Object.assign({},c),{targetSnapshot:p})}))})}(l.rootComponentType,l.config,function(Ee){return l.serializeUrl(Ee)},l.paramsInheritanceStrategy,l.relativeLinkResolution),ao(function(Ee){if("eager"===l.urlUpdateStrategy){if(!Ee.extras.skipLocationChange){var We=l.urlHandlingStrategy.merge(Ee.urlAfterRedirects,Ee.rawUrl);l.setBrowserUrl(We,Ee)}l.browserUrlTree=Ee.urlAfterRedirects}var bt=new cT(Ee.id,l.serializeUrl(Ee.extractedUrl),l.serializeUrl(Ee.urlAfterRedirects),Ee.targetSnapshot);c.next(bt)}));if(O&&l.rawUrlTree&&l.urlHandlingStrategy.shouldProcessUrl(l.rawUrlTree)){var oe=M.extractedUrl,le=M.source,fe=M.restoredState,ae=M.extras,we=new lT(M.id,l.serializeUrl(oe),le,fe);c.next(we);var De=_T(oe,l.rootComponentType).snapshot;return dt(Object.assign(Object.assign({},M),{targetSnapshot:De,urlAfterRedirects:oe,extras:Object.assign(Object.assign({},ae),{skipLocationChange:!1,replaceUrl:!1})}))}return l.rawUrlTree=M.rawUrl,M.resolve(null),Sr}),by(function(M){var $=M.extras;return l.hooks.beforePreactivation(M.targetSnapshot,{navigationId:M.id,appliedUrlTree:M.extractedUrl,rawUrlTree:M.rawUrl,skipLocationChange:!!$.skipLocationChange,replaceUrl:!!$.replaceUrl})}),ao(function(M){var A=new gF(M.id,l.serializeUrl(M.extractedUrl),l.serializeUrl(M.urlAfterRedirects),M.targetSnapshot);l.triggerEvent(A)}),on(function(M){return Object.assign(Object.assign({},M),{guards:z6(M.targetSnapshot,M.currentSnapshot,l.rootContexts)})}),function eN(i,s){return Ri(function(r){var n=r.targetSnapshot,l=r.currentSnapshot,c=r.guards,p=c.canActivateChecks,_=c.canDeactivateChecks;return 0===_.length&&0===p.length?dt(Object.assign(Object.assign({},r),{guardsResult:!0})):function tN(i,s,r,n){return Wi(i).pipe(Ri(function(l){return function W6(i,s,r,n,l){var c=s&&s.routeConfig?s.routeConfig.canDeactivate:null;if(!c||0===c.length)return dt(!0);var p=c.map(function(_){var M,w=zw(_,s,l);if(function L6(i){return i&&uc(i.canDeactivate)}(w))M=Os(w.canDeactivate(i,s,r,n));else{if(!uc(w))throw new Error("Invalid CanDeactivate guard");M=Os(w(i,s,r,n))}return M.pipe(xh())});return dt(p).pipe(Lh())}(l.component,l.route,r,s,n)}),xh(function(l){return!0!==l},!0))}(_,n,l,i).pipe(Ri(function(w){return w&&function P6(i){return"boolean"==typeof i}(w)?function nN(i,s,r,n){return Wi(s).pipe(oc(function(l){return Dh(function iN(i,s){return null!==i&&s&&s(new f6(i)),dt(!0)}(l.route.parent,n),function rN(i,s){return null!==i&&s&&s(new Ah(i)),dt(!0)}(l.route,n),function j6(i,s,r){var n=s[s.length-1],l=s.slice(0,s.length-1).reverse().map(function(p){return function G6(i){var s=i.routeConfig?i.routeConfig.canActivateChild:null;return s&&0!==s.length?{node:i,guards:s}:null}(p)}).filter(function(p){return null!==p}),c=l.map(function(p){return Sw(function(){var _=p.guards.map(function(w){var A,M=zw(w,p.node,r);if(function R6(i){return i&&uc(i.canActivateChild)}(M))A=Os(M.canActivateChild(n,i));else{if(!uc(M))throw new Error("Invalid CanActivateChild guard");A=Os(M(n,i))}return A.pipe(xh())});return dt(_).pipe(Lh())})});return dt(c).pipe(Lh())}(i,l.path,r),function U6(i,s,r){var n=s.routeConfig?s.routeConfig.canActivate:null;if(!n||0===n.length)return dt(!0);var l=n.map(function(c){return Sw(function(){var _,p=zw(c,s,r);if(function I6(i){return i&&uc(i.canActivate)}(p))_=Os(p.canActivate(s,i));else{if(!uc(p))throw new Error("Invalid CanActivate guard");_=Os(p(s,i))}return _.pipe(xh())})});return dt(l).pipe(Lh())}(i,l.route,r))}),xh(function(l){return!0!==l},!0))}(n,p,i,s):dt(w)}),on(function(w){return Object.assign(Object.assign({},r),{guardsResult:w})}))})}(l.ngModule.injector,function(M){return l.triggerEvent(M)}),ao(function(M){if(Pf(M.guardsResult)){var A=Mw('Redirecting to "'.concat(l.serializeUrl(M.guardsResult),'"'));throw A.url=M.guardsResult,A}var O=new c6(M.id,l.serializeUrl(M.extractedUrl),l.serializeUrl(M.urlAfterRedirects),M.targetSnapshot,!!M.guardsResult);l.triggerEvent(O)}),Ur(function(M){return!!M.guardsResult||(l.restoreHistory(M),l.cancelNavigationTransition(M,""),!1)}),by(function(M){if(M.guards.canActivateChecks.length)return dt(M).pipe(ao(function(A){var O=new fT(A.id,l.serializeUrl(A.extractedUrl),l.serializeUrl(A.urlAfterRedirects),A.targetSnapshot);l.triggerEvent(O)}),_a(function(A){var O=!1;return dt(A).pipe(function yy(i,s){return Ri(function(r){var n=r.targetSnapshot,l=r.guards.canActivateChecks;if(!l.length)return dt(r);var c=0;return Wi(l).pipe(oc(function(p){return function K6(i,s,r,n){return function $6(i,s,r,n){var l=pN(i);if(0===l.length)return dt({});var c={};return Wi(l).pipe(Ri(function(p){return function PT(i,s,r,n){var l=zw(i,s,n);return Os(l.resolve?l.resolve(s,r):l(s,r))}(i[p],s,r,n).pipe(ao(function(_){c[p]=_}))}),xf(1),Ri(function(){return pN(c).length===l.length?dt(c):Sr}))}(i._resolve,i,s,n).pipe(on(function(c){return i._resolvedData=c,i.data=Object.assign(Object.assign({},i.data),yT(i,r).resolve),null}))}(p.route,n,i,s)}),ao(function(){return c++}),xf(1),Ri(function(p){return c===l.length?dt(r):Sr}))})}(l.paramsInheritanceStrategy,l.ngModule.injector),ao({next:function(){return O=!0},complete:function(){O||(l.restoreHistory(A),l.cancelNavigationTransition(A,"At least one route resolver didn't emit any value."))}}))}),ao(function(A){var O=new mF(A.id,l.serializeUrl(A.extractedUrl),l.serializeUrl(A.urlAfterRedirects),A.targetSnapshot);l.triggerEvent(O)}))}),by(function(M){var $=M.extras;return l.hooks.afterPreactivation(M.targetSnapshot,{navigationId:M.id,appliedUrlTree:M.extractedUrl,rawUrlTree:M.rawUrl,skipLocationChange:!!$.skipLocationChange,replaceUrl:!!$.replaceUrl})}),on(function(M){var A=function CT(i,s,r){var n=fy(i,s._root,r?r._root:void 0);return new IF(n,s)}(l.routeReuseStrategy,M.targetSnapshot,M.currentRouterState);return Object.assign(Object.assign({},M),{targetRouterState:A})}),ao(function(M){l.currentUrlTree=M.urlAfterRedirects,l.rawUrlTree=l.urlHandlingStrategy.merge(M.urlAfterRedirects,M.rawUrl),l.routerState=M.targetRouterState,"deferred"===l.urlUpdateStrategy&&(M.extras.skipLocationChange||l.setBrowserUrl(l.rawUrlTree,M),l.browserUrlTree=M.urlAfterRedirects)}),function(s,r,n){return on(function(l){return new MT(r,l.targetRouterState,l.currentRouterState,n).activate(s),l})}(l.rootContexts,l.routeReuseStrategy,function(M){return l.triggerEvent(M)}),ao({next:function(){_=!0},complete:function(){_=!0}}),function u6(i){return gr(function(s,r){try{s.subscribe(r)}finally{r.add(i)}})}(function(){var M;if(!_&&!w){var A="Navigation ID ".concat(p.id," is not equal to the current navigation id ").concat(l.navigationId);l.cancelNavigationTransition(p,A)}(null===(M=l.currentNavigation)||void 0===M?void 0:M.id)===p.id&&(l.currentNavigation=null)}),To(function(M){if(w=!0,function d6(i){return i&&i[hT]}(M)){var A=Pf(M.url);A||(l.navigated=!0,l.restoreHistory(p,!0));var O=new uT(p.id,l.serializeUrl(p.extractedUrl),M.message);c.next(O),A?setTimeout(function(){var Y=l.urlHandlingStrategy.merge(M.url,l.rawUrlTree),$={skipLocationChange:p.extras.skipLocationChange,replaceUrl:"eager"===l.urlUpdateStrategy||Jo(p.source)};l.scheduleNavigation(Y,"imperative",null,$,{resolve:p.resolve,reject:p.reject,promise:p.promise})},0):p.resolve(!1)}else{l.restoreHistory(p,!0);var F=new vF(p.id,l.serializeUrl(p.extractedUrl),M);c.next(F);try{p.resolve(l.errorHandler(M))}catch(Y){p.reject(Y)}}return Sr}))}))}},{key:"resetRootComponentType",value:function(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}},{key:"setTransition",value:function(n){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),n))}},{key:"initialNavigation",value:function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}},{key:"setUpLocationChangeListener",value:function(){var n=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(l){var c="popstate"===l.type?"popstate":"hashchange";"popstate"===c&&setTimeout(function(){var p,_={replaceUrl:!0},w=(null===(p=l.state)||void 0===p?void 0:p.navigationId)?l.state:null;if(w){var M=Object.assign({},w);delete M.navigationId,delete M.\u0275routerPageId,0!==Object.keys(M).length&&(_.state=M)}var A=n.parseUrl(l.url);n.scheduleNavigation(A,c,w,_)},0)}))}},{key:"url",get:function(){return this.serializeUrl(this.currentUrlTree)}},{key:"getCurrentNavigation",value:function(){return this.currentNavigation}},{key:"triggerEvent",value:function(n){this.events.next(n)}},{key:"resetConfig",value:function(n){GF(n),this.config=n.map(kT),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(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=l.relativeTo,p=l.queryParams,_=l.fragment,w=l.queryParamsHandling,M=l.preserveFragment,A=c||this.routerState.root,O=M?this.currentUrlTree.fragment:_,F=null;switch(w){case"merge":F=Object.assign(Object.assign({},this.currentUrlTree.queryParams),p);break;case"preserve":F=this.currentUrlTree.queryParams;break;default:F=p||null}return null!==F&&(F=this.removeEmptyProps(F)),wT(A,this.currentUrlTree,n,F,null!=O?O:null)}},{key:"navigateByUrl",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1},c=Pf(n)?n:this.parseUrl(n),p=this.urlHandlingStrategy.merge(c,this.rawUrlTree);return this.scheduleNavigation(p,"imperative",null,l)}},{key:"navigate",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{skipLocationChange:!1};return rj(n),this.navigateByUrl(this.createUrlTree(n,l),l)}},{key:"serializeUrl",value:function(n){return this.urlSerializer.serialize(n)}},{key:"parseUrl",value:function(n){var l;try{l=this.urlSerializer.parse(n)}catch(c){l=this.malformedUriErrorHandler(c,this.urlSerializer,n)}return l}},{key:"isActive",value:function(n,l){var c;if(c=!0===l?Object.assign({},_N):!1===l?Object.assign({},yN):l,Pf(n))return kw(this.currentUrlTree,n,c);var p=this.parseUrl(n);return kw(this.currentUrlTree,p,c)}},{key:"removeEmptyProps",value:function(n){return Object.keys(n).reduce(function(l,c){var p=n[c];return null!=p&&(l[c]=p),l},{})}},{key:"processNavigations",value:function(){var n=this;this.navigations.subscribe(function(l){n.navigated=!0,n.lastSuccessfulId=l.id,n.currentPageId=l.targetPageId,n.events.next(new Th(l.id,n.serializeUrl(l.extractedUrl),n.serializeUrl(n.currentUrlTree))),n.lastSuccessfulNavigation=n.currentNavigation,l.resolve(!0)},function(l){n.console.warn("Unhandled Navigation Error: ".concat(l))})}},{key:"scheduleNavigation",value:function(n,l,c,p,_){var w,M,A,O,F;if(this.disposed)return Promise.resolve(!1);_?(A=_.resolve,O=_.reject,F=_.promise):F=new Promise(function(le,fe){A=le,O=fe});var $,Y=++this.navigationId;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(c=this.location.getState()),$=c&&c.\u0275routerPageId?c.\u0275routerPageId:p.replaceUrl||p.skipLocationChange?null!==(w=this.browserPageId)&&void 0!==w?w:0:(null!==(M=this.browserPageId)&&void 0!==M?M:0)+1):$=0,this.setTransition({id:Y,targetPageId:$,source:l,restoredState:c,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:p,resolve:A,reject:O,promise:F,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),F.catch(function(le){return Promise.reject(le)})}},{key:"setBrowserUrl",value:function(n,l){var c=this.urlSerializer.serialize(n),p=Object.assign(Object.assign({},l.extras.state),this.generateNgRouterState(l.id,l.targetPageId));this.location.isCurrentPathEqualTo(c)||l.extras.replaceUrl?this.location.replaceState(c,"",p):this.location.go(c,"",p)}},{key:"restoreHistory",value:function(n){var c,p,l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("computed"===this.canceledNavigationResolution){var _=this.currentPageId-n.targetPageId,w="popstate"===n.source||"eager"===this.urlUpdateStrategy||this.currentUrlTree===(null===(c=this.currentNavigation)||void 0===c?void 0:c.finalUrl);w&&0!==_?this.location.historyGo(_):this.currentUrlTree===(null===(p=this.currentNavigation)||void 0===p?void 0:p.finalUrl)&&0===_&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(l&&this.resetState(n),this.resetUrlToCurrentUrlTree())}},{key:"resetState",value:function(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}},{key:"resetUrlToCurrentUrlTree",value:function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}},{key:"cancelNavigationTransition",value:function(n,l){var c=new uT(n.id,this.serializeUrl(n.extractedUrl),l);this.triggerEvent(c),n.resolve(!1)}},{key:"generateNgRouterState",value:function(n,l){return"computed"===this.canceledNavigationResolution?{navigationId:n,"\u0275routerPageId":l}:{navigationId:n}}}]),s}();return i.\u0275fac=function(r){lf()},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}();function rj(i){for(var s=0;s2&&void 0!==arguments[2]?arguments[2]:{};R(this,s),this.router=r,this.viewportScroller=n,this.options=l,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},l.scrollPositionRestoration=l.scrollPositionRestoration||"disabled",l.anchorScrolling=l.anchorScrolling||"disabled"}return L(s,[{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 n=this;return this.router.events.subscribe(function(l){l instanceof lT?(n.store[n.lastId]=n.viewportScroller.getScrollPosition(),n.lastSource=l.navigationTrigger,n.restoredId=l.restoredState?l.restoredState.navigationId:0):l instanceof Th&&(n.lastId=l.id,n.scheduleScrollEvent(l,n.router.parseUrl(l.urlAfterRedirects).fragment))})}},{key:"consumeScrollEvents",value:function(){var n=this;return this.router.events.subscribe(function(l){l instanceof bF&&(l.position?"top"===n.options.scrollPositionRestoration?n.viewportScroller.scrollToPosition([0,0]):"enabled"===n.options.scrollPositionRestoration&&n.viewportScroller.scrollToPosition(l.position):l.anchor&&"enabled"===n.options.anchorScrolling?n.viewportScroller.scrollToAnchor(l.anchor):"disabled"!==n.options.scrollPositionRestoration&&n.viewportScroller.scrollToPosition([0,0]))})}},{key:"scheduleScrollEvent",value:function(n,l){this.router.triggerEvent(new bF(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,l))}},{key:"ngOnDestroy",value:function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}]),s}();return i.\u0275fac=function(r){lf()},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),Fh=new Ae("ROUTER_CONFIGURATION"),CN=new Ae("ROUTER_FORROOT_GUARD"),LT=[z_,{provide:xF,useClass:m6},{provide:Ba,useFactory:function lj(i,s,r,n,l,c){var p=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},_=arguments.length>7?arguments[7]:void 0,w=arguments.length>8?arguments[8]:void 0,M=new Ba(null,i,s,r,n,l,wF(c));return _&&(M.urlHandlingStrategy=_),w&&(M.routeReuseStrategy=w),wy(p,M),p.enableTracing&&M.events.subscribe(function(A){var O,F;null===(O=console.group)||void 0===O||O.call(console,"Router Event: ".concat(A.constructor.name)),console.log(A.toString()),console.log(A),null===(F=console.groupEnd)||void 0===F||F.call(console)}),M},deps:[xF,Tl,z_,kr,F2,OT,Fh,[tj,new ai],[Q6,new ai]]},Tl,{provide:Vr,useFactory:function uj(i){return i.routerState.root},deps:[Ba]},Uw,RT,oj,{provide:Fh,useValue:{enableTracing:!1}}];function Cy(){return new U2("Router",Ba)}var FT=function(){var i=function(){function s(r,n){R(this,s)}return L(s,null,[{key:"forRoot",value:function(n,l){return{ngModule:s,providers:[LT,wN(n),{provide:CN,useFactory:sj,deps:[[Ba,new ai,new Kl]]},{provide:Fh,useValue:l||{}},{provide:tc,useFactory:Ww,deps:[$o,[new gm(wf),new ai],Fh]},{provide:jw,useFactory:NT,deps:[Ba,RL,Fh]},{provide:bN,useExisting:l&&l.preloadingStrategy?l.preloadingStrategy:RT},{provide:U2,multi:!0,useFactory:Cy},[BT,{provide:FC,multi:!0,useFactory:cj,deps:[BT]},{provide:SN,useFactory:fj,deps:[BT]},{provide:tx,multi:!0,useExisting:SN}]]}}},{key:"forChild",value:function(n){return{ngModule:s,providers:[wN(n)]}}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(CN,8),ge(Ba,8))},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({}),i}();function NT(i,s,r){return r.scrollOffset&&s.setOffset(r.scrollOffset),new jw(i,s,r)}function Ww(i,s){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return r.useHash?new z8(i,s):new aL(i,s)}function sj(i){return"guarded"}function wN(i){return[{provide:wO,multi:!0,useValue:i},{provide:OT,multi:!0,useValue:i}]}function wy(i,s){i.errorHandler&&(s.errorHandler=i.errorHandler),i.malformedUriErrorHandler&&(s.malformedUriErrorHandler=i.malformedUriErrorHandler),i.onSameUrlNavigation&&(s.onSameUrlNavigation=i.onSameUrlNavigation),i.paramsInheritanceStrategy&&(s.paramsInheritanceStrategy=i.paramsInheritanceStrategy),i.relativeLinkResolution&&(s.relativeLinkResolution=i.relativeLinkResolution),i.urlUpdateStrategy&&(s.urlUpdateStrategy=i.urlUpdateStrategy),i.canceledNavigationResolution&&(s.canceledNavigationResolution=i.canceledNavigationResolution)}var BT=function(){var i=function(){function s(r){R(this,s),this.injector=r,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Xe}return L(s,[{key:"appInitializer",value:function(){var n=this;return this.injector.get(B8,Promise.resolve(null)).then(function(){if(n.destroyed)return Promise.resolve(!0);var c=null,p=new Promise(function(M){return c=M}),_=n.injector.get(Ba),w=n.injector.get(Fh);return"disabled"===w.initialNavigation?(_.setUpLocationChangeListener(),c(!0)):"enabled"===w.initialNavigation||"enabledBlocking"===w.initialNavigation?(_.hooks.afterPreactivation=function(){return n.initNavigation?dt(null):(n.initNavigation=!0,c(!0),n.resultOfPreactivationDone)},_.initialNavigation()):c(!0),p})}},{key:"bootstrapListener",value:function(n){var l=this.injector.get(Fh),c=this.injector.get(Uw),p=this.injector.get(jw),_=this.injector.get(Ba),w=this.injector.get(F_);n===w.components[0]&&(("enabledNonBlocking"===l.initialNavigation||void 0===l.initialNavigation)&&_.initialNavigation(),c.setUpPreloading(),p.init(),_.resetRootComponentType(w.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}},{key:"ngOnDestroy",value:function(){this.destroyed=!0}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(kr))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}();function cj(i){return i.appInitializer.bind(i)}function fj(i){return i.bootstrapListener.bind(i)}var SN=new Ae("Router Initializer"),kN=function(){function i(s){R(this,i),this.user=s.user,this.role=s.role,this.admin=s.admin}return L(i,[{key:"isStaff",get:function(){return"staff"===this.role||"admin"===this.role}},{key:"isAdmin",get:function(){return"admin"===this.role}},{key:"isLogged",get:function(){return null!=this.user}}]),i}();function gt(i){return null!=i&&"false"!=="".concat(i)}function Va(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return DN(i)?Number(i):s}function DN(i){return!isNaN(parseFloat(i))&&!isNaN(Number(i))}function Yw(i){return Array.isArray(i)?i:[i]}function Ai(i){return null==i?"":"string"==typeof i?i:"".concat(i,"px")}function vu(i){return i instanceof tt?i.nativeElement:i}function qw(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\s+/,r=[];if(null!=i){var c,n=Array.isArray(i)?i:"".concat(i).split(s),l=qt(n);try{for(l.s();!(c=l.n()).done;){var p=c.value,_="".concat(p).trim();_&&r.push(_)}}catch(w){l.e(w)}finally{l.f()}}return r}var dj=["addListener","removeListener"],hj=["addEventListener","removeEventListener"],pj=["on","off"];function gu(i,s,r,n){if(Hn(r)&&(n=r,r=void 0),n)return gu(i,s,r).pipe(rT(n));var c=Pr(function TN(i){return Hn(i.addEventListener)&&Hn(i.removeEventListener)}(i)?hj.map(function(w){return function(M){return i[w](s,M,r)}}):function vj(i){return Hn(i.addListener)&&Hn(i.removeListener)}(i)?dj.map(xN(i,s)):function VT(i){return Hn(i.on)&&Hn(i.off)}(i)?pj.map(xN(i,s)):[],2),p=c[0],_=c[1];if(!p&&gp(i))return Ri(function(w){return gu(w,s,r)})(ji(i));if(!p)throw new TypeError("Invalid event target");return new Jn(function(w){var M=function(){for(var O=arguments.length,F=new Array(O),Y=0;Y2?n-2:0),c=2;c1&&void 0!==arguments[1]?arguments[1]:0;if(this.closed)return this;this.state=l;var p=this.id,_=this.scheduler;return null!=p&&(this.id=this.recycleAsyncId(_,p,c)),this.pending=!0,this.delay=c,this.id=this.id||this.requestAsyncId(_,this.id,c),this}},{key:"requestAsyncId",value:function(l,c){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return Sy.setInterval(l.flush.bind(l,this),p)}},{key:"recycleAsyncId",value:function(l,c){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=p&&this.delay===p&&!1===this.pending)return c;Sy.clearInterval(c)}},{key:"execute",value:function(l,c){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var p=this._execute(l,c);if(p)return p;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}},{key:"_execute",value:function(l,c){var _,p=!1;try{this.work(l)}catch(w){p=!0,_=w||new Error("Scheduled action threw falsy error")}if(p)return this.unsubscribe(),_}},{key:"unsubscribe",value:function(){if(!this.closed){var l=this.id,c=this.scheduler,p=c.actions;this.work=this.state=this.scheduler=null,this.pending=!1,Fe(p,this),null!=l&&(this.id=this.recycleAsyncId(c,l,null)),this.delay=null,Ye(qe(r.prototype),"unsubscribe",this).call(this)}}}]),r}(AN),My={schedule:function(s){var r=requestAnimationFrame,n=cancelAnimationFrame,l=My.delegate;l&&(r=l.requestAnimationFrame,n=l.cancelAnimationFrame);var c=r(function(p){n=void 0,s(p)});return new Te(function(){return null==n?void 0:n(c)})},requestAnimationFrame:function(i){function s(){return i.apply(this,arguments)}return s.toString=function(){return i.toString()},s}(function(){var i=My.delegate;return((null==i?void 0:i.requestAnimationFrame)||requestAnimationFrame).apply(void 0,arguments)}),cancelAnimationFrame:function(i){function s(){return i.apply(this,arguments)}return s.toString=function(){return i.toString()},s}(function(){var i=My.delegate;return((null==i?void 0:i.cancelAnimationFrame)||cancelAnimationFrame).apply(void 0,arguments)}),delegate:void 0},gj=function(i){se(r,i);var s=ue(r);function r(n,l){var c;return R(this,r),(c=s.call(this,n,l)).scheduler=n,c.work=l,c}return L(r,[{key:"requestAsyncId",value:function(l,c){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==p&&p>0?Ye(qe(r.prototype),"requestAsyncId",this).call(this,l,c,p):(l.actions.push(this),l._scheduled||(l._scheduled=My.requestAnimationFrame(function(){return l.flush(void 0)})))}},{key:"recycleAsyncId",value:function(l,c){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=p&&p>0||null==p&&this.delay>0)return Ye(qe(r.prototype),"recycleAsyncId",this).call(this,l,c,p);l.actions.some(function(_){return _.id===c})||(My.cancelAnimationFrame(c),l._scheduled=void 0)}}]),r}(Zw),EN={now:function(){return(EN.delegate||Date).now()},delegate:void 0},dc=function(){function i(s){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.now;R(this,i),this.schedulerActionCtor=s,this.now=r}return L(i,[{key:"schedule",value:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,l=arguments.length>2?arguments[2]:void 0;return new this.schedulerActionCtor(this,r).schedule(l,n)}}]),i}();dc.now=EN.now;var HT,Xw=function(i){se(r,i);var s=ue(r);function r(n){var l,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:dc.now;return R(this,r),(l=s.call(this,n,c)).actions=[],l._active=!1,l._scheduled=void 0,l}return L(r,[{key:"flush",value:function(l){var c=this.actions;if(this._active)c.push(l);else{var p;this._active=!0;do{if(p=l.execute(l.state,l.delay))break}while(l=c.shift());if(this._active=!1,p){for(;l=c.shift();)l.unsubscribe();throw p}}}}]),r}(dc),Kw=function(i){se(r,i);var s=ue(r);function r(){return R(this,r),s.apply(this,arguments)}return L(r,[{key:"flush",value:function(l){this._active=!0;var c=this._scheduled;this._scheduled=void 0;var _,p=this.actions;l=l||p.shift();do{if(_=l.execute(l.state,l.delay))break}while((l=p[0])&&l.id===c&&p.shift());if(this._active=!1,_){for(;(l=p[0])&&l.id===c&&p.shift();)l.unsubscribe();throw _}}}]),r}(Xw),_j=(new Kw(gj),1),Qw={};function Yv(i){return i in Qw&&(delete Qw[i],!0)}var Zv,GT=function(s){var r=_j++;return Qw[r]=!0,HT||(HT=Promise.resolve()),HT.then(function(){return Yv(r)&&s()}),r},yj=function(s){Yv(s)},Jw={setImmediate:function(){var s=Jw.delegate;return((null==s?void 0:s.setImmediate)||GT).apply(void 0,arguments)},clearImmediate:function(s){var r=Jw.delegate;return((null==r?void 0:r.clearImmediate)||yj)(s)},delegate:void 0},UT=function(i){se(r,i);var s=ue(r);function r(n,l){var c;return R(this,r),(c=s.call(this,n,l)).scheduler=n,c.work=l,c}return L(r,[{key:"requestAsyncId",value:function(l,c){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null!==p&&p>0?Ye(qe(r.prototype),"requestAsyncId",this).call(this,l,c,p):(l.actions.push(this),l._scheduled||(l._scheduled=Jw.setImmediate(l.flush.bind(l,void 0))))}},{key:"recycleAsyncId",value:function(l,c){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(null!=p&&p>0||null==p&&this.delay>0)return Ye(qe(r.prototype),"recycleAsyncId",this).call(this,l,c,p);l.actions.some(function(_){return _.id===c})||(Jw.clearImmediate(c),l._scheduled=void 0)}}]),r}(Zw),e1=function(i){se(r,i);var s=ue(r);function r(){return R(this,r),s.apply(this,arguments)}return L(r,[{key:"flush",value:function(l){this._active=!0;var c=this._scheduled;this._scheduled=void 0;var _,p=this.actions;l=l||p.shift();do{if(_=l.execute(l.state,l.delay))break}while((l=p[0])&&l.id===c&&p.shift());if(this._active=!1,_){for(;(l=p[0])&&l.id===c&&p.shift();)l.unsubscribe();throw _}}}]),r}(Xw),t1=new e1(UT),El=new Xw(Zw),Nh=El;function jT(i){return gr(function(s,r){var n=!1,l=null,c=null,p=!1,_=function(){if(null==c||c.unsubscribe(),c=null,n){n=!1;var A=l;l=null,r.next(A)}p&&r.complete()},w=function(){c=null,p&&r.complete()};s.subscribe(ve(r,function(M){n=!0,l=M,c||ji(i(M)).subscribe(c=ve(r,_,w))},function(){p=!0,(!n||!c||c.closed)&&r.complete()}))})}function WT(i){return i instanceof Date&&!isNaN(i)}function qv(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,s=arguments.length>1?arguments[1]:void 0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Nh,n=-1;return null!=s&&($H(s)?r=s:n=s),new Jn(function(l){var c=WT(i)?+i-r.now():i;c<0&&(c=0);var p=0;return r.schedule(function(){l.closed||(l.next(p++),0<=n?this.schedule(void 0,n):l.complete())},c)})}function ON(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:El;return jT(function(){return qv(i,s)})}try{Zv="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(i){Zv=!1}var Bh,ky,Hh,zh,pn=function(){var i=L(function s(r){R(this,s),this._platformId=r,this.isBrowser=this._platformId?function yU(i){return i===uw}(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&&!Zv)&&"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 i.\u0275fac=function(r){return new(r||i)(ge(yf))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),IN=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function YT(){if(Bh)return Bh;if("object"!=typeof document||!document)return Bh=new Set(IN);var i=document.createElement("input");return Bh=new Set(IN.filter(function(s){return i.setAttribute("type",s),i.type===s}))}function Vh(i){return function RN(){if(null==ky&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return ky=!0}}))}finally{ky=ky||!1}return ky}()?i:!!i.capture}function qT(){if(null==Hh){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Hh=!1;if("scrollBehavior"in document.documentElement.style)Hh=!0;else{var i=Element.prototype.scrollTo;Hh=!!i&&!/\{\s*\[native code\]\s*\}/.test(i.toString())}}return Hh}function ZT(i){if(function r1(){if(null==zh){var i="undefined"!=typeof document?document.head:null;zh=!(!i||!i.createShadowRoot&&!i.attachShadow)}return zh}()){var s=i.getRootNode?i.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&s instanceof ShadowRoot)return s}return null}function Gh(){for(var i="undefined"!=typeof document&&document?document.activeElement:null;i&&i.shadowRoot;){var s=i.shadowRoot.activeElement;if(s===i)break;i=s}return i}function hc(i){return i.composedPath?i.composedPath()[0]:i.target}function XT(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}var bj=new Ae("cdk-dir-doc",{providedIn:"root",factory:function Cj(){return HM(Jt)}}),wj=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i,Ei=function(){var i=function(){function s(r){R(this,s),this.value="ltr",this.change=new ye,r&&(this.value=function LN(i){var s=(null==i?void 0:i.toLowerCase())||"";return"auto"===s&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?wj.test(navigator.language)?"rtl":"ltr":"rtl"===s?"rtl":"ltr"}((r.body?r.body.dir:null)||(r.documentElement?r.documentElement.dir:null)||"ltr"))}return L(s,[{key:"ngOnDestroy",value:function(){this.change.complete()}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(bj,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),Dy=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({}),i}(),NN=function(){var i=function(){function s(r,n,l){R(this,s),this._ngZone=r,this._platform=n,this._scrolled=new Xe,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=l}return L(s,[{key:"register",value:function(n){var l=this;this.scrollContainers.has(n)||this.scrollContainers.set(n,n.elementScrolled().subscribe(function(){return l._scrolled.next(n)}))}},{key:"deregister",value:function(n){var l=this.scrollContainers.get(n);l&&(l.unsubscribe(),this.scrollContainers.delete(n))}},{key:"scrolled",value:function(){var n=this,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return this._platform.isBrowser?new Jn(function(c){n._globalSubscription||n._addGlobalListener();var p=l>0?n._scrolled.pipe(ON(l)).subscribe(c):n._scrolled.subscribe(c);return n._scrolledCount++,function(){p.unsubscribe(),n._scrolledCount--,n._scrolledCount||n._removeGlobalListener()}}):dt()}},{key:"ngOnDestroy",value:function(){var n=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(l,c){return n.deregister(c)}),this._scrolled.complete()}},{key:"ancestorScrolled",value:function(n,l){var c=this.getAncestorScrollContainers(n);return this.scrolled(l).pipe(Ur(function(p){return!p||c.indexOf(p)>-1}))}},{key:"getAncestorScrollContainers",value:function(n){var l=this,c=[];return this.scrollContainers.forEach(function(p,_){l._scrollableContainsElement(_,n)&&c.push(_)}),c}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_scrollableContainsElement",value:function(n,l){var c=vu(l),p=n.getElementRef().nativeElement;do{if(c==p)return!0}while(c=c.parentElement);return!1}},{key:"_addGlobalListener",value:function(){var n=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return gu(n._getWindow().document,"scroll").subscribe(function(){return n._scrolled.next()})})}},{key:"_removeGlobalListener",value:function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(Pt),ge(pn),ge(Jt,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),Ls=function(){var i=function(){function s(r,n,l){var c=this;R(this,s),this._platform=r,this._change=new Xe,this._changeListener=function(p){c._change.next(p)},this._document=l,n.runOutsideAngular(function(){if(r.isBrowser){var p=c._getWindow();p.addEventListener("resize",c._changeListener),p.addEventListener("orientationchange",c._changeListener)}c.change().subscribe(function(){return c._viewportSize=null})})}return L(s,[{key:"ngOnDestroy",value:function(){if(this._platform.isBrowser){var n=this._getWindow();n.removeEventListener("resize",this._changeListener),n.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}},{key:"getViewportSize",value:function(){this._viewportSize||this._updateViewportSize();var n={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),n}},{key:"getViewportRect",value:function(){var n=this.getViewportScrollPosition(),l=this.getViewportSize(),c=l.width,p=l.height;return{top:n.top,left:n.left,bottom:n.top+p,right:n.left+c,height:p,width:c}}},{key:"getViewportScrollPosition",value:function(){if(!this._platform.isBrowser)return{top:0,left:0};var n=this._document,l=this._getWindow(),c=n.documentElement,p=c.getBoundingClientRect();return{top:-p.top||n.body.scrollTop||l.scrollY||c.scrollTop||0,left:-p.left||n.body.scrollLeft||l.scrollX||c.scrollLeft||0}}},{key:"change",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:20;return n>0?this._change.pipe(ON(n)):this._change}},{key:"_getWindow",value:function(){return this._document.defaultView||window}},{key:"_updateViewportSize",value:function(){var n=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:n.innerWidth,height:n.innerHeight}:{width:0,height:0}}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(pn),ge(Pt),ge(Jt,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),If=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({}),i}(),$T=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[Dy,If],Dy,If]}),i}(),o1=function(){function i(){R(this,i)}return L(i,[{key:"attach",value:function(r){return this._attachedHost=r,r.attach(this)}},{key:"detach",value:function(){var r=this._attachedHost;null!=r&&(this._attachedHost=null,r.detach())}},{key:"isAttached",get:function(){return null!=this._attachedHost}},{key:"setAttachedHost",value:function(r){this._attachedHost=r}}]),i}(),Rf=function(i){se(r,i);var s=ue(r);function r(n,l,c,p){var _;return R(this,r),(_=s.call(this)).component=n,_.viewContainerRef=l,_.injector=c,_.componentFactoryResolver=p,_}return L(r)}(o1),es=function(i){se(r,i);var s=ue(r);function r(n,l,c){var p;return R(this,r),(p=s.call(this)).templateRef=n,p.viewContainerRef=l,p.context=c,p}return L(r,[{key:"origin",get:function(){return this.templateRef.elementRef}},{key:"attach",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.context;return this.context=c,Ye(qe(r.prototype),"attach",this).call(this,l)}},{key:"detach",value:function(){return this.context=void 0,Ye(qe(r.prototype),"detach",this).call(this)}}]),r}(o1),xy=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this)).element=n instanceof tt?n.nativeElement:n,l}return L(r)}(o1),Ty=function(){function i(){R(this,i),this._isDisposed=!1,this.attachDomPortal=null}return L(i,[{key:"hasAttached",value:function(){return!!this._attachedPortal}},{key:"attach",value:function(r){return r instanceof Rf?(this._attachedPortal=r,this.attachComponentPortal(r)):r instanceof es?(this._attachedPortal=r,this.attachTemplatePortal(r)):this.attachDomPortal&&r instanceof xy?(this._attachedPortal=r,this.attachDomPortal(r)):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(r){this._disposeFn=r}},{key:"_invokeDisposeFn",value:function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}]),i}(),QT=function(i){se(r,i);var s=ue(r);function r(n,l,c,p,_){var w,M;return R(this,r),(M=s.call(this)).outletElement=n,M._componentFactoryResolver=l,M._appRef=c,M._defaultInjector=p,M.attachDomPortal=function(A){var O=A.element,F=M._document.createComment("dom-portal");O.parentNode.insertBefore(F,O),M.outletElement.appendChild(O),M._attachedPortal=A,Ye((w=an(M),qe(r.prototype)),"setDisposeFn",w).call(w,function(){F.parentNode&&F.parentNode.replaceChild(O,F)})},M._document=_,M}return L(r,[{key:"attachComponentPortal",value:function(l){var w,c=this,_=(l.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(l.component);return l.viewContainerRef?(w=l.viewContainerRef.createComponent(_,l.viewContainerRef.length,l.injector||l.viewContainerRef.injector),this.setDisposeFn(function(){return w.destroy()})):(w=_.create(l.injector||this._defaultInjector||kr.NULL),this._appRef.attachView(w.hostView),this.setDisposeFn(function(){c._appRef.viewCount>0&&c._appRef.detachView(w.hostView),w.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(w)),this._attachedPortal=l,w}},{key:"attachTemplatePortal",value:function(l){var c=this,p=l.viewContainerRef,_=p.createEmbeddedView(l.templateRef,l.context);return _.rootNodes.forEach(function(w){return c.outletElement.appendChild(w)}),_.detectChanges(),this.setDisposeFn(function(){var w=p.indexOf(_);-1!==w&&p.remove(w)}),this._attachedPortal=l,_}},{key:"dispose",value:function(){Ye(qe(r.prototype),"dispose",this).call(this),this.outletElement.remove()}},{key:"_getComponentRootNode",value:function(l){return l.hostView.rootNodes[0]}}]),r}(Ty),Tj=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c){return R(this,n),r.call(this,l,c)}return L(n)}(es);return i.\u0275fac=function(r){return new(r||i)(z(hr),z(wr))},i.\u0275dir=be({type:i,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[Re]}),i}(),pc=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p){var _,w;return R(this,n),(w=r.call(this))._componentFactoryResolver=l,w._viewContainerRef=c,w._isInitialized=!1,w.attached=new ye,w.attachDomPortal=function(M){var A=M.element,O=w._document.createComment("dom-portal");M.setAttachedHost(an(w)),A.parentNode.insertBefore(O,A),w._getRootNode().appendChild(A),w._attachedPortal=M,Ye((_=an(w),qe(n.prototype)),"setDisposeFn",_).call(_,function(){O.parentNode&&O.parentNode.replaceChild(A,O)})},w._document=p,w}return L(n,[{key:"portal",get:function(){return this._attachedPortal},set:function(c){this.hasAttached()&&!c&&!this._isInitialized||(this.hasAttached()&&Ye(qe(n.prototype),"detach",this).call(this),c&&Ye(qe(n.prototype),"attach",this).call(this,c),this._attachedPortal=c||null)}},{key:"attachedRef",get:function(){return this._attachedRef}},{key:"ngOnInit",value:function(){this._isInitialized=!0}},{key:"ngOnDestroy",value:function(){Ye(qe(n.prototype),"dispose",this).call(this),this._attachedPortal=null,this._attachedRef=null}},{key:"attachComponentPortal",value:function(c){c.setAttachedHost(this);var p=null!=c.viewContainerRef?c.viewContainerRef:this._viewContainerRef,w=(c.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(c.component),M=p.createComponent(w,p.length,c.injector||p.injector);return p!==this._viewContainerRef&&this._getRootNode().appendChild(M.hostView.rootNodes[0]),Ye(qe(n.prototype),"setDisposeFn",this).call(this,function(){return M.destroy()}),this._attachedPortal=c,this._attachedRef=M,this.attached.emit(M),M}},{key:"attachTemplatePortal",value:function(c){var p=this;c.setAttachedHost(this);var _=this._viewContainerRef.createEmbeddedView(c.templateRef,c.context);return Ye(qe(n.prototype),"setDisposeFn",this).call(this,function(){return p._viewContainerRef.clear()}),this._attachedPortal=c,this._attachedRef=_,this.attached.emit(_),_}},{key:"_getRootNode",value:function(){var c=this._viewContainerRef.element.nativeElement;return c.nodeType===c.ELEMENT_NODE?c:c.parentNode}}]),n}(Ty);return i.\u0275fac=function(r){return new(r||i)(z(Wu),z(wr),z(Jt))},i.\u0275dir=be({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[Re]}),i}(),Kv=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({}),i}();function Wt(i){return gr(function(s,r){ji(i).subscribe(ve(r,function(){return r.complete()},Gr)),!r.closed&&s.subscribe(r)})}function ia(i){for(var s=arguments.length,r=new Array(s>1?s-1:0),n=1;nl.height||n.scrollWidth>l.width}}]),i}(),a3=function(){function i(s,r,n,l){var c=this;R(this,i),this._scrollDispatcher=s,this._ngZone=r,this._viewportRuler=n,this._config=l,this._scrollSubscription=null,this._detach=function(){c.disable(),c._overlayRef.hasAttached()&&c._ngZone.run(function(){return c._overlayRef.detach()})}}return L(i,[{key:"attach",value:function(r){this._overlayRef=r}},{key:"enable",value:function(){var r=this;if(!this._scrollSubscription){var n=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(function(){var l=r._viewportRuler.getViewportScrollPosition().top;Math.abs(l-r._initialScrollPosition)>r._config.threshold?r._detach():r._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),i}(),lA=function(){function i(){R(this,i)}return L(i,[{key:"enable",value:function(){}},{key:"disable",value:function(){}},{key:"attach",value:function(){}}]),i}();function l1(i,s){return s.some(function(r){return i.bottomr.bottom||i.rightr.right})}function u1(i,s){return s.some(function(r){return i.topr.bottom||i.leftr.right})}var uA=function(){function i(s,r,n,l){R(this,i),this._scrollDispatcher=s,this._viewportRuler=r,this._ngZone=n,this._config=l,this._scrollSubscription=null}return L(i,[{key:"attach",value:function(r){this._overlayRef=r}},{key:"enable",value:function(){var r=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(r._overlayRef.updatePosition(),r._config&&r._config.autoClose){var l=r._overlayRef.overlayElement.getBoundingClientRect(),c=r._viewportRuler.getViewportSize(),p=c.width,_=c.height;l1(l,[{width:p,height:_,bottom:_,right:p,top:0,left:0}])&&(r.disable(),r._ngZone.run(function(){return r._overlayRef.detach()}))}}))}},{key:"disable",value:function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}},{key:"detach",value:function(){this.disable(),this._overlayRef=null}}]),i}(),cA=function(){var i=L(function s(r,n,l,c){var p=this;R(this,s),this._scrollDispatcher=r,this._viewportRuler=n,this._ngZone=l,this.noop=function(){return new lA},this.close=function(_){return new a3(p._scrollDispatcher,p._ngZone,p._viewportRuler,_)},this.block=function(){return new Gj(p._viewportRuler,p._document)},this.reposition=function(_){return new uA(p._scrollDispatcher,p._viewportRuler,p._ngZone,_)},this._document=c});return i.\u0275fac=function(r){return new(r||i)(ge(NN),ge(Ls),ge(Pt),ge(Jt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),Ff=L(function i(s){if(R(this,i),this.scrollStrategy=new lA,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,s)for(var n=0,l=Object.keys(s);noe&&(oe=we,$=ae)}}catch(De){le.e(De)}finally{le.f()}return this._isPushed=!1,void this._applyPosition($.position,$.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(_.position,_.originPoint);this._applyPosition(_.position,_.originPoint)}}},{key:"detach",value:function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}},{key:"dispose",value:function(){this._isDisposed||(this._boundingBox&&Wh(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(mu),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}},{key:"reapplyLastPosition",value:function(){if(!this._isDisposed&&this._platform.isBrowser){var r=this._lastPosition;if(r){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();var n=this._getOriginPoint(this._originRect,this._containerRect,r);this._applyPosition(r,n)}else this.apply()}}},{key:"withScrollableContainers",value:function(r){return this._scrollables=r,this}},{key:"withPositions",value:function(r){return this._preferredPositions=r,-1===r.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}},{key:"withViewportMargin",value:function(r){return this._viewportMargin=r,this}},{key:"withFlexibleDimensions",value:function(){var r=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._hasFlexibleDimensions=r,this}},{key:"withGrowAfterOpen",value:function(){var r=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._growAfterOpen=r,this}},{key:"withPush",value:function(){var r=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._canPush=r,this}},{key:"withLockedPosition",value:function(){var r=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._positionLocked=r,this}},{key:"setOrigin",value:function(r){return this._origin=r,this}},{key:"withDefaultOffsetX",value:function(r){return this._offsetX=r,this}},{key:"withDefaultOffsetY",value:function(r){return this._offsetY=r,this}},{key:"withTransformOriginOn",value:function(r){return this._transformOriginSelector=r,this}},{key:"_getOriginPoint",value:function(r,n,l){var c,w;if("center"==l.originX)c=r.left+r.width/2;else{var p=this._isRtl()?r.right:r.left,_=this._isRtl()?r.left:r.right;c="start"==l.originX?p:_}return n.left<0&&(c-=n.left),w="center"==l.originY?r.top+r.height/2:"top"==l.originY?r.top:r.bottom,n.top<0&&(w-=n.top),{x:c,y:w}}},{key:"_getOverlayPoint",value:function(r,n,l){var c;return c="center"==l.overlayX?-n.width/2:"start"===l.overlayX?this._isRtl()?-n.width:0:this._isRtl()?0:-n.width,{x:r.x+c,y:r.y+("center"==l.overlayY?-n.height/2:"top"==l.overlayY?0:-n.height)}}},{key:"_getOverlayFit",value:function(r,n,l,c){var p=l3(n),_=r.x,w=r.y,M=this._getOffset(c,"x"),A=this._getOffset(c,"y");M&&(_+=M),A&&(w+=A);var Y=0-w,$=w+p.height-l.height,oe=this._subtractOverflows(p.width,0-_,_+p.width-l.width),le=this._subtractOverflows(p.height,Y,$),fe=oe*le;return{visibleArea:fe,isCompletelyWithinViewport:p.width*p.height===fe,fitsInViewportVertically:le===p.height,fitsInViewportHorizontally:oe==p.width}}},{key:"_canFitWithFlexibleDimensions",value:function(r,n,l){if(this._hasFlexibleDimensions){var c=l.bottom-n.y,p=l.right-n.x,_=c1(this._overlayRef.getConfig().minHeight),w=c1(this._overlayRef.getConfig().minWidth);return(r.fitsInViewportVertically||null!=_&&_<=c)&&(r.fitsInViewportHorizontally||null!=w&&w<=p)}return!1}},{key:"_pushOverlayOnScreen",value:function(r,n,l){if(this._previousPushAmount&&this._positionLocked)return{x:r.x+this._previousPushAmount.x,y:r.y+this._previousPushAmount.y};var O,F,c=l3(n),p=this._viewportRect,_=Math.max(r.x+c.width-p.width,0),w=Math.max(r.y+c.height-p.height,0),M=Math.max(p.top-l.top-r.y,0),A=Math.max(p.left-l.left-r.x,0);return this._previousPushAmount={x:O=c.width<=p.width?A||-_:r.xA&&!this._isInitialRender&&!this._growAfterOpen&&(_=r.y-A/2)}if("end"===n.overlayX&&!c||"start"===n.overlayX&&c)oe=l.width-r.x+this._viewportMargin,Y=r.x-this._viewportMargin;else if("start"===n.overlayX&&!c||"end"===n.overlayX&&c)$=r.x,Y=l.right-r.x;else{var le=Math.min(l.right-r.x+l.left,r.x),fe=this._lastBoundingBoxSize.width;$=r.x-le,(Y=2*le)>fe&&!this._isInitialRender&&!this._growAfterOpen&&($=r.x-fe/2)}return{top:_,left:$,bottom:w,right:oe,width:Y,height:p}}},{key:"_setBoundingBoxStyles",value:function(r,n){var l=this._calculateBoundingBoxRect(r,n);!this._isInitialRender&&!this._growAfterOpen&&(l.height=Math.min(l.height,this._lastBoundingBoxSize.height),l.width=Math.min(l.width,this._lastBoundingBoxSize.width));var c={};if(this._hasExactPosition())c.top=c.left="0",c.bottom=c.right=c.maxHeight=c.maxWidth="",c.width=c.height="100%";else{var p=this._overlayRef.getConfig().maxHeight,_=this._overlayRef.getConfig().maxWidth;c.height=Ai(l.height),c.top=Ai(l.top),c.bottom=Ai(l.bottom),c.width=Ai(l.width),c.left=Ai(l.left),c.right=Ai(l.right),c.alignItems="center"===n.overlayX?"center":"end"===n.overlayX?"flex-end":"flex-start",c.justifyContent="center"===n.overlayY?"center":"bottom"===n.overlayY?"flex-end":"flex-start",p&&(c.maxHeight=Ai(p)),_&&(c.maxWidth=Ai(_))}this._lastBoundingBoxSize=l,Wh(this._boundingBox.style,c)}},{key:"_resetBoundingBoxStyles",value:function(){Wh(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}},{key:"_resetOverlayElementStyles",value:function(){Wh(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}},{key:"_setOverlayElementStyles",value:function(r,n){var l={},c=this._hasExactPosition(),p=this._hasFlexibleDimensions,_=this._overlayRef.getConfig();if(c){var w=this._viewportRuler.getViewportScrollPosition();Wh(l,this._getExactOverlayY(n,r,w)),Wh(l,this._getExactOverlayX(n,r,w))}else l.position="static";var M="",A=this._getOffset(n,"x"),O=this._getOffset(n,"y");A&&(M+="translateX(".concat(A,"px) ")),O&&(M+="translateY(".concat(O,"px)")),l.transform=M.trim(),_.maxHeight&&(c?l.maxHeight=Ai(_.maxHeight):p&&(l.maxHeight="")),_.maxWidth&&(c?l.maxWidth=Ai(_.maxWidth):p&&(l.maxWidth="")),Wh(this._pane.style,l)}},{key:"_getExactOverlayY",value:function(r,n,l){var c={top:"",bottom:""},p=this._getOverlayPoint(n,this._overlayRect,r);return this._isPushed&&(p=this._pushOverlayOnScreen(p,this._overlayRect,l)),"bottom"===r.overlayY?c.bottom="".concat(this._document.documentElement.clientHeight-(p.y+this._overlayRect.height),"px"):c.top=Ai(p.y),c}},{key:"_getExactOverlayX",value:function(r,n,l){var c={left:"",right:""},p=this._getOverlayPoint(n,this._overlayRect,r);return this._isPushed&&(p=this._pushOverlayOnScreen(p,this._overlayRect,l)),"right"==(this._isRtl()?"end"===r.overlayX?"left":"right":"end"===r.overlayX?"right":"left")?c.right="".concat(this._document.documentElement.clientWidth-(p.x+this._overlayRect.width),"px"):c.left=Ai(p.x),c}},{key:"_getScrollVisibility",value:function(){var r=this._getOriginRect(),n=this._pane.getBoundingClientRect(),l=this._scrollables.map(function(c){return c.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:u1(r,l),isOriginOutsideView:l1(r,l),isOverlayClipped:u1(n,l),isOverlayOutsideView:l1(n,l)}}},{key:"_subtractOverflows",value:function(r){for(var n=arguments.length,l=new Array(n>1?n-1:0),c=1;c0&&void 0!==arguments[0]?arguments[0]:"";return this._bottomOffset="",this._topOffset=r,this._alignItems="flex-start",this}},{key:"left",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._rightOffset="",this._leftOffset=r,this._justifyContent="flex-start",this}},{key:"bottom",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._topOffset="",this._bottomOffset=r,this._alignItems="flex-end",this}},{key:"right",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._leftOffset="",this._rightOffset=r,this._justifyContent="flex-end",this}},{key:"width",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({width:r}):this._width=r,this}},{key:"height",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this._overlayRef?this._overlayRef.updateSize({height:r}):this._height=r,this}},{key:"centerHorizontally",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.left(r),this._justifyContent="center",this}},{key:"centerVertically",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return this.top(r),this._alignItems="center",this}},{key:"apply",value:function(){if(this._overlayRef&&this._overlayRef.hasAttached()){var r=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement.style,l=this._overlayRef.getConfig(),c=l.width,p=l.height,_=l.maxWidth,w=l.maxHeight,M=!("100%"!==c&&"100vw"!==c||_&&"100%"!==_&&"100vw"!==_),A=!("100%"!==p&&"100vh"!==p||w&&"100%"!==w&&"100vh"!==w);r.position=this._cssPosition,r.marginLeft=M?"0":this._leftOffset,r.marginTop=A?"0":this._topOffset,r.marginBottom=this._bottomOffset,r.marginRight=this._rightOffset,M?n.justifyContent="flex-start":"center"===this._justifyContent?n.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?n.justifyContent="flex-end":"flex-end"===this._justifyContent&&(n.justifyContent="flex-start"):n.justifyContent=this._justifyContent,n.alignItems=A?"flex-start":this._alignItems}}},{key:"dispose",value:function(){if(!this._isDisposed&&this._overlayRef){var r=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement,l=n.style;n.classList.remove(hA),l.justifyContent=l.alignItems=r.marginTop=r.marginBottom=r.marginLeft=r.marginRight=r.position="",this._overlayRef=null,this._isDisposed=!0}}}]),i}(),u3=function(){var i=function(){function s(r,n,l,c){R(this,s),this._viewportRuler=r,this._document=n,this._platform=l,this._overlayContainer=c}return L(s,[{key:"global",value:function(){return new qj}},{key:"flexibleConnectedTo",value:function(n){return new dA(n,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(Ls),ge(Jt),ge(pn),ge(Ly))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),f1=function(){var i=function(){function s(r){R(this,s),this._attachedOverlays=[],this._document=r}return L(s,[{key:"ngOnDestroy",value:function(){this.detach()}},{key:"add",value:function(n){this.remove(n),this._attachedOverlays.push(n)}},{key:"remove",value:function(n){var l=this._attachedOverlays.indexOf(n);l>-1&&this._attachedOverlays.splice(l,1),0===this._attachedOverlays.length&&this.detach()}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(Jt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),Zj=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c){var p;return R(this,n),(p=r.call(this,l))._ngZone=c,p._keydownListener=function(_){for(var w=p._attachedOverlays,M=w.length-1;M>-1&&!(w[M]._keydownEvents.observers.length>0&&"break"===function(){var O=w[M]._keydownEvents;return p._ngZone?p._ngZone.run(function(){return O.next(_)}):O.next(_),"break"}());M--);},p}return L(n,[{key:"add",value:function(c){var p=this;Ye(qe(n.prototype),"add",this).call(this,c),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(function(){return p._document.body.addEventListener("keydown",p._keydownListener)}):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}(f1);return i.\u0275fac=function(r){return new(r||i)(ge(Jt),ge(Pt,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),Xj=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p){var _;return R(this,n),(_=r.call(this,l))._platform=c,_._ngZone=p,_._cursorStyleIsSet=!1,_._pointerDownListener=function(w){_._pointerDownEventTarget=hc(w)},_._clickListener=function(w){var M=hc(w),A="click"===w.type&&_._pointerDownEventTarget?_._pointerDownEventTarget:M;_._pointerDownEventTarget=null;for(var O=_._attachedOverlays.slice(),F=function(le){var fe=O[le];if(fe._outsidePointerEvents.observers.length<1||!fe.hasAttached())return"continue";if(fe.overlayElement.contains(M)||fe.overlayElement.contains(A))return"break";var ae=fe._outsidePointerEvents;_._ngZone?_._ngZone.run(function(){return ae.next(w)}):ae.next(w)},Y=O.length-1;Y>-1;Y--){var $=F(Y);if("continue"!==$&&"break"===$)break}},_}return L(n,[{key:"add",value:function(c){var p=this;if(Ye(qe(n.prototype),"add",this).call(this,c),!this._isAttached){var _=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(function(){return p._addEventListeners(_)}):this._addEventListeners(_),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=_.style.cursor,_.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}},{key:"detach",value:function(){if(this._isAttached){var c=this._document.body;c.removeEventListener("pointerdown",this._pointerDownListener,!0),c.removeEventListener("click",this._clickListener,!0),c.removeEventListener("auxclick",this._clickListener,!0),c.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(c.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}},{key:"_addEventListeners",value:function(c){c.addEventListener("pointerdown",this._pointerDownListener,!0),c.addEventListener("click",this._clickListener,!0),c.addEventListener("auxclick",this._clickListener,!0),c.addEventListener("contextmenu",this._clickListener,!0)}}]),n}(f1);return i.\u0275fac=function(r){return new(r||i)(ge(Jt),ge(pn),ge(Pt,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),pA=0,aa=function(){var i=function(){function s(r,n,l,c,p,_,w,M,A,O,F){R(this,s),this.scrollStrategies=r,this._overlayContainer=n,this._componentFactoryResolver=l,this._positionBuilder=c,this._keyboardDispatcher=p,this._injector=_,this._ngZone=w,this._document=M,this._directionality=A,this._location=O,this._outsideClickDispatcher=F}return L(s,[{key:"create",value:function(n){var l=this._createHostElement(),c=this._createPaneElement(l),p=this._createPortalOutlet(c),_=new Ff(n);return _.direction=_.direction||this._directionality.value,new s3(p,l,c,_,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}},{key:"position",value:function(){return this._positionBuilder}},{key:"_createPaneElement",value:function(n){var l=this._document.createElement("div");return l.id="cdk-overlay-".concat(pA++),l.classList.add("cdk-overlay-pane"),n.appendChild(l),l}},{key:"_createHostElement",value:function(){var n=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(n),n}},{key:"_createPortalOutlet",value:function(n){return this._appRef||(this._appRef=this._injector.get(F_)),new QT(n,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(cA),ge(Ly),ge(Wu),ge(u3),ge(Zj),ge(kr),ge(Pt),ge(Jt),ge(Ei),ge(z_),ge(Xj))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),c3=[{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"}],vA=new Ae("cdk-connected-overlay-scroll-strategy"),f3=function(){var i=L(function s(r){R(this,s),this.elementRef=r});return i.\u0275fac=function(r){return new(r||i)(z(tt))},i.\u0275dir=be({type:i,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),i}(),gA=function(){var i=function(){function s(r,n,l,c,p){R(this,s),this._overlay=r,this._dir=p,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=Te.EMPTY,this._attachSubscription=Te.EMPTY,this._detachSubscription=Te.EMPTY,this._positionSubscription=Te.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new ye,this.positionChange=new ye,this.attach=new ye,this.detach=new ye,this.overlayKeydown=new ye,this.overlayOutsideClick=new ye,this._templatePortal=new es(n,l),this._scrollStrategyFactory=c,this.scrollStrategy=this._scrollStrategyFactory()}return L(s,[{key:"offsetX",get:function(){return this._offsetX},set:function(n){this._offsetX=n,this._position&&this._updatePositionStrategy(this._position)}},{key:"offsetY",get:function(){return this._offsetY},set:function(n){this._offsetY=n,this._position&&this._updatePositionStrategy(this._position)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(n){this._hasBackdrop=gt(n)}},{key:"lockPosition",get:function(){return this._lockPosition},set:function(n){this._lockPosition=gt(n)}},{key:"flexibleDimensions",get:function(){return this._flexibleDimensions},set:function(n){this._flexibleDimensions=gt(n)}},{key:"growAfterOpen",get:function(){return this._growAfterOpen},set:function(n){this._growAfterOpen=gt(n)}},{key:"push",get:function(){return this._push},set:function(n){this._push=gt(n)}},{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(n){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),n.origin&&this.open&&this._position.apply()),n.open&&(this.open?this._attachOverlay():this._detachOverlay())}},{key:"_createOverlay",value:function(){var n=this;(!this.positions||!this.positions.length)&&(this.positions=c3);var l=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=l.attachments().subscribe(function(){return n.attach.emit()}),this._detachSubscription=l.detachments().subscribe(function(){return n.detach.emit()}),l.keydownEvents().subscribe(function(c){n.overlayKeydown.next(c),27===c.keyCode&&!n.disableClose&&!ia(c)&&(c.preventDefault(),n._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(function(c){n.overlayOutsideClick.next(c)})}},{key:"_buildConfig",value:function(){var n=this._position=this.positionStrategy||this._createPositionStrategy(),l=new Ff({direction:this._dir,positionStrategy:n,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(l.width=this.width),(this.height||0===this.height)&&(l.height=this.height),(this.minWidth||0===this.minWidth)&&(l.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(l.minHeight=this.minHeight),this.backdropClass&&(l.backdropClass=this.backdropClass),this.panelClass&&(l.panelClass=this.panelClass),l}},{key:"_updatePositionStrategy",value:function(n){var l=this,c=this.positions.map(function(p){return{originX:p.originX,originY:p.originY,overlayX:p.overlayX,overlayY:p.overlayY,offsetX:p.offsetX||l.offsetX,offsetY:p.offsetY||l.offsetY,panelClass:p.panelClass||void 0}});return n.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(c).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}},{key:"_createPositionStrategy",value:function(){var n=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(n),n}},{key:"_getFlexibleConnectedPositionStrategyOrigin",value:function(){return this.origin instanceof f3?this.origin.elementRef:this.origin}},{key:"_attachOverlay",value:function(){var n=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(l){n.backdropClick.emit(l)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function JT(i){var s=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return gr(function(r,n){var l=0;r.subscribe(ve(n,function(c){var p=i(c,l++);(p||s)&&n.next(c),!p&&n.complete()}))})}(function(){return n.positionChange.observers.length>0})).subscribe(function(l){n.positionChange.emit(l),0===n.positionChange.observers.length&&n._positionSubscription.unsubscribe()}))}},{key:"_detachOverlay",value:function(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(aa),z(hr),z(wr),z(vA),z(Ei,8))},i.\u0275dir=be({type:i,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[xn]}),i}(),d1={provide:vA,deps:[aa],useFactory:function Kj(i){return function(){return i.scrollStrategies.reposition()}}},Nf=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({providers:[aa,d1],imports:[[Dy,Kv,$T],$T]}),i}();function h1(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:El;return gr(function(r,n){var l=null,c=null,p=null,_=function(){if(l){l.unsubscribe(),l=null;var A=c;c=null,n.next(A)}};function w(){var M=p+i,A=s.now();if(A1&&void 0!==arguments[1]?arguments[1]:Ec;return i=null!=i?i:$j,gr(function(r,n){var l,c=!0;r.subscribe(ve(n,function(p){var _=s(p);(c||!i(l,_))&&(c=!1,l=_,n.next(p))}))})}function $j(i,s){return i===s}var h3=function(){var i=function(){function s(){R(this,s)}return L(s,[{key:"create",value:function(n){return"undefined"==typeof MutationObserver?null:new MutationObserver(n)}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),Qj=function(){var i=function(){function s(r){R(this,s),this._mutationObserverFactory=r,this._observedElements=new Map}return L(s,[{key:"ngOnDestroy",value:function(){var n=this;this._observedElements.forEach(function(l,c){return n._cleanupObserver(c)})}},{key:"observe",value:function(n){var l=this,c=vu(n);return new Jn(function(p){var w=l._observeElement(c).subscribe(p);return function(){w.unsubscribe(),l._unobserveElement(c)}})}},{key:"_observeElement",value:function(n){if(this._observedElements.has(n))this._observedElements.get(n).count++;else{var l=new Xe,c=this._mutationObserverFactory.create(function(p){return l.next(p)});c&&c.observe(n,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(n,{observer:c,stream:l,count:1})}return this._observedElements.get(n).stream}},{key:"_unobserveElement",value:function(n){this._observedElements.has(n)&&(this._observedElements.get(n).count--,this._observedElements.get(n).count||this._cleanupObserver(n))}},{key:"_cleanupObserver",value:function(n){if(this._observedElements.has(n)){var l=this._observedElements.get(n),c=l.observer,p=l.stream;c&&c.disconnect(),p.complete(),this._observedElements.delete(n)}}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(h3))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),p1=function(){var i=function(){function s(r,n,l){R(this,s),this._contentObserver=r,this._elementRef=n,this._ngZone=l,this.event=new ye,this._disabled=!1,this._currentSubscription=null}return L(s,[{key:"disabled",get:function(){return this._disabled},set:function(n){this._disabled=gt(n),this._disabled?this._unsubscribe():this._subscribe()}},{key:"debounce",get:function(){return this._debounce},set:function(n){this._debounce=Va(n),this._subscribe()}},{key:"ngAfterContentInit",value:function(){!this._currentSubscription&&!this.disabled&&this._subscribe()}},{key:"ngOnDestroy",value:function(){this._unsubscribe()}},{key:"_subscribe",value:function(){var n=this;this._unsubscribe();var l=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(function(){n._currentSubscription=(n.debounce?l.pipe(h1(n.debounce)):l).subscribe(n.event)})}},{key:"_unsubscribe",value:function(){var n;null===(n=this._currentSubscription)||void 0===n||n.unsubscribe()}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Qj),z(tt),z(Pt))},i.\u0275dir=be({type:i,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),i}(),Ny=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({providers:[h3]}),i}();function v1(i,s){return(i.getAttribute(s)||"").match(/\S+/g)||[]}var v3="cdk-describedby-message",g1="cdk-describedby-host",g3=0,m3=function(){var i=function(){function s(r,n){R(this,s),this._platform=n,this._messageRegistry=new Map,this._messagesContainer=null,this._id="".concat(g3++),this._document=r}return L(s,[{key:"describe",value:function(n,l,c){if(this._canBeDescribed(n,l)){var p=yA(l,c);"string"!=typeof l?(_3(l),this._messageRegistry.set(p,{messageElement:l,referenceCount:0})):this._messageRegistry.has(p)||this._createMessageElement(l,c),this._isElementDescribedByMessage(n,p)||this._addMessageReference(n,p)}}},{key:"removeDescription",value:function(n,l,c){var p;if(l&&this._isElementNode(n)){var _=yA(l,c);if(this._isElementDescribedByMessage(n,_)&&this._removeMessageReference(n,_),"string"==typeof l){var w=this._messageRegistry.get(_);w&&0===w.referenceCount&&this._deleteMessageElement(_)}0===(null===(p=this._messagesContainer)||void 0===p?void 0:p.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}}},{key:"ngOnDestroy",value:function(){for(var n,l=this._document.querySelectorAll("[".concat(g1,'="').concat(this._id,'"]')),c=0;c-1&&c!==r._activeItemIndex&&(r._activeItemIndex=c)}})}return L(i,[{key:"skipPredicate",value:function(r){return this._skipPredicateFn=r,this}},{key:"withWrap",value:function(){var r=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._wrap=r,this}},{key:"withVerticalOrientation",value:function(){var r=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this._vertical=r,this}},{key:"withHorizontalOrientation",value:function(r){return this._horizontal=r,this}},{key:"withAllowedModifierKeys",value:function(r){return this._allowedModifierKeys=r,this}},{key:"withTypeAhead",value:function(){var r=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(ao(function(l){return r._pressedLetters.push(l)}),h1(n),Ur(function(){return r._pressedLetters.length>0}),on(function(){return r._pressedLetters.join("")})).subscribe(function(l){for(var c=r._getItemsArray(),p=1;p0&&void 0!==arguments[0])||arguments[0];return this._homeAndEnd=r,this}},{key:"setActiveItem",value:function(r){var n=this._activeItem;this.updateActiveItem(r),this._activeItem!==n&&this.change.next(this._activeItemIndex)}},{key:"onKeydown",value:function(r){var n=this,l=r.keyCode,p=["altKey","ctrlKey","metaKey","shiftKey"].every(function(_){return!r[_]||n._allowedModifierKeys.indexOf(_)>-1});switch(l){case 9:return void this.tabOut.next();case 40:if(this._vertical&&p){this.setNextItemActive();break}return;case 38:if(this._vertical&&p){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&p){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&p){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&p){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&p){this.setLastItemActive();break}return;default:return void((p||ia(r,"shiftKey"))&&(r.key&&1===r.key.length?this._letterKeyStream.next(r.key.toLocaleUpperCase()):(l>=65&&l<=90||l>=48&&l<=57)&&this._letterKeyStream.next(String.fromCharCode(l))))}this._pressedLetters=[],r.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(r){var n=this._getItemsArray(),l="number"==typeof r?r:n.indexOf(r),c=n[l];this._activeItem=null==c?null:c,this._activeItemIndex=l}},{key:"_setActiveItemByDelta",value:function(r){this._wrap?this._setActiveInWrapMode(r):this._setActiveInDefaultMode(r)}},{key:"_setActiveInWrapMode",value:function(r){for(var n=this._getItemsArray(),l=1;l<=n.length;l++){var c=(this._activeItemIndex+r*l+n.length)%n.length;if(!this._skipPredicateFn(n[c]))return void this.setActiveItem(c)}}},{key:"_setActiveInDefaultMode",value:function(r){this._setActiveItemByIndex(this._activeItemIndex+r,r)}},{key:"_setActiveItemByIndex",value:function(r,n){var l=this._getItemsArray();if(l[r]){for(;this._skipPredicateFn(l[r]);)if(!l[r+=n])return;this.setActiveItem(r)}}},{key:"_getItemsArray",value:function(){return this._items instanceof no?this._items.toArray():this._items}}]),i}(),b3=function(i){se(r,i);var s=ue(r);function r(){return R(this,r),s.apply(this,arguments)}return L(r,[{key:"setActiveItem",value:function(l){this.activeItem&&this.activeItem.setInactiveStyles(),Ye(qe(r.prototype),"setActiveItem",this).call(this,l),this.activeItem&&this.activeItem.setActiveStyles()}}]),r}(y3),bA=function(i){se(r,i);var s=ue(r);function r(){var n;return R(this,r),(n=s.apply(this,arguments))._origin="program",n}return L(r,[{key:"setFocusOrigin",value:function(l){return this._origin=l,this}},{key:"setActiveItem",value:function(l){Ye(qe(r.prototype),"setActiveItem",this).call(this,l),this.activeItem&&this.activeItem.focus(this._origin)}}]),r}(y3),C3=function(){var i=function(){function s(r){R(this,s),this._platform=r}return L(s,[{key:"isDisabled",value:function(n){return n.hasAttribute("disabled")}},{key:"isVisible",value:function(n){return function r7(i){return!!(i.offsetWidth||i.offsetHeight||"function"==typeof i.getClientRects&&i.getClientRects().length)}(n)&&"visible"===getComputedStyle(n).visibility}},{key:"isTabbable",value:function(n){if(!this._platform.isBrowser)return!1;var l=function n7(i){try{return i.frameElement}catch(s){return null}}(function c7(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}(n));if(l&&(-1===M3(l)||!this.isVisible(l)))return!1;var c=n.nodeName.toLowerCase(),p=M3(n);return n.hasAttribute("contenteditable")?-1!==p:!("iframe"===c||"object"===c||this._platform.WEBKIT&&this._platform.IOS&&!function CA(i){var s=i.nodeName.toLowerCase(),r="input"===s&&i.type;return"text"===r||"password"===r||"select"===s||"textarea"===s}(n))&&("audio"===c?!!n.hasAttribute("controls")&&-1!==p:"video"===c?-1!==p&&(null!==p||this._platform.FIREFOX||n.hasAttribute("controls")):n.tabIndex>=0)}},{key:"isFocusable",value:function(n,l){return function u7(i){return!function a7(i){return function s7(i){return"input"==i.nodeName.toLowerCase()}(i)&&"hidden"==i.type}(i)&&(function w3(i){var s=i.nodeName.toLowerCase();return"input"===s||"select"===s||"button"===s||"textarea"===s}(i)||function o7(i){return function l7(i){return"a"==i.nodeName.toLowerCase()}(i)&&i.hasAttribute("href")}(i)||i.hasAttribute("contenteditable")||S3(i))}(n)&&!this.isDisabled(n)&&((null==l?void 0:l.ignoreVisibility)||this.isVisible(n))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(pn))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}();function S3(i){if(!i.hasAttribute("tabindex")||void 0===i.tabIndex)return!1;var s=i.getAttribute("tabindex");return!(!s||isNaN(parseInt(s,10)))}function M3(i){if(!S3(i))return null;var s=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(s)?-1:s}var f7=function(){function i(s,r,n,l){var c=this,p=arguments.length>4&&void 0!==arguments[4]&&arguments[4];R(this,i),this._element=s,this._checker=r,this._ngZone=n,this._document=l,this._hasAttached=!1,this.startAnchorListener=function(){return c.focusLastTabbableElement()},this.endAnchorListener=function(){return c.focusFirstTabbableElement()},this._enabled=!0,p||this.attachAnchors()}return L(i,[{key:"enabled",get:function(){return this._enabled},set:function(r){this._enabled=r,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}},{key:"destroy",value:function(){var r=this._startAnchor,n=this._endAnchor;r&&(r.removeEventListener("focus",this.startAnchorListener),r.remove()),n&&(n.removeEventListener("focus",this.endAnchorListener),n.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}},{key:"attachAnchors",value:function(){var r=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){r._startAnchor||(r._startAnchor=r._createAnchor(),r._startAnchor.addEventListener("focus",r.startAnchorListener)),r._endAnchor||(r._endAnchor=r._createAnchor(),r._endAnchor.addEventListener("focus",r.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(r){var n=this;return new Promise(function(l){n._executeOnStable(function(){return l(n.focusInitialElement(r))})})}},{key:"focusFirstTabbableElementWhenReady",value:function(r){var n=this;return new Promise(function(l){n._executeOnStable(function(){return l(n.focusFirstTabbableElement(r))})})}},{key:"focusLastTabbableElementWhenReady",value:function(r){var n=this;return new Promise(function(l){n._executeOnStable(function(){return l(n.focusLastTabbableElement(r))})})}},{key:"_getRegionBoundary",value:function(r){var n=this._element.querySelectorAll("[cdk-focus-region-".concat(r,"], ")+"[cdkFocusRegion".concat(r,"], ")+"[cdk-focus-".concat(r,"]"));return"start"==r?n.length?n[0]:this._getFirstTabbableElement(this._element):n.length?n[n.length-1]:this._getLastTabbableElement(this._element)}},{key:"focusInitialElement",value:function(r){var n=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(n){if(!this._checker.isFocusable(n)){var l=this._getFirstTabbableElement(n);return null==l||l.focus(r),!!l}return n.focus(r),!0}return this.focusFirstTabbableElement(r)}},{key:"focusFirstTabbableElement",value:function(r){var n=this._getRegionBoundary("start");return n&&n.focus(r),!!n}},{key:"focusLastTabbableElement",value:function(r){var n=this._getRegionBoundary("end");return n&&n.focus(r),!!n}},{key:"hasAttached",value:function(){return this._hasAttached}},{key:"_getFirstTabbableElement",value:function(r){if(this._checker.isFocusable(r)&&this._checker.isTabbable(r))return r;for(var n=r.children,l=0;l=0;l--){var c=n[l].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(n[l]):null;if(c)return c}return null}},{key:"_createAnchor",value:function(){var r=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,r),r.classList.add("cdk-visually-hidden"),r.classList.add("cdk-focus-trap-anchor"),r.setAttribute("aria-hidden","true"),r}},{key:"_toggleAnchorTabIndex",value:function(r,n){r?n.setAttribute("tabindex","0"):n.removeAttribute("tabindex")}},{key:"toggleAnchors",value:function(r){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(r,this._startAnchor),this._toggleAnchorTabIndex(r,this._endAnchor))}},{key:"_executeOnStable",value:function(r){this._ngZone.isStable?r():this._ngZone.onStable.pipe(gn(1)).subscribe(r)}}]),i}(),k3=function(){var i=function(){function s(r,n,l){R(this,s),this._checker=r,this._ngZone=n,this._document=l}return L(s,[{key:"create",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return new f7(n,this._checker,this._ngZone,this._document,l)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(C3),ge(Pt),ge(Jt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),d7=function(){var i=function(){function s(r,n,l){R(this,s),this._elementRef=r,this._focusTrapFactory=n,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return L(s,[{key:"enabled",get:function(){return this.focusTrap.enabled},set:function(n){this.focusTrap.enabled=gt(n)}},{key:"autoCapture",get:function(){return this._autoCapture},set:function(n){this._autoCapture=gt(n)}},{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(n){var l=n.autoCapture;l&&!l.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}},{key:"_captureFocus",value:function(){this._previouslyFocusedElement=Gh(),this.focusTrap.focusInitialElementWhenReady()}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(tt),z(k3),z(Jt))},i.\u0275dir=be({type:i,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[xn]}),i}();function SA(i){return 0===i.buttons||0===i.offsetX&&0===i.offsetY}function MA(i){var s=i.touches&&i.touches[0]||i.changedTouches&&i.changedTouches[0];return!(!s||-1!==s.identifier||null!=s.radiusX&&1!==s.radiusX||null!=s.radiusY&&1!==s.radiusY)}var D3=new Ae("cdk-input-modality-detector-options"),x3={ignoreKeys:[18,17,224,91,16]},tg=Vh({passive:!0,capture:!0}),h7=function(){var i=function(){function s(r,n,l,c){var p=this;R(this,s),this._platform=r,this._mostRecentTarget=null,this._modality=new Na(null),this._lastTouchMs=0,this._onKeydown=function(_){var w,M;(null===(M=null===(w=p._options)||void 0===w?void 0:w.ignoreKeys)||void 0===M?void 0:M.some(function(A){return A===_.keyCode}))||(p._modality.next("keyboard"),p._mostRecentTarget=hc(_))},this._onMousedown=function(_){Date.now()-p._lastTouchMs<650||(p._modality.next(SA(_)?"keyboard":"mouse"),p._mostRecentTarget=hc(_))},this._onTouchstart=function(_){MA(_)?p._modality.next("keyboard"):(p._lastTouchMs=Date.now(),p._modality.next("touch"),p._mostRecentTarget=hc(_))},this._options=Object.assign(Object.assign({},x3),c),this.modalityDetected=this._modality.pipe(_A(1)),this.modalityChanged=this.modalityDetected.pipe(Fy()),r.isBrowser&&n.runOutsideAngular(function(){l.addEventListener("keydown",p._onKeydown,tg),l.addEventListener("mousedown",p._onMousedown,tg),l.addEventListener("touchstart",p._onTouchstart,tg)})}return L(s,[{key:"mostRecentModality",get:function(){return this._modality.value}},{key:"ngOnDestroy",value:function(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,tg),document.removeEventListener("mousedown",this._onMousedown,tg),document.removeEventListener("touchstart",this._onTouchstart,tg))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(pn),ge(Pt),ge(Jt),ge(D3,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),p7=new Ae("liveAnnouncerElement",{providedIn:"root",factory:function A3(){return null}}),E3=new Ae("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),kA=function(){var i=function(){function s(r,n,l,c){R(this,s),this._ngZone=n,this._defaultOptions=c,this._document=l,this._liveElement=r||this._createLiveElement()}return L(s,[{key:"announce",value:function(n){for(var p,_,l=this,c=this._defaultOptions,w=arguments.length,M=new Array(w>1?w-1:0),A=1;A1&&void 0!==arguments[1]&&arguments[1],c=vu(n);if(!this._platform.isBrowser||1!==c.nodeType)return dt(null);var p=ZT(c)||this._getDocument(),_=this._elementInfo.get(c);if(_)return l&&(_.checkChildren=!0),_.subject;var w={checkChildren:l,subject:new Xe,rootNode:p};return this._elementInfo.set(c,w),this._registerGlobalListeners(w),w.subject}},{key:"stopMonitoring",value:function(n){var l=vu(n),c=this._elementInfo.get(l);c&&(c.subject.complete(),this._setClasses(l),this._elementInfo.delete(l),this._removeGlobalListeners(c))}},{key:"focusVia",value:function(n,l,c){var p=this,_=vu(n);_===this._getDocument().activeElement?this._getClosestElementsInfo(_).forEach(function(M){var A=Pr(M,2);return p._originChanged(A[0],l,A[1])}):(this._setOrigin(l),"function"==typeof _.focus&&_.focus(c))}},{key:"ngOnDestroy",value:function(){var n=this;this._elementInfo.forEach(function(l,c){return n.stopMonitoring(c)})}},{key:"_getDocument",value:function(){return this._document||document}},{key:"_getWindow",value:function(){return this._getDocument().defaultView||window}},{key:"_getFocusOrigin",value:function(n){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(n)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}},{key:"_shouldBeAttributedToTouch",value:function(n){return 1===this._detectionMode||!!(null==n?void 0:n.contains(this._inputModalityDetector._mostRecentTarget))}},{key:"_setClasses",value:function(n,l){n.classList.toggle("cdk-focused",!!l),n.classList.toggle("cdk-touch-focused","touch"===l),n.classList.toggle("cdk-keyboard-focused","keyboard"===l),n.classList.toggle("cdk-mouse-focused","mouse"===l),n.classList.toggle("cdk-program-focused","program"===l)}},{key:"_setOrigin",value:function(n){var l=this,c=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this._ngZone.runOutsideAngular(function(){l._origin=n,l._originFromTouchInteraction="touch"===n&&c,0===l._detectionMode&&(clearTimeout(l._originTimeoutId),l._originTimeoutId=setTimeout(function(){return l._origin=null},l._originFromTouchInteraction?650:1))})}},{key:"_onFocus",value:function(n,l){var c=this._elementInfo.get(l),p=hc(n);!c||!c.checkChildren&&l!==p||this._originChanged(l,this._getFocusOrigin(p),c)}},{key:"_onBlur",value:function(n,l){var c=this._elementInfo.get(l);!c||c.checkChildren&&n.relatedTarget instanceof Node&&l.contains(n.relatedTarget)||(this._setClasses(l),this._emitOrigin(c.subject,null))}},{key:"_emitOrigin",value:function(n,l){this._ngZone.run(function(){return n.next(l)})}},{key:"_registerGlobalListeners",value:function(n){var l=this;if(this._platform.isBrowser){var c=n.rootNode,p=this._rootNodeFocusListenerCount.get(c)||0;p||this._ngZone.runOutsideAngular(function(){c.addEventListener("focus",l._rootNodeFocusAndBlurListener,Bf),c.addEventListener("blur",l._rootNodeFocusAndBlurListener,Bf)}),this._rootNodeFocusListenerCount.set(c,p+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(function(){l._getWindow().addEventListener("focus",l._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(Wt(this._stopInputModalityDetector)).subscribe(function(_){l._setOrigin(_,!0)}))}}},{key:"_removeGlobalListeners",value:function(n){var l=n.rootNode;if(this._rootNodeFocusListenerCount.has(l)){var c=this._rootNodeFocusListenerCount.get(l);c>1?this._rootNodeFocusListenerCount.set(l,c-1):(l.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Bf),l.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Bf),this._rootNodeFocusListenerCount.delete(l))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}},{key:"_originChanged",value:function(n,l,c){this._setClasses(n,l),this._emitOrigin(c.subject,l),this._lastFocusOrigin=l}},{key:"_getClosestElementsInfo",value:function(n){var l=[];return this._elementInfo.forEach(function(c,p){(p===n||c.checkChildren&&p.contains(n))&&l.push([p,c])}),l}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(Pt),ge(pn),ge(h7),ge(Jt,8),ge(v7,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),P3=function(){var i=function(){function s(r,n){R(this,s),this._elementRef=r,this._focusMonitor=n,this.cdkFocusChange=new ye}return L(s,[{key:"ngAfterViewInit",value:function(){var n=this,l=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(l,1===l.nodeType&&l.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(function(c){return n.cdkFocusChange.emit(c)})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(tt),z(Rl))},i.\u0275dir=be({type:i,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),i}(),O3="cdk-high-contrast-black-on-white",I3="cdk-high-contrast-white-on-black",DA="cdk-high-contrast-active",R3=function(){var i=function(){function s(r,n){R(this,s),this._platform=r,this._document=n}return L(s,[{key:"getHighContrastMode",value:function(){if(!this._platform.isBrowser)return 0;var n=this._document.createElement("div");n.style.backgroundColor="rgb(1,2,3)",n.style.position="absolute",this._document.body.appendChild(n);var l=this._document.defaultView||window,c=l&&l.getComputedStyle?l.getComputedStyle(n):null,p=(c&&c.backgroundColor||"").replace(/ /g,"");switch(n.remove(),p){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 n=this._document.body.classList;n.remove(DA),n.remove(O3),n.remove(I3),this._hasCheckedHighContrastMode=!0;var l=this.getHighContrastMode();1===l?(n.add(DA),n.add(O3)):2===l&&(n.add(DA),n.add(I3))}}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(pn),ge(Jt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),xA=function(){var i=L(function s(r){R(this,s),r._applyBodyHighContrastModeCssClasses()});return i.\u0275fac=function(r){return new(r||i)(ge(R3))},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[Ny]]}),i}(),L3=L(function i(){R(this,i)}),g7=L(function i(){R(this,i)}),vc="*";function zi(i,s){return{type:7,name:i,definitions:s,options:{}}}function $n(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:4,styles:s,timings:i}}function TA(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:3,steps:i,options:s}}function m1(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return{type:2,steps:i,options:s}}function mt(i){return{type:6,styles:i,offset:null}}function Wn(i,s,r){return{type:0,name:i,styles:s,options:r}}function Vf(i){return{type:5,steps:i}}function Yn(i,s){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:1,expr:i,animation:s,options:r}}function _1(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{type:9,options:i}}function y1(i,s){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return{type:11,selector:i,animation:s,options:r}}function F3(i){Promise.resolve(null).then(i)}var By=function(){function i(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;R(this,i),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=s+r}return L(i,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(r){return r()}),this._onDoneFns=[])}},{key:"onStart",value:function(r){this._onStartFns.push(r)}},{key:"onDone",value:function(r){this._onDoneFns.push(r)}},{key:"onDestroy",value:function(r){this._onDestroyFns.push(r)}},{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 r=this;F3(function(){return r._onFinish()})}},{key:"_onStart",value:function(){this._onStartFns.forEach(function(r){return r()}),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(r){return r()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this._started=!1}},{key:"setPosition",value:function(r){this._position=this.totalTime?r*this.totalTime:1}},{key:"getPosition",value:function(){return this.totalTime?this._position/this.totalTime:1}},{key:"triggerCallback",value:function(r){var n="start"==r?this._onStartFns:this._onDoneFns;n.forEach(function(l){return l()}),n.length=0}}]),i}(),N3=function(){function i(s){var r=this;R(this,i),this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=s;var n=0,l=0,c=0,p=this.players.length;0==p?F3(function(){return r._onFinish()}):this.players.forEach(function(_){_.onDone(function(){++n==p&&r._onFinish()}),_.onDestroy(function(){++l==p&&r._onDestroy()}),_.onStart(function(){++c==p&&r._onStart()})}),this.totalTime=this.players.reduce(function(_,w){return Math.max(_,w.totalTime)},0)}return L(i,[{key:"_onFinish",value:function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(r){return r()}),this._onDoneFns=[])}},{key:"init",value:function(){this.players.forEach(function(r){return r.init()})}},{key:"onStart",value:function(r){this._onStartFns.push(r)}},{key:"_onStart",value:function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(r){return r()}),this._onStartFns=[])}},{key:"onDone",value:function(r){this._onDoneFns.push(r)}},{key:"onDestroy",value:function(r){this._onDestroyFns.push(r)}},{key:"hasStarted",value:function(){return this._started}},{key:"play",value:function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(r){return r.play()})}},{key:"pause",value:function(){this.players.forEach(function(r){return r.pause()})}},{key:"restart",value:function(){this.players.forEach(function(r){return r.restart()})}},{key:"finish",value:function(){this._onFinish(),this.players.forEach(function(r){return r.finish()})}},{key:"destroy",value:function(){this._onDestroy()}},{key:"_onDestroy",value:function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(r){return r.destroy()}),this._onDestroyFns.forEach(function(r){return r()}),this._onDestroyFns=[])}},{key:"reset",value:function(){this.players.forEach(function(r){return r.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1}},{key:"setPosition",value:function(r){var n=r*this.totalTime;this.players.forEach(function(l){var c=l.totalTime?Math.min(1,n/l.totalTime):1;l.setPosition(c)})}},{key:"getPosition",value:function(){var r=this.players.reduce(function(n,l){return null===n||l.totalTime>n.totalTime?l:n},null);return null!=r?r.getPosition():0}},{key:"beforeDestroy",value:function(){this.players.forEach(function(r){r.beforeDestroy&&r.beforeDestroy()})}},{key:"triggerCallback",value:function(r){var n="start"==r?this._onStartFns:this._onDoneFns;n.forEach(function(l){return l()}),n.length=0}}]),i}(),Nn=!1;function B3(i){return new st(3e3,Nn)}function U3(i){return new st(3502,Nn)}function F7(){return new st(3300,Nn)}function N7(i){return new st(3504,Nn)}function U7(){return"undefined"!=typeof window&&void 0!==window.document}function EA(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Hf(i){switch(i.length){case 0:return new By;case 1:return i[0];default:return new N3(i)}}function W3(i,s,r,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},p=[],_=[],w=-1,M=null;if(n.forEach(function(A){var O=A.offset,F=O==w,Y=F&&M||{};Object.keys(A).forEach(function($){var oe=$,le=A[$];if("offset"!==$)switch(oe=s.normalizePropertyName(oe,p),le){case"!":le=l[$];break;case vc:le=c[$];break;default:le=s.normalizeStyleValue($,oe,le,p)}Y[oe]=le}),F||_.push(Y),M=Y,w=O}),p.length)throw U3();return _}function PA(i,s,r,n){switch(s){case"start":i.onStart(function(){return n(r&&w1(r,"start",i))});break;case"done":i.onDone(function(){return n(r&&w1(r,"done",i))});break;case"destroy":i.onDestroy(function(){return n(r&&w1(r,"destroy",i))})}}function w1(i,s,r){var n=r.totalTime,c=OA(i.element,i.triggerName,i.fromState,i.toState,s||i.phaseName,null==n?i.totalTime:n,!!r.disabled),p=i._data;return null!=p&&(c._data=p),c}function OA(i,s,r,n){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,p=arguments.length>6?arguments[6]:void 0;return{element:i,triggerName:s,fromState:r,toState:n,phaseName:l,totalTime:c,disabled:!!p}}function ts(i,s,r){var n;return i instanceof Map?(n=i.get(s))||i.set(s,n=r):(n=i[s])||(n=i[s]=r),n}function Y3(i){var s=i.indexOf(":");return[i.substring(1,s),i.substr(s+1)]}var IA=function(s,r){return!1},q3=function(s,r,n){return[]},Z3=null;function S1(i){var s=i.parentNode||i.host;return s===Z3?null:s}(EA()||"undefined"!=typeof Element)&&(U7()?(Z3=function(){return document.documentElement}(),IA=function(s,r){for(;r;){if(r===s)return!0;r=S1(r)}return!1}):IA=function(s,r){return s.contains(r)},q3=function(s,r,n){if(n)return Array.from(s.querySelectorAll(r));var l=s.querySelector(r);return l?[l]:[]});var zf=null,X3=!1;function M1(i){zf||(zf=function W7(){return"undefined"!=typeof document?document.body:null}()||{},X3=!!zf.style&&"WebkitAppearance"in zf.style);var s=!0;return zf.style&&!function j7(i){return"ebkit"==i.substring(1,6)}(i)&&!(s=i in zf.style)&&X3&&(s="Webkit"+i.charAt(0).toUpperCase()+i.substr(1)in zf.style),s}var K3=IA,$3=q3,LA=function(){var i=function(){function s(){R(this,s)}return L(s,[{key:"validateStyleProperty",value:function(n){return M1(n)}},{key:"matchesElement",value:function(n,l){return!1}},{key:"containsElement",value:function(n,l){return K3(n,l)}},{key:"getParentElement",value:function(n){return S1(n)}},{key:"query",value:function(n,l,c){return $3(n,l,c)}},{key:"computeStyle",value:function(n,l,c){return c||""}},{key:"animate",value:function(n,l,c,p,_){return new By(c,p)}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),k1=function(){var i=L(function s(){R(this,s)});return i.NOOP=new LA,i}(),eB="ng-enter",NA="ng-leave",Vy="ng-trigger",D1=".ng-trigger",BA="ng-animating",x1=".ng-animating";function gc(i){if("number"==typeof i)return i;var s=i.match(/^(-?[\.\d]+)(m?s)/);return!s||s.length<2?0:Gf(parseFloat(s[1]),s[2])}function Gf(i,s){return"s"===s?1e3*i:i}function Hy(i,s,r){return i.hasOwnProperty("duration")?i:function tB(i,s,r){var l,c=0,p="";if("string"==typeof i){var _=i.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===_)return s.push(B3()),{duration:0,delay:0,easing:""};l=Gf(parseFloat(_[1]),_[2]);var w=_[3];null!=w&&(c=Gf(parseFloat(w),_[4]));var M=_[5];M&&(p=M)}else l=i;if(!r){var A=!1,O=s.length;l<0&&(s.push(function V3(){return new st(3100,Nn)}()),A=!0),c<0&&(s.push(function y7(){return new st(3101,Nn)}()),A=!0),A&&s.splice(O,0,B3())}return{duration:l,delay:c,easing:p}}(i,s,r)}function ng(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object.keys(i).forEach(function(r){s[r]=i[r]}),s}function Uf(i,s){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(s)for(var n in i)r[n]=i[n];else ng(i,r);return r}function nB(i,s,r){return r?s+":"+r+";":""}function rB(i){for(var s="",r=0;r *";case":leave":return"* => void";case":increment":return function(r,n){return parseFloat(n)>parseFloat(r)};case":decrement":return function(r,n){return parseFloat(n) *"}}(i,r);if("function"==typeof n)return void s.push(n);i=n}var l=i.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==l||l.length<4)return r.push(function O7(i){return new st(3015,Nn)}()),s;var c=l[1],p=l[2],_=l[3];s.push(GA(c,_)),"<"==p[0]&&!("*"==c&&"*"==_)&&s.push(GA(_,c))}(n,r,s)}):r.push(i),r}var P1=new Set(["true","1"]),O1=new Set(["false","0"]);function GA(i,s){var r=P1.has(i)||O1.has(i),n=P1.has(s)||O1.has(s);return function(l,c){var p="*"==i||i==l,_="*"==s||s==c;return!p&&r&&"boolean"==typeof l&&(p=l?P1.has(i):O1.has(i)),!_&&n&&"boolean"==typeof c&&(_=c?P1.has(s):O1.has(s)),p&&_}}var mc=new RegExp("s*".concat(":self","s*,?"),"g");function lB(i,s,r,n){return new nW(i).build(s,r,n)}var nW=function(){function i(s){R(this,i),this._driver=s}return L(i,[{key:"build",value:function(r,n,l){var c=new aW(n);this._resetContextStyleTimingState(c);var p=so(this,Xh(r),c);return c.unsupportedCSSPropertiesFound.size&&yt(c.unsupportedCSSPropertiesFound.keys()),p}},{key:"_resetContextStyleTimingState",value:function(r){r.currentQuerySelector="",r.collectedStyles={},r.collectedStyles[""]={},r.currentTime=0}},{key:"visitTrigger",value:function(r,n){var l=this,c=n.queryCount=0,p=n.depCount=0,_=[],w=[];return"@"==r.name.charAt(0)&&n.errors.push(function S7(){return new st(3006,Nn)}()),r.definitions.forEach(function(M){if(l._resetContextStyleTimingState(n),0==M.type){var A=M,O=A.name;O.toString().split(/\s*,\s*/).forEach(function(Y){A.name=Y,_.push(l.visitState(A,n))}),A.name=O}else if(1==M.type){var F=l.visitTransition(M,n);c+=F.queryCount,p+=F.depCount,w.push(F)}else n.errors.push(function M7(){return new st(3007,Nn)}())}),{type:7,name:r.name,states:_,transitions:w,queryCount:c,depCount:p,options:null}}},{key:"visitState",value:function(r,n){var l=this.visitStyle(r.styles,n),c=r.options&&r.options.params||null;if(l.containsDynamicStyles){var p=new Set,_=c||{};l.styles.forEach(function(M){if(I1(M)){var A=M;Object.keys(A).forEach(function(O){iB(A[O]).forEach(function(F){_.hasOwnProperty(F)||p.add(F)})})}}),p.size&&(T1(p.values()),n.errors.push(function k7(i,s){return new st(3008,Nn)}()))}return{type:0,name:r.name,style:l,options:c?{params:c}:null}}},{key:"visitTransition",value:function(r,n){n.queryCount=0,n.depCount=0;var l=so(this,Xh(r.animation),n);return{type:1,matchers:eW(r.expr,n.errors),animation:l,queryCount:n.queryCount,depCount:n.depCount,options:Kh(r.options)}}},{key:"visitSequence",value:function(r,n){var l=this;return{type:2,steps:r.steps.map(function(c){return so(l,c,n)}),options:Kh(r.options)}}},{key:"visitGroup",value:function(r,n){var l=this,c=n.currentTime,p=0,_=r.steps.map(function(w){n.currentTime=c;var M=so(l,w,n);return p=Math.max(p,n.currentTime),M});return n.currentTime=p,{type:3,steps:_,options:Kh(r.options)}}},{key:"visitAnimate",value:function(r,n){var l=function sW(i,s){if(i.hasOwnProperty("duration"))return i;if("number"==typeof i)return UA(Hy(i,s).duration,0,"");var n=i,l=n.split(/\s+/).some(function(_){return"{"==_.charAt(0)&&"{"==_.charAt(1)});if(l){var c=UA(0,0,"");return c.dynamic=!0,c.strValue=n,c}var p=Hy(n,s);return UA(p.duration,p.delay,p.easing)}(r.timings,n.errors);n.currentAnimateTimings=l;var c,p=r.styles?r.styles:mt({});if(5==p.type)c=this.visitKeyframes(p,n);else{var _=r.styles,w=!1;if(!_){w=!0;var M={};l.easing&&(M.easing=l.easing),_=mt(M)}n.currentTime+=l.duration+l.delay;var A=this.visitStyle(_,n);A.isEmptyStep=w,c=A}return n.currentAnimateTimings=null,{type:4,timings:l,style:c,options:null}}},{key:"visitStyle",value:function(r,n){var l=this._makeStyleAst(r,n);return this._validateStyleAst(l,n),l}},{key:"_makeStyleAst",value:function(r,n){var l=[];Array.isArray(r.styles)?r.styles.forEach(function(_){"string"==typeof _?_==vc?l.push(_):n.errors.push(function D7(i){return new st(3002,Nn)}()):l.push(_)}):l.push(r.styles);var c=!1,p=null;return l.forEach(function(_){if(I1(_)){var w=_,M=w.easing;if(M&&(p=M,delete w.easing),!c)for(var A in w)if(w[A].toString().indexOf("{{")>=0){c=!0;break}}}),{type:6,styles:l,easing:p,offset:r.offset,containsDynamicStyles:c,options:null}}},{key:"_validateStyleAst",value:function(r,n){var l=this,c=n.currentAnimateTimings,p=n.currentTime,_=n.currentTime;c&&_>0&&(_-=c.duration+c.delay),r.styles.forEach(function(w){"string"!=typeof w&&Object.keys(w).forEach(function(M){if(!l._driver.validateStyleProperty(M))return delete w[M],void n.unsupportedCSSPropertiesFound.add(M);var A=n.collectedStyles[n.currentQuerySelector],O=A[M],F=!0;O&&(_!=p&&_>=O.startTime&&p<=O.endTime&&(n.errors.push(function x7(i,s,r,n,l){return new st(3010,Nn)}()),F=!1),_=O.startTime),F&&(A[M]={startTime:_,endTime:p}),n.options&&function q7(i,s,r){var n=s.params||{},l=iB(i);l.length&&l.forEach(function(c){n.hasOwnProperty(c)||r.push(function b7(i){return new st(3001,Nn)}())})}(w[M],n.options,n.errors)})})}},{key:"visitKeyframes",value:function(r,n){var l=this,c={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push(function T7(){return new st(3011,Nn)}()),c;var _=0,w=[],M=!1,A=!1,O=0,F=r.steps.map(function(we){var De=l._makeStyleAst(we,n),Ee=null!=De.offset?De.offset:function oW(i){if("string"==typeof i)return null;var s=null;if(Array.isArray(i))i.forEach(function(n){if(I1(n)&&n.hasOwnProperty("offset")){var l=n;s=parseFloat(l.offset),delete l.offset}});else if(I1(i)&&i.hasOwnProperty("offset")){var r=i;s=parseFloat(r.offset),delete r.offset}return s}(De.styles),We=0;return null!=Ee&&(_++,We=De.offset=Ee),A=A||We<0||We>1,M=M||We0&&_0?De==oe?1:$*De:w[De],We=Ee*ae;n.currentTime=le+fe.delay+We,fe.duration=We,l._validateStyleAst(we,n),we.offset=Ee,c.styles.push(we)}),c}},{key:"visitReference",value:function(r,n){return{type:8,animation:so(this,Xh(r.animation),n),options:Kh(r.options)}}},{key:"visitAnimateChild",value:function(r,n){return n.depCount++,{type:9,options:Kh(r.options)}}},{key:"visitAnimateRef",value:function(r,n){return{type:10,animation:this.visitReference(r.animation,n),options:Kh(r.options)}}},{key:"visitQuery",value:function(r,n){var l=n.currentQuerySelector,c=r.options||{};n.queryCount++,n.currentQuery=r;var p=function rW(i){var s=!!i.split(/\s*,\s*/).find(function(r){return":self"==r});return s&&(i=i.replace(mc,"")),i=i.replace(/@\*/g,D1).replace(/@\w+/g,function(r){return D1+"-"+r.substr(1)}).replace(/:animating/g,x1),[i,s]}(r.selector),_=Pr(p,2),w=_[0],M=_[1];n.currentQuerySelector=l.length?l+" "+w:w,ts(n.collectedStyles,n.currentQuerySelector,{});var A=so(this,Xh(r.animation),n);return n.currentQuery=null,n.currentQuerySelector=l,{type:11,selector:w,limit:c.limit||0,optional:!!c.optional,includeSelf:M,animation:A,originalSelector:r.selector,options:Kh(r.options)}}},{key:"visitStagger",value:function(r,n){n.currentQuery||n.errors.push(function E7(){return new st(3013,Nn)}());var l="full"===r.timings?{duration:0,delay:0,easing:"full"}:Hy(r.timings,n.errors,!0);return{type:12,animation:so(this,Xh(r.animation),n),timings:l,options:null}}}]),i}(),aW=L(function i(s){R(this,i),this.errors=s,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,this.unsupportedCSSPropertiesFound=new Set});function I1(i){return!Array.isArray(i)&&"object"==typeof i}function Kh(i){return i?(i=ng(i)).params&&(i.params=function iW(i){return i?ng(i):null}(i.params)):i={},i}function UA(i,s,r){return{duration:i,delay:s,easing:r}}function cB(i,s,r,n,l,c){var p=arguments.length>6&&void 0!==arguments[6]?arguments[6]:null,_=arguments.length>7&&void 0!==arguments[7]&&arguments[7];return{type:1,element:i,keyframes:s,preStyleProps:r,postStyleProps:n,duration:l,delay:c,totalTime:l+c,easing:p,subTimeline:_}}var R1=function(){function i(){R(this,i),this._map=new Map}return L(i,[{key:"get",value:function(r){return this._map.get(r)||[]}},{key:"append",value:function(r,n){var l,c=this._map.get(r);c||this._map.set(r,c=[]),(l=c).push.apply(l,yt(n))}},{key:"has",value:function(r){return this._map.has(r)}},{key:"clear",value:function(){this._map.clear()}}]),i}(),hB=new RegExp(":enter","g"),R$=new RegExp(":leave","g");function jA(i,s,r,n,l){var c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},p=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{},_=arguments.length>7?arguments[7]:void 0,w=arguments.length>8?arguments[8]:void 0,M=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];return(new vB).buildKeyframes(i,s,r,n,l,c,p,_,w,M)}var vB=function(){function i(){R(this,i)}return L(i,[{key:"buildKeyframes",value:function(r,n,l,c,p,_,w,M,A){var O=arguments.length>9&&void 0!==arguments[9]?arguments[9]:[];A=A||new R1;var F=new L$(r,n,A,c,p,O,[]);F.options=M,F.currentTimeline.setStyles([_],null,F.errors,M),so(this,l,F);var Y=F.timelines.filter(function(fe){return fe.containsAnimation()});if(Object.keys(w).length){for(var $,oe=Y.length-1;oe>=0;oe--){var le=Y[oe];if(le.element===n){$=le;break}}$&&!$.allowOnlyTimelineStyles()&&$.setStyles([w],null,F.errors,M)}return Y.length?Y.map(function(fe){return fe.buildKeyframes()}):[cB(n,[],[],[],0,0,"",!1)]}},{key:"visitTrigger",value:function(r,n){}},{key:"visitState",value:function(r,n){}},{key:"visitTransition",value:function(r,n){}},{key:"visitAnimateChild",value:function(r,n){var l=n.subInstructions.get(n.element);if(l){var c=n.createSubContext(r.options),p=n.currentTimeline.currentTime,_=this._visitSubInstructions(l,c,c.options);p!=_&&n.transformIntoNewTimeline(_)}n.previousNode=r}},{key:"visitAnimateRef",value:function(r,n){var l=n.createSubContext(r.options);l.transformIntoNewTimeline(),this.visitReference(r.animation,l),n.transformIntoNewTimeline(l.currentTimeline.currentTime),n.previousNode=r}},{key:"_visitSubInstructions",value:function(r,n,l){var p=n.currentTimeline.currentTime,_=null!=l.duration?gc(l.duration):null,w=null!=l.delay?gc(l.delay):null;return 0!==_&&r.forEach(function(M){var A=n.appendInstructionToTimeline(M,_,w);p=Math.max(p,A.duration+A.delay)}),p}},{key:"visitReference",value:function(r,n){n.updateOptions(r.options,!0),so(this,r.animation,n),n.previousNode=r}},{key:"visitSequence",value:function(r,n){var l=this,c=n.subContextCount,p=n,_=r.options;if(_&&(_.params||_.delay)&&((p=n.createSubContext(_)).transformIntoNewTimeline(),null!=_.delay)){6==p.previousNode.type&&(p.currentTimeline.snapshotCurrentStyles(),p.previousNode=WA);var w=gc(_.delay);p.delayNextStep(w)}r.steps.length&&(r.steps.forEach(function(M){return so(l,M,p)}),p.currentTimeline.applyStylesToKeyframe(),p.subContextCount>c&&p.transformIntoNewTimeline()),n.previousNode=r}},{key:"visitGroup",value:function(r,n){var l=this,c=[],p=n.currentTimeline.currentTime,_=r.options&&r.options.delay?gc(r.options.delay):0;r.steps.forEach(function(w){var M=n.createSubContext(r.options);_&&M.delayNextStep(_),so(l,w,M),p=Math.max(p,M.currentTimeline.currentTime),c.push(M.currentTimeline)}),c.forEach(function(w){return n.currentTimeline.mergeTimelineCollectedStyles(w)}),n.transformIntoNewTimeline(p),n.previousNode=r}},{key:"_visitTiming",value:function(r,n){if(r.dynamic){var l=r.strValue;return Hy(n.params?zy(l,n.params,n.errors):l,n.errors)}return{duration:r.duration,delay:r.delay,easing:r.easing}}},{key:"visitAnimate",value:function(r,n){var l=n.currentAnimateTimings=this._visitTiming(r.timings,n),c=n.currentTimeline;l.delay&&(n.incrementTime(l.delay),c.snapshotCurrentStyles());var p=r.style;5==p.type?this.visitKeyframes(p,n):(n.incrementTime(l.duration),this.visitStyle(p,n),c.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=r}},{key:"visitStyle",value:function(r,n){var l=n.currentTimeline,c=n.currentAnimateTimings;!c&&l.getCurrentStyleProperties().length&&l.forwardFrame();var p=c&&c.easing||r.easing;r.isEmptyStep?l.applyEmptyStep(p):l.setStyles(r.styles,p,n.errors,n.options),n.previousNode=r}},{key:"visitKeyframes",value:function(r,n){var l=n.currentAnimateTimings,c=n.currentTimeline.duration,p=l.duration,w=n.createSubContext().currentTimeline;w.easing=l.easing,r.styles.forEach(function(M){w.forwardTime((M.offset||0)*p),w.setStyles(M.styles,M.easing,n.errors,n.options),w.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(w),n.transformIntoNewTimeline(c+p),n.previousNode=r}},{key:"visitQuery",value:function(r,n){var l=this,c=n.currentTimeline.currentTime,p=r.options||{},_=p.delay?gc(p.delay):0;_&&(6===n.previousNode.type||0==c&&n.currentTimeline.getCurrentStyleProperties().length)&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=WA);var w=c,M=n.invokeQuery(r.selector,r.originalSelector,r.limit,r.includeSelf,!!p.optional,n.errors);n.currentQueryTotal=M.length;var A=null;M.forEach(function(O,F){n.currentQueryIndex=F;var Y=n.createSubContext(r.options,O);_&&Y.delayNextStep(_),O===n.element&&(A=Y.currentTimeline),so(l,r.animation,Y),Y.currentTimeline.applyStylesToKeyframe(),w=Math.max(w,Y.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(w),A&&(n.currentTimeline.mergeTimelineCollectedStyles(A),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=r}},{key:"visitStagger",value:function(r,n){var l=n.parentContext,c=n.currentTimeline,p=r.timings,_=Math.abs(p.duration),w=_*(n.currentQueryTotal-1),M=_*n.currentQueryIndex;switch(p.duration<0?"reverse":p.easing){case"reverse":M=w-M;break;case"full":M=l.currentStaggerTime}var O=n.currentTimeline;M&&O.delayNextStep(M);var F=O.currentTime;so(this,r.animation,n),n.previousNode=r,l.currentStaggerTime=c.currentTime-F+(c.startTime-l.currentTimeline.startTime)}}]),i}(),WA={},L$=function(){function i(s,r,n,l,c,p,_,w){R(this,i),this._driver=s,this.element=r,this.subInstructions=n,this._enterClassName=l,this._leaveClassName=c,this.errors=p,this.timelines=_,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=WA,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=w||new Uy(this._driver,r,0),_.push(this.currentTimeline)}return L(i,[{key:"params",get:function(){return this.options.params}},{key:"updateOptions",value:function(r,n){var l=this;if(r){var c=r,p=this.options;null!=c.duration&&(p.duration=gc(c.duration)),null!=c.delay&&(p.delay=gc(c.delay));var _=c.params;if(_){var w=p.params;w||(w=this.options.params={}),Object.keys(_).forEach(function(M){(!n||!w.hasOwnProperty(M))&&(w[M]=zy(_[M],w,l.errors))})}}}},{key:"_copyOptions",value:function(){var r={};if(this.options){var n=this.options.params;if(n){var l=r.params={};Object.keys(n).forEach(function(c){l[c]=n[c]})}}return r}},{key:"createSubContext",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,l=arguments.length>2?arguments[2]:void 0,c=n||this.element,p=new i(this._driver,c,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(c,l||0));return p.previousNode=this.previousNode,p.currentAnimateTimings=this.currentAnimateTimings,p.options=this._copyOptions(),p.updateOptions(r),p.currentQueryIndex=this.currentQueryIndex,p.currentQueryTotal=this.currentQueryTotal,p.parentContext=this,this.subContextCount++,p}},{key:"transformIntoNewTimeline",value:function(r){return this.previousNode=WA,this.currentTimeline=this.currentTimeline.fork(this.element,r),this.timelines.push(this.currentTimeline),this.currentTimeline}},{key:"appendInstructionToTimeline",value:function(r,n,l){var c={duration:null!=n?n:r.duration,delay:this.currentTimeline.currentTime+(null!=l?l:0)+r.delay,easing:""},p=new rg(this._driver,r.element,r.keyframes,r.preStyleProps,r.postStyleProps,c,r.stretchStartingKeyframe);return this.timelines.push(p),c}},{key:"incrementTime",value:function(r){this.currentTimeline.forwardTime(this.currentTimeline.duration+r)}},{key:"delayNextStep",value:function(r){r>0&&this.currentTimeline.delayNextStep(r)}},{key:"invokeQuery",value:function(r,n,l,c,p,_){var w=[];if(c&&w.push(this.element),r.length>0){r=(r=r.replace(hB,"."+this._enterClassName)).replace(R$,"."+this._leaveClassName);var A=this._driver.query(this.element,r,1!=l);0!==l&&(A=l<0?A.slice(A.length+l,A.length):A.slice(0,l)),w.push.apply(w,yt(A))}return!p&&0==w.length&&_.push(function P7(i){return new st(3014,Nn)}()),w}}]),i}(),Uy=function(){function i(s,r,n,l){R(this,i),this._driver=s,this.element=r,this.startTime=n,this._elementTimelineStylesLookup=l,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(r),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(r,this._localTimelineStyles)),this._loadKeyframe()}return L(i,[{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(r){var n=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||n?(this.forwardTime(this.currentTime+r),n&&this.snapshotCurrentStyles()):this.startTime+=r}},{key:"fork",value:function(r,n){return this.applyStylesToKeyframe(),new i(this._driver,r,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(r){this.applyStylesToKeyframe(),this.duration=r,this._loadKeyframe()}},{key:"_updateStyle",value:function(r,n){this._localTimelineStyles[r]=n,this._globalTimelineStyles[r]=n,this._styleSummary[r]={time:this.currentTime,value:n}}},{key:"allowOnlyTimelineStyles",value:function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}},{key:"applyEmptyStep",value:function(r){var n=this;r&&(this._previousKeyframe.easing=r),Object.keys(this._globalTimelineStyles).forEach(function(l){n._backFill[l]=n._globalTimelineStyles[l]||vc,n._currentKeyframe[l]=vc}),this._currentEmptyStepKeyframe=this._currentKeyframe}},{key:"setStyles",value:function(r,n,l,c){var p=this;n&&(this._previousKeyframe.easing=n);var _=c&&c.params||{},w=function F1(i,s){var n,r={};return i.forEach(function(l){"*"===l?(n=n||Object.keys(s)).forEach(function(c){r[c]=vc}):Uf(l,!1,r)}),r}(r,this._globalTimelineStyles);Object.keys(w).forEach(function(M){var A=zy(w[M],_,l);p._pendingStyles[M]=A,p._localTimelineStyles.hasOwnProperty(M)||(p._backFill[M]=p._globalTimelineStyles.hasOwnProperty(M)?p._globalTimelineStyles[M]:vc),p._updateStyle(M,A)})}},{key:"applyStylesToKeyframe",value:function(){var r=this,n=this._pendingStyles,l=Object.keys(n);0!=l.length&&(this._pendingStyles={},l.forEach(function(c){r._currentKeyframe[c]=n[c]}),Object.keys(this._localTimelineStyles).forEach(function(c){r._currentKeyframe.hasOwnProperty(c)||(r._currentKeyframe[c]=r._localTimelineStyles[c])}))}},{key:"snapshotCurrentStyles",value:function(){var r=this;Object.keys(this._localTimelineStyles).forEach(function(n){var l=r._localTimelineStyles[n];r._pendingStyles[n]=l,r._updateStyle(n,l)})}},{key:"getFinalKeyframe",value:function(){return this._keyframes.get(this.duration)}},{key:"properties",get:function(){var r=[];for(var n in this._currentKeyframe)r.push(n);return r}},{key:"mergeTimelineCollectedStyles",value:function(r){var n=this;Object.keys(r._styleSummary).forEach(function(l){var c=n._styleSummary[l],p=r._styleSummary[l];(!c||p.time>c.time)&&n._updateStyle(l,p.value)})}},{key:"buildKeyframes",value:function(){var r=this;this.applyStylesToKeyframe();var n=new Set,l=new Set,c=1===this._keyframes.size&&0===this.duration,p=[];this._keyframes.forEach(function(O,F){var Y=Uf(O,!0);Object.keys(Y).forEach(function($){var oe=Y[$];"!"==oe?n.add($):oe==vc&&l.add($)}),c||(Y.offset=F/r.duration),p.push(Y)});var _=n.size?T1(n.values()):[],w=l.size?T1(l.values()):[];if(c){var M=p[0],A=ng(M);M.offset=0,A.offset=1,p=[M,A]}return cB(this.element,p,_,w,this.duration,this.startTime,this.easing,!1)}}]),i}(),rg=function(i){se(r,i);var s=ue(r);function r(n,l,c,p,_,w){var M,A=arguments.length>6&&void 0!==arguments[6]&&arguments[6];return R(this,r),(M=s.call(this,n,l,w.delay)).keyframes=c,M.preStyleProps=p,M.postStyleProps=_,M._stretchStartingKeyframe=A,M.timings={duration:w.duration,delay:w.delay,easing:w.easing},M}return L(r,[{key:"containsAnimation",value:function(){return this.keyframes.length>1}},{key:"buildKeyframes",value:function(){var l=this.keyframes,c=this.timings,p=c.delay,_=c.duration,w=c.easing;if(this._stretchStartingKeyframe&&p){var M=[],A=_+p,O=p/A,F=Uf(l[0],!1);F.offset=0,M.push(F);var Y=Uf(l[0],!1);Y.offset=L1(O),M.push(Y);for(var $=l.length-1,oe=1;oe<=$;oe++){var le=Uf(l[oe],!1);le.offset=L1((p+le.offset*_)/A),M.push(le)}_=A,p=0,w="",l=M}return cB(this.element,l,this.preStyleProps,this.postStyleProps,_,p,w,!0)}}]),r}(Uy);function L1(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,r=Math.pow(10,s-1);return Math.round(i*r)/r}var ig=L(function i(){R(this,i)}),uW=function(i){se(r,i);var s=ue(r);function r(){return R(this,r),s.apply(this,arguments)}return L(r,[{key:"normalizePropertyName",value:function(l,c){return HA(l)}},{key:"normalizeStyleValue",value:function(l,c,p,_){var w="",M=p.toString().trim();if(cW[c]&&0!==p&&"0"!==p)if("number"==typeof p)w="px";else{var A=p.match(/^[+-]?[\d\.]+([a-z]*)$/);A&&0==A[1].length&&_.push(function w7(i,s){return new st(3005,Nn)}())}return M+w}}]),r}(ig),cW=function(){return function fW(i){var s={};return i.forEach(function(r){return s[r]=!0}),s}("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 Ll(i,s,r,n,l,c,p,_,w,M,A,O,F){return{type:0,element:i,triggerName:s,isRemovalTransition:l,fromState:r,fromStyles:c,toState:n,toStyles:p,timelines:_,queriedElements:w,preStyleProps:M,postStyleProps:A,totalTime:O,errors:F}}var YA={},dW=function(){function i(s,r,n){R(this,i),this._triggerName=s,this.ast=r,this._stateStyles=n}return L(i,[{key:"match",value:function(r,n,l,c){return function hW(i,s,r,n,l){return i.some(function(c){return c(s,r,n,l)})}(this.ast.matchers,r,n,l,c)}},{key:"buildStyles",value:function(r,n,l){var c=this._stateStyles["*"],p=this._stateStyles[r],_=c?c.buildStyles(n,l):{};return p?p.buildStyles(n,l):_}},{key:"build",value:function(r,n,l,c,p,_,w,M,A,O){var F=[],Y=this.ast.options&&this.ast.options.params||YA,oe=this.buildStyles(l,w&&w.params||YA,F),le=M&&M.params||YA,fe=this.buildStyles(c,le,F),ae=new Set,we=new Map,De=new Map,Ee="void"===c,We={params:Object.assign(Object.assign({},Y),le)},bt=O?[]:jA(r,n,this.ast.animation,p,_,oe,fe,We,A,F),Vn=0;if(bt.forEach(function(ci){Vn=Math.max(ci.duration+ci.delay,Vn)}),F.length)return Ll(n,this._triggerName,l,c,Ee,oe,fe,[],[],we,De,Vn,F);bt.forEach(function(ci){var fo=ci.element,Dc=ts(we,fo,{});ci.preStyleProps.forEach(function(Gl){return Dc[Gl]=!0});var fp=ts(De,fo,{});ci.postStyleProps.forEach(function(Gl){return fp[Gl]=!0}),fo!==n&&ae.add(fo)});var bi=T1(ae.values());return Ll(n,this._triggerName,l,c,Ee,oe,fe,bt,bi,we,De,Vn)}}]),i}(),gB=function(){function i(s,r,n){R(this,i),this.styles=s,this.defaultParams=r,this.normalizer=n}return L(i,[{key:"buildStyles",value:function(r,n){var l=this,c={},p=ng(this.defaultParams);return Object.keys(r).forEach(function(_){var w=r[_];null!=w&&(p[_]=w)}),this.styles.styles.forEach(function(_){if("string"!=typeof _){var w=_;Object.keys(w).forEach(function(M){var A=w[M];A.length>1&&(A=zy(A,p,n));var O=l.normalizer.normalizePropertyName(M,n);A=l.normalizer.normalizeStyleValue(M,O,A,n),c[O]=A})}}),c}}]),i}(),pW=function(){function i(s,r,n){var l=this;R(this,i),this.name=s,this.ast=r,this._normalizer=n,this.transitionFactories=[],this.states={},r.states.forEach(function(c){l.states[c.name]=new gB(c.style,c.options&&c.options.params||{},n)}),_B(this.states,"true","1"),_B(this.states,"false","0"),r.transitions.forEach(function(c){l.transitionFactories.push(new dW(s,c,l.states))}),this.fallbackTransition=function vW(i,s,r){return new dW(i,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(p,_){return!0}],options:null,queryCount:0,depCount:0},s)}(s,this.states)}return L(i,[{key:"containsQueries",get:function(){return this.ast.queryCount>0}},{key:"matchTransition",value:function(r,n,l,c){return this.transitionFactories.find(function(_){return _.match(r,n,l,c)})||null}},{key:"matchStyles",value:function(r,n,l){return this.fallbackTransition.buildStyles(r,n,l)}}]),i}();function _B(i,s,r){i.hasOwnProperty(s)?i.hasOwnProperty(r)||(i[r]=i[s]):i.hasOwnProperty(r)&&(i[s]=i[r])}var gW=new R1,F$=function(){function i(s,r,n){R(this,i),this.bodyNode=s,this._driver=r,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return L(i,[{key:"register",value:function(r,n){var l=[],p=lB(this._driver,n,l,[]);if(l.length)throw function L7(i){return new st(3503,Nn)}();this._animations[r]=p}},{key:"_buildPlayer",value:function(r,n,l){var c=r.element,p=W3(this._driver,this._normalizer,c,r.keyframes,n,l);return this._driver.animate(c,p,r.duration,r.delay,r.easing,[],!0)}},{key:"create",value:function(r,n){var w,l=this,c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},p=[],_=this._animations[r],M=new Map;if(_?(w=jA(this._driver,n,_,eB,NA,{},{},c,gW,p)).forEach(function(F){var Y=ts(M,F.element,{});F.postStyleProps.forEach(function($){return Y[$]=null})}):(p.push(F7()),w=[]),p.length)throw N7();M.forEach(function(F,Y){Object.keys(F).forEach(function($){F[$]=l._driver.computeStyle(Y,$,vc)})});var A=w.map(function(F){var Y=M.get(F.element);return l._buildPlayer(F,{},Y)}),O=Hf(A);return this._playersById[r]=O,O.onDestroy(function(){return l.destroy(r)}),this.players.push(O),O}},{key:"destroy",value:function(r){var n=this._getPlayer(r);n.destroy(),delete this._playersById[r];var l=this.players.indexOf(n);l>=0&&this.players.splice(l,1)}},{key:"_getPlayer",value:function(r){var n=this._playersById[r];if(!n)throw function B7(i){return new st(3301,Nn)}();return n}},{key:"listen",value:function(r,n,l,c){var p=OA(n,"","","");return PA(this._getPlayer(r),l,p,c),function(){}}},{key:"command",value:function(r,n,l,c){if("register"!=l)if("create"!=l){var _=this._getPlayer(r);switch(l){case"play":_.play();break;case"pause":_.pause();break;case"reset":_.reset();break;case"restart":_.restart();break;case"finish":_.finish();break;case"init":_.init();break;case"setPosition":_.setPosition(parseFloat(c[0]));break;case"destroy":this.destroy(r)}}else this.create(r,n,c[0]||{});else this.register(r,c[0])}}]),i}(),qA="ng-animate-queued",N1="ng-animate-disabled",_c="ng-star-inserted",ZA=[],V1={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Wf={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Eo="__ng_removed",jy=function(){function i(s){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";R(this,i),this.namespaceId=r;var n=s&&s.hasOwnProperty("value"),l=n?s.value:s;if(this.value=yW(l),n){var c=ng(s);delete c.value,this.options=c}else this.options={};this.options.params||(this.options.params={})}return L(i,[{key:"params",get:function(){return this.options.params}},{key:"absorbOptions",value:function(r){var n=r.params;if(n){var l=this.options.params;Object.keys(n).forEach(function(c){null==l[c]&&(l[c]=n[c])})}}}]),i}(),Wy="void",XA=new jy(Wy),Ns=function(){function i(s,r,n){R(this,i),this.id=s,this.hostElement=r,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+s,Bs(r,this._hostClassName)}return L(i,[{key:"listen",value:function(r,n,l,c){var p=this;if(!this._triggers.hasOwnProperty(n))throw function j3(i,s){return new st(3302,Nn)}();if(null==l||0==l.length)throw function V7(i){return new st(3303,Nn)}();if(!function bW(i){return"start"==i||"done"==i}(l))throw function H7(i,s){return new st(3400,Nn)}();var _=ts(this._elementListeners,r,[]),w={name:n,phase:l,callback:c};_.push(w);var M=ts(this._engine.statesByElement,r,{});return M.hasOwnProperty(n)||(Bs(r,Vy),Bs(r,Vy+"-"+n),M[n]=XA),function(){p._engine.afterFlush(function(){var A=_.indexOf(w);A>=0&&_.splice(A,1),p._triggers[n]||delete M[n]})}}},{key:"register",value:function(r,n){return!this._triggers[r]&&(this._triggers[r]=n,!0)}},{key:"_getTrigger",value:function(r){var n=this._triggers[r];if(!n)throw function C1(i){return new st(3401,Nn)}();return n}},{key:"trigger",value:function(r,n,l){var c=this,p=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],_=this._getTrigger(n),w=new Yy(this.id,n,r),M=this._engine.statesByElement.get(r);M||(Bs(r,Vy),Bs(r,Vy+"-"+n),this._engine.statesByElement.set(r,M={}));var A=M[n],O=new jy(l,this.id),F=l&&l.hasOwnProperty("value");!F&&A&&O.absorbOptions(A.options),M[n]=O,A||(A=XA);var Y=O.value===Wy;if(Y||A.value!==O.value){var fe=ts(this._engine.playersByElement,r,[]);fe.forEach(function(De){De.namespaceId==c.id&&De.triggerName==n&&De.queued&&De.destroy()});var ae=_.matchTransition(A.value,O.value,r,O.params),we=!1;if(!ae){if(!p)return;ae=_.fallbackTransition,we=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:r,triggerName:n,transition:ae,fromState:A,toState:O,player:w,isFallbackTransition:we}),we||(Bs(r,qA),w.onStart(function(){og(r,qA)})),w.onDone(function(){var De=c.players.indexOf(w);De>=0&&c.players.splice(De,1);var Ee=c._engine.playersByElement.get(r);if(Ee){var We=Ee.indexOf(w);We>=0&&Ee.splice(We,1)}}),this.players.push(w),fe.push(w),w}if(!QA(A.params,O.params)){var $=[],oe=_.matchStyles(A.value,A.params,$),le=_.matchStyles(O.value,O.params,$);$.length?this._engine.reportError($):this._engine.afterFlush(function(){Zh(r,oe),_u(r,le)})}}},{key:"deregister",value:function(r){var n=this;delete this._triggers[r],this._engine.statesByElement.forEach(function(l,c){delete l[r]}),this._elementListeners.forEach(function(l,c){n._elementListeners.set(c,l.filter(function(p){return p.name!=r}))})}},{key:"clearElementCache",value:function(r){this._engine.statesByElement.delete(r),this._elementListeners.delete(r);var n=this._engine.playersByElement.get(r);n&&(n.forEach(function(l){return l.destroy()}),this._engine.playersByElement.delete(r))}},{key:"_signalRemovalForInnerTriggers",value:function(r,n){var l=this,c=this._engine.driver.query(r,D1,!0);c.forEach(function(p){if(!p[Eo]){var _=l._engine.fetchNamespacesByElement(p);_.size?_.forEach(function(w){return w.triggerLeaveAnimation(p,n,!1,!0)}):l.clearElementCache(p)}}),this._engine.afterFlushAnimationsDone(function(){return c.forEach(function(p){return l.clearElementCache(p)})})}},{key:"triggerLeaveAnimation",value:function(r,n,l,c){var p=this,_=this._engine.statesByElement.get(r),w=new Map;if(_){var M=[];if(Object.keys(_).forEach(function(A){if(w.set(A,_[A].value),p._triggers[A]){var O=p.trigger(r,A,Wy,c);O&&M.push(O)}}),M.length)return this._engine.markElementAsRemoved(this.id,r,!0,n,w),l&&Hf(M).onDone(function(){return p._engine.processLeaveNode(r)}),!0}return!1}},{key:"prepareLeaveAnimationListeners",value:function(r){var n=this,l=this._elementListeners.get(r),c=this._engine.statesByElement.get(r);if(l&&c){var p=new Set;l.forEach(function(_){var w=_.name;if(!p.has(w)){p.add(w);var A=n._triggers[w].fallbackTransition,O=c[w]||XA,F=new jy(Wy),Y=new Yy(n.id,w,r);n._engine.totalQueuedPlayers++,n._queue.push({element:r,triggerName:w,transition:A,fromState:O,toState:F,player:Y,isFallbackTransition:!0})}})}}},{key:"removeNode",value:function(r,n){var l=this,c=this._engine;if(r.childElementCount&&this._signalRemovalForInnerTriggers(r,n),!this.triggerLeaveAnimation(r,n,!0)){var p=!1;if(c.totalAnimations){var _=c.players.length?c.playersByQueriedElement.get(r):[];if(_&&_.length)p=!0;else for(var w=r;w=w.parentNode;)if(c.statesByElement.get(w)){p=!0;break}}if(this.prepareLeaveAnimationListeners(r),p)c.markElementAsRemoved(this.id,r,!1,n);else{var A=r[Eo];(!A||A===V1)&&(c.afterFlush(function(){return l.clearElementCache(r)}),c.destroyInnerAnimations(r),c._onRemovalComplete(r,n))}}}},{key:"insertNode",value:function(r,n){Bs(r,this._hostClassName)}},{key:"drainQueuedTransitions",value:function(r){var n=this,l=[];return this._queue.forEach(function(c){var p=c.player;if(!p.destroyed){var _=c.element,w=n._elementListeners.get(_);w&&w.forEach(function(M){if(M.name==c.triggerName){var A=OA(_,c.triggerName,c.fromState.value,c.toState.value);A._data=r,PA(c.player,M.phase,A,M.callback)}}),p.markedForDestroy?n._engine.afterFlush(function(){p.destroy()}):l.push(c)}}),this._queue=[],l.sort(function(c,p){var _=c.transition.ast.depCount,w=p.transition.ast.depCount;return 0==_||0==w?_-w:n._engine.driver.containsElement(c.element,p.element)?1:-1})}},{key:"destroy",value:function(r){this.players.forEach(function(n){return n.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,r)}},{key:"elementContainsData",value:function(r){var n=!1;return this._elementListeners.has(r)&&(n=!0),!!this._queue.find(function(l){return l.element===r})||n}}]),i}(),_W=function(){function i(s,r,n){R(this,i),this.bodyNode=s,this.driver=r,this._normalizer=n,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(l,c){}}return L(i,[{key:"_onRemovalComplete",value:function(r,n){this.onRemovalComplete(r,n)}},{key:"queuedPlayers",get:function(){var r=[];return this._namespaceList.forEach(function(n){n.players.forEach(function(l){l.queued&&r.push(l)})}),r}},{key:"createNamespace",value:function(r,n){var l=new Ns(r,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(l,n):(this.newHostElements.set(n,l),this.collectEnterElement(n)),this._namespaceLookup[r]=l}},{key:"_balanceNamespaceList",value:function(r,n){var l=this._namespaceList,c=this.namespacesByHostElement,p=l.length-1;if(p>=0){var _=!1;if(void 0!==this.driver.getParentElement)for(var w=this.driver.getParentElement(n);w;){var M=c.get(w);if(M){var A=l.indexOf(M);l.splice(A+1,0,r),_=!0;break}w=this.driver.getParentElement(w)}else for(var O=p;O>=0;O--)if(this.driver.containsElement(l[O].hostElement,n)){l.splice(O+1,0,r),_=!0;break}_||l.unshift(r)}else l.push(r);return c.set(n,r),r}},{key:"register",value:function(r,n){var l=this._namespaceLookup[r];return l||(l=this.createNamespace(r,n)),l}},{key:"registerTrigger",value:function(r,n,l){var c=this._namespaceLookup[r];c&&c.register(n,l)&&this.totalAnimations++}},{key:"destroy",value:function(r,n){var l=this;if(r){var c=this._fetchNamespace(r);this.afterFlush(function(){l.namespacesByHostElement.delete(c.hostElement),delete l._namespaceLookup[r];var p=l._namespaceList.indexOf(c);p>=0&&l._namespaceList.splice(p,1)}),this.afterFlushAnimationsDone(function(){return c.destroy(n)})}}},{key:"_fetchNamespace",value:function(r){return this._namespaceLookup[r]}},{key:"fetchNamespacesByElement",value:function(r){var n=new Set,l=this.statesByElement.get(r);if(l)for(var c=Object.keys(l),p=0;p=0&&this.collectedLeaveElements.splice(_,1)}if(r){var w=this._fetchNamespace(r);w&&w.insertNode(n,l)}c&&this.collectEnterElement(n)}}},{key:"collectEnterElement",value:function(r){this.collectedEnterElements.push(r)}},{key:"markElementAsDisabled",value:function(r,n){n?this.disabledNodes.has(r)||(this.disabledNodes.add(r),Bs(r,N1)):this.disabledNodes.has(r)&&(this.disabledNodes.delete(r),og(r,N1))}},{key:"removeNode",value:function(r,n,l,c){if(H1(n)){var p=r?this._fetchNamespace(r):null;if(p?p.removeNode(n,c):this.markElementAsRemoved(r,n,!1,c),l){var _=this.namespacesByHostElement.get(n);_&&_.id!==r&&_.removeNode(n,c)}}else this._onRemovalComplete(n,c)}},{key:"markElementAsRemoved",value:function(r,n,l,c,p){this.collectedLeaveElements.push(n),n[Eo]={namespaceId:r,setForRemoval:c,hasAnimation:l,removedBeforeQueried:!1,previousTriggersValues:p}}},{key:"listen",value:function(r,n,l,c,p){return H1(n)?this._fetchNamespace(r).listen(n,l,c,p):function(){}}},{key:"_buildInstruction",value:function(r,n,l,c,p){return r.transition.build(this.driver,r.element,r.fromState.value,r.toState.value,l,c,r.fromState.options,r.toState.options,n,p)}},{key:"destroyInnerAnimations",value:function(r){var n=this,l=this.driver.query(r,D1,!0);l.forEach(function(c){return n.destroyActiveAnimationsForElement(c)}),0!=this.playersByQueriedElement.size&&(l=this.driver.query(r,x1,!0)).forEach(function(c){return n.finishActiveQueriedAnimationOnElement(c)})}},{key:"destroyActiveAnimationsForElement",value:function(r){var n=this.playersByElement.get(r);n&&n.forEach(function(l){l.queued?l.markedForDestroy=!0:l.destroy()})}},{key:"finishActiveQueriedAnimationOnElement",value:function(r){var n=this.playersByQueriedElement.get(r);n&&n.forEach(function(l){return l.finish()})}},{key:"whenRenderingDone",value:function(){var r=this;return new Promise(function(n){if(r.players.length)return Hf(r.players).onDone(function(){return n()});n()})}},{key:"processLeaveNode",value:function(r){var l,n=this,c=r[Eo];if(c&&c.setForRemoval){if(r[Eo]=V1,c.namespaceId){this.destroyInnerAnimations(r);var p=this._fetchNamespace(c.namespaceId);p&&p.clearElementCache(r)}this._onRemovalComplete(r,c.setForRemoval)}(null===(l=r.classList)||void 0===l?void 0:l.contains(N1))&&this.markElementAsDisabled(r,!1),this.driver.query(r,".ng-animate-disabled",!0).forEach(function(_){n.markElementAsDisabled(_,!1)})}},{key:"flush",value:function(){var r=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,l=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(F,Y){return r._balanceNamespaceList(F,Y)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var c=0;c=0;Dc--)this._namespaceList[Dc].drainQueuedTransitions(n).forEach(function(ut){var un=ut.player,yn=ut.element;if(ci.push(un),l.collectedEnterElements.length){var Oi=yn[Eo];if(Oi&&Oi.setForMove){if(Oi.previousTriggersValues&&Oi.previousTriggersValues.has(ut.triggerName)){var jS=Oi.previousTriggersValues.get(ut.triggerName),Tg=l.statesByElement.get(ut.element);Tg&&Tg[ut.triggerName]&&(Tg[ut.triggerName].value=jS)}return void un.destroy()}}var LP=!Y||!l.driver.containsElement(Y,yn),UH=Vn.get(yn),Kq=le.get(yn),ja=l._buildInstruction(ut,c,Kq,UH,LP);if(ja.errors&&ja.errors.length)fo.push(ja);else{if(LP)return un.onStart(function(){return Zh(yn,ja.fromStyles)}),un.onDestroy(function(){return _u(yn,ja.toStyles)}),void p.push(un);if(ut.isFallbackTransition)return un.onStart(function(){return Zh(yn,ja.fromStyles)}),un.onDestroy(function(){return _u(yn,ja.toStyles)}),void p.push(un);var jH=[];ja.timelines.forEach(function(hp){hp.stretchStartingKeyframe=!0,l.disabledNodes.has(hp.element)||jH.push(hp)}),ja.timelines=jH,c.append(yn,ja.timelines),w.push({instruction:ja,player:un,element:yn}),ja.queriedElements.forEach(function(hp){return ts(M,hp,[]).push(un)}),ja.preStyleProps.forEach(function(hp,FP){var WH=Object.keys(hp);if(WH.length){var _b=A.get(FP);_b||A.set(FP,_b=new Set),WH.forEach(function($q){return _b.add($q)})}}),ja.postStyleProps.forEach(function(hp,FP){var WH=Object.keys(hp),_b=O.get(FP);_b||O.set(FP,_b=new Set),WH.forEach(function($q){return _b.add($q)})})}});if(fo.length){var Gl=[];fo.forEach(function(ut){Gl.push(function G7(i,s){return new st(3505,Nn)}())}),ci.forEach(function(ut){return ut.destroy()}),this.reportError(Gl)}var dp=new Map,xg=new Map;w.forEach(function(ut){var un=ut.element;c.has(un)&&(xg.set(un,un),l._beforeAnimationBuild(ut.player.namespaceId,ut.instruction,dp))}),p.forEach(function(ut){var un=ut.element;l._getPreviousPlayers(un,!1,ut.namespaceId,ut.triggerName,null).forEach(function(Oi){ts(dp,un,[]).push(Oi),Oi.destroy()})});var $J=ae.filter(function(ut){return JA(ut,A,O)}),GH=new Map;G1(GH,this.driver,De,O,vc).forEach(function(ut){JA(ut,A,O)&&$J.push(ut)});var jq=new Map;oe.forEach(function(ut,un){G1(jq,l.driver,new Set(ut),A,"!")}),$J.forEach(function(ut){var un=GH.get(ut),yn=jq.get(ut);GH.set(ut,Object.assign(Object.assign({},un),yn))});var Wq=[],QJ=[],JJ={};w.forEach(function(ut){var un=ut.element,yn=ut.player,Oi=ut.instruction;if(c.has(un)){if(F.has(un))return yn.onDestroy(function(){return _u(un,Oi.toStyles)}),yn.disabled=!0,yn.overrideTotalTime(Oi.totalTime),void p.push(yn);var jS=JJ;if(xg.size>1){for(var Tg=un,LP=[];Tg=Tg.parentNode;){var UH=xg.get(Tg);if(UH){jS=UH;break}LP.push(Tg)}LP.forEach(function(jH){return xg.set(jH,jS)})}var Kq=l._buildAnimation(yn.namespaceId,Oi,dp,_,jq,GH);if(yn.setRealPlayer(Kq),jS===JJ)Wq.push(yn);else{var ja=l.playersByElement.get(jS);ja&&ja.length&&(yn.parentPlayer=Hf(ja)),p.push(yn)}}else Zh(un,Oi.fromStyles),yn.onDestroy(function(){return _u(un,Oi.toStyles)}),QJ.push(yn),F.has(un)&&p.push(yn)}),QJ.forEach(function(ut){var un=_.get(ut.element);if(un&&un.length){var yn=Hf(un);ut.setRealPlayer(yn)}}),p.forEach(function(ut){ut.parentPlayer?ut.syncPlayerEvents(ut.parentPlayer):ut.destroy()});for(var Yq=0;Yq0?this.driver.animate(r.element,n,r.duration,r.delay,r.easing,l):new By(r.duration,r.delay)}}]),i}(),Yy=function(){function i(s,r,n){R(this,i),this.namespaceId=s,this.triggerName=r,this.element=n,this._player=new By,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return L(i,[{key:"setRealPlayer",value:function(r){var n=this;this._containsRealPlayer||(this._player=r,Object.keys(this._queuedCallbacks).forEach(function(l){n._queuedCallbacks[l].forEach(function(c){return PA(r,l,void 0,c)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(r.totalTime),this.queued=!1)}},{key:"getRealPlayer",value:function(){return this._player}},{key:"overrideTotalTime",value:function(r){this.totalTime=r}},{key:"syncPlayerEvents",value:function(r){var n=this,l=this._player;l.triggerCallback&&r.onStart(function(){return l.triggerCallback("start")}),r.onDone(function(){return n.finish()}),r.onDestroy(function(){return n.destroy()})}},{key:"_queueEvent",value:function(r,n){ts(this._queuedCallbacks,r,[]).push(n)}},{key:"onDone",value:function(r){this.queued&&this._queueEvent("done",r),this._player.onDone(r)}},{key:"onStart",value:function(r){this.queued&&this._queueEvent("start",r),this._player.onStart(r)}},{key:"onDestroy",value:function(r){this.queued&&this._queueEvent("destroy",r),this._player.onDestroy(r)}},{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(r){this.queued||this._player.setPosition(r)}},{key:"getPosition",value:function(){return this.queued?0:this._player.getPosition()}},{key:"triggerCallback",value:function(r){var n=this._player;n.triggerCallback&&n.triggerCallback(r)}}]),i}();function yW(i){return null!=i?i:null}function H1(i){return i&&1===i.nodeType}function z1(i,s){var r=i.style.display;return i.style.display=null!=s?s:"none",r}function G1(i,s,r,n,l){var c=[];r.forEach(function(w){return c.push(z1(w))});var p=[];n.forEach(function(w,M){var A={};w.forEach(function(O){var F=A[O]=s.computeStyle(M,O,l);(!F||0==F.length)&&(M[Eo]=Wf,p.push(M))}),i.set(M,A)});var _=0;return r.forEach(function(w){return z1(w,c[_++])}),p}function $A(i,s){var r=new Map;if(i.forEach(function(_){return r.set(_,[])}),0==s.length)return r;var l=new Set(s),c=new Map;function p(_){if(!_)return 1;var w=c.get(_);if(w)return w;var M=_.parentNode;return w=r.has(M)?M:l.has(M)?1:p(M),c.set(_,w),w}return s.forEach(function(_){var w=p(_);1!==w&&r.get(w).push(_)}),r}function Bs(i,s){var r;null===(r=i.classList)||void 0===r||r.add(s)}function og(i,s){var r;null===(r=i.classList)||void 0===r||r.remove(s)}function yB(i,s,r){Hf(r).onDone(function(){return i.processLeaveNode(s)})}function U1(i,s){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:-1;this._transitionEngine.flush(r)}},{key:"players",get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)}},{key:"whenRenderingDone",value:function(){return this._transitionEngine.whenRenderingDone()}}]),i}();function wW(i,s){var r=null,n=null;return Array.isArray(s)&&s.length?(r=sg(s[0]),s.length>1&&(n=sg(s[s.length-1]))):s&&(r=sg(s)),r||n?new bB(i,r,n):null}var bB=function(){var i=function(){function s(r,n,l){R(this,s),this._element=r,this._startStyles=n,this._endStyles=l,this._state=0;var c=s.initialStylesByElement.get(r);c||s.initialStylesByElement.set(r,c={}),this._initialStyles=c}return L(s,[{key:"start",value:function(){this._state<1&&(this._startStyles&&_u(this._element,this._startStyles,this._initialStyles),this._state=1)}},{key:"finish",value:function(){this.start(),this._state<2&&(_u(this._element,this._initialStyles),this._endStyles&&(_u(this._element,this._endStyles),this._endStyles=null),this._state=1)}},{key:"destroy",value:function(){this.finish(),this._state<3&&(s.initialStylesByElement.delete(this._element),this._startStyles&&(Zh(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Zh(this._element,this._endStyles),this._endStyles=null),_u(this._element,this._initialStyles),this._state=3)}}]),s}();return i.initialStylesByElement=new WeakMap,i}();function sg(i){for(var s=null,r=Object.keys(i),n=0;n5&&void 0!==arguments[5]?arguments[5]:[],w=0==c?"both":"forwards",M={duration:l,delay:c,fill:w};p&&(M.easing=p);var A={},O=_.filter(function(Y){return Y instanceof CB});K7(l,c)&&O.forEach(function(Y){var $=Y.currentSnapshot;Object.keys($).forEach(function(oe){return A[oe]=$[oe]})});var F=wW(r,n=aB(r,n=n.map(function(Y){return Uf(Y,!1)}),A));return new CB(r,n,M,F)}}]),i}(),wB=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c){var p;return R(this,n),(p=r.call(this))._nextAnimationId=0,p._renderer=l.createRenderer(c.body,{id:"0",encapsulation:Ya.None,styles:[],data:{animation:[]}}),p}return L(n,[{key:"build",value:function(c){var p=this._nextAnimationId.toString();this._nextAnimationId++;var _=Array.isArray(c)?m1(c):c;return tE(this._renderer,null,p,"register",[_]),new SB(p,this._renderer)}}]),n}(L3);return i.\u0275fac=function(r){return new(r||i)(ge(h_),ge(Jt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),SB=function(i){se(r,i);var s=ue(r);function r(n,l){var c;return R(this,r),(c=s.call(this))._id=n,c._renderer=l,c}return L(r,[{key:"create",value:function(l,c){return new MW(this._id,l,c||{},this._renderer)}}]),r}(g7),MW=function(){function i(s,r,n,l){R(this,i),this.id=s,this.element=r,this._renderer=l,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return L(i,[{key:"_listen",value:function(r,n){return this._renderer.listen(this.element,"@@".concat(this.id,":").concat(r),n)}},{key:"_command",value:function(r){for(var n=arguments.length,l=new Array(n>1?n-1:0),c=1;c=0&&n3&&void 0!==arguments[3])||arguments[3];this.delegate.insertBefore(r,n,l),this.engine.onInsert(this.namespaceId,n,r,c)}},{key:"removeChild",value:function(r,n,l){this.engine.onRemove(this.namespaceId,n,this.delegate,l)}},{key:"selectRootElement",value:function(r,n){return this.delegate.selectRootElement(r,n)}},{key:"parentNode",value:function(r){return this.delegate.parentNode(r)}},{key:"nextSibling",value:function(r){return this.delegate.nextSibling(r)}},{key:"setAttribute",value:function(r,n,l,c){this.delegate.setAttribute(r,n,l,c)}},{key:"removeAttribute",value:function(r,n,l){this.delegate.removeAttribute(r,n,l)}},{key:"addClass",value:function(r,n){this.delegate.addClass(r,n)}},{key:"removeClass",value:function(r,n){this.delegate.removeClass(r,n)}},{key:"setStyle",value:function(r,n,l,c){this.delegate.setStyle(r,n,l,c)}},{key:"removeStyle",value:function(r,n,l){this.delegate.removeStyle(r,n,l)}},{key:"setProperty",value:function(r,n,l){"@"==n.charAt(0)&&n==MB?this.disableAnimations(r,!!l):this.delegate.setProperty(r,n,l)}},{key:"setValue",value:function(r,n){this.delegate.setValue(r,n)}},{key:"listen",value:function(r,n,l){return this.delegate.listen(r,n,l)}},{key:"disableAnimations",value:function(r,n){this.engine.disableAnimations(r,n)}}]),i}(),rE=function(i){se(r,i);var s=ue(r);function r(n,l,c,p){var _;return R(this,r),(_=s.call(this,l,c,p)).factory=n,_.namespaceId=l,_}return L(r,[{key:"setProperty",value:function(l,c,p){"@"==c.charAt(0)?"."==c.charAt(1)&&c==MB?this.disableAnimations(l,p=void 0===p||!!p):this.engine.process(this.namespaceId,l,c.substr(1),p):this.delegate.setProperty(l,c,p)}},{key:"listen",value:function(l,c,p){var _=this;if("@"==c.charAt(0)){var w=function kW(i){switch(i){case"body":return document.body;case"document":return document;case"window":return window;default:return i}}(l),M=c.substr(1),A="";if("@"!=M.charAt(0)){var O=function kB(i){var s=i.indexOf(".");return[i.substring(0,s),i.substr(s+1)]}(M),F=Pr(O,2);M=F[0],A=F[1]}return this.engine.listen(this.namespaceId,w,M,A,function(Y){_.factory.scheduleListenerCallback(Y._data||-1,p,Y)})}return this.delegate.listen(l,c,p)}}]),r}(nE),DB=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p){return R(this,n),r.call(this,l.body,c,p)}return L(n,[{key:"ngOnDestroy",value:function(){this.flush()}}]),n}(j1);return i.\u0275fac=function(r){return new(r||i)(ge(Jt),ge(k1),ge(ig))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),mi=new Ae("AnimationModuleType"),Y1=[{provide:L3,useClass:wB},{provide:ig,useFactory:function xB(){return new uW}},{provide:j1,useClass:DB},{provide:h_,useFactory:function iE(i,s,r){return new $h(i,s,r)},deps:[Z_,j1,Pt]}],q1=[{provide:k1,useFactory:function(){return new SW}},{provide:mi,useValue:"BrowserAnimations"}].concat(Y1),TB=[{provide:k1,useClass:LA},{provide:mi,useValue:"NoopAnimations"}].concat(Y1),DW=function(){var i=function(){function s(){R(this,s)}return L(s,null,[{key:"withConfig",value:function(n){return{ngModule:s,providers:n.disableAnimations?TB:q1}}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({providers:q1,imports:[ic]}),i}();function aE(i,s){if(1&i&&Se(0,"mat-pseudo-checkbox",4),2&i){var r=Q();U("state",r.selected?"checked":"unchecked")("disabled",r.disabled)}}function EB(i,s){if(1&i&&(I(0,"span",5),K(1),B()),2&i){var r=Q();G(1),Le("(",r.group.label,")")}}var PB=["*"],IB=function(){var i=L(function s(){R(this,s)});return i.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",i.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",i.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",i.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",i}(),AW=function(){var i=L(function s(){R(this,s)});return i.COMPLEX="375ms",i.ENTERING="225ms",i.EXITING="195ms",i}(),EW=new Ae("mat-sanity-checks",{providedIn:"root",factory:function RB(){return!0}}),vn=function(){var i=function(){function s(r,n,l){R(this,s),this._sanityChecks=n,this._document=l,this._hasDoneGlobalChecks=!1,r._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}return L(s,[{key:"_checkIsEnabled",value:function(n){return!XT()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[n])}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(R3),ge(EW,8),ge(Jt))},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[Dy],Dy]}),i}();function Fl(i){return function(s){se(n,s);var r=ue(n);function n(){var l;R(this,n);for(var c=arguments.length,p=new Array(c),_=0;_1&&void 0!==arguments[1]?arguments[1]:0;return function(r){se(l,r);var n=ue(l);function l(){var c;R(this,l);for(var p=arguments.length,_=new Array(p),w=0;w0?l:r}}]),i}(),qf=new Ae("mat-date-formats"),FB=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function oE(i,s){for(var r=Array(i),n=0;n2&&void 0!==arguments[2]?arguments[2]:{},p=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),_=Object.assign(Object.assign({},BB),c.animation);c.centered&&(r=p.left+p.width/2,n=p.top+p.height/2);var w=c.radius||uE(r,n,p),M=r-p.left,A=n-p.top,O=_.enterDuration,F=document.createElement("div");F.classList.add("mat-ripple-element"),F.style.left="".concat(M-w,"px"),F.style.top="".concat(A-w,"px"),F.style.height="".concat(2*w,"px"),F.style.width="".concat(2*w,"px"),null!=c.color&&(F.style.backgroundColor=c.color),F.style.transitionDuration="".concat(O,"ms"),this._containerElement.appendChild(F),FW(F),F.style.transform="scale(1)";var Y=new Zy(this,F,c);return Y.state=0,this._activeRipples.add(Y),c.persistent||(this._mostRecentTransientRipple=Y),this._runTimeoutOutsideZone(function(){var $=Y===l._mostRecentTransientRipple;Y.state=1,!c.persistent&&(!$||!l._isPointerDown)&&Y.fadeOut()},O),Y}},{key:"fadeOutRipple",value:function(r){var n=this._activeRipples.delete(r);if(r===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),n){var l=r.element,c=Object.assign(Object.assign({},BB),r.config.animation);l.style.transitionDuration="".concat(c.exitDuration,"ms"),l.style.opacity="0",r.state=2,this._runTimeoutOutsideZone(function(){r.state=3,l.remove()},c.exitDuration)}}},{key:"fadeOutAll",value:function(){this._activeRipples.forEach(function(r){return r.fadeOut()})}},{key:"fadeOutAllNonPersistent",value:function(){this._activeRipples.forEach(function(r){r.config.persistent||r.fadeOut()})}},{key:"setupTriggerEvents",value:function(r){var n=vu(r);!n||n===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=n,this._registerEvents(VB))}},{key:"handleEvent",value:function(r){"mousedown"===r.type?this._onMousedown(r):"touchstart"===r.type?this._onTouchStart(r):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(HB),this._pointerUpEventsRegistered=!0)}},{key:"_onMousedown",value:function(r){var n=SA(r),l=this._lastTouchStartEvent&&Date.now()1&&void 0!==arguments[1]?arguments[1]:0;this._ngZone.runOutsideAngular(function(){return setTimeout(r,n)})}},{key:"_registerEvents",value:function(r){var n=this;this._ngZone.runOutsideAngular(function(){r.forEach(function(l){n._triggerElement.addEventListener(l,n,lE)})})}},{key:"_removeTriggerEvents",value:function(){var r=this;this._triggerElement&&(VB.forEach(function(n){r._triggerElement.removeEventListener(n,r,lE)}),this._pointerUpEventsRegistered&&HB.forEach(function(n){r._triggerElement.removeEventListener(n,r,lE)}))}}]),i}();function FW(i){window.getComputedStyle(i).getPropertyValue("opacity")}function uE(i,s,r){var n=Math.max(Math.abs(i-r.left),Math.abs(i-r.right)),l=Math.max(Math.abs(s-r.top),Math.abs(s-r.bottom));return Math.sqrt(n*n+l*l)}var GB=new Ae("mat-ripple-global-options"),Nl=function(){var i=function(){function s(r,n,l,c,p){R(this,s),this._elementRef=r,this._animationMode=p,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=c||{},this._rippleRenderer=new zB(this,n,r,l)}return L(s,[{key:"disabled",get:function(){return this._disabled},set:function(n){n&&this.fadeOutAllNonPersistent(),this._disabled=n,this._setupTriggerEventsIfEnabled()}},{key:"trigger",get:function(){return this._trigger||this._elementRef.nativeElement},set:function(n){this._trigger=n,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(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,c=arguments.length>2?arguments[2]:void 0;return"number"==typeof n?this._rippleRenderer.fadeInRipple(n,l,Object.assign(Object.assign({},this.rippleConfig),c)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),n))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(tt),z(Pt),z(pn),z(GB,8),z(mi,8))},i.\u0275dir=be({type:i,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(r,n){2&r&&Ze("mat-ripple-unbounded",n.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),i}(),Cc=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[vn],vn]}),i}(),NW=function(){var i=L(function s(r){R(this,s),this._animationMode=r,this.state="unchecked",this.disabled=!1});return i.\u0275fac=function(r){return new(r||i)(z(mi,8))},i.\u0275cmp=ke({type:i,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(r,n){2&r&&Ze("mat-pseudo-checkbox-indeterminate","indeterminate"===n.state)("mat-pseudo-checkbox-checked","checked"===n.state)("mat-pseudo-checkbox-disabled",n.disabled)("_mat-animation-noopable","NoopAnimations"===n._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(r,n){},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}),i}(),BW=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[vn]]}),i}(),Xy=new Ae("MAT_OPTION_PARENT_COMPONENT"),$1=new Ae("MatOptgroup"),HW=0,UB=L(function i(s){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];R(this,i),this.source=s,this.isUserInput=r}),zW=function(){var i=function(){function s(r,n,l,c){R(this,s),this._element=r,this._changeDetectorRef=n,this._parent=l,this.group=c,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-".concat(HW++),this.onSelectionChange=new ye,this._stateChanges=new Xe}return L(s,[{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(n){this._disabled=gt(n)}},{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(n,l){var c=this._getHostElement();"function"==typeof c.focus&&c.focus(l)}},{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(n){(13===n.keyCode||32===n.keyCode)&&!ia(n)&&(this._selectViaInteraction(),n.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 n=this.viewValue;n!==this._mostRecentViewValue&&(this._mostRecentViewValue=n,this._stateChanges.next())}}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"_emitSelectionChangeEvent",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.onSelectionChange.emit(new UB(this,n))}}]),s}();return i.\u0275fac=function(r){lf()},i.\u0275dir=be({type:i,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),i}(),Pi=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_){return R(this,n),r.call(this,l,c,p,_)}return L(n)}(zW);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(hn),z(Xy,8),z($1,8))},i.\u0275cmp=ke({type:i,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(r,n){1&r&&ne("click",function(){return n._selectViaInteraction()})("keydown",function(c){return n._handleKeydown(c)}),2&r&&(bl("id",n.id),lt("tabindex",n._getTabIndex())("aria-selected",n._getAriaSelected())("aria-disabled",n.disabled.toString()),Ze("mat-selected",n.selected)("mat-option-multiple",n.multiple)("mat-active",n.active)("mat-option-disabled",n.disabled))},exportAs:["matOption"],features:[Re],ngContentSelectors:PB,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(r,n){1&r&&(vi(),te(0,aE,1,2,"mat-pseudo-checkbox",0),I(1,"span",1),Gt(2),B(),te(3,EB,2,1,"span",2),Se(4,"div",3)),2&r&&(U("ngIf",n.multiple),G(3),U("ngIf",n.group&&n.group._inert),G(1),U("matRippleTrigger",n._getHostElement())("matRippleDisabled",n.disabled||n.disableRipple))},directives:[NW,en,Nl],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;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}),i}();function cE(i,s,r){if(r.length){for(var n=s.toArray(),l=r.toArray(),c=0,p=0;pr+n?Math.max(0,i-n+s):r}var Q1=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[Cc,io,vn,BW]]}),i}();function J1(i,s){}var ug=L(function i(){R(this,i),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="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}),WB={dialogContainer:zi("dialogContainer",[Wn("void, exit",mt({opacity:0,transform:"scale(0.7)"})),Wn("enter",mt({transform:"none"})),Yn("* => enter",TA([$n("150ms cubic-bezier(0, 0, 0.2, 1)",mt({transform:"none",opacity:1})),y1("@*",_1(),{optional:!0})])),Yn("* => void, * => exit",TA([$n("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",mt({opacity:0})),y1("@*",_1(),{optional:!0})]))])},GW=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w,M,A,O){var F;return R(this,n),(F=r.call(this))._elementRef=l,F._focusTrapFactory=c,F._changeDetectorRef=p,F._config=w,F._interactivityChecker=M,F._ngZone=A,F._focusMonitor=O,F._animationStateChanged=new ye,F._elementFocusedBeforeDialogWasOpened=null,F._closeInteractionType=null,F.attachDomPortal=function(Y){return F._portalOutlet.hasAttached(),F._portalOutlet.attachDomPortal(Y)},F._ariaLabelledBy=w.ariaLabelledBy||null,F._document=_,F}return L(n,[{key:"_initializeWithAttachedContent",value:function(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=Gh())}},{key:"attachComponentPortal",value:function(c){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(c)}},{key:"attachTemplatePortal",value:function(c){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(c)}},{key:"_recaptureFocus",value:function(){this._containsFocus()||this._trapFocus()}},{key:"_forceFocus",value:function(c,p){this._interactivityChecker.isFocusable(c)||(c.tabIndex=-1,this._ngZone.runOutsideAngular(function(){var _=function w(){c.removeEventListener("blur",w),c.removeEventListener("mousedown",w),c.removeAttribute("tabindex")};c.addEventListener("blur",_),c.addEventListener("mousedown",_)})),c.focus(p)}},{key:"_focusByCssSelector",value:function(c,p){var _=this._elementRef.nativeElement.querySelector(c);_&&this._forceFocus(_,p)}},{key:"_trapFocus",value:function(){var c=this,p=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||p.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(function(_){_||c._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}},{key:"_restoreFocus",value:function(){var c=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&c&&"function"==typeof c.focus){var p=Gh(),_=this._elementRef.nativeElement;(!p||p===this._document.body||p===_||_.contains(p))&&(this._focusMonitor?(this._focusMonitor.focusVia(c,this._closeInteractionType),this._closeInteractionType=null):c.focus())}this._focusTrap&&this._focusTrap.destroy()}},{key:"_focusDialogContainer",value:function(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}},{key:"_containsFocus",value:function(){var c=this._elementRef.nativeElement,p=Gh();return c===p||c.contains(p)}}]),n}(Ty);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(k3),z(hn),z(Jt,8),z(ug),z(C3),z(Pt),z(Rl))},i.\u0275dir=be({type:i,viewQuery:function(r,n){var l;1&r&&Rt(pc,7),2&r&&Ve(l=Ge())&&(n._portalOutlet=l.first)},features:[Re]}),i}(),UW=function(){var i=function(s){se(n,s);var r=ue(n);function n(){var l;return R(this,n),(l=r.apply(this,arguments))._state="enter",l}return L(n,[{key:"_onAnimationDone",value:function(c){var p=c.toState,_=c.totalTime;"enter"===p?(this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:_})):"exit"===p&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:_}))}},{key:"_onAnimationStart",value:function(c){var p=c.toState,_=c.totalTime;"enter"===p?this._animationStateChanged.next({state:"opening",totalTime:_}):("exit"===p||"void"===p)&&this._animationStateChanged.next({state:"closing",totalTime:_})}},{key:"_startExitAnimation",value:function(){this._state="exit",this._changeDetectorRef.markForCheck()}},{key:"_initializeWithAttachedContent",value:function(){Ye(qe(n.prototype),"_initializeWithAttachedContent",this).call(this),this._config.delayFocusTrap||this._trapFocus()}}]),n}(GW);return i.\u0275fac=function(){var s;return function(n){return(s||(s=cn(i)))(n||i)}}(),i.\u0275cmp=ke({type:i,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(r,n){1&r&&cv("@dialogContainer.start",function(c){return n._onAnimationStart(c)})("@dialogContainer.done",function(c){return n._onAnimationDone(c)}),2&r&&(bl("id",n._id),lt("role",n._config.role)("aria-labelledby",n._config.ariaLabel?null:n._ariaLabelledBy)("aria-label",n._config.ariaLabel)("aria-describedby",n._config.ariaDescribedBy||null),pv("@dialogContainer",n._state))},features:[Re],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(r,n){1&r&&te(0,J1,0,0,"ng-template",0)},directives:[pc],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:[WB.dialogContainer]}}),i}(),jW=0,Hr=function(){function i(s,r){var n=this,l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"mat-dialog-".concat(jW++);R(this,i),this._overlayRef=s,this._containerInstance=r,this.id=l,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new Xe,this._afterClosed=new Xe,this._beforeClosed=new Xe,this._state=0,r._id=l,r._animationStateChanged.pipe(Ur(function(c){return"opened"===c.state}),gn(1)).subscribe(function(){n._afterOpened.next(),n._afterOpened.complete()}),r._animationStateChanged.pipe(Ur(function(c){return"closed"===c.state}),gn(1)).subscribe(function(){clearTimeout(n._closeFallbackTimeout),n._finishDialogClose()}),s.detachments().subscribe(function(){n._beforeClosed.next(n._result),n._beforeClosed.complete(),n._afterClosed.next(n._result),n._afterClosed.complete(),n.componentInstance=null,n._overlayRef.dispose()}),s.keydownEvents().pipe(Ur(function(c){return 27===c.keyCode&&!n.disableClose&&!ia(c)})).subscribe(function(c){c.preventDefault(),fE(n,"keyboard")}),s.backdropClick().subscribe(function(){n.disableClose?n._containerInstance._recaptureFocus():fE(n,"mouse")})}return L(i,[{key:"close",value:function(r){var n=this;this._result=r,this._containerInstance._animationStateChanged.pipe(Ur(function(l){return"closing"===l.state}),gn(1)).subscribe(function(l){n._beforeClosed.next(r),n._beforeClosed.complete(),n._overlayRef.detachBackdrop(),n._closeFallbackTimeout=setTimeout(function(){return n._finishDialogClose()},l.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(r){var n=this._getPositionStrategy();return r&&(r.left||r.right)?r.left?n.left(r.left):n.right(r.right):n.centerHorizontally(),r&&(r.top||r.bottom)?r.top?n.top(r.top):n.bottom(r.bottom):n.centerVertically(),this._overlayRef.updatePosition(),this}},{key:"updateSize",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return this._overlayRef.updateSize({width:r,height:n}),this._overlayRef.updatePosition(),this}},{key:"addPanelClass",value:function(r){return this._overlayRef.addPanelClass(r),this}},{key:"removePanelClass",value:function(r){return this._overlayRef.removePanelClass(r),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}}]),i}();function fE(i,s,r){return void 0!==i._containerInstance&&(i._containerInstance._closeInteractionType=s),i.close(r)}var Xr=new Ae("MatDialogData"),WW=new Ae("mat-dialog-default-options"),YB=new Ae("mat-dialog-scroll-strategy"),qW={provide:YB,deps:[aa],useFactory:function qB(i){return function(){return i.scrollStrategies.block()}}},ZW=function(){var i=function(){function s(r,n,l,c,p,_,w,M,A,O){var F=this;R(this,s),this._overlay=r,this._injector=n,this._defaultOptions=l,this._parentDialog=c,this._overlayContainer=p,this._dialogRefConstructor=w,this._dialogContainerType=M,this._dialogDataToken=A,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new Xe,this._afterOpenedAtThisLevel=new Xe,this._ariaHiddenElements=new Map,this.afterAllClosed=Sw(function(){return F.openDialogs.length?F._getAfterAllClosed():F._getAfterAllClosed().pipe(na(void 0))}),this._scrollStrategy=_}return L(s,[{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 n=this._parentDialog;return n?n._getAfterAllClosed():this._afterAllClosedAtThisLevel}},{key:"open",value:function(n,l){var c=this;l=function XW(i,s){return Object.assign(Object.assign({},s),i)}(l,this._defaultOptions||new ug),l.id&&this.getDialogById(l.id);var p=this._createOverlay(l),_=this._attachDialogContainer(p,l),w=this._attachDialogContent(n,_,p,l);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(w),w.afterClosed().subscribe(function(){return c._removeOpenDialog(w)}),this.afterOpened.next(w),_._initializeWithAttachedContent(),w}},{key:"closeAll",value:function(){this._closeDialogs(this.openDialogs)}},{key:"getDialogById",value:function(n){return this.openDialogs.find(function(l){return l.id===n})}},{key:"ngOnDestroy",value:function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}},{key:"_createOverlay",value:function(n){var l=this._getOverlayConfig(n);return this._overlay.create(l)}},{key:"_getOverlayConfig",value:function(n){var l=new Ff({positionStrategy:this._overlay.position().global(),scrollStrategy:n.scrollStrategy||this._scrollStrategy(),panelClass:n.panelClass,hasBackdrop:n.hasBackdrop,direction:n.direction,minWidth:n.minWidth,minHeight:n.minHeight,maxWidth:n.maxWidth,maxHeight:n.maxHeight,disposeOnNavigation:n.closeOnNavigation});return n.backdropClass&&(l.backdropClass=n.backdropClass),l}},{key:"_attachDialogContainer",value:function(n,l){var p=kr.create({parent:l&&l.viewContainerRef&&l.viewContainerRef.injector||this._injector,providers:[{provide:ug,useValue:l}]}),_=new Rf(this._dialogContainerType,l.viewContainerRef,p,l.componentFactoryResolver);return n.attach(_).instance}},{key:"_attachDialogContent",value:function(n,l,c,p){var _=new this._dialogRefConstructor(c,l,p.id);if(n instanceof hr)l.attachTemplatePortal(new es(n,null,{$implicit:p.data,dialogRef:_}));else{var w=this._createInjector(p,_,l),M=l.attachComponentPortal(new Rf(n,p.viewContainerRef,w,p.componentFactoryResolver));_.componentInstance=M.instance}return _.updateSize(p.width,p.height).updatePosition(p.position),_}},{key:"_createInjector",value:function(n,l,c){var p=n&&n.viewContainerRef&&n.viewContainerRef.injector,_=[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:n.data},{provide:this._dialogRefConstructor,useValue:l}];return n.direction&&(!p||!p.get(Ei,null,It.Optional))&&_.push({provide:Ei,useValue:{value:n.direction,change:dt()}}),kr.create({parent:p||this._injector,providers:_})}},{key:"_removeOpenDialog",value:function(n){var l=this.openDialogs.indexOf(n);l>-1&&(this.openDialogs.splice(l,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(c,p){c?p.setAttribute("aria-hidden",c):p.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}},{key:"_hideNonDialogContentFromAssistiveTechnology",value:function(){var n=this._overlayContainer.getContainerElement();if(n.parentElement)for(var l=n.parentElement.children,c=l.length-1;c>-1;c--){var p=l[c];p!==n&&"SCRIPT"!==p.nodeName&&"STYLE"!==p.nodeName&&!p.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(p,p.getAttribute("aria-hidden")),p.setAttribute("aria-hidden","true"))}}},{key:"_closeDialogs",value:function(n){for(var l=n.length;l--;)n[l].close()}}]),s}();return i.\u0275fac=function(r){lf()},i.\u0275dir=be({type:i}),i}(),eS=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w,M,A,O){return R(this,n),r.call(this,l,c,_,M,A,w,Hr,UW,Xr,O)}return L(n)}(ZW);return i.\u0275fac=function(r){return new(r||i)(ge(aa),ge(kr),ge(z_,8),ge(WW,8),ge(YB),ge(i,12),ge(Ly),ge(mi,8))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),KW=0,_i=function(){var i=function(){function s(r,n,l){R(this,s),this.dialogRef=r,this._elementRef=n,this._dialog=l,this.type="button"}return L(s,[{key:"ngOnInit",value:function(){this.dialogRef||(this.dialogRef=ZB(this._elementRef,this._dialog.openDialogs))}},{key:"ngOnChanges",value:function(n){var l=n._matDialogClose||n._matDialogCloseResult;l&&(this.dialogResult=l.currentValue)}},{key:"_onButtonClick",value:function(n){fE(this.dialogRef,0===n.screenX&&0===n.screenY?"keyboard":"mouse",this.dialogResult)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Hr,8),z(tt),z(eS))},i.\u0275dir=be({type:i,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(r,n){1&r&&ne("click",function(c){return n._onButtonClick(c)}),2&r&<("aria-label",n.ariaLabel||null)("type",n.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[xn]}),i}(),si=function(){var i=function(){function s(r,n,l){R(this,s),this._dialogRef=r,this._elementRef=n,this._dialog=l,this.id="mat-dialog-title-".concat(KW++)}return L(s,[{key:"ngOnInit",value:function(){var n=this;this._dialogRef||(this._dialogRef=ZB(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var l=n._dialogRef._containerInstance;l&&!l._ariaLabelledBy&&(l._ariaLabelledBy=n.id)})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Hr,8),z(tt),z(eS))},i.\u0275dir=be({type:i,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(r,n){2&r&&bl("id",n.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),i}(),jr=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=be({type:i,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),i}(),li=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=be({type:i,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),i}();function ZB(i,s){for(var r=i.nativeElement.parentElement;r&&!r.classList.contains("mat-dialog-container");)r=r.parentElement;return r?s.find(function(n){return n.id===r.id}):null}var $W=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({providers:[eS,qW],imports:[[Nf,Kv,vn],vn]}),i}(),XB=["mat-button",""],dE=["*"],e9=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],KB=yc(Fl(bc(function(){return L(function i(s){R(this,i),this._elementRef=s})}()))),qn=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p){var _;R(this,n),(_=r.call(this,l))._focusMonitor=c,_._animationMode=p,_.isRoundButton=_._hasHostAttributes("mat-fab","mat-mini-fab"),_.isIconButton=_._hasHostAttributes("mat-icon-button");var M,w=qt(e9);try{for(w.s();!(M=w.n()).done;){var A=M.value;_._hasHostAttributes(A)&&_._getHostElement().classList.add(A)}}catch(O){w.e(O)}finally{w.f()}return l.nativeElement.classList.add("mat-button-base"),_.isRoundButton&&(_.color="accent"),_}return L(n,[{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"focus",value:function(c,p){c?this._focusMonitor.focusVia(this._getHostElement(),c,p):this._getHostElement().focus(p)}},{key:"_getHostElement",value:function(){return this._elementRef.nativeElement}},{key:"_isRippleDisabled",value:function(){return this.disableRipple||this.disabled}},{key:"_hasHostAttributes",value:function(){for(var c=this,p=arguments.length,_=new Array(p),w=0;w*,.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"],encapsulation:2,changeDetection:0}),i}(),cg=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_){var w;return R(this,n),(w=r.call(this,c,l,p))._ngZone=_,w._haltDisabledEvents=function(M){w.disabled&&(M.preventDefault(),M.stopImmediatePropagation())},w}return L(n,[{key:"ngAfterViewInit",value:function(){var c=this;Ye(qe(n.prototype),"ngAfterViewInit",this).call(this),this._ngZone?this._ngZone.runOutsideAngular(function(){c._elementRef.nativeElement.addEventListener("click",c._haltDisabledEvents)}):this._elementRef.nativeElement.addEventListener("click",this._haltDisabledEvents)}},{key:"ngOnDestroy",value:function(){Ye(qe(n.prototype),"ngOnDestroy",this).call(this),this._elementRef.nativeElement.removeEventListener("click",this._haltDisabledEvents)}}]),n}(qn);return i.\u0275fac=function(r){return new(r||i)(z(Rl),z(tt),z(mi,8),z(Pt,8))},i.\u0275cmp=ke({type:i,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:7,hostBindings:function(r,n){2&r&&(lt("tabindex",n.disabled?-1:n.tabIndex)("disabled",n.disabled||null)("aria-disabled",n.disabled.toString()),Ze("_mat-animation-noopable","NoopAnimations"===n._animationMode)("mat-button-disabled",n.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[Re],attrs:XB,ngContentSelectors:dE,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(r,n){1&r&&(vi(),I(0,"span",0),Gt(1),B(),Se(2,"span",1)(3,"span",2)),2&r&&(G(2),Ze("mat-button-ripple-round",n.isRoundButton||n.isIconButton),U("matRippleDisabled",n._isRippleDisabled())("matRippleCentered",n.isIconButton)("matRippleTrigger",n._getHostElement()))},directives:[Nl],styles:[".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;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;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;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;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"],encapsulation:2,changeDetection:0}),i}(),tS=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[Cc,vn],vn]}),i}(),Gn=function(){var i=function(){function s(r){R(this,s),this.el=r}return L(s,[{key:"ngOnInit",value:function(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim().replaceAll("&","&"))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(tt))},i.\u0275dir=be({type:i,selectors:[["uds-translate"]]}),i}(),$B=function(){var i=function(){function s(r){R(this,s),this.sanitizer=r}return L(s,[{key:"transform",value:function(n,l){return n=(n=(n=n.replace(/<\s*script\s*/gi,"")).replace(/onclick|onmouseover|onmouseout|onmousemove|onmouseenter|onmouseleave|onmouseup|onmousedown|onkeyup|onkeydown|onkeypress|onkeydown|onkeypress|onkeyup|onchange|onfocus|onblur|onload|onunload|onabort|onerror|onresize|onscroll/gi,"")).replace(/javascript\s*\:/gi,""),this.sanitizer.bypassSecurityTrustHtml(n)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Yx,16))},i.\u0275pipe=qi({name:"safeHtml",type:i,pure:!0}),i}();function t9(i,s){if(1&i){var r=xe();I(0,"button",4),ne("click",function(){return he(r),Q().close()}),I(1,"uds-translate"),K(2,"Close"),B(),K(3),B()}if(2&i){var n=Q();G(3),Ln(n.extra)}}function QB(i,s){if(1&i){var r=xe();I(0,"button",5),ne("click",function(){return he(r),Q().yes()}),I(1,"uds-translate"),K(2,"Yes"),B()()}2&i&&U("color",Q().yesColor)}function n9(i,s){if(1&i){var r=xe();I(0,"button",5),ne("click",function(){return he(r),Q().no()}),I(1,"uds-translate"),K(2,"No"),B()()}2&i&&U("color",Q().noColor)}var fg=function(){return function(i){i[i.alert=0]="alert",i[i.yesno=1]="yesno"}(fg||(fg={})),fg}(),JB=function(){var i=function(){function s(r,n){var l=this;R(this,s),this.dialogRef=r,this.data=n,this.yesColor="primary",this.noColor="warn",this.subscription=null,this.resetCallbacks(),this.yesno=new Jn(function(c){l.yes=function(){c.next(!0),c.complete()},l.no=function(){c.next(!1),c.complete()},l.close=function(){l.doClose(),c.next(!1),c.complete()};var p=l;return{unsubscribe:function(){p.resetCallbacks()}}})}return L(s,[{key:"resetCallbacks",value:function(){var n=this;this.yes=this.no=function(){return n.close()},this.close=function(){return n.doClose()}}},{key:"closed",value:function(){null!==this.subscription&&this.subscription.unsubscribe()}},{key:"doClose",value:function(){this.dialogRef.close()}},{key:"setExtra",value:function(n){this.extra=" ("+Math.floor(n/1e3)+" "+django.gettext("seconds")+") "}},{key:"initAlert",value:function(){var n=this;this.data.autoclose>0&&(this.dialogRef.afterClosed().subscribe(function(l){n.closed()}),this.setExtra(this.data.autoclose),this.subscription=function QW(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return i<0&&(i=0),qv(i,i,arguments.length>1&&void 0!==arguments[1]?arguments[1]:El)}(1e3).subscribe(function(l){var c=n.data.autoclose-1e3*(l+1);n.setExtra(c),c<=0&&n.close()}))}},{key:"initYesNo",value:function(){}},{key:"ngOnInit",value:function(){!0===this.data.warnOnYes&&(this.yesColor="warn",this.noColor="primary"),this.data.type===fg.yesno?this.initYesNo():this.initAlert()}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(Se(0,"h4",0),vf(1,"safeHtml"),Se(2,"mat-dialog-content",1),vf(3,"safeHtml"),I(4,"mat-dialog-actions"),te(5,t9,4,1,"button",2),te(6,QB,3,1,"button",3),te(7,n9,3,1,"button",3),B()),2&r&&(U("innerHtml",fh(1,5,n.data.title),Xi),G(2),U("innerHTML",fh(3,7,n.data.body),Xi),G(3),U("ngIf",0==n.data.type),G(1),U("ngIf",1==n.data.type),G(1),U("ngIf",1==n.data.type))},directives:[si,jr,li,en,qn,_i,Gn],pipes:[$B],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),i}(),za=function(){return function(i){i.TEXT="text",i.TEXT_AUTOCOMPLETE="text-autocomplete",i.TEXTBOX="textbox",i.NUMERIC="numeric",i.PASSWORD="password",i.HIDDEN="hidden",i.CHOICE="choice",i.MULTI_CHOICE="multichoice",i.EDITLIST="editlist",i.CHECKBOX="checkbox",i.IMAGECHOICE="imgchoice",i.DATE="date",i.DATETIME="datetime",i.TAGLIST="taglist"}(za||(za={})),za}(),nS=function(){function i(){R(this,i)}return L(i,null,[{key:"locateChoice",value:function(r,n){var l=n.gui.values.find(function(c){return c.id===r});if(void 0===l)try{l=n.gui.values[0]}catch(c){l={id:"",img:"",text:""}}return l}}]),i}(),eV=function(){var i=function(){function s(r,n){R(this,s),this._renderer=r,this._elementRef=n,this.onChange=function(l){},this.onTouched=function(){}}return L(s,[{key:"setProperty",value:function(n,l){this._renderer.setProperty(this._elementRef.nativeElement,n,l)}},{key:"registerOnTouched",value:function(n){this.onTouched=n}},{key:"registerOnChange",value:function(n){this.onChange=n}},{key:"setDisabledState",value:function(n){this.setProperty("disabled",n)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Yu),z(tt))},i.\u0275dir=be({type:i}),i}(),Qh=function(){var i=function(s){se(n,s);var r=ue(n);function n(){return R(this,n),r.apply(this,arguments)}return L(n)}(eV);return i.\u0275fac=function(){var s;return function(n){return(s||(s=cn(i)))(n||i)}}(),i.\u0275dir=be({type:i,features:[Re]}),i}(),Ga=new Ae("NgValueAccessor"),i9={provide:Ga,useExisting:En(function(){return yi}),multi:!0},pE=new Ae("CompositionEventMode"),yi=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p){var _;return R(this,n),(_=r.call(this,l,c))._compositionMode=p,_._composing=!1,null==_._compositionMode&&(_._compositionMode=!function a9(){var i=fu()?fu().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}()),_}return L(n,[{key:"writeValue",value:function(c){this.setProperty("value",null==c?"":c)}},{key:"_handleInput",value:function(c){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(c)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(c){this._composing=!1,this._compositionMode&&this.onChange(c)}}]),n}(eV);return i.\u0275fac=function(r){return new(r||i)(z(Yu),z(tt),z(pE,8))},i.\u0275dir=be({type:i,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(r,n){1&r&&ne("input",function(c){return n._handleInput(c.target.value)})("blur",function(){return n.onTouched()})("compositionstart",function(){return n._compositionStart()})("compositionend",function(c){return n._compositionEnd(c.target.value)})},features:[ft([i9]),Re]}),i}();function wc(i){return null==i||0===i.length}function rV(i){return null!=i&&"number"==typeof i.length}var Gi=new Ae("NgValidators"),Zf=new Ae("NgAsyncValidators"),iV=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,rS=function(){function i(){R(this,i)}return L(i,null,[{key:"min",value:function(r){return function vE(i){return function(s){if(wc(s.value)||wc(i))return null;var r=parseFloat(s.value);return!isNaN(r)&&ri?{max:{max:i,actual:s.value}}:null}}(r)}},{key:"required",value:function(r){return Ky(r)}},{key:"requiredTrue",value:function(r){return oV(r)}},{key:"email",value:function(r){return function sV(i){return wc(i.value)||iV.test(i.value)?null:{email:!0}}(r)}},{key:"minLength",value:function(r){return function gE(i){return function(s){return wc(s.value)||!rV(s.value)?null:s.value.lengthi?{maxlength:{requiredLength:i,actualLength:s.value.length}}:null}}function dg(i){return null}function mE(i){return null!=i}function $y(i){var s=Wm(i)?Wi(i):i;return eD(s),s}function _E(i){var s={};return i.forEach(function(r){s=null!=r?Object.assign(Object.assign({},s),r):s}),0===Object.keys(s).length?null:s}function uV(i,s){return s.map(function(r){return r(i)})}function cV(i){return i.map(function(s){return function o9(i){return!i.validate}(s)?s:function(r){return s.validate(r)}})}function yE(i){if(!i)return null;var s=i.filter(mE);return 0==s.length?null:function(r){return _E(uV(r,s))}}function bE(i){return null!=i?yE(cV(i)):null}function fV(i){if(!i)return null;var s=i.filter(mE);return 0==s.length?null:function(r){return function r9(){for(var i=arguments.length,s=new Array(i),r=0;r0&&void 0!==arguments[0]?arguments[0]:void 0;this.control&&this.control.reset(r)}},{key:"hasError",value:function(r,n){return!!this.control&&this.control.hasError(r,n)}},{key:"getError",value:function(r,n){return this.control?this.control.getError(r,n):null}}]),i}(),Bl=function(i){se(r,i);var s=ue(r);function r(){var n;return R(this,r),(n=s.apply(this,arguments))._parent=null,n.name=null,n.valueAccessor=null,n}return L(r)}(pg),lo=function(i){se(r,i);var s=ue(r);function r(){return R(this,r),s.apply(this,arguments)}return L(r,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),r}(pg),pV=function(){function i(s){R(this,i),this._cd=s}return L(i,[{key:"is",value:function(r){var n,l,c;return"submitted"===r?!!(null===(n=this._cd)||void 0===n?void 0:n.submitted):!!(null===(c=null===(l=this._cd)||void 0===l?void 0:l.control)||void 0===c?void 0:c[r])}}]),i}(),pr=function(){var i=function(s){se(n,s);var r=ue(n);function n(l){return R(this,n),r.call(this,l)}return L(n)}(pV);return i.\u0275fac=function(r){return new(r||i)(z(Bl,2))},i.\u0275dir=be({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,n){2&r&&Ze("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))},features:[Re]}),i}(),Xf=function(){var i=function(s){se(n,s);var r=ue(n);function n(l){return R(this,n),r.call(this,l)}return L(n)}(pV);return i.\u0275fac=function(r){return new(r||i)(z(lo,10))},i.\u0275dir=be({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,n){2&r&&Ze("ng-untouched",n.is("untouched"))("ng-touched",n.is("touched"))("ng-pristine",n.is("pristine"))("ng-dirty",n.is("dirty"))("ng-valid",n.is("valid"))("ng-invalid",n.is("invalid"))("ng-pending",n.is("pending"))("ng-submitted",n.is("submitted"))},features:[Re]}),i}();function vg(i,s){SE(i,s),s.valueAccessor.writeValue(i.value),function yV(i,s){s.valueAccessor.registerOnChange(function(r){i._pendingValue=r,i._pendingChange=!0,i._pendingDirty=!0,"change"===i.updateOn&&v9(i,s)})}(i,s),function g9(i,s){var r=function(l,c){s.valueAccessor.writeValue(l),c&&s.viewToModelUpdate(l)};i.registerOnChange(r),s._registerOnDestroy(function(){i._unregisterOnChange(r)})}(i,s),function K$(i,s){s.valueAccessor.registerOnTouched(function(){i._pendingTouched=!0,"blur"===i.updateOn&&i._pendingChange&&v9(i,s),"submit"!==i.updateOn&&i.markAsTouched()})}(i,s),function p9(i,s){if(s.valueAccessor.setDisabledState){var r=function(l){s.valueAccessor.setDisabledState(l)};i.registerOnDisabledChange(r),s._registerOnDestroy(function(){i._unregisterOnDisabledChange(r)})}}(i,s)}function lS(i,s){var n=function(){};s.valueAccessor&&(s.valueAccessor.registerOnChange(n),s.valueAccessor.registerOnTouched(n)),cS(i,s),i&&(s._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(function(){}))}function uS(i,s){i.forEach(function(r){r.registerOnValidatorChange&&r.registerOnValidatorChange(s)})}function SE(i,s){var r=l9(i);null!==s.validator?i.setValidators(s9(r,s.validator)):"function"==typeof r&&i.setValidators([r]);var n=dV(i);null!==s.asyncValidator?i.setAsyncValidators(s9(n,s.asyncValidator)):"function"==typeof n&&i.setAsyncValidators([n]);var l=function(){return i.updateValueAndValidity()};uS(s._rawValidators,l),uS(s._rawAsyncValidators,l)}function cS(i,s){var r=!1;if(null!==i){if(null!==s.validator){var n=l9(i);if(Array.isArray(n)&&n.length>0){var l=n.filter(function(w){return w!==s.validator});l.length!==n.length&&(r=!0,i.setValidators(l))}}if(null!==s.asyncValidator){var c=dV(i);if(Array.isArray(c)&&c.length>0){var p=c.filter(function(w){return w!==s.asyncValidator});p.length!==c.length&&(r=!0,i.setAsyncValidators(p))}}}var _=function(){};return uS(s._rawValidators,_),uS(s._rawAsyncValidators,_),r}function v9(i,s){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),s.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function bV(i,s){SE(i,s)}function wV(i,s){i._syncPendingControls(),s.forEach(function(r){var n=r.control;"submit"===n.updateOn&&n._pendingChange&&(r.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function kE(i,s){var r=i.indexOf(s);r>-1&&i.splice(r,1)}var Qy="VALID",dS="INVALID",mg="PENDING",Jy="DISABLED";function hS(i){return(pS(i)?i.validators:i)||null}function xE(i){return Array.isArray(i)?bE(i):i||null}function TE(i,s){return(pS(s)?s.asyncValidators:i)||null}function MV(i){return Array.isArray(i)?yu(i):i||null}function pS(i){return null!=i&&!Array.isArray(i)&&"object"==typeof i}var kV=function(s){return s instanceof AE},eb=function(s){return s instanceof EE};function DV(i){return kV(i)?i.value:i.getRawValue()}function xV(i,s){var r=eb(i),n=i.controls;if(!(r?Object.keys(n):n).length)throw new st(1e3,"");if(!n[s])throw new st(1001,"")}function TV(i,s){eb(i),i._forEachChild(function(n,l){if(void 0===s[l])throw new st(1002,"")})}var tb=function(){function i(s,r){R(this,i),this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=function(){},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=s,this._rawAsyncValidators=r,this._composedValidatorFn=xE(this._rawValidators),this._composedAsyncValidatorFn=MV(this._rawAsyncValidators)}return L(i,[{key:"validator",get:function(){return this._composedValidatorFn},set:function(r){this._rawValidators=this._composedValidatorFn=r}},{key:"asyncValidator",get:function(){return this._composedAsyncValidatorFn},set:function(r){this._rawAsyncValidators=this._composedAsyncValidatorFn=r}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return this.status===Qy}},{key:"invalid",get:function(){return this.status===dS}},{key:"pending",get:function(){return this.status==mg}},{key:"disabled",get:function(){return this.status===Jy}},{key:"enabled",get:function(){return this.status!==Jy}},{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(r){this._rawValidators=r,this._composedValidatorFn=xE(r)}},{key:"setAsyncValidators",value:function(r){this._rawAsyncValidators=r,this._composedAsyncValidatorFn=MV(r)}},{key:"addValidators",value:function(r){this.setValidators(hV(r,this._rawValidators))}},{key:"addAsyncValidators",value:function(r){this.setAsyncValidators(hV(r,this._rawAsyncValidators))}},{key:"removeValidators",value:function(r){this.setValidators(CE(r,this._rawValidators))}},{key:"removeAsyncValidators",value:function(r){this.setAsyncValidators(CE(r,this._rawAsyncValidators))}},{key:"hasValidator",value:function(r){return hg(this._rawValidators,r)}},{key:"hasAsyncValidator",value:function(r){return hg(this._rawAsyncValidators,r)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!r.onlySelf&&this._parent.markAsTouched(r)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild(function(r){return r.markAllAsTouched()})}},{key:"markAsUntouched",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(n){n.markAsUntouched({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}},{key:"markAsDirty",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!r.onlySelf&&this._parent.markAsDirty(r)}},{key:"markAsPristine",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(n){n.markAsPristine({onlySelf:!0})}),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}},{key:"markAsPending",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status=mg,!1!==r.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!r.onlySelf&&this._parent.markAsPending(r)}},{key:"disable",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._parentMarkedDirty(r.onlySelf);this.status=Jy,this.errors=null,this._forEachChild(function(l){l.disable(Object.assign(Object.assign({},r),{onlySelf:!0}))}),this._updateValue(),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},r),{skipPristineCheck:n})),this._onDisabledChange.forEach(function(l){return l(!0)})}},{key:"enable",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this._parentMarkedDirty(r.onlySelf);this.status=Qy,this._forEachChild(function(l){l.enable(Object.assign(Object.assign({},r),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},r),{skipPristineCheck:n})),this._onDisabledChange.forEach(function(l){return l(!1)})}},{key:"_updateAncestors",value:function(r){this._parent&&!r.onlySelf&&(this._parent.updateValueAndValidity(r),r.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(r){this._parent=r}},{key:"updateValueAndValidity",value:function(){var r=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===Qy||this.status===mg)&&this._runAsyncValidator(r.emitEvent)),!1!==r.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!r.onlySelf&&this._parent.updateValueAndValidity(r)}},{key:"_updateTreeValidity",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild(function(n){return n._updateTreeValidity(r)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?Jy:Qy}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(r){var n=this;if(this.asyncValidator){this.status=mg,this._hasOwnPendingAsyncValidator=!0;var l=$y(this.asyncValidator(this));this._asyncValidationSubscription=l.subscribe(function(c){n._hasOwnPendingAsyncValidator=!1,n.setErrors(c,{emitEvent:r})})}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}},{key:"setErrors",value:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=r,this._updateControlsErrors(!1!==n.emitEvent)}},{key:"get",value:function(r){return function _9(i,s,r){if(null==s||(Array.isArray(s)||(s=s.split(r)),Array.isArray(s)&&0===s.length))return null;var n=i;return s.forEach(function(l){n=eb(n)?n.controls.hasOwnProperty(l)?n.controls[l]:null:function(s){return s instanceof AV}(n)&&n.at(l)||null}),n}(this,r,".")}},{key:"getError",value:function(r,n){var l=n?this.get(n):this;return l&&l.errors?l.errors[r]:null}},{key:"hasError",value:function(r,n){return!!this.getError(r,n)}},{key:"root",get:function(){for(var r=this;r._parent;)r=r._parent;return r}},{key:"_updateControlsErrors",value:function(r){this.status=this._calculateStatus(),r&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(r)}},{key:"_initObservables",value:function(){this.valueChanges=new ye,this.statusChanges=new ye}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?Jy:this.errors?dS:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(mg)?mg:this._anyControlsHaveStatus(dS)?dS:Qy}},{key:"_anyControlsHaveStatus",value:function(r){return this._anyControls(function(n){return n.status===r})}},{key:"_anyControlsDirty",value:function(){return this._anyControls(function(r){return r.dirty})}},{key:"_anyControlsTouched",value:function(){return this._anyControls(function(r){return r.touched})}},{key:"_updatePristine",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!r.onlySelf&&this._parent._updatePristine(r)}},{key:"_updateTouched",value:function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!r.onlySelf&&this._parent._updateTouched(r)}},{key:"_isBoxedValue",value:function(r){return"object"==typeof r&&null!==r&&2===Object.keys(r).length&&"value"in r&&"disabled"in r}},{key:"_registerOnCollectionChange",value:function(r){this._onCollectionChange=r}},{key:"_setUpdateStrategy",value:function(r){pS(r)&&null!=r.updateOn&&(this._updateOn=r.updateOn)}},{key:"_parentMarkedDirty",value:function(r){return!r&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}]),i}(),AE=function(i){se(r,i);var s=ue(r);function r(){var n,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,c=arguments.length>1?arguments[1]:void 0,p=arguments.length>2?arguments[2]:void 0;return R(this,r),(n=s.call(this,hS(c),TE(p,c))).defaultValue=null,n._onChange=[],n._pendingChange=!1,n._applyFormState(l),n._setUpdateStrategy(c),n._initObservables(),n.updateValueAndValidity({onlySelf:!0,emitEvent:!!n.asyncValidator}),pS(c)&&c.initialValueIsDefault&&(n.defaultValue=n._isBoxedValue(l)?l.value:l),n}return L(r,[{key:"setValue",value:function(l){var c=this,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=l,this._onChange.length&&!1!==p.emitModelToViewChange&&this._onChange.forEach(function(_){return _(c.value,!1!==p.emitViewToModelChange)}),this.updateValueAndValidity(p)}},{key:"patchValue",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(l,c)}},{key:"reset",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.defaultValue,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(l),this.markAsPristine(c),this.markAsUntouched(c),this.setValue(this.value,c),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(l){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(l){this._onChange.push(l)}},{key:"_unregisterOnChange",value:function(l){kE(this._onChange,l)}},{key:"registerOnDisabledChange",value:function(l){this._onDisabledChange.push(l)}},{key:"_unregisterOnDisabledChange",value:function(l){kE(this._onDisabledChange,l)}},{key:"_forEachChild",value:function(l){}},{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(l){this._isBoxedValue(l)?(this.value=this._pendingValue=l.value,l.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=l}}]),r}(tb),EE=function(i){se(r,i);var s=ue(r);function r(n,l,c){var p;return R(this,r),(p=s.call(this,hS(l),TE(c,l))).controls=n,p._initObservables(),p._setUpdateStrategy(l),p._setUpControls(),p.updateValueAndValidity({onlySelf:!0,emitEvent:!!p.asyncValidator}),p}return L(r,[{key:"registerControl",value:function(l,c){return this.controls[l]?this.controls[l]:(this.controls[l]=c,c.setParent(this),c._registerOnCollectionChange(this._onCollectionChange),c)}},{key:"addControl",value:function(l,c){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.registerControl(l,c),this.updateValueAndValidity({emitEvent:p.emitEvent}),this._onCollectionChange()}},{key:"removeControl",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[l]&&this.controls[l]._registerOnCollectionChange(function(){}),delete this.controls[l],this.updateValueAndValidity({emitEvent:c.emitEvent}),this._onCollectionChange()}},{key:"setControl",value:function(l,c){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[l]&&this.controls[l]._registerOnCollectionChange(function(){}),delete this.controls[l],c&&this.registerControl(l,c),this.updateValueAndValidity({emitEvent:p.emitEvent}),this._onCollectionChange()}},{key:"contains",value:function(l){return this.controls.hasOwnProperty(l)&&this.controls[l].enabled}},{key:"setValue",value:function(l){var c=this,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};TV(this,l),Object.keys(l).forEach(function(_){xV(c,_),c.controls[_].setValue(l[_],{onlySelf:!0,emitEvent:p.emitEvent})}),this.updateValueAndValidity(p)}},{key:"patchValue",value:function(l){var c=this,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=l&&(Object.keys(l).forEach(function(_){c.controls[_]&&c.controls[_].patchValue(l[_],{onlySelf:!0,emitEvent:p.emitEvent})}),this.updateValueAndValidity(p))}},{key:"reset",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(p,_){p.reset(l[_],{onlySelf:!0,emitEvent:c.emitEvent})}),this._updatePristine(c),this._updateTouched(c),this.updateValueAndValidity(c)}},{key:"getRawValue",value:function(){return this._reduceChildren({},function(l,c,p){return l[p]=DV(c),l})}},{key:"_syncPendingControls",value:function(){var l=this._reduceChildren(!1,function(c,p){return!!p._syncPendingControls()||c});return l&&this.updateValueAndValidity({onlySelf:!0}),l}},{key:"_forEachChild",value:function(l){var c=this;Object.keys(this.controls).forEach(function(p){var _=c.controls[p];_&&l(_,p)})}},{key:"_setUpControls",value:function(){var l=this;this._forEachChild(function(c){c.setParent(l),c._registerOnCollectionChange(l._onCollectionChange)})}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(l){for(var c=0,p=Object.keys(this.controls);c0||this.disabled}}]),r}(tb),AV=function(i){se(r,i);var s=ue(r);function r(n,l,c){var p;return R(this,r),(p=s.call(this,hS(l),TE(c,l))).controls=n,p._initObservables(),p._setUpdateStrategy(l),p._setUpControls(),p.updateValueAndValidity({onlySelf:!0,emitEvent:!!p.asyncValidator}),p}return L(r,[{key:"at",value:function(l){return this.controls[l]}},{key:"push",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls.push(l),this._registerControl(l),this.updateValueAndValidity({emitEvent:c.emitEvent}),this._onCollectionChange()}},{key:"insert",value:function(l,c){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls.splice(l,0,c),this._registerControl(c),this.updateValueAndValidity({emitEvent:p.emitEvent})}},{key:"removeAt",value:function(l){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.controls[l]&&this.controls[l]._registerOnCollectionChange(function(){}),this.controls.splice(l,1),this.updateValueAndValidity({emitEvent:c.emitEvent})}},{key:"setControl",value:function(l,c){var p=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.controls[l]&&this.controls[l]._registerOnCollectionChange(function(){}),this.controls.splice(l,1),c&&(this.controls.splice(l,0,c),this._registerControl(c)),this.updateValueAndValidity({emitEvent:p.emitEvent}),this._onCollectionChange()}},{key:"length",get:function(){return this.controls.length}},{key:"setValue",value:function(l){var c=this,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};TV(this,l),l.forEach(function(_,w){xV(c,w),c.at(w).setValue(_,{onlySelf:!0,emitEvent:p.emitEvent})}),this.updateValueAndValidity(p)}},{key:"patchValue",value:function(l){var c=this,p=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};null!=l&&(l.forEach(function(_,w){c.at(w)&&c.at(w).patchValue(_,{onlySelf:!0,emitEvent:p.emitEvent})}),this.updateValueAndValidity(p))}},{key:"reset",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild(function(p,_){p.reset(l[_],{onlySelf:!0,emitEvent:c.emitEvent})}),this._updatePristine(c),this._updateTouched(c),this.updateValueAndValidity(c)}},{key:"getRawValue",value:function(){return this.controls.map(function(l){return DV(l)})}},{key:"clear",value:function(){var l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.controls.length<1||(this._forEachChild(function(c){return c._registerOnCollectionChange(function(){})}),this.controls.splice(0),this.updateValueAndValidity({emitEvent:l.emitEvent}))}},{key:"_syncPendingControls",value:function(){var l=this.controls.reduce(function(c,p){return!!p._syncPendingControls()||c},!1);return l&&this.updateValueAndValidity({onlySelf:!0}),l}},{key:"_forEachChild",value:function(l){this.controls.forEach(function(c,p){l(c,p)})}},{key:"_updateValue",value:function(){var l=this;this.value=this.controls.filter(function(c){return c.enabled||l.disabled}).map(function(c){return c.value})}},{key:"_anyControls",value:function(l){return this.controls.some(function(c){return c.enabled&&l(c)})}},{key:"_setUpControls",value:function(){var l=this;this._forEachChild(function(c){return l._registerControl(c)})}},{key:"_allControlsDisabled",value:function(){var c,l=qt(this.controls);try{for(l.s();!(c=l.n()).done;)if(c.value.enabled)return!1}catch(_){l.e(_)}finally{l.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(l){l.setParent(this),l._registerOnCollectionChange(this._onCollectionChange)}}]),r}(tb),EV={provide:lo,useExisting:En(function(){return Sc})},tp=function(){return Promise.resolve(null)}(),Sc=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c){var p;return R(this,n),(p=r.call(this)).submitted=!1,p._directives=new Set,p.ngSubmit=new ye,p.form=new EE({},bE(l),yu(c)),p}return L(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(c){var p=this;tp.then(function(){var _=p._findContainer(c.path);c.control=_.registerControl(c.name,c.control),vg(c.control,c),c.control.updateValueAndValidity({emitEvent:!1}),p._directives.add(c)})}},{key:"getControl",value:function(c){return this.form.get(c.path)}},{key:"removeControl",value:function(c){var p=this;tp.then(function(){var _=p._findContainer(c.path);_&&_.removeControl(c.name),p._directives.delete(c)})}},{key:"addFormGroup",value:function(c){var p=this;tp.then(function(){var _=p._findContainer(c.path),w=new EE({});bV(w,c),_.registerControl(c.name,w),w.updateValueAndValidity({emitEvent:!1})})}},{key:"removeFormGroup",value:function(c){var p=this;tp.then(function(){var _=p._findContainer(c.path);_&&_.removeControl(c.name)})}},{key:"getFormGroup",value:function(c){return this.form.get(c.path)}},{key:"updateModel",value:function(c,p){var _=this;tp.then(function(){_.form.get(c.path).setValue(p)})}},{key:"setValue",value:function(c){this.control.setValue(c)}},{key:"onSubmit",value:function(c){return this.submitted=!0,wV(this.form,this._directives),this.ngSubmit.emit(c),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(c),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(c){return c.pop(),c.length?this.form.get(c):this.form}}]),n}(lo);return i.\u0275fac=function(r){return new(r||i)(z(Gi,10),z(Zf,10))},i.\u0275dir=be({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,n){1&r&&ne("submit",function(c){return n.onSubmit(c)})("reset",function(){return n.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ft([EV]),Re]}),i}(),eQ={provide:Bl,useExisting:En(function(){return ar})},IV=function(){return Promise.resolve(null)}(),ar=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w){var M;return R(this,n),(M=r.call(this))._changeDetectorRef=w,M.control=new AE,M._registered=!1,M.update=new ye,M._parent=l,M._setValidators(c),M._setAsyncValidators(p),M.valueAccessor=function gg(i,s){if(!s)return null;Array.isArray(s);var r=void 0,n=void 0,l=void 0;return s.forEach(function(c){c.constructor===yi?r=c:function m9(i){return Object.getPrototypeOf(i.constructor)===Qh}(c)?n=c:l=c}),l||n||r||null}(an(M),_),M}return L(n,[{key:"ngOnChanges",value:function(c){if(this._checkForErrors(),!this._registered||"name"in c){if(this._registered&&(this._checkName(),this.formDirective)){var p=c.name.previousValue;this.formDirective.removeControl({name:p,path:this._getPath(p)})}this._setUpControl()}"isDisabled"in c&&this._updateDisabled(c),function ME(i,s){if(!i.hasOwnProperty("model"))return!1;var r=i.model;return!!r.isFirstChange()||!Object.is(s,r.currentValue)}(c,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._getPath(this.name)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"viewToModelUpdate",value:function(c){this.viewModel=c,this.update.emit(c)}},{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(){vg(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(c){var p=this;IV.then(function(){var _;p.control.setValue(c,{emitViewToModelChange:!1}),null===(_=p._changeDetectorRef)||void 0===_||_.markForCheck()})}},{key:"_updateDisabled",value:function(c){var p=this,_=c.isDisabled.currentValue,w=""===_||_&&"false"!==_;IV.then(function(){var M;w&&!p.control.disabled?p.control.disable():!w&&p.control.disabled&&p.control.enable(),null===(M=p._changeDetectorRef)||void 0===M||M.markForCheck()})}},{key:"_getPath",value:function(c){return this._parent?function sS(i,s){return[].concat(yt(s.path),[i])}(c,this._parent):[c]}}]),n}(Bl);return i.\u0275fac=function(r){return new(r||i)(z(lo,9),z(Gi,10),z(Zf,10),z(Ga,10),z(hn,8))},i.\u0275dir=be({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ft([eQ]),Re,xn]}),i}(),nb=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=be({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),i}(),w9={provide:Ga,useExisting:En(function(){return Kf}),multi:!0},Kf=function(){var i=function(s){se(n,s);var r=ue(n);function n(){return R(this,n),r.apply(this,arguments)}return L(n,[{key:"writeValue",value:function(c){this.setProperty("value",null==c?"":c)}},{key:"registerOnChange",value:function(c){this.onChange=function(p){c(""==p?null:parseFloat(p))}}}]),n}(Qh);return i.\u0275fac=function(){var s;return function(n){return(s||(s=cn(i)))(n||i)}}(),i.\u0275dir=be({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(r,n){1&r&&ne("input",function(c){return n.onChange(c.target.value)})("blur",function(){return n.onTouched()})},features:[ft([w9]),Re]}),i}(),RV=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({}),i}(),LE=new Ae("NgModelWithFormControlWarning"),k9={provide:lo,useExisting:En(function(){return $f})},$f=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c){var p;return R(this,n),(p=r.call(this)).validators=l,p.asyncValidators=c,p.submitted=!1,p._onCollectionChange=function(){return p._updateDomValue()},p.directives=[],p.form=null,p.ngSubmit=new ye,p._setValidators(l),p._setAsyncValidators(c),p}return L(n,[{key:"ngOnChanges",value:function(c){this._checkFormPresent(),c.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}},{key:"ngOnDestroy",value:function(){this.form&&(cS(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(c){var p=this.form.get(c.path);return vg(p,c),p.updateValueAndValidity({emitEvent:!1}),this.directives.push(c),p}},{key:"getControl",value:function(c){return this.form.get(c.path)}},{key:"removeControl",value:function(c){lS(c.control||null,c),kE(this.directives,c)}},{key:"addFormGroup",value:function(c){this._setUpFormContainer(c)}},{key:"removeFormGroup",value:function(c){this._cleanUpFormContainer(c)}},{key:"getFormGroup",value:function(c){return this.form.get(c.path)}},{key:"addFormArray",value:function(c){this._setUpFormContainer(c)}},{key:"removeFormArray",value:function(c){this._cleanUpFormContainer(c)}},{key:"getFormArray",value:function(c){return this.form.get(c.path)}},{key:"updateModel",value:function(c,p){this.form.get(c.path).setValue(p)}},{key:"onSubmit",value:function(c){return this.submitted=!0,wV(this.form,this.directives),this.ngSubmit.emit(c),!1}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;this.form.reset(c),this.submitted=!1}},{key:"_updateDomValue",value:function(){var c=this;this.directives.forEach(function(p){var _=p.control,w=c.form.get(p.path);_!==w&&(lS(_||null,p),kV(w)&&(vg(w,p),p.control=w))}),this.form._updateTreeValidity({emitEvent:!1})}},{key:"_setUpFormContainer",value:function(c){var p=this.form.get(c.path);bV(p,c),p.updateValueAndValidity({emitEvent:!1})}},{key:"_cleanUpFormContainer",value:function(c){if(this.form){var p=this.form.get(c.path);if(p){var _=function CV(i,s){return cS(i,s)}(p,c);_&&p.updateValueAndValidity({emitEvent:!1})}}}},{key:"_updateRegistrations",value:function(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){})}},{key:"_updateValidators",value:function(){SE(this.form,this),this._oldForm&&cS(this._oldForm,this)}},{key:"_checkFormPresent",value:function(){}}]),n}(lo);return i.\u0275fac=function(r){return new(r||i)(z(Gi,10),z(Zf,10))},i.\u0275dir=be({type:i,selectors:[["","formGroup",""]],hostBindings:function(r,n){1&r&&ne("submit",function(c){return n.onSubmit(c)})("reset",function(){return n.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ft([k9]),Re,xn]}),i}();function GE(i){return"number"==typeof i?i:parseInt(i,10)}function P9(i){return null!=i&&!1!==i&&"false"!=="".concat(i)}var np=function(){var i=function(){function s(){R(this,s),this._validator=dg}return L(s,[{key:"ngOnChanges",value:function(n){if(this.inputName in n){var l=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(l),this._validator=this._enabled?this.createValidator(l):dg,this._onChange&&this._onChange()}}},{key:"validate",value:function(n){return this._validator(n)}},{key:"registerOnValidatorChange",value:function(n){this._onChange=n}},{key:"enabled",value:function(n){return null!=n}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=be({type:i,features:[xn]}),i}(),I9={provide:Gi,useExisting:En(function(){return Vs}),multi:!0},R9={provide:Gi,useExisting:En(function(){return ib}),multi:!0},Vs=function(){var i=function(s){se(n,s);var r=ue(n);function n(){var l;return R(this,n),(l=r.apply(this,arguments)).inputName="required",l.normalizeInput=function(c){return P9(c)},l.createValidator=function(c){return Ky},l}return L(n,[{key:"enabled",value:function(c){return c}}]),n}(np);return i.\u0275fac=function(){var s;return function(n){return(s||(s=cn(i)))(n||i)}}(),i.\u0275dir=be({type:i,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(r,n){2&r&<("required",n._enabled?"":null)},inputs:{required:"required"},features:[ft([I9]),Re]}),i}(),ib=function(){var i=function(s){se(n,s);var r=ue(n);function n(){var l;return R(this,n),(l=r.apply(this,arguments)).createValidator=function(c){return oV},l}return L(n)}(Vs);return i.\u0275fac=function(){var s;return function(n){return(s||(s=cn(i)))(n||i)}}(),i.\u0275dir=be({type:i,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(r,n){2&r&<("required",n._enabled?"":null)},features:[ft([R9]),Re]}),i}(),L9={provide:Gi,useExisting:En(function(){return gS}),multi:!0},gS=function(){var i=function(s){se(n,s);var r=ue(n);function n(){var l;return R(this,n),(l=r.apply(this,arguments)).inputName="maxlength",l.normalizeInput=function(c){return GE(c)},l.createValidator=function(c){return ns(c)},l}return L(n)}(np);return i.\u0275fac=function(){var s;return function(n){return(s||(s=cn(i)))(n||i)}}(),i.\u0275dir=be({type:i,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(r,n){2&r&<("maxlength",n._enabled?n.maxlength:null)},inputs:{maxlength:"maxlength"},features:[ft([L9]),Re]}),i}(),_S=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[RV]]}),i}(),jE=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[_S]}),i}(),KV=function(){var i=function(){function s(){R(this,s)}return L(s,null,[{key:"withConfig",value:function(n){return{ngModule:s,providers:[{provide:LE,useValue:n.warnOnNgModelWithFormControl}]}}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[_S]}),i}();function $V(i,s){1&i&&Gt(0)}var QV=["*"];function N9(i,s){}var JV=function(s){return{animationDuration:s}},B9=function(s,r){return{value:s,params:r}},V9=["tabListContainer"],H9=["tabList"],z9=["tabListInner"],e5=["nextPaginator"],G9=["previousPaginator"],U9=["tabBodyWrapper"],j9=["tabHeader"];function W9(i,s){}function Y9(i,s){1&i&&te(0,W9,0,0,"ng-template",10),2&i&&U("cdkPortalOutlet",Q().$implicit.templateLabel)}function q9(i,s){1&i&&K(0),2&i&&Ln(Q().$implicit.textLabel)}function Z9(i,s){if(1&i){var r=xe();I(0,"div",6),ne("click",function(){var w=he(r),M=w.$implicit,A=w.index,O=Q(),F=Dn(1);return O._handleClick(M,F,A)})("cdkFocusChange",function(w){var A=he(r).index;return Q()._tabFocusChanged(w,A)}),I(1,"div",7),te(2,Y9,1,1,"ng-template",8),te(3,q9,1,1,"ng-template",null,9,Ko),B()()}if(2&i){var n=s.$implicit,l=s.index,c=Dn(4),p=Q();Ze("mat-tab-label-active",p.selectedIndex===l),U("id",p._getTabLabelId(l))("ngClass",n.labelClass)("disabled",n.disabled)("matRippleDisabled",n.disabled||p.disableRipple),lt("tabIndex",p._getTabIndex(n,l))("aria-posinset",l+1)("aria-setsize",p._tabs.length)("aria-controls",p._getTabContentId(l))("aria-selected",p.selectedIndex===l)("aria-label",n.ariaLabel||null)("aria-labelledby",!n.ariaLabel&&n.ariaLabelledby?n.ariaLabelledby:null),G(2),U("ngIf",n.templateLabel)("ngIfElse",c)}}function X9(i,s){if(1&i){var r=xe();I(0,"mat-tab-body",11),ne("_onCentered",function(){return he(r),Q()._removeTabBodyWrapperHeight()})("_onCentering",function(_){return he(r),Q()._setTabBodyWrapperHeight(_)}),B()}if(2&i){var n=s.$implicit,l=s.index,c=Q();Ze("mat-tab-body-active",c.selectedIndex===l),U("id",c._getTabContentId(l))("ngClass",n.bodyClass)("content",n.content)("position",n.position)("origin",n.origin)("animationDuration",c.animationDuration),lt("tabindex",null!=c.contentTabIndex&&c.selectedIndex===l?c.contentTabIndex:null)("aria-labelledby",c._getTabLabelId(l))}}var t5=new Ae("MatInkBarPositioner",{providedIn:"root",factory:function n5(){return function(r){return{left:r?(r.offsetLeft||0)+"px":"0",width:r?(r.offsetWidth||0)+"px":"0"}}}}),r5=function(){var i=function(){function s(r,n,l,c){R(this,s),this._elementRef=r,this._ngZone=n,this._inkBarPositioner=l,this._animationMode=c}return L(s,[{key:"alignToElement",value:function(n){var l=this;this.show(),this._ngZone.onStable.pipe(gn(1)).subscribe(function(){var c=l._inkBarPositioner(n),p=l._elementRef.nativeElement;p.style.left=c.left,p.style.width=c.width})}},{key:"show",value:function(){this._elementRef.nativeElement.style.visibility="visible"}},{key:"hide",value:function(){this._elementRef.nativeElement.style.visibility="hidden"}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(tt),z(Pt),z(t5),z(mi,8))},i.\u0275dir=be({type:i,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(r,n){2&r&&Ze("_mat-animation-noopable","NoopAnimations"===n._animationMode)}}),i}(),K9=new Ae("MatTabContent"),a5=new Ae("MatTabLabel"),o5=new Ae("MAT_TAB"),rs=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p){var _;return R(this,n),(_=r.call(this,l,c))._closestTab=p,_}return L(n)}(Tj);return i.\u0275fac=function(r){return new(r||i)(z(hr),z(wr),z(o5,8))},i.\u0275dir=be({type:i,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[ft([{provide:a5,useExisting:i}]),Re]}),i}(),s5=Fl(function(){return L(function i(){R(this,i)})}()),l5=new Ae("MAT_TAB_GROUP"),Hs=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c){var p;return R(this,n),(p=r.call(this))._viewContainerRef=l,p._closestTabGroup=c,p.textLabel="",p._contentPortal=null,p._stateChanges=new Xe,p.position=null,p.origin=null,p.isActive=!1,p}return L(n,[{key:"templateLabel",get:function(){return this._templateLabel},set:function(c){this._setTemplateLabelInput(c)}},{key:"content",get:function(){return this._contentPortal}},{key:"ngOnChanges",value:function(c){(c.hasOwnProperty("textLabel")||c.hasOwnProperty("disabled"))&&this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}},{key:"ngOnInit",value:function(){this._contentPortal=new es(this._explicitContent||this._implicitContent,this._viewContainerRef)}},{key:"_setTemplateLabelInput",value:function(c){c&&c._closestTab===this&&(this._templateLabel=c)}}]),n}(s5);return i.\u0275fac=function(r){return new(r||i)(z(wr),z(l5,8))},i.\u0275cmp=ke({type:i,selectors:[["mat-tab"]],contentQueries:function(r,n,l){var c;1&r&&(Mn(l,a5,5),Mn(l,K9,7,hr)),2&r&&(Ve(c=Ge())&&(n.templateLabel=c.first),Ve(c=Ge())&&(n._explicitContent=c.first))},viewQuery:function(r,n){var l;1&r&&Rt(hr,7),2&r&&Ve(l=Ge())&&(n._implicitContent=l.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[ft([{provide:o5,useExisting:i}]),Re,xn],ngContentSelectors:QV,decls:1,vars:0,template:function(r,n){1&r&&(vi(),te(0,$V,1,0,"ng-template"))},encapsulation:2}),i}(),$9={translateTab:zi("translateTab",[Wn("center, void, left-origin-center, right-origin-center",mt({transform:"none"})),Wn("left",mt({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),Wn("right",mt({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),Yn("* => left, * => right, left => center, right => center",$n("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),Yn("void => left-origin-center",[mt({transform:"translate3d(-100%, 0, 0)"}),$n("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),Yn("void => right-origin-center",[mt({transform:"translate3d(100%, 0, 0)"}),$n("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},Q9=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_){var w;return R(this,n),(w=r.call(this,l,c,_))._host=p,w._centeringSub=Te.EMPTY,w._leavingSub=Te.EMPTY,w}return L(n,[{key:"ngOnInit",value:function(){var c=this;Ye(qe(n.prototype),"ngOnInit",this).call(this),this._centeringSub=this._host._beforeCentering.pipe(na(this._host._isCenterPosition(this._host._position))).subscribe(function(p){p&&!c.hasAttached()&&c.attach(c._host._content)}),this._leavingSub=this._host._afterLeavingCenter.subscribe(function(){c.detach()})}},{key:"ngOnDestroy",value:function(){Ye(qe(n.prototype),"ngOnDestroy",this).call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}}]),n}(pc);return i.\u0275fac=function(r){return new(r||i)(z(Wu),z(wr),z(En(function(){return WE})),z(Jt))},i.\u0275dir=be({type:i,selectors:[["","matTabBodyHost",""]],features:[Re]}),i}(),u5=function(){var i=function(){function s(r,n,l){var c=this;R(this,s),this._elementRef=r,this._dir=n,this._dirChangeSubscription=Te.EMPTY,this._translateTabComplete=new Xe,this._onCentering=new ye,this._beforeCentering=new ye,this._afterLeavingCenter=new ye,this._onCentered=new ye(!0),this.animationDuration="500ms",n&&(this._dirChangeSubscription=n.change.subscribe(function(p){c._computePositionAnimationState(p),l.markForCheck()})),this._translateTabComplete.pipe(Fy(function(p,_){return p.fromState===_.fromState&&p.toState===_.toState})).subscribe(function(p){c._isCenterPosition(p.toState)&&c._isCenterPosition(c._position)&&c._onCentered.emit(),c._isCenterPosition(p.fromState)&&!c._isCenterPosition(c._position)&&c._afterLeavingCenter.emit()})}return L(s,[{key:"position",set:function(n){this._positionIndex=n,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(n){var l=this._isCenterPosition(n.toState);this._beforeCentering.emit(l),l&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_isCenterPosition",value:function(n){return"center"==n||"left-origin-center"==n||"right-origin-center"==n}},{key:"_computePositionAnimationState",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._getLayoutDirection();this._position=this._positionIndex<0?"ltr"==n?"left":"right":this._positionIndex>0?"ltr"==n?"right":"left":"center"}},{key:"_computePositionFromOrigin",value:function(n){var l=this._getLayoutDirection();return"ltr"==l&&n<=0||"rtl"==l&&n>0?"left-origin-center":"right-origin-center"}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(tt),z(Ei,8),z(hn))},i.\u0275dir=be({type:i,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),i}(),WE=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p){return R(this,n),r.call(this,l,c,p)}return L(n)}(u5);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(Ei,8),z(hn))},i.\u0275cmp=ke({type:i,selectors:[["mat-tab-body"]],viewQuery:function(r,n){var l;1&r&&Rt(pc,5),2&r&&Ve(l=Ge())&&(n._portalHost=l.first)},hostAttrs:[1,"mat-tab-body"],features:[Re],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(r,n){1&r&&(I(0,"div",0,1),ne("@translateTab.start",function(c){return n._onTranslateTabStarted(c)})("@translateTab.done",function(c){return n._translateTabComplete.next(c)}),te(2,N9,0,0,"ng-template",2),B()),2&r&&U("@translateTab",DC(3,B9,n._position,xs(1,JV,n.animationDuration)))},directives:[Q9],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}\n'],encapsulation:2,data:{animation:[$9.translateTab]}}),i}(),c5=new Ae("MAT_TABS_CONFIG"),J9=Fl(function(){return L(function i(){R(this,i)})}()),f5=function(){var i=function(s){se(n,s);var r=ue(n);function n(l){var c;return R(this,n),(c=r.call(this)).elementRef=l,c}return L(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}(J9);return i.\u0275fac=function(r){return new(r||i)(z(tt))},i.\u0275dir=be({type:i,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(r,n){2&r&&(lt("aria-disabled",!!n.disabled),Ze("mat-tab-disabled",n.disabled))},inputs:{disabled:"disabled"},features:[Re]}),i}(),d5=Vh({passive:!0}),qE=function(){var i=function(){function s(r,n,l,c,p,_,w){var M=this;R(this,s),this._elementRef=r,this._changeDetectorRef=n,this._viewportRuler=l,this._dir=c,this._ngZone=p,this._platform=_,this._animationMode=w,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new Xe,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new Xe,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new ye,this.indexFocused=new ye,p.runOutsideAngular(function(){gu(r.nativeElement,"mouseleave").pipe(Wt(M._destroyed)).subscribe(function(){M._stopInterval()})})}return L(s,[{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(n){n=Va(n),this._selectedIndex!=n&&(this._selectedIndexChanged=!0,this._selectedIndex=n,this._keyManager&&this._keyManager.updateActiveItem(n))}},{key:"ngAfterViewInit",value:function(){var n=this;gu(this._previousPaginator.nativeElement,"touchstart",d5).pipe(Wt(this._destroyed)).subscribe(function(){n._handlePaginatorPress("before")}),gu(this._nextPaginator.nativeElement,"touchstart",d5).pipe(Wt(this._destroyed)).subscribe(function(){n._handlePaginatorPress("after")})}},{key:"ngAfterContentInit",value:function(){var n=this,l=this._dir?this._dir.change:dt("ltr"),c=this._viewportRuler.change(150),p=function(){n.updatePagination(),n._alignInkBarToSelectedTab()};this._keyManager=new bA(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe(gn(1)).subscribe(p),Rr(l,c,this._items.changes).pipe(Wt(this._destroyed)).subscribe(function(){n._ngZone.run(function(){Promise.resolve().then(function(){n._scrollDistance=Math.max(0,Math.min(n._getMaxScrollDistance(),n._scrollDistance)),p()})}),n._keyManager.withHorizontalOrientation(n._getLayoutDirection())}),this._keyManager.change.pipe(Wt(this._destroyed)).subscribe(function(_){n.indexFocused.emit(_),n._setTabFocus(_)})}},{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(n){if(!ia(n))switch(n.keyCode){case 13:case 32:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(n));break;default:this._keyManager.onKeydown(n)}}},{key:"_onContentChanges",value:function(){var n=this,l=this._elementRef.nativeElement.textContent;l!==this._currentTextContent&&(this._currentTextContent=l||"",this._ngZone.run(function(){n.updatePagination(),n._alignInkBarToSelectedTab(),n._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(n){!this._isValidIndex(n)||this.focusIndex===n||!this._keyManager||this._keyManager.setActiveItem(n)}},{key:"_isValidIndex",value:function(n){if(!this._items)return!0;var l=this._items?this._items.toArray()[n]:null;return!!l&&!l.disabled}},{key:"_setTabFocus",value:function(n){if(this._showPaginationControls&&this._scrollToLabel(n),this._items&&this._items.length){this._items.toArray()[n].focus();var l=this._tabListContainer.nativeElement,c=this._getLayoutDirection();l.scrollLeft="ltr"==c?0:l.scrollWidth-l.offsetWidth}}},{key:"_getLayoutDirection",value:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}},{key:"_updateTabScrollPosition",value:function(){if(!this.disablePagination){var n=this.scrollDistance,l="ltr"===this._getLayoutDirection()?-n:n;this._tabList.nativeElement.style.transform="translateX(".concat(Math.round(l),"px)"),(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}}},{key:"scrollDistance",get:function(){return this._scrollDistance},set:function(n){this._scrollTo(n)}},{key:"_scrollHeader",value:function(n){return this._scrollTo(this._scrollDistance+("before"==n?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}},{key:"_handlePaginatorClick",value:function(n){this._stopInterval(),this._scrollHeader(n)}},{key:"_scrollToLabel",value:function(n){if(!this.disablePagination){var l=this._items?this._items.toArray()[n]:null;if(l){var M,A,c=this._tabListContainer.nativeElement.offsetWidth,p=l.elementRef.nativeElement,_=p.offsetLeft,w=p.offsetWidth;"ltr"==this._getLayoutDirection()?A=(M=_)+w:M=(A=this._tabListInner.nativeElement.offsetWidth-_)-w;var O=this.scrollDistance,F=this.scrollDistance+c;MF&&(this.scrollDistance+=A-F+60)}}}},{key:"_checkPaginationEnabled",value:function(){if(this.disablePagination)this._showPaginationControls=!1;else{var n=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;n||(this.scrollDistance=0),n!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=n}}},{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._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}},{key:"_alignInkBarToSelectedTab",value:function(){var n=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,l=n?n.elementRef.nativeElement:null;l?this._inkBar.alignToElement(l):this._inkBar.hide()}},{key:"_stopInterval",value:function(){this._stopScrolling.next()}},{key:"_handlePaginatorPress",value:function(n,l){var c=this;l&&null!=l.button&&0!==l.button||(this._stopInterval(),qv(650,100).pipe(Wt(Rr(this._stopScrolling,this._destroyed))).subscribe(function(){var p=c._scrollHeader(n),w=p.distance;(0===w||w>=p.maxScrollDistance)&&c._stopInterval()}))}},{key:"_scrollTo",value:function(n){if(this.disablePagination)return{maxScrollDistance:0,distance:0};var l=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(l,n)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:l,distance:this._scrollDistance}}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(tt),z(hn),z(Ls),z(Ei,8),z(Pt),z(pn),z(mi,8))},i.\u0275dir=be({type:i,inputs:{disablePagination:"disablePagination"}}),i}(),yS=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w,M,A){var O;return R(this,n),(O=r.call(this,l,c,p,_,w,M,A))._disableRipple=!1,O}return L(n,[{key:"disableRipple",get:function(){return this._disableRipple},set:function(c){this._disableRipple=gt(c)}},{key:"_itemSelected",value:function(c){c.preventDefault()}}]),n}(qE);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(hn),z(Ls),z(Ei,8),z(Pt),z(pn),z(mi,8))},i.\u0275dir=be({type:i,inputs:{disableRipple:"disableRipple"},features:[Re]}),i}(),bS=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w,M,A){return R(this,n),r.call(this,l,c,p,_,w,M,A)}return L(n)}(yS);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(hn),z(Ls),z(Ei,8),z(Pt),z(pn),z(mi,8))},i.\u0275cmp=ke({type:i,selectors:[["mat-tab-header"]],contentQueries:function(r,n,l){var c;1&r&&Mn(l,f5,4),2&r&&Ve(c=Ge())&&(n._items=c)},viewQuery:function(r,n){var l;1&r&&(Rt(r5,7),Rt(V9,7),Rt(H9,7),Rt(z9,7),Rt(e5,5),Rt(G9,5)),2&r&&(Ve(l=Ge())&&(n._inkBar=l.first),Ve(l=Ge())&&(n._tabListContainer=l.first),Ve(l=Ge())&&(n._tabList=l.first),Ve(l=Ge())&&(n._tabListInner=l.first),Ve(l=Ge())&&(n._nextPaginator=l.first),Ve(l=Ge())&&(n._previousPaginator=l.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(r,n){2&r&&Ze("mat-tab-header-pagination-controls-enabled",n._showPaginationControls)("mat-tab-header-rtl","rtl"==n._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[Re],ngContentSelectors:QV,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","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"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(r,n){1&r&&(vi(),I(0,"button",0,1),ne("click",function(){return n._handlePaginatorClick("before")})("mousedown",function(c){return n._handlePaginatorPress("before",c)})("touchend",function(){return n._stopInterval()}),Se(2,"div",2),B(),I(3,"div",3,4),ne("keydown",function(c){return n._handleKeydown(c)}),I(5,"div",5,6),ne("cdkObserveContent",function(){return n._onContentChanges()}),I(7,"div",7,8),Gt(9),B(),Se(10,"mat-ink-bar"),B()(),I(11,"button",9,10),ne("mousedown",function(c){return n._handlePaginatorPress("after",c)})("click",function(){return n._handlePaginatorClick("after")})("touchend",function(){return n._stopInterval()}),Se(13,"div",2),B()),2&r&&(Ze("mat-tab-header-pagination-disabled",n._disableScrollBefore),U("matRippleDisabled",n._disableScrollBefore||n.disableRipple)("disabled",n._disableScrollBefore||null),G(5),Ze("_mat-animation-noopable","NoopAnimations"===n._animationMode),G(6),Ze("mat-tab-header-pagination-disabled",n._disableScrollAfter),U("matRippleDisabled",n._disableScrollAfter||n.disableRipple)("disabled",n._disableScrollAfter||null))},directives:[Nl,p1,r5],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-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;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.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;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}),i}(),h5=0,Jf=L(function i(){R(this,i)}),tY=yc(bc(function(){return L(function i(s){R(this,i),this._elementRef=s})}()),"primary"),nY=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_){var w,M;return R(this,n),(w=r.call(this,l))._changeDetectorRef=c,w._animationMode=_,w._tabs=new no,w._indexToSelect=0,w._lastFocusedTabIndex=null,w._tabBodyWrapperHeight=0,w._tabsSubscription=Te.EMPTY,w._tabLabelSubscription=Te.EMPTY,w._selectedIndex=null,w.headerPosition="above",w.selectedIndexChange=new ye,w.focusChange=new ye,w.animationDone=new ye,w.selectedTabChange=new ye(!0),w._groupId=h5++,w.animationDuration=p&&p.animationDuration?p.animationDuration:"500ms",w.disablePagination=!(!p||null==p.disablePagination)&&p.disablePagination,w.dynamicHeight=!(!p||null==p.dynamicHeight)&&p.dynamicHeight,w.contentTabIndex=null!==(M=null==p?void 0:p.contentTabIndex)&&void 0!==M?M:null,w}return L(n,[{key:"dynamicHeight",get:function(){return this._dynamicHeight},set:function(c){this._dynamicHeight=gt(c)}},{key:"selectedIndex",get:function(){return this._selectedIndex},set:function(c){this._indexToSelect=Va(c,null)}},{key:"animationDuration",get:function(){return this._animationDuration},set:function(c){this._animationDuration=/^\d+$/.test(c+"")?c+"ms":c}},{key:"contentTabIndex",get:function(){return this._contentTabIndex},set:function(c){this._contentTabIndex=Va(c,null)}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(c){var p=this._elementRef.nativeElement;p.classList.remove("mat-background-".concat(this.backgroundColor)),c&&p.classList.add("mat-background-".concat(c)),this._backgroundColor=c}},{key:"ngAfterContentChecked",value:function(){var c=this,p=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=p){var _=null==this._selectedIndex;if(!_){this.selectedTabChange.emit(this._createChangeEvent(p));var w=this._tabBodyWrapper.nativeElement;w.style.minHeight=w.clientHeight+"px"}Promise.resolve().then(function(){c._tabs.forEach(function(M,A){return M.isActive=A===p}),_||(c.selectedIndexChange.emit(p),c._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach(function(M,A){M.position=A-p,null!=c._selectedIndex&&0==M.position&&!M.origin&&(M.origin=p-c._selectedIndex)}),this._selectedIndex!==p&&(this._selectedIndex=p,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}},{key:"ngAfterContentInit",value:function(){var c=this;this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(function(){var p=c._clampTabIndex(c._indexToSelect);if(p===c._selectedIndex){for(var w,_=c._tabs.toArray(),M=0;M<_.length;M++)if(_[M].isActive){c._indexToSelect=c._selectedIndex=M,c._lastFocusedTabIndex=null,w=_[M];break}!w&&_[p]&&Promise.resolve().then(function(){_[p].isActive=!0,c.selectedTabChange.emit(c._createChangeEvent(p))})}c._changeDetectorRef.markForCheck()})}},{key:"_subscribeToAllTabChanges",value:function(){var c=this;this._allTabs.changes.pipe(na(this._allTabs)).subscribe(function(p){c._tabs.reset(p.filter(function(_){return _._closestTabGroup===c||!_._closestTabGroup})),c._tabs.notifyOnChanges()})}},{key:"ngOnDestroy",value:function(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}},{key:"realignInkBar",value:function(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}},{key:"updatePagination",value:function(){this._tabHeader&&this._tabHeader.updatePagination()}},{key:"focusTab",value:function(c){var p=this._tabHeader;p&&(p.focusIndex=c)}},{key:"_focusChanged",value:function(c){this._lastFocusedTabIndex=c,this.focusChange.emit(this._createChangeEvent(c))}},{key:"_createChangeEvent",value:function(c){var p=new Jf;return p.index=c,this._tabs&&this._tabs.length&&(p.tab=this._tabs.toArray()[c]),p}},{key:"_subscribeToTabLabels",value:function(){var c=this;this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=Rr.apply(void 0,yt(this._tabs.map(function(p){return p._stateChanges}))).subscribe(function(){return c._changeDetectorRef.markForCheck()})}},{key:"_clampTabIndex",value:function(c){return Math.min(this._tabs.length-1,Math.max(c||0,0))}},{key:"_getTabLabelId",value:function(c){return"mat-tab-label-".concat(this._groupId,"-").concat(c)}},{key:"_getTabContentId",value:function(c){return"mat-tab-content-".concat(this._groupId,"-").concat(c)}},{key:"_setTabBodyWrapperHeight",value:function(c){if(this._dynamicHeight&&this._tabBodyWrapperHeight){var p=this._tabBodyWrapper.nativeElement;p.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(p.style.height=c+"px")}}},{key:"_removeTabBodyWrapperHeight",value:function(){var c=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=c.clientHeight,c.style.height="",this.animationDone.emit()}},{key:"_handleClick",value:function(c,p,_){c.disabled||(this.selectedIndex=p.focusIndex=_)}},{key:"_getTabIndex",value:function(c,p){var _;return c.disabled?null:p===(null!==(_=this._lastFocusedTabIndex)&&void 0!==_?_:this.selectedIndex)?0:-1}},{key:"_tabFocusChanged",value:function(c,p){c&&"mouse"!==c&&"touch"!==c&&(this._tabHeader.focusIndex=p)}}]),n}(tY);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(hn),z(c5,8),z(mi,8))},i.\u0275dir=be({type:i,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[Re]}),i}(),Hl=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_){return R(this,n),r.call(this,l,c,p,_)}return L(n)}(nY);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(hn),z(c5,8),z(mi,8))},i.\u0275cmp=ke({type:i,selectors:[["mat-tab-group"]],contentQueries:function(r,n,l){var c;1&r&&Mn(l,Hs,5),2&r&&Ve(c=Ge())&&(n._allTabs=c)},viewQuery:function(r,n){var l;1&r&&(Rt(U9,5),Rt(j9,5)),2&r&&(Ve(l=Ge())&&(n._tabBodyWrapper=l.first),Ve(l=Ge())&&(n._tabHeader=l.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(r,n){2&r&&Ze("mat-tab-group-dynamic-height",n.dynamicHeight)("mat-tab-group-inverted-header","below"===n.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[ft([{provide:l5,useExisting:i}]),Re],decls:6,vars:7,consts:[[3,"selectedIndex","disableRipple","disablePagination","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label mat-focus-indicator","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(r,n){1&r&&(I(0,"mat-tab-header",0,1),ne("indexFocused",function(c){return n._focusChanged(c)})("selectFocusedIndex",function(c){return n.selectedIndex=c}),te(2,Z9,5,15,"div",2),B(),I(3,"div",3,4),te(5,X9,1,10,"mat-tab-body",5),B()),2&r&&(U("selectedIndex",n.selectedIndex||0)("disableRipple",n.disableRipple)("disablePagination",n.disablePagination),G(2),U("ngForOf",n._tabs),G(1),Ze("_mat-animation-noopable","NoopAnimations"===n._animationMode),G(2),U("ngForOf",n._tabs))},directives:[bS,WE,ir,f5,Nl,P3,As,en,pc],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;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}),i}(),v5=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[io,vn,Kv,Cc,Ny,xA],vn]}),i}();function XE(i,s){if(1&i){var r=xe();I(0,"uds-field-text",2),ne("changed",function(c){return he(r),Q().changed.emit(c)}),B()}2&i&&U("field",Q().field)}function KE(i,s){if(1&i){var r=xe();I(0,"uds-field-autocomplete",2),ne("changed",function(c){return he(r),Q().changed.emit(c)}),B()}2&i&&U("field",Q().field)}function iY(i,s){if(1&i){var r=xe();I(0,"uds-field-textbox",2),ne("changed",function(c){return he(r),Q().changed.emit(c)}),B()}2&i&&U("field",Q().field)}function $E(i,s){if(1&i){var r=xe();I(0,"uds-field-numeric",2),ne("changed",function(c){return he(r),Q().changed.emit(c)}),B()}2&i&&U("field",Q().field)}function g5(i,s){if(1&i){var r=xe();I(0,"uds-field-password",2),ne("changed",function(c){return he(r),Q().changed.emit(c)}),B()}2&i&&U("field",Q().field)}function aY(i,s){if(1&i){var r=xe();I(0,"uds-field-hidden",2),ne("changed",function(c){return he(r),Q().changed.emit(c)}),B()}2&i&&U("field",Q().field)}function oY(i,s){if(1&i){var r=xe();I(0,"uds-field-choice",2),ne("changed",function(c){return he(r),Q().changed.emit(c)}),B()}2&i&&U("field",Q().field)}function sY(i,s){if(1&i){var r=xe();I(0,"uds-field-multichoice",2),ne("changed",function(c){return he(r),Q().changed.emit(c)}),B()}2&i&&U("field",Q().field)}function lY(i,s){if(1&i){var r=xe();I(0,"uds-field-editlist",2),ne("changed",function(c){return he(r),Q().changed.emit(c)}),B()}2&i&&U("field",Q().field)}function uY(i,s){if(1&i){var r=xe();I(0,"uds-field-checkbox",2),ne("changed",function(c){return he(r),Q().changed.emit(c)}),B()}2&i&&U("field",Q().field)}function cY(i,s){if(1&i){var r=xe();I(0,"uds-field-imgchoice",2),ne("changed",function(c){return he(r),Q().changed.emit(c)}),B()}2&i&&U("field",Q().field)}function SS(i,s){if(1&i){var r=xe();I(0,"uds-field-date",2),ne("changed",function(c){return he(r),Q().changed.emit(c)}),B()}2&i&&U("field",Q().field)}function fY(i,s){if(1&i){var r=xe();I(0,"uds-field-tags",2),ne("changed",function(c){return he(r),Q().changed.emit(c)}),B()}2&i&&U("field",Q().field)}var ab=function(){var i=function(){function s(){R(this,s),this.changed=new ye,this.udsGuiFieldType=za}return L(s,[{key:"ngOnInit",value:function(){}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=ke({type:i,selectors:[["uds-field"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:14,vars:15,consts:[["matTooltipShowDelay","1000",1,"field",3,"ngSwitch","matTooltip"],[3,"field","changed",4,"ngSwitchCase"],[3,"field","changed"]],template:function(r,n){1&r&&(I(0,"div",0),te(1,XE,1,1,"uds-field-text",1),te(2,KE,1,1,"uds-field-autocomplete",1),te(3,iY,1,1,"uds-field-textbox",1),te(4,$E,1,1,"uds-field-numeric",1),te(5,g5,1,1,"uds-field-password",1),te(6,aY,1,1,"uds-field-hidden",1),te(7,oY,1,1,"uds-field-choice",1),te(8,sY,1,1,"uds-field-multichoice",1),te(9,lY,1,1,"uds-field-editlist",1),te(10,uY,1,1,"uds-field-checkbox",1),te(11,cY,1,1,"uds-field-imgchoice",1),te(12,SS,1,1,"uds-field-date",1),te(13,fY,1,1,"uds-field-tags",1),B()),2&r&&(U("ngSwitch",n.field.gui.type)("matTooltip",n.field.gui.tooltip),G(1),U("ngSwitchCase",n.udsGuiFieldType.TEXT),G(1),U("ngSwitchCase",n.udsGuiFieldType.TEXT_AUTOCOMPLETE),G(1),U("ngSwitchCase",n.udsGuiFieldType.TEXTBOX),G(1),U("ngSwitchCase",n.udsGuiFieldType.NUMERIC),G(1),U("ngSwitchCase",n.udsGuiFieldType.PASSWORD),G(1),U("ngSwitchCase",n.udsGuiFieldType.HIDDEN),G(1),U("ngSwitchCase",n.udsGuiFieldType.CHOICE),G(1),U("ngSwitchCase",n.udsGuiFieldType.MULTI_CHOICE),G(1),U("ngSwitchCase",n.udsGuiFieldType.EDITLIST),G(1),U("ngSwitchCase",n.udsGuiFieldType.CHECKBOX),G(1),U("ngSwitchCase",n.udsGuiFieldType.IMAGECHOICE),G(1),U("ngSwitchCase",n.udsGuiFieldType.DATE),G(1),U("ngSwitchCase",n.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}"]}),i}();function m5(i,s){1&i&&K(0),2&i&&Le(" ",Q().$implicit," ")}function dY(i,s){if(1&i){var r=xe();I(0,"uds-field",7),ne("changed",function(c){return he(r),Q(3).changed.emit(c)}),B()}2&i&&U("field",s.$implicit)}function QE(i,s){if(1&i&&(I(0,"mat-tab"),te(1,m5,1,1,"ng-template",4),I(2,"div",5),te(3,dY,1,1,"uds-field",6),B()()),2&i){var r=s.$implicit,n=Q(2);G(3),U("ngForOf",n.fieldsByTab[r])}}function hY(i,s){if(1&i&&(I(0,"mat-tab-group",2),te(1,QE,4,1,"mat-tab",3),B()),2&i){var r=Q();U("disableRipple",!0)("@.disabled",!0),G(1),U("ngForOf",r.tabs)}}function pY(i,s){if(1&i){var r=xe();I(0,"div")(1,"uds-field",7),ne("changed",function(c){return he(r),Q(2).changed.emit(c)}),B()()}if(2&i){var n=s.$implicit;G(1),U("field",n)}}function vY(i,s){1&i&&te(0,pY,2,1,"div",3),2&i&&U("ngForOf",Q().fields)}var gY=django.gettext("Main"),mY=function(){var i=function(){function s(){R(this,s),this.changed=new ye}return L(s,[{key:"ngOnInit",value:function(){var n=this;this.tabs=new Array,this.fieldsByTab={},this.fields.forEach(function(l){var c=void 0===l.gui.tab?gY:l.gui.tab;n.tabs.includes(c)||(n.tabs.push(c),n.fieldsByTab[c]=new Array),n.fieldsByTab[c].push(l)})}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=ke({type:i,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"]],template:function(r,n){if(1&r&&(te(0,hY,2,3,"mat-tab-group",0),te(1,vY,1,1,"ng-template",null,1,Ko)),2&r){var l=Dn(2);U("ngIf",n.tabs.length>1)("ngIfElse",l)}},directives:[en,Hl,ir,Hs,rs,ab],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}"]}),i}();function _Y(i,s){if(1&i){var r=xe();I(0,"button",10),ne("click",function(){return he(r),Q().customButtonClicked()}),K(1),B()}if(2&i){var n=Q();G(1),Ln(n.data.customButton)}}var ap,MS=function(){var i=function(){function s(r,n){R(this,s),this.dialogRef=r,this.data=n,this.onEvent=new ye(!0),this.saving=!1}return L(s,[{key:"ngOnInit",value:function(){this.onEvent.emit({type:"init",data:null,dialog:this.dialogRef})}},{key:"changed",value:function(n){this.onEvent.emit({type:"changed",data:n,dialog:this.dialogRef})}},{key:"getFields",value:function(){var n={},l=[];return this.data.guiFields.forEach(function(c){var p=void 0!==c.values?c.values:c.value;if(c.gui.required&&0!==p&&(!p||p instanceof Array&&0===p.length)&&l.push(c.gui.label),"number"==typeof p){var _=parseInt((c.gui.minValue||987654321).toString(),10),w=parseInt((c.gui.maxValue||987654321).toString(),10);987654321!==_&&p<_&&l.push(c.gui.label+" >= "+c.gui.minValue),987654321!==w&&p>w&&l.push(c.gui.label+" <= "+c.gui.maxValue),p=p.toString()}n[c.name]=p}),{data:n,errors:l}}},{key:"save",value:function(){var n=this.getFields();n.errors.length>0?this.data.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+n.errors.join(", ")):this.onEvent.emit({data:n.data,type:"save",dialog:this.dialogRef})}},{key:"customButtonClicked",value:function(){var n=this.getFields();this.onEvent.emit({data:n.data,type:this.data.customButton,errors:n.errors,dialog:this.dialogRef})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(Se(0,"h4",0),vf(1,"safeHtml"),I(2,"mat-dialog-content",null,1)(4,"form",2)(5,"uds-form",3),ne("changed",function(c){return n.changed(c)}),B()()(),I(6,"mat-dialog-actions")(7,"div",4)(8,"div",5),te(9,_Y,2,1,"button",6),B(),I(10,"div",7)(11,"button",8),ne("click",function(){return n.dialogRef.close()}),I(12,"uds-translate"),K(13,"Discard & close"),B()(),I(14,"button",9),ne("click",function(){return n.save()}),I(15,"uds-translate"),K(16,"Save"),B()()()()()),2&r&&(U("innerHtml",fh(1,5,n.data.title),Xi),G(5),U("fields",n.data.guiFields),G(4),U("ngIf",void 0!==n.data.customButton),G(2),U("disabled",n.saving),G(3),U("disabled",n.saving))},directives:[si,jr,nb,Xf,Sc,mY,li,en,qn,As,Gn],pipes:[$B],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}"]}),i}(),yY=function(){function i(s){R(this,i),this.gui=s}return L(i,[{key:"modalForm",value:function(r,n){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,c=arguments.length>3?arguments[3]:void 0;n.sort(function(M,A){return M.gui.order>A.gui.order?1:-1});var p=null!=l;l=p?l:{},n.forEach(function(M){(!1===p||void 0===M.gui.rdonly)&&(M.gui.rdonly=!1),M.gui.type===za.TEXT&&M.gui.multiline&&(M.gui.type=za.TEXTBOX);var A=l[M.name];void 0!==A&&(A instanceof Array?(M.values=new Array,A.forEach(function(O){return M.values.push(O)})):M.value=A)});var _=window.innerWidth<800?"80%":"50%",w=this.gui.dialog.open(MS,{position:{top:"64px"},width:_,data:{title:r,guiFields:n,customButton:c,gui:this.gui},disableClose:!0});return w.componentInstance.onEvent}},{key:"typedForm",value:function(r,n,l,c,p,_,w){var M=this;w=w||{};var A=new ye,O=l?django.gettext("Test"):void 0,F={},Y={},$=function(le){Y.hasOwnProperty(le.name)&&""!==le.value&&void 0!==le.value&&M.executeCallback(r,le,F)};return w.snack||(w.snack=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss"))),r.table.rest.gui(_).subscribe(function(oe){w.snack.dismiss(),void 0!==c&&c.forEach(function(le){oe.push(le)}),oe.forEach(function(le){F[le.name]=le,void 0!==le.gui.fills&&(Y[le.name]=le.gui.fills)}),M.modalForm(n,oe,p,O).subscribe(function(le){switch(le.data&&(le.data.data_type=_),le.type){case O:if(le.errors.length>0)return void M.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+le.errors.join(", "));M.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),r.table.rest.test(_,le.data).subscribe(function(Ee){"ok"!==Ee?M.gui.snackbar.open(django.gettext("Test failed:")+" "+Ee,django.gettext("dismiss")):M.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})});break;case"changed":case"init":if(null===le.data){var ae,fe=qt(oe);try{for(fe.s();!(ae=fe.n()).done;)$(ae.value)}catch(Ee){fe.e(Ee)}finally{fe.f()}}else $(le.data.field);A.emit({on:le.data,all:F});break;case"save":if(void 0===w.save){var De=function(){M.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),le.dialog.close(),r.table.overview()};le.dialog.componentInstance.saving=!0,p?r.table.rest.save(le.data,p.id).subscribe(function(){De()},function(Ee){return le.dialog.componentInstance.saving=!1}):r.table.rest.create(le.data).subscribe(function(){De()},function(Ee){return le.dialog.componentInstance.saving=!1})}else le.dialog.close(),w.save.emit(le.data)}})}),A}},{key:"typedEditForm",value:function(r,n){var l=this,c=arguments.length>2&&void 0!==arguments[2]&&arguments[2],p=arguments.length>3?arguments[3]:void 0,_=r.table.selection.selected[0],w=_.type,M=new ye,A=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss"));return r.table.rest.get(_.id).subscribe(function(O){l.typedForm(r,n,c,p,O,w,{snack:A}).subscribe(function(F){M.emit(F)})}),M}},{key:"typedNewForm",value:function(r,n){var l=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c=arguments.length>3?arguments[3]:void 0,p=r.param?r.param.type:void 0,_=new ye;return this.typedForm(r,n,l,c,null,p).subscribe(function(w){_.emit(w)}),_}},{key:"deleteForm",value:function(r,n){var l=this,c=new Array,p=new Array;r.table.selection.selected.forEach(function(w){var M=w.name||w.friendly_name;M.changingThisBreaksApplicationSecurity&&(M=M.changingThisBreaksApplicationSecurity),c.push(M),p.push(w.id)});var _=django.gettext("Are you sure do you want to delete the following items?")+"
"+c.join(", ")+"";this.gui.yesno(n,_,!0).subscribe(function(w){if(w){var M=p.length,A=function(){l.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),r.table.overview()};p.forEach(function(O){r.table.rest.delete(O).subscribe(function(F){0==--M&&A()},function(F){0==--M&&A()})})}})}},{key:"executeCallback",value:function(r,n,l){var c=this,p=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},_=new Array;n.gui.fills.parameters.forEach(function(w){_.push(w+"="+encodeURIComponent(l[w].value))}),r.table.rest.callback(n.gui.fills.callbackName,_.join("&")).subscribe(function(w){var M=new Array;w.forEach(function(A){var O=l[A.name];void 0!==O&&(void 0!==O.gui.fills&&M.push(O),O.gui.values.length=0,A.values.forEach(function(F){return O.gui.values.push(F)}),O.value||(O.value=A.values.length>0?A.values[0].id:""))}),M.forEach(function(A){void 0===p[A.name]&&(p[A.name]=!0,c.executeCallback(r,A,l,p))})})}}]),i}(),kS="display:inline-block; background-size: SIZE SIZE; background-repeat: no-repeat; width: SIZE; height: SIZE; vertical-align: middle; margin: 4px 8px 4px 0px;",_5=function(){function i(s,r){R(this,i),this.dialog=s,this.snackbar=r,this.forms=new yY(this)}return L(i,[{key:"alert",value:function(r,n){var l=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,c=arguments.length>3?arguments[3]:void 0,p=c||(window.innerWidth<800?"80%":"40%"),_=this.dialog.open(JB,{width:p,data:{title:r,body:n,autoclose:l,type:fg.alert},disableClose:!0});return _.componentInstance.yesno}},{key:"yesno",value:function(r,n){var l=arguments.length>2&&void 0!==arguments[2]&&arguments[2],c=window.innerWidth<800?"80%":"40%",p=this.dialog.open(JB,{width:c,data:{title:r,body:n,type:fg.yesno,warnOnYes:l},disableClose:!0});return p.componentInstance.yesno}},{key:"icon",value:function(r){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"24px";return''}}]),i}(),ui=function(){return function(i){i.NUMERIC="numeric",i.ALPHANUMERIC="alphanumeric",i.DATETIME="datetime",i.DATETIMESEC="datetimesec",i.DATE="date",i.TIME="time",i.ICON="iconType",i.CALLBACK="callback",i.DICTIONARY="dict",i.IMAGE="image"}(ui||(ui={})),ui}(),vr=function(){return function(i){i[i.ALWAYS=0]="ALWAYS",i[i.SINGLE_SELECT=1]="SINGLE_SELECT",i[i.MULTI_SELECT=2]="MULTI_SELECT",i[i.ONLY_MENU=3]="ONLY_MENU",i[i.ACCELERATOR=4]="ACCELERATOR"}(vr||(vr={})),vr}(),b5="provider",C5="service",JE="pool",eP="user",DS="transport",ip="osmanager",ob="calendar",sb="poolgroup",CY={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")},is=function(){function i(s){R(this,i),this.router=s}return L(i,[{key:"gotoProvider",value:function(r){this.router.navigate(void 0!==r?["providers",r]:["providers"])}},{key:"gotoService",value:function(r,n){this.router.navigate(void 0!==n?["providers",r,"detail",n]:["providers",r,"detail"])}},{key:"gotoServicePool",value:function(r){this.router.navigate(["pools","service-pools",r])}},{key:"gotoServicePoolDetail",value:function(r){this.router.navigate(["pools","service-pools",r,"detail"])}},{key:"gotoMetapool",value:function(r){this.router.navigate(["pools","meta-pools",r])}},{key:"gotoMetapoolDetail",value:function(r){this.router.navigate(["pools","meta-pools",r,"detail"])}},{key:"gotoCalendar",value:function(r){this.router.navigate(["pools","calendars",r])}},{key:"gotoCalendarDetail",value:function(r){this.router.navigate(["pools","calendars",r,"detail"])}},{key:"gotoAccount",value:function(r){this.router.navigate(["pools","accounts",r])}},{key:"gotoAccountDetail",value:function(r){this.router.navigate(["pools","accounts",r,"detail"])}},{key:"gotoPoolGroup",value:function(r){this.router.navigate(["pools","pool-groups",r=r||""])}},{key:"gotoAuthenticator",value:function(r){this.router.navigate(["authenticators",r])}},{key:"gotoAuthenticatorDetail",value:function(r){this.router.navigate(["authenticators",r,"detail"])}},{key:"gotoUser",value:function(r,n){this.router.navigate(["authenticators",r,"detail","users",n])}},{key:"gotoGroup",value:function(r,n){this.router.navigate(["authenticators",r,"detail","groups",n])}},{key:"gotoTransport",value:function(r){this.router.navigate(["transports",r])}},{key:"gotoOSManager",value:function(r){this.router.navigate(["osmanagers",r])}},{key:"goto",value:function(r,n,l){var c=function(_){var w=n;if(l[_].split(".").forEach(function(M){return w=w[M]}),!w)throw new Error("not going :)");return w};try{switch(r){case b5:this.gotoProvider(c(0));break;case C5:this.gotoService(c(0),c(1));break;case JE:this.gotoServicePool(c(0));break;case"authenticator":this.gotoAuthenticator(c(0));break;case eP:this.gotoUser(c(0),c(1));break;case"group":this.gotoGroup(c(0),c(1));break;case DS:this.gotoTransport(c(0));break;case ip:this.gotoOSManager(c(0));break;case ob:this.gotoCalendar(c(0));break;case sb:this.gotoPoolGroup(c(0))}}catch(p){}}}],[{key:"getGotoButton",value:function(r,n,l){return{id:r,html:'link'+django.gettext("Go to")+" "+CY[r]+"",type:vr.ACCELERATOR,acceleratorProperties:[n,l]}}}]),i}(),tP=new Set,nP=function(){var i=function(){function s(r){R(this,s),this._platform=r,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):S5}return L(s,[{key:"matchMedia",value:function(n){return(this._platform.WEBKIT||this._platform.BLINK)&&function rP(i){if(!tP.has(i))try{ap||((ap=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(ap)),ap.sheet&&(ap.sheet.insertRule("@media ".concat(i," {body{ }}"),0),tP.add(i))}catch(s){console.error(s)}}(n),this._matchMedia(n)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(pn))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}();function S5(i){return{matches:"all"===i||""===i,media:i,addListener:function(){},removeListener:function(){}}}var iP=function(){var i=function(){function s(r,n){R(this,s),this._mediaMatcher=r,this._zone=n,this._queries=new Map,this._destroySubject=new Xe}return L(s,[{key:"ngOnDestroy",value:function(){this._destroySubject.next(),this._destroySubject.complete()}},{key:"isMatched",value:function(n){var l=this;return _g(Yw(n)).some(function(p){return l._registerQuery(p).mql.matches})}},{key:"observe",value:function(n){var l=this,_=ny(_g(Yw(n)).map(function(w){return l._registerQuery(w).observable}));return(_=Dh(_.pipe(gn(1)),_.pipe(_A(1),h1(0)))).pipe(on(function(w){var M={matches:!1,breakpoints:{}};return w.forEach(function(A){var O=A.matches,F=A.query;M.matches=M.matches||O,M.breakpoints[F]=O}),M}))}},{key:"_registerQuery",value:function(n){var l=this;if(this._queries.has(n))return this._queries.get(n);var c=this._mediaMatcher.matchMedia(n),_={observable:new Jn(function(w){var M=function(O){return l._zone.run(function(){return w.next(O)})};return c.addListener(M),function(){c.removeListener(M)}}).pipe(na(c),on(function(w){return{query:n,matches:w.matches}}),Wt(this._destroySubject)),mql:c};return this._queries.set(n,_),_}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(nP),ge(Pt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}();function _g(i){return i.map(function(s){return s.split(",")}).reduce(function(s,r){return s.concat(r)}).map(function(s){return s.trim()})}function k5(i,s){if(1&i){var r=xe();I(0,"div",2)(1,"button",3),ne("click",function(){return he(r),Q().action()}),K(2),B()()}if(2&i){var n=Q();G(2),Ln(n.data.action)}}function wY(i,s){}var aP=new Ae("MatSnackBarData"),xS=L(function i(){R(this,i),this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}),D5=Math.pow(2,31)-1,lb=function(){function i(s,r){var n=this;R(this,i),this._overlayRef=r,this._afterDismissed=new Xe,this._afterOpened=new Xe,this._onAction=new Xe,this._dismissedByAction=!1,this.containerInstance=s,s._onExit.subscribe(function(){return n._finishDismiss()})}return L(i,[{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(),this.dismiss()),clearTimeout(this._durationTimeoutId)}},{key:"closeWithAction",value:function(){this.dismissWithAction()}},{key:"_dismissAfter",value:function(r){var n=this;this._durationTimeoutId=setTimeout(function(){return n.dismiss()},Math.min(r,D5))}},{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}}]),i}(),oP=function(){var i=function(){function s(r,n){R(this,s),this.snackBarRef=r,this.data=n}return L(s,[{key:"action",value:function(){this.snackBarRef.dismissWithAction()}},{key:"hasAction",get:function(){return!!this.data.action}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(lb),z(aP))},i.\u0275cmp=ke({type:i,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(r,n){1&r&&(I(0,"span",0),K(1),B(),te(2,k5,3,1,"div",1)),2&r&&(G(1),Ln(n.data.message),G(1),U("ngIf",n.hasAction))},directives:[qn,en],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}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}),i}(),SY={snackBarState:zi("state",[Wn("void, hidden",mt({transform:"scale(0.8)",opacity:0})),Wn("visible",mt({transform:"scale(1)",opacity:1})),Yn("* => visible",$n("150ms cubic-bezier(0, 0, 0.2, 1)")),Yn("* => void, * => hidden",$n("75ms cubic-bezier(0.4, 0.0, 1, 1)",mt({opacity:0})))])},MY=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w){var M;return R(this,n),(M=r.call(this))._ngZone=l,M._elementRef=c,M._changeDetectorRef=p,M._platform=_,M.snackBarConfig=w,M._announceDelay=150,M._destroyed=!1,M._onAnnounce=new Xe,M._onExit=new Xe,M._onEnter=new Xe,M._animationState="void",M.attachDomPortal=function(A){return M._assertNotAttached(),M._applySnackBarClasses(),M._portalOutlet.attachDomPortal(A)},M._live="assertive"!==w.politeness||w.announcementMessage?"off"===w.politeness?"off":"polite":"assertive",M._platform.FIREFOX&&("polite"===M._live&&(M._role="status"),"assertive"===M._live&&(M._role="alert")),M}return L(n,[{key:"attachComponentPortal",value:function(c){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(c)}},{key:"attachTemplatePortal",value:function(c){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(c)}},{key:"onAnimationEnd",value:function(c){var _=c.toState;if(("void"===_&&"void"!==c.fromState||"hidden"===_)&&this._completeExit(),"visible"===_){var w=this._onEnter;this._ngZone.run(function(){w.next(),w.complete()})}}},{key:"enter",value:function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce())}},{key:"exit",value:function(){var c=this;return this._ngZone.run(function(){c._animationState="hidden",c._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(c._announceTimeoutId)}),this._onExit}},{key:"ngOnDestroy",value:function(){this._destroyed=!0,this._completeExit()}},{key:"_completeExit",value:function(){var c=this;this._ngZone.onMicrotaskEmpty.pipe(gn(1)).subscribe(function(){c._ngZone.run(function(){c._onExit.next(),c._onExit.complete()})})}},{key:"_applySnackBarClasses",value:function(){var c=this._elementRef.nativeElement,p=this.snackBarConfig.panelClass;p&&(Array.isArray(p)?p.forEach(function(_){return c.classList.add(_)}):c.classList.add(p)),"center"===this.snackBarConfig.horizontalPosition&&c.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&c.classList.add("mat-snack-bar-top")}},{key:"_assertNotAttached",value:function(){this._portalOutlet.hasAttached()}},{key:"_screenReaderAnnounce",value:function(){var c=this;this._announceTimeoutId||this._ngZone.runOutsideAngular(function(){c._announceTimeoutId=setTimeout(function(){var p=c._elementRef.nativeElement.querySelector("[aria-hidden]"),_=c._elementRef.nativeElement.querySelector("[aria-live]");if(p&&_){var w=null;c._platform.isBrowser&&document.activeElement instanceof HTMLElement&&p.contains(document.activeElement)&&(w=document.activeElement),p.removeAttribute("aria-hidden"),_.appendChild(p),null==w||w.focus(),c._onAnnounce.next(),c._onAnnounce.complete()}},c._announceDelay)})}}]),n}(Ty);return i.\u0275fac=function(r){return new(r||i)(z(Pt),z(tt),z(hn),z(pn),z(xS))},i.\u0275cmp=ke({type:i,selectors:[["snack-bar-container"]],viewQuery:function(r,n){var l;1&r&&Rt(pc,7),2&r&&Ve(l=Ge())&&(n._portalOutlet=l.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(r,n){1&r&&cv("@state.done",function(c){return n.onAnimationEnd(c)}),2&r&&pv("@state",n._animationState)},features:[Re],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(r,n){1&r&&(I(0,"div",0),te(1,wY,0,0,"ng-template",1),B(),Se(2,"div")),2&r&&(G(2),lt("aria-live",n._live)("role",n._role))},directives:[pc],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:[SY.snackBarState]}}),i}(),x5=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[Nf,Kv,io,tS,vn],vn]}),i}(),T5=new Ae("mat-snack-bar-default-options",{providedIn:"root",factory:function kY(){return new xS}}),DY=function(){var i=function(){function s(r,n,l,c,p,_){R(this,s),this._overlay=r,this._live=n,this._injector=l,this._breakpointObserver=c,this._parentSnackBar=p,this._defaultConfig=_,this._snackBarRefAtThisLevel=null}return L(s,[{key:"_openedSnackBarRef",get:function(){var n=this._parentSnackBar;return n?n._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(n){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=n:this._snackBarRefAtThisLevel=n}},{key:"openFromComponent",value:function(n,l){return this._attach(n,l)}},{key:"openFromTemplate",value:function(n,l){return this._attach(n,l)}},{key:"open",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",c=arguments.length>2?arguments[2]:void 0,p=Object.assign(Object.assign({},this._defaultConfig),c);return p.data={message:n,action:l},p.announcementMessage===n&&(p.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,p)}},{key:"dismiss",value:function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}},{key:"ngOnDestroy",value:function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}},{key:"_attachSnackBarContainer",value:function(n,l){var p=kr.create({parent:l&&l.viewContainerRef&&l.viewContainerRef.injector||this._injector,providers:[{provide:xS,useValue:l}]}),_=new Rf(this.snackBarContainerComponent,l.viewContainerRef,p),w=n.attach(_);return w.instance.snackBarConfig=l,w.instance}},{key:"_attach",value:function(n,l){var c=this,p=Object.assign(Object.assign(Object.assign({},new xS),this._defaultConfig),l),_=this._createOverlay(p),w=this._attachSnackBarContainer(_,p),M=new lb(w,_);if(n instanceof hr){var A=new es(n,null,{$implicit:p.data,snackBarRef:M});M.instance=w.attachTemplatePortal(A)}else{var O=this._createInjector(p,M),F=new Rf(n,void 0,O),Y=w.attachComponentPortal(F);M.instance=Y.instance}return this._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait)").pipe(Wt(_.detachments())).subscribe(function($){_.overlayElement.classList.toggle(c.handsetCssClass,$.matches)}),p.announcementMessage&&w._onAnnounce.subscribe(function(){c._live.announce(p.announcementMessage,p.politeness)}),this._animateSnackBar(M,p),this._openedSnackBarRef=M,this._openedSnackBarRef}},{key:"_animateSnackBar",value:function(n,l){var c=this;n.afterDismissed().subscribe(function(){c._openedSnackBarRef==n&&(c._openedSnackBarRef=null),l.announcementMessage&&c._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(function(){n.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):n.containerInstance.enter(),l.duration&&l.duration>0&&n.afterOpened().subscribe(function(){return n._dismissAfter(l.duration)})}},{key:"_createOverlay",value:function(n){var l=new Ff;l.direction=n.direction;var c=this._overlay.position().global(),p="rtl"===n.direction,_="left"===n.horizontalPosition||"start"===n.horizontalPosition&&!p||"end"===n.horizontalPosition&&p,w=!_&&"center"!==n.horizontalPosition;return _?c.left("0"):w?c.right("0"):c.centerHorizontally(),"top"===n.verticalPosition?c.top("0"):c.bottom("0"),l.positionStrategy=c,this._overlay.create(l)}},{key:"_createInjector",value:function(n,l){return kr.create({parent:n&&n.viewContainerRef&&n.viewContainerRef.injector||this._injector,providers:[{provide:lb,useValue:l},{provide:aP,useValue:n.data}]})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(aa),ge(kA),ge(kr),ge(iP),ge(i,12),ge(T5))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),xY=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w,M){var A;return R(this,n),(A=r.call(this,l,c,p,_,w,M)).simpleSnackBarComponent=oP,A.snackBarContainerComponent=MY,A.handsetCssClass="mat-snack-bar-handset",A}return L(n)}(DY);return i.\u0275fac=function(r){return new(r||i)(ge(aa),ge(kA),ge(kr),ge(iP),ge(i,12),ge(T5))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:x5}),i}(),TS="dark-theme",A5="light-theme",Ot=function(){var i=function(){function s(r,n,l,c,p,_){R(this,s),this.http=r,this.router=n,this.dialog=l,this.snackbar=c,this.sanitizer=p,this.dateAdapter=_,this.user=new kN(udsData.profile),this.navigation=new is(this.router),this.gui=new _5(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language)}return L(s,[{key:"config",get:function(){return udsData.config}},{key:"csrfField",get:function(){return csrf.csrfField}},{key:"csrfToken",get:function(){return csrf.csrfToken}},{key:"notices",get:function(){return udsData.errors}},{key:"restPath",value:function(n){return this.config.urls.rest+n}},{key:"staticURL",value:function(n){return this.config.urls.static+n}},{key:"logout",value:function(){window.location.href=this.config.urls.logout}},{key:"gotoUser",value:function(){window.location.href=this.config.urls.user}},{key:"putOnStorage",value:function(n,l){void 0!==typeof Storage&&sessionStorage.setItem(n,l)}},{key:"getFromStorage",value:function(n){return void 0!==typeof Storage?sessionStorage.getItem(n):null}},{key:"safeString",value:function(n){return this.sanitizer.bypassSecurityTrustHtml(n)}},{key:"yesno",value:function(n){return n?django.gettext("yes"):django.gettext("no")}},{key:"switchTheme",value:function(n){var l=document.getElementsByTagName("html")[0];[TS,A5].forEach(function(c){l.classList.contains(c)&&l.classList.remove(c)}),l.classList.add(n?TS:A5)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(iF),ge(Ba),ge(eS),ge(xY),ge(Yx),ge(oa))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),E5=function(){var i=function(){function s(r){R(this,s),this.api=r}return L(s,[{key:"canActivate",value:function(n,l){return!!this.api.user.isStaff||(window.location.href=this.api.config.urls.user,!1)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(Ot))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),Mc=function(){return function(i){i[i.NONE=0]="NONE",i[i.READ=32]="READ",i[i.MANAGEMENT=64]="MANAGEMENT",i[i.ALL=96]="ALL"}(Mc||(Mc={})),Mc}(),sa=function(){function i(s,r,n){R(this,i),this.api=s,void 0===n&&(n={}),void 0===n.base&&(n.base=r);var l=function(p,_){return void 0===p?_:p};this.id=r,this.paths={base:n.base,get:l(n.get,n.base),log:l(n.log,n.base),put:l(n.put,n.base),test:l(n.test,n.base+"/test"),delete:l(n.delete,n.base),types:l(n.types,n.base+"/types"),gui:l(n.gui,n.base+"/gui"),tableInfo:l(n.tableInfo,n.base+"/tableinfo")},this.headers=(new Bv).set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}return L(i,[{key:"get",value:function(r){return this.doGet(this.getPath(this.paths.get,r))}},{key:"getLogs",value:function(r){return this.doGet(this.getPath(this.paths.log,r)+"/log")}},{key:"overview",value:function(r){return this.get("overview"+(void 0!==r?"?filter="+r:""))}},{key:"summary",value:function(r){return this.get("overview?summarize"+(void 0!==r?"&filter="+r:""))}},{key:"put",value:function(r,n){var l=this;return this.api.http.put(this.getPath(this.paths.put,n),r,{headers:this.headers}).pipe(To(function(c){return l.handleError(c,!0)}))}},{key:"create",value:function(r){return this.put(r)}},{key:"save",value:function(r,n){return this.put(r,n=void 0!==n?n:r.id)}},{key:"test",value:function(r,n){var l=this;return this.api.http.post(this.getPath(this.paths.test,r),n,{headers:this.headers}).pipe(To(function(c){return l.handleError(c)}))}},{key:"delete",value:function(r){var n=this;return this.api.http.delete(this.getPath(this.paths.delete,r),{headers:this.headers}).pipe(To(function(l){return n.handleError(l)}))}},{key:"permision",value:function(){return this.api.user.isAdmin?Mc.ALL:Mc.NONE}},{key:"getPermissions",value:function(r){return this.doGet(this.getPath("permissions/"+this.paths.base+"/"+r))}},{key:"addPermission",value:function(r,n,l,c){var p=this,_=this.getPath("permissions/"+this.paths.base+"/"+r+"/"+n+"/add/"+l);return this.api.http.put(_,{perm:c},{headers:this.headers}).pipe(To(function(M){return p.handleError(M)}))}},{key:"revokePermission",value:function(r){var n=this,l=this.getPath("permissions/revoke");return this.api.http.put(l,{items:r},{headers:this.headers}).pipe(To(function(p){return n.handleError(p)}))}},{key:"types",value:function(){return this.doGet(this.getPath(this.paths.types))}},{key:"gui",value:function(r){var n=this.getPath(this.paths.gui+(void 0!==r?"/"+r:""));return this.doGet(n)}},{key:"callback",value:function(r,n){var l=this.getPath("gui/callback/"+r+"?"+n);return this.doGet(l)}},{key:"tableInfo",value:function(){return this.doGet(this.getPath(this.paths.tableInfo))}},{key:"detail",value:function(r,n){return new TY(this,r,n)}},{key:"invoke",value:function(r,n){var l=r;return n&&(l=l+"?"+n),this.get(l)}},{key:"getPath",value:function(r,n){return this.api.restPath(r+(void 0!==n?"/"+n:""))}},{key:"doGet",value:function(r){var n=this;return this.api.http.get(r,{headers:this.headers}).pipe(To(function(l){return n.handleError(l)}))}},{key:"handleError",value:function(r){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],l="";return l=r.error instanceof ErrorEvent?r.error.message:n?django.gettext("Error saving: ")+r.error:"Error ".concat(r.status,": ").concat(r.error),this.api.gui.alert(n?django.gettext("Error saving element"):django.gettext("Error handling your request"),l),ry(l)}}]),i}(),TY=function(i){se(r,i);var s=ue(r);function r(n,l,c,p){var _;return R(this,r),(_=s.call(this,n.api,[n.paths.base,l,c].join("/"))).parentModel=n,_.parentId=l,_.model=c,_.perm=p,_}return L(r,[{key:"permision",value:function(){return this.perm||Mc.ALL}}]),r}(sa),AY=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"providers")).api=n,l}return L(r,[{key:"allServices",value:function(){return this.get("allservices")}},{key:"service",value:function(l){return this.get("service/"+l)}},{key:"maintenance",value:function(l){return this.get(l+"/maintenance")}}]),r}(sa),EY=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"authenticators")).api=n,l}return L(r,[{key:"search",value:function(l,c,p){var _=arguments.length>3&&void 0!==arguments[3]?arguments[3]:12;return this.get(l+"/search?type="+encodeURIComponent(c)+"&term="+encodeURIComponent(p)+"&limit="+_)}}]),r}(sa),PY=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"osmanagers")).api=n,l}return L(r)}(sa),sP=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"transports")).api=n,l}return L(r)}(sa),P5=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"networks")).api=n,l}return L(r)}(sa),lP=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"servicespools")).api=n,l}return L(r,[{key:"setFallbackAccess",value:function(l,c){return this.get(l+"/setFallbackAccess?fallbackAccess="+c)}},{key:"getFallbackAccess",value:function(l){return this.get(l+"/getFallbackAccess")}},{key:"actionsList",value:function(l){return this.get(l+"/actionsList")}},{key:"listAssignables",value:function(l){return this.get(l+"/listAssignables")}},{key:"createFromAssignable",value:function(l,c,p){return this.get(l+"/createFromAssignable?user_id="+encodeURIComponent(c)+"&assignable_id="+encodeURIComponent(p))}}]),r}(sa),OY=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"metapools")).api=n,l}return L(r,[{key:"setFallbackAccess",value:function(l,c){return this.get(l+"/setFallbackAccess?fallbackAccess="+c)}},{key:"getFallbackAccess",value:function(l){return this.get(l+"/getFallbackAccess")}}]),r}(sa),O5=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"config")).api=n,l}return L(r)}(sa),IY=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"gallery/images")).api=n,l}return L(r)}(sa),RY=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"gallery/servicespoolgroups")).api=n,l}return L(r)}(sa),ub=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"system")).api=n,l}return L(r,[{key:"information",value:function(){return this.get("overview")}},{key:"stats",value:function(l,c){var p="stats/"+l;return c&&(p+="/"+c),this.get(p)}},{key:"flushCache",value:function(){return this.doGet(this.getPath("cache","flush"))}}]),r}(sa),I5=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"reports")).api=n,l}return L(r,[{key:"types",value:function(){return dt([])}}]),r}(sa),LY=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"calendars")).api=n,l}return L(r)}(sa),uP=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"accounts")).api=n,l}return L(r,[{key:"timemark",value:function(l){return this.get(l+"/timemark")}}]),r}(sa),FY=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"actortokens")).api=n,l}return L(r)}(sa),cb=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"tunneltokens")).api=n,l}return L(r)}(sa),R5=function(i){se(r,i);var s=ue(r);function r(n){var l;return R(this,r),(l=s.call(this,n,"messaging/notifiers")).api=n,l}return L(r)}(sa),rn=function(){var i=L(function s(r){R(this,s),this.api=r,this.providers=new AY(r),this.authenticators=new EY(r),this.osManagers=new PY(r),this.transports=new sP(r),this.networks=new P5(r),this.servicesPools=new lP(r),this.metaPools=new OY(r),this.gallery=new IY(r),this.servicesPoolGroups=new RY(r),this.calendars=new LY(r),this.accounts=new uP(r),this.system=new ub(r),this.configuration=new O5(r),this.actorToken=new FY(r),this.tunnelToken=new cb(r),this.reports=new I5(r),this.notifiers=new R5(r)});return i.\u0275fac=function(r){return new(r||i)(ge(Ot))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),L5=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],F5=[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")],cP=function(s){var r=[];return s.forEach(function(n){r.push(n.substr(0,3))}),r},yg=function(s,r,n){return AS(s,r,n)},AS=function i(s,r,n,l){l=l||{},r=r||new Date,(n=n||U5).formats=n.formats||{};var c=r.getTime();return(l.utc||"number"==typeof l.timezone)&&(r=N5(r)),"number"==typeof l.timezone&&(r=new Date(r.getTime()+6e4*l.timezone)),s.replace(/%([-_0]?.)/g,function(p,_){var w,M,A,O,F,Y,$,oe;if(A=null,F=null,2===_.length){if("-"===(A=_[0]))F="";else if("_"===A)F=" ";else{if("0"!==A)return p;F="0"}_=_[1]}switch(_){case"A":return n.days[r.getDay()];case"a":return n.shortDays[r.getDay()];case"B":return n.months[r.getMonth()];case"b":case"h":return n.shortMonths[r.getMonth()];case"C":return uo(Math.floor(r.getFullYear()/100),F);case"D":return i(n.formats.D||"%m/%d/%y",r,n);case"d":return uo(r.getDate(),F);case"e":return r.getDate();case"F":return i(n.formats.F||"%Y-%m-%d",r,n);case"H":return uo(r.getHours(),F);case"I":return uo(B5(r),F);case"j":return $=new Date(r.getFullYear(),0,1),w=Math.ceil((r.getTime()-$.getTime())/864e5),uo(w,3);case"k":return uo(r.getHours(),void 0===F?" ":F);case"L":return uo(Math.floor(c%1e3),3);case"l":return uo(B5(r),void 0===F?" ":F);case"M":return uo(r.getMinutes(),F);case"m":return uo(r.getMonth()+1,F);case"n":return"\n";case"o":return String(r.getDate())+V5(r.getDate());case"P":case"p":return"";case"R":return i(n.formats.R||"%H:%M",r,n);case"r":return i(n.formats.r||"%I:%M:%S %p",r,n);case"S":return uo(r.getSeconds(),F);case"s":return Math.floor(c/1e3);case"T":return i(n.formats.T||"%H:%M:%S",r,n);case"t":return"\t";case"U":return uo(H5(r,"sunday"),F);case"u":return 0===(M=r.getDay())?7:M;case"v":return i(n.formats.v||"%e-%b-%Y",r,n);case"W":return uo(H5(r,"monday"),F);case"w":return r.getDay();case"Y":return r.getFullYear();case"y":return(oe=String(r.getFullYear())).slice(oe.length-2);case"Z":return l.utc?"GMT":(Y=r.toString().match(/\((\w+)\)/))&&Y[1]||"";case"z":return l.utc?"+0000":((O="number"==typeof l.timezone?l.timezone:-r.getTimezoneOffset())<0?"-":"+")+uo(Math.abs(O/60))+uo(O%60);default:return _}})},N5=function(s){var r=6e4*(s.getTimezoneOffset()||0);return new Date(s.getTime()+r)},uo=function(s,r,n){"number"==typeof r&&(n=r,r="0"),r=null==r?"0":r,n=null==n?2:n;var l=String(s);if(r)for(;l.length12&&(r-=12),r},V5=function(s){var r=s%10,n=s%100;if(n>=11&&n<=13||0===r||r>=4)return"th";switch(r){case 1:return"st";case 2:return"nd";case 3:return"rd"}},H5=function(s,r){r=r||"sunday";var n=s.getDay();"monday"===r&&(0===n?n=6:n--);var l=new Date(s.getFullYear(),0,1),c=Math.floor((s.getTime()-l.getTime())/864e5);return Math.floor((c+7-n)/7)},z5=function(s){return s.replace(/./g,function(r){switch(r){case"a":case"A":return"%p";case"b":case"d":case"m":case"w":case"W":case"y":case"Y":return"%"+r;case"c":return"%FT%TZ";case"D":return"%a";case"e":case"O":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":case"L":case"S":case"t":case"U":return"";case"j":return"%d";case"l":return"%A";case"M":case"N":return"%b";case"n":return"%m";case"o":return"%W";case"P":return"%R %p";case"r":return"%a, %d %b %Y %T %z";case"s":return"%S";case"T":return"%Z";case"u":return"0";case"z":return"%j";case"Z":return"z";default:return r}})},zs=function(s,r){var l,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if("None"===r||null==r)r=7226578800,l=django.gettext("Never");else{var c=django.get_format(s);n&&(c+=n),l=yg(z5(c),new Date(1e3*r))}return l},fP=function(s){return"yes"===s||!0===s||"true"===s||1===s},U5={days:L5,shortDays:cP(L5),months:F5,shortMonths:cP(F5),AM:"AM",PM:"PM",am:"am",pm:"pm"},j5={leading:!0,trailing:!1};function BY(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:j5;return gr(function(r,n){var l=s.leading,c=s.trailing,p=!1,_=null,w=null,M=!1,A=function(){null==w||w.unsubscribe(),w=null,c&&(Y(),M&&n.complete())},O=function(){w=null,M&&n.complete()},F=function(oe){return w=ji(i(oe)).subscribe(ve(n,A,O))},Y=function(){if(p){p=!1;var oe=_;_=null,n.next(oe),!M&&F(oe)}};r.subscribe(ve(n,function($){p=!0,_=$,(!w||w.closed)&&(l?Y():F($))},function(){M=!0,(!(c&&p&&w)||w.closed)&&n.complete()}))})}var Y5=function(){function i(s){R(this,i),this.changes=s}return L(i,[{key:"notEmpty",value:function(r){if(this.changes[r]){var n=this.changes[r].currentValue;if(null!=n)return dt(n)}return Sr}},{key:"has",value:function(r){return this.changes[r]?dt(this.changes[r].currentValue):Sr}},{key:"notFirst",value:function(r){return this.changes[r]&&!this.changes[r].isFirstChange()?dt(this.changes[r].currentValue):Sr}},{key:"notFirstAndEmpty",value:function(r){if(this.changes[r]&&!this.changes[r].isFirstChange()){var n=this.changes[r].currentValue;if(null!=n)return dt(n)}return Sr}}],[{key:"of",value:function(r){return new i(r)}}]),i}(),dP=new Ae("NGX_ECHARTS_CONFIG"),fb=function(){var i=function(){function s(r,n,l){R(this,s),this.el=n,this.ngZone=l,this.autoResize=!0,this.loadingType="default",this.chartInit=new ye,this.optionsError=new ye,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.resize$=new Xe,this.echarts=r.echarts}return L(s,[{key:"ngOnChanges",value:function(n){var l=this,c=Y5.of(n);c.notFirstAndEmpty("options").subscribe(function(p){return l.onOptionsChange(p)}),c.notFirstAndEmpty("merge").subscribe(function(p){return l.setOption(p)}),c.has("loading").subscribe(function(p){return l.toggleLoading(!!p)}),c.notFirst("theme").subscribe(function(){return l.refreshChart()})}},{key:"ngOnInit",value:function(){var n=this;if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(function W5(i){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:j5,n=qv(i,arguments.length>1&&void 0!==arguments[1]?arguments[1]:El);return BY(function(){return n},r)}(100,El,{leading:!1,trailing:!0})).subscribe(function(){return n.resize()}),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(function(){return new window.ResizeObserver(function(){n.animationFrameID=window.requestAnimationFrame(function(){return n.resize$.next()})})}),this.resizeOb.observe(this.el.nativeElement))}},{key:"ngOnDestroy",value:function(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.dispose()}},{key:"ngAfterViewInit",value:function(){var n=this;this.initChartTimer=window.setTimeout(function(){return n.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(n){this.chart&&(n?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading())}},{key:"setOption",value:function(n,l){if(this.chart)try{this.chart.setOption(n,l)}catch(c){console.error(c),this.optionsError.emit(c)}}},{key:"refreshChart",value:function(){return Zt(this,void 0,void 0,Ct.mark(function n(){return Ct.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return this.dispose(),c.next=3,this.initChart();case 3:case"end":return c.stop()}},n,this)}))}},{key:"createChart",value:function(){var n=this,l=this.el.nativeElement;if(window&&window.getComputedStyle){var c=window.getComputedStyle(l,null).getPropertyValue("height");(!c||"0px"===c)&&(!l.style.height||"0px"===l.style.height)&&(l.style.height="400px")}return this.ngZone.runOutsideAngular(function(){return("function"==typeof n.echarts?n.echarts:function(){return Promise.resolve(n.echarts)})().then(function(_){return(0,_.init)(l,n.theme,n.initOpts)})})}},{key:"initChart",value:function(){return Zt(this,void 0,void 0,Ct.mark(function n(){return Ct.wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.next=2,this.onOptionsChange(this.options);case 2:this.merge&&this.chart&&this.setOption(this.merge);case 3:case"end":return c.stop()}},n,this)}))}},{key:"onOptionsChange",value:function(n){return Zt(this,void 0,void 0,Ct.mark(function l(){return Ct.wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(n){p.next=2;break}return p.abrupt("return");case 2:if(!this.chart){p.next=6;break}this.setOption(this.options,!0),p.next=11;break;case 6:return p.next=8,this.createChart();case 8:this.chart=p.sent,this.chartInit.emit(this.chart),this.setOption(this.options,!0);case 11:case"end":return p.stop()}},l,this)}))}},{key:"createLazyEvent",value:function(n){var l=this;return this.chartInit.pipe(_a(function(c){return new Jn(function(p){return c.on(n,function(_){return l.ngZone.run(function(){return p.next(_)})}),function(){l.chart&&(l.chart.isDisposed()||c.off(n))}})}))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(dP),z(tt),z(Pt))},i.\u0275dir=be({type:i,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",loading:"loading",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loadingType:"loadingType",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:[xn]}),i}(),bu=function(){var i=function(){function s(){R(this,s)}return L(s,null,[{key:"forRoot",value:function(n){return{ngModule:s,providers:[{provide:dP,useValue:n}]}}},{key:"forChild",value:function(){return{ngModule:s}}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[]]}),i}();function VY(i,s){if(1&i&&(I(0,"div",21)(1,"div",11),Se(2,"img",3),I(3,"div",12),K(4),B()(),I(5,"div",13)(6,"a",15)(7,"uds-translate"),K(8,"View service pools"),B()()()()),2&i){var r=Q(2);G(2),U("src",r.api.staticURL("admin/img/icons/logs.png"),Qt),G(2),Le(" ",r.data.restrained," ")}}function q5(i,s){if(1&i){var r=xe();I(0,"div")(1,"div",8)(2,"div",9)(3,"div",10)(4,"div",11),Se(5,"img",3),I(6,"div",12),K(7),B()(),I(8,"div",13)(9,"a",14)(10,"uds-translate"),K(11,"View authenticators"),B()()()(),I(12,"div",10)(13,"div",11),Se(14,"img",3),I(15,"div",12),K(16),B()(),I(17,"div",13)(18,"a",15)(19,"uds-translate"),K(20,"View service pools"),B()()()(),I(21,"div",10)(22,"div",11),Se(23,"img",3),I(24,"div",12),K(25),B()(),I(26,"div",13)(27,"a",15)(28,"uds-translate"),K(29,"View service pools"),B()()()(),te(30,VY,9,2,"div",16),B(),I(31,"div",17)(32,"div",18)(33,"div",19)(34,"uds-translate"),K(35,"Assigned services chart"),B()(),I(36,"div",20),ne("chartInit",function(c){return he(r),Q().chartInit("assigned",c)}),B()(),I(37,"div",18)(38,"div",19)(39,"uds-translate"),K(40,"In use services chart"),B()(),I(41,"div",20),ne("chartInit",function(c){return he(r),Q().chartInit("inuse",c)}),B()()()()()}if(2&i){var n=Q();G(5),U("src",n.api.staticURL("admin/img/icons/authenticators.png"),Qt),G(2),Le(" ",n.data.users," "),G(7),U("src",n.api.staticURL("admin/img/icons/pools.png"),Qt),G(2),Le(" ",n.data.pools," "),G(7),U("src",n.api.staticURL("admin/img/icons/services.png"),Qt),G(2),Le(" ",n.data.user_services," "),G(5),U("ngIf",n.data.restrained),G(6),U("options",n.assignedChartOpts),G(5),U("options",n.inuseChartOpts)}}function hP(i,s){1&i&&(I(0,"div",22)(1,"div",23)(2,"div",24)(3,"uds-translate"),K(4,"UDS Administration"),B()(),I(5,"div",25)(6,"p")(7,"uds-translate"),K(8,"You are accessing UDS Administration as staff member."),B()(),I(9,"p")(10,"uds-translate"),K(11,"This means that you have restricted access to elements."),B()(),I(12,"p")(13,"uds-translate"),K(14,"In order to increase your access privileges, please contact your local UDS administrator. "),B()(),Se(15,"br"),I(16,"p")(17,"uds-translate"),K(18,"Thank you."),B()()()()())}var HY=function(){var i=function(){function s(r,n){R(this,s),this.api=r,this.rest=n,this.data={},this.assignedChartInstance=null,this.assignedChartOpts={},this.inuseChartOpts={},this.inuseChartInstance=null}return L(s,[{key:"onResize",value:function(n){this.assignedChartInstance&&this.assignedChartInstance.resize(),this.inuseChartInstance&&this.inuseChartInstance.resize()}},{key:"ngOnInit",value:function(){var n=this;if(this.api.user.isAdmin){this.rest.system.information().subscribe(function(_){n.data={users:django.gettext("#USR_NUMBER# users, #GRP_NUMBER# groups").replace("#USR_NUMBER#",_.users).replace("#GRP_NUMBER#",_.groups),pools:django.gettext("#POOLS_NUMBER# service pools").replace("#POOLS_NUMBER#",_.service_pools),user_services:django.gettext("#SERVICES_NUMBER# user services").replace("#SERVICES_NUMBER#",_.user_services)},_.restrained_services_pools>0&&(n.data.restrained=django.gettext("#RESTRAINED_NUMBER# restrained services!").replace("#RESTRAINED_NUMBER#",_.restrained_services_pools))});for(var l=function(){var w=p[c];n.rest.system.stats(w).subscribe(function(M){var A={tooltip:{trigger:"axis"},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:M.map(function(O){return zs("SHORT_DATE_FORMAT",new Date(O.stamp))}),boundaryGap:!1},yAxis:{type:"value",boundaryGap:!1},series:[{name:"assigned"===w?django.gettext("Assigned services"):django.gettext("Services in use"),type:"line",smooth:!0,areaStyle:{},data:M.map(function(O){return O.value})}]};"assigned"===w?n.assignedChartOpts=A:n.inuseChartOpts=A})},c=0,p=["assigned","inuse"];c0&&void 0!==arguments[0]&&arguments[0],n=arguments.length>1?arguments[1]:void 0,l=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];R(this,i),this._multiple=r,this._emitChanges=l,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new Xe,n&&n.length&&(r?n.forEach(function(c){return s._markSelected(c)}):this._markSelected(n[0]),this._selectedToEmit.length=0)}return L(i,[{key:"selected",get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}},{key:"select",value:function(){for(var r=this,n=arguments.length,l=new Array(n),c=0;c enter",[mt({opacity:0,transform:"translateY(-5px)"}),$n("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},hb=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=be({type:i}),i}(),eq=new Ae("MatHint"),Tr=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=be({type:i,selectors:[["mat-label"]]}),i}(),tq=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=be({type:i,selectors:[["mat-placeholder"]]}),i}(),gP=new Ae("MatPrefix"),nH=new Ae("MatSuffix"),wg=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=be({type:i,selectors:[["","matSuffix",""]],features:[ft([{provide:nH,useExisting:i}])]}),i}(),mP=0,iq=yc(function(){return L(function i(s){R(this,i),this._elementRef=s})}(),"primary"),aq=new Ae("MAT_FORM_FIELD_DEFAULT_OPTIONS"),pb=new Ae("MatFormField"),or=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w,M,A){var O;return R(this,n),(O=r.call(this,l))._changeDetectorRef=c,O._dir=p,O._defaults=_,O._platform=w,O._ngZone=M,O._outlineGapCalculationNeededImmediately=!1,O._outlineGapCalculationNeededOnStable=!1,O._destroyed=new Xe,O._showAlwaysAnimate=!1,O._subscriptAnimationState="",O._hintLabel="",O._hintLabelId="mat-hint-".concat(mP++),O._labelId="mat-form-field-label-".concat(mP++),O.floatLabel=O._getDefaultFloatLabelState(),O._animationsEnabled="NoopAnimations"!==A,O.appearance=_&&_.appearance?_.appearance:"legacy",O._hideRequiredMarker=!(!_||null==_.hideRequiredMarker)&&_.hideRequiredMarker,O}return L(n,[{key:"appearance",get:function(){return this._appearance},set:function(c){var p=this._appearance;this._appearance=c||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&p!==c&&(this._outlineGapCalculationNeededOnStable=!0)}},{key:"hideRequiredMarker",get:function(){return this._hideRequiredMarker},set:function(c){this._hideRequiredMarker=gt(c)}},{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(c){this._hintLabel=c,this._processHints()}},{key:"floatLabel",get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(c){c!==this._floatLabel&&(this._floatLabel=c||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}},{key:"_control",get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(c){this._explicitFormFieldControl=c}},{key:"getLabelId",value:function(){return this._hasFloatingLabel()?this._labelId:null}},{key:"getConnectedOverlayOrigin",value:function(){return this._connectionContainerRef||this._elementRef}},{key:"ngAfterContentInit",value:function(){var c=this;this._validateControlChild();var p=this._control;p.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-".concat(p.controlType)),p.stateChanges.pipe(na(null)).subscribe(function(){c._validatePlaceholders(),c._syncDescribedByIds(),c._changeDetectorRef.markForCheck()}),p.ngControl&&p.ngControl.valueChanges&&p.ngControl.valueChanges.pipe(Wt(this._destroyed)).subscribe(function(){return c._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(function(){c._ngZone.onStable.pipe(Wt(c._destroyed)).subscribe(function(){c._outlineGapCalculationNeededOnStable&&c.updateOutlineGap()})}),Rr(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(function(){c._outlineGapCalculationNeededOnStable=!0,c._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(na(null)).subscribe(function(){c._processHints(),c._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(na(null)).subscribe(function(){c._syncDescribedByIds(),c._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Wt(this._destroyed)).subscribe(function(){"function"==typeof requestAnimationFrame?c._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){return c.updateOutlineGap()})}):c.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(c){var p=this._control?this._control.ngControl:null;return p&&p[c]}},{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 c=this;this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,gu(this._label.nativeElement,"transitionend").pipe(gn(1)).subscribe(function(){c._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 c=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&c.push.apply(c,yt(this._control.userAriaDescribedBy.split(" "))),"hint"===this._getDisplayedMessages()){var p=this._hintChildren?this._hintChildren.find(function(w){return"start"===w.align}):null,_=this._hintChildren?this._hintChildren.find(function(w){return"end"===w.align}):null;p?c.push(p.id):this._hintLabel&&c.push(this._hintLabelId),_&&c.push(_.id)}else this._errorChildren&&c.push.apply(c,yt(this._errorChildren.map(function(w){return w.id})));this._control.setDescribedByIds(c)}}},{key:"_validateControlChild",value:function(){}},{key:"updateOutlineGap",value:function(){var c=this._label?this._label.nativeElement:null,p=this._connectionContainerRef.nativeElement,_=".mat-form-field-outline-start",w=".mat-form-field-outline-gap";if("outline"===this.appearance&&this._platform.isBrowser){if(!c||!c.children.length||!c.textContent.trim()){for(var M=p.querySelectorAll("".concat(_,", ").concat(w)),A=0;A0?.75*we+10:0}for(var Ee=0;Ee void",y1("@transformPanel",[_1()],{optional:!0}))]),transformPanel:zi("transformPanel",[Wn("void",mt({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),Wn("showing",mt({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),Wn("showing-multiple",mt({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),Yn("void => *",$n("120ms cubic-bezier(0, 0, 0.2, 1)")),Yn("* => void",$n("100ms 25ms linear",mt({opacity:0})))])},op=0,lH=new Ae("mat-select-scroll-strategy"),uH=new Ae("MAT_SELECT_CONFIG"),dq={provide:lH,deps:[aa],useFactory:function fq(i){return function(){return i.scrollStrategies.reposition()}}},cH=L(function i(s,r){R(this,i),this.source=s,this.value=r}),hq=bc(Z1(Fl(X1(function(){return L(function i(s,r,n,l,c){R(this,i),this._elementRef=s,this._defaultErrorStateMatcher=r,this._parentForm=n,this._parentFormGroup=l,this.ngControl=c})}())))),fH=new Ae("MatSelectTrigger"),pq=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=be({type:i,selectors:[["mat-select-trigger"]],features:[ft([{provide:fH,useExisting:i}])]}),i}(),RS=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w,M,A,O,F,Y,$,oe,le,fe){var ae,we,De,Ee;return R(this,n),(ae=r.call(this,w,_,A,O,Y))._viewportRuler=l,ae._changeDetectorRef=c,ae._ngZone=p,ae._dir=M,ae._parentFormField=F,ae._liveAnnouncer=le,ae._defaultOptions=fe,ae._panelOpen=!1,ae._compareWith=function(We,bt){return We===bt},ae._uid="mat-select-".concat(op++),ae._triggerAriaLabelledBy=null,ae._destroy=new Xe,ae._onChange=function(){},ae._onTouched=function(){},ae._valueId="mat-select-value-".concat(op++),ae._panelDoneAnimatingStream=new Xe,ae._overlayPanelClass=(null===(we=ae._defaultOptions)||void 0===we?void 0:we.overlayPanelClass)||"",ae._focused=!1,ae.controlType="mat-select",ae._multiple=!1,ae._disableOptionCentering=null!==(Ee=null===(De=ae._defaultOptions)||void 0===De?void 0:De.disableOptionCentering)&&void 0!==Ee&&Ee,ae.ariaLabel="",ae.optionSelectionChanges=Sw(function(){var We=ae.options;return We?We.changes.pipe(na(We),_a(function(){return Rr.apply(void 0,yt(We.map(function(bt){return bt.onSelectionChange})))})):ae._ngZone.onStable.pipe(gn(1),_a(function(){return ae.optionSelectionChanges}))}),ae.openedChange=new ye,ae._openedStream=ae.openedChange.pipe(Ur(function(We){return We}),on(function(){})),ae._closedStream=ae.openedChange.pipe(Ur(function(We){return!We}),on(function(){})),ae.selectionChange=new ye,ae.valueChange=new ye,ae.ngControl&&(ae.ngControl.valueAccessor=an(ae)),null!=(null==fe?void 0:fe.typeaheadDebounceInterval)&&(ae._typeaheadDebounceInterval=fe.typeaheadDebounceInterval),ae._scrollStrategyFactory=oe,ae._scrollStrategy=ae._scrollStrategyFactory(),ae.tabIndex=parseInt($)||0,ae.id=ae.id,ae}return L(n,[{key:"focused",get:function(){return this._focused||this._panelOpen}},{key:"placeholder",get:function(){return this._placeholder},set:function(c){this._placeholder=c,this.stateChanges.next()}},{key:"required",get:function(){var c,p,_,w;return null!==(w=null!==(c=this._required)&&void 0!==c?c:null===(_=null===(p=this.ngControl)||void 0===p?void 0:p.control)||void 0===_?void 0:_.hasValidator(rS.required))&&void 0!==w&&w},set:function(c){this._required=gt(c),this.stateChanges.next()}},{key:"multiple",get:function(){return this._multiple},set:function(c){this._multiple=gt(c)}},{key:"disableOptionCentering",get:function(){return this._disableOptionCentering},set:function(c){this._disableOptionCentering=gt(c)}},{key:"compareWith",get:function(){return this._compareWith},set:function(c){this._compareWith=c,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(c){this._assignValue(c)&&this._onChange(c)}},{key:"typeaheadDebounceInterval",get:function(){return this._typeaheadDebounceInterval},set:function(c){this._typeaheadDebounceInterval=Va(c)}},{key:"id",get:function(){return this._id},set:function(c){this._id=c||this._uid,this.stateChanges.next()}},{key:"ngOnInit",value:function(){var c=this;this._selectionModel=new bg(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(Fy(),Wt(this._destroy)).subscribe(function(){return c._panelDoneAnimating(c.panelOpen)})}},{key:"ngAfterContentInit",value:function(){var c=this;this._initKeyManager(),this._selectionModel.changed.pipe(Wt(this._destroy)).subscribe(function(p){p.added.forEach(function(_){return _.select()}),p.removed.forEach(function(_){return _.deselect()})}),this.options.changes.pipe(na(null),Wt(this._destroy)).subscribe(function(){c._resetOptions(),c._initializeSelection()})}},{key:"ngDoCheck",value:function(){var c=this._getTriggerAriaLabelledby(),p=this.ngControl;if(c!==this._triggerAriaLabelledBy){var _=this._elementRef.nativeElement;this._triggerAriaLabelledBy=c,c?_.setAttribute("aria-labelledby",c):_.removeAttribute("aria-labelledby")}p&&(this._previousControl!==p.control&&(void 0!==this._previousControl&&null!==p.disabled&&p.disabled!==this.disabled&&(this.disabled=p.disabled),this._previousControl=p.control),this.updateErrorState())}},{key:"ngOnChanges",value:function(c){c.disabled&&this.stateChanges.next(),c.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(c){this._assignValue(c)}},{key:"registerOnChange",value:function(c){this._onChange=c}},{key:"registerOnTouched",value:function(c){this._onTouched=c}},{key:"setDisabledState",value:function(c){this.disabled=c,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"panelOpen",get:function(){return this._panelOpen}},{key:"selected",get:function(){var c,p;return this.multiple?(null===(c=this._selectionModel)||void 0===c?void 0:c.selected)||[]:null===(p=this._selectionModel)||void 0===p?void 0:p.selected[0]}},{key:"triggerValue",get:function(){if(this.empty)return"";if(this._multiple){var c=this._selectionModel.selected.map(function(p){return p.viewValue});return this._isRtl()&&c.reverse(),c.join(", ")}return this._selectionModel.selected[0].viewValue}},{key:"_isRtl",value:function(){return!!this._dir&&"rtl"===this._dir.value}},{key:"_handleKeydown",value:function(c){this.disabled||(this.panelOpen?this._handleOpenKeydown(c):this._handleClosedKeydown(c))}},{key:"_handleClosedKeydown",value:function(c){var p=c.keyCode,_=40===p||38===p||37===p||39===p,w=13===p||32===p,M=this._keyManager;if(!M.isTyping()&&w&&!ia(c)||(this.multiple||c.altKey)&&_)c.preventDefault(),this.open();else if(!this.multiple){var A=this.selected;M.onKeydown(c);var O=this.selected;O&&A!==O&&this._liveAnnouncer.announce(O.viewValue,1e4)}}},{key:"_handleOpenKeydown",value:function(c){var p=this._keyManager,_=c.keyCode,w=40===_||38===_,M=p.isTyping();if(w&&c.altKey)c.preventDefault(),this.close();else if(M||13!==_&&32!==_||!p.activeItem||ia(c))if(!M&&this._multiple&&65===_&&c.ctrlKey){c.preventDefault();var A=this.options.some(function(F){return!F.disabled&&!F.selected});this.options.forEach(function(F){F.disabled||(A?F.select():F.deselect())})}else{var O=p.activeItemIndex;p.onKeydown(c),this._multiple&&w&&c.shiftKey&&p.activeItem&&p.activeItemIndex!==O&&p.activeItem._selectViaInteraction()}else c.preventDefault(),p.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 c=this;this._overlayDir.positionChange.pipe(gn(1)).subscribe(function(){c._changeDetectorRef.detectChanges(),c._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 c=this;Promise.resolve().then(function(){c.ngControl&&(c._value=c.ngControl.value),c._setSelectionByValue(c._value),c.stateChanges.next()})}},{key:"_setSelectionByValue",value:function(c){var p=this;if(this._selectionModel.selected.forEach(function(w){return w.setInactiveStyles()}),this._selectionModel.clear(),this.multiple&&c)Array.isArray(c),c.forEach(function(w){return p._selectOptionByValue(w)}),this._sortValues();else{var _=this._selectOptionByValue(c);_?this._keyManager.updateActiveItem(_):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}},{key:"_selectOptionByValue",value:function(c){var p=this,_=this.options.find(function(w){if(p._selectionModel.isSelected(w))return!1;try{return null!=w.value&&p._compareWith(w.value,c)}catch(M){return!1}});return _&&this._selectionModel.select(_),_}},{key:"_assignValue",value:function(c){return!!(c!==this._value||this._multiple&&Array.isArray(c))&&(this.options&&this._setSelectionByValue(c),this._value=c,!0)}},{key:"_initKeyManager",value:function(){var c=this;this._keyManager=new b3(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(Wt(this._destroy)).subscribe(function(){c.panelOpen&&(!c.multiple&&c._keyManager.activeItem&&c._keyManager.activeItem._selectViaInteraction(),c.focus(),c.close())}),this._keyManager.change.pipe(Wt(this._destroy)).subscribe(function(){c._panelOpen&&c.panel?c._scrollOptionIntoView(c._keyManager.activeItemIndex||0):!c._panelOpen&&!c.multiple&&c._keyManager.activeItem&&c._keyManager.activeItem._selectViaInteraction()})}},{key:"_resetOptions",value:function(){var c=this,p=Rr(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(Wt(p)).subscribe(function(_){c._onSelect(_.source,_.isUserInput),_.isUserInput&&!c.multiple&&c._panelOpen&&(c.close(),c.focus())}),Rr.apply(void 0,yt(this.options.map(function(_){return _._stateChanges}))).pipe(Wt(p)).subscribe(function(){c._changeDetectorRef.markForCheck(),c.stateChanges.next()})}},{key:"_onSelect",value:function(c,p){var _=this._selectionModel.isSelected(c);null!=c.value||this._multiple?(_!==c.selected&&(c.selected?this._selectionModel.select(c):this._selectionModel.deselect(c)),p&&this._keyManager.setActiveItem(c),this.multiple&&(this._sortValues(),p&&this.focus())):(c.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(c.value)),_!==this._selectionModel.isSelected(c)&&this._propagateChanges(),this.stateChanges.next()}},{key:"_sortValues",value:function(){var c=this;if(this.multiple){var p=this.options.toArray();this._selectionModel.sort(function(_,w){return c.sortComparator?c.sortComparator(_,w,p):p.indexOf(_)-p.indexOf(w)}),this.stateChanges.next()}}},{key:"_propagateChanges",value:function(c){var p;p=this.multiple?this.selected.map(function(_){return _.value}):this.selected?this.selected.value:c,this._value=p,this.valueChange.emit(p),this._onChange(p),this.selectionChange.emit(this._getChangeEvent(p)),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 c;return!this._panelOpen&&!this.disabled&&(null===(c=this.options)||void 0===c?void 0:c.length)>0}},{key:"focus",value:function(c){this._elementRef.nativeElement.focus(c)}},{key:"_getPanelAriaLabelledby",value:function(){var c;if(this.ariaLabel)return null;var p=null===(c=this._parentFormField)||void 0===c?void 0:c.getLabelId();return this.ariaLabelledby?(p?p+" ":"")+this.ariaLabelledby:p}},{key:"_getAriaActiveDescendant",value:function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}},{key:"_getTriggerAriaLabelledby",value:function(){var c;if(this.ariaLabel)return null;var p=null===(c=this._parentFormField)||void 0===c?void 0:c.getLabelId(),_=(p?p+" ":"")+this._valueId;return this.ariaLabelledby&&(_+=" "+this.ariaLabelledby),_}},{key:"_panelDoneAnimating",value:function(c){this.openedChange.emit(c)}},{key:"setDescribedByIds",value:function(c){this._ariaDescribedby=c.join(" ")}},{key:"onContainerClick",value:function(){this.focus(),this.open()}},{key:"shouldLabelFloat",get:function(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}]),n}(hq);return i.\u0275fac=function(r){return new(r||i)(z(Ls),z(hn),z(Pt),z(qy),z(tt),z(Ei,8),z(Sc,8),z($f,8),z(pb,8),z(Bl,10),Ho("tabindex"),z(lH),z(kA),z(uH,8))},i.\u0275dir=be({type:i,viewQuery:function(r,n){var l;1&r&&(Rt(oq,5),Rt(sq,5),Rt(gA,5)),2&r&&(Ve(l=Ge())&&(n.trigger=l.first),Ve(l=Ge())&&(n.panel=l.first),Ve(l=Ge())&&(n._overlayDir=l.first))},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[Re,xn]}),i}(),Ua=function(){var i=function(s){se(n,s);var r=ue(n);function n(){var l;return R(this,n),(l=r.apply(this,arguments))._scrollTop=0,l._triggerFontSize=0,l._transformOrigin="top",l._offsetY=0,l._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],l}return L(n,[{key:"_calculateOverlayScroll",value:function(c,p,_){var w=this._getItemHeight();return Math.min(Math.max(0,w*c-p+w/2),_)}},{key:"ngOnInit",value:function(){var c=this;Ye(qe(n.prototype),"ngOnInit",this).call(this),this._viewportRuler.change().pipe(Wt(this._destroy)).subscribe(function(){c.panelOpen&&(c._triggerRect=c.trigger.nativeElement.getBoundingClientRect(),c._changeDetectorRef.markForCheck())})}},{key:"open",value:function(){var c=this;Ye(qe(n.prototype),"_canOpen",this).call(this)&&(Ye(qe(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(gn(1)).subscribe(function(){c._triggerFontSize&&c._overlayDir.overlayRef&&c._overlayDir.overlayRef.overlayElement&&(c._overlayDir.overlayRef.overlayElement.style.fontSize="".concat(c._triggerFontSize,"px"))}))}},{key:"_scrollOptionIntoView",value:function(c){var p=cE(c,this.options,this.optionGroups),_=this._getItemHeight();this.panel.nativeElement.scrollTop=0===c&&1===p?0:jB((c+p)*_,_,this.panel.nativeElement.scrollTop,256)}},{key:"_positioningSettled",value:function(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}},{key:"_panelDoneAnimating",value:function(c){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),Ye(qe(n.prototype),"_panelDoneAnimating",this).call(this,c)}},{key:"_getChangeEvent",value:function(c){return new cH(this,c)}},{key:"_calculateOverlayOffsetX",value:function(){var M,c=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),p=this._viewportRuler.getViewportSize(),_=this._isRtl(),w=this.multiple?56:32;if(this.multiple)M=40;else if(this.disableOptionCentering)M=16;else{var A=this._selectionModel.selected[0]||this.options.first;M=A&&A.group?32:16}_||(M*=-1);var O=0-(c.left+M-(_?w:0)),F=c.right+M-p.width+(_?0:w);O>0?M+=O+8:F>0&&(M-=F+8),this._overlayDir.offsetX=Math.round(M),this._overlayDir.overlayRef.updatePosition()}},{key:"_calculateOverlayOffsetY",value:function(c,p,_){var O,w=this._getItemHeight(),M=(w-this._triggerRect.height)/2,A=Math.floor(256/w);return this.disableOptionCentering?0:(O=0===this._scrollTop?c*w:this._scrollTop===_?(c-(this._getItemCount()-A))*w+(w-(this._getItemCount()*w-256)%w):p-w/2,Math.round(-1*O-M))}},{key:"_checkOverlayWithinViewport",value:function(c){var p=this._getItemHeight(),_=this._viewportRuler.getViewportSize(),w=this._triggerRect.top-8,M=_.height-this._triggerRect.bottom-8,A=Math.abs(this._offsetY),F=Math.min(this._getItemCount()*p,256)-A-this._triggerRect.height;F>M?this._adjustPanelUp(F,M):A>w?this._adjustPanelDown(A,w,c):this._transformOrigin=this._getOriginBasedOnOption()}},{key:"_adjustPanelUp",value:function(c,p){var _=Math.round(c-p);this._scrollTop-=_,this._offsetY-=_,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}},{key:"_adjustPanelDown",value:function(c,p,_){var w=Math.round(c-p);if(this._scrollTop+=w,this._offsetY+=w,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=_)return this._scrollTop=_,this._offsetY=0,void(this._transformOrigin="50% top 0px")}},{key:"_calculateOverlayPosition",value:function(){var A,c=this._getItemHeight(),p=this._getItemCount(),_=Math.min(p*c,256),M=p*c-_;A=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),A+=cE(A,this.options,this.optionGroups);var O=_/2;this._scrollTop=this._calculateOverlayScroll(A,O,M),this._offsetY=this._calculateOverlayOffsetY(A,O,M),this._checkOverlayWithinViewport(M)}},{key:"_getOriginBasedOnOption",value:function(){var c=this._getItemHeight(),p=(c-this._triggerRect.height)/2,_=Math.abs(this._offsetY)-p+c/2;return"50% ".concat(_,"px 0px")}},{key:"_getItemHeight",value:function(){return 3*this._triggerFontSize}},{key:"_getItemCount",value:function(){return this.options.length+this.optionGroups.length}}]),n}(RS);return i.\u0275fac=function(){var s;return function(n){return(s||(s=cn(i)))(n||i)}}(),i.\u0275cmp=ke({type:i,selectors:[["mat-select"]],contentQueries:function(r,n,l){var c;1&r&&(Mn(l,fH,5),Mn(l,Pi,5),Mn(l,$1,5)),2&r&&(Ve(c=Ge())&&(n.customTrigger=c.first),Ve(c=Ge())&&(n.options=c),Ve(c=Ge())&&(n.optionGroups=c))},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(r,n){1&r&&ne("keydown",function(c){return n._handleKeydown(c)})("focus",function(){return n._onFocus()})("blur",function(){return n._onBlur()}),2&r&&(lt("id",n.id)("tabindex",n.tabIndex)("aria-controls",n.panelOpen?n.id+"-panel":null)("aria-expanded",n.panelOpen)("aria-label",n.ariaLabel||null)("aria-required",n.required.toString())("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-describedby",n._ariaDescribedby||null)("aria-activedescendant",n._getAriaActiveDescendant()),Ze("mat-select-disabled",n.disabled)("mat-select-invalid",n.errorState)("mat-select-required",n.required)("mat-select-empty",n.empty)("mat-select-multiple",n.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[ft([{provide:hb,useExisting:i},{provide:Xy,useExisting:i}]),Re],ngContentSelectors:aH,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(r,n){if(1&r&&(vi(iH),I(0,"div",0,1),ne("click",function(){return n.toggle()}),I(3,"div",2),te(4,Cu,2,1,"span",3),te(5,yP,3,2,"span",4),B(),I(6,"div",5),Se(7,"div",6),B()(),te(8,lq,4,14,"ng-template",7),ne("backdropClick",function(){return n.close()})("attach",function(){return n._onAttached()})("detach",function(){return n.close()})),2&r){var l=Dn(1);lt("aria-owns",n.panelOpen?n.id+"-panel":null),G(3),U("ngSwitch",n.empty),lt("id",n._valueId),G(1),U("ngSwitchCase",!0),G(1),U("ngSwitchCase",!1),G(3),U("cdkConnectedOverlayPanelClass",n._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",n._scrollStrategy)("cdkConnectedOverlayOrigin",l)("cdkConnectedOverlayOpen",n.panelOpen)("cdkConnectedOverlayPositions",n._positions)("cdkConnectedOverlayMinWidth",null==n._triggerRect?null:n._triggerRect.width)("cdkConnectedOverlayOffsetY",n._offsetY)}},directives:[f3,rc,kf,mh,gA,As],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{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{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.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-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.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;display:inline-block;visibility:hidden}\n'],encapsulation:2,data:{animation:[oH.transformPanelWrap,oH.transformPanel]},changeDetection:0}),i}(),bP=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({providers:[dq],imports:[[io,Nf,Q1,vn],If,PS,Q1,vn]}),i}(),LS=["tooltip"],CP="tooltip-panel",FS=Vh({passive:!0}),SP=new Ae("mat-tooltip-scroll-strategy"),mq={provide:SP,deps:[aa],useFactory:function MP(i){return function(){return i.scrollStrategies.reposition({scrollThrottle:20})}}},_q=new Ae("mat-tooltip-default-options",{providedIn:"root",factory:function dH(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),hH=function(){var i=function(){function s(r,n,l,c,p,_,w,M,A,O,F,Y){var $=this;R(this,s),this._overlay=r,this._elementRef=n,this._scrollDispatcher=l,this._viewContainerRef=c,this._ngZone=p,this._platform=_,this._ariaDescriber=w,this._focusMonitor=M,this._dir=O,this._defaultOptions=F,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 Xe,this._scrollStrategy=A,this._document=Y,F&&(F.position&&(this.position=F.position),F.touchGestures&&(this.touchGestures=F.touchGestures)),O.change.pipe(Wt(this._destroyed)).subscribe(function(){$._overlayRef&&$._updatePosition($._overlayRef)})}return L(s,[{key:"position",get:function(){return this._position},set:function(n){var l;n!==this._position&&(this._position=n,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(l=this._tooltipInstance)||void 0===l||l.show(0),this._overlayRef.updatePosition()))}},{key:"disabled",get:function(){return this._disabled},set:function(n){this._disabled=gt(n),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}},{key:"showDelay",get:function(){return this._showDelay},set:function(n){this._showDelay=Va(n)}},{key:"hideDelay",get:function(){return this._hideDelay},set:function(n){this._hideDelay=Va(n),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}},{key:"message",get:function(){return this._message},set:function(n){var l=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=n?String(n).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(function(){Promise.resolve().then(function(){l._ariaDescriber.describe(l._elementRef.nativeElement,l.message,"tooltip")})}))}},{key:"tooltipClass",get:function(){return this._tooltipClass},set:function(n){this._tooltipClass=n,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}},{key:"ngAfterViewInit",value:function(){var n=this;this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Wt(this._destroyed)).subscribe(function(l){l?"keyboard"===l&&n._ngZone.run(function(){return n.show()}):n._ngZone.run(function(){return n.hide(0)})})}},{key:"ngOnDestroy",value:function(){var n=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(function(l){var c=Pr(l,2);n.removeEventListener(c[0],c[1],FS)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(n,this.message,"tooltip"),this._focusMonitor.stopMonitoring(n)}},{key:"show",value:function(){var n=this,l=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 c=this._createOverlay();this._detach(),this._portal=this._portal||new Rf(this._tooltipComponent,this._viewContainerRef);var p=this._tooltipInstance=c.attach(this._portal).instance;p._triggerElement=this._elementRef.nativeElement,p._mouseLeaveHideDelay=this._hideDelay,p.afterHidden().pipe(Wt(this._destroyed)).subscribe(function(){return n._detach()}),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),p.show(l)}}},{key:"hide",value:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.hideDelay;this._tooltipInstance&&this._tooltipInstance.hide(n)}},{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 l,n=this;if(this._overlayRef)return this._overlayRef;var c=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),p=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".".concat(this._cssClassPrefix,"-tooltip")).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(c);return p.positionChanges.pipe(Wt(this._destroyed)).subscribe(function(_){n._updateCurrentPositionClass(_.connectionPair),n._tooltipInstance&&_.scrollableViewProperties.isOverlayClipped&&n._tooltipInstance.isVisible()&&n._ngZone.run(function(){return n.hide(0)})}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:p,panelClass:"".concat(this._cssClassPrefix,"-").concat(CP),scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(Wt(this._destroyed)).subscribe(function(){return n._detach()}),this._overlayRef.outsidePointerEvents().pipe(Wt(this._destroyed)).subscribe(function(){var _;return null===(_=n._tooltipInstance)||void 0===_?void 0:_._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe(Wt(this._destroyed)).subscribe(function(_){n._isTooltipVisible()&&27===_.keyCode&&!ia(_)&&(_.preventDefault(),_.stopPropagation(),n._ngZone.run(function(){return n.hide(0)}))}),(null===(l=this._defaultOptions)||void 0===l?void 0:l.disableTooltipInteractivity)&&this._overlayRef.addPanelClass("".concat(this._cssClassPrefix,"-tooltip-panel-non-interactive")),this._overlayRef}},{key:"_detach",value:function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}},{key:"_updatePosition",value:function(n){var l=n.getConfig().positionStrategy,c=this._getOrigin(),p=this._getOverlayPosition();l.withPositions([this._addOffset(Object.assign(Object.assign({},c.main),p.main)),this._addOffset(Object.assign(Object.assign({},c.fallback),p.fallback))])}},{key:"_addOffset",value:function(n){return n}},{key:"_getOrigin",value:function(){var c,n=!this._dir||"ltr"==this._dir.value,l=this.position;"above"==l||"below"==l?c={originX:"center",originY:"above"==l?"top":"bottom"}:"before"==l||"left"==l&&n||"right"==l&&!n?c={originX:"start",originY:"center"}:("after"==l||"right"==l&&n||"left"==l&&!n)&&(c={originX:"end",originY:"center"});var p=this._invertPosition(c.originX,c.originY);return{main:c,fallback:{originX:p.x,originY:p.y}}}},{key:"_getOverlayPosition",value:function(){var c,n=!this._dir||"ltr"==this._dir.value,l=this.position;"above"==l?c={overlayX:"center",overlayY:"bottom"}:"below"==l?c={overlayX:"center",overlayY:"top"}:"before"==l||"left"==l&&n||"right"==l&&!n?c={overlayX:"end",overlayY:"center"}:("after"==l||"right"==l&&n||"left"==l&&!n)&&(c={overlayX:"start",overlayY:"center"});var p=this._invertPosition(c.overlayX,c.overlayY);return{main:c,fallback:{overlayX:p.x,overlayY:p.y}}}},{key:"_updateTooltipMessage",value:function(){var n=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(gn(1),Wt(this._destroyed)).subscribe(function(){n._tooltipInstance&&n._overlayRef.updatePosition()}))}},{key:"_setTooltipClass",value:function(n){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=n,this._tooltipInstance._markForCheck())}},{key:"_invertPosition",value:function(n,l){return"above"===this.position||"below"===this.position?"top"===l?l="bottom":"bottom"===l&&(l="top"):"end"===n?n="start":"start"===n&&(n="end"),{x:n,y:l}}},{key:"_updateCurrentPositionClass",value:function(n){var _,l=n.overlayY,c=n.originX;if((_="center"===l?this._dir&&"rtl"===this._dir.value?"end"===c?"left":"right":"start"===c?"left":"right":"bottom"===l&&"top"===n.originY?"above":"below")!==this._currentPosition){var w=this._overlayRef;if(w){var M="".concat(this._cssClassPrefix,"-").concat(CP,"-");w.removePanelClass(M+this._currentPosition),w.addPanelClass(M+_)}this._currentPosition=_}}},{key:"_setupPointerEnterEventsIfNeeded",value:function(){var n=this;this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",function(){n._setupPointerExitEventsIfNeeded(),n.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",function(){n._setupPointerExitEventsIfNeeded(),clearTimeout(n._touchstartTimeout),n._touchstartTimeout=setTimeout(function(){return n.show()},500)}])),this._addListeners(this._passiveListeners))}},{key:"_setupPointerExitEventsIfNeeded",value:function(){var l,n=this;if(!this._pointerExitEventsInitialized){this._pointerExitEventsInitialized=!0;var c=[];if(this._platformSupportsMouseEvents())c.push(["mouseleave",function(_){var w,M=_.relatedTarget;(!M||!(null===(w=n._overlayRef)||void 0===w?void 0:w.overlayElement.contains(M)))&&n.hide()}],["wheel",function(_){return n._wheelListener(_)}]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();var p=function(){clearTimeout(n._touchstartTimeout),n.hide(n._defaultOptions.touchendHideDelay)};c.push(["touchend",p],["touchcancel",p])}this._addListeners(c),(l=this._passiveListeners).push.apply(l,c)}}},{key:"_addListeners",value:function(n){var l=this;n.forEach(function(c){var p=Pr(c,2);l._elementRef.nativeElement.addEventListener(p[0],p[1],FS)})}},{key:"_platformSupportsMouseEvents",value:function(){return!this._platform.IOS&&!this._platform.ANDROID}},{key:"_wheelListener",value:function(n){if(this._isTooltipVisible()){var l=this._document.elementFromPoint(n.clientX,n.clientY),c=this._elementRef.nativeElement;l!==c&&!c.contains(l)&&this.hide()}}},{key:"_disableNativeGesturesIfNecessary",value:function(){var n=this.touchGestures;if("off"!==n){var l=this._elementRef.nativeElement,c=l.style;("on"===n||"INPUT"!==l.nodeName&&"TEXTAREA"!==l.nodeName)&&(c.userSelect=c.msUserSelect=c.webkitUserSelect=c.MozUserSelect="none"),("on"===n||!l.draggable)&&(c.webkitUserDrag="none"),c.touchAction="none",c.webkitTapHighlightColor="transparent"}}}]),s}();return i.\u0275fac=function(r){lf()},i.\u0275dir=be({type:i,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),i}(),kP=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w,M,A,O,F,Y,$,oe){var le;return R(this,n),(le=r.call(this,l,c,p,_,w,M,A,O,F,Y,$,oe))._tooltipComponent=lp,le}return L(n)}(hH);return i.\u0275fac=function(r){return new(r||i)(z(aa),z(tt),z(NN),z(wr),z(Pt),z(pn),z(m3),z(Rl),z(SP),z(Ei,8),z(_q,8),z(Jt))},i.\u0275dir=be({type:i,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[Re]}),i}(),DP=function(){var i=function(){function s(r,n){R(this,s),this._changeDetectorRef=r,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new Xe,this._animationsDisabled="NoopAnimations"===n}return L(s,[{key:"show",value:function(n){var l=this;clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(function(){l._toggleVisibility(!0),l._showTimeoutId=void 0},n)}},{key:"hide",value:function(n){var l=this;clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){l._toggleVisibility(!1),l._hideTimeoutId=void 0},n)}},{key:"afterHidden",value:function(){return this._onHide}},{key:"isVisible",value:function(){return this._isVisible}},{key:"ngOnDestroy",value:function(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}},{key:"_handleBodyInteraction",value:function(){this._closeOnInteraction&&this.hide(0)}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}},{key:"_handleMouseLeave",value:function(n){var l=n.relatedTarget;(!l||!this._triggerElement.contains(l))&&this.hide(this._mouseLeaveHideDelay)}},{key:"_onShow",value:function(){}},{key:"_handleAnimationEnd",value:function(n){var l=n.animationName;(l===this._showAnimation||l===this._hideAnimation)&&this._finalizeAnimation(l===this._showAnimation)}},{key:"_finalizeAnimation",value:function(n){n?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}},{key:"_toggleVisibility",value:function(n){var l=this._tooltip.nativeElement,c=this._showAnimation,p=this._hideAnimation;if(l.classList.remove(n?p:c),l.classList.add(n?c:p),this._isVisible=n,n&&!this._animationsDisabled&&"function"==typeof getComputedStyle){var _=getComputedStyle(l);("0s"===_.getPropertyValue("animation-duration")||"none"===_.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}n&&this._onShow(),this._animationsDisabled&&(l.classList.add("_mat-animation-noopable"),this._finalizeAnimation(n))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(hn),z(mi,8))},i.\u0275dir=be({type:i}),i}(),lp=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p){var _;return R(this,n),(_=r.call(this,l,p))._breakpointObserver=c,_._isHandset=_._breakpointObserver.observe("(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)"),_._showAnimation="mat-tooltip-show",_._hideAnimation="mat-tooltip-hide",_}return L(n)}(DP);return i.\u0275fac=function(r){return new(r||i)(z(hn),z(iP),z(mi,8))},i.\u0275cmp=ke({type:i,selectors:[["mat-tooltip-component"]],viewQuery:function(r,n){var l;1&r&&Rt(LS,7),2&r&&Ve(l=Ge())&&(n._tooltip=l.first)},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(r,n){1&r&&ne("mouseleave",function(c){return n._handleMouseLeave(c)}),2&r&&ta("zoom",n.isVisible()?1:null)},features:[Re],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(r,n){var l;1&r&&(I(0,"div",0,1),ne("animationend",function(p){return n._handleAnimationEnd(p)}),vf(2,"async"),K(3),B()),2&r&&(Ze("mat-tooltip-handset",null==(l=fh(2,4,n._isHandset))?null:l.matches),U("ngClass",n.tooltipClass),G(3),Ln(n.message))},directives:[As],pipes:[xi],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}\n"],encapsulation:2,changeDetection:0}),i}(),xP=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({providers:[mq],imports:[[xA,io,Nf,vn],vn,If]}),i}();function yq(i,s){if(1&i&&(I(0,"mat-option",19),K(1),B()),2&i){var r=s.$implicit;U("value",r),G(1),Le(" ",r," ")}}function pH(i,s){if(1&i){var r=xe();I(0,"mat-form-field",16)(1,"mat-select",17),ne("selectionChange",function(c){return he(r),Q(2)._changePageSize(c.value)}),te(2,yq,2,2,"mat-option",18),B()()}if(2&i){var n=Q(2);U("appearance",n._formFieldAppearance)("color",n.color),G(1),U("value",n.pageSize)("disabled",n.disabled)("aria-label",n._intl.itemsPerPageLabel),G(1),U("ngForOf",n._displayedPageSizeOptions)}}function TP(i,s){if(1&i&&(I(0,"div",20),K(1),B()),2&i){var r=Q(2);G(1),Ln(r.pageSize)}}function AP(i,s){if(1&i&&(I(0,"div",12)(1,"div",13),K(2),B(),te(3,pH,3,6,"mat-form-field",14),te(4,TP,2,1,"div",15),B()),2&i){var r=Q();G(2),Le(" ",r._intl.itemsPerPageLabel," "),G(1),U("ngIf",r._displayedPageSizeOptions.length>1),G(1),U("ngIf",r._displayedPageSizeOptions.length<=1)}}function Mg(i,s){if(1&i){var r=xe();I(0,"button",21),ne("click",function(){return he(r),Q().firstPage()}),Bi(),I(1,"svg",7),Se(2,"path",22),B()()}if(2&i){var n=Q();U("matTooltip",n._intl.firstPageLabel)("matTooltipDisabled",n._previousButtonsDisabled())("matTooltipPosition","above")("disabled",n._previousButtonsDisabled()),lt("aria-label",n._intl.firstPageLabel)}}function bq(i,s){if(1&i){var r=xe();Bi(),Zl(),I(0,"button",23),ne("click",function(){return he(r),Q().lastPage()}),Bi(),I(1,"svg",7),Se(2,"path",24),B()()}if(2&i){var n=Q();U("matTooltip",n._intl.lastPageLabel)("matTooltipDisabled",n._nextButtonsDisabled())("matTooltipPosition","above")("disabled",n._nextButtonsDisabled()),lt("aria-label",n._intl.lastPageLabel)}}var kg=function(){var i=L(function s(){R(this,s),this.changes=new Xe,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(r,n,l){if(0==l||0==n)return"0 of ".concat(l);var c=r*n,p=c<(l=Math.max(l,0))?Math.min(c+n,l):c+n;return"".concat(c+1," \u2013 ").concat(p," of ").concat(l)}});return i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),gH={provide:kg,deps:[[new ai,new Kl,kg]],useFactory:function vH(i){return i||new kg}},Cq=new Ae("MAT_PAGINATOR_DEFAULT_OPTIONS"),_H=Fl(LB(function(){return L(function i(){R(this,i)})}())),wq=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p){var _;if(R(this,n),(_=r.call(this))._intl=l,_._changeDetectorRef=c,_._pageIndex=0,_._length=0,_._pageSizeOptions=[],_._hidePageSize=!1,_._showFirstLastButtons=!1,_.page=new ye,_._intlChanges=l.changes.subscribe(function(){return _._changeDetectorRef.markForCheck()}),p){var w=p.pageSize,M=p.pageSizeOptions,A=p.hidePageSize,O=p.showFirstLastButtons;null!=w&&(_._pageSize=w),null!=M&&(_._pageSizeOptions=M),null!=A&&(_._hidePageSize=A),null!=O&&(_._showFirstLastButtons=O)}return _}return L(n,[{key:"pageIndex",get:function(){return this._pageIndex},set:function(c){this._pageIndex=Math.max(Va(c),0),this._changeDetectorRef.markForCheck()}},{key:"length",get:function(){return this._length},set:function(c){this._length=Va(c),this._changeDetectorRef.markForCheck()}},{key:"pageSize",get:function(){return this._pageSize},set:function(c){this._pageSize=Math.max(Va(c),0),this._updateDisplayedPageSizeOptions()}},{key:"pageSizeOptions",get:function(){return this._pageSizeOptions},set:function(c){this._pageSizeOptions=(c||[]).map(function(p){return Va(p)}),this._updateDisplayedPageSizeOptions()}},{key:"hidePageSize",get:function(){return this._hidePageSize},set:function(c){this._hidePageSize=gt(c)}},{key:"showFirstLastButtons",get:function(){return this._showFirstLastButtons},set:function(c){this._showFirstLastButtons=gt(c)}},{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 c=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(c)}}},{key:"previousPage",value:function(){if(this.hasPreviousPage()){var c=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(c)}}},{key:"firstPage",value:function(){if(this.hasPreviousPage()){var c=this.pageIndex;this.pageIndex=0,this._emitPageEvent(c)}}},{key:"lastPage",value:function(){if(this.hasNextPage()){var c=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(c)}}},{key:"hasPreviousPage",value:function(){return this.pageIndex>=1&&0!=this.pageSize}},{key:"hasNextPage",value:function(){var c=this.getNumberOfPages()-1;return this.pageIndex active-desc",$n(u))]),leftPointer:zi("leftPointer",[Wn("active-asc, asc",mt({transform:"rotate(-45deg)"})),Wn("active-desc, desc",mt({transform:"rotate(45deg)"})),Yn("active-asc <=> active-desc",$n(u))]),rightPointer:zi("rightPointer",[Wn("active-asc, asc",mt({transform:"rotate(45deg)"})),Wn("active-desc, desc",mt({transform:"rotate(-45deg)"})),Yn("active-asc <=> active-desc",$n(u))]),arrowOpacity:zi("arrowOpacity",[Wn("desc-to-active, asc-to-active, active",mt({opacity:1})),Wn("desc-to-hint, asc-to-hint, hint",mt({opacity:.54})),Wn("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",mt({opacity:0})),Yn("* => asc, * => desc, * => active, * => hint, * => void",$n("0ms")),Yn("* <=> *",$n(u))]),arrowPosition:zi("arrowPosition",[Yn("* => desc-to-hint, * => desc-to-active",$n(u,Vf([mt({transform:"translateY(-25%)"}),mt({transform:"translateY(0)"})]))),Yn("* => hint-to-desc, * => active-to-desc",$n(u,Vf([mt({transform:"translateY(0)"}),mt({transform:"translateY(25%)"})]))),Yn("* => asc-to-hint, * => asc-to-active",$n(u,Vf([mt({transform:"translateY(25%)"}),mt({transform:"translateY(0)"})]))),Yn("* => hint-to-asc, * => active-to-asc",$n(u,Vf([mt({transform:"translateY(0)"}),mt({transform:"translateY(-25%)"})]))),Wn("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",mt({transform:"translateY(0)"})),Wn("hint-to-desc, active-to-desc, desc",mt({transform:"translateY(-25%)"})),Wn("hint-to-asc, active-to-asc, asc",mt({transform:"translateY(25%)"}))]),allowChildren:zi("allowChildren",[Yn("* <=> *",[y1("@*",_1(),{optional:!0})])])},m=function(){var i=L(function s(){R(this,s),this.changes=new Xe});return i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),b={provide:m,deps:[[new ai,new Kl,m]],useFactory:function y(i){return i||new m}},C=new Ae("MAT_SORT_DEFAULT_OPTIONS"),S=LB(Fl(function(){return L(function i(){R(this,i)})}())),k=function(){var i=function(s){se(n,s);var r=ue(n);function n(l){var c;return R(this,n),(c=r.call(this))._defaultOptions=l,c.sortables=new Map,c._stateChanges=new Xe,c.start="asc",c._direction="",c.sortChange=new ye,c}return L(n,[{key:"direction",get:function(){return this._direction},set:function(c){this._direction=c}},{key:"disableClear",get:function(){return this._disableClear},set:function(c){this._disableClear=gt(c)}},{key:"register",value:function(c){this.sortables.set(c.id,c)}},{key:"deregister",value:function(c){this.sortables.delete(c.id)}},{key:"sort",value:function(c){this.active!=c.id?(this.active=c.id,this.direction=c.start?c.start:this.start):this.direction=this.getNextSortDirection(c),this.sortChange.emit({active:this.active,direction:this.direction})}},{key:"getNextSortDirection",value:function(c){var p,_,w;if(!c)return"";var M=null!==(_=null!==(p=null==c?void 0:c.disableClear)&&void 0!==p?p:this.disableClear)&&void 0!==_?_:!!(null===(w=this._defaultOptions)||void 0===w?void 0:w.disableClear),A=function D(i,s){var r=["asc","desc"];return"desc"==i&&r.reverse(),s||r.push(""),r}(c.start||this.start,M),O=A.indexOf(this.direction)+1;return O>=A.length&&(O=0),A[O]}},{key:"ngOnInit",value:function(){this._markInitialized()}},{key:"ngOnChanges",value:function(){this._stateChanges.next()}},{key:"ngOnDestroy",value:function(){this._stateChanges.complete()}}]),n}(S);return i.\u0275fac=function(r){return new(r||i)(z(C,8))},i.\u0275dir=be({type:i,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Re,xn]}),i}(),x=Fl(function(){return L(function i(){R(this,i)})}()),T=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w,M,A){var O;return R(this,n),(O=r.call(this))._intl=l,O._changeDetectorRef=c,O._sort=p,O._columnDef=_,O._focusMonitor=w,O._elementRef=M,O._ariaDescriber=A,O._showIndicatorHint=!1,O._viewState={},O._arrowDirection="",O._disableViewStateAnimation=!1,O.arrowPosition="after",O._sortActionDescription="Sort",O._handleStateChanges(),O}return L(n,[{key:"sortActionDescription",get:function(){return this._sortActionDescription},set:function(c){this._updateSortActionDescription(c)}},{key:"disableClear",get:function(){return this._disableClear},set:function(c){this._disableClear=gt(c)}},{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),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}},{key:"ngAfterViewInit",value:function(){var c=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(p){var _=!!p;_!==c._showIndicatorHint&&(c._setIndicatorHintVisible(_),c._changeDetectorRef.markForCheck())})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}},{key:"_setIndicatorHintVisible",value:function(c){this._isDisabled()&&c||(this._showIndicatorHint=c,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}},{key:"_setAnimationTransitionState",value:function(c){this._viewState=c||{},this._disableViewStateAnimation&&(this._viewState={toState:c.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(c){!this._isDisabled()&&(32===c.keyCode||13===c.keyCode)&&(c.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 c=this._viewState.fromState;return(c?"".concat(c,"-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:"_updateSortActionDescription",value:function(c){var p,_;this._sortButton&&(null===(p=this._ariaDescriber)||void 0===p||p.removeDescription(this._sortButton,this._sortActionDescription),null===(_=this._ariaDescriber)||void 0===_||_.describe(this._sortButton,c)),this._sortActionDescription=c}},{key:"_handleStateChanges",value:function(){var c=this;this._rerenderSubscription=Rr(this._sort.sortChange,this._sort._stateChanges,this._intl.changes).subscribe(function(){c._isSorted()&&(c._updateArrowDirection(),("hint"===c._viewState.toState||"active"===c._viewState.toState)&&(c._disableViewStateAnimation=!0),c._setAnimationTransitionState({fromState:c._arrowDirection,toState:"active"}),c._showIndicatorHint=!1),!c._isSorted()&&c._viewState&&"active"===c._viewState.toState&&(c._disableViewStateAnimation=!1,c._setAnimationTransitionState({fromState:"active",toState:c._arrowDirection})),c._changeDetectorRef.markForCheck()})}}]),n}(x);return i.\u0275fac=function(r){return new(r||i)(z(m),z(hn),z(k,8),z("MAT_SORT_HEADER_COLUMN_DEF",8),z(Rl),z(tt),z(m3,8))},i.\u0275cmp=ke({type:i,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(r,n){1&r&&ne("click",function(){return n._handleClick()})("keydown",function(c){return n._handleKeydown(c)})("mouseenter",function(){return n._setIndicatorHintVisible(!0)})("mouseleave",function(){return n._setIndicatorHintVisible(!1)}),2&r&&(lt("aria-sort",n._getAriaSortAttribute()),Ze("mat-sort-header-disabled",n._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[Re],attrs:t,ngContentSelectors:o,decls:4,vars:7,consts:[[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(r,n){1&r&&(vi(),I(0,"div",0)(1,"div",1),Gt(2),B(),te(3,e,6,6,"div",2),B()),2&r&&(Ze("mat-sort-header-sorted",n._isSorted())("mat-sort-header-position-before","before"==n.arrowPosition),lt("tabindex",n._isDisabled()?null:0)("role",n._isDisabled()?null:"button"),G(3),U("ngIf",n._renderArrow()))},directives:[en],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:[f.indicator,f.leftPointer,f.rightPointer,f.arrowOpacity,f.arrowPosition,f.allowChildren]},changeDetection:0}),i}(),E=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({providers:[b],imports:[[io,vn]]}),i}(),V=[[["caption"]],[["colgroup"],["col"]]],N=["caption","colgroup, col"];function Z(i){return function(s){se(n,s);var r=ue(n);function n(){var l;R(this,n);for(var c=arguments.length,p=new Array(c),_=0;_4&&void 0!==arguments[4])||arguments[4],p=!(arguments.length>5&&void 0!==arguments[5])||arguments[5],_=arguments.length>6?arguments[6]:void 0;R(this,i),this._isNativeHtmlTable=s,this._stickCellCss=r,this.direction=n,this._coalescedStyleScheduler=l,this._isBrowser=c,this._needsPositionStickyOnElement=p,this._positionListener=_,this._cachedCellWidths=[],this._borderCellCss={top:"".concat(r,"-border-elem-top"),bottom:"".concat(r,"-border-elem-bottom"),left:"".concat(r,"-border-elem-left"),right:"".concat(r,"-border-elem-right")}}return L(i,[{key:"clearStickyPositioning",value:function(r,n){var _,l=this,c=[],p=qt(r);try{for(p.s();!(_=p.n()).done;){var w=_.value;if(w.nodeType===w.ELEMENT_NODE){c.push(w);for(var M=0;M3&&void 0!==arguments[3])||arguments[3];if(r.length&&this._isBrowser&&(n.some(function($){return $})||l.some(function($){return $}))){var _=r[0],w=_.children.length,M=this._getCellWidths(_,p),A=this._getStickyStartColumnPositions(M,n),O=this._getStickyEndColumnPositions(M,l),F=n.lastIndexOf(!0),Y=l.indexOf(!0);this._coalescedStyleScheduler.schedule(function(){var ae,$="rtl"===c.direction,oe=$?"right":"left",le=$?"left":"right",fe=qt(r);try{for(fe.s();!(ae=fe.n()).done;)for(var we=ae.value,De=0;De1&&void 0!==arguments[1])||arguments[1];if(!n&&this._cachedCellWidths.length)return this._cachedCellWidths;for(var l=[],c=r.children,p=0;p0;p--)n[p]&&(l[p]=c,c+=r[p]);return l}}]),i}(),Mq=new Ae("CDK_SPL"),bH=function(){var i=L(function s(r,n){R(this,s),this.viewContainer=r,this.elementRef=n});return i.\u0275fac=function(r){return new(r||i)(z(wr),z(tt))},i.\u0275dir=be({type:i,selectors:[["","rowOutlet",""]]}),i}(),CH=function(){var i=L(function s(r,n){R(this,s),this.viewContainer=r,this.elementRef=n});return i.\u0275fac=function(r){return new(r||i)(z(wr),z(tt))},i.\u0275dir=be({type:i,selectors:[["","headerRowOutlet",""]]}),i}(),wH=function(){var i=L(function s(r,n){R(this,s),this.viewContainer=r,this.elementRef=n});return i.\u0275fac=function(r){return new(r||i)(z(wr),z(tt))},i.\u0275dir=be({type:i,selectors:[["","footerRowOutlet",""]]}),i}(),SH=function(){var i=L(function s(r,n){R(this,s),this.viewContainer=r,this.elementRef=n});return i.\u0275fac=function(r){return new(r||i)(z(wr),z(tt))},i.\u0275dir=be({type:i,selectors:[["","noDataRowOutlet",""]]}),i}(),MH=function(){var i=function(){function s(r,n,l,c,p,_,w,M,A,O,F,Y){R(this,s),this._differs=r,this._changeDetectorRef=n,this._elementRef=l,this._dir=p,this._platform=w,this._viewRepeater=M,this._coalescedStyleScheduler=A,this._viewportRuler=O,this._stickyPositioningListener=F,this._ngZone=Y,this._onDestroy=new Xe,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.contentChanged=new ye,this.viewChange=new Na({start:0,end:Number.MAX_VALUE}),c||this._elementRef.nativeElement.setAttribute("role","table"),this._document=_,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return L(s,[{key:"trackBy",get:function(){return this._trackByFn},set:function(n){this._trackByFn=n}},{key:"dataSource",get:function(){return this._dataSource},set:function(n){this._dataSource!==n&&this._switchDataSource(n)}},{key:"multiTemplateDataRows",get:function(){return this._multiTemplateDataRows},set:function(n){this._multiTemplateDataRows=gt(n),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}},{key:"fixedLayout",get:function(){return this._fixedLayout},set:function(n){this._fixedLayout=gt(n),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}},{key:"ngOnInit",value:function(){var n=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create(function(l,c){return n.trackBy?n.trackBy(c.dataIndex,c.data):c}),this._viewportRuler.change().pipe(Wt(this._onDestroy)).subscribe(function(){n._forceRecalculateCellWidths=!0})}},{key:"ngAfterContentChecked",value:function(){this._cacheRowDefs(),this._cacheColumnDefs();var l=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||l,this._forceRecalculateCellWidths=l,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,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(function(n){n.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),pP(this.dataSource)&&this.dataSource.disconnect(this)}},{key:"renderRows",value:function(){var n=this;this._renderRows=this._getAllRenderRows();var l=this._dataDiffer.diff(this._renderRows);if(!l)return this._updateNoDataRow(),void this.contentChanged.next();var c=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(l,c,function(p,_,w){return n._getEmbeddedViewArgs(p.item,w)},function(p){return p.item.data},function(p){1===p.operation&&p.context&&n._renderCellTemplateForItem(p.record.item.rowDef,p.context)}),this._updateRowIndexContext(),l.forEachIdentityChange(function(p){c.get(p.currentIndex).context.$implicit=p.item.data}),this._updateNoDataRow(),this._ngZone&&Pt.isInAngularZone()?this._ngZone.onStable.pipe(gn(1),Wt(this._onDestroy)).subscribe(function(){n.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}},{key:"addColumnDef",value:function(n){this._customColumnDefs.add(n)}},{key:"removeColumnDef",value:function(n){this._customColumnDefs.delete(n)}},{key:"addRowDef",value:function(n){this._customRowDefs.add(n)}},{key:"removeRowDef",value:function(n){this._customRowDefs.delete(n)}},{key:"addHeaderRowDef",value:function(n){this._customHeaderRowDefs.add(n),this._headerRowDefChanged=!0}},{key:"removeHeaderRowDef",value:function(n){this._customHeaderRowDefs.delete(n),this._headerRowDefChanged=!0}},{key:"addFooterRowDef",value:function(n){this._customFooterRowDefs.add(n),this._footerRowDefChanged=!0}},{key:"removeFooterRowDef",value:function(n){this._customFooterRowDefs.delete(n),this._footerRowDefChanged=!0}},{key:"setNoDataRow",value:function(n){this._customNoDataRow=n}},{key:"updateStickyHeaderRowStyles",value:function(){var n=this._getRenderedRows(this._headerRowOutlet),c=this._elementRef.nativeElement.querySelector("thead");c&&(c.style.display=n.length?"":"none");var p=this._headerRowDefs.map(function(_){return _.sticky});this._stickyStyler.clearStickyPositioning(n,["top"]),this._stickyStyler.stickRows(n,p,"top"),this._headerRowDefs.forEach(function(_){return _.resetStickyChanged()})}},{key:"updateStickyFooterRowStyles",value:function(){var n=this._getRenderedRows(this._footerRowOutlet),c=this._elementRef.nativeElement.querySelector("tfoot");c&&(c.style.display=n.length?"":"none");var p=this._footerRowDefs.map(function(_){return _.sticky});this._stickyStyler.clearStickyPositioning(n,["bottom"]),this._stickyStyler.stickRows(n,p,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,p),this._footerRowDefs.forEach(function(_){return _.resetStickyChanged()})}},{key:"updateStickyColumnStyles",value:function(){var n=this,l=this._getRenderedRows(this._headerRowOutlet),c=this._getRenderedRows(this._rowOutlet),p=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([].concat(yt(l),yt(c),yt(p)),["left","right"]),this._stickyColumnStylesNeedReset=!1),l.forEach(function(_,w){n._addStickyColumnStyles([_],n._headerRowDefs[w])}),this._rowDefs.forEach(function(_){for(var w=[],M=0;M0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach(function(l,c){return n._renderRow(n._headerRowOutlet,l,c)}),this.updateStickyHeaderRowStyles()}},{key:"_forceRenderFooterRows",value:function(){var n=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach(function(l,c){return n._renderRow(n._footerRowOutlet,l,c)}),this.updateStickyFooterRowStyles()}},{key:"_addStickyColumnStyles",value:function(n,l){var c=this,p=Array.from(l.columns||[]).map(function(M){return c._columnDefsByName.get(M)}),_=p.map(function(M){return M.sticky}),w=p.map(function(M){return M.stickyEnd});this._stickyStyler.updateStickyColumns(n,_,w,!this._fixedLayout||this._forceRecalculateCellWidths)}},{key:"_getRenderedRows",value:function(n){for(var l=[],c=0;c3&&void 0!==arguments[3]?arguments[3]:{},_=n.viewContainer.createEmbeddedView(l.template,p,c);return this._renderCellTemplateForItem(l,p),_}},{key:"_renderCellTemplateForItem",value:function(n,l){var p,c=qt(this._getCellTemplates(n));try{for(c.s();!(p=c.n()).done;)Yt.mostRecentCellOutlet&&Yt.mostRecentCellOutlet._viewContainer.createEmbeddedView(p.value,l)}catch(w){c.e(w)}finally{c.f()}this._changeDetectorRef.markForCheck()}},{key:"_updateRowIndexContext",value:function(){for(var n=this._rowOutlet.viewContainer,l=0,c=n.length;l0&&void 0!==arguments[0]?arguments[0]:[];return R(this,r),(n=s.call(this))._renderData=new Na([]),n._filter=new Na(""),n._internalPageChanges=new Xe,n._renderChangesSubscription=null,n.sortingDataAccessor=function(c,p){var _=c[p];if(DN(_)){var w=Number(_);return wF?oe=1:O0)){var _=Math.ceil(p.length/p.pageSize)-1||0,w=Math.min(p.pageIndex,_);w!==p.pageIndex&&(p.pageIndex=w,c._internalPageChanges.next())}})}},{key:"connect",value:function(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}},{key:"disconnect",value:function(){var l;null===(l=this._renderChangesSubscription)||void 0===l||l.unsubscribe(),this._renderChangesSubscription=null}}]),r}(zY),TQ=function(i){se(r,i);var s=ue(r);function r(){return R(this,r),s.apply(this,arguments)}return L(r)}(wee);function AQ(i,s){return s?function(r){return Dh(s.pipe(gn(1),function See(){return gr(function(i,s){i.subscribe(ve(s,Gr))})}()),r.pipe(AQ(i)))}:Ri(function(r,n){return i(r,n).pipe(gn(1),function Mee(i){return on(function(){return i})}(r))})}function PH(i){var s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:El,r=qv(i,s);return AQ(function(){return r})}var EQ=Vh({passive:!0}),kee=function(){var i=function(){function s(r,n){R(this,s),this._platform=r,this._ngZone=n,this._monitoredElements=new Map}return L(s,[{key:"monitor",value:function(n){var l=this;if(!this._platform.isBrowser)return Sr;var c=vu(n),p=this._monitoredElements.get(c);if(p)return p.subject;var _=new Xe,w="cdk-text-field-autofilled",M=function(O){"cdk-text-field-autofill-start"!==O.animationName||c.classList.contains(w)?"cdk-text-field-autofill-end"===O.animationName&&c.classList.contains(w)&&(c.classList.remove(w),l._ngZone.run(function(){return _.next({target:O.target,isAutofilled:!1})})):(c.classList.add(w),l._ngZone.run(function(){return _.next({target:O.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){c.addEventListener("animationstart",M,EQ),c.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(c,{subject:_,unlisten:function(){c.removeEventListener("animationstart",M,EQ)}}),_}},{key:"stopMonitoring",value:function(n){var l=vu(n),c=this._monitoredElements.get(l);c&&(c.unlisten(),c.subject.complete(),l.classList.remove("cdk-text-field-autofill-monitored"),l.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(l))}},{key:"ngOnDestroy",value:function(){var n=this;this._monitoredElements.forEach(function(l,c){return n.stopMonitoring(c)})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(pn),ge(Pt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),PQ=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({}),i}(),OQ=new Ae("MAT_INPUT_VALUE_ACCESSOR"),Dee=["button","checkbox","file","hidden","image","radio","range","reset","submit"],xee=0,Tee=X1(function(){return L(function i(s,r,n,l){R(this,i),this._defaultErrorStateMatcher=s,this._parentForm=r,this._parentFormGroup=n,this.ngControl=l})}()),ua=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w,M,A,O,F,Y){var $;R(this,n),($=r.call(this,M,_,w,p))._elementRef=l,$._platform=c,$._autofillMonitor=O,$._formField=Y,$._uid="mat-input-".concat(xee++),$.focused=!1,$.stateChanges=new Xe,$.controlType="mat-input",$.autofilled=!1,$._disabled=!1,$._type="text",$._readonly=!1,$._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(fe){return YT().has(fe)}),$._iOSKeyupListener=function(fe){var ae=fe.target;!ae.value&&0===ae.selectionStart&&0===ae.selectionEnd&&(ae.setSelectionRange(1,1),ae.setSelectionRange(0,0))};var oe=$._elementRef.nativeElement,le=oe.nodeName.toLowerCase();return $._inputValueAccessor=A||oe,$._previousNativeValue=$.value,$.id=$.id,c.IOS&&F.runOutsideAngular(function(){l.nativeElement.addEventListener("keyup",$._iOSKeyupListener)}),$._isServer=!$._platform.isBrowser,$._isNativeSelect="select"===le,$._isTextarea="textarea"===le,$._isInFormField=!!Y,$._isNativeSelect&&($.controlType=oe.multiple?"mat-native-select-multiple":"mat-native-select"),$}return L(n,[{key:"disabled",get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(c){this._disabled=gt(c),this.focused&&(this.focused=!1,this.stateChanges.next())}},{key:"id",get:function(){return this._id},set:function(c){this._id=c||this._uid}},{key:"required",get:function(){var c,p,_,w;return null!==(w=null!==(c=this._required)&&void 0!==c?c:null===(_=null===(p=this.ngControl)||void 0===p?void 0:p.control)||void 0===_?void 0:_.hasValidator(rS.required))&&void 0!==w&&w},set:function(c){this._required=gt(c)}},{key:"type",get:function(){return this._type},set:function(c){this._type=c||"text",this._validateType(),!this._isTextarea&&YT().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}},{key:"value",get:function(){return this._inputValueAccessor.value},set:function(c){c!==this.value&&(this._inputValueAccessor.value=c,this.stateChanges.next())}},{key:"readonly",get:function(){return this._readonly},set:function(c){this._readonly=gt(c)}},{key:"ngAfterViewInit",value:function(){var c=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(p){c.autofilled=p.isAutofilled,c.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),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}},{key:"ngDoCheck",value:function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}},{key:"focus",value:function(c){this._elementRef.nativeElement.focus(c)}},{key:"_focusChanged",value:function(c){c!==this.focused&&(this.focused=c,this.stateChanges.next())}},{key:"_onInput",value:function(){}},{key:"_dirtyCheckPlaceholder",value:function(){var c,p,_=(null===(p=null===(c=this._formField)||void 0===c?void 0:c._hideControlPlaceholder)||void 0===p?void 0:p.call(c))?null:this.placeholder;if(_!==this._previousPlaceholder){var w=this._elementRef.nativeElement;this._previousPlaceholder=_,_?w.setAttribute("placeholder",_):w.removeAttribute("placeholder")}}},{key:"_dirtyCheckNativeValue",value:function(){var c=this._elementRef.nativeElement.value;this._previousNativeValue!==c&&(this._previousNativeValue=c,this.stateChanges.next())}},{key:"_validateType",value:function(){Dee.indexOf(this._type)}},{key:"_isNeverEmpty",value:function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}},{key:"_isBadInput",value:function(){var c=this._elementRef.nativeElement.validity;return c&&c.badInput}},{key:"empty",get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}},{key:"shouldLabelFloat",get:function(){if(this._isNativeSelect){var c=this._elementRef.nativeElement,p=c.options[0];return this.focused||c.multiple||!this.empty||!!(c.selectedIndex>-1&&p&&p.label)}return this.focused||!this.empty}},{key:"setDescribedByIds",value:function(c){c.length?this._elementRef.nativeElement.setAttribute("aria-describedby",c.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}},{key:"onContainerClick",value:function(){this.focused||this.focus()}},{key:"_isInlineSelect",value:function(){var c=this._elementRef.nativeElement;return this._isNativeSelect&&(c.multiple||c.size>1)}}]),n}(Tee);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(pn),z(Bl,10),z(Sc,8),z($f,8),z(qy),z(OQ,10),z(kee),z(Pt),z(pb,8))},i.\u0275dir=be({type:i,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(r,n){1&r&&ne("focus",function(){return n._focusChanged(!0)})("blur",function(){return n._focusChanged(!1)})("input",function(){return n._onInput()}),2&r&&(bl("disabled",n.disabled)("required",n.required),lt("id",n.id)("data-placeholder",n.placeholder)("name",n.name||null)("readonly",n.readonly&&!n._isNativeSelect||null)("aria-invalid",n.empty&&n.required?null:n.errorState)("aria-required",n.required),Ze("mat-input-server",n._isServer)("mat-native-select-inline",n._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[ft([{provide:hb,useExisting:i}]),Re,xn]}),i}(),Aee=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({providers:[qy],imports:[[PQ,PS,vn],PQ,PS]}),i}(),Eee=["searchSelectInput"],Pee=["innerSelectSearch"];function Oee(i,s){if(1&i){var r=xe();I(0,"button",6),ne("click",function(){return he(r),Q()._reset(!0)}),I(1,"i",7),K(2,"close"),B()()}}var Iee=function(s){return{"mat-select-search-inner-multiple":s}},kc=function(){var i=function(){function s(r,n){R(this,s),this.matSelect=r,this.changeDetectorRef=n,this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.clearSearchInput=!0,this.disableInitialFocus=!1,this.changed=new ye,this.overlayClassSet=!1,this.change=new ye,this._onDestroy=new Xe}return L(s,[{key:"value",get:function(){return this._value}},{key:"ngOnInit",value:function(){var n=this,l="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(l):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,l]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[l]=!0):this.matSelect.panelClass=l,this.matSelect.openedChange.pipe(PH(1),Wt(this._onDestroy)).subscribe(function(c){c?(n.getWidth(),n.disableInitialFocus||n._focus()):n.clearSearchInput&&n._reset()}),this.matSelect.openedChange.pipe(gn(1)).pipe(Wt(this._onDestroy)).subscribe(function(){n._options=n.matSelect.options,n._options.changes.pipe(Wt(n._onDestroy)).subscribe(function(){var c=n.matSelect._keyManager;c&&n.matSelect.panelOpen&&setTimeout(function(){c.setFirstItemActive(),n.getWidth()},1)})}),this.change.pipe(Wt(this._onDestroy)).subscribe(function(){n.changeDetectorRef.detectChanges()}),this.initMultipleHandling()}},{key:"ngOnDestroy",value:function(){this._onDestroy.next(),this._onDestroy.complete()}},{key:"ngAfterViewInit",value:function(){var n=this;setTimeout(function(){n.setOverlayClass()}),this.matSelect.openedChange.pipe(gn(1),Wt(this._onDestroy)).subscribe(function(){n.matSelect.options.changes.pipe(Wt(n._onDestroy)).subscribe(function(){n.changeDetectorRef.markForCheck()})})}},{key:"_handleKeydown",value:function(n){(n.key&&1===n.key.length||n.keyCode>=65&&n.keyCode<=90||n.keyCode>=48&&n.keyCode<=57||32===n.keyCode)&&n.stopPropagation()}},{key:"writeValue",value:function(n){n!==this._value&&(this._value=n,this.change.emit(n))}},{key:"onInputChange",value:function(n){n.value!==this._value&&(this.initMultiSelectedValues(),this._value=n.value,this.changed.emit(n.value),this.change.emit(n.value))}},{key:"onBlur",value:function(n){this.writeValue(n.value)}},{key:"_focus",value:function(){if(this.searchSelectInput&&this.matSelect.panel){var n=this.matSelect.panel.nativeElement,l=n.scrollTop;this.searchSelectInput.nativeElement.focus(),n.scrollTop=l}}},{key:"_reset",value:function(n){!this.searchSelectInput||(this.searchSelectInput.nativeElement.value="",this.onInputChange(""),n&&this._focus())}},{key:"initMultiSelectedValues",value:function(){this.matSelect.multiple&&!this._value&&(this.previousSelectedValues=this.matSelect.options.filter(function(n){return n.selected}).map(function(n){return n.value}))}},{key:"setOverlayClass",value:function(){var n=this;this.overlayClassSet||(this.matSelect.openedChange.pipe(Wt(this._onDestroy)).subscribe(function(c){if(c){for(var _,p=n.searchSelectInput.nativeElement;p=p.parentElement;)if(p.classList.contains("cdk-overlay-pane")){_=p;break}_&&_.classList.add("cdk-overlay-pane-select-search")}}),this.overlayClassSet=!0)}},{key:"initMultipleHandling",value:function(){var n=this;this.matSelect.valueChange.pipe(Wt(this._onDestroy)).subscribe(function(l){if(n.matSelect.multiple){var c=!1;if(n._value&&n._value.length&&n.previousSelectedValues&&Array.isArray(n.previousSelectedValues)){(!l||!Array.isArray(l))&&(l=[]);var p=n.matSelect.options.map(function(_){return _.value});n.previousSelectedValues.forEach(function(_){-1===l.indexOf(_)&&-1===p.indexOf(_)&&(l.push(_),c=!0)})}c&&n.matSelect._onChange(l),n.previousSelectedValues=l}})}},{key:"getWidth",value:function(){if(this.innerSelectSearch&&this.innerSelectSearch.nativeElement){for(var l,n=this.innerSelectSearch.nativeElement;n=n.parentElement;)if(n.classList.contains("mat-select-panel")){l=n;break}l&&(this.innerSelectSearch.nativeElement.style.width=l.clientWidth+"px")}}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ua),z(hn))},i.\u0275cmp=ke({type:i,selectors:[["uds-mat-select-search"]],viewQuery:function(r,n){var l;1&r&&(Rt(Eee,7,tt),Rt(Pee,7,tt)),2&r&&(Ve(l=Ge())&&(n.searchSelectInput=l.first),Ve(l=Ge())&&(n.innerSelectSearch=l.first))},inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",disableInitialFocus:"disableInitialFocus"},outputs:{changed:"changed"},features:[ft([{provide:Ga,useExisting:En(function(){return i}),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(r,n){1&r&&(Se(0,"input",0),I(1,"div",1,2)(3,"input",3,4),ne("keydown",function(c){return n._handleKeydown(c)})("input",function(c){return n.onInputChange(c.target)})("blur",function(c){return n.onBlur(c.target)}),B(),te(5,Oee,3,0,"button",5),B()),2&r&&(G(1),U("ngClass",xs(3,Iee,n.matSelect.multiple)),G(2),U("placeholder",n.placeholderLabel),G(2),U("ngIf",n.value))},directives:[ua,As,en,qn],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}),i}();function Ree(i,s){1&i&&(I(0,"uds-translate"),K(1,"New user permission for"),B())}function Lee(i,s){1&i&&(I(0,"uds-translate"),K(1,"New group permission for"),B())}function Fee(i,s){if(1&i&&(I(0,"mat-option",11),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Ln(r.text)}}function Nee(i,s){if(1&i){var r=xe();I(0,"uds-mat-select-search",12),ne("changed",function(l){return he(r),Q().filterUser=l}),B()}}function Bee(i,s){if(1&i&&(I(0,"mat-option",11),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Ln(r.text)}}function Vee(i,s){if(1&i&&(I(0,"mat-option",11),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Ln(r.text)}}var Hee=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.data=c,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 ye(!0)}return L(s,[{key:"ngOnInit",value:function(){var n=this;this.rest.authenticators.summary().subscribe(function(l){l.forEach(function(c){n.authenticators.push({id:c.id,text:c.name})})})}},{key:"changeAuth",value:function(n){var l=this;this.entities.length=0,this.entity="",this.rest.authenticators.detail(n,this.data.type+"s").summary().subscribe(function(c){c.forEach(function(p){l.entities.push({id:p.id,text:p.name})})})}},{key:"save",value:function(){this.onSave.emit({authenticator:this.authenticator,entity:this.entity,permissision:this.permission}),this.dialogRef.close()}},{key:"filteredEntities",value:function(){var n=this,l=new Array;return this.entities.forEach(function(c){(!n.filterUser||c.text.toLocaleLowerCase().includes(n.filterUser.toLocaleLowerCase()))&&l.push(c)}),l}},{key:"getFieldLabel",value:function(n){return"user"===n?django.gettext("User"):"group"===n?django.gettext("Group"):"auth"===n?django.gettext("Authenticator"):django.gettext("Permission")}}],[{key:"launch",value:function(n,l,c){var p=window.innerWidth<800?"80%":"50%";return n.gui.dialog.open(s,{width:p,data:{type:l,item:c},disableClose:!0}).componentInstance.onSave}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){if(1&r&&(I(0,"h4",0),te(1,Ree,2,0,"uds-translate",1),Se(2,"b",2),te(3,Lee,2,0,"ng-template",null,3,Ko),B(),I(5,"mat-dialog-content")(6,"div",4)(7,"mat-form-field")(8,"mat-select",5),ne("valueChange",function(p){return n.changeAuth(p)})("ngModelChange",function(p){return n.authenticator=p}),te(9,Fee,2,2,"mat-option",6),B()(),I(10,"mat-form-field")(11,"mat-select",7),ne("ngModelChange",function(p){return n.entity=p}),te(12,Nee,1,0,"uds-mat-select-search",8),te(13,Bee,2,2,"mat-option",6),B()(),I(14,"mat-form-field")(15,"mat-select",7),ne("ngModelChange",function(p){return n.permission=p}),te(16,Vee,2,2,"mat-option",6),B()()()(),I(17,"mat-dialog-actions")(18,"button",9)(19,"uds-translate"),K(20,"Cancel"),B()(),I(21,"button",10),ne("click",function(){return n.save()}),I(22,"uds-translate"),K(23,"Ok"),B()()()),2&r){var l=Dn(4);G(1),U("ngIf","user"===n.data.type)("ngIfElse",l),G(1),U("innerHTML",n.data.item.name,Xi),G(6),U("placeholder",n.getFieldLabel("auth"))("ngModel",n.authenticator),G(1),U("ngForOf",n.authenticators),G(2),U("placeholder",n.getFieldLabel(n.data.type))("ngModel",n.entity),G(1),U("ngIf",n.entities.length>10),G(1),U("ngForOf",n.filteredEntities()),G(2),U("placeholder",n.getFieldLabel("perm"))("ngModel",n.permission),G(1),U("ngForOf",n.permissions)}},directives:[si,en,Gn,jr,or,Ua,pr,ar,ir,Pi,kc,li,qn,_i],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}"]}),i}();function zee(i,s){if(1&i){var r=xe();I(0,"div",11)(1,"div",12),K(2),B(),I(3,"div",13),K(4),I(5,"a",14),ne("click",function(){var p=he(r).$implicit;return Q(2).revokePermission(p)}),I(6,"i",15),K(7,"close"),B()()()()}if(2&i){var n=s.$implicit;G(2),th(" ",n.entity_name,"@",n.auth_name," "),G(2),Le(" ",n.perm_name," \xa0")}}function Gee(i,s){if(1&i){var r=xe();I(0,"div",7)(1,"div",8)(2,"div",9),ne("click",function(c){var _=he(r).$implicit;return Q().newPermission(_),c.preventDefault()}),I(3,"uds-translate"),K(4,"New permission..."),B()(),te(5,zee,8,3,"div",10),B()()}if(2&i){var n=s.$implicit;G(5),U("ngForOf",n)}}var Uee=function(s,r){return[s,r]},jee=function(){var i=function(){function s(r,n,l){R(this,s),this.api=r,this.dialogRef=n,this.data=l,this.userPermissions=[],this.groupPermissions=[]}return L(s,[{key:"ngOnInit",value:function(){this.reload()}},{key:"reload",value:function(){var n=this;this.data.rest.getPermissions(this.data.item.id).subscribe(function(l){n.updatePermissions(l)})}},{key:"updatePermissions",value:function(n){var l=this;this.userPermissions.length=0,this.groupPermissions.length=0,n.forEach(function(c){"user"===c.type?l.userPermissions.push(c):l.groupPermissions.push(c)})}},{key:"revokePermission",value:function(n){var l=this;this.api.gui.yesno(django.gettext("Remove"),django.gettext("Confirm revokation of permission")+" "+n.entity_name+"@"+n.auth_name+" "+n.perm_name+"").subscribe(function(c){c&&l.data.rest.revokePermission([n.id]).subscribe(function(p){l.reload()})})}},{key:"newPermission",value:function(n){var l=this,c=n===this.userPermissions?"user":"group";Hee.launch(this.api,c,this.data.item).subscribe(function(p){l.data.rest.addPermission(l.data.item.id,c+"s",p.entity,p.permissision).subscribe(function(_){l.reload()})})}}],[{key:"launch",value:function(n,l,c){var p=window.innerWidth<800?"90%":"60%";n.gui.dialog.open(s,{width:p,data:{rest:l,item:c},disableClose:!1})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"h4",0)(1,"uds-translate"),K(2,"Permissions for"),B(),K(3,"\xa0"),Se(4,"b",1),B(),I(5,"mat-dialog-content")(6,"div",2)(7,"uds-translate",3),K(8,"Users"),B(),I(9,"uds-translate",3),K(10,"Groups"),B()(),I(11,"div",4),te(12,Gee,6,1,"div",5),B()(),I(13,"mat-dialog-actions")(14,"button",6)(15,"uds-translate"),K(16,"Ok"),B()()()),2&r&&(G(4),U("innerHTML",n.data.item.name,Xi),G(8),U("ngForOf",DC(2,Uee,n.userPermissions,n.groupPermissions)))},directives:[si,Gn,jr,ir,li,qn,_i],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:#00000024 0 1px 4px;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:#00f;justify-content:center}.new[_ngcontent-%COMP%]:hover{color:#fff;background-color:#00f;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}"]}),i}(),Eq=Ht(2900),LQ=function(s){return void 0!==s.changingThisBreaksApplicationSecurity&&(s=s.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),'"'+(s=""+s).replace('"','""')+'"'},FQ=function(s){var r="";s.columns.forEach(function(l){r+=LQ(l.title)+","}),r=r.slice(0,-1)+"\r\n",s.dataSource.data.forEach(function(l){s.columns.forEach(function(c){var p=l[c.name];switch(c.type){case ui.DATE:p=zs("SHORT_DATE_FORMAT",p);break;case ui.DATETIME:p=zs("SHORT_DATETIME_FORMAT",p);break;case ui.DATETIMESEC:p=zs("SHORT_DATE_FORMAT",p," H:i:s");break;case ui.TIME:p=zs("TIME_FORMAT",p)}r+=LQ(p)+","}),r=r.slice(0,-1)+"\r\n"});var n=new Blob([r],{type:"text/csv"});setTimeout(function(){(0,Eq.saveAs)(n,s.title+".csv")},100)},Yee=function(){function i(s,r){R(this,i),this._document=r;var n=this._textarea=this._document.createElement("textarea"),l=n.style;l.position="fixed",l.top=l.opacity="0",l.left="-999em",n.setAttribute("aria-hidden","true"),n.value=s,this._document.body.appendChild(n)}return L(i,[{key:"copy",value:function(){var r=this._textarea,n=!1;try{if(r){var l=this._document.activeElement;r.select(),r.setSelectionRange(0,r.value.length),n=this._document.execCommand("copy"),l&&l.focus()}}catch(c){}return n}},{key:"destroy",value:function(){var r=this._textarea;r&&(r.remove(),this._textarea=void 0)}}]),i}(),qee=function(){var i=function(){function s(r){R(this,s),this._document=r}return L(s,[{key:"copy",value:function(n){var l=this.beginCopy(n),c=l.copy();return l.destroy(),c}},{key:"beginCopy",value:function(n){return new Yee(n,this._document)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(ge(Jt))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac,providedIn:"root"}),i}(),Zee=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({}),i}(),Xee=["mat-menu-item",""];function Kee(i,s){1&i&&(Bi(),I(0,"svg",2),Se(1,"polygon",3),B())}var NQ=["*"];function $ee(i,s){if(1&i){var r=xe();I(0,"div",0),ne("keydown",function(c){return he(r),Q()._handleKeydown(c)})("click",function(){return he(r),Q().closed.emit("click")})("@transformMenu.start",function(c){return he(r),Q()._onAnimationStart(c)})("@transformMenu.done",function(c){return he(r),Q()._onAnimationDone(c)}),I(1,"div",1),Gt(2),B()()}if(2&i){var n=Q();U("id",n.panelId)("ngClass",n._classList)("@transformMenu",n._panelAnimationState),lt("aria-label",n.ariaLabel||null)("aria-labelledby",n.ariaLabelledby||null)("aria-describedby",n.ariaDescribedby||null)}}var OH={transformMenu:zi("transformMenu",[Wn("void",mt({opacity:0,transform:"scale(0.8)"})),Yn("void => enter",$n("120ms cubic-bezier(0, 0, 0.2, 1)",mt({opacity:1,transform:"scale(1)"}))),Yn("* => void",$n("100ms 25ms linear",mt({opacity:0})))]),fadeInItems:zi("fadeInItems",[Wn("showing",mt({opacity:1})),Yn("void => *",[mt({opacity:0}),$n("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},BQ=new Ae("MatMenuContent"),Qee=function(){var i=function(){function s(r,n,l,c,p,_,w){R(this,s),this._template=r,this._componentFactoryResolver=n,this._appRef=l,this._injector=c,this._viewContainerRef=p,this._document=_,this._changeDetectorRef=w,this._attached=new Xe}return L(s,[{key:"attach",value:function(){var l,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._portal||(this._portal=new es(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new QT(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));var c=this._template.elementRef.nativeElement;c.parentNode.insertBefore(this._outlet.outletElement,c),null===(l=this._changeDetectorRef)||void 0===l||l.markForCheck(),this._portal.attach(this._outlet,n),this._attached.next()}},{key:"detach",value:function(){this._portal.isAttached&&this._portal.detach()}},{key:"ngOnDestroy",value:function(){this._outlet&&this._outlet.dispose()}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(hr),z(Wu),z(F_),z(kr),z(wr),z(Jt),z(hn))},i.\u0275dir=be({type:i}),i}(),Jee=function(){var i=function(s){se(n,s);var r=ue(n);function n(){return R(this,n),r.apply(this,arguments)}return L(n)}(Qee);return i.\u0275fac=function(){var s;return function(n){return(s||(s=cn(i)))(n||i)}}(),i.\u0275dir=be({type:i,selectors:[["ng-template","matMenuContent",""]],features:[ft([{provide:BQ,useExisting:i}]),Re]}),i}(),Pq=new Ae("MAT_MENU_PANEL"),ete=bc(Fl(function(){return L(function i(){R(this,i)})}())),EP=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w){var M,A;return R(this,n),(M=r.call(this))._elementRef=l,M._document=c,M._focusMonitor=p,M._parentMenu=_,M._changeDetectorRef=w,M.role="menuitem",M._hovered=new Xe,M._focused=new Xe,M._highlighted=!1,M._triggersSubmenu=!1,null===(A=null==_?void 0:_.addItem)||void 0===A||A.call(_,an(M)),M}return L(n,[{key:"focus",value:function(c,p){this._focusMonitor&&c?this._focusMonitor.focusVia(this._getHostElement(),c,p):this._getHostElement().focus(p),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(c){this.disabled&&(c.preventDefault(),c.stopPropagation())}},{key:"_handleMouseEnter",value:function(){this._hovered.next(this)}},{key:"getLabel",value:function(){for(var c,p=this._elementRef.nativeElement.cloneNode(!0),_=p.querySelectorAll("mat-icon, .material-icons"),w=0;w<_.length;w++)_[w].remove();return(null===(c=p.textContent)||void 0===c?void 0:c.trim())||""}},{key:"_setHighlighted",value:function(c){var p;this._highlighted=c,null===(p=this._changeDetectorRef)||void 0===p||p.markForCheck()}},{key:"_hasFocus",value:function(){return this._document&&this._document.activeElement===this._getHostElement()}}]),n}(ete);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(Jt),z(Rl),z(Pq,8),z(hn))},i.\u0275cmp=ke({type:i,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-focus-indicator"],hostVars:10,hostBindings:function(r,n){1&r&&ne("click",function(c){return n._checkDisabled(c)})("mouseenter",function(){return n._handleMouseEnter()}),2&r&&(lt("role",n.role)("tabindex",n._getTabIndex())("aria-disabled",n.disabled.toString())("disabled",n.disabled||null),Ze("mat-menu-item",!0)("mat-menu-item-highlighted",n._highlighted)("mat-menu-item-submenu-trigger",n._triggersSubmenu))},inputs:{disabled:"disabled",disableRipple:"disableRipple",role:"role"},exportAs:["matMenuItem"],features:[Re],attrs:Xee,ngContentSelectors:NQ,decls:3,vars:3,consts:[["matRipple","",1,"mat-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["class","mat-menu-submenu-icon","viewBox","0 0 5 10","focusable","false",4,"ngIf"],["viewBox","0 0 5 10","focusable","false",1,"mat-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(r,n){1&r&&(vi(),Gt(0),Se(1,"div",0),te(2,Kee,2,0,"svg",1)),2&r&&(G(1),U("matRippleDisabled",n.disableRipple||n.disabled)("matRippleTrigger",n._getHostElement()),G(1),U("ngIf",n._triggersSubmenu))},directives:[Nl,en],encapsulation:2,changeDetection:0}),i}(),VQ=new Ae("mat-menu-default-options",{providedIn:"root",factory:function tte(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}}),nte=0,PP=function(){var i=function(){function s(r,n,l,c){R(this,s),this._elementRef=r,this._ngZone=n,this._defaultOptions=l,this._changeDetectorRef=c,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new no,this._tabSubscription=Te.EMPTY,this._classList={},this._panelAnimationState="void",this._animationDone=new Xe,this.overlayPanelClass=this._defaultOptions.overlayPanelClass||"",this.backdropClass=this._defaultOptions.backdropClass,this._overlapTrigger=this._defaultOptions.overlapTrigger,this._hasBackdrop=this._defaultOptions.hasBackdrop,this.closed=new ye,this.close=this.closed,this.panelId="mat-menu-panel-".concat(nte++)}return L(s,[{key:"xPosition",get:function(){return this._xPosition},set:function(n){this._xPosition=n,this.setPositionClasses()}},{key:"yPosition",get:function(){return this._yPosition},set:function(n){this._yPosition=n,this.setPositionClasses()}},{key:"overlapTrigger",get:function(){return this._overlapTrigger},set:function(n){this._overlapTrigger=gt(n)}},{key:"hasBackdrop",get:function(){return this._hasBackdrop},set:function(n){this._hasBackdrop=gt(n)}},{key:"panelClass",set:function(n){var l=this,c=this._previousPanelClass;c&&c.length&&c.split(" ").forEach(function(p){l._classList[p]=!1}),this._previousPanelClass=n,n&&n.length&&(n.split(" ").forEach(function(p){l._classList[p]=!0}),this._elementRef.nativeElement.className="")}},{key:"classList",get:function(){return this.panelClass},set:function(n){this.panelClass=n}},{key:"ngOnInit",value:function(){this.setPositionClasses()}},{key:"ngAfterContentInit",value:function(){var n=this;this._updateDirectDescendants(),this._keyManager=new bA(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return n.closed.emit("tab")}),this._directDescendantItems.changes.pipe(na(this._directDescendantItems),_a(function(l){return Rr.apply(void 0,yt(l.map(function(c){return c._focused})))})).subscribe(function(l){return n._keyManager.updateActiveItem(l)}),this._directDescendantItems.changes.subscribe(function(l){var c,p=n._keyManager;if("enter"===n._panelAnimationState&&(null===(c=p.activeItem)||void 0===c?void 0:c._hasFocus())){var _=l.toArray(),w=Math.max(0,Math.min(_.length-1,p.activeItemIndex||0));_[w]&&!_[w].disabled?p.setActiveItem(w):p.setNextItemActive()}})}},{key:"ngOnDestroy",value:function(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}},{key:"_hovered",value:function(){return this._directDescendantItems.changes.pipe(na(this._directDescendantItems),_a(function(l){return Rr.apply(void 0,yt(l.map(function(c){return c._hovered})))}))}},{key:"addItem",value:function(n){}},{key:"removeItem",value:function(n){}},{key:"_handleKeydown",value:function(n){var l=n.keyCode,c=this._keyManager;switch(l){case 27:ia(n)||(n.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(38===l||40===l)&&c.setFocusOrigin("keyboard"),void c.onKeydown(n)}n.stopPropagation()}},{key:"focusFirstItem",value:function(){var n=this,l=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"program";this._ngZone.onStable.pipe(gn(1)).subscribe(function(){var c=null;if(n._directDescendantItems.length&&(c=n._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!c||!c.contains(document.activeElement)){var p=n._keyManager;p.setFocusOrigin(l).setFirstItemActive(),!p.activeItem&&c&&c.focus()}})}},{key:"resetActiveItem",value:function(){this._keyManager.setActiveItem(-1)}},{key:"setElevation",value:function(n){var l=this,c=Math.min(this._baseElevation+n,24),p="".concat(this._elevationPrefix).concat(c),_=Object.keys(this._classList).find(function(w){return w.startsWith(l._elevationPrefix)});(!_||_===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[p]=!0,this._previousElevation=p)}},{key:"setPositionClasses",value:function(){var c,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.xPosition,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.yPosition,p=this._classList;p["mat-menu-before"]="before"===n,p["mat-menu-after"]="after"===n,p["mat-menu-above"]="above"===l,p["mat-menu-below"]="below"===l,null===(c=this._changeDetectorRef)||void 0===c||c.markForCheck()}},{key:"_startAnimation",value:function(){this._panelAnimationState="enter"}},{key:"_resetAnimation",value:function(){this._panelAnimationState="void"}},{key:"_onAnimationDone",value:function(n){this._animationDone.next(n),this._isAnimating=!1}},{key:"_onAnimationStart",value:function(n){this._isAnimating=!0,"enter"===n.toState&&0===this._keyManager.activeItemIndex&&(n.element.scrollTop=0)}},{key:"_updateDirectDescendants",value:function(){var n=this;this._allItems.changes.pipe(na(this._allItems)).subscribe(function(l){n._directDescendantItems.reset(l.filter(function(c){return c._parentMenu===n})),n._directDescendantItems.notifyOnChanges()})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(tt),z(Pt),z(VQ),z(hn))},i.\u0275dir=be({type:i,contentQueries:function(r,n,l){var c;1&r&&(Mn(l,BQ,5),Mn(l,EP,5),Mn(l,EP,4)),2&r&&(Ve(c=Ge())&&(n.lazyContent=c.first),Ve(c=Ge())&&(n._allItems=c),Ve(c=Ge())&&(n.items=c))},viewQuery:function(r,n){var l;1&r&&Rt(hr,5),2&r&&Ve(l=Ge())&&(n.templateRef=l.first)},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),i}(),HQ=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_){var w;return R(this,n),(w=r.call(this,l,c,p,_))._elevationPrefix="mat-elevation-z",w._baseElevation=4,w}return L(n)}(PP);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(Pt),z(VQ),z(hn))},i.\u0275cmp=ke({type:i,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(r,n){2&r&<("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[ft([{provide:Pq,useExisting:i}]),Re],ngContentSelectors:NQ,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(r,n){1&r&&(vi(),te(0,$ee,3,6,"ng-template"))},directives:[As],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;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]::before{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.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}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}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:[OH.transformMenu,OH.fadeInItems]},changeDetection:0}),i}(),zQ=new Ae("mat-menu-scroll-strategy"),ite={provide:zQ,deps:[aa],useFactory:function rte(i){return function(){return i.scrollStrategies.reposition()}}},UQ=Vh({passive:!0}),ate=function(){var i=function(){function s(r,n,l,c,p,_,w,M,A){var O=this;R(this,s),this._overlay=r,this._element=n,this._viewContainerRef=l,this._menuItemInstance=_,this._dir=w,this._focusMonitor=M,this._ngZone=A,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Te.EMPTY,this._hoverSubscription=Te.EMPTY,this._menuCloseSubscription=Te.EMPTY,this._handleTouchStart=function(F){MA(F)||(O._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new ye,this.onMenuOpen=this.menuOpened,this.menuClosed=new ye,this.onMenuClose=this.menuClosed,this._scrollStrategy=c,this._parentMaterialMenu=p instanceof PP?p:void 0,n.nativeElement.addEventListener("touchstart",this._handleTouchStart,UQ),_&&(_._triggersSubmenu=this.triggersSubmenu())}return L(s,[{key:"_deprecatedMatMenuTriggerFor",get:function(){return this.menu},set:function(n){this.menu=n}},{key:"menu",get:function(){return this._menu},set:function(n){var l=this;n!==this._menu&&(this._menu=n,this._menuCloseSubscription.unsubscribe(),n&&(this._menuCloseSubscription=n.close.subscribe(function(c){l._destroyMenu(c),("click"===c||"tab"===c)&&l._parentMaterialMenu&&l._parentMaterialMenu.closed.emit(c)})))}},{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,UQ),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 n=this;if(!this._menuOpen){this._checkMenu();var l=this._createOverlay(),c=l.getConfig(),p=c.positionStrategy;this._setPosition(p),c.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,l.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(function(){return n.closeMenu()}),this._initMenu(),this.menu instanceof PP&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe(Wt(this.menu.close)).subscribe(function(){p.withLockedPosition(!1).reapplyLastPosition(),p.withLockedPosition(!0)}))}}},{key:"closeMenu",value:function(){this.menu.close.emit()}},{key:"focus",value:function(n,l){this._focusMonitor&&n?this._focusMonitor.focusVia(this._element,n,l):this._element.nativeElement.focus(l)}},{key:"updatePosition",value:function(){var n;null===(n=this._overlayRef)||void 0===n||n.updatePosition()}},{key:"_destroyMenu",value:function(n){var l=this;if(this._overlayRef&&this.menuOpen){var c=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===n||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,c instanceof PP?(c._resetAnimation(),c.lazyContent?c._animationDone.pipe(Ur(function(p){return"void"===p.toState}),gn(1),Wt(c.lazyContent._attached)).subscribe({next:function(){return c.lazyContent.detach()},complete:function(){return l._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),c.lazyContent&&c.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 n=0,l=this.menu.parentMenu;l;)n++,l=l.parentMenu;this.menu.setElevation(n)}}},{key:"_setIsMenuOpen",value:function(n){this._menuOpen=n,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(n)}},{key:"_checkMenu",value:function(){}},{key:"_createOverlay",value:function(){if(!this._overlayRef){var n=this._getOverlayConfig();this._subscribeToPositions(n.positionStrategy),this._overlayRef=this._overlay.create(n),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}},{key:"_getOverlayConfig",value:function(){return new Ff({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(n){var l=this;this.menu.setPositionClasses&&n.positionChanges.subscribe(function(c){var p="start"===c.connectionPair.overlayX?"after":"before",_="top"===c.connectionPair.overlayY?"below":"above";l._ngZone?l._ngZone.run(function(){return l.menu.setPositionClasses(p,_)}):l.menu.setPositionClasses(p,_)})}},{key:"_setPosition",value:function(n){var c=Pr("before"===this.menu.xPosition?["end","start"]:["start","end"],2),p=c[0],_=c[1],M=Pr("above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],2),A=M[0],O=M[1],F=A,Y=O,$=p,oe=_,le=0;this.triggersSubmenu()?(oe=p="before"===this.menu.xPosition?"start":"end",_=$="end"===p?"start":"end",le="bottom"===A?8:-8):this.menu.overlapTrigger||(F="top"===A?"bottom":"top",Y="top"===O?"bottom":"top"),n.withPositions([{originX:p,originY:F,overlayX:$,overlayY:A,offsetY:le},{originX:_,originY:F,overlayX:oe,overlayY:A,offsetY:le},{originX:p,originY:Y,overlayX:$,overlayY:O,offsetY:-le},{originX:_,originY:Y,overlayX:oe,overlayY:O,offsetY:-le}])}},{key:"_menuClosingActions",value:function(){var n=this,l=this._overlayRef.backdropClick(),c=this._overlayRef.detachments();return Rr(l,this._parentMaterialMenu?this._parentMaterialMenu.closed:dt(),this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Ur(function(w){return w!==n._menuItemInstance}),Ur(function(){return n._menuOpen})):dt(),c)}},{key:"_handleMousedown",value:function(n){SA(n)||(this._openedBy=0===n.button?"mouse":void 0,this.triggersSubmenu()&&n.preventDefault())}},{key:"_handleKeydown",value:function(n){var l=n.keyCode;(13===l||32===l)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(39===l&&"ltr"===this.dir||37===l&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}},{key:"_handleClick",value:function(n){this.triggersSubmenu()?(n.stopPropagation(),this.openMenu()):this.toggleMenu()}},{key:"_handleHover",value:function(){var n=this;!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(Ur(function(l){return l===n._menuItemInstance&&!l.disabled}),PH(0,t1)).subscribe(function(){n._openedBy="mouse",n.menu instanceof PP&&n.menu._isAnimating?n.menu._animationDone.pipe(gn(1),PH(0,t1),Wt(n._parentMaterialMenu._hovered())).subscribe(function(){return n.openMenu()}):n.openMenu()}))}},{key:"_getPortal",value:function(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new es(this.menu.templateRef,this._viewContainerRef)),this._portal}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(aa),z(tt),z(wr),z(zQ),z(Pq,8),z(EP,10),z(Ei,8),z(Rl),z(Pt))},i.\u0275dir=be({type:i,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(r,n){1&r&&ne("click",function(c){return n._handleClick(c)})("mousedown",function(c){return n._handleMousedown(c)})("keydown",function(c){return n._handleKeydown(c)}),2&r&<("aria-expanded",n.menuOpen||null)("aria-controls",n.menuOpen?n.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),i}(),jQ=function(){var i=function(s){se(n,s);var r=ue(n);function n(){return R(this,n),r.apply(this,arguments)}return L(n)}(ate);return i.\u0275fac=function(){var s;return function(n){return(s||(s=cn(i)))(n||i)}}(),i.\u0275dir=be({type:i,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[Re]}),i}(),ote=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({providers:[ite],imports:[[io,vn,Cc,Nf],If,vn]}),i}();function ste(i,s){if(1&i&&(Bi(),Se(0,"circle",4)),2&i){var r=Q(),n=Dn(1);ta("animation-name","mat-progress-spinner-stroke-rotate-"+r._spinnerAnimationLabel)("stroke-dashoffset",r._getStrokeDashOffset(),"px")("stroke-dasharray",r._getStrokeCircumference(),"px")("stroke-width",r._getCircleStrokeWidth(),"%")("transform-origin",r._getCircleTransformOrigin(n)),lt("r",r._getCircleRadius())}}function lte(i,s){if(1&i&&(Bi(),Se(0,"circle",4)),2&i){var r=Q(),n=Dn(1);ta("stroke-dashoffset",r._getStrokeDashOffset(),"px")("stroke-dasharray",r._getStrokeCircumference(),"px")("stroke-width",r._getCircleStrokeWidth(),"%")("transform-origin",r._getCircleTransformOrigin(n)),lt("r",r._getCircleRadius())}}var cte=yc(function(){return L(function i(s){R(this,i),this._elementRef=s})}(),"primary"),fte=new Ae("mat-progress-spinner-default-options",{providedIn:"root",factory:function dte(){return{diameter:100}}}),VS=function(i){se(r,i);var s=ue(r);function r(n,l,c,p,_,w,M,A){var O;R(this,r),(O=s.call(this,n))._document=c,O._diameter=100,O._value=0,O._resizeSubscription=Te.EMPTY,O.mode="determinate";var F=r._diameters;return O._spinnerAnimationLabel=O._getSpinnerAnimationLabel(),F.has(c.head)||F.set(c.head,new Set([100])),O._noopAnimations="NoopAnimations"===p&&!!_&&!_._forceAnimations,"mat-spinner"===n.nativeElement.nodeName.toLowerCase()&&(O.mode="indeterminate"),_&&(_.diameter&&(O.diameter=_.diameter),_.strokeWidth&&(O.strokeWidth=_.strokeWidth)),l.isBrowser&&l.SAFARI&&M&&w&&A&&(O._resizeSubscription=M.change(150).subscribe(function(){"indeterminate"===O.mode&&A.run(function(){return w.markForCheck()})})),O}return L(r,[{key:"diameter",get:function(){return this._diameter},set:function(l){this._diameter=Va(l),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}},{key:"strokeWidth",get:function(){return this._strokeWidth||this.diameter/10},set:function(l){this._strokeWidth=Va(l)}},{key:"value",get:function(){return"determinate"===this.mode?this._value:0},set:function(l){this._value=Math.max(0,Math.min(100,Va(l)))}},{key:"ngOnInit",value:function(){var l=this._elementRef.nativeElement;this._styleRoot=ZT(l)||this._document.head,this._attachStyleNode(),l.classList.add("mat-progress-spinner-indeterminate-animation")}},{key:"ngOnDestroy",value:function(){this._resizeSubscription.unsubscribe()}},{key:"_getCircleRadius",value:function(){return(this.diameter-10)/2}},{key:"_getViewBox",value:function(){var l=2*this._getCircleRadius()+this.strokeWidth;return"0 0 ".concat(l," ").concat(l)}},{key:"_getStrokeCircumference",value:function(){return 2*Math.PI*this._getCircleRadius()}},{key:"_getStrokeDashOffset",value:function(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}},{key:"_getCircleStrokeWidth",value:function(){return this.strokeWidth/this.diameter*100}},{key:"_getCircleTransformOrigin",value:function(l){var c,p=50*(null!==(c=l.currentScale)&&void 0!==c?c:1);return"".concat(p,"% ").concat(p,"%")}},{key:"_attachStyleNode",value:function(){var l=this._styleRoot,c=this._diameter,p=r._diameters,_=p.get(l);if(!_||!_.has(c)){var w=this._document.createElement("style");w.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),w.textContent=this._getAnimationText(),l.appendChild(w),_||p.set(l,_=new Set),_.add(c)}}},{key:"_getAnimationText",value:function(){var l=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*l)).replace(/END_VALUE/g,"".concat(.2*l)).replace(/DIAMETER/g,"".concat(this._spinnerAnimationLabel))}},{key:"_getSpinnerAnimationLabel",value:function(){return this.diameter.toString().replace(".","_")}}]),r}(cte);VS._diameters=new WeakMap,VS.\u0275fac=function(s){return new(s||VS)(z(tt),z(pn),z(Jt,8),z(mi,8),z(fte),z(hn),z(Ls),z(Pt))},VS.\u0275cmp=ke({type:VS,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(s,r){2&s&&(lt("aria-valuemin","determinate"===r.mode?0:null)("aria-valuemax","determinate"===r.mode?100:null)("aria-valuenow","determinate"===r.mode?r.value:null)("mode",r.mode),ta("width",r.diameter,"px")("height",r.diameter,"px"),Ze("_mat-animation-noopable",r._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[Re],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(s,r){1&s&&(Bi(),I(0,"svg",0,1),te(2,ste,1,11,"circle",2),te(3,lte,1,9,"circle",3),B()),2&s&&(ta("width",r.diameter,"px")("height",r.diameter,"px"),U("ngSwitch","indeterminate"===r.mode),lt("viewBox",r._getViewBox()),G(2),U("ngSwitchCase",!0),G(1),U("ngSwitchCase",!1))},directives:[rc,kf],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;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: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}@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)}}\n"],encapsulation:2,changeDetection:0});var pte=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[vn,io],vn]}),i}(),vte=function(){var i=function(){function s(){R(this,s),this._vertical=!1,this._inset=!1}return L(s,[{key:"vertical",get:function(){return this._vertical},set:function(n){this._vertical=gt(n)}},{key:"inset",get:function(){return this._inset},set:function(n){this._inset=gt(n)}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=ke({type:i,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(r,n){2&r&&(lt("aria-orientation",n.vertical?"vertical":"horizontal"),Ze("mat-divider-vertical",n.vertical)("mat-divider-horizontal",!n.vertical)("mat-divider-inset",n.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(r,n){},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}),i}(),gte=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[vn],vn]}),i}(),mte=function(){var i=function(){function s(){R(this,s)}return L(s,[{key:"transform",value:function(n,l){return n.sort(void 0===l?function(_,w){return _>w?1:-1}:function(_,w){return _[l]>w[l]?1:-1})}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275pipe=qi({name:"sort",type:i,pure:!0}),i}(),_te=["trigger"];function yte(i,s){1&i&&Se(0,"img",36),2&i&&U("src",Q().icon,Qt)}function bte(i,s){if(1&i){var r=xe();I(0,"button",46),ne("click",function(){var _=he(r).$implicit,w=Q(5);return w.newAction.emit({param:_,table:w})}),B()}if(2&i){var n=s.$implicit,l=Q(5);U("innerHTML",l.api.safeString(l.api.gui.icon(n.icon)+n.name),Xi)}}function Cte(i,s){if(1&i&&(Rn(0),I(1,"button",42),K(2),B(),I(3,"mat-menu",43,44),te(5,bte,1,1,"button",45),vf(6,"sort"),B(),On()),2&i){var r=s.$implicit,n=Dn(4);G(1),U("matMenuTriggerFor",n),G(1),Ln(r.key),G(1),U("overlapTrigger",!1),G(2),U("ngForOf",TC(6,4,r.value,"name"))}}function wte(i,s){if(1&i&&(Rn(0),I(1,"mat-menu",37,38),te(3,Cte,7,7,"ng-container",39),vf(4,"keyvalue"),B(),I(5,"a",40)(6,"i",17),K(7,"insert_drive_file"),B(),I(8,"span",41)(9,"uds-translate"),K(10,"New"),B()(),I(11,"i",17),K(12,"arrow_drop_down"),B()(),On()),2&i){var r=Dn(2),n=Q(3);G(1),U("overlapTrigger",!1),G(2),U("ngForOf",fh(4,3,n.grpTypes)),G(2),U("matMenuTriggerFor",r)}}function Ste(i,s){if(1&i){var r=xe();I(0,"button",46),ne("click",function(){var _=he(r).$implicit,w=Q(4);return w.newAction.emit({param:_,table:w})}),B()}if(2&i){var n=s.$implicit,l=Q(4);U("innerHTML",l.api.safeString(l.api.gui.icon(n.icon)+n.name),Xi)}}function Mte(i,s){if(1&i&&(Rn(0),I(1,"mat-menu",37,38),te(3,Ste,1,1,"button",45),vf(4,"sort"),B(),I(5,"a",40)(6,"i",17),K(7,"insert_drive_file"),B(),I(8,"span",41)(9,"uds-translate"),K(10,"New"),B()(),I(11,"i",17),K(12,"arrow_drop_down"),B()(),On()),2&i){var r=Dn(2),n=Q(3);G(1),U("overlapTrigger",!1),G(2),U("ngForOf",TC(4,3,n.oTypes,"name")),G(2),U("matMenuTriggerFor",r)}}function kte(i,s){if(1&i&&(Rn(0),te(1,wte,13,5,"ng-container",8),te(2,Mte,13,6,"ng-container",8),On()),2&i){var r=Q(2);G(1),U("ngIf",r.newGrouped),G(1),U("ngIf",!r.newGrouped)}}function Dte(i,s){if(1&i){var r=xe();Rn(0),I(1,"a",47),ne("click",function(){he(r);var l=Q(2);return l.newAction.emit({param:void 0,table:l})}),I(2,"i",17),K(3,"insert_drive_file"),B(),I(4,"span",41)(5,"uds-translate"),K(6,"New"),B()()(),On()}}function xte(i,s){if(1&i&&(Rn(0),te(1,kte,3,2,"ng-container",8),te(2,Dte,7,0,"ng-container",8),On()),2&i){var r=Q();G(1),U("ngIf",void 0!==r.oTypes&&0!==r.oTypes.length),G(1),U("ngIf",void 0!==r.oTypes&&0===r.oTypes.length)}}function Tte(i,s){if(1&i){var r=xe();Rn(0),I(1,"a",48),ne("click",function(){he(r);var c=Q();return c.emitIfSelection(c.editAction)}),I(2,"i",17),K(3,"edit"),B(),I(4,"span",41)(5,"uds-translate"),K(6,"Edit"),B()()(),On()}if(2&i){var n=Q();G(1),U("disabled",1!==n.selection.selected.length)}}function Ate(i,s){if(1&i){var r=xe();Rn(0),I(1,"a",48),ne("click",function(){return he(r),Q().permissions()}),I(2,"i",17),K(3,"perm_identity"),B(),I(4,"span",41)(5,"uds-translate"),K(6,"Permissions"),B()()(),On()}if(2&i){var n=Q();G(1),U("disabled",1!==n.selection.selected.length)}}function Ete(i,s){if(1&i){var r=xe();I(0,"a",50),ne("click",function(){var _=he(r).$implicit;return Q(2).emitCustom(_)}),B()}if(2&i){var n=s.$implicit;U("disabled",Q(2).isCustomDisabled(n))("innerHTML",n.html,Xi)}}function Pte(i,s){if(1&i&&(Rn(0),te(1,Ete,1,2,"a",49),On()),2&i){var r=Q();G(1),U("ngForOf",r.getcustomButtons())}}function Ote(i,s){if(1&i){var r=xe();Rn(0),I(1,"a",51),ne("click",function(){return he(r),Q().export()}),I(2,"i",17),K(3,"import_export"),B(),I(4,"span",41)(5,"uds-translate"),K(6,"Export"),B()()(),On()}}function Ite(i,s){if(1&i){var r=xe();Rn(0),I(1,"a",52),ne("click",function(){he(r);var c=Q();return c.emitIfSelection(c.deleteAction,!0)}),I(2,"i",17),K(3,"delete_forever"),B(),I(4,"span",41)(5,"uds-translate"),K(6,"Delete"),B()()(),On()}if(2&i){var n=Q();G(1),U("disabled",n.selection.isEmpty())}}function Rte(i,s){if(1&i){var r=xe();I(0,"button",53),ne("click",function(){he(r);var l=Q();return l.filterText="",l.applyFilter()}),I(1,"i",17),K(2,"close"),B()()}}function Lte(i,s){1&i&&Se(0,"mat-header-cell")}function Fte(i,s){1&i&&(I(0,"i",17),K(1,"check_box"),B())}function Nte(i,s){1&i&&(I(0,"i",17),K(1,"check_box_outline_blank"),B())}function Bte(i,s){if(1&i){var r=xe();I(0,"mat-cell",56),ne("click",function(_){var M=he(r).$implicit;return Q(2).clickRow(M,_)}),te(1,Fte,2,0,"i",57),te(2,Nte,2,0,"ng-template",null,58,Ko),B()}if(2&i){var n=s.$implicit,l=Dn(3),c=Q(2);G(1),U("ngIf",c.selection.isSelected(n))("ngIfElse",l)}}function Vte(i,s){1&i&&(Rn(0,54),te(1,Lte,1,0,"mat-header-cell",22),te(2,Bte,4,2,"mat-cell",55),On())}function Hte(i,s){1&i&&Se(0,"mat-header-cell")}function zte(i,s){if(1&i){var r=xe();I(0,"mat-cell")(1,"div",59),ne("click",function(l){var p=he(r).$implicit,_=Q();return _.detailAction.emit({param:p,table:_}),l.stopPropagation()}),I(2,"i",17),K(3,"subdirectory_arrow_right"),B()()()}}function Gte(i,s){if(1&i&&(I(0,"mat-header-cell",63),K(1),B()),2&i){var r=Q().$implicit;G(1),Ln(r.title)}}function Ute(i,s){if(1&i){var r=xe();I(0,"mat-cell",64),ne("click",function(_){var M=he(r).$implicit;return Q(2).clickRow(M,_)})("contextmenu",function(_){var M=he(r).$implicit,A=Q().$implicit;return Q().onContextMenu(M,A,_)}),Se(1,"div",65),B()}if(2&i){var n=s.$implicit,l=Q().$implicit,c=Q();G(1),U("innerHtml",c.getRowColumn(n,l),Xi)}}function jte(i,s){1&i&&(Rn(0,60),te(1,Gte,2,1,"mat-header-cell",61),te(2,Ute,2,1,"mat-cell",62),On()),2&i&&Uu("matColumnDef",s.$implicit.name)}function Wte(i,s){1&i&&Se(0,"mat-header-row")}function Yte(i,s){if(1&i&&Se(0,"mat-row",66),2&i){var r=s.$implicit;U("ngClass",Q().rowClass(r))}}function qte(i,s){if(1&i&&(I(0,"div",67),K(1),I(2,"uds-translate"),K(3,"Selected items"),B()()),2&i){var r=Q();G(1),Le(" ",r.selection.selected.length," ")}}function Zte(i,s){if(1&i){var r=xe();I(0,"button",71),ne("click",function(){return he(r),Q(2).copyToClipboard()}),I(1,"i",72),K(2,"content_copy"),B(),I(3,"uds-translate"),K(4,"Copy"),B()()}}function Xte(i,s){if(1&i){var r=xe();I(0,"button",71),ne("click",function(){he(r);var l=Q().item,c=Q();return c.detailAction.emit({param:l,table:c})}),I(1,"i",72),K(2,"subdirectory_arrow_right"),B(),I(3,"uds-translate"),K(4,"Detail"),B()()}}function Kte(i,s){if(1&i){var r=xe();I(0,"button",71),ne("click",function(){he(r);var l=Q(2);return l.emitIfSelection(l.editAction)}),I(1,"i",72),K(2,"edit"),B(),I(3,"uds-translate"),K(4,"Edit"),B()()}}function $te(i,s){if(1&i){var r=xe();I(0,"button",71),ne("click",function(){return he(r),Q(2).permissions()}),I(1,"i",72),K(2,"perm_identity"),B(),I(3,"uds-translate"),K(4,"Permissions"),B()()}}function Qte(i,s){if(1&i){var r=xe();I(0,"button",73),ne("click",function(){var _=he(r).$implicit;return Q(2).emitCustom(_)}),B()}if(2&i){var n=s.$implicit;U("disabled",Q(2).isCustomDisabled(n))("innerHTML",n.html,Xi)}}function Jte(i,s){if(1&i){var r=xe();I(0,"button",74),ne("click",function(){he(r);var l=Q(2);return l.emitIfSelection(l.deleteAction)}),I(1,"i",72),K(2,"delete_forever"),B(),I(3,"uds-translate"),K(4,"Delete"),B()()}}function ene(i,s){if(1&i){var r=xe();I(0,"button",73),ne("click",function(){var _=he(r).$implicit;return Q(3).emitCustom(_)}),B()}if(2&i){var n=s.$implicit;U("disabled",Q(3).isCustomDisabled(n))("innerHTML",n.html,Xi)}}function tne(i,s){if(1&i&&(Rn(0),Se(1,"mat-divider"),te(2,ene,1,2,"button",69),On()),2&i){var r=Q(2);G(2),U("ngForOf",r.getCustomAccelerators())}}function nne(i,s){if(1&i&&(te(0,Zte,5,0,"button",68),te(1,Xte,5,0,"button",68),te(2,Kte,5,0,"button",68),te(3,$te,5,0,"button",68),te(4,Qte,1,2,"button",69),te(5,Jte,5,0,"button",70),te(6,tne,3,1,"ng-container",8)),2&i){var r=Q();U("ngIf",!0===r.allowCopy),G(1),U("ngIf",r.detailAction.observers.length>0),G(1),U("ngIf",r.editAction.observers.length>0),G(1),U("ngIf",!0===r.hasPermissions),G(1),U("ngForOf",r.getCustomMenu()),G(1),U("ngIf",r.deleteAction.observers.length>0),G(1),U("ngIf",r.hasAccelerators)}}var rne=function(){return[5,10,25,100,1e3]},Kr=function(){var i=function(){function s(r,n){R(this,s),this.api=r,this.clipboard=n,this.pageSize=10,this.newGrouped=!1,this.allowCopy=!0,this.loaded=new ye,this.rowSelected=new ye,this.newAction=new ye,this.editAction=new ye,this.deleteAction=new ye,this.customButtonAction=new ye,this.detailAction=new ye,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.rowStyleInfo=null,this.dataSource=new TQ([]),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 L(s,[{key:"ngOnInit",value:function(){var n=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(c,p){if(!(p in c))return"";var _=c[p];return"number"==typeof _?_:"string"==typeof _?_.toLocaleLowerCase():(null===_&&(_=7226578800),_.changingThisBreaksApplicationSecurity&&(_=_.changingThisBreaksApplicationSecurity),(""+_).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase())},this.dataSource.filterPredicate=function(c,p){try{n.columns.forEach(function(_){if((""+c[_.name]).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase().includes(p))throw Error()})}catch(_){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 bg(!0===this.multiSelect,[]);var l=this.rest.permision();0==(l&Mc.MANAGEMENT)&&(this.newAction.observers.length=0,this.editAction.observers.length=0,this.deleteAction.observers.length=0,this.customButtonAction.observers.length=0),l!==Mc.ALL&&(this.hasPermissions=!1),void 0!==this.icon&&(this.icon=this.api.staticURL("admin/img/icons/"+this.icon+".png")),this.rest.types().subscribe(function(c){n.rest.tableInfo().subscribe(function(p){n.initialize(p,c)})})}},{key:"initialize",value:function(n,l){var c=this;this.oTypes=l,this.types=new Map,this.grpTypes=new Map,l.forEach(function(_){c.types.set(_.type,_),void 0!==_.group&&(c.grpTypes.has(_.group)||c.grpTypes.set(_.group,[]),c.grpTypes.get(_.group).push(_))}),this.rowStyleInfo=void 0!==n["row-style"]&&void 0!==n["row-style"].field?n["row-style"]:null,this.title=n.title,this.subtitle=n.subtitle||"",this.hasButtons&&this.displayedColumns.push("selection-column");var p=[];n.fields.forEach(function(_){for(var w in _)if(_.hasOwnProperty(w)){var M=_[w];p.push({name:w,title:M.title,type:void 0===M.type?ui.ALPHANUMERIC:M.type,dict:M.dict}),(void 0===M.visible||M.visible)&&c.displayedColumns.push(w)}}),this.columns=p,this.detailAction.observers.length>0&&this.displayedColumns.push("detail-column"),this.overview()}},{key:"overview",value:function(){var n=this;this.loading||(this.selection.clear(),this.dataSource.data=[],this.loading=!0,this.rest.overview().subscribe(function(l){n.loading=!1,void 0!==n.onItem&&l.forEach(function(c){n.onItem(c)}),n.dataSource.data=l,n.loaded.emit({param:n.firstLoad,table:n}),n.firstLoad=!1},function(l){n.loading=!1}))}},{key:"getcustomButtons",value:function(){return this.customButtons?this.customButtons.filter(function(n){return n.type!==vr.ONLY_MENU&&n.type!==vr.ACCELERATOR}):[]}},{key:"getCustomMenu",value:function(){return this.customButtons?this.customButtons.filter(function(n){return n.type!==vr.ACCELERATOR}):[]}},{key:"getCustomAccelerators",value:function(){return this.customButtons?this.customButtons.filter(function(n){return n.type===vr.ACCELERATOR}):[]}},{key:"getRowColumn",value:function(n,l){var c=n[l.name];switch(l.type){case ui.IMAGE:return this.api.safeString(this.api.gui.icon(c,"48px"));case ui.DATE:c=zs("SHORT_DATE_FORMAT",c);break;case ui.DATETIME:c=zs("SHORT_DATETIME_FORMAT",c);break;case ui.TIME:c=zs("TIME_FORMAT",c);break;case ui.DATETIMESEC:c=zs("SHORT_DATE_FORMAT",c," H:i:s");break;case ui.ICON:try{c=this.api.gui.icon(this.types.get(n.type).icon)+c}catch(p){}return this.api.safeString(c);case ui.CALLBACK:break;case ui.DICTIONARY:try{c=l.dict[c]}catch(p){c=""}}return c}},{key:"applyFilter",value:function(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()}},{key:"sortChanged",value:function(n){this.api.putOnStorage(this.tableId+"sort-column",n.active),this.api.putOnStorage(this.tableId+"sort-direction",n.direction)}},{key:"copyToClipboard",value:function(){this.clipboard.copy(this.clipValue||"")}},{key:"rowClass",value:function(n){var l=[];return this.selection.isSelected(n)&&l.push("selected"),null!==this.rowStyleInfo&&l.push(this.rowStyleInfo.prefix+n[this.rowStyleInfo.field]),l}},{key:"emitIfSelection",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=this.selection.selected.length;c>0&&(!0===l||1===c)&&n.emit({table:this,param:c})}},{key:"isCustomDisabled",value:function(n){switch(n.type){case void 0:case vr.SINGLE_SELECT:return 1!==this.selection.selected.length||!0===n.disabled;case vr.MULTI_SELECT:return this.selection.isEmpty()||!0===n.disabled;default:return!1}}},{key:"emitCustom",value:function(n){!this.selection.selected.length&&n.type!==vr.ALWAYS||(n.type===vr.ACCELERATOR?this.api.navigation.goto(n.id,this.selection.selected[0],n.acceleratorProperties):this.customButtonAction.emit({param:n,table:this}))}},{key:"clickRow",value:function(n,l){var c=(new Date).getTime();if((this.detailAction.observers.length||this.editAction.observers.length)&&Math.abs(this.lastClickInfo.x-l.x)<16&&Math.abs(this.lastClickInfo.y-l.y)<16&&c-this.lastClickInfo.time<250)return this.selection.clear(),this.selection.select(n),void(this.detailAction.observers.length?this.detailAction.emit({param:n,table:this}):this.emitIfSelection(this.editAction,!1));this.lastClickInfo={time:c,x:l.x,y:l.y},this.doSelect(n,l)}},{key:"doSelect",value:function(n,l){if(l.ctrlKey)this.lastSel=n,this.selection.toggle(n);else if(l.shiftKey){if(this.selection.isEmpty())this.selection.toggle(n);else if(this.selection.clear(),this.lastSel!==n){var w,c=!1,_=qt(this.dataSource.sortData(this.dataSource.data,this.dataSource.sort));try{for(_.s();!(w=_.n()).done;){var M=w.value;if((M===n||M===this.lastSel)&&!1==(c=!c)){this.selection.select(M);break}c&&this.selection.select(M)}}catch(A){_.e(A)}finally{_.f()}}}else this.lastSel!==n&&this.selection.clear(),this.lastSel=n,this.selection.toggle(n);this.rowSelected.emit({param:null,table:this})}},{key:"onContextMenu",value:function(n,l,c){c.preventDefault();var p=n[l.name];p.changingThisBreaksApplicationSecurity&&(p=p.changingThisBreaksApplicationSecurity.replace(/.*<\/span>/,"")),this.clipValue=""+p,this.hasActions&&(this.selection.clear(),this.selection.select(n),this.contextMenuPosition.x=c.clientX+"px",this.contextMenuPosition.y=c.clientY+"px",this.contextMenu.menuData={item:n},this.contextMenu.openMenu())}},{key:"selectElement",value:function(n,l){var c=this;this.dataSource.sortData(this.dataSource.data,this.dataSource.sort).forEach(function(_,w){if(_[n]===l){var M=Math.floor(w/c.paginator.pageSize);c.selection.select(_),c.paginator.pageIndex=M,c.paginator.page.next({pageIndex:M,pageSize:c.paginator.pageSize,length:c.paginator.length})}})}},{key:"export",value:function(){FQ(this)}},{key:"permissions",value:function(){!this.selection.selected.length||jee.launch(this.api,this.rest,this.selection.selected[0])}},{key:"keyDown",value:function(n){switch(n.keyCode){case 36:this.paginator.firstPage(),n.preventDefault();break;case 35:this.paginator.lastPage(),n.preventDefault();break;case 39:this.paginator.nextPage(),n.preventDefault();break;case 37:this.paginator.previousPage(),n.preventDefault()}}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(qee))},i.\u0275cmp=ke({type:i,selectors:[["uds-table"]],viewQuery:function(r,n){var l;1&r&&(Rt(_te,7),Rt(NS,7),Rt(k,7)),2&r&&(Ve(l=Ge())&&(n.contextMenu=l.first),Ve(l=Ge())&&(n.paginator=l.first),Ve(l=Ge())&&(n.sort=l.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(r,n){if(1&r&&(I(0,"div",0)(1,"div",1)(2,"div",2),te(3,yte,1,1,"img",3),K(4),B(),I(5,"div",4),K(6),B()(),I(7,"div",5)(8,"div",6)(9,"div",7),te(10,xte,3,2,"ng-container",8),te(11,Tte,7,1,"ng-container",8),te(12,Ate,7,1,"ng-container",8),te(13,Pte,2,1,"ng-container",8),te(14,Ote,7,0,"ng-container",8),te(15,Ite,7,1,"ng-container",8),B(),I(16,"div",9)(17,"div",10)(18,"uds-translate"),K(19,"Filter"),B(),K(20,"\xa0 "),I(21,"mat-form-field")(22,"input",11),ne("keyup",function(){return n.applyFilter()})("ngModelChange",function(p){return n.filterText=p}),B(),te(23,Rte,3,0,"button",12),B()(),I(24,"div",13),Se(25,"mat-paginator",14),B(),I(26,"div",15)(27,"a",16),ne("click",function(){return n.overview()}),I(28,"i",17),K(29,"autorenew"),B()()()()(),I(30,"div",18),ne("keydown",function(p){return n.keyDown(p)}),I(31,"mat-table",19),ne("matSortChange",function(p){return n.sortChanged(p)}),te(32,Vte,3,0,"ng-container",20),Rn(33,21),te(34,Hte,1,0,"mat-header-cell",22),te(35,zte,4,0,"mat-cell",23),On(),te(36,jte,3,1,"ng-container",24),te(37,Wte,1,0,"mat-header-row",25),te(38,Yte,1,1,"mat-row",26),B(),I(39,"div",27)(40,"div",28),Se(41,"mat-progress-spinner",29),B()()(),I(42,"div",30),K(43," \xa0 "),te(44,qte,4,1,"div",31),B()(),Se(45,"div",32,33),I(47,"mat-menu",null,34),te(49,nne,7,7,"ng-template",35),B()()),2&r){var l=Dn(48);G(3),U("ngIf",void 0!==n.icon),G(1),Le(" ",n.title," "),G(2),Le(" ",n.subtitle," "),G(4),U("ngIf",n.newAction.observers.length>0),G(1),U("ngIf",n.editAction.observers.length>0),G(1),U("ngIf",!0===n.hasPermissions),G(1),U("ngIf",n.hasCustomButtons),G(1),U("ngIf",!0===n.allowExport),G(1),U("ngIf",n.deleteAction.observers.length>0),G(7),U("ngModel",n.filterText),G(1),U("ngIf",n.filterText),G(2),U("pageSize",n.pageSize)("hidePageSize",!0)("pageSizeOptions",m_(27,rne))("showFirstLastButtons",!0),G(6),U("dataSource",n.dataSource),G(1),U("ngIf",n.hasButtons),G(4),U("ngForOf",n.columns),G(1),U("matHeaderRowDef",n.displayedColumns),G(1),U("matRowDefColumns",n.displayedColumns),G(1),U("hidden",!n.loading),G(5),U("ngIf",n.hasButtons&&n.selection.selected.length>0),G(1),ta("left",n.contextMenuPosition.x)("top",n.contextMenuPosition.y),U("matMenuTriggerFor",l)}},directives:[en,HQ,ir,EP,jQ,cg,Gn,or,ua,yi,pr,ar,qn,wg,NS,kq,k,TH,xH,AH,DH,EH,T,Dq,Tq,xq,Aq,As,VS,Jee,vte],pipes:[Nx,mte],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%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_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%] .mat-h2[_ngcontent-%COMP%], .mat-typography[_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%] .mat-h3[_ngcontent-%COMP%], .mat-typography[_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%] .mat-h4[_ngcontent-%COMP%], .mat-typography[_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%] .mat-h5[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font:400 11.62px/20px Roboto,Helvetica Neue,sans-serif;margin:0 0 12px}.mat-h6[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h6[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font:400 9.38px/20px Roboto,Helvetica Neue,sans-serif;margin:0 0 12px}.mat-body-strong[_ngcontent-%COMP%], .mat-body-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-body-strong[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-body-2[_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%] .mat-body[_ngcontent-%COMP%], .mat-typography[_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[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-body-1[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-body-1[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 12px}.mat-small[_ngcontent-%COMP%], .mat-caption[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-small[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-caption[_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-raised-button[_ngcontent-%COMP%], .mat-icon-button[_ngcontent-%COMP%], .mat-stroked-button[_ngcontent-%COMP%], .mat-flat-button[_ngcontent-%COMP%], .mat-fab[_ngcontent-%COMP%], .mat-mini-fab[_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-subtitle[_ngcontent-%COMP%], .mat-card-content[_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-trailing-icon.mat-icon[_ngcontent-%COMP%], .mat-chip[_ngcontent-%COMP%] .mat-chip-remove.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);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);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);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-header[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%]{font-size:14px}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2), .mat-grid-tile-footer[_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%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-slider-thumb-label-text[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:12px;font-weight:500}.mat-stepper-vertical[_ngcontent-%COMP%], .mat-stepper-horizontal[_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%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-tab-label[_ngcontent-%COMP%], .mat-tab-link[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;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-tree-node[_ngcontent-%COMP%], .mat-nested-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;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_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%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;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%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.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}@keyframes cdk-text-field-autofill-start{}@keyframes cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%], .mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:1rem 1rem 0rem}.buttons[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap}.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:0rem 1rem;-webkit-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:#00f}.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:#00f}"]}),i}(),WQ='pause'+django.gettext("Maintenance")+"",ine='pause'+django.gettext("Exit maintenance mode")+"",ane='pause'+django.gettext("Enter maintenance mode")+"",YQ=function(){var i=function(){function s(r,n,l){R(this,s),this.route=r,this.rest=n,this.api=l,this.cButtons=[{id:"maintenance",html:WQ,type:vr.SINGLE_SELECT}]}return L(s,[{key:"ngOnInit",value:function(){}},{key:"customButtons",get:function(){return this.api.user.isAdmin?this.cButtons:[]}},{key:"onNew",value:function(n){this.api.gui.forms.typedNewForm(n,django.gettext("New provider"),!0)}},{key:"onEdit",value:function(n){this.api.gui.forms.typedEditForm(n,django.gettext("Edit provider"),!0)}},{key:"onDelete",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete provider"))}},{key:"onMaintenance",value:function(n){var l=this,c=n.table.selection.selected[0],p=c.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.yesno(django.gettext("Maintenance mode for")+" "+c.name,p).subscribe(function(_){_&&l.rest.providers.maintenance(c.id).subscribe(function(){n.table.overview()})})}},{key:"onRowSelect",value:function(n){var l=n.table;this.customButtons[0].html=l.selection.selected.length>1||0===l.selection.selected.length?WQ:l.selection.selected[0].maintenance_mode?ine:ane}},{key:"onDetail",value:function(n){this.api.navigation.gotoService(n.param.id)}},{key:"processElement",value:function(n){n.maintenance_state=n.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}},{key:"onLoad",value:function(n){!0===n.param&&n.table.selectElement("id",this.route.snapshot.paramMap.get("provider"))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Vr),z(rn),z(Ot))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"uds-table",0),ne("customButtonAction",function(c){return n.onMaintenance(c)})("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("rowSelected",function(c){return n.onRowSelect(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),B()),2&r&&U("rest",n.rest.providers)("onItem",n.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)},directives:[Kr],styles:[".row-maintenance-true>mat-cell{color:orange!important} .mat-column-services_count, .mat-column-user_services_count, .mat-column-maintenance_state{max-width:7rem;justify-content:center}"]}),i}(),mb=function(){function i(s,r,n,l){R(this,i),this.title=s,this.data=r,this.columns=n,this.id=l,this.columnsDefinition=Array.from(n,function(c){var p={};return p[c.field]={visible:!0,title:c.title,type:void 0===c.type?ui.ALPHANUMERIC:c.type},p})}return L(i,[{key:"get",value:function(r){return Sr}},{key:"getLogs",value:function(r){return Sr}},{key:"overview",value:function(r){return"function"==typeof this.data?this.data():dt([])}},{key:"summary",value:function(r){return this.overview()}},{key:"put",value:function(r,n){return Sr}},{key:"create",value:function(r){return Sr}},{key:"save",value:function(r,n){return Sr}},{key:"test",value:function(r,n){return Sr}},{key:"delete",value:function(r){return Sr}},{key:"permision",value:function(){return Mc.ALL}},{key:"getPermissions",value:function(r){return Sr}},{key:"addPermission",value:function(r,n,l,c){return Sr}},{key:"revokePermission",value:function(r){return Sr}},{key:"types",value:function(){return dt([])}},{key:"gui",value:function(r){return Sr}},{key:"callback",value:function(r,n){return Sr}},{key:"tableInfo",value:function(){return dt({fields:this.columnsDefinition,title:this.title})}},{key:"detail",value:function(r,n){return null}},{key:"invoke",value:function(r,n){return Sr}}]),i}();function one(i,s){if(1&i){var r=xe();I(0,"button",24),ne("click",function(){he(r);var l=Q();return l.filterText="",l.applyFilter()}),I(1,"i",8),K(2,"close"),B()()}}function sne(i,s){if(1&i&&(I(0,"mat-header-cell",28),K(1),B()),2&i){var r=Q().$implicit;G(1),Ln(r)}}function lne(i,s){if(1&i&&(I(0,"mat-cell"),Se(1,"div",29),B()),2&i){var r=s.$implicit,n=Q().$implicit,l=Q();G(1),U("innerHtml",l.getRowColumn(r,n),Xi)}}function une(i,s){1&i&&(Rn(0,25),te(1,sne,2,1,"mat-header-cell",26),te(2,lne,2,1,"mat-cell",27),On()),2&i&&U("matColumnDef",s.$implicit)}function cne(i,s){1&i&&Se(0,"mat-header-row")}function fne(i,s){if(1&i&&Se(0,"mat-row",30),2&i){var r=s.$implicit;U("ngClass",Q().rowClass(r))}}var dne=function(){return[5,10,25,100,1e3]},HS=function(){var i=function(){function s(r){R(this,s),this.api=r,this.pageSize=10,this.filterText="",this.title="Logs",this.displayedColumns=["date","level","source","message"],this.columns=[],this.dataSource=new TQ([]),this.selection=new bg}return L(s,[{key:"ngOnInit",value:function(){var n=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(l){n.columns.push({name:l,title:l,type:"date"===l?ui.DATETIMESEC:ui.ALPHANUMERIC})}),this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.overview()}},{key:"overview",value:function(){var n=this;this.rest.getLogs(this.itemId).subscribe(function(l){n.dataSource.data=l})}},{key:"selectElement",value:function(n,l){}},{key:"getRowColumn",value:function(n,l){var c=n[l];return"date"===l?c=zs("SHORT_DATE_FORMAT",c," H:i:s"):"level"===l&&(c=function(s){return{1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"}[s]||"OTHER"}(c)),c}},{key:"rowClass",value:function(n){return["level-"+n.level]}},{key:"applyFilter",value:function(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()}},{key:"sortChanged",value:function(n){this.api.putOnStorage("logs-sort-column",n.active),this.api.putOnStorage("logs-sort-direction",n.direction)}},{key:"export",value:function(){FQ(this)}},{key:"keyDown",value:function(n){switch(n.keyCode){case 36:this.paginator.firstPage(),n.preventDefault();break;case 35:this.paginator.lastPage(),n.preventDefault();break;case 39:this.paginator.nextPage(),n.preventDefault();break;case 37:this.paginator.previousPage(),n.preventDefault()}}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot))},i.\u0275cmp=ke({type:i,selectors:[["uds-logs-table"]],viewQuery:function(r,n){var l;1&r&&(Rt(NS,7),Rt(k,7)),2&r&&(Ve(l=Ge())&&(n.paginator=l.first),Ve(l=Ge())&&(n.sort=l.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(r,n){1&r&&(I(0,"div",0)(1,"div",1)(2,"div",2),Se(3,"img",3),K(4," \xa0"),I(5,"uds-translate"),K(6,"Logs"),B()()(),I(7,"div",4)(8,"div",5)(9,"div",6)(10,"a",7),ne("click",function(){return n.export()}),I(11,"i",8),K(12,"import_export"),B(),I(13,"span",9)(14,"uds-translate"),K(15,"Export"),B()()()(),I(16,"div",10)(17,"div",11)(18,"uds-translate"),K(19,"Filter"),B(),K(20,"\xa0 "),I(21,"mat-form-field")(22,"input",12),ne("keyup",function(){return n.applyFilter()})("ngModelChange",function(c){return n.filterText=c}),B(),te(23,one,3,0,"button",13),B()(),I(24,"div",14),Se(25,"mat-paginator",15),B(),I(26,"div",16)(27,"a",17),ne("click",function(){return n.overview()}),I(28,"i",8),K(29,"autorenew"),B()()()()(),I(30,"div",18),ne("keydown",function(c){return n.keyDown(c)}),I(31,"mat-table",19),ne("matSortChange",function(c){return n.sortChanged(c)}),te(32,une,3,1,"ng-container",20),te(33,cne,1,0,"mat-header-row",21),te(34,fne,1,1,"mat-row",22),B()(),Se(35,"div",23),B()()),2&r&&(G(3),U("src",n.api.staticURL("admin/img/icons/logs.png"),Qt),G(19),U("ngModel",n.filterText),G(1),U("ngIf",n.filterText),G(2),U("pageSize",n.pageSize)("hidePageSize",!0)("pageSizeOptions",m_(11,dne))("showFirstLastButtons",!0),G(6),U("dataSource",n.dataSource),G(1),U("ngForOf",n.displayedColumns),G(1),U("matHeaderRowDef",n.displayedColumns),G(1),U("matRowDefColumns",n.displayedColumns))},directives:[Gn,cg,or,ua,yi,pr,ar,en,qn,wg,NS,kq,k,ir,TH,xH,AH,T,DH,EH,Dq,Tq,xq,Aq,As],styles:[".header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;flex-wrap:wrap;margin:1rem 1rem 0rem}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0rem 1rem;-webkit-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}"]}),i}();function hne(i,s){1&i&&(I(0,"uds-translate"),K(1,"Services pools"),B())}function pne(i,s){1&i&&(I(0,"uds-translate"),K(1,"Logs"),B())}var vne=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],gne=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.customButtons=[is.getGotoButton(JE,"id")],this.services=c.services,this.service=c.service}return L(s,[{key:"ngOnInit",value:function(){var n=this;this.servicePools=new mb(django.gettext("Service pools"),function(){return n.services.invoke(n.service.id+"/servicesPools")},vne,this.service.id+"infopsls")}}],[{key:"launch",value:function(n,l,c){var p=window.innerWidth<800?"80%":"60%";n.gui.dialog.open(s,{width:p,position:{top:window.innerWidth<800?"0px":"7rem"},data:{service:c,services:l},disableClose:!1})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"h4",0)(1,"uds-translate"),K(2,"Information for"),B(),K(3),B(),I(4,"mat-dialog-content")(5,"mat-tab-group")(6,"mat-tab"),te(7,hne,2,0,"ng-template",1),Se(8,"uds-table",2),B(),I(9,"mat-tab"),te(10,pne,2,0,"ng-template",1),I(11,"div",3),Se(12,"uds-logs-table",4),B()()()(),I(13,"mat-dialog-actions")(14,"button",5)(15,"uds-translate"),K(16,"Ok"),B()()()),2&r&&(G(3),Le(" ",n.service.name,"\n"),G(5),U("rest",n.servicePools)("customButtons",n.customButtons)("pageSize",6),G(4),U("rest",n.services)("itemId",n.service.id)("tableId","serviceInfo-d-log"+n.service.id)("pageSize",5))},directives:[si,Gn,jr,Hl,Hs,rs,Kr,HS,li,qn,_i],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}"]}),i}();function mne(i,s){if(1&i&&(I(0,"div",3),Se(1,"div",4)(2,"div",5),B()),2&i){var r=s.$implicit;G(1),U("innerHTML",r.gui.label,Xi),G(1),U("innerHTML",r.value,Xi)}}var IH=function(){var i=function(){function s(r){R(this,s),this.api=r,this.displayables=null}return L(s,[{key:"ngOnInit",value:function(){this.processFields()}},{key:"processFields",value:function(){var n=this;if(!this.gui||!this.value)return[];var l=this.gui.filter(function(c){return c.gui.type!==za.HIDDEN});l.forEach(function(c){var p=n.value[c.name];switch(c.gui.type){case za.CHECKBOX:c.value=p?django.gettext("Yes"):django.gettext("No");break;case za.PASSWORD:c.value=django.gettext("(hidden)");break;case za.CHOICE:var _=nS.locateChoice(p,c);c.value=_.text;break;case za.MULTI_CHOICE:c.value=django.gettext("Selected items :")+p.length;break;case za.IMAGECHOICE:var w=nS.locateChoice(p,c);c.value=n.api.safeString(n.api.gui.icon(w.img)+" "+w.text);break;default:c.value=p}(""===c.value||null==c.value)&&(c.value="(empty)")}),this.displayables=l}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"div",0)(1,"div",1),te(2,mne,3,2,"div",2),B(),Se(3,"div"),B()),2&r&&(G(2),U("ngForOf",n.displayables))},directives:[ir],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}"]}),i}();function _ne(i,s){1&i&&(I(0,"uds-translate"),K(1,"Summary"),B())}function yne(i,s){if(1&i&&Se(0,"uds-information",15),2&i){var r=Q(2);U("value",r.provider)("gui",r.gui)}}function bne(i,s){1&i&&(I(0,"uds-translate"),K(1,"Services"),B())}function Cne(i,s){1&i&&(I(0,"uds-translate"),K(1,"Usage"),B())}function wne(i,s){1&i&&(I(0,"uds-translate"),K(1,"Logs"),B())}function Sne(i,s){if(1&i){var r=xe();I(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),ne("selectedIndexChange",function(c){return he(r),Q().selectedTab=c}),I(3,"mat-tab"),te(4,_ne,2,0,"ng-template",9),I(5,"div",10),te(6,yne,1,2,"uds-information",11),B()(),I(7,"mat-tab"),te(8,bne,2,0,"ng-template",9),I(9,"div",10)(10,"uds-table",12),ne("newAction",function(c){return he(r),Q().onNewService(c)})("editAction",function(c){return he(r),Q().onEditService(c)})("deleteAction",function(c){return he(r),Q().onDeleteService(c)})("customButtonAction",function(c){return he(r),Q().onInformation(c)})("loaded",function(c){return he(r),Q().onLoad(c)}),B()()(),I(11,"mat-tab"),te(12,Cne,2,0,"ng-template",9),I(13,"div",10)(14,"uds-table",13),ne("deleteAction",function(c){return he(r),Q().onDeleteUsage(c)}),B()()(),I(15,"mat-tab"),te(16,wne,2,0,"ng-template",9),I(17,"div",10),Se(18,"uds-logs-table",14),B()()()()()}if(2&i){var n=Q();G(2),U("selectedIndex",n.selectedTab)("@.disabled",!0),G(4),U("ngIf",n.provider&&n.gui),G(4),U("rest",n.services)("multiSelect",!0)("allowExport",!0)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)("tableId","providers-d-services"+n.provider.id),G(4),U("rest",n.usage)("multiSelect",!0)("allowExport",!0)("pageSize",n.api.config.admin.page_size)("tableId","providers-d-usage"+n.provider.id),G(4),U("rest",n.services.parentModel)("itemId",n.provider.id)("tableId","providers-d-log"+n.provider.id)}}var Mne=function(s){return["/providers",s]},qQ=function(){var i=function(){function s(r,n,l){R(this,s),this.route=r,this.rest=n,this.api=l,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:vr.ONLY_MENU}],this.provider=null,this.selectedTab=1}return L(s,[{key:"ngOnInit",value:function(){var n=this,l=this.route.snapshot.paramMap.get("provider");this.services=this.rest.providers.detail(l,"services"),this.usage=this.rest.providers.detail(l,"usage"),this.services.parentModel.get(l).subscribe(function(c){n.provider=c,n.services.parentModel.gui(c.type).subscribe(function(p){n.gui=p})})}},{key:"onInformation",value:function(n){gne.launch(this.api,this.services,n.table.selection.selected[0])}},{key:"onNewService",value:function(n){this.api.gui.forms.typedNewForm(n,django.gettext("New service"),!1)}},{key:"onEditService",value:function(n){this.api.gui.forms.typedEditForm(n,django.gettext("Edit service"),!1)}},{key:"onDeleteService",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete service"))}},{key:"onDeleteUsage",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete user service"))}},{key:"onLoad",value:function(n){if(!0===n.param){var l=this.route.snapshot.paramMap.get("service");if(void 0!==l){this.selectedTab=1;var c=n.table;c.dataSource.data.forEach(function(p){p.id===l&&c.selection.select(p)})}}}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Vr),z(rn),z(Ot))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),K(4,"arrow_back"),B()(),K(5," \xa0"),Se(6,"img",4),K(7),B(),te(8,Sne,19,17,"div",5),B()),2&r&&(G(2),U("routerLink",xs(4,Mne,n.services.parentId)),G(4),U("src",n.api.staticURL("admin/img/icons/services.png"),Qt),G(1),Le(" \xa0",null==n.provider?null:n.provider.name," "),G(1),U("ngIf",null!==n.provider))},directives:[Al,en,Hl,Hs,rs,Gn,IH,Kr,HS],styles:[""]}),i}(),ZQ=function(){var i=function(){function s(r,n,l){R(this,s),this.api=r,this.route=n,this.rest=l}return L(s,[{key:"ngOnInit",value:function(){this.route.snapshot.paramMap.get("authenticator")}},{key:"onDetail",value:function(n){this.api.navigation.gotoAuthenticatorDetail(n.param.id)}},{key:"onNew",value:function(n){this.api.gui.forms.typedNewForm(n,django.gettext("New Authenticator"),!0)}},{key:"onEdit",value:function(n){this.api.gui.forms.typedEditForm(n,django.gettext("Edit Authenticator"),!0)}},{key:"onDelete",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete Authenticator"))}},{key:"onLoad",value:function(n){!0===n.param&&n.table.selectElement("id",this.route.snapshot.paramMap.get("authenticator"))}},{key:"processElement",value:function(n){n.visible=this.api.yesno(n.visible)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(Vr),z(rn))},i.\u0275cmp=ke({type:i,selectors:[["uds-authenticators"]],decls:2,vars:6,consts:[["icon","authenticators",3,"rest","multiSelect","allowExport","hasPermissions","onItem","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(r,n){1&r&&(I(0,"div")(1,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),B()()),2&r&&(G(1),U("rest",n.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",n.processElement)("pageSize",n.api.config.admin.page_size))},directives:[Kr],styles:[""]}),i}(),kne=["panel"];function Dne(i,s){if(1&i&&(I(0,"div",0,1),Gt(2),B()),2&i){var r=s.id,n=Q();U("id",n.id)("ngClass",n._classList),lt("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(r))}}var xne=["*"],Tne=0,Ane=L(function i(s,r){R(this,i),this.source=s,this.option=r}),Ene=bc(function(){return L(function i(){R(this,i)})}()),XQ=new Ae("mat-autocomplete-default-options",{providedIn:"root",factory:function Pne(){return{autoActiveFirstOption:!1}}}),One=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_){var w;return R(this,n),(w=r.call(this))._changeDetectorRef=l,w._elementRef=c,w._activeOptionChanges=Te.EMPTY,w.showPanel=!1,w._isOpen=!1,w.displayWith=null,w.optionSelected=new ye,w.opened=new ye,w.closed=new ye,w.optionActivated=new ye,w._classList={},w.id="mat-autocomplete-".concat(Tne++),w.inertGroups=(null==_?void 0:_.SAFARI)||!1,w._autoActiveFirstOption=!!p.autoActiveFirstOption,w}return L(n,[{key:"isOpen",get:function(){return this._isOpen&&this.showPanel}},{key:"autoActiveFirstOption",get:function(){return this._autoActiveFirstOption},set:function(c){this._autoActiveFirstOption=gt(c)}},{key:"classList",set:function(c){this._classList=c&&c.length?qw(c).reduce(function(p,_){return p[_]=!0,p},{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}},{key:"ngAfterContentInit",value:function(){var c=this;this._keyManager=new b3(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(function(p){c.isOpen&&c.optionActivated.emit({source:c,option:c.options.toArray()[p]||null})}),this._setVisibility()}},{key:"ngOnDestroy",value:function(){this._activeOptionChanges.unsubscribe()}},{key:"_setScrollTop",value:function(c){this.panel&&(this.panel.nativeElement.scrollTop=c)}},{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(c){var p=new Ane(this,c);this.optionSelected.emit(p)}},{key:"_getPanelAriaLabelledby",value:function(c){return this.ariaLabel?null:this.ariaLabelledby?(c?c+" ":"")+this.ariaLabelledby:c}},{key:"_setVisibilityClasses",value:function(c){c[this._visibleClass]=this.showPanel,c[this._hiddenClass]=!this.showPanel}}]),n}(Ene);return i.\u0275fac=function(r){return new(r||i)(z(hn),z(tt),z(XQ),z(pn))},i.\u0275dir=be({type:i,viewQuery:function(r,n){var l;1&r&&(Rt(hr,7),Rt(kne,5)),2&r&&(Ve(l=Ge())&&(n.template=l.first),Ve(l=Ge())&&(n.panel=l.first))},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[Re]}),i}(),Iq=function(){var i=function(s){se(n,s);var r=ue(n);function n(){var l;return R(this,n),(l=r.apply(this,arguments))._visibleClass="mat-autocomplete-visible",l._hiddenClass="mat-autocomplete-hidden",l}return L(n)}(One);return i.\u0275fac=function(){var s;return function(n){return(s||(s=cn(i)))(n||i)}}(),i.\u0275cmp=ke({type:i,selectors:[["mat-autocomplete"]],contentQueries:function(r,n,l){var c;1&r&&(Mn(l,$1,5),Mn(l,Pi,5)),2&r&&(Ve(c=Ge())&&(n.optionGroups=c),Ve(c=Ge())&&(n.options=c))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[ft([{provide:Xy,useExisting:i}]),Re],ngContentSelectors:xne,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(r,n){1&r&&(vi(),te(0,Dne,3,4,"ng-template"))},directives:[As],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}),i}(),KQ=new Ae("mat-autocomplete-scroll-strategy"),Rne={provide:KQ,deps:[aa],useFactory:function Ine(i){return function(){return i.scrollStrategies.reposition()}}},Lne={provide:Ga,useExisting:En(function(){return RH}),multi:!0},Fne=function(){var i=function(){function s(r,n,l,c,p,_,w,M,A,O,F){var Y=this;R(this,s),this._element=r,this._overlay=n,this._viewContainerRef=l,this._zone=c,this._changeDetectorRef=p,this._dir=w,this._formField=M,this._document=A,this._viewportRuler=O,this._defaults=F,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=Te.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Xe,this._windowBlurHandler=function(){Y._canOpenOnNextFocus=Y._document.activeElement!==Y._element.nativeElement||Y.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Sw(function(){var $=Y.autocomplete?Y.autocomplete.options:null;return $?$.changes.pipe(na($),_a(function(){return Rr.apply(void 0,yt($.map(function(oe){return oe.onSelectionChange})))})):Y._zone.onStable.pipe(gn(1),_a(function(){return Y.optionSelections}))}),this._scrollStrategy=_}return L(s,[{key:"autocompleteDisabled",get:function(){return this._autocompleteDisabled},set:function(n){this._autocompleteDisabled=gt(n)}},{key:"ngAfterViewInit",value:function(){var n=this,l=this._getWindow();void 0!==l&&this._zone.runOutsideAngular(function(){return l.addEventListener("blur",n._windowBlurHandler)})}},{key:"ngOnChanges",value:function(n){n.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}},{key:"ngOnDestroy",value:function(){var n=this._getWindow();void 0!==n&&n.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(){var n=this;this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(function(){n.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 n=this;return Rr(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Ur(function(){return n._overlayAttached})),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Ur(function(){return n._overlayAttached})):dt()).pipe(on(function(l){return l instanceof UB?l:null}))}},{key:"activeOption",get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}},{key:"_getOutsideClickStream",value:function(){var n=this;return Rr(gu(this._document,"click"),gu(this._document,"auxclick"),gu(this._document,"touchend")).pipe(Ur(function(l){var c=hc(l),p=n._formField?n._formField._elementRef.nativeElement:null,_=n.connectedTo?n.connectedTo.elementRef.nativeElement:null;return n._overlayAttached&&c!==n._element.nativeElement&&n._document.activeElement!==n._element.nativeElement&&(!p||!p.contains(c))&&(!_||!_.contains(c))&&!!n._overlayRef&&!n._overlayRef.overlayElement.contains(c)}))}},{key:"writeValue",value:function(n){var l=this;Promise.resolve().then(function(){return l._setTriggerValue(n)})}},{key:"registerOnChange",value:function(n){this._onChange=n}},{key:"registerOnTouched",value:function(n){this._onTouched=n}},{key:"setDisabledState",value:function(n){this._element.nativeElement.disabled=n}},{key:"_handleKeydown",value:function(n){var l=n.keyCode,c=ia(n);if(27===l&&!c&&n.preventDefault(),this.activeOption&&13===l&&this.panelOpen&&!c)this.activeOption._selectViaInteraction(),this._resetActiveItem(),n.preventDefault();else if(this.autocomplete){var p=this.autocomplete._keyManager.activeItem,_=38===l||40===l;9===l||_&&!c&&this.panelOpen?this.autocomplete._keyManager.onKeydown(n):_&&this._canOpen()&&this.openPanel(),(_||this.autocomplete._keyManager.activeItem!==p)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}},{key:"_handleInput",value:function(n){var l=n.target,c=l.value;"number"===l.type&&(c=""==c?null:parseFloat(c)),this._previousValue!==c&&(this._previousValue=c,this._onChange(c),this._canOpen()&&this._document.activeElement===n.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:"_handleClick",value:function(){this._canOpen()&&!this.panelOpen&&this.openPanel()}},{key:"_floatLabel",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._formField&&"auto"===this._formField.floatLabel&&(n?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 n=this;return Rr(this._zone.onStable.pipe(gn(1)),this.autocomplete.options.changes.pipe(ao(function(){return n._positionStrategy.reapplyLastPosition()}),PH(0))).pipe(_a(function(){return n._zone.run(function(){var p=n.panelOpen;n._resetActiveItem(),n.autocomplete._setVisibility(),n._changeDetectorRef.detectChanges(),n.panelOpen&&(n._overlayRef.updatePosition(),p!==n.panelOpen&&n.autocomplete.opened.emit())}),n.panelClosingActions}),gn(1)).subscribe(function(p){return n._setValueAndClose(p)})}},{key:"_destroyPanel",value:function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}},{key:"_setTriggerValue",value:function(n){var l=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(n):n,c=null!=l?l:"";this._formField?this._formField._control.value=c:this._element.nativeElement.value=c,this._previousValue=c}},{key:"_setValueAndClose",value:function(n){var l=n&&n.source;l&&(this._clearPreviousSelectedOption(l),this._setTriggerValue(l.value),this._onChange(l.value),this.autocomplete._emitSelectEvent(l),this._element.nativeElement.focus()),this.closePanel()}},{key:"_clearPreviousSelectedOption",value:function(n){this.autocomplete.options.forEach(function(l){l!==n&&l.selected&&l.deselect()})}},{key:"_attachOverlay",value:function(){var l,n=this,c=this._overlayRef;c?(this._positionStrategy.setOrigin(this._getConnectedElement()),c.updateSize({width:this._getPanelWidth()})):(this._portal=new es(this.autocomplete.template,this._viewContainerRef,{id:null===(l=this._formField)||void 0===l?void 0:l.getLabelId()}),c=this._overlay.create(this._getOverlayConfig()),this._overlayRef=c,c.keydownEvents().subscribe(function(_){(27===_.keyCode&&!ia(_)||38===_.keyCode&&ia(_,"altKey"))&&(n._closeKeyEventStream.next(),n._resetActiveItem(),_.stopPropagation(),_.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(function(){n.panelOpen&&c&&c.updateSize({width:n._getPanelWidth()})})),c&&!c.hasAttached()&&(c.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var p=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&p!==this.panelOpen&&this.autocomplete.opened.emit()}},{key:"_getOverlayConfig",value:function(){var n;return new Ff({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(n=this._defaults)||void 0===n?void 0:n.overlayPanelClass})}},{key:"_getOverlayPosition",value:function(){var n=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(n),this._positionStrategy=n,n}},{key:"_setStrategyPositions",value:function(n){var _,l=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],c=this._aboveClass,p=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:c},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:c}];_="above"===this.position?p:"below"===this.position?l:[].concat(l,p),n.withPositions(_)}},{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 n=this.autocomplete;n.autoActiveFirstOption?n._keyManager.setFirstItemActive():n._keyManager.setActiveItem(-1)}},{key:"_canOpen",value:function(){var n=this._element.nativeElement;return!n.readOnly&&!n.disabled&&!this._autocompleteDisabled}},{key:"_getWindow",value:function(){var n;return(null===(n=this._document)||void 0===n?void 0:n.defaultView)||window}},{key:"_scrollToOption",value:function(n){var l=this.autocomplete,c=cE(n,l.options,l.optionGroups);if(0===n&&1===c)l._setScrollTop(0);else if(l.panel){var p=l.options.toArray()[n];if(p){var _=p._getHostElement(),w=jB(_.offsetTop,_.offsetHeight,l._getScrollTop(),l.panel.nativeElement.offsetHeight);l._setScrollTop(w)}}}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(tt),z(aa),z(wr),z(Pt),z(hn),z(KQ),z(Ei,8),z(pb,9),z(Jt,8),z(Ls),z(XQ,8))},i.\u0275dir=be({type:i,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[xn]}),i}(),RH=function(){var i=function(s){se(n,s);var r=ue(n);function n(){var l;return R(this,n),(l=r.apply(this,arguments))._aboveClass="mat-autocomplete-panel-above",l}return L(n)}(Fne);return i.\u0275fac=function(){var s;return function(n){return(s||(s=cn(i)))(n||i)}}(),i.\u0275dir=be({type:i,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(r,n){1&r&&ne("focusin",function(){return n._handleFocus()})("blur",function(){return n._onTouched()})("input",function(c){return n._handleInput(c)})("keydown",function(c){return n._handleKeydown(c)})("click",function(){return n._handleClick()}),2&r&<("autocomplete",n.autocompleteAttribute)("role",n.autocompleteDisabled?null:"combobox")("aria-autocomplete",n.autocompleteDisabled?null:"list")("aria-activedescendant",n.panelOpen&&n.activeOption?n.activeOption.id:null)("aria-expanded",n.autocompleteDisabled?null:n.panelOpen.toString())("aria-owns",n.autocompleteDisabled||!n.panelOpen||null==n.autocomplete?null:n.autocomplete.id)("aria-haspopup",n.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[ft([Lne]),Re]}),i}(),Nne=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({providers:[Rne],imports:[[Nf,Q1,vn,io],If,Q1,vn]}),i}();function Bne(i,s){if(1&i&&(I(0,"div")(1,"uds-translate"),K(2,"Edit user"),B(),K(3),B()),2&i){var r=Q();G(3),Le(" ",r.user.name," ")}}function Vne(i,s){1&i&&(I(0,"uds-translate"),K(1,"New user"),B())}function Hne(i,s){if(1&i){var r=xe();I(0,"mat-form-field")(1,"mat-label"),K(2),B(),I(3,"input",19),ne("ngModelChange",function(c){return he(r),Q().user.name=c}),B()()}if(2&i){var n=Q();G(2),Le(" ",n.authenticator.type_info.userNameLabel," "),G(1),U("ngModel",n.user.name)("disabled",n.user.id)}}function zne(i,s){if(1&i&&(I(0,"mat-option",22),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),th(" ",r.id," (",r.name,") ")}}function Gne(i,s){if(1&i){var r=xe();I(0,"mat-form-field")(1,"mat-label"),K(2),B(),I(3,"input",20),ne("ngModelChange",function(p){return he(r),Q().user.name=p})("input",function(p){return he(r),Q().filterUser(p)}),B(),I(4,"mat-autocomplete",null,21),te(6,zne,2,3,"mat-option",16),B()()}if(2&i){var n=Dn(5),l=Q();G(2),Le(" ",l.authenticator.type_info.userNameLabel," "),G(1),U("ngModel",l.user.name)("matAutocomplete",n),G(3),U("ngForOf",l.users)}}function Une(i,s){if(1&i){var r=xe();I(0,"mat-form-field")(1,"mat-label"),K(2),B(),I(3,"input",23),ne("ngModelChange",function(c){return he(r),Q().user.password=c}),B()()}if(2&i){var n=Q();G(2),Le(" ",n.authenticator.type_info.passwordLabel," "),G(1),U("ngModel",n.user.password)}}function jne(i,s){if(1&i&&(I(0,"mat-option",22),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.name," ")}}var $Q=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.onSave=new ye(!0),this.users=[],this.authenticator=c.authenticator,this.user={id:void 0,name:"",real_name:"",comments:"",state:"A",is_admin:!1,staff_member:!1,password:"",role:"user",groups:[]},void 0!==c.user&&(this.user.id=c.user.id,this.user.name=c.user.name)}return L(s,[{key:"ngOnInit",value:function(){var n=this;this.rest.authenticators.detail(this.authenticator.id,"groups").overview().subscribe(function(l){n.groups=l}),this.user.id&&this.rest.authenticators.detail(this.authenticator.id,"users").get(this.user.id).subscribe(function(l){n.user=l,n.user.role=l.is_admin?"admin":l.staff_member?"staff":"user"},function(l){n.dialogRef.close()})}},{key:"roleChanged",value:function(n){this.user.is_admin="admin"===n,this.user.staff_member="admin"===n||"staff"===n}},{key:"filterUser",value:function(n){var l=this;this.rest.authenticators.search(this.authenticator.id,"user",n.target.value,100).subscribe(function(p){l.users.length=0,p.forEach(function(_){l.users.push(_)})})}},{key:"save",value:function(){var n=this;this.rest.authenticators.detail(this.authenticator.id,"users").save(this.user).subscribe(function(l){n.dialogRef.close(),n.onSave.emit(!0)})}}],[{key:"launch",value:function(n,l,c){var p=window.innerWidth<800?"60%":"40%";return n.gui.dialog.open(s,{width:p,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:l,user:c},disableClose:!1}).componentInstance.onSave}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){if(1&r&&(I(0,"h4",0),te(1,Bne,4,1,"div",1),te(2,Vne,2,0,"ng-template",null,2,Ko),B(),I(4,"mat-dialog-content")(5,"div",3),te(6,Hne,4,3,"mat-form-field",4),te(7,Gne,7,4,"mat-form-field",4),I(8,"mat-form-field")(9,"mat-label")(10,"uds-translate"),K(11,"Real name"),B()(),I(12,"input",5),ne("ngModelChange",function(p){return n.user.real_name=p}),B()(),I(13,"mat-form-field")(14,"mat-label")(15,"uds-translate"),K(16,"Comments"),B()(),I(17,"input",6),ne("ngModelChange",function(p){return n.user.comments=p}),B()(),I(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),K(21,"State"),B()(),I(22,"mat-select",7),ne("ngModelChange",function(p){return n.user.state=p}),I(23,"mat-option",8)(24,"uds-translate"),K(25,"Enabled"),B()(),I(26,"mat-option",9)(27,"uds-translate"),K(28,"Disabled"),B()(),I(29,"mat-option",10)(30,"uds-translate"),K(31,"Blocked"),B()()()(),I(32,"mat-form-field")(33,"mat-label")(34,"uds-translate"),K(35,"Role"),B()(),I(36,"mat-select",11),ne("ngModelChange",function(p){return n.user.role=p})("valueChange",function(p){return n.roleChanged(p)}),I(37,"mat-option",12)(38,"uds-translate"),K(39,"Admin"),B()(),I(40,"mat-option",13)(41,"uds-translate"),K(42,"Staff member"),B()(),I(43,"mat-option",14)(44,"uds-translate"),K(45,"User"),B()()()(),te(46,Une,4,2,"mat-form-field",4),I(47,"mat-form-field")(48,"mat-label")(49,"uds-translate"),K(50,"Groups"),B()(),I(51,"mat-select",15),ne("ngModelChange",function(p){return n.user.groups=p}),te(52,jne,2,2,"mat-option",16),B()()()(),I(53,"mat-dialog-actions")(54,"button",17)(55,"uds-translate"),K(56,"Cancel"),B()(),I(57,"button",18),ne("click",function(){return n.save()}),I(58,"uds-translate"),K(59,"Ok"),B()()()),2&r){var l=Dn(3);G(1),U("ngIf",n.user.id)("ngIfElse",l),G(5),U("ngIf",!1===n.authenticator.type_info.canSearchUsers||n.user.id),G(1),U("ngIf",!0===n.authenticator.type_info.canSearchUsers&&!n.user.id),G(5),U("ngModel",n.user.real_name),G(5),U("ngModel",n.user.comments),G(5),U("ngModel",n.user.state),G(14),U("ngModel",n.user.role),G(10),U("ngIf",n.authenticator.type_info.needsPassword),G(5),U("ngModel",n.user.groups),G(1),U("ngForOf",n.groups)}},directives:[si,en,Gn,jr,or,Tr,ua,yi,pr,ar,RH,Iq,ir,Pi,Ua,li,qn,_i],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%]{width:100%}"]}),i}(),Wne=["thumbContainer"],Yne=["toggleBar"],qne=["input"],Zne=function(s){return{enterDuration:s}},Xne=["*"],Kne=new Ae("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1}}}),$ne=0,Qne={provide:Ga,useExisting:En(function(){return zS}),multi:!0},Jne=L(function i(s,r){R(this,i),this.source=s,this.checked=r}),ere=Z1(yc(bc(Fl(function(){return L(function i(s){R(this,i),this._elementRef=s})}())))),zS=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w,M){var A;return R(this,n),(A=r.call(this,l))._focusMonitor=c,A._changeDetectorRef=p,A.defaults=w,A._onChange=function(O){},A._onTouched=function(){},A._uniqueId="mat-slide-toggle-".concat(++$ne),A._required=!1,A._checked=!1,A.name=null,A.id=A._uniqueId,A.labelPosition="after",A.ariaLabel=null,A.ariaLabelledby=null,A.change=new ye,A.toggleChange=new ye,A.tabIndex=parseInt(_)||0,A.color=A.defaultColor=w.color||"accent",A._noopAnimations="NoopAnimations"===M,A}return L(n,[{key:"required",get:function(){return this._required},set:function(c){this._required=gt(c)}},{key:"checked",get:function(){return this._checked},set:function(c){this._checked=gt(c),this._changeDetectorRef.markForCheck()}},{key:"inputId",get:function(){return"".concat(this.id||this._uniqueId,"-input")}},{key:"ngAfterContentInit",value:function(){var c=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe(function(p){p||Promise.resolve().then(function(){return c._onTouched()})})}},{key:"ngOnDestroy",value:function(){this._focusMonitor.stopMonitoring(this._elementRef)}},{key:"_onChangeEvent",value:function(c){c.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(c){c.stopPropagation()}},{key:"writeValue",value:function(c){this.checked=!!c}},{key:"registerOnChange",value:function(c){this._onChange=c}},{key:"registerOnTouched",value:function(c){this._onTouched=c}},{key:"setDisabledState",value:function(c){this.disabled=c,this._changeDetectorRef.markForCheck()}},{key:"focus",value:function(c,p){p?this._focusMonitor.focusVia(this._inputElement,p,c):this._inputElement.nativeElement.focus(c)}},{key:"toggle",value:function(){this.checked=!this.checked,this._onChange(this.checked)}},{key:"_emitChangeEvent",value:function(){this._onChange(this.checked),this.change.emit(new Jne(this,this.checked))}},{key:"_onLabelTextChange",value:function(){this._changeDetectorRef.detectChanges()}}]),n}(ere);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(Rl),z(hn),Ho("tabindex"),z(Kne),z(mi,8))},i.\u0275cmp=ke({type:i,selectors:[["mat-slide-toggle"]],viewQuery:function(r,n){var l;1&r&&(Rt(Wne,5),Rt(Yne,5),Rt(qne,5)),2&r&&(Ve(l=Ge())&&(n._thumbEl=l.first),Ve(l=Ge())&&(n._thumbBarEl=l.first),Ve(l=Ge())&&(n._inputElement=l.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(r,n){2&r&&(bl("id",n.id),lt("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),Ze("mat-checked",n.checked)("mat-disabled",n.disabled)("mat-slide-toggle-label-before","before"==n.labelPosition)("_mat-animation-noopable",n._noopAnimations))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[ft([Qne]),Re],ngContentSelectors:Xne,decls:16,vars:20,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(r,n){if(1&r&&(vi(),I(0,"label",0,1)(2,"span",2,3)(4,"input",4,5),ne("change",function(_){return n._onChangeEvent(_)})("click",function(_){return n._onInputClick(_)}),B(),I(6,"span",6,7),Se(8,"span",8),I(9,"span",9),Se(10,"span",10),B()()(),I(11,"span",11,12),ne("cdkObserveContent",function(){return n._onLabelTextChange()}),I(13,"span",13),K(14,"\xa0"),B(),Gt(15),B()()),2&r){var l=Dn(1),c=Dn(12);lt("for",n.inputId),G(2),Ze("mat-slide-toggle-bar-no-side-margin",!c.textContent||!c.textContent.trim()),G(2),U("id",n.inputId)("required",n.required)("tabIndex",n.tabIndex)("checked",n.checked)("disabled",n.disabled),lt("name",n.name)("aria-checked",n.checked)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby)("aria-describedby",n.ariaDescribedby),G(5),U("matRippleTrigger",l)("matRippleDisabled",n.disableRipple||n.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",xs(18,Zne,n._noopAnimations?0:150))}},directives:[Nl,p1],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;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%;display:block}.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}),i}(),tre={provide:Gi,useExisting:En(function(){return QQ}),multi:!0},QQ=function(){var i=function(s){se(n,s);var r=ue(n);function n(){return R(this,n),r.apply(this,arguments)}return L(n)}(ib);return i.\u0275fac=function(){var s;return function(n){return(s||(s=cn(i)))(n||i)}}(),i.\u0275dir=be({type:i,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[ft([tre]),Re]}),i}(),JQ=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({}),i}(),nre=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[JQ,Cc,vn,Ny],JQ,vn]}),i}();function rre(i,s){if(1&i&&(I(0,"div")(1,"uds-translate"),K(2,"Edit group"),B(),K(3),B()),2&i){var r=Q();G(3),Le(" ",r.group.name," ")}}function ire(i,s){1&i&&(I(0,"uds-translate"),K(1,"New group"),B())}function are(i,s){if(1&i){var r=xe();I(0,"mat-form-field")(1,"mat-label"),K(2),B(),I(3,"input",13),ne("ngModelChange",function(c){return he(r),Q(2).group.name=c}),B()()}if(2&i){var n=Q(2);G(2),Le(" ",n.authenticator.type_info.groupNameLabel," "),G(1),U("ngModel",n.group.name)("disabled",n.group.id)}}function ore(i,s){if(1&i&&(I(0,"mat-option",17),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),th(" ",r.id," (",r.name,") ")}}function sre(i,s){if(1&i){var r=xe();I(0,"mat-form-field")(1,"mat-label"),K(2),B(),I(3,"input",14),ne("ngModelChange",function(p){return he(r),Q(2).group.name=p})("input",function(p){return he(r),Q(2).filterGroup(p)}),B(),I(4,"mat-autocomplete",null,15),te(6,ore,2,3,"mat-option",16),B()()}if(2&i){var n=Dn(5),l=Q(2);G(2),Le(" ",l.authenticator.type_info.groupNameLabel," "),G(1),U("ngModel",l.group.name)("matAutocomplete",n),G(3),U("ngForOf",l.fltrGroup)}}function lre(i,s){if(1&i&&(Rn(0),te(1,are,4,3,"mat-form-field",12),te(2,sre,7,4,"mat-form-field",12),On()),2&i){var r=Q();G(1),U("ngIf",!1===r.authenticator.type_info.canSearchGroups||r.group.id),G(1),U("ngIf",!0===r.authenticator.type_info.canSearchGroups&&!r.group.id)}}function ure(i,s){if(1&i){var r=xe();I(0,"mat-form-field")(1,"mat-label")(2,"uds-translate"),K(3,"Meta group name"),B()(),I(4,"input",13),ne("ngModelChange",function(c){return he(r),Q().group.name=c}),B()()}if(2&i){var n=Q();G(4),U("ngModel",n.group.name)("disabled",n.group.id)}}function cre(i,s){if(1&i&&(I(0,"mat-option",17),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.name," ")}}function fre(i,s){if(1&i){var r=xe();Rn(0),I(1,"mat-form-field")(2,"mat-label")(3,"uds-translate"),K(4,"Service Pools"),B()(),I(5,"mat-select",18),ne("ngModelChange",function(c){return he(r),Q().group.pools=c}),te(6,cre,2,2,"mat-option",16),B()(),On()}if(2&i){var n=Q();G(5),U("ngModel",n.group.pools),G(1),U("ngForOf",n.servicePools)}}function dre(i,s){if(1&i&&(I(0,"mat-option",17),K(1),B()),2&i){var r=Q().$implicit;U("value",r.id),G(1),Le(" ",r.name," ")}}function hre(i,s){if(1&i&&(Rn(0),te(1,dre,2,2,"mat-option",22),On()),2&i){var r=s.$implicit;G(1),U("ngIf","group"===r.type)}}function pre(i,s){if(1&i){var r=xe();I(0,"div",19)(1,"span",20)(2,"uds-translate"),K(3,"Match mode"),B()(),I(4,"mat-slide-toggle",6),ne("ngModelChange",function(c){return he(r),Q().group.meta_if_any=c}),K(5),B()(),I(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),K(9,"Selected Groups"),B()(),I(10,"mat-select",18),ne("ngModelChange",function(c){return he(r),Q().group.groups=c}),te(11,hre,2,1,"ng-container",21),B()()}if(2&i){var n=Q();G(4),U("ngModel",n.group.meta_if_any),G(1),Le(" ",n.getMatchValue()," "),G(5),U("ngModel",n.group.groups),G(1),U("ngForOf",n.groups)}}var eJ=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.onSave=new ye(!0),this.fltrGroup=[],this.authenticator=c.authenticator,this.group={id:void 0,type:c.groupType,name:"",comments:"",meta_if_any:!1,state:"A",groups:[],pools:[]},void 0!==c.group&&(this.group.id=c.group.id,this.group.type=c.group.type,this.group.name=c.group.name)}return L(s,[{key:"ngOnInit",value:function(){var n=this,l=this.rest.authenticators.detail(this.authenticator.id,"groups");void 0!==this.group.id&&l.get(this.group.id).subscribe(function(c){n.group=c},function(c){n.dialogRef.close()}),"meta"===this.group.type?l.summary().subscribe(function(c){return n.groups=c}):this.rest.servicesPools.summary().subscribe(function(c){return n.servicePools=c})}},{key:"filterGroup",value:function(n){var l=this;this.rest.authenticators.search(this.authenticator.id,"group",n.target.value,100).subscribe(function(p){l.fltrGroup.length=0,p.forEach(function(_){l.fltrGroup.push(_)})})}},{key:"getMatchValue",value:function(){return this.group.meta_if_any?django.gettext("Any"):django.gettext("All")}},{key:"save",value:function(){var n=this;this.rest.authenticators.detail(this.authenticator.id,"groups").save(this.group).subscribe(function(l){n.dialogRef.close(),n.onSave.emit(!0)})}}],[{key:"launch",value:function(n,l,c,p){var _=window.innerWidth<800?"60%":"40%";return n.gui.dialog.open(s,{width:_,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:l,groupType:c,group:p},disableClose:!0}).componentInstance.onSave}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){if(1&r&&(I(0,"h4",0),te(1,rre,4,1,"div",1),te(2,ire,2,0,"ng-template",null,2,Ko),B(),I(4,"mat-dialog-content")(5,"div",3),te(6,lre,3,2,"ng-container",1),te(7,ure,5,2,"ng-template",null,4,Ko),I(9,"mat-form-field")(10,"mat-label")(11,"uds-translate"),K(12,"Comments"),B()(),I(13,"input",5),ne("ngModelChange",function(w){return n.group.comments=w}),B()(),I(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),K(17,"State"),B()(),I(18,"mat-select",6),ne("ngModelChange",function(w){return n.group.state=w}),I(19,"mat-option",7)(20,"uds-translate"),K(21,"Enabled"),B()(),I(22,"mat-option",8)(23,"uds-translate"),K(24,"Disabled"),B()()()(),te(25,fre,7,2,"ng-container",1),te(26,pre,12,4,"ng-template",null,9,Ko),B()(),I(28,"mat-dialog-actions")(29,"button",10)(30,"uds-translate"),K(31,"Cancel"),B()(),I(32,"button",11),ne("click",function(){return n.save()}),I(33,"uds-translate"),K(34,"Ok"),B()()()),2&r){var l=Dn(3),c=Dn(8),p=Dn(27);G(1),U("ngIf",n.group.id)("ngIfElse",l),G(5),U("ngIf","group"===n.group.type)("ngIfElse",c),G(7),U("ngModel",n.group.comments),G(5),U("ngModel",n.group.state),G(7),U("ngIf","group"===n.group.type)("ngIfElse",p)}},directives:[si,en,Gn,jr,or,Tr,ua,yi,pr,ar,RH,Iq,ir,Pi,Ua,zS,li,qn,_i],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%]{width:100%}.label-match[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;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:0px 0px;white-space:nowrap}"]}),i}();function vre(i,s){1&i&&(I(0,"uds-translate"),K(1,"Groups"),B())}function gre(i,s){if(1&i&&(I(0,"mat-tab"),te(1,vre,2,0,"ng-template",3),Se(2,"uds-table",4),B()),2&i){var r=Q();G(2),U("rest",r.group)("pageSize",6)}}function mre(i,s){1&i&&(I(0,"uds-translate"),K(1,"Services Pools"),B())}function _re(i,s){if(1&i&&(I(0,"mat-tab"),te(1,mre,2,0,"ng-template",3),Se(2,"uds-table",4),B()),2&i){var r=Q();G(2),U("rest",r.servicesPools)("pageSize",6)}}function yre(i,s){1&i&&(I(0,"uds-translate"),K(1,"Assigned Services"),B())}function bre(i,s){if(1&i&&(I(0,"mat-tab"),te(1,yre,2,0,"ng-template",3),Se(2,"uds-table",4),B()),2&i){var r=Q();G(2),U("rest",r.userServices)("pageSize",6)}}var Cre=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],wre=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],Sre=[{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")}],Mre=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.users=c.users,this.user=c.user}return L(s,[{key:"ngOnInit",value:function(){var n=this;this.rest.authenticators.detail(this.users.parentId,"users").get(this.user.id).subscribe(function(l){n.group=new mb(django.gettext("Groups"),function(){return n.rest.authenticators.detail(n.users.parentId,"groups").overview().pipe(on(function(M){return M.filter(function(A){return l.groups.includes(A.id)})}))},Cre,n.user.id+"infogrp"),n.servicesPools=new mb(django.gettext("Services Pools"),function(){return n.users.invoke(n.user.id+"/servicesPools")},wre,n.user.id+"infopool"),n.userServices=new mb(django.gettext("Assigned services"),function(){return n.users.invoke(n.user.id+"/userServices").pipe(on(function(M){return M.map(function(A){return A.in_use=n.api.yesno(A.in_use),A})}))},Sre,n.user.id+"userservpool")})}}],[{key:"launch",value:function(n,l,c){var p=window.innerWidth<800?"80%":"60%";n.gui.dialog.open(s,{width:p,position:{top:window.innerWidth<800?"0px":"7rem"},data:{users:l,user:c},disableClose:!1})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"h4",0)(1,"uds-translate"),K(2,"Information for"),B(),K(3),B(),I(4,"mat-dialog-content")(5,"mat-tab-group"),te(6,gre,3,2,"mat-tab",1),te(7,_re,3,2,"mat-tab",1),te(8,bre,3,2,"mat-tab",1),B()(),I(9,"mat-dialog-actions")(10,"button",2)(11,"uds-translate"),K(12,"Ok"),B()()()),2&r&&(G(3),Le(" ",n.user.name,"\n"),G(3),U("ngIf",n.group),G(1),U("ngIf",n.servicesPools),G(1),U("ngIf",n.userServices))},directives:[si,Gn,jr,Hl,en,Hs,rs,Kr,li,qn,_i],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),i}();function kre(i,s){1&i&&(I(0,"uds-translate"),K(1,"Services Pools"),B())}function Dre(i,s){if(1&i&&(I(0,"mat-tab"),te(1,kre,2,0,"ng-template",3),Se(2,"uds-table",4),B()),2&i){var r=Q();G(2),U("rest",r.servicesPools)("pageSize",6)}}function xre(i,s){1&i&&(I(0,"uds-translate"),K(1,"Users"),B())}function Tre(i,s){if(1&i&&(I(0,"mat-tab"),te(1,xre,2,0,"ng-template",3),Se(2,"uds-table",4),B()),2&i){var r=Q();G(2),U("rest",r.users)("pageSize",6)}}function Are(i,s){1&i&&(I(0,"uds-translate"),K(1,"Groups"),B())}function Ere(i,s){if(1&i&&(I(0,"mat-tab"),te(1,Are,2,0,"ng-template",3),Se(2,"uds-table",4),B()),2&i){var r=Q();G(2),U("rest",r.groups)("pageSize",6)}}var Pre=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],Ore=[{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:ui.DATETIME}],Ire=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],Rre=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.data=c}return L(s,[{key:"ngOnInit",value:function(){var n=this,l=this.rest.authenticators.detail(this.data.groups.parentId,"groups");this.servicesPools=new mb(django.gettext("Service pools"),function(){return l.invoke(n.data.group.id+"/servicesPools")},Pre,this.data.group.id+"infopls"),this.users=new mb(django.gettext("Users"),function(){return l.invoke(n.data.group.id+"/users").pipe(on(function(M){return M.map(function(A){return A.state="A"===A.state?django.gettext("Enabled"):"I"===A.state?django.gettext("Disabled"):django.gettext("Blocked"),A})}))},Ore,this.data.group.id+"infousr"),"meta"===this.data.group.type&&(this.groups=new mb(django.gettext("Groups"),function(){return l.overview().pipe(on(function(M){return M.filter(function(A){return n.data.group.groups.includes(A.id)})}))},Ire,this.data.group.id+"infogrps"))}}],[{key:"launch",value:function(n,l,c){var p=window.innerWidth<800?"80%":"60%";n.gui.dialog.open(s,{width:p,position:{top:window.innerWidth<800?"0px":"7rem"},data:{group:c,groups:l},disableClose:!1})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"h4",0)(1,"uds-translate"),K(2,"Information for"),B()(),I(3,"mat-dialog-content")(4,"mat-tab-group"),te(5,Dre,3,2,"mat-tab",1),te(6,Tre,3,2,"mat-tab",1),te(7,Ere,3,2,"mat-tab",1),B()(),I(8,"mat-dialog-actions")(9,"button",2)(10,"uds-translate"),K(11,"Ok"),B()()()),2&r&&(G(5),U("ngIf",n.servicesPools),G(1),U("ngIf",n.users),G(1),U("ngIf",n.groups))},directives:[si,Gn,jr,Hl,en,Hs,rs,Kr,li,qn,_i],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),i}();function Lre(i,s){1&i&&(I(0,"uds-translate"),K(1,"Summary"),B())}function Fre(i,s){if(1&i&&Se(0,"uds-information",16),2&i){var r=Q(2);U("value",r.authenticator)("gui",r.gui)}}function Nre(i,s){1&i&&(I(0,"uds-translate"),K(1,"Users"),B())}function Bre(i,s){if(1&i){var r=xe();I(0,"uds-table",17),ne("loaded",function(c){return he(r),Q(2).onLoad(c)})("newAction",function(c){return he(r),Q(2).onNewUser(c)})("editAction",function(c){return he(r),Q(2).onEditUser(c)})("deleteAction",function(c){return he(r),Q(2).onDeleteUser(c)})("customButtonAction",function(c){return he(r),Q(2).onUserInformation(c)}),B()}if(2&i){var n=Q(2);U("rest",n.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+n.authenticator.id)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)}}function Vre(i,s){if(1&i){var r=xe();I(0,"uds-table",18),ne("loaded",function(c){return he(r),Q(2).onLoad(c)})("editAction",function(c){return he(r),Q(2).onEditUser(c)})("deleteAction",function(c){return he(r),Q(2).onDeleteUser(c)})("customButtonAction",function(c){return he(r),Q(2).onUserInformation(c)}),B()}if(2&i){var n=Q(2);U("rest",n.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+n.authenticator.id)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)}}function Hre(i,s){1&i&&(I(0,"uds-translate"),K(1,"Groups"),B())}function zre(i,s){1&i&&(I(0,"uds-translate"),K(1,"Logs"),B())}function Gre(i,s){if(1&i){var r=xe();I(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),ne("selectedIndexChange",function(c){return he(r),Q().selectedTab=c}),I(3,"mat-tab"),te(4,Lre,2,0,"ng-template",9),I(5,"div",10),te(6,Fre,1,2,"uds-information",11),B()(),I(7,"mat-tab"),te(8,Nre,2,0,"ng-template",9),I(9,"div",10),te(10,Bre,1,6,"uds-table",12),te(11,Vre,1,6,"uds-table",13),B()(),I(12,"mat-tab"),te(13,Hre,2,0,"ng-template",9),I(14,"div",10)(15,"uds-table",14),ne("loaded",function(c){return he(r),Q().onLoad(c)})("newAction",function(c){return he(r),Q().onNewGroup(c)})("editAction",function(c){return he(r),Q().onEditGroup(c)})("deleteAction",function(c){return he(r),Q().onDeleteGroup(c)})("customButtonAction",function(c){return he(r),Q().onGroupInformation(c)}),B()()(),I(16,"mat-tab"),te(17,zre,2,0,"ng-template",9),I(18,"div",10),Se(19,"uds-logs-table",15),B()()()()()}if(2&i){var n=Q();G(2),U("selectedIndex",n.selectedTab)("@.disabled",!0),G(4),U("ngIf",n.authenticator&&n.gui),G(4),U("ngIf",n.authenticator.type_info.canCreateUsers),G(1),U("ngIf",!n.authenticator.type_info.canCreateUsers),G(4),U("rest",n.groups)("multiSelect",!0)("allowExport",!0)("customButtons",n.customButtons)("tableId","authenticators-d-groups"+n.authenticator.id)("pageSize",n.api.config.admin.page_size),G(4),U("rest",n.rest.authenticators)("itemId",n.authenticator.id)("tableId","authenticators-d-log"+n.authenticator.id)}}var Ure=function(s){return["/authenticators",s]},Rq=function(){var i=function(){function s(r,n,l){R(this,s),this.route=r,this.rest=n,this.api=l,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:vr.ONLY_MENU}],this.authenticator=null,this.selectedTab=1,this.selectedTab=this.route.snapshot.paramMap.get("group")?2:1}return L(s,[{key:"ngOnInit",value:function(){var n=this,l=this.route.snapshot.paramMap.get("authenticator");this.users=this.rest.authenticators.detail(l,"users"),this.groups=this.rest.authenticators.detail(l,"groups"),this.rest.authenticators.get(l).subscribe(function(c){n.authenticator=c,n.rest.authenticators.gui(c.type).subscribe(function(p){n.gui=p})})}},{key:"onLoad",value:function(n){if(!0===n.param){var l=this.route.snapshot.paramMap.get("user"),c=this.route.snapshot.paramMap.get("group");n.table.selectElement("id",l||c)}}},{key:"processElement",value:function(n){n.maintenance_state=n.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")}},{key:"onNewUser",value:function(n){$Q.launch(this.api,this.authenticator).subscribe(function(l){return n.table.overview()})}},{key:"onEditUser",value:function(n){$Q.launch(this.api,this.authenticator,n.table.selection.selected[0]).subscribe(function(l){return n.table.overview()})}},{key:"onDeleteUser",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete user"))}},{key:"onNewGroup",value:function(n){eJ.launch(this.api,this.authenticator,n.param.type).subscribe(function(l){return n.table.overview()})}},{key:"onEditGroup",value:function(n){eJ.launch(this.api,this.authenticator,n.param.type,n.table.selection.selected[0]).subscribe(function(l){return n.table.overview()})}},{key:"onDeleteGroup",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete group"))}},{key:"onUserInformation",value:function(n){Mre.launch(this.api,this.users,n.table.selection.selected[0])}},{key:"onGroupInformation",value:function(n){Rre.launch(this.api,this.groups,n.table.selection.selected[0])}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Vr),z(rn),z(Ot))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),K(4,"arrow_back"),B()(),K(5," \xa0"),Se(6,"img",4),K(7),B(),te(8,Gre,20,14,"div",5),B()),2&r&&(G(2),U("routerLink",xs(4,Ure,n.authenticator?n.authenticator.id:"")),G(4),U("src",n.api.staticURL("admin/img/icons/services.png"),Qt),G(1),Le(" \xa0",null==n.authenticator?null:n.authenticator.name," "),G(1),U("ngIf",n.authenticator))},directives:[Al,en,Hl,Hs,rs,Gn,IH,Kr,HS],styles:[""]}),i}(),tJ=function(){var i=function(){function s(r,n,l){R(this,s),this.api=r,this.route=n,this.rest=l}return L(s,[{key:"ngOnInit",value:function(){this.route.snapshot.paramMap.get("osmanager")}},{key:"onNew",value:function(n){this.api.gui.forms.typedNewForm(n,django.gettext("New OS Manager"),!1)}},{key:"onEdit",value:function(n){this.api.gui.forms.typedEditForm(n,django.gettext("Edit OS Manager"),!1)}},{key:"onDelete",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete OS Manager"))}},{key:"onLoad",value:function(n){!0===n.param&&n.table.selectElement("id",this.route.snapshot.paramMap.get("osmanager"))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(Vr),z(rn))},i.\u0275cmp=ke({type:i,selectors:[["uds-osmanagers"]],decls:2,vars:5,consts:[["icon","osmanagers",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(r,n){1&r&&(I(0,"div")(1,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),B()()),2&r&&(G(1),U("rest",n.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size))},directives:[Kr],styles:[""]}),i}(),nJ=function(){var i=function(){function s(r,n,l){R(this,s),this.api=r,this.route=n,this.rest=l}return L(s,[{key:"ngOnInit",value:function(){this.route.snapshot.paramMap.get("transport")}},{key:"onNew",value:function(n){this.api.gui.forms.typedNewForm(n,django.gettext("New Transport"))}},{key:"onEdit",value:function(n){this.api.gui.forms.typedEditForm(n,django.gettext("Edit Transport"))}},{key:"onDelete",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete Transport"))}},{key:"processElement",value:function(n){try{n.allowed_oss=n.allowed_oss.map(function(l){return l.id}).join(", ")}catch(l){n.allowed_oss=""}}},{key:"onLoad",value:function(n){!0===n.param&&n.table.selectElement("id",this.route.snapshot.paramMap.get("transport"))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(Vr),z(rn))},i.\u0275cmp=ke({type:i,selectors:[["uds-transports"]],decls:2,vars:7,consts:[["icon","transports",3,"rest","multiSelect","allowExport","hasPermissions","newGrouped","onItem","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(r,n){1&r&&(I(0,"div")(1,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),B()()),2&r&&(G(1),U("rest",n.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0)("onItem",n.processElement)("pageSize",n.api.config.admin.page_size))},directives:[Kr],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]}),i}(),rJ=function(){var i=function(){function s(r,n,l){R(this,s),this.api=r,this.route=n,this.rest=l}return L(s,[{key:"ngOnInit",value:function(){this.route.snapshot.paramMap.get("network")}},{key:"onNew",value:function(n){this.api.gui.forms.typedNewForm(n,django.gettext("New Network"),!1)}},{key:"onEdit",value:function(n){this.api.gui.forms.typedEditForm(n,django.gettext("Edit Network"),!1)}},{key:"onDelete",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete Network"))}},{key:"onLoad",value:function(n){!0===n.param&&n.table.selectElement("id",this.route.snapshot.paramMap.get("network"))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(Vr),z(rn))},i.\u0275cmp=ke({type:i,selectors:[["uds-networks"]],decls:2,vars:5,consts:[["icon","networks",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(r,n){1&r&&(I(0,"div")(1,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),B()()),2&r&&(G(1),U("rest",n.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size))},directives:[Kr],styles:[""]}),i}(),iJ=function(){var i=function(){function s(r,n,l){R(this,s),this.route=r,this.rest=n,this.api=l,this.customButtons=[is.getGotoButton(b5,"provider_id"),is.getGotoButton(C5,"provider_id","service_id"),is.getGotoButton(ip,"osmanager_id"),is.getGotoButton(sb,"pool_group_id")],this.editing=!1}return L(s,[{key:"ngOnInit",value:function(){}},{key:"onChange",value:function(n){var l=this,c=["initial_srvs","cache_l1_srvs","max_srvs"];if(null===n.on||"service_id"===n.on.field.name){if(""===n.all.service_id.value)return n.all.osmanager_id.gui.values.length=0,void c.forEach(function(p){return n.all[p].gui.rdonly=!0});this.rest.providers.service(n.all.service_id.value).subscribe(function(p){n.all.allow_users_reset.gui.rdonly=!p.info.can_reset,n.all.osmanager_id.gui.values.length=0,l.editing||(n.all.osmanager_id.gui.rdonly=!p.info.needs_manager),!0===p.info.needs_manager?l.rest.osManagers.overview().subscribe(function(_){_.forEach(function(w){w.servicesTypes.forEach(function(M){p.info.servicesTypeProvided.includes(M)&&n.all.osmanager_id.gui.values.push({id:w.id,text:w.name})})}),n.all.osmanager_id.value=n.all.osmanager_id.gui.values.length>0?n.all.osmanager_id.value||n.all.osmanager_id.gui.values[0].id:""}):(n.all.osmanager_id.gui.values.push({id:"",text:django.gettext("(This service does not requires an OS Manager)")}),n.all.osmanager_id.value=""),c.forEach(function(_){return n.all[_].gui.rdonly=!p.info.uses_cache}),n.all.cache_l2_srvs.gui.rdonly=!1===p.info.uses_cache||!1===p.info.uses_cache_l2,n.all.publish_on_save&&(n.all.publish_on_save.gui.rdonly=!p.info.needs_publication)}),c.forEach(function(p){n.all[p].gui.rdonly=!0})}}},{key:"onNew",value:function(n){var l=this;this.editing=!1,this.api.gui.forms.typedNewForm(n,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:za.CHECKBOX,order:150,defvalue:"true"}}]).subscribe(function(c){return l.onChange(c)})}},{key:"onEdit",value:function(n){var l=this;this.editing=!0,this.api.gui.forms.typedEditForm(n,django.gettext("Edit Service Pool"),!1).subscribe(function(c){return l.onChange(c)})}},{key:"onDelete",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete service pool"))}},{key:"processElement",value:function(n){n.visible=this.api.yesno(n.visible),n.show_transports=this.api.yesno(n.show_transports),n.restrained?(n.name='warning '+this.api.gui.icon(n.info.icon)+n.name,n.state="T"):(n.name=this.api.gui.icon(n.info.icon)+n.name,n.meta_member.length>0&&(n.state="V")),n.name=this.api.safeString(n.name),n.pool_group_name=this.api.safeString(this.api.gui.icon(n.pool_group_thumb)+n.pool_group_name)}},{key:"onDetail",value:function(n){this.api.navigation.gotoServicePoolDetail(n.param.id)}},{key:"onLoad",value:function(n){!0===n.param&&n.table.selectElement("id",this.route.snapshot.paramMap.get("pool"))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Vr),z(rn),z(Ot))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),B()),2&r&&U("rest",n.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",n.processElement)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)},directives:[Kr],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-state, .mat-column-usage{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}"]}),i}();function jre(i,s){if(1&i&&(I(0,"mat-option",8),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.name," ")}}function Wre(i,s){if(1&i){var r=xe();I(0,"uds-mat-select-search",9),ne("changed",function(l){return he(r),Q().userFilter=l}),B()}}function Yre(i,s){if(1&i&&(I(0,"mat-option",8),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.name," ")}}var aJ=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.onSave=new ye(!0),this.auths=[],this.users=[],this.userFilter="",this.userService=c.userService,this.userServices=c.userServices}return L(s,[{key:"ngOnInit",value:function(){var n=this;this.authId=this.userService.owner_info.auth_id||"",this.userId=this.userService.owner_info.user_id||"",this.rest.authenticators.summary().subscribe(function(l){n.auths=l,n.authChanged()})}},{key:"changeAuth",value:function(n){this.userId="",this.authChanged()}},{key:"filteredUsers",value:function(){var n=this;if(!this.userFilter)return this.users;var l=new Array;return this.users.forEach(function(c){(""===n.userFilter||c.name.toLocaleLowerCase().includes(n.userFilter.toLocaleLowerCase()))&&l.push(c)}),l}},{key:"save",value:function(){var n=this;""!==this.userId&&""!==this.authId?this.userServices.save({id:this.userService.id,auth_id:this.authId,user_id:this.userId}).subscribe(function(){n.dialogRef.close(),n.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))}},{key:"authChanged",value:function(){var n=this;this.rest.authenticators.detail(this.authId,"users").summary().subscribe(function(l){n.users=l})}}],[{key:"launch",value:function(n,l,c){var p=window.innerWidth<800?"60%":"40%";return n.gui.dialog.open(s,{width:p,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:l,userServices:c},disableClose:!1}).componentInstance.onSave}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"h4",0)(1,"uds-translate"),K(2,"Change owner of assigned service"),B()(),I(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),K(8,"Authenticator"),B()(),I(9,"mat-select",2),ne("ngModelChange",function(c){return n.authId=c})("selectionChange",function(c){return n.changeAuth(c)}),te(10,jre,2,2,"mat-option",3),B()(),I(11,"mat-form-field")(12,"mat-label")(13,"uds-translate"),K(14,"User"),B()(),I(15,"mat-select",4),ne("ngModelChange",function(c){return n.userId=c}),te(16,Wre,1,0,"uds-mat-select-search",5),te(17,Yre,2,2,"mat-option",3),B()()()(),I(18,"mat-dialog-actions")(19,"button",6)(20,"uds-translate"),K(21,"Cancel"),B()(),I(22,"button",7),ne("click",function(){return n.save()}),I(23,"uds-translate"),K(24,"Ok"),B()()()),2&r&&(G(9),U("ngModel",n.authId),G(1),U("ngForOf",n.auths),G(5),U("ngModel",n.userId),G(1),U("ngIf",n.users.length>10),G(1),U("ngForOf",n.filteredUsers()))},directives:[si,Gn,jr,or,Tr,Ua,pr,ar,ir,Pi,en,kc,li,qn,_i],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%]{width:100%}"]}),i}();function qre(i,s){1&i&&(I(0,"uds-translate"),K(1,"New access rule for"),B())}function Zre(i,s){1&i&&(I(0,"uds-translate"),K(1,"Edit access rule for"),B())}function Xre(i,s){1&i&&(I(0,"uds-translate"),K(1,"Default fallback access for"),B())}function Kre(i,s){if(1&i){var r=xe();I(0,"uds-mat-select-search",11),ne("changed",function(l){return he(r),Q(2).calendarsFilter=l}),B()}}function $re(i,s){if(1&i&&(I(0,"mat-option",12),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.name," ")}}function Qre(i,s){if(1&i){var r=xe();Rn(0),I(1,"mat-form-field")(2,"mat-label")(3,"uds-translate"),K(4,"Priority"),B()(),I(5,"input",8),ne("ngModelChange",function(c){return he(r),Q().accessRule.priority=c}),B()(),I(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),K(9,"Calendar"),B()(),I(10,"mat-select",3),ne("ngModelChange",function(c){return he(r),Q().accessRule.calendarId=c}),te(11,Kre,1,0,"uds-mat-select-search",9),te(12,$re,2,2,"mat-option",10),B()(),On()}if(2&i){var n=Q();G(5),U("ngModel",n.accessRule.priority),G(5),U("ngModel",n.accessRule.calendarId),G(1),U("ngIf",n.calendars.length>10),G(1),U("ngForOf",n.filtered(n.calendars,n.calendarsFilter))}}var LH=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.onSave=new ye(!0),this.calendars=[],this.calendarsFilter="",this.pool=c.pool,this.model=c.model,this.accessRule={id:void 0,priority:0,access:"ALLOW",calendarId:""},c.accessRule&&(this.accessRule.id=c.accessRule.id)}return L(s,[{key:"ngOnInit",value:function(){var n=this;this.rest.calendars.summary().subscribe(function(l){n.calendars=l}),void 0!==this.accessRule.id&&-1!==this.accessRule.id?this.model.get(this.accessRule.id).subscribe(function(l){n.accessRule=l}):-1===this.accessRule.id&&this.model.parentModel.getFallbackAccess(this.pool.id).subscribe(function(l){return n.accessRule.access=l})}},{key:"filtered",value:function(n,l){return l?n.filter(function(c){return c.name.toLocaleLowerCase().includes(l.toLocaleLowerCase())}):n}},{key:"save",value:function(){var n=this,l=function(){n.dialogRef.close(),n.onSave.emit(!0)};-1!==this.accessRule.id?this.model.save(this.accessRule).subscribe(l):this.model.parentModel.setFallbackAccess(this.pool.id,this.accessRule.access).subscribe(l)}}],[{key:"launch",value:function(n,l,c,p){var _=window.innerWidth<800?"80%":"60%";return n.gui.dialog.open(s,{width:_,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:l,model:c,accessRule:p},disableClose:!1}).componentInstance.onSave}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"h4",0),te(1,qre,2,0,"uds-translate",1),te(2,Zre,2,0,"uds-translate",1),te(3,Xre,2,0,"uds-translate",1),K(4),B(),I(5,"mat-dialog-content")(6,"div",2),te(7,Qre,13,4,"ng-container",1),I(8,"mat-form-field")(9,"mat-label")(10,"uds-translate"),K(11,"Action"),B()(),I(12,"mat-select",3),ne("ngModelChange",function(c){return n.accessRule.access=c}),I(13,"mat-option",4),K(14," ALLOW "),B(),I(15,"mat-option",5),K(16," DENY "),B()()()()(),I(17,"mat-dialog-actions")(18,"button",6)(19,"uds-translate"),K(20,"Cancel"),B()(),I(21,"button",7),ne("click",function(){return n.save()}),I(22,"uds-translate"),K(23,"Ok"),B()()()),2&r&&(G(1),U("ngIf",void 0===n.accessRule.id),G(1),U("ngIf",void 0!==n.accessRule.id&&-1!==n.accessRule.id),G(1),U("ngIf",-1===n.accessRule.id),G(1),Le(" ",n.pool.name,"\n"),G(3),U("ngIf",-1!==n.accessRule.id),G(5),U("ngModel",n.accessRule.access))},directives:[si,en,Gn,jr,or,Tr,ua,Kf,yi,pr,ar,Ua,kc,ir,Pi,li,qn,_i],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%]{width:100%}"]}),i}();function Jre(i,s){if(1&i&&(I(0,"mat-option",8),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.name," ")}}function eie(i,s){if(1&i){var r=xe();I(0,"uds-mat-select-search",9),ne("changed",function(l){return he(r),Q().groupFilter=l}),B()}}function tie(i,s){if(1&i&&(Rn(0),K(1),On()),2&i){var r=Q().$implicit;G(1),Le(" (",r.comments,")")}}function nie(i,s){if(1&i&&(I(0,"mat-option",8),K(1),te(2,tie,2,1,"ng-container",10),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.name,""),G(1),U("ngIf",r.comments)}}var oJ=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.onSave=new ye(!0),this.model=null,this.auths=[],this.groups=[],this.groupFilter="",this.authId="",this.groupId="",this.pool=c.pool,this.model=c.model}return L(s,[{key:"ngOnInit",value:function(){var n=this;this.rest.authenticators.summary().subscribe(function(l){n.auths=l,n.authChanged()})}},{key:"changeAuth",value:function(n){this.groupId="",this.authChanged()}},{key:"filteredGroups",value:function(){var n=this;return!this.groupFilter||this.groupFilter.length<3?this.groups:this.groups.filter(function(l){return l.name.toLocaleLowerCase().includes(n.groupFilter.toLocaleLowerCase())})}},{key:"save",value:function(){var n=this;""!==this.groupId&&""!==this.authId?this.model.create({id:this.groupId}).subscribe(function(){n.dialogRef.close(),n.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid group"))}},{key:"authChanged",value:function(){var n=this;""!==this.authId&&this.rest.authenticators.detail(this.authId,"groups").summary().subscribe(function(l){n.groups=l})}}],[{key:"launch",value:function(n,l,c){var p=window.innerWidth<800?"60%":"40%";return n.gui.dialog.open(s,{width:p,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:l,model:c},disableClose:!1}).componentInstance.onSave}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"h4",0)(1,"uds-translate"),K(2,"New group for"),B(),K(3),B(),I(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),K(9,"Authenticator"),B()(),I(10,"mat-select",2),ne("ngModelChange",function(c){return n.authId=c})("selectionChange",function(c){return n.changeAuth(c)}),te(11,Jre,2,2,"mat-option",3),B()(),I(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),K(15,"Group"),B()(),I(16,"mat-select",4),ne("ngModelChange",function(c){return n.groupId=c}),te(17,eie,1,0,"uds-mat-select-search",5),te(18,nie,3,3,"mat-option",3),B()()()(),I(19,"mat-dialog-actions")(20,"button",6)(21,"uds-translate"),K(22,"Cancel"),B()(),I(23,"button",7),ne("click",function(){return n.save()}),I(24,"uds-translate"),K(25,"Ok"),B()()()),2&r&&(G(3),Le(" ",n.pool.name,"\n"),G(7),U("ngModel",n.authId),G(1),U("ngForOf",n.auths),G(5),U("ngModel",n.groupId),G(1),U("ngIf",n.groups.length>10),G(1),U("ngForOf",n.filteredGroups()))},directives:[si,Gn,jr,or,Tr,Ua,pr,ar,ir,Pi,en,kc,li,qn,_i],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%]{width:100%}"]}),i}();function rie(i,s){if(1&i){var r=xe();I(0,"uds-mat-select-search",7),ne("changed",function(l){return he(r),Q().transportsFilter=l}),B()}}function iie(i,s){if(1&i&&(Rn(0),K(1),On()),2&i){var r=Q().$implicit;G(1),Le(" (",r.comments,")")}}function aie(i,s){if(1&i&&(I(0,"mat-option",8),K(1),te(2,iie,2,1,"ng-container",9),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.name,""),G(1),U("ngIf",r.comments)}}var oie=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.onSave=new ye(!0),this.transports=[],this.transportsFilter="",this.transportId="",this.servicePool=c.servicePool}return L(s,[{key:"ngOnInit",value:function(){var n=this;this.rest.transports.summary().subscribe(function(l){n.transports=l.filter(function(c){return n.servicePool.info.allowedProtocols.includes(c.protocol)})})}},{key:"filteredTransports",value:function(){var n=this;return this.transportsFilter?this.transports.filter(function(l){return l.name.toLocaleLowerCase().includes(n.transportsFilter.toLocaleLowerCase())}):this.transports}},{key:"save",value:function(){var n=this;""!==this.transportId?this.rest.servicesPools.detail(this.servicePool.id,"transports").create({id:this.transportId}).subscribe(function(){n.dialogRef.close(),n.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid transport"))}}],[{key:"launch",value:function(n,l){var c=window.innerWidth<800?"60%":"40%";return n.gui.dialog.open(s,{width:c,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:l},disableClose:!1}).componentInstance.onSave}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"h4",0)(1,"uds-translate"),K(2,"New transport for"),B(),K(3),B(),I(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),K(9,"Transport"),B()(),I(10,"mat-select",2),ne("ngModelChange",function(c){return n.transportId=c}),te(11,rie,1,0,"uds-mat-select-search",3),te(12,aie,3,3,"mat-option",4),B()()()(),I(13,"mat-dialog-actions")(14,"button",5)(15,"uds-translate"),K(16,"Cancel"),B()(),I(17,"button",6),ne("click",function(){return n.save()}),I(18,"uds-translate"),K(19,"Ok"),B()()()),2&r&&(G(3),Le(" ",n.servicePool.name,"\n"),G(7),U("ngModel",n.transportId),G(1),U("ngIf",n.transports.length>10),G(1),U("ngForOf",n.filteredTransports()))},directives:[si,Gn,jr,or,Tr,Ua,pr,ar,en,kc,ir,Pi,li,qn,_i],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%]{width:100%}"]}),i}(),sie=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.onSave=new ye(!0),this.reason="",this.servicePool=c.servicePool}return L(s,[{key:"ngOnInit",value:function(){}},{key:"save",value:function(){var n=this;this.rest.servicesPools.detail(this.servicePool.id,"publications").invoke("publish","changelog="+encodeURIComponent(this.reason)).subscribe(function(){n.dialogRef.close(),n.onSave.emit(!0)})}}],[{key:"launch",value:function(n,l){var c=window.innerWidth<800?"60%":"40%";return n.gui.dialog.open(s,{width:c,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:l},disableClose:!1}).componentInstance.onSave}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"h4",0)(1,"uds-translate"),K(2,"New publication for"),B(),K(3),B(),I(4,"mat-dialog-content")(5,"div",1)(6,"mat-form-field")(7,"mat-label")(8,"uds-translate"),K(9,"Comments"),B()(),I(10,"input",2),ne("ngModelChange",function(c){return n.reason=c}),B()()()(),I(11,"mat-dialog-actions")(12,"button",3)(13,"uds-translate"),K(14,"Cancel"),B()(),I(15,"button",4),ne("click",function(){return n.save()}),I(16,"uds-translate"),K(17,"Ok"),B()()()),2&r&&(G(3),Le(" ",n.servicePool.name,"\n"),G(7),U("ngModel",n.reason))},directives:[si,Gn,jr,or,Tr,ua,yi,pr,ar,li,qn,_i],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%]{width:100%}"]}),i}(),lie=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.onSave=new ye(!0),this.servicePool=c.servicePool}return L(s,[{key:"ngOnInit",value:function(){this.changeLogPubs=this.rest.servicesPools.detail(this.servicePool.id,"changelog")}}],[{key:"launch",value:function(n,l){var c=window.innerWidth<800?"80%":"60%";n.gui.dialog.open(s,{width:c,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:l},disableClose:!1})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"h4",0)(1,"uds-translate"),K(2,"Changelog of"),B(),K(3),B(),I(4,"mat-dialog-content"),Se(5,"uds-table",1,2),B(),I(7,"mat-dialog-actions")(8,"button",3)(9,"uds-translate"),K(10,"Ok"),B()()()),2&r&&(G(3),Le(" ",n.servicePool.name,"\n"),G(2),U("rest",n.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+n.servicePool.id))},directives:[si,Gn,jr,Kr,li,qn,_i],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),i}();function uie(i,s){1&i&&(Rn(0),I(1,"uds-translate"),K(2,"Edit action for"),B(),On())}function cie(i,s){1&i&&(I(0,"uds-translate"),K(1,"New action for"),B())}function fie(i,s){if(1&i){var r=xe();I(0,"uds-mat-select-search",14),ne("changed",function(l){return he(r),Q().calendarsFilter=l}),B()}}function die(i,s){if(1&i&&(I(0,"mat-option",15),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.name," ")}}function hie(i,s){if(1&i&&(I(0,"mat-option",15),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.description," ")}}function pie(i,s){if(1&i){var r=xe();I(0,"uds-mat-select-search",14),ne("changed",function(l){return he(r),Q(2).transportsFilter=l}),B()}}function vie(i,s){if(1&i&&(I(0,"mat-option",15),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.name," ")}}function gie(i,s){if(1&i){var r=xe();Rn(0),I(1,"mat-form-field")(2,"mat-label")(3,"uds-translate"),K(4,"Transport"),B()(),I(5,"mat-select",4),ne("ngModelChange",function(c){return he(r),Q().paramValue=c}),te(6,pie,1,0,"uds-mat-select-search",5),te(7,vie,2,2,"mat-option",6),B()(),On()}if(2&i){var n=Q();G(5),U("ngModel",n.paramValue),G(1),U("ngIf",n.transports.length>10),G(1),U("ngForOf",n.filtered(n.transports,n.transportsFilter))}}function mie(i,s){if(1&i&&(I(0,"mat-option",15),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.name," ")}}function _ie(i,s){if(1&i){var r=xe();I(0,"uds-mat-select-search",14),ne("changed",function(l){return he(r),Q(2).groupsFilter=l}),B()}}function yie(i,s){if(1&i&&(I(0,"mat-option",15),K(1),B()),2&i){var r=s.$implicit;U("value",Q(2).authenticator+"@"+r.id),G(1),Le(" ",r.name," ")}}function bie(i,s){if(1&i){var r=xe();Rn(0),I(1,"mat-form-field")(2,"mat-label")(3,"uds-translate"),K(4,"Authenticator"),B()(),I(5,"mat-select",10),ne("ngModelChange",function(c){return he(r),Q().authenticator=c})("valueChange",function(c){return he(r),Q().changedAuthenticator(c)}),te(6,mie,2,2,"mat-option",6),B()(),I(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),K(10,"Group"),B()(),I(11,"mat-select",4),ne("ngModelChange",function(c){return he(r),Q().paramValue=c}),te(12,_ie,1,0,"uds-mat-select-search",5),te(13,yie,2,2,"mat-option",6),B()(),On()}if(2&i){var n=Q();G(5),U("ngModel",n.authenticator),G(1),U("ngForOf",n.authenticators),G(5),U("ngModel",n.paramValue),G(1),U("ngIf",n.groups.length>10),G(1),U("ngForOf",n.filtered(n.groups,n.groupsFilter))}}function Cie(i,s){if(1&i){var r=xe();Rn(0),I(1,"div",8)(2,"span",16),K(3),B(),K(4,"\xa0 "),I(5,"mat-slide-toggle",4),ne("ngModelChange",function(c){return he(r),Q().paramValue=c}),B()(),On()}if(2&i){var n=Q();G(3),Ln(n.parameter.description),G(2),U("ngModel",n.paramValue)}}function wie(i,s){if(1&i){var r=xe();Rn(0),I(1,"mat-form-field")(2,"mat-label"),K(3),B(),I(4,"input",17),ne("ngModelChange",function(c){return he(r),Q().paramValue=c}),B()(),On()}if(2&i){var n=Q();G(3),Le(" ",n.parameter.description," "),G(1),U("type",n.parameter.type)("ngModel",n.paramValue)}}var Sie=function(){return["transport","group","bool"]},sJ=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.onSave=new ye(!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=c.servicePool,this.scheduledAction={id:void 0,action:"",calendar:"",calendarId:"",atStart:!0,eventsOffset:0,params:{}},void 0!==c.scheduledAction&&(this.scheduledAction.id=c.scheduledAction.id)}return L(s,[{key:"ngOnInit",value:function(){var n=this;this.rest.authenticators.summary().subscribe(function(l){return n.authenticators=l}),this.rest.transports.summary().subscribe(function(l){return n.transports=l}),this.rest.calendars.summary().subscribe(function(l){return n.calendars=l}),this.rest.servicesPools.actionsList(this.servicePool.id).subscribe(function(l){n.actionList=l,n.actionList.forEach(function(c){n.paramsDict[c.id]=c.params[0]}),void 0!==n.scheduledAction.id&&n.rest.servicesPools.detail(n.servicePool.id,"actions").get(n.scheduledAction.id).subscribe(function(c){n.scheduledAction=c,n.changedAction(n.scheduledAction.action)})})}},{key:"filtered",value:function(n,l){return l?n.filter(function(c){return c.name.toLocaleLowerCase().includes(l.toLocaleLowerCase())}):n}},{key:"changedAction",value:function(n){if(this.parameter=this.paramsDict[n],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 l=this.paramValue.split("@");2!==l.length&&(l=["",""]),this.authenticator=l[0],this.changedAuthenticator(this.authenticator)}}},{key:"changedAuthenticator",value:function(n){var l=this;!n||this.rest.authenticators.detail(n,"groups").summary().subscribe(function(c){return l.groups=c})}},{key:"save",value:function(){var n=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(){n.dialogRef.close(),n.onSave.emit(!0)})}}],[{key:"launch",value:function(n,l,c){var p=window.innerWidth<800?"80%":"60%";return n.gui.dialog.open(s,{width:p,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:l,scheduledAction:c},disableClose:!1}).componentInstance.onSave}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){if(1&r&&(I(0,"h4",0),te(1,uie,3,0,"ng-container",1),te(2,cie,2,0,"ng-template",null,2,Ko),K(4),B(),I(5,"mat-dialog-content")(6,"div",3)(7,"mat-form-field")(8,"mat-label")(9,"uds-translate"),K(10,"Calendar"),B()(),I(11,"mat-select",4),ne("ngModelChange",function(p){return n.scheduledAction.calendarId=p}),te(12,fie,1,0,"uds-mat-select-search",5),te(13,die,2,2,"mat-option",6),B()(),I(14,"mat-form-field")(15,"mat-label")(16,"uds-translate"),K(17,"Events offset (minutes)"),B()(),I(18,"input",7),ne("ngModelChange",function(p){return n.scheduledAction.eventsOffset=p}),B()(),I(19,"div",8)(20,"span",9)(21,"uds-translate"),K(22,"At the beginning of the interval?"),B()(),I(23,"mat-slide-toggle",4),ne("ngModelChange",function(p){return n.scheduledAction.atStart=p}),K(24),B()(),I(25,"mat-form-field")(26,"mat-label")(27,"uds-translate"),K(28,"Action"),B()(),I(29,"mat-select",10),ne("ngModelChange",function(p){return n.scheduledAction.action=p})("valueChange",function(p){return n.changedAction(p)}),te(30,hie,2,2,"mat-option",6),B()(),te(31,gie,8,3,"ng-container",11),te(32,bie,14,5,"ng-container",11),te(33,Cie,6,2,"ng-container",11),te(34,wie,5,3,"ng-container",11),B()(),I(35,"mat-dialog-actions")(36,"button",12)(37,"uds-translate"),K(38,"Cancel"),B()(),I(39,"button",13),ne("click",function(){return n.save()}),I(40,"uds-translate"),K(41,"Ok"),B()()()),2&r){var l=Dn(3);G(1),U("ngIf",void 0!==n.scheduledAction.id)("ngIfElse",l),G(3),Le(" ",n.servicePool.name,"\n"),G(7),U("ngModel",n.scheduledAction.calendarId),G(1),U("ngIf",n.calendars.length>10),G(1),U("ngForOf",n.filtered(n.calendars,n.calendarsFilter)),G(5),U("ngModel",n.scheduledAction.eventsOffset),G(5),U("ngModel",n.scheduledAction.atStart),G(1),Le(" ",n.api.yesno(n.scheduledAction.atStart)," "),G(5),U("ngModel",n.scheduledAction.action),G(1),U("ngForOf",n.actionList),G(1),U("ngIf","transport"===(null==n.parameter?null:n.parameter.type)),G(1),U("ngIf","group"===(null==n.parameter?null:n.parameter.type)),G(1),U("ngIf","bool"===(null==n.parameter?null:n.parameter.type)),G(1),U("ngIf",(null==n.parameter?null:n.parameter.type)&&!m_(15,Sie).includes(n.parameter.type))}},directives:[si,en,Gn,jr,or,Tr,Ua,pr,ar,kc,ir,Pi,ua,Kf,yi,zS,li,qn,_i],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%]{width:100%}.label-atstart[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;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:0px 0px;white-space:nowrap}"]}),i}(),Lq=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.onSave=new ye(!0),this.userService=c.userService,this.model=c.model}return L(s,[{key:"ngOnInit",value:function(){}}],[{key:"launch",value:function(n,l,c){var p=window.innerWidth<800?"80%":"60%";n.gui.dialog.open(s,{width:p,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:l,model:c},disableClose:!1})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"h4",0)(1,"uds-translate"),K(2,"Logs of"),B(),K(3),B(),I(4,"mat-dialog-content"),Se(5,"uds-logs-table",1),B(),I(6,"mat-dialog-actions")(7,"button",2)(8,"uds-translate"),K(9,"Ok"),B()()()),2&r&&(G(3),Le(" ",n.userService.name,"\n"),G(2),U("rest",n.model)("itemId",n.userService.id)("tableId","servicePools-d-uslog"+n.userService.id))},directives:[si,Gn,jr,HS,li,qn,_i],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),i}();function Mie(i,s){if(1&i){var r=xe();I(0,"uds-mat-select-search",8),ne("changed",function(l){return he(r),Q().assignablesServicesFilter=l}),B()}}function kie(i,s){if(1&i&&(I(0,"mat-option",9),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.text," ")}}function Die(i,s){if(1&i&&(I(0,"mat-option",9),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.name," ")}}function xie(i,s){if(1&i){var r=xe();I(0,"uds-mat-select-search",8),ne("changed",function(l){return he(r),Q().userFilter=l}),B()}}function Tie(i,s){if(1&i&&(I(0,"mat-option",9),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.name," ")}}var Aie=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.onSave=new ye(!0),this.auths=[],this.assignablesServices=[],this.assignablesServicesFilter="",this.users=[],this.userFilter="",this.servicePool=c.servicePool}return L(s,[{key:"ngOnInit",value:function(){var n=this;this.authId="",this.userId="",this.rest.authenticators.summary().subscribe(function(l){n.auths=l,n.authChanged()}),this.rest.servicesPools.listAssignables(this.servicePool.id).subscribe(function(l){n.assignablesServices=l})}},{key:"changeAuth",value:function(n){this.userId="",this.authChanged()}},{key:"filteredUsers",value:function(){var n=this;if(!this.userFilter)return this.users;var l=new Array;return this.users.forEach(function(c){c.name.toLocaleLowerCase().includes(n.userFilter.toLocaleLowerCase())&&l.push(c)}),l}},{key:"filteredAssignables",value:function(){var n=this;if(!this.assignablesServicesFilter)return this.assignablesServices;var l=new Array;return this.assignablesServices.forEach(function(c){c.text.toLocaleLowerCase().includes(n.assignablesServicesFilter.toLocaleLowerCase())&&l.push(c)}),l}},{key:"save",value:function(){var n=this;""!==this.userId&&""!==this.authId?this.rest.servicesPools.createFromAssignable(this.servicePool.id,this.userId,this.serviceId).subscribe(function(l){n.dialogRef.close(),n.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))}},{key:"authChanged",value:function(){var n=this;this.authId&&this.rest.authenticators.detail(this.authId,"users").summary().subscribe(function(l){n.users=l})}}],[{key:"launch",value:function(n,l){var c=window.innerWidth<800?"60%":"40%";return n.gui.dialog.open(s,{width:c,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:l},disableClose:!1}).componentInstance.onSave}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"h4",0)(1,"uds-translate"),K(2,"Assign service to user manually"),B()(),I(3,"mat-dialog-content")(4,"div",1)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),K(8,"Service"),B()(),I(9,"mat-select",2),ne("ngModelChange",function(c){return n.serviceId=c}),te(10,Mie,1,0,"uds-mat-select-search",3),te(11,kie,2,2,"mat-option",4),B()(),I(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),K(15,"Authenticator"),B()(),I(16,"mat-select",5),ne("ngModelChange",function(c){return n.authId=c})("selectionChange",function(c){return n.changeAuth(c)}),te(17,Die,2,2,"mat-option",4),B()(),I(18,"mat-form-field")(19,"mat-label")(20,"uds-translate"),K(21,"User"),B()(),I(22,"mat-select",2),ne("ngModelChange",function(c){return n.userId=c}),te(23,xie,1,0,"uds-mat-select-search",3),te(24,Tie,2,2,"mat-option",4),B()()()(),I(25,"mat-dialog-actions")(26,"button",6)(27,"uds-translate"),K(28,"Cancel"),B()(),I(29,"button",7),ne("click",function(){return n.save()}),I(30,"uds-translate"),K(31,"Ok"),B()()()),2&r&&(G(9),U("ngModel",n.serviceId),G(1),U("ngIf",n.assignablesServices.length>10),G(1),U("ngForOf",n.filteredAssignables()),G(5),U("ngModel",n.authId),G(1),U("ngForOf",n.auths),G(5),U("ngModel",n.userId),G(1),U("ngIf",n.users.length>10),G(1),U("ngForOf",n.filteredUsers()))},directives:[si,Gn,jr,or,Tr,Ua,pr,ar,en,kc,ir,Pi,li,qn,_i],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%]{width:100%}"]}),i}(),Eie=function(){var i=function(){function s(r){R(this,s),this.rest=r,this.chart=null}return L(s,[{key:"onResize",value:function(n){this.chart&&this.chart.resize()}},{key:"ngOnInit",value:function(){var n=this;this.rest.system.stats("complete",this.poolUuid).subscribe(function(l){n.options={tooltip:{trigger:"axis",axisPointer:{type:"cross",label:{backgroundColor:"#6a7985"}}},toolbox:{feature:{dataZoom:{yAxisIndex:"none"},restore:{},saveAsImage:{}}},xAxis:{type:"category",data:l.assigned.map(function(c){return zs("SHORT_DATETIME_FORMAT",new Date(c.stamp))}),boundaryGap:!1},yAxis:{type:"value",boundaryGap:!1},series:[{name:django.gettext("Assigned"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:l.assigned.map(function(c){return c.value})},{name:django.gettext("Cached"),type:"line",stack:"services",smooth:!0,areaStyle:{},data:l.cached.map(function(c){return c.value})},{name:django.gettext("In use"),type:"line",smooth:!0,data:l.inuse.map(function(c){return c.value})}]}})}},{key:"chartInit",value:function(n){this.chart=n}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(rn))},i.\u0275cmp=ke({type:i,selectors:[["uds-service-pools-charts"]],hostBindings:function(r,n){1&r&&ne("resize",function(c){return n.onResize(c)},!1,m0)},inputs:{poolUuid:"poolUuid"},decls:2,vars:1,consts:[[1,"statistics-chart"],["echarts","","theme","dark-digerati",3,"options","chartInit"]],template:function(r,n){1&r&&(I(0,"div",0)(1,"div",1),ne("chartInit",function(c){return n.chartInit(c)}),B()()),2&r&&(G(1),U("options",n.options))},directives:[fb],styles:[""]}),i}();function Pie(i,s){1&i&&(I(0,"uds-translate"),K(1,"Summary"),B())}function Oie(i,s){if(1&i&&Se(0,"uds-information",21),2&i){var r=Q(2);U("value",r.servicePool)("gui",r.gui)}}function Iie(i,s){1&i&&(I(0,"uds-translate"),K(1,"Assigned services"),B())}function Rie(i,s){if(1&i){var r=xe();I(0,"uds-table",22),ne("customButtonAction",function(c){return he(r),Q(2).onCustomAssigned(c)})("deleteAction",function(c){return he(r),Q(2).onDeleteAssigned(c)}),B()}if(2&i){var n=Q(2);U("rest",n.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",n.processsAssignedElement)("tableId","servicePools-d-services"+n.servicePool.id)("customButtons",n.customButtonsAssignedServices)("pageSize",n.api.config.admin.page_size)}}function Lie(i,s){if(1&i){var r=xe();I(0,"uds-table",23),ne("customButtonAction",function(c){return he(r),Q(2).onCustomAssigned(c)})("newAction",function(c){return he(r),Q(2).onNewAssigned(c)})("deleteAction",function(c){return he(r),Q(2).onDeleteAssigned(c)}),B()}if(2&i){var n=Q(2);U("rest",n.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",n.processsAssignedElement)("tableId","servicePools-d-services"+n.servicePool.id)("customButtons",n.customButtonsAssignedServices)("pageSize",n.api.config.admin.page_size)}}function Fie(i,s){1&i&&(I(0,"uds-translate"),K(1,"Cache"),B())}function Nie(i,s){if(1&i){var r=xe();I(0,"mat-tab"),te(1,Fie,2,0,"ng-template",9),I(2,"div",10)(3,"uds-table",24),ne("customButtonAction",function(c){return he(r),Q(2).onCustomCached(c)})("deleteAction",function(c){return he(r),Q(2).onDeleteCache(c)}),B()()()}if(2&i){var n=Q(2);G(3),U("rest",n.cache)("multiSelect",!0)("allowExport",!0)("onItem",n.processsCacheElement)("tableId","servicePools-d-cache"+n.servicePool.id)("customButtons",n.customButtonsCachedServices)("pageSize",n.api.config.admin.page_size)}}function Bie(i,s){1&i&&(I(0,"uds-translate"),K(1,"Groups"),B())}function Vie(i,s){1&i&&(I(0,"uds-translate"),K(1,"Transports"),B())}function Hie(i,s){1&i&&(I(0,"uds-translate"),K(1,"Publications"),B())}function zie(i,s){if(1&i){var r=xe();I(0,"mat-tab"),te(1,Hie,2,0,"ng-template",9),I(2,"div",10)(3,"uds-table",25),ne("customButtonAction",function(c){return he(r),Q(2).onCustomPublication(c)})("newAction",function(c){return he(r),Q(2).onNewPublication(c)})("rowSelected",function(c){return he(r),Q(2).onPublicationRowSelect(c)}),B()()()}if(2&i){var n=Q(2);G(3),U("rest",n.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+n.servicePool.id)("customButtons",n.customButtonsPublication)("pageSize",n.api.config.admin.page_size)}}function Gie(i,s){1&i&&(I(0,"uds-translate"),K(1,"Scheduled actions"),B())}function Uie(i,s){1&i&&(I(0,"uds-translate"),K(1,"Access calendars"),B())}function jie(i,s){1&i&&(I(0,"uds-translate"),K(1,"Charts"),B())}function Wie(i,s){1&i&&(I(0,"uds-translate"),K(1,"Logs"),B())}function Yie(i,s){if(1&i){var r=xe();I(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),ne("selectedIndexChange",function(p){return he(r),Q().selectedTab=p}),I(3,"mat-tab"),te(4,Pie,2,0,"ng-template",9),I(5,"div",10),te(6,Oie,1,2,"uds-information",11),B()(),I(7,"mat-tab"),te(8,Iie,2,0,"ng-template",9),I(9,"div",10),te(10,Rie,1,7,"uds-table",12),te(11,Lie,1,7,"ng-template",null,13,Ko),B()(),te(13,Nie,4,7,"mat-tab",14),I(14,"mat-tab"),te(15,Bie,2,0,"ng-template",9),I(16,"div",10)(17,"uds-table",15),ne("newAction",function(p){return he(r),Q().onNewGroup(p)})("deleteAction",function(p){return he(r),Q().onDeleteGroup(p)}),B()()(),I(18,"mat-tab"),te(19,Vie,2,0,"ng-template",9),I(20,"div",10)(21,"uds-table",16),ne("newAction",function(p){return he(r),Q().onNewTransport(p)})("deleteAction",function(p){return he(r),Q().onDeleteTransport(p)}),B()()(),te(22,zie,4,6,"mat-tab",14),I(23,"mat-tab"),te(24,Gie,2,0,"ng-template",9),I(25,"div",10)(26,"uds-table",17),ne("customButtonAction",function(p){return he(r),Q().onCustomScheduleAction(p)})("newAction",function(p){return he(r),Q().onNewScheduledAction(p)})("editAction",function(p){return he(r),Q().onEditScheduledAction(p)})("deleteAction",function(p){return he(r),Q().onDeleteScheduledAction(p)}),B()()(),I(27,"mat-tab"),te(28,Uie,2,0,"ng-template",9),I(29,"div",10)(30,"uds-table",18),ne("newAction",function(p){return he(r),Q().onNewAccessCalendar(p)})("editAction",function(p){return he(r),Q().onEditAccessCalendar(p)})("deleteAction",function(p){return he(r),Q().onDeleteAccessCalendar(p)})("loaded",function(p){return he(r),Q().onAccessCalendarLoad(p)}),B()()(),I(31,"mat-tab"),te(32,jie,2,0,"ng-template",9),I(33,"div",10),Se(34,"uds-service-pools-charts",19),B()(),I(35,"mat-tab"),te(36,Wie,2,0,"ng-template",9),I(37,"div",10),Se(38,"uds-logs-table",20),B()()()()()}if(2&i){var n=Dn(12),l=Q();G(2),U("selectedIndex",l.selectedTab)("@.disabled",!0),G(4),U("ngIf",l.servicePool&&l.gui),G(4),U("ngIf",!1===l.servicePool.info.must_assign_manually)("ngIfElse",n),G(3),U("ngIf",l.cache),G(4),U("rest",l.groups)("multiSelect",!0)("allowExport",!0)("customButtons",l.customButtonsGroups)("tableId","servicePools-d-groups"+l.servicePool.id)("pageSize",l.api.config.admin.page_size),G(4),U("rest",l.transports)("multiSelect",!0)("allowExport",!0)("customButtons",l.customButtonsTransports)("tableId","servicePools-d-transports"+l.servicePool.id)("pageSize",l.api.config.admin.page_size),G(1),U("ngIf",l.publications),G(4),U("rest",l.scheduledActions)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-actions"+l.servicePool.id)("customButtons",l.customButtonsScheduledAction)("onItem",l.processsCalendarOrScheduledElement)("pageSize",l.api.config.admin.page_size),G(4),U("rest",l.accessCalendars)("multiSelect",!0)("allowExport",!0)("customButtons",l.customButtonAccessCalendars)("tableId","servicePools-d-access"+l.servicePool.id)("onItem",l.processsCalendarOrScheduledElement)("pageSize",l.api.config.admin.page_size),G(4),U("poolUuid",l.servicePool.id),G(4),U("rest",l.rest.servicesPools)("itemId",l.servicePool.id)("tableId","servicePools-d-log"+l.servicePool.id)("pageSize",l.api.config.admin.page_size)}}var qie=function(s){return["/pools","service-pools",s]},Fq='event'+django.gettext("Logs")+"",Zie='computer'+django.gettext("VNC")+"",Xie='schedule'+django.gettext("Launch now")+"",lJ='perm_identity'+django.gettext("Change owner")+"",Kie='perm_identity'+django.gettext("Assign service")+"",$ie='cancel'+django.gettext("Cancel")+"",Qie='event'+django.gettext("Changelog")+"",uJ=function(){var i=function(){function s(r,n,l){R(this,s),this.route=r,this.rest=n,this.api=l,this.customButtonsScheduledAction=[{id:"launch-action",html:Xie,type:vr.SINGLE_SELECT},is.getGotoButton(ob,"calendarId")],this.customButtonAccessCalendars=[is.getGotoButton(ob,"calendarId")],this.customButtonsAssignedServices=[{id:"change-owner",html:lJ,type:vr.SINGLE_SELECT},{id:"log",html:Fq,type:vr.SINGLE_SELECT},is.getGotoButton(eP,"owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:Fq,type:vr.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:$ie,type:vr.SINGLE_SELECT},{id:"changelog",html:Qie,type:vr.ALWAYS}],this.customButtonsGroups=[is.getGotoButton("group","auth_id","id")],this.customButtonsTransports=[is.getGotoButton(DS,"id")],this.servicePool=null,this.gui=null,this.selectedTab=1}return L(s,[{key:"ngOnInit",value:function(){var n=this,l=this.route.snapshot.paramMap.get("pool");this.assignedServices=this.rest.servicesPools.detail(l,"services"),this.groups=this.rest.servicesPools.detail(l,"groups"),this.transports=this.rest.servicesPools.detail(l,"transports"),this.scheduledActions=this.rest.servicesPools.detail(l,"actions"),this.accessCalendars=this.rest.servicesPools.detail(l,"access"),this.rest.servicesPools.get(l).subscribe(function(c){n.servicePool=c,n.cache=n.servicePool.info.uses_cache?n.rest.servicesPools.detail(l,"cache"):null,n.publications=n.servicePool.info.needs_publication?n.rest.servicesPools.detail(l,"publications"):null,n.api.config.admin.vnc_userservices&&n.customButtonsAssignedServices.push({id:"vnc",html:Zie,type:vr.ONLY_MENU}),n.servicePool.info.can_list_assignables&&n.customButtonsAssignedServices.push({id:"assign-service",html:Kie,type:vr.ALWAYS}),n.rest.servicesPools.gui().subscribe(function(p){n.gui=p.filter(function(_){return!(!1===n.servicePool.info.uses_cache&&["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"].includes(_.name)||!1===n.servicePool.info.uses_cache_l2&&"cache_l2_srvs"===_.name||!1===n.servicePool.info.needs_manager&&"osmanager_id"===_.name)})})})}},{key:"onNewAssigned",value:function(n){}},{key:"vnc",value:function(n){var c=new Blob(["[connection]\nhost="+n.ip+"\nport=5900\n"],{type:"application/extension-vnc"});setTimeout(function(){(0,Eq.saveAs)(c,n.ip+".vnc")},100)}},{key:"onCustomAssigned",value:function(n){var l=n.table.selection.selected[0];if("change-owner"===n.param.id){if(["E","R","M","S","C"].includes(l.state))return;aJ.launch(this.api,l,this.assignedServices).subscribe(function(c){return n.table.overview()})}else"log"===n.param.id?Lq.launch(this.api,l,this.assignedServices):"assign-service"===n.param.id?Aie.launch(this.api,this.servicePool).subscribe(function(c){return n.table.overview()}):"vnc"===n.param.id&&this.vnc(l)}},{key:"onCustomCached",value:function(n){"log"===n.param.id&&Lq.launch(this.api,n.table.selection.selected[0],this.cache)}},{key:"processsAssignedElement",value:function(n){n.in_use=this.api.yesno(n.in_use),n.origState=n.state,"U"===n.state&&(n.state=""!==n.os_state&&"U"!==n.os_state?"Z":"U")}},{key:"onDeleteAssigned",value:function(n){s.cleanInvalidSelections(n)||this.api.gui.forms.deleteForm(n,django.gettext("Delete assigned service"))}},{key:"onDeleteCache",value:function(n){s.cleanInvalidSelections(n)||this.api.gui.forms.deleteForm(n,django.gettext("Delete cached service"))}},{key:"processsCacheElement",value:function(n){n.origState=n.state,"U"===n.state&&(n.state=""!==n.os_state&&"U"!==n.os_state?"Z":"U")}},{key:"onNewGroup",value:function(n){oJ.launch(this.api,this.servicePool,this.groups).subscribe(function(l){return n.table.overview()})}},{key:"onDeleteGroup",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete assigned group"))}},{key:"onNewTransport",value:function(n){oie.launch(this.api,this.servicePool).subscribe(function(l){return n.table.overview()})}},{key:"onDeleteTransport",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete assigned transport"))}},{key:"onNewPublication",value:function(n){sie.launch(this.api,this.servicePool).subscribe(function(l){n.table.overview()})}},{key:"onPublicationRowSelect",value:function(n){1===n.table.selection.selected.length&&(this.customButtonsPublication[0].disabled=!["P","W","L","K"].includes(n.table.selection.selected[0].state))}},{key:"onCustomPublication",value:function(n){var l=this;"cancel-publication"===n.param.id?this.api.gui.yesno(django.gettext("Publication"),django.gettext("Cancel publication?"),!0).subscribe(function(c){c&&l.publications.invoke(n.table.selection.selected[0].id+"/cancel").subscribe(function(p){l.api.gui.snackbar.open(django.gettext("Publication canceled"),django.gettext("dismiss"),{duration:2e3}),n.table.overview()})}):"changelog"===n.param.id&&lie.launch(this.api,this.servicePool)}},{key:"onNewScheduledAction",value:function(n){sJ.launch(this.api,this.servicePool).subscribe(function(l){return n.table.overview()})}},{key:"onEditScheduledAction",value:function(n){sJ.launch(this.api,this.servicePool,n.table.selection.selected[0]).subscribe(function(l){return n.table.overview()})}},{key:"onDeleteScheduledAction",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete scheduled action"))}},{key:"onCustomScheduleAction",value:function(n){var l=this;this.api.gui.yesno(django.gettext("Execute scheduled action"),django.gettext("Execute scheduled action right now?")).subscribe(function(c){c&&l.scheduledActions.invoke(n.table.selection.selected[0].id+"/execute").subscribe(function(){l.api.gui.snackbar.open(django.gettext("Scheduled action executed"),django.gettext("dismiss"),{duration:2e3}),n.table.overview()})})}},{key:"onNewAccessCalendar",value:function(n){LH.launch(this.api,this.servicePool,this.accessCalendars).subscribe(function(l){return n.table.overview()})}},{key:"onEditAccessCalendar",value:function(n){LH.launch(this.api,this.servicePool,this.accessCalendars,n.table.selection.selected[0]).subscribe(function(l){return n.table.overview()})}},{key:"onDeleteAccessCalendar",value:function(n){-1!==n.table.selection.selected[0].id?this.api.gui.forms.deleteForm(n,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(n)}},{key:"onAccessCalendarLoad",value:function(n){var l=this;this.rest.servicesPools.getFallbackAccess(this.servicePool.id).subscribe(function(c){var p=n.table.dataSource.data.filter(function(_){return!0});p.push({id:-1,calendar:"-",priority:l.api.safeString('10000000FallBack'),access:c}),n.table.dataSource.data=p})}},{key:"processsCalendarOrScheduledElement",value:function(n){n.name=n.calendar,n.atStart=this.api.yesno(n.atStart)}}],[{key:"cleanInvalidSelections",value:function(n){return n.table.selection.selected.filter(function(l){return["E","R","M","S","C"].includes(l.state)}).forEach(function(l){return n.table.selection.deselect(l)}),n.table.selection.isEmpty()}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Vr),z(rn),z(Ot))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),K(4,"arrow_back"),B()(),K(5," \xa0"),Se(6,"img",4),K(7),B(),te(8,Yie,39,38,"div",5),B()),2&r&&(G(2),U("routerLink",xs(4,qie,n.servicePool?n.servicePool.id:"")),G(4),U("src",n.api.staticURL("admin/img/icons/pools.png"),Qt),G(1),Le(" \xa0",null==n.servicePool?null:n.servicePool.name," "),G(1),U("ngIf",null!==n.servicePool))},directives:[Al,en,Hl,Hs,rs,Gn,IH,Kr,Eie,HS],styles:[".mat-column-state{max-width:10rem;justify-content:center} .mat-column-revision, .mat-column-cache_level, .mat-column-in_use, .mat-column-priority{max-width:7rem;justify-content:center} .mat-column-creation_date, .mat-column-state_date, .mat-column-publish_date, .mat-column-trans_type, .mat-column-access{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}"]}),i}(),cJ=function(){var i=function(){function s(r,n,l){R(this,s),this.api=r,this.route=n,this.rest=l}return L(s,[{key:"ngOnInit",value:function(){}},{key:"onNew",value:function(n){this.api.gui.forms.typedNewForm(n,django.gettext("New meta pool"))}},{key:"onEdit",value:function(n){this.api.gui.forms.typedEditForm(n,django.gettext("Edit meta pool"))}},{key:"onDelete",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete meta pool"))}},{key:"onDetail",value:function(n){this.api.navigation.gotoMetapoolDetail(n.param.id)}},{key:"processElement",value:function(n){n.visible=this.api.yesno(n.visible),n.name=this.api.safeString(this.api.gui.icon(n.thumb)+n.name),n.pool_group_name=this.api.safeString(this.api.gui.icon(n.pool_group_thumb)+n.pool_group_name)}},{key:"onLoad",value:function(n){!0===n.param&&n.table.selectElement("id",this.route.snapshot.paramMap.get("metapool"))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(Vr),z(rn))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"div")(1,"uds-table",0),ne("detailAction",function(c){return n.onDetail(c)})("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),B()()),2&r&&(G(1),U("rest",n.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",n.processElement)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size))},directives:[Kr],styles:[".mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible, .mat-column-pool_group_name{max-width:7rem;justify-content:center}"]}),i}();function Jie(i,s){1&i&&(I(0,"uds-translate"),K(1,"New member pool"),B())}function eae(i,s){1&i&&(I(0,"uds-translate"),K(1,"Edit member pool"),B())}function tae(i,s){if(1&i){var r=xe();I(0,"uds-mat-select-search",11),ne("changed",function(l){return he(r),Q().servicePoolsFilter=l}),B()}}function nae(i,s){if(1&i&&(I(0,"mat-option",12),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.name," ")}}var fJ=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.onSave=new ye(!0),this.servicePools=[],this.servicePoolsFilter="",this.model=c.model,this.memberPool={id:void 0,priority:0,pool_id:"",enabled:!0},c.memberPool&&(this.memberPool.id=c.memberPool.id)}return L(s,[{key:"ngOnInit",value:function(){var n=this;this.rest.servicesPools.summary().subscribe(function(l){return n.servicePools=l}),this.memberPool.id&&this.model.get(this.memberPool.id).subscribe(function(l){return n.memberPool=l})}},{key:"filtered",value:function(n,l){return l?n.filter(function(c){return c.name.toLocaleLowerCase().includes(l.toLocaleLowerCase())}):n}},{key:"save",value:function(){var n=this;this.memberPool.pool_id?this.model.save(this.memberPool).subscribe(function(){n.dialogRef.close(),n.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid service pool"))}}],[{key:"launch",value:function(n,l,c){var p=window.innerWidth<800?"60%":"40%";return n.gui.dialog.open(s,{width:p,position:{top:window.innerWidth<800?"0px":"7rem"},data:{memberPool:c,model:l},disableClose:!1}).componentInstance.onSave}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"h4",0),te(1,Jie,2,0,"uds-translate",1),te(2,eae,2,0,"uds-translate",1),B(),I(3,"mat-dialog-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),K(8,"Priority"),B()(),I(9,"input",3),ne("ngModelChange",function(c){return n.memberPool.priority=c}),B()(),I(10,"mat-form-field")(11,"mat-label")(12,"uds-translate"),K(13,"Service pool"),B()(),I(14,"mat-select",4),ne("ngModelChange",function(c){return n.memberPool.pool_id=c}),te(15,tae,1,0,"uds-mat-select-search",5),te(16,nae,2,2,"mat-option",6),B()(),I(17,"div",7)(18,"span",8)(19,"uds-translate"),K(20,"Enabled?"),B()(),I(21,"mat-slide-toggle",4),ne("ngModelChange",function(c){return n.memberPool.enabled=c}),K(22),B()()()(),I(23,"mat-dialog-actions")(24,"button",9)(25,"uds-translate"),K(26,"Cancel"),B()(),I(27,"button",10),ne("click",function(){return n.save()}),I(28,"uds-translate"),K(29,"Ok"),B()()()),2&r&&(G(1),U("ngIf",!(null!=n.memberPool&&n.memberPool.id)),G(1),U("ngIf",null==n.memberPool?null:n.memberPool.id),G(7),U("ngModel",n.memberPool.priority),G(5),U("ngModel",n.memberPool.pool_id),G(1),U("ngIf",n.servicePools.length>10),G(1),U("ngForOf",n.filtered(n.servicePools,n.servicePoolsFilter)),G(5),U("ngModel",n.memberPool.enabled),G(1),Le(" ",n.api.yesno(n.memberPool.enabled)," "))},directives:[si,en,Gn,jr,or,Tr,ua,Kf,yi,pr,ar,Ua,kc,ir,Pi,zS,li,qn,_i],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%]{width:100%}.label-enabled[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;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:0px 0px;white-space:nowrap}"]}),i}();function rae(i,s){1&i&&(I(0,"uds-translate"),K(1,"Summary"),B())}function iae(i,s){if(1&i&&Se(0,"uds-information",17),2&i){var r=Q(2);U("value",r.metaPool)("gui",r.gui)}}function aae(i,s){1&i&&(I(0,"uds-translate"),K(1,"Service pools"),B())}function oae(i,s){1&i&&(I(0,"uds-translate"),K(1,"Assigned services"),B())}function sae(i,s){1&i&&(I(0,"uds-translate"),K(1,"Groups"),B())}function lae(i,s){1&i&&(I(0,"uds-translate"),K(1,"Access calendars"),B())}function uae(i,s){1&i&&(I(0,"uds-translate"),K(1,"Logs"),B())}function cae(i,s){if(1&i){var r=xe();I(0,"div",6)(1,"div",7)(2,"mat-tab-group",8),ne("selectedIndexChange",function(c){return he(r),Q().selectedTab=c}),I(3,"mat-tab"),te(4,rae,2,0,"ng-template",9),I(5,"div",10),te(6,iae,1,2,"uds-information",11),B()(),I(7,"mat-tab"),te(8,aae,2,0,"ng-template",9),I(9,"div",10)(10,"uds-table",12),ne("newAction",function(c){return he(r),Q().onNewMemberPool(c)})("editAction",function(c){return he(r),Q().onEditMemberPool(c)})("deleteAction",function(c){return he(r),Q().onDeleteMemberPool(c)}),B()()(),I(11,"mat-tab"),te(12,oae,2,0,"ng-template",9),I(13,"div",10)(14,"uds-table",13),ne("customButtonAction",function(c){return he(r),Q().onCustomAssigned(c)})("deleteAction",function(c){return he(r),Q().onDeleteAssigned(c)}),B()()(),I(15,"mat-tab"),te(16,sae,2,0,"ng-template",9),I(17,"div",10)(18,"uds-table",14),ne("newAction",function(c){return he(r),Q().onNewGroup(c)})("deleteAction",function(c){return he(r),Q().onDeleteGroup(c)}),B()()(),I(19,"mat-tab"),te(20,lae,2,0,"ng-template",9),I(21,"div",10)(22,"uds-table",15),ne("newAction",function(c){return he(r),Q().onNewAccessCalendar(c)})("editAction",function(c){return he(r),Q().onEditAccessCalendar(c)})("deleteAction",function(c){return he(r),Q().onDeleteAccessCalendar(c)})("loaded",function(c){return he(r),Q().onAccessCalendarLoad(c)}),B()()(),I(23,"mat-tab"),te(24,uae,2,0,"ng-template",9),I(25,"div",10),Se(26,"uds-logs-table",16),B()()()()()}if(2&i){var n=Q();G(2),U("selectedIndex",n.selectedTab)("@.disabled",!0),G(4),U("ngIf",n.metaPool&&n.gui),G(4),U("rest",n.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",n.processElement)("customButtons",n.customButtons)("tableId","metaPools-d-members"+n.metaPool.id)("pageSize",n.api.config.admin.page_size),G(4),U("rest",n.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+n.metaPool.id)("customButtons",n.customButtonsAssignedServices)("pageSize",n.api.config.admin.page_size),G(4),U("rest",n.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+n.metaPool.id)("pageSize",n.api.config.admin.page_size),G(4),U("rest",n.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+n.metaPool.id)("pageSize",n.api.config.admin.page_size)("onItem",n.processsCalendarItem),G(4),U("rest",n.rest.metaPools)("itemId",n.metaPool.id)("tableId","metaPools-d-log"+n.metaPool.id)("pageSize",n.api.config.admin.page_size)}}var fae=function(s){return["/pools","meta-pools",s]},dae=function(){var i=function(){function s(r,n,l){R(this,s),this.route=r,this.rest=n,this.api=l,this.customButtons=[is.getGotoButton(JE,"pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:lJ,type:vr.SINGLE_SELECT},{id:"log",html:Fq,type:vr.SINGLE_SELECT},is.getGotoButton(eP,"owner_info.auth_id","owner_info.user_id")],this.metaPool=null,this.gui=null,this.selectedTab=1}return L(s,[{key:"ngOnInit",value:function(){var n=this,l=this.route.snapshot.paramMap.get("metapool");this.rest.metaPools.get(l).subscribe(function(c){n.metaPool=c,n.rest.metaPools.gui().subscribe(function(p){n.gui=p}),n.memberPools=n.rest.metaPools.detail(l,"pools"),n.memberUserServices=n.rest.metaPools.detail(l,"services"),n.groups=n.rest.metaPools.detail(l,"groups"),n.accessCalendars=n.rest.metaPools.detail(l,"access")})}},{key:"onNewMemberPool",value:function(n){fJ.launch(this.api,this.memberPools).subscribe(function(){return n.table.overview()})}},{key:"onEditMemberPool",value:function(n){fJ.launch(this.api,this.memberPools,n.table.selection.selected[0]).subscribe(function(){return n.table.overview()})}},{key:"onDeleteMemberPool",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Remove member pool"))}},{key:"onCustomAssigned",value:function(n){var l=n.table.selection.selected[0];if("change-owner"===n.param.id){if(["E","R","M","S","C"].includes(l.state))return;aJ.launch(this.api,l,this.memberUserServices).subscribe(function(c){return n.table.overview()})}else"log"===n.param.id&&Lq.launch(this.api,l,this.memberUserServices)}},{key:"onDeleteAssigned",value:function(n){uJ.cleanInvalidSelections(n)||this.api.gui.forms.deleteForm(n,django.gettext("Delete assigned service"))}},{key:"onNewGroup",value:function(n){oJ.launch(this.api,this.metaPool.id,this.groups).subscribe(function(l){return n.table.overview()})}},{key:"onDeleteGroup",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete assigned group"))}},{key:"onNewAccessCalendar",value:function(n){LH.launch(this.api,this.metaPool,this.accessCalendars).subscribe(function(l){return n.table.overview()})}},{key:"onEditAccessCalendar",value:function(n){LH.launch(this.api,this.metaPool,this.accessCalendars,n.table.selection.selected[0]).subscribe(function(l){return n.table.overview()})}},{key:"onDeleteAccessCalendar",value:function(n){console.log("ID",n.table.selection.selected[0].id),-1!==n.table.selection.selected[0].id?this.api.gui.forms.deleteForm(n,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(n)}},{key:"onAccessCalendarLoad",value:function(n){var l=this;this.rest.metaPools.getFallbackAccess(this.metaPool.id).subscribe(function(c){var p=n.table.dataSource.data.filter(function(_){return!0});p.push({id:-1,calendar:"-",priority:l.api.safeString('10000000FallBack'),access:c}),n.table.dataSource.data=p})}},{key:"processElement",value:function(n){n.enabled=this.api.yesno(n.enabled)}},{key:"processsCalendarItem",value:function(n){n.name=n.calendar,n.atStart=this.api.yesno(n.atStart)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Vr),z(rn),z(Ot))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),K(4,"arrow_back"),B()(),K(5," \xa0"),Se(6,"img",4),K(7),B(),te(8,cae,27,31,"div",5),B()),2&r&&(G(2),U("routerLink",xs(4,fae,n.metaPool?n.metaPool.id:"")),G(4),U("src",n.api.staticURL("admin/img/icons/metas.png"),Qt),G(1),Le(" ",null==n.metaPool?null:n.metaPool.name," "),G(1),U("ngIf",n.metaPool))},directives:[Al,en,Hl,Hs,rs,Gn,IH,Kr,HS],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]}),i}(),dJ=function(){var i=function(){function s(r,n,l){R(this,s),this.route=r,this.rest=n,this.api=l}return L(s,[{key:"ngOnInit",value:function(){}},{key:"onNew",value:function(n){this.api.gui.forms.typedNewForm(n,django.gettext("New pool group"),!1).subscribe(function(l){return n.table.overview()})}},{key:"onEdit",value:function(n){this.api.gui.forms.typedEditForm(n,django.gettext("Edit pool group"),!1).subscribe(function(l){return n.table.overview()})}},{key:"onDelete",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete pool group"))}},{key:"onLoad",value:function(n){!0===n.param&&n.table.selectElement("id",this.route.snapshot.paramMap.get("poolgroup"))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Vr),z(rn),z(Ot))},i.\u0275cmp=ke({type:i,selectors:[["uds-pool-groups"]],decls:1,vars:5,consts:[["icon","spool-group",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(r,n){1&r&&(I(0,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),B()),2&r&&U("rest",n.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",n.api.config.admin.page_size)},directives:[Kr],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]}),i}(),hJ=function(){var i=function(){function s(r,n,l){R(this,s),this.route=r,this.rest=n,this.api=l}return L(s,[{key:"ngOnInit",value:function(){}},{key:"onNew",value:function(n){this.api.gui.forms.typedNewForm(n,django.gettext("New calendar"))}},{key:"onEdit",value:function(n){this.api.gui.forms.typedEditForm(n,django.gettext("Edit calendar"))}},{key:"onDelete",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete calendar"))}},{key:"onDetail",value:function(n){this.api.navigation.gotoCalendarDetail(n.param.id)}},{key:"onLoad",value:function(n){!0===n.param&&n.table.selectElement("id",this.route.snapshot.paramMap.get("calendar"))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Vr),z(rn),z(Ot))},i.\u0275cmp=ke({type:i,selectors:[["uds-calendars"]],decls:1,vars:5,consts:[["icon","calendars",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(r,n){1&r&&(I(0,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),B()),2&r&&U("rest",n.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("pageSize",n.api.config.admin.page_size)},directives:[Kr],styles:[""]}),i}(),hae=["mat-calendar-body",""];function pae(i,s){if(1&i&&(I(0,"tr",2)(1,"td",3),K(2),B()()),2&i){var r=Q();G(1),ta("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),lt("colspan",r.numCols),G(1),Le(" ",r.label," ")}}function vae(i,s){if(1&i&&(I(0,"td",3),K(1),B()),2&i){var r=Q(2);ta("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),lt("colspan",r._firstRowOffset),G(1),Le(" ",r._firstRowOffset>=r.labelMinRequiredCells?r.label:""," ")}}function gae(i,s){if(1&i){var r=xe();I(0,"td",7)(1,"button",8),ne("click",function(w){var A=he(r).$implicit;return Q(2)._cellClicked(A,w)}),I(2,"div",9),K(3),B(),Se(4,"div",10),B()()}if(2&i){var n=s.$implicit,l=s.index,c=Q().index,p=Q();ta("width",p._cellWidth)("padding-top",p._cellPadding)("padding-bottom",p._cellPadding),lt("data-mat-row",c)("data-mat-col",l),G(1),Ze("mat-calendar-body-disabled",!n.enabled)("mat-calendar-body-active",p._isActiveCell(c,l))("mat-calendar-body-range-start",p._isRangeStart(n.compareValue))("mat-calendar-body-range-end",p._isRangeEnd(n.compareValue))("mat-calendar-body-in-range",p._isInRange(n.compareValue))("mat-calendar-body-comparison-bridge-start",p._isComparisonBridgeStart(n.compareValue,c,l))("mat-calendar-body-comparison-bridge-end",p._isComparisonBridgeEnd(n.compareValue,c,l))("mat-calendar-body-comparison-start",p._isComparisonStart(n.compareValue))("mat-calendar-body-comparison-end",p._isComparisonEnd(n.compareValue))("mat-calendar-body-in-comparison-range",p._isInComparisonRange(n.compareValue))("mat-calendar-body-preview-start",p._isPreviewStart(n.compareValue))("mat-calendar-body-preview-end",p._isPreviewEnd(n.compareValue))("mat-calendar-body-in-preview",p._isInPreview(n.compareValue)),U("ngClass",n.cssClasses)("tabindex",p._isActiveCell(c,l)?0:-1),lt("aria-label",n.ariaLabel)("aria-disabled",!n.enabled||null)("aria-pressed",p._isSelected(n.compareValue))("aria-current",p.todayValue===n.compareValue?"date":null),G(1),Ze("mat-calendar-body-selected",p._isSelected(n.compareValue))("mat-calendar-body-comparison-identical",p._isComparisonIdentical(n.compareValue))("mat-calendar-body-today",p.todayValue===n.compareValue),G(1),Le(" ",n.displayValue," ")}}function mae(i,s){if(1&i&&(I(0,"tr",4),te(1,vae,2,6,"td",5),te(2,gae,5,47,"td",6),B()),2&i){var r=s.$implicit,n=s.index,l=Q();G(1),U("ngIf",0===n&&l._firstRowOffset),G(1),U("ngForOf",r)}}function _ae(i,s){if(1&i&&(I(0,"th",5)(1,"span",6),K(2),B(),I(3,"span",7),K(4),B()()),2&i){var r=s.$implicit;G(2),Ln(r.long),G(2),Ln(r.narrow)}}var yae=["*"];function bae(i,s){}function Cae(i,s){if(1&i){var r=xe();I(0,"mat-month-view",5),ne("activeDateChange",function(c){return he(r),Q().activeDate=c})("_userSelection",function(c){return he(r),Q()._dateSelected(c)}),B()}if(2&i){var n=Q();U("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)("comparisonStart",n.comparisonStart)("comparisonEnd",n.comparisonEnd)}}function wae(i,s){if(1&i){var r=xe();I(0,"mat-year-view",6),ne("activeDateChange",function(c){return he(r),Q().activeDate=c})("monthSelected",function(c){return he(r),Q()._monthSelectedInYearView(c)})("selectedChange",function(c){return he(r),Q()._goToDateInView(c,"month")}),B()}if(2&i){var n=Q();U("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)}}function Sae(i,s){if(1&i){var r=xe();I(0,"mat-multi-year-view",7),ne("activeDateChange",function(c){return he(r),Q().activeDate=c})("yearSelected",function(c){return he(r),Q()._yearSelectedInMultiYearView(c)})("selectedChange",function(c){return he(r),Q()._goToDateInView(c,"year")}),B()}if(2&i){var n=Q();U("activeDate",n.activeDate)("selected",n.selected)("dateFilter",n.dateFilter)("maxDate",n.maxDate)("minDate",n.minDate)("dateClass",n.dateClass)}}function Mae(i,s){}var kae=["button"];function Dae(i,s){1&i&&(Bi(),I(0,"svg",3),Se(1,"path",4),B())}var xae=[[["","matDatepickerToggleIcon",""]]],Tae=["[matDatepickerToggleIcon]"],Nq=L(function i(s,r,n,l){var c=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},p=arguments.length>5&&void 0!==arguments[5]?arguments[5]:s,_=arguments.length>6?arguments[6]:void 0;R(this,i),this.value=s,this.displayValue=r,this.ariaLabel=n,this.enabled=l,this.cssClasses=c,this.compareValue=p,this.rawValue=_}),GS=function(){var i=function(){function s(r,n){var l=this;R(this,s),this._elementRef=r,this._ngZone=n,this.numCols=7,this.activeCell=0,this.isRange=!1,this.cellAspectRatio=1,this.previewStart=null,this.previewEnd=null,this.selectedValueChange=new ye,this.previewChange=new ye,this._enterHandler=function(c){if(l._skipNextFocus&&"focus"===c.type)l._skipNextFocus=!1;else if(c.target&&l.isRange){var p=l._getCellFromElement(c.target);p&&l._ngZone.run(function(){return l.previewChange.emit({value:p.enabled?p:null,event:c})})}},this._leaveHandler=function(c){null!==l.previewEnd&&l.isRange&&c.target&&l._getCellFromElement(c.target)&&l._ngZone.run(function(){return l.previewChange.emit({value:null,event:c})})},n.runOutsideAngular(function(){var c=r.nativeElement;c.addEventListener("mouseenter",l._enterHandler,!0),c.addEventListener("focus",l._enterHandler,!0),c.addEventListener("mouseleave",l._leaveHandler,!0),c.addEventListener("blur",l._leaveHandler,!0)})}return L(s,[{key:"_cellClicked",value:function(n,l){n.enabled&&this.selectedValueChange.emit({value:n.value,event:l})}},{key:"_isSelected",value:function(n){return this.startValue===n||this.endValue===n}},{key:"ngOnChanges",value:function(n){var l=n.numCols,c=this.rows,p=this.numCols;(n.rows||l)&&(this._firstRowOffset=c&&c.length&&c[0].length?p-c[0].length:0),(n.cellAspectRatio||l||!this._cellPadding)&&(this._cellPadding="".concat(50*this.cellAspectRatio/p,"%")),(l||!this._cellWidth)&&(this._cellWidth="".concat(100/p,"%"))}},{key:"ngOnDestroy",value:function(){var n=this._elementRef.nativeElement;n.removeEventListener("mouseenter",this._enterHandler,!0),n.removeEventListener("focus",this._enterHandler,!0),n.removeEventListener("mouseleave",this._leaveHandler,!0),n.removeEventListener("blur",this._leaveHandler,!0)}},{key:"_isActiveCell",value:function(n,l){var c=n*this.numCols+l;return n&&(c-=this._firstRowOffset),c==this.activeCell}},{key:"_focusActiveCell",value:function(){var n=this,l=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._ngZone.runOutsideAngular(function(){n._ngZone.onStable.pipe(gn(1)).subscribe(function(){setTimeout(function(){var c=n._elementRef.nativeElement.querySelector(".mat-calendar-body-active");c&&(l||(n._skipNextFocus=!0),c.focus())})})})}},{key:"_isRangeStart",value:function(n){return Bq(n,this.startValue,this.endValue)}},{key:"_isRangeEnd",value:function(n){return Vq(n,this.startValue,this.endValue)}},{key:"_isInRange",value:function(n){return Hq(n,this.startValue,this.endValue,this.isRange)}},{key:"_isComparisonStart",value:function(n){return Bq(n,this.comparisonStart,this.comparisonEnd)}},{key:"_isComparisonBridgeStart",value:function(n,l,c){if(!this._isComparisonStart(n)||this._isRangeStart(n)||!this._isInRange(n))return!1;var p=this.rows[l][c-1];if(!p){var _=this.rows[l-1];p=_&&_[_.length-1]}return p&&!this._isRangeEnd(p.compareValue)}},{key:"_isComparisonBridgeEnd",value:function(n,l,c){if(!this._isComparisonEnd(n)||this._isRangeEnd(n)||!this._isInRange(n))return!1;var p=this.rows[l][c+1];if(!p){var _=this.rows[l+1];p=_&&_[0]}return p&&!this._isRangeStart(p.compareValue)}},{key:"_isComparisonEnd",value:function(n){return Vq(n,this.comparisonStart,this.comparisonEnd)}},{key:"_isInComparisonRange",value:function(n){return Hq(n,this.comparisonStart,this.comparisonEnd,this.isRange)}},{key:"_isComparisonIdentical",value:function(n){return this.comparisonStart===this.comparisonEnd&&n===this.comparisonStart}},{key:"_isPreviewStart",value:function(n){return Bq(n,this.previewStart,this.previewEnd)}},{key:"_isPreviewEnd",value:function(n){return Vq(n,this.previewStart,this.previewEnd)}},{key:"_isInPreview",value:function(n){return Hq(n,this.previewStart,this.previewEnd,this.isRange)}},{key:"_getCellFromElement",value:function(n){var l;if(pJ(n)?l=n:pJ(n.parentNode)&&(l=n.parentNode),l){var c=l.getAttribute("data-mat-row"),p=l.getAttribute("data-mat-col");if(c&&p)return this.rows[parseInt(c)][parseInt(p)]}return null}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(tt),z(Pt))},i.\u0275cmp=ke({type:i,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[xn],attrs:hae,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"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(r,n){1&r&&(te(0,pae,3,6,"tr",0),te(1,mae,3,2,"tr",1)),2&r&&(U("ngIf",n._firstRowOffset.mat-calendar-body-cell-content,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content{outline:dotted 2px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected{outline:solid 3px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n'],encapsulation:2,changeDetection:0}),i}();function pJ(i){return"TD"===i.nodeName}function Bq(i,s,r){return null!==r&&s!==r&&i=s&&i===r}function Hq(i,s,r,n){return n&&null!==s&&null!==r&&s!==r&&i>=s&&i<=r}var Us=L(function i(s,r){R(this,i),this.start=s,this.end=r}),Dg=function(){var i=function(){function s(r,n){R(this,s),this.selection=r,this._adapter=n,this._selectionChanged=new Xe,this.selectionChanged=this._selectionChanged,this.selection=r}return L(s,[{key:"updateSelection",value:function(n,l){var c=this.selection;this.selection=n,this._selectionChanged.next({selection:n,source:l,oldValue:c})}},{key:"ngOnDestroy",value:function(){this._selectionChanged.complete()}},{key:"_isValidDateInstance",value:function(n){return this._adapter.isDateInstance(n)&&this._adapter.isValid(n)}}]),s}();return i.\u0275fac=function(r){lf()},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),Aae=function(){var i=function(s){se(n,s);var r=ue(n);function n(l){return R(this,n),r.call(this,null,l)}return L(n,[{key:"add",value:function(c){Ye(qe(n.prototype),"updateSelection",this).call(this,c,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 c=new n(this._adapter);return c.updateSelection(this.selection,this),c}}]),n}(Dg);return i.\u0275fac=function(r){return new(r||i)(ge(oa))},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),vJ={provide:Dg,deps:[[new ai,new Kl,Dg],oa],useFactory:function Pae(i,s){return i||new Aae(s)}},FH=new Ae("MAT_DATE_RANGE_SELECTION_STRATEGY"),gJ=function(){var i=function(){function s(r,n,l,c,p){R(this,s),this._changeDetectorRef=r,this._dateFormats=n,this._dateAdapter=l,this._dir=c,this._rangeStrategy=p,this._rerenderSubscription=Te.EMPTY,this.selectedChange=new ye,this._userSelection=new ye,this.activeDateChange=new ye,this._activeDate=this._dateAdapter.today()}return L(s,[{key:"activeDate",get:function(){return this._activeDate},set:function(n){var l=this._activeDate,c=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(c,this.minDate,this.maxDate),this._hasSameMonthAndYear(l,this._activeDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(n){this._selected=n instanceof Us?n:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n)),this._setRanges(this._selected)}},{key:"minDate",get:function(){return this._minDate},set:function(n){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"maxDate",get:function(){return this._maxDate},set:function(n){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"ngAfterContentInit",value:function(){var n=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(na(null)).subscribe(function(){return n._init()})}},{key:"ngOnChanges",value:function(n){var l=n.comparisonStart||n.comparisonEnd;l&&!l.firstChange&&this._setRanges(this.selected)}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_dateSelected",value:function(n){var w,M,l=n.value,c=this._dateAdapter.getYear(this.activeDate),p=this._dateAdapter.getMonth(this.activeDate),_=this._dateAdapter.createDate(c,p,l);this._selected instanceof Us?(w=this._getDateInCurrentMonth(this._selected.start),M=this._getDateInCurrentMonth(this._selected.end)):w=M=this._getDateInCurrentMonth(this._selected),(w!==l||M!==l)&&this.selectedChange.emit(_),this._userSelection.emit({value:_,event:n.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}},{key:"_handleCalendarBodyKeydown",value:function(n){var l=this._activeDate,c=this._isRtl();switch(n.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,c?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,c?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=n.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=n.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&n.preventDefault());case 27:return void(null!=this._previewEnd&&!ia(n)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:n}),n.preventDefault(),n.stopPropagation()));default:return}this._dateAdapter.compareDate(l,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),n.preventDefault()}},{key:"_handleCalendarBodyKeyup",value:function(n){(32===n.keyCode||13===n.keyCode)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:n}),this._selectionKeyPressed=!1)}},{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 n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(n)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}},{key:"_focusActiveCell",value:function(n){this._matCalendarBody._focusActiveCell(n)}},{key:"_previewChanged",value:function(n){var c=n.value;if(this._rangeStrategy){var _=this._rangeStrategy.createPreview(c?c.rawValue:null,this.selected,n.event);this._previewStart=this._getCellCompareValue(_.start),this._previewEnd=this._getCellCompareValue(_.end),this._changeDetectorRef.detectChanges()}}},{key:"_initWeekdays",value:function(){var n=this._dateAdapter.getFirstDayOfWeek(),l=this._dateAdapter.getDayOfWeekNames("narrow"),p=this._dateAdapter.getDayOfWeekNames("long").map(function(_,w){return{long:_,narrow:l[w]}});this._weekdays=p.slice(n).concat(p.slice(0,n))}},{key:"_createWeekCells",value:function(){var n=this._dateAdapter.getNumDaysInMonth(this.activeDate),l=this._dateAdapter.getDateNames();this._weeks=[[]];for(var c=0,p=this._firstWeekOffset;c=0)&&(!this.maxDate||this._dateAdapter.compareDate(n,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(n))}},{key:"_getDateInCurrentMonth",value:function(n){return n&&this._hasSameMonthAndYear(n,this.activeDate)?this._dateAdapter.getDate(n):null}},{key:"_hasSameMonthAndYear",value:function(n,l){return!(!n||!l||this._dateAdapter.getMonth(n)!=this._dateAdapter.getMonth(l)||this._dateAdapter.getYear(n)!=this._dateAdapter.getYear(l))}},{key:"_getCellCompareValue",value:function(n){if(n){var l=this._dateAdapter.getYear(n),c=this._dateAdapter.getMonth(n),p=this._dateAdapter.getDate(n);return new Date(l,c,p).getTime()}return null}},{key:"_isRtl",value:function(){return this._dir&&"rtl"===this._dir.value}},{key:"_setRanges",value:function(n){n instanceof Us?(this._rangeStart=this._getCellCompareValue(n.start),this._rangeEnd=this._getCellCompareValue(n.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(n),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}},{key:"_canSelect",value:function(n){return!this.dateFilter||this.dateFilter(n)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(hn),z(qf,8),z(oa,8),z(Ei,8),z(FH,8))},i.\u0275cmp=ke({type:i,selectors:[["mat-month-view"]],viewQuery:function(r,n){var l;1&r&&Rt(GS,5),2&r&&Ve(l=Ge())&&(n._matCalendarBody=l.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:[xn],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","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(r,n){1&r&&(I(0,"table",0)(1,"thead",1)(2,"tr"),te(3,_ae,5,2,"th",2),B(),I(4,"tr"),Se(5,"th",3),B()(),I(6,"tbody",4),ne("selectedValueChange",function(c){return n._dateSelected(c)})("previewChange",function(c){return n._previewChanged(c)})("keyup",function(c){return n._handleCalendarBodyKeyup(c)})("keydown",function(c){return n._handleCalendarBodyKeydown(c)}),B()()),2&r&&(G(3),U("ngForOf",n._weekdays),G(3),U("label",n._monthLabel)("rows",n._weeks)("todayValue",n._todayDate)("startValue",n._rangeStart)("endValue",n._rangeEnd)("comparisonStart",n._comparisonRangeStart)("comparisonEnd",n._comparisonRangeEnd)("previewStart",n._previewStart)("previewEnd",n._previewEnd)("isRange",n._isRange)("labelMinRequiredCells",3)("activeCell",n._dateAdapter.getDate(n.activeDate)-1))},directives:[GS,ir],encapsulation:2,changeDetection:0}),i}(),mJ=function(){var i=function(){function s(r,n,l){R(this,s),this._changeDetectorRef=r,this._dateAdapter=n,this._dir=l,this._rerenderSubscription=Te.EMPTY,this.selectedChange=new ye,this.yearSelected=new ye,this.activeDateChange=new ye,this._activeDate=this._dateAdapter.today()}return L(s,[{key:"activeDate",get:function(){return this._activeDate},set:function(n){var l=this._activeDate,c=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(c,this.minDate,this.maxDate),_J(this._dateAdapter,l,this._activeDate,this.minDate,this.maxDate)||this._init()}},{key:"selected",get:function(){return this._selected},set:function(n){this._selected=n instanceof Us?n:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n)),this._setSelectedYear(n)}},{key:"minDate",get:function(){return this._minDate},set:function(n){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"maxDate",get:function(){return this._maxDate},set:function(n){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"ngAfterContentInit",value:function(){var n=this;this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(na(null)).subscribe(function(){return n._init()})}},{key:"ngOnDestroy",value:function(){this._rerenderSubscription.unsubscribe()}},{key:"_init",value:function(){var n=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var c=this._dateAdapter.getYear(this._activeDate)-OP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var p=0,_=[];p<24;p++)_.push(c+p),4==_.length&&(this._years.push(_.map(function(w){return n._createCellForYear(w)})),_=[]);this._changeDetectorRef.markForCheck()}},{key:"_yearSelected",value:function(n){var l=n.value;this.yearSelected.emit(this._dateAdapter.createDate(l,0,1));var c=this._dateAdapter.getMonth(this.activeDate),p=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(l,c,1));this.selectedChange.emit(this._dateAdapter.createDate(l,c,Math.min(this._dateAdapter.getDate(this.activeDate),p)))}},{key:"_handleCalendarBodyKeydown",value:function(n){var l=this._activeDate,c=this._isRtl();switch(n.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,c?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,c?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-OP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-OP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n.altKey?240:24);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(l,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),n.preventDefault()}},{key:"_handleCalendarBodyKeyup",value:function(n){(32===n.keyCode||13===n.keyCode)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:n}),this._selectionKeyPressed=!1)}},{key:"_getActiveCell",value:function(){return OP(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}},{key:"_focusActiveCell",value:function(){this._matCalendarBody._focusActiveCell()}},{key:"_createCellForYear",value:function(n){var l=this._dateAdapter.createDate(n,0,1),c=this._dateAdapter.getYearName(l),p=this.dateClass?this.dateClass(l,"multi-year"):void 0;return new Nq(n,c,c,this._shouldEnableYear(n),p)}},{key:"_shouldEnableYear",value:function(n){if(null==n||this.maxDate&&n>this._dateAdapter.getYear(this.maxDate)||this.minDate&&nc||n===c&&l>p}return!1}},{key:"_isYearAndMonthBeforeMinDate",value:function(n,l){if(this.minDate){var c=this._dateAdapter.getYear(this.minDate),p=this._dateAdapter.getMonth(this.minDate);return n enter-dropdown",$n("120ms cubic-bezier(0, 0, 0.2, 1)",Vf([mt({opacity:0,transform:"scale(1, 0.8)"}),mt({opacity:1,transform:"scale(1, 1)"})]))),Yn("void => enter-dialog",$n("150ms cubic-bezier(0, 0, 0.2, 1)",Vf([mt({opacity:0,transform:"scale(0.7)"}),mt({transform:"none",opacity:1})]))),Yn("* => void",$n("100ms linear",mt({opacity:0})))]),fadeInCalendar:zi("fadeInCalendar",[Wn("void",mt({opacity:0})),Wn("enter",mt({opacity:1})),Yn("void => *",$n("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},Bae=0,wJ=new Ae("mat-datepicker-scroll-strategy"),Hae={provide:wJ,deps:[aa],useFactory:function Vae(i){return function(){return i.scrollStrategies.reposition()}}},zae=yc(function(){return L(function i(s){R(this,i),this._elementRef=s})}()),Gae=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w,M){var A;return R(this,n),(A=r.call(this,l))._changeDetectorRef=c,A._globalModel=p,A._dateAdapter=_,A._rangeSelectionStrategy=w,A._subscriptions=new Te,A._animationDone=new Xe,A._actionsPortal=null,A._closeButtonText=M.closeCalendarLabel,A}return L(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 c=this;this._subscriptions.add(this.datepicker.stateChanges.subscribe(function(){c._changeDetectorRef.markForCheck()})),this._calendar.focusActiveCell()}},{key:"ngOnDestroy",value:function(){this._subscriptions.unsubscribe(),this._animationDone.complete()}},{key:"_handleUserSelection",value:function(c){var p=this._model.selection,_=c.value,w=p instanceof Us;if(w&&this._rangeSelectionStrategy){var M=this._rangeSelectionStrategy.selectionFinished(_,p,c.event);this._model.updateSelection(M,this)}else _&&(w||!this._dateAdapter.sameDate(_,p))&&this._model.add(_);(!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}(zae);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(hn),z(Dg),z(oa),z(FH,8),z(IP))},i.\u0275cmp=ke({type:i,selectors:[["mat-datepicker-content"]],viewQuery:function(r,n){var l;1&r&&Rt(Uq,5),2&r&&Ve(l=Ge())&&(n._calendar=l.first)},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(r,n){1&r&&cv("@transformPanel.done",function(){return n._animationDone.next()}),2&r&&(pv("@transformPanel",n._animationState),Ze("mat-datepicker-content-touch",n.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[Re],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",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(r,n){var l;1&r&&(I(0,"div",0)(1,"mat-calendar",1),ne("yearSelected",function(p){return n.datepicker._selectYear(p)})("monthSelected",function(p){return n.datepicker._selectMonth(p)})("viewChanged",function(p){return n.datepicker._viewChanged(p)})("_userSelection",function(p){return n._handleUserSelection(p)}),B(),te(2,Mae,0,0,"ng-template",2),I(3,"button",3),ne("focus",function(){return n._closeButtonFocused=!0})("blur",function(){return n._closeButtonFocused=!1})("click",function(){return n.datepicker.close()}),K(4),B()()),2&r&&(Ze("mat-datepicker-content-container-with-custom-header",n.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",n._actionsPortal),lt("aria-modal",!0)("aria-labelledby",null!==(l=n._dialogLabelId)&&void 0!==l?l:void 0),G(1),U("id",n.datepicker.id)("ngClass",n.datepicker.panelClass)("startAt",n.datepicker.startAt)("startView",n.datepicker.startView)("minDate",n.datepicker._getMinDate())("maxDate",n.datepicker._getMaxDate())("dateFilter",n.datepicker._getDateFilter())("headerComponent",n.datepicker.calendarHeaderComponent)("selected",n._getSelected())("dateClass",n.datepicker.dateClass)("comparisonStart",n.comparisonStart)("comparisonEnd",n.comparisonEnd)("@fadeInCalendar","enter"),G(1),U("cdkPortalOutlet",n._actionsPortal),G(1),Ze("cdk-visually-hidden",!n._closeButtonFocused),U("color",n.color||"primary"),G(1),Ln(n._closeButtonText))},directives:[Uq,qn,d7,As,pc],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.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:[CJ.transformPanel,CJ.fadeInCalendar]},changeDetection:0}),i}(),SJ=function(){var i=function(){function s(r,n,l,c,p,_,w){R(this,s),this._overlay=r,this._ngZone=n,this._viewContainerRef=l,this._dateAdapter=p,this._dir=_,this._model=w,this._inputStateChanges=Te.EMPTY,this.startView="month",this._touchUi=!1,this.xPosition="start",this.yPosition="below",this._restoreFocus=!0,this.yearSelected=new ye,this.monthSelected=new ye,this.viewChanged=new ye(!0),this.openedStream=new ye,this.closedStream=new ye,this._opened=!1,this.id="mat-datepicker-".concat(Bae++),this._focusedElementBeforeOpen=null,this._backdropHarnessClass="".concat(this.id,"-backdrop"),this.stateChanges=new Xe,this._scrollStrategy=c}return L(s,[{key:"startAt",get:function(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)},set:function(n){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(n))}},{key:"color",get:function(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)},set:function(n){this._color=n}},{key:"touchUi",get:function(){return this._touchUi},set:function(n){this._touchUi=gt(n)}},{key:"disabled",get:function(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled},set:function(n){var l=gt(n);l!==this._disabled&&(this._disabled=l,this.stateChanges.next(void 0))}},{key:"restoreFocus",get:function(){return this._restoreFocus},set:function(n){this._restoreFocus=gt(n)}},{key:"panelClass",get:function(){return this._panelClass},set:function(n){this._panelClass=qw(n)}},{key:"opened",get:function(){return this._opened},set:function(n){gt(n)?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(n){var l=n.xPosition||n.yPosition;if(l&&!l.firstChange&&this._overlayRef){var c=this._overlayRef.getConfig().positionStrategy;c instanceof dA&&(this._setConnectedPositions(c),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(n){this._model.add(n)}},{key:"_selectYear",value:function(n){this.yearSelected.emit(n)}},{key:"_selectMonth",value:function(n){this.monthSelected.emit(n)}},{key:"_viewChanged",value:function(n){this.viewChanged.emit(n)}},{key:"registerInput",value:function(n){var l=this;return this._inputStateChanges.unsubscribe(),this.datepickerInput=n,this._inputStateChanges=n.stateChanges.subscribe(function(){return l.stateChanges.next(void 0)}),this._model}},{key:"registerActions",value:function(n){this._actionsPortal=n}},{key:"removeActions",value:function(n){n===this._actionsPortal&&(this._actionsPortal=null)}},{key:"open",value:function(){this._opened||this.disabled||(this._focusedElementBeforeOpen=Gh(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}},{key:"close",value:function(){var n=this;if(this._opened){if(this._componentRef){var l=this._componentRef.instance;l._startExitAnimation(),l._animationDone.pipe(gn(1)).subscribe(function(){return n._destroyOverlay()})}var c=function(){n._opened&&(n._opened=!1,n.closedStream.emit(),n._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(c)):c()}}},{key:"_applyPendingSelection",value:function(){var n,l;null===(l=null===(n=this._componentRef)||void 0===n?void 0:n.instance)||void 0===l||l._applyPendingSelection()}},{key:"_forwardContentValues",value:function(n){n.datepicker=this,n.color=this.color,n._actionsPortal=this._actionsPortal,n._dialogLabelId=this.datepickerInput.getOverlayLabelId()}},{key:"_openOverlay",value:function(){var n=this;this._destroyOverlay();var l=this.touchUi,c=new Rf(Gae,this._viewContainerRef),p=this._overlayRef=this._overlay.create(new Ff({positionStrategy:l?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[l?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:l?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-".concat(l?"dialog":"popup")}));this._getCloseStream(p).subscribe(function(_){_&&_.preventDefault(),n.close()}),this._componentRef=p.attach(c),this._forwardContentValues(this._componentRef.instance),l||this._ngZone.onStable.pipe(gn(1)).subscribe(function(){return p.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 n=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(n)}},{key:"_setConnectedPositions",value:function(n){var l="end"===this.xPosition?"end":"start",c="start"===l?"end":"start",p="above"===this.yPosition?"bottom":"top",_="top"===p?"bottom":"top";return n.withPositions([{originX:l,originY:_,overlayX:l,overlayY:p},{originX:l,originY:p,overlayX:l,overlayY:_},{originX:c,originY:_,overlayX:c,overlayY:p},{originX:c,originY:p,overlayX:c,overlayY:_}])}},{key:"_getCloseStream",value:function(n){var l=this;return Rr(n.backdropClick(),n.detachments(),n.keydownEvents().pipe(Ur(function(c){return 27===c.keyCode&&!ia(c)||l.datepickerInput&&ia(c,"altKey")&&38===c.keyCode})))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(aa),z(Pt),z(wr),z(wJ),z(oa,8),z(Ei,8),z(Dg))},i.\u0275dir=be({type:i,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[xn]}),i}(),MJ=function(){var i=function(s){se(n,s);var r=ue(n);function n(){return R(this,n),r.apply(this,arguments)}return L(n)}(SJ);return i.\u0275fac=function(){var s;return function(n){return(s||(s=cn(i)))(n||i)}}(),i.\u0275cmp=ke({type:i,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[ft([vJ,{provide:SJ,useExisting:i}]),Re],decls:0,vars:0,template:function(r,n){},encapsulation:2,changeDetection:0}),i}(),NH=L(function i(s,r){R(this,i),this.target=s,this.targetElement=r,this.value=this.target.value}),Uae=function(){var i=function(){function s(r,n,l){var c=this;R(this,s),this._elementRef=r,this._dateAdapter=n,this._dateFormats=l,this.dateChange=new ye,this.dateInput=new ye,this.stateChanges=new Xe,this._onTouched=function(){},this._validatorOnChange=function(){},this._cvaOnChange=function(){},this._valueChangesSubscription=Te.EMPTY,this._localeSubscription=Te.EMPTY,this._parseValidator=function(){return c._lastValueValid?null:{matDatepickerParse:{text:c._elementRef.nativeElement.value}}},this._filterValidator=function(p){var _=c._dateAdapter.getValidDateOrNull(c._dateAdapter.deserialize(p.value));return!_||c._matchesFilter(_)?null:{matDatepickerFilter:!0}},this._minValidator=function(p){var _=c._dateAdapter.getValidDateOrNull(c._dateAdapter.deserialize(p.value)),w=c._getMinDate();return!w||!_||c._dateAdapter.compareDate(w,_)<=0?null:{matDatepickerMin:{min:w,actual:_}}},this._maxValidator=function(p){var _=c._dateAdapter.getValidDateOrNull(c._dateAdapter.deserialize(p.value)),w=c._getMaxDate();return!w||!_||c._dateAdapter.compareDate(w,_)>=0?null:{matDatepickerMax:{max:w,actual:_}}},this._lastValueValid=!1,this._localeSubscription=n.localeChanges.subscribe(function(){c._assignValueProgrammatically(c.value)})}return L(s,[{key:"value",get:function(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue},set:function(n){this._assignValueProgrammatically(n)}},{key:"disabled",get:function(){return!!this._disabled||this._parentDisabled()},set:function(n){var l=gt(n),c=this._elementRef.nativeElement;this._disabled!==l&&(this._disabled=l,this.stateChanges.next(void 0)),l&&this._isInitialized&&c.blur&&c.blur()}},{key:"_getValidators",value:function(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}},{key:"_registerModel",value:function(n){var l=this;this._model=n,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(function(c){if(l._shouldHandleChangeEvent(c)){var p=l._getValueFromModel(c.selection);l._lastValueValid=l._isValidValue(p),l._cvaOnChange(p),l._onTouched(),l._formatValue(p),l.dateInput.emit(new NH(l,l._elementRef.nativeElement)),l.dateChange.emit(new NH(l,l._elementRef.nativeElement))}})}},{key:"ngAfterViewInit",value:function(){this._isInitialized=!0}},{key:"ngOnChanges",value:function(n){(function jae(i,s){for(var n=0,l=Object.keys(i);n2&&void 0!==arguments[2]&&arguments[2],_=arguments.length>3&&void 0!==arguments[3]&&arguments[3];!this.multiple&&this.selected&&!n.checked&&(this.selected.checked=!1),this._selectionModel?l?this._selectionModel.select(n):this._selectionModel.deselect(n):_=!0,_?Promise.resolve().then(function(){return c._updateModelValue(p)}):this._updateModelValue(p)}},{key:"_isSelected",value:function(n){return this._selectionModel&&this._selectionModel.isSelected(n)}},{key:"_isPrechecked",value:function(n){return void 0!==this._rawValue&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(function(l){return null!=n.value&&l===n.value}):n.value===this._rawValue)}},{key:"_setSelectionByValue",value:function(n){var l=this;this._rawValue=n,this._buttonToggles&&(this.multiple&&n?(Array.isArray(n),this._clearSelection(),n.forEach(function(c){return l._selectValue(c)})):(this._clearSelection(),this._selectValue(n)))}},{key:"_clearSelection",value:function(){this._selectionModel.clear(),this._buttonToggles.forEach(function(n){return n.checked=!1})}},{key:"_selectValue",value:function(n){var l=this._buttonToggles.find(function(c){return null!=c.value&&c.value===n});l&&(l.checked=!0,this._selectionModel.select(l))}},{key:"_updateModelValue",value:function(n){n&&this._emitChangeEvent(),this.valueChange.emit(this.value)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(hn),z(DJ,8))},i.\u0275dir=be({type:i,selectors:[["mat-button-toggle-group"]],contentQueries:function(r,n,l){var c;1&r&&Mn(l,PJ,5),2&r&&Ve(c=Ge())&&(n._buttonToggles=c)},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(r,n){2&r&&(lt("aria-disabled",n.disabled),Ze("mat-button-toggle-vertical",n.vertical)("mat-button-toggle-group-appearance-standard","standard"===n.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[ft([$ae,{provide:xJ,useExisting:i}])]}),i}(),Qae=bc(function(){return L(function i(){R(this,i)})}()),PJ=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w,M){var A;R(this,n),(A=r.call(this))._changeDetectorRef=c,A._elementRef=p,A._focusMonitor=_,A._isSingleSelector=!1,A._checked=!1,A.ariaLabelledby=null,A._disabled=!1,A.change=new ye;var O=Number(w);return A.tabIndex=O||0===O?O:null,A.buttonToggleGroup=l,A.appearance=M&&M.appearance?M.appearance:"standard",A}return L(n,[{key:"buttonId",get:function(){return"".concat(this.id,"-button")}},{key:"appearance",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance},set:function(c){this._appearance=c}},{key:"checked",get:function(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked},set:function(c){var p=gt(c);p!==this._checked&&(this._checked=p,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(c){this._disabled=gt(c)}},{key:"ngOnInit",value:function(){var c=this.buttonToggleGroup;this._isSingleSelector=c&&!c.multiple,this.id=this.id||"mat-button-toggle-".concat(TJ++),this._isSingleSelector&&(this.name=c.name),c&&(c._isPrechecked(this)?this.checked=!0:c._isSelected(this)!==this._checked&&c._syncButtonToggle(this,this._checked))}},{key:"ngAfterViewInit",value:function(){this._focusMonitor.monitor(this._elementRef,!0)}},{key:"ngOnDestroy",value:function(){var c=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),c&&c._isSelected(this)&&c._syncButtonToggle(this,!1,!1,!0)}},{key:"focus",value:function(c){this._buttonElement.nativeElement.focus(c)}},{key:"_onButtonClick",value:function(){var c=!!this._isSingleSelector||!this._checked;c!==this._checked&&(this._checked=c,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new AJ(this,this.value))}},{key:"_markForCheck",value:function(){this._changeDetectorRef.markForCheck()}}]),n}(Qae);return i.\u0275fac=function(r){return new(r||i)(z(xJ,8),z(hn),z(tt),z(Rl),Ho("tabindex"),z(DJ,8))},i.\u0275cmp=ke({type:i,selectors:[["mat-button-toggle"]],viewQuery:function(r,n){var l;1&r&&Rt(Xae,5),2&r&&Ve(l=Ge())&&(n._buttonElement=l.first)},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:12,hostBindings:function(r,n){1&r&&ne("focus",function(){return n.focus()}),2&r&&(lt("aria-label",null)("aria-labelledby",null)("id",n.id)("name",null),Ze("mat-button-toggle-standalone",!n.buttonToggleGroup)("mat-button-toggle-checked",n.checked)("mat-button-toggle-disabled",n.disabled)("mat-button-toggle-appearance-standard","standard"===n.appearance))},inputs:{disableRipple:"disableRipple",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",appearance:"appearance",checked:"checked",disabled:"disabled"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[Re],ngContentSelectors:Kae,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(r,n){if(1&r&&(vi(),I(0,"button",0,1),ne("click",function(){return n._onButtonClick()}),I(2,"span",2),Gt(3),B()(),Se(4,"span",3)(5,"span",4)),2&r){var l=Dn(1);U("id",n.buttonId)("disabled",n.disabled||null),lt("tabindex",n.disabled?-1:n.tabIndex)("aria-pressed",n.checked)("name",n.name||null)("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledby),G(5),U("matRippleTrigger",l)("matRippleDisabled",n.disableRipple||n.disabled)}},directives:[Nl],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;transform:translateZ(0)}.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;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 .cdk-high-contrast-active .mat-button-toggle-focus-overlay{border-bottom:solid 36px;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}),i}(),Jae=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[vn,Cc],vn]}),i}();function eoe(i,s){1&i&&(I(0,"uds-translate"),K(1,"Edit rule"),B())}function toe(i,s){1&i&&(I(0,"uds-translate"),K(1,"New rule"),B())}function noe(i,s){if(1&i&&(I(0,"mat-option",22),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.value," ")}}function roe(i,s){if(1&i&&(I(0,"mat-option",22),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.value," ")}}function ioe(i,s){if(1&i&&(I(0,"mat-button-toggle",22),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.value," ")}}function aoe(i,s){if(1&i){var r=xe();I(0,"div",23)(1,"span",24)(2,"uds-translate"),K(3,"Weekdays"),B()(),I(4,"mat-button-toggle-group",25),ne("ngModelChange",function(c){return he(r),Q().wDays=c}),te(5,ioe,2,2,"mat-button-toggle",8),B()()}if(2&i){var n=Q();G(4),U("ngModel",n.wDays),G(1),U("ngForOf",n.weekDays)}}function ooe(i,s){if(1&i){var r=xe();I(0,"mat-form-field",9)(1,"mat-label")(2,"uds-translate"),K(3,"Repeat every"),B()(),I(4,"input",6),ne("ngModelChange",function(c){return he(r),Q().rule.interval=c}),B(),I(5,"div",26),K(6),B()()}if(2&i){var n=Q();G(4),U("ngModel",n.rule.interval),G(2),Le("\xa0",n.frequency(),"")}}var VH={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")]},HH={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},OJ=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],IJ=function(s){for(var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new Array,l=0;l<7;l++)1&s&&n.push(OJ[l].substr(0,r?100:3)),s>>=1;return n.length?n.join(", "):django.gettext("(no days)")},RJ=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.dunits=Object.keys(HH).map(function(p){return{id:p,value:HH[p]}}),this.freqs=Object.keys(VH).map(function(p){return{id:p,value:VH[p][2]}}),this.weekDays=OJ.map(function(p,_){return{id:1<<_,value:p.substr(0,3)}}),this.FOREVER_STRING=django.gettext("Forever"),this.onSave=new ye(!0),this.startDate=new Date,this.endDate=null,this.startTime="00:00",this.wDays=[],this.rules=c.rules,this.rule={id:void 0,name:"",comments:"",start:null,end:null,frequency:"DAILY",duration:0,duration_unit:"MINUTES",interval:1},c.rule&&(this.rule.id=c.rule.id)}return L(s,[{key:"ngOnInit",value:function(){var n=this;this.rule.id&&this.rules.get(this.rule.id).subscribe(function(l){if(n.rule=l,n.startDate=new Date(1e3*n.rule.start),n.startTime=n.startDate.toTimeString().split(":").splice(0,2).join(":"),n.endDate=n.rule.end?new Date(1e3*n.rule.end):null,"WEEKDAYS"===n.rule.frequency){for(var c=[],p=0;p<7;p++)n.rule.interval&1<0?" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+HH[this.rule.duration_unit]:django.gettext("with no duration")}return n.replace("$FIELD",c)}},{key:"save",value:function(){var n=this;this.rules.save(this.rule).subscribe(function(){n.dialogRef.close(),n.onSave.emit(!0)})}}],[{key:"launch",value:function(n,l,c){var p=window.innerWidth<800?"75%":"50%";return n.gui.dialog.open(s,{width:p,position:{top:window.innerWidth<800?"0px":"7rem"},data:{rules:l,rule:c},disableClose:!0}).componentInstance.onSave}},{key:"getDateTime",value:function(){return 0}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){if(1&r&&(I(0,"h4",0),te(1,eoe,2,0,"uds-translate",1),te(2,toe,2,0,"uds-translate",1),B(),I(3,"mat-dialog-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),K(8,"Name"),B()(),I(9,"input",3),ne("ngModelChange",function(_){return n.rule.name=_}),B()(),I(10,"mat-form-field")(11,"mat-label")(12,"uds-translate"),K(13,"Comments"),B()(),I(14,"input",3),ne("ngModelChange",function(_){return n.rule.comments=_}),B()(),I(15,"h3")(16,"uds-translate"),K(17,"Event"),B()(),I(18,"mat-form-field",4)(19,"mat-label")(20,"uds-translate"),K(21,"Start time"),B()(),I(22,"input",5),ne("ngModelChange",function(_){return n.startTime=_}),B()(),I(23,"mat-form-field",4)(24,"mat-label")(25,"uds-translate"),K(26,"Duration"),B()(),I(27,"input",6),ne("ngModelChange",function(_){return n.rule.duration=_}),B()(),I(28,"mat-form-field",4)(29,"mat-label")(30,"uds-translate"),K(31,"Duration units"),B()(),I(32,"mat-select",7),ne("ngModelChange",function(_){return n.rule.duration_unit=_}),te(33,noe,2,2,"mat-option",8),B()(),I(34,"h3"),K(35," Repetition "),B(),I(36,"mat-form-field",9)(37,"mat-label")(38,"uds-translate"),K(39," Start date "),B()(),I(40,"input",10),ne("ngModelChange",function(_){return n.startDate=_}),B(),Se(41,"mat-datepicker-toggle",11)(42,"mat-datepicker",null,12),B(),I(44,"mat-form-field",9)(45,"mat-label")(46,"uds-translate"),K(47," Repeat until date "),B()(),I(48,"input",13),ne("ngModelChange",function(_){return n.endDate=_}),B(),Se(49,"mat-datepicker-toggle",11)(50,"mat-datepicker",null,14),B(),I(52,"div",15)(53,"mat-form-field",9)(54,"mat-label")(55,"uds-translate"),K(56,"Frequency"),B()(),I(57,"mat-select",16),ne("ngModelChange",function(_){return n.rule.frequency=_})("valueChange",function(){return n.rule.interval=1}),te(58,roe,2,2,"mat-option",8),B()(),te(59,aoe,6,2,"div",17),te(60,ooe,7,2,"mat-form-field",18),B(),I(61,"h3")(62,"uds-translate"),K(63,"Summary"),B()(),I(64,"div",19),K(65),B()()(),I(66,"mat-dialog-actions")(67,"button",20)(68,"uds-translate"),K(69,"Cancel"),B()(),I(70,"button",21),ne("click",function(){return n.save()}),I(71,"uds-translate"),K(72,"Ok"),B()()()),2&r){var l=Dn(43),c=Dn(51);G(1),U("ngIf",n.rule.id),G(1),U("ngIf",!n.rule.id),G(7),U("ngModel",n.rule.name),G(5),U("ngModel",n.rule.comments),G(8),U("ngModel",n.startTime),G(5),U("ngModel",n.rule.duration),G(5),U("ngModel",n.rule.duration_unit),G(1),U("ngForOf",n.dunits),G(7),U("matDatepicker",l)("ngModel",n.startDate),G(1),U("for",l),G(7),U("matDatepicker",c)("ngModel",n.endDate)("placeholder",n.FOREVER_STRING),G(1),U("for",c),G(8),U("ngModel",n.rule.frequency),G(1),U("ngForOf",n.freqs),G(1),U("ngIf","WEEKDAYS"===n.rule.frequency),G(1),U("ngIf","WEEKDAYS"!==n.rule.frequency),G(5),Le(" ",n.summary()," "),G(5),U("disabled",null!==n.updateRuleData()||""===n.rule.name)}},directives:[si,en,Gn,jr,or,Tr,ua,yi,pr,ar,Kf,Ua,ir,Pi,BH,kJ,wg,MJ,EJ,PJ,li,qn,_i],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:#0009;display:block;font-weight:400;left:0px;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:0px 0px;white-space:nowrap}.mat-datepicker-toggle[_ngcontent-%COMP%]{color:#00f}.mat-button-toggle-checked[_ngcontent-%COMP%]{background-color:#23238580;color:#fff}"]}),i}();function loe(i,s){1&i&&(I(0,"uds-translate"),K(1,"Rules"),B())}function uoe(i,s){if(1&i){var r=xe();I(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),te(4,loe,2,0,"ng-template",9),I(5,"div",10)(6,"uds-table",11),ne("newAction",function(c){return he(r),Q().onNewRule(c)})("editAction",function(c){return he(r),Q().onEditRule(c)})("deleteAction",function(c){return he(r),Q().onDeleteRule(c)}),B()()()()()()}if(2&i){var n=Q();G(2),U("@.disabled",!0),G(4),U("rest",n.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",n.processElement)("tableId","calendars-d-rules"+n.calendar.id)("pageSize",n.api.config.admin.page_size)}}var coe=function(s){return["/pools","calendars",s]},foe=function(){var i=function(){function s(r,n,l){R(this,s),this.route=r,this.rest=n,this.api=l}return L(s,[{key:"ngOnInit",value:function(){var n=this,l=this.route.snapshot.paramMap.get("calendar");this.rest.calendars.get(l).subscribe(function(c){n.calendar=c,n.calendarRules=n.rest.calendars.detail(c.id,"rules")})}},{key:"onNewRule",value:function(n){RJ.launch(this.api,this.calendarRules).subscribe(function(){return n.table.overview()})}},{key:"onEditRule",value:function(n){RJ.launch(this.api,this.calendarRules,n.table.selection.selected[0]).subscribe(function(){return n.table.overview()})}},{key:"onDeleteRule",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete calendar rule"))}},{key:"processElement",value:function(n){!function(s){s.interval="WEEKDAYS"===s.frequency?IJ(s.interval):s.interval+" "+VH[s.frequency][django.pluralidx(s.interval)],s.duration=s.duration+" "+HH[s.duration_unit]}(n)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Vr),z(rn),z(Ot))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),K(4,"arrow_back"),B()(),K(5," \xa0"),Se(6,"img",4),K(7),B(),te(8,uoe,7,7,"div",5),B()),2&r&&(G(2),U("routerLink",xs(4,coe,n.calendar?n.calendar.id:"")),G(4),U("src",n.api.staticURL("admin/img/icons/calendars.png"),Qt),G(1),Le(" ",null==n.calendar?null:n.calendar.name," "),G(1),U("ngIf",n.calendar))},directives:[Al,en,Hl,Hs,rs,Gn,Kr],styles:[".mat-column-start, .mat-column-end{max-width:9rem} .mat-column-frequency{max-width:9rem} .mat-column-interval, .mat-column-duration{max-width:11rem}"]}),i}(),doe='event'+django.gettext("Set time mark")+"",LJ=function(){var i=function(){function s(r,n,l){R(this,s),this.route=r,this.rest=n,this.api=l,this.cButtons=[{id:"timemark",html:doe,type:vr.SINGLE_SELECT}]}return L(s,[{key:"ngOnInit",value:function(){}},{key:"customButtons",get:function(){return this.api.user.isAdmin?this.cButtons:[]}},{key:"onNew",value:function(n){this.api.gui.forms.typedNewForm(n,django.gettext("New account"))}},{key:"onEdit",value:function(n){this.api.gui.forms.typedEditForm(n,django.gettext("Edit account"))}},{key:"onDelete",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete account"))}},{key:"onTimeMark",value:function(n){var l=this,c=n.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",c.name)).subscribe(function(p){p&&l.rest.accounts.timemark(c.id).subscribe(function(){l.api.gui.snackbar.open(django.gettext("Time mark stablished"),django.gettext("dismiss"),{duration:2e3}),n.table.overview()})})}},{key:"onDetail",value:function(n){this.api.navigation.gotoAccountDetail(n.param.id)}},{key:"onLoad",value:function(n){!0===n.param&&n.table.selectElement("id",this.route.snapshot.paramMap.get("account"))}},{key:"processElement",value:function(n){n.time_mark=78793200===n.time_mark?django.gettext("No time mark"):zs("SHORT_DATE_FORMAT",n.time_mark)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Vr),z(rn),z(Ot))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"uds-table",0),ne("customButtonAction",function(c){return n.onTimeMark(c)})("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("detailAction",function(c){return n.onDetail(c)})("loaded",function(c){return n.onLoad(c)}),B()),2&r&&U("rest",n.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",n.customButtons)("pageSize",n.api.config.admin.page_size)("onItem",n.processElement)},directives:[Kr],styles:[""]}),i}();function hoe(i,s){1&i&&(I(0,"uds-translate"),K(1,"Account usage"),B())}function poe(i,s){if(1&i){var r=xe();I(0,"div",6)(1,"div",7)(2,"mat-tab-group",8)(3,"mat-tab"),te(4,hoe,2,0,"ng-template",9),I(5,"div",10)(6,"uds-table",11),ne("deleteAction",function(c){return he(r),Q().onDeleteUsage(c)}),B()()()()()()}if(2&i){var n=Q();G(2),U("@.disabled",!0),G(4),U("rest",n.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",n.processElement)("tableId","account-d-usage"+n.account.id)}}var voe=function(s){return["/pools","accounts",s]},goe=function(){var i=function(){function s(r,n,l){R(this,s),this.route=r,this.rest=n,this.api=l}return L(s,[{key:"ngOnInit",value:function(){var n=this,l=this.route.snapshot.paramMap.get("account");this.rest.accounts.get(l).subscribe(function(c){n.account=c,n.accountUsage=n.rest.accounts.detail(c.id,"usage")})}},{key:"onDeleteUsage",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete account usage"))}},{key:"processElement",value:function(n){n.running=this.api.yesno(n.running)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Vr),z(rn),z(Ot))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"div",0)(1,"div",1)(2,"a",2)(3,"i",3),K(4,"arrow_back"),B()(),K(5," \xa0"),Se(6,"img",4),K(7),B(),te(8,poe,7,6,"div",5),B()),2&r&&(G(2),U("routerLink",xs(4,voe,n.account?n.account.id:"")),G(4),U("src",n.api.staticURL("admin/img/icons/accounts.png"),Qt),G(1),Le(" ",null==n.account?null:n.account.name," "),G(1),U("ngIf",n.account))},directives:[Al,en,Hl,Hs,rs,Gn,Kr],styles:[""]}),i}();function moe(i,s){1&i&&(I(0,"uds-translate"),K(1,"New image for"),B())}function _oe(i,s){1&i&&(I(0,"uds-translate"),K(1,"Edit for"),B())}var FJ=function(){var i=function(){function s(r,n,l,c){R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.onSave=new ye(!0),this.preview="",this.image={id:void 0,data:"",name:""},c.image&&(this.image.id=c.image.id)}return L(s,[{key:"onFileChanged",value:function(n){var l=this,c=n.target.files[0];if(c.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(c.type)){var p=new FileReader;p.onload=function(_){var w=p.result;l.preview=w,l.image.data=w.substr(w.indexOf("base64,")+7),l.image.name||(l.image.name=c.name)},p.readAsDataURL(c)}else this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG and GIF"))}},{key:"ngOnInit",value:function(){var n=this;this.image.id&&this.rest.gallery.get(this.image.id).subscribe(function(l){switch(n.image=l,n.image.data.substr(2)){case"iV":n.preview="data:image/png;base64,"+n.image.data;break;case"/9":n.preview="data:image/jpeg;base64,"+n.image.data;break;default:n.preview="data:image/gif;base64,"+n.image.data}})}},{key:"background",value:function(){var n=this.api.config.image_size[0],l=this.api.config.image_size[1],c={"width.px":n,"height.px":l,"background-size":n+"px "+l+"px"};return this.preview&&(c["background-image"]="url("+this.preview+")"),c}},{key:"save",value:function(){var n=this;this.image.name&&this.image.data?this.rest.gallery.save(this.image).subscribe(function(){n.api.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),n.dialogRef.close(),n.onSave.emit(!0)}):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, provide a name and a image"))}}],[{key:"launch",value:function(n){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,c=window.innerWidth<800?"60%":"40%",p=n.gui.dialog.open(s,{width:c,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:l},disableClose:!0});return p.componentInstance.onSave}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){if(1&r){var l=xe();I(0,"h4",0),te(1,moe,2,0,"uds-translate",1),te(2,_oe,2,0,"uds-translate",1),B(),I(3,"mat-dialog-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label")(7,"uds-translate"),K(8,"Image name"),B()(),I(9,"input",3),ne("ngModelChange",function(p){return n.image.name=p}),B()(),I(10,"input",4,5),ne("change",function(p){return n.onFileChanged(p)}),B(),I(12,"mat-form-field")(13,"mat-label")(14,"uds-translate"),K(15,"Image (click to change)"),B()(),I(16,"input",6),ne("click",function(){return he(l),Dn(11).click()}),B(),I(17,"div",7),ne("click",function(){return he(l),Dn(11).click()}),Se(18,"div",8),B()(),I(19,"div",9)(20,"uds-translate"),K(21,' For optimal results, use "squared" images. '),B(),I(22,"uds-translate"),K(23," The image will be resized on upload to "),B(),K(24),B()()(),I(25,"mat-dialog-actions")(26,"button",10)(27,"uds-translate"),K(28,"Cancel"),B()(),I(29,"button",11),ne("click",function(){return n.save()}),I(30,"uds-translate"),K(31,"Ok"),B()()()}2&r&&(G(1),U("ngIf",!n.image.id),G(1),U("ngIf",n.image.id),G(7),U("ngModel",n.image.name),G(7),U("hidden",!0),G(2),U("ngStyle",n.background()),G(6),th(" ",n.api.config.image_size[0],"x",n.api.config.image_size[1]," "))},directives:[si,en,Gn,jr,or,Tr,ua,yi,pr,ar,aw,li,qn,_i],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%]{width:100%}.preview[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;width:100%}.image-preview[_ngcontent-%COMP%]{background-color:#0000004d}"]}),i}(),NJ=function(){var i=function(){function s(r,n,l){R(this,s),this.route=r,this.rest=n,this.api=l}return L(s,[{key:"ngOnInit",value:function(){}},{key:"onNew",value:function(n){FJ.launch(this.api).subscribe(function(){return n.table.overview()})}},{key:"onEdit",value:function(n){FJ.launch(this.api,n.table.selection.selected[0]).subscribe(function(){return n.table.overview()})}},{key:"onDelete",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete image"))}},{key:"onLoad",value:function(n){!0===n.param&&n.table.selectElement("id",this.route.snapshot.paramMap.get("image"))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Vr),z(rn),z(Ot))},i.\u0275cmp=ke({type:i,selectors:[["uds-gallery"]],decls:1,vars:5,consts:[["icon","gallery",3,"rest","multiSelect","allowExport","hasPermissions","pageSize","newAction","editAction","deleteAction","loaded"]],template:function(r,n){1&r&&(I(0,"uds-table",0),ne("newAction",function(c){return n.onNew(c)})("editAction",function(c){return n.onEdit(c)})("deleteAction",function(c){return n.onDelete(c)})("loaded",function(c){return n.onLoad(c)}),B()),2&r&&U("rest",n.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!1)("pageSize",n.api.config.admin.page_size)},directives:[Kr],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]}),i}(),yoe='assessment'+django.gettext("Generate report")+"",boe=function(){var i=function(){function s(r,n){R(this,s),this.rest=r,this.api=n,this.customButtons=[{id:"genreport",html:yoe,type:vr.SINGLE_SELECT}]}return L(s,[{key:"ngOnInit",value:function(){}},{key:"generateReport",value:function(n){var l=this,c=new ye;c.subscribe(function(p){l.api.gui.snackbar.open(django.gettext("Generating report...")),l.rest.reports.save(p,n.table.selection.selected[0].id).subscribe(function(_){for(var w=_.encoded?window.atob(_.data):_.data,M=w.length,A=new Uint8Array(M),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:#0009;display:block;font-weight:400;left:0px;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:0px 0px;white-space:nowrap}.config-footer[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;margin-top:2rem;margin-bottom:2rem}"]}),i}(),Noe=function(){var i=function(){function s(r,n,l){R(this,s),this.api=r,this.route=n,this.rest=l}return L(s,[{key:"ngOnInit",value:function(){}},{key:"onDelete",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(Vr),z(rn))},i.\u0275cmp=ke({type:i,selectors:[["uds-actor-tokens"]],decls:2,vars:4,consts:[["icon","accounts",3,"rest","multiSelect","allowExport","pageSize","deleteAction"]],template:function(r,n){1&r&&(I(0,"div")(1,"uds-table",0),ne("deleteAction",function(c){return n.onDelete(c)}),B()()),2&r&&(G(1),U("rest",n.rest.actorToken)("multiSelect",!0)("allowExport",!0)("pageSize",n.api.config.admin.page_size))},directives:[Kr],styles:[""]}),i}(),Boe=function(){var i=function(){function s(r,n,l){R(this,s),this.api=r,this.route=n,this.rest=l}return L(s,[{key:"ngOnInit",value:function(){}},{key:"onDelete",value:function(n){this.api.gui.forms.deleteForm(n,django.gettext("Delete tunnel token - USE WITH EXTREME CAUTION!!!"))}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(Vr),z(rn))},i.\u0275cmp=ke({type:i,selectors:[["uds-tunnel-tokens"]],decls:2,vars:4,consts:[["icon","proxy",3,"rest","multiSelect","allowExport","pageSize","deleteAction"]],template:function(r,n){1&r&&(I(0,"div")(1,"uds-table",0),ne("deleteAction",function(c){return n.onDelete(c)}),B()()),2&r&&(G(1),U("rest",n.rest.tunnelToken)("multiSelect",!0)("allowExport",!0)("pageSize",n.api.config.admin.page_size))},directives:[Kr],styles:[""]}),i}(),Voe=[{path:"",canActivate:[E5],children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:HY},{path:"providers",component:YQ},{path:"providers/:provider/detail",component:qQ},{path:"providers/:provider",component:YQ},{path:"providers/:provider/detail/:service",component:qQ},{path:"authenticators",component:ZQ},{path:"authenticators/:authenticator/detail",component:Rq},{path:"authenticators/:authenticator",component:ZQ},{path:"authenticators/:authenticator/detail/groups/:group",component:Rq},{path:"authenticators/:authenticator/detail/users/:user",component:Rq},{path:"networks",component:rJ},{path:"networks/:network",component:rJ},{path:"osmanagers",component:tJ},{path:"osmanagers/:osmanager",component:tJ},{path:"transports",component:nJ},{path:"transports/:transport",component:nJ},{path:"pools/service-pools",component:iJ},{path:"pools/service-pools/:pool",component:iJ},{path:"pools/service-pools/:pool/detail",component:uJ},{path:"pools/meta-pools",component:cJ},{path:"pools/meta-pools/:metapool",component:cJ},{path:"pools/meta-pools/:metapool/detail",component:dae},{path:"pools/pool-groups",component:dJ},{path:"pools/pool-groups/:poolgroup",component:dJ},{path:"pools/calendars",component:hJ},{path:"pools/calendars/:calendar",component:hJ},{path:"pools/calendars/:calendar/detail",component:foe},{path:"pools/accounts",component:LJ},{path:"pools/accounts/:account",component:LJ},{path:"pools/accounts/:account/detail",component:goe},{path:"tools/gallery",component:NJ},{path:"tools/gallery/:image",component:NJ},{path:"tools/reports",component:boe},{path:"tools/notifiers",component:Coe},{path:"tools/tokens/actor",component:Noe},{path:"tools/tokens/tunnel",component:Boe},{path:"tools/configuration",component:Foe}]},{path:"**",redirectTo:"summary"}],Hoe=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[FT.forRoot(Voe,{relativeLinkResolution:"corrected"})],FT]}),i}(),GJ=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({}),i}(),Qoe=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[Cc,vn,Ny,GJ],vn,GJ]}),i}(),Joe=["*"],UJ=new Ae("MatChipRemove"),jJ=new Ae("MatChipAvatar"),WJ=new Ae("MatChipTrailingIcon"),ese=L(function i(s){R(this,i),this._elementRef=s}),tse=Z1(yc(bc(ese),"primary"),-1),zH=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w,M,A,O){var F;return R(this,n),(F=r.call(this,l))._ngZone=c,F._changeDetectorRef=w,F._hasFocus=!1,F.chipListSelectable=!0,F._chipListMultiple=!1,F._chipListDisabled=!1,F._selected=!1,F._selectable=!0,F._disabled=!1,F._removable=!0,F._onFocus=new Xe,F._onBlur=new Xe,F.selectionChange=new ye,F.destroyed=new ye,F.removed=new ye,F._addHostClassName(),F._chipRippleTarget=M.createElement("div"),F._chipRippleTarget.classList.add("mat-chip-ripple"),F._elementRef.nativeElement.appendChild(F._chipRippleTarget),F._chipRipple=new zB(an(F),c,F._chipRippleTarget,p),F._chipRipple.setupTriggerEvents(l),F.rippleConfig=_||{},F._animationsDisabled="NoopAnimations"===A,F.tabIndex=null!=O&&parseInt(O)||-1,F}return L(n,[{key:"rippleDisabled",get:function(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}},{key:"selected",get:function(){return this._selected},set:function(c){var p=gt(c);p!==this._selected&&(this._selected=p,this._dispatchSelectionChange())}},{key:"value",get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(c){this._value=c}},{key:"selectable",get:function(){return this._selectable&&this.chipListSelectable},set:function(c){this._selectable=gt(c)}},{key:"disabled",get:function(){return this._chipListDisabled||this._disabled},set:function(c){this._disabled=gt(c)}},{key:"removable",get:function(){return this._removable},set:function(c){this._removable=gt(c)}},{key:"ariaSelected",get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}},{key:"_addHostClassName",value:function(){var c="mat-basic-chip",p=this._elementRef.nativeElement;p.hasAttribute(c)||p.tagName.toLowerCase()===c?p.classList.add(c):p.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 c=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._selected=!this.selected,this._dispatchSelectionChange(c),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(c){this.disabled&&c.preventDefault()}},{key:"_handleKeydown",value:function(c){if(!this.disabled)switch(c.keyCode){case 46:case 8:this.remove(),c.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),c.preventDefault()}}},{key:"_blur",value:function(){var c=this;this._ngZone.onStable.pipe(gn(1)).subscribe(function(){c._ngZone.run(function(){c._hasFocus=!1,c._onBlur.next({chip:c})})})}},{key:"_dispatchSelectionChange",value:function(){var c=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.selectionChange.emit({source:this,isUserInput:c,selected:this._selected})}}]),n}(tse);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(Pt),z(pn),z(GB,8),z(hn),z(Jt),z(mi,8),Ho("tabindex"))},i.\u0275dir=be({type:i,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(r,n,l){var c;1&r&&(Mn(l,jJ,5),Mn(l,WJ,5),Mn(l,UJ,5)),2&r&&(Ve(c=Ge())&&(n.avatar=c.first),Ve(c=Ge())&&(n.trailingIcon=c.first),Ve(c=Ge())&&(n.removeIcon=c.first))},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(r,n){1&r&&ne("click",function(c){return n._handleClick(c)})("keydown",function(c){return n._handleKeydown(c)})("focus",function(){return n.focus()})("blur",function(){return n._blur()}),2&r&&(lt("tabindex",n.disabled?null:n.tabIndex)("disabled",n.disabled||null)("aria-disabled",n.disabled.toString())("aria-selected",n.ariaSelected),Ze("mat-chip-selected",n.selected)("mat-chip-with-avatar",n.avatar)("mat-chip-with-trailing-icon",n.trailingIcon||n.removeIcon)("mat-chip-disabled",n.disabled)("_mat-animation-noopable",n._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:[Re]}),i}(),YJ=function(){var i=function(){function s(r,n){R(this,s),this._parentChip=r,"BUTTON"===n.nativeElement.nodeName&&n.nativeElement.setAttribute("type","button")}return L(s,[{key:"_handleClick",value:function(n){var l=this._parentChip;l.removable&&!l.disabled&&l.remove(),n.stopPropagation(),n.preventDefault()}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(zH),z(tt))},i.\u0275dir=be({type:i,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(r,n){1&r&&ne("click",function(c){return n._handleClick(c)})},features:[ft([{provide:UJ,useExisting:i}])]}),i}(),qJ=new Ae("mat-chips-default-options"),ise=0,ZJ=function(){var i=function(){function s(r,n){R(this,s),this._elementRef=r,this._defaultOptions=n,this.focused=!1,this._addOnBlur=!1,this.separatorKeyCodes=this._defaultOptions.separatorKeyCodes,this.chipEnd=new ye,this.placeholder="",this.id="mat-chip-list-input-".concat(ise++),this._disabled=!1,this.inputElement=this._elementRef.nativeElement}return L(s,[{key:"chipList",set:function(n){n&&(this._chipList=n,this._chipList.registerInput(this))}},{key:"addOnBlur",get:function(){return this._addOnBlur},set:function(n){this._addOnBlur=gt(n)}},{key:"disabled",get:function(){return this._disabled||this._chipList&&this._chipList.disabled},set:function(n){this._disabled=gt(n)}},{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(n){if(n){if(9===n.keyCode&&!ia(n,"shiftKey")&&this._chipList._allowFocusEscape(),8===n.keyCode&&this._focusLastChipOnBackspace)return this._chipList._keyManager.setLastItemActive(),void n.preventDefault();this._focusLastChipOnBackspace=!1}this._emitChipEnd(n)}},{key:"_keyup",value:function(n){!this._focusLastChipOnBackspace&&8===n.keyCode&&this.empty&&(this._focusLastChipOnBackspace=!0,n.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._focusLastChipOnBackspace=this.empty,this._chipList.stateChanges.next()}},{key:"_emitChipEnd",value:function(n){!this.inputElement.value&&!!n&&this._chipList._keydown(n),(!n||this._isSeparatorKey(n))&&(this.chipEnd.emit({input:this.inputElement,value:this.inputElement.value,chipInput:this}),null==n||n.preventDefault())}},{key:"_onInput",value:function(){this._chipList.stateChanges.next()}},{key:"focus",value:function(n){this.inputElement.focus(n)}},{key:"clear",value:function(){this.inputElement.value="",this._focusLastChipOnBackspace=!0}},{key:"_isSeparatorKey",value:function(n){return!ia(n)&&new Set(this.separatorKeyCodes).has(n.keyCode)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(tt),z(qJ))},i.\u0275dir=be({type:i,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:5,hostBindings:function(r,n){1&r&&ne("keydown",function(c){return n._keydown(c)})("keyup",function(c){return n._keyup(c)})("blur",function(){return n._blur()})("focus",function(){return n._focus()})("input",function(){return n._onInput()}),2&r&&(bl("id",n.id),lt("disabled",n.disabled||null)("placeholder",n.placeholder||null)("aria-invalid",n._chipList&&n._chipList.ngControl?n._chipList.ngControl.invalid:null)("aria-required",n._chipList&&n._chipList.required||null))},inputs:{chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[xn]}),i}(),ase=X1(function(){return L(function i(s,r,n,l){R(this,i),this._defaultErrorStateMatcher=s,this._parentForm=r,this._parentFormGroup=n,this.ngControl=l})}()),ose=0,sse=L(function i(s,r){R(this,i),this.source=s,this.value=r}),XJ=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p,_,w,M,A){var O;return R(this,n),(O=r.call(this,M,_,w,A))._elementRef=l,O._changeDetectorRef=c,O._dir=p,O.controlType="mat-chip-list",O._lastDestroyedChipIndex=null,O._destroyed=new Xe,O._uid="mat-chip-list-".concat(ose++),O._tabIndex=0,O._userTabIndex=null,O._onTouched=function(){},O._onChange=function(){},O._multiple=!1,O._compareWith=function(F,Y){return F===Y},O._disabled=!1,O.ariaOrientation="horizontal",O._selectable=!0,O.change=new ye,O.valueChange=new ye,O.ngControl&&(O.ngControl.valueAccessor=an(O)),O}return L(n,[{key:"selected",get:function(){var c,p;return this.multiple?(null===(c=this._selectionModel)||void 0===c?void 0:c.selected)||[]:null===(p=this._selectionModel)||void 0===p?void 0:p.selected[0]}},{key:"role",get:function(){return this.empty?null:"listbox"}},{key:"multiple",get:function(){return this._multiple},set:function(c){this._multiple=gt(c),this._syncChipsState()}},{key:"compareWith",get:function(){return this._compareWith},set:function(c){this._compareWith=c,this._selectionModel&&this._initializeSelection()}},{key:"value",get:function(){return this._value},set:function(c){this.writeValue(c),this._value=c}},{key:"id",get:function(){return this._chipInput?this._chipInput.id:this._uid}},{key:"required",get:function(){var c,p,_,w;return null!==(w=null!==(c=this._required)&&void 0!==c?c:null===(_=null===(p=this.ngControl)||void 0===p?void 0:p.control)||void 0===_?void 0:_.hasValidator(rS.required))&&void 0!==w&&w},set:function(c){this._required=gt(c),this.stateChanges.next()}},{key:"placeholder",get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(c){this._placeholder=c,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(c){this._disabled=gt(c),this._syncChipsState()}},{key:"selectable",get:function(){return this._selectable},set:function(c){var p=this;this._selectable=gt(c),this.chips&&this.chips.forEach(function(_){return _.chipListSelectable=p._selectable})}},{key:"tabIndex",set:function(c){this._userTabIndex=c,this._tabIndex=c}},{key:"chipSelectionChanges",get:function(){return Rr.apply(void 0,yt(this.chips.map(function(c){return c.selectionChange})))}},{key:"chipFocusChanges",get:function(){return Rr.apply(void 0,yt(this.chips.map(function(c){return c._onFocus})))}},{key:"chipBlurChanges",get:function(){return Rr.apply(void 0,yt(this.chips.map(function(c){return c._onBlur})))}},{key:"chipRemoveChanges",get:function(){return Rr.apply(void 0,yt(this.chips.map(function(c){return c.destroyed})))}},{key:"ngAfterContentInit",value:function(){var c=this;this._keyManager=new bA(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(Wt(this._destroyed)).subscribe(function(p){return c._keyManager.withHorizontalOrientation(p)}),this._keyManager.tabOut.pipe(Wt(this._destroyed)).subscribe(function(){c._allowFocusEscape()}),this.chips.changes.pipe(na(null),Wt(this._destroyed)).subscribe(function(){c.disabled&&Promise.resolve().then(function(){c._syncChipsState()}),c._resetChips(),c._initializeSelection(),c._updateTabIndex(),c._updateFocusForDestroyedChips(),c.stateChanges.next()})}},{key:"ngOnInit",value:function(){this._selectionModel=new bg(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(c){this._chipInput=c,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",c.id)}},{key:"setDescribedByIds",value:function(c){this._ariaDescribedby=c.join(" ")}},{key:"writeValue",value:function(c){this.chips&&this._setSelectionByValue(c,!1)}},{key:"registerOnChange",value:function(c){this._onChange=c}},{key:"registerOnTouched",value:function(c){this._onTouched=c}},{key:"setDisabledState",value:function(c){this.disabled=c,this.stateChanges.next()}},{key:"onContainerClick",value:function(c){this._originatesFromChip(c)||this.focus()}},{key:"focus",value:function(c){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(c),this.stateChanges.next()))}},{key:"_focusInput",value:function(c){this._chipInput&&this._chipInput.focus(c)}},{key:"_keydown",value:function(c){var p=c.target;p&&p.classList.contains("mat-chip")&&(this._keyManager.onKeydown(c),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 c=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(c)}else this.focus();this._lastDestroyedChipIndex=null}},{key:"_isValidIndex",value:function(c){return c>=0&&c1&&void 0!==arguments[1])||arguments[1];if(this._clearSelection(),this.chips.forEach(function(M){return M.deselect()}),Array.isArray(c))c.forEach(function(M){return p._selectValue(M,_)}),this._sortValues();else{var w=this._selectValue(c,_);w&&_&&this._keyManager.setActiveItem(w)}}},{key:"_selectValue",value:function(c){var p=this,_=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],w=this.chips.find(function(M){return null!=M.value&&p._compareWith(M.value,c)});return w&&(_?w.selectViaInteraction():w.select(),this._selectionModel.select(w)),w}},{key:"_initializeSelection",value:function(){var c=this;Promise.resolve().then(function(){(c.ngControl||c._value)&&(c._setSelectionByValue(c.ngControl?c.ngControl.value:c._value,!1),c.stateChanges.next())})}},{key:"_clearSelection",value:function(c){this._selectionModel.clear(),this.chips.forEach(function(p){p!==c&&p.deselect()}),this.stateChanges.next()}},{key:"_sortValues",value:function(){var c=this;this._multiple&&(this._selectionModel.clear(),this.chips.forEach(function(p){p.selected&&c._selectionModel.select(p)}),this.stateChanges.next())}},{key:"_propagateChanges",value:function(c){var p;p=Array.isArray(this.selected)?this.selected.map(function(_){return _.value}):this.selected?this.selected.value:c,this._value=p,this.change.emit(new sse(this,p)),this.valueChange.emit(p),this._onChange(p),this._changeDetectorRef.markForCheck()}},{key:"_blur",value:function(){var c=this;this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(function(){c.focused||c._markAsTouched()}):this._markAsTouched())}},{key:"_markAsTouched",value:function(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}},{key:"_allowFocusEscape",value:function(){var c=this;-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(function(){c._tabIndex=c._userTabIndex||0,c._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 c=this;this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(function(p){p.source.selected?c._selectionModel.select(p.source):c._selectionModel.deselect(p.source),c.multiple||c.chips.forEach(function(_){!c._selectionModel.isSelected(_)&&_.selected&&_.deselect()}),p.isUserInput&&c._propagateChanges()})}},{key:"_listenToChipsFocus",value:function(){var c=this;this._chipFocusSubscription=this.chipFocusChanges.subscribe(function(p){var _=c.chips.toArray().indexOf(p.chip);c._isValidIndex(_)&&c._keyManager.updateActiveItem(_),c.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(function(){c._blur(),c.stateChanges.next()})}},{key:"_listenToChipsRemoved",value:function(){var c=this;this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(function(p){var _=p.chip,w=c.chips.toArray().indexOf(p.chip);c._isValidIndex(w)&&_._hasFocus&&(c._lastDestroyedChipIndex=w)})}},{key:"_originatesFromChip",value:function(c){for(var p=c.target;p&&p!==this._elementRef.nativeElement;){if(p.classList.contains("mat-chip"))return!0;p=p.parentElement}return!1}},{key:"_hasFocusedChip",value:function(){return this.chips&&this.chips.some(function(c){return c._hasFocus})}},{key:"_syncChipsState",value:function(){var c=this;this.chips&&this.chips.forEach(function(p){p._chipListDisabled=c._disabled,p._chipListMultiple=c.multiple})}}]),n}(ase);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(hn),z(Ei,8),z(Sc,8),z($f,8),z(qy),z(Bl,10))},i.\u0275cmp=ke({type:i,selectors:[["mat-chip-list"]],contentQueries:function(r,n,l){var c;1&r&&Mn(l,zH,5),2&r&&Ve(c=Ge())&&(n.chips=c)},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(r,n){1&r&&ne("focus",function(){return n.focus()})("blur",function(){return n._blur()})("keydown",function(c){return n._keydown(c)}),2&r&&(bl("id",n._uid),lt("tabindex",n.disabled?null:n._tabIndex)("aria-describedby",n._ariaDescribedby||null)("aria-required",n.role?n.required:null)("aria-disabled",n.disabled.toString())("aria-invalid",n.errorState)("aria-multiselectable",n.multiple)("role",n.role)("aria-orientation",n.ariaOrientation),Ze("mat-chip-list-disabled",n.disabled)("mat-chip-list-invalid",n.errorState)("mat-chip-list-required",n.required))},inputs:{errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[ft([{provide:hb,useExisting:i}]),Re],ngContentSelectors:Joe,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(r,n){1&r&&(vi(),I(0,"div",0),Gt(1),B())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;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{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size: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}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.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;transform:translateZ(0)}.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}),i}(),lse=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({providers:[qy,{provide:qJ,useValue:{separatorKeyCodes:[13]}}],imports:[[vn]]}),i}(),use=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({}),i}(),cse=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[io,vn,use,Kv]]}),i}(),fse=["*",[["mat-toolbar-row"]]],dse=["*","mat-toolbar-row"],hse=yc(function(){return L(function i(s){R(this,i),this._elementRef=s})}()),pse=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275dir=be({type:i,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),i}(),vse=function(){var i=function(s){se(n,s);var r=ue(n);function n(l,c,p){var _;return R(this,n),(_=r.call(this,l))._platform=c,_._document=p,_}return L(n,[{key:"ngAfterViewInit",value:function(){var c=this;this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return c._checkToolbarMixedModes()}))}},{key:"_checkToolbarMixedModes",value:function(){}}]),n}(hse);return i.\u0275fac=function(r){return new(r||i)(z(tt),z(pn),z(Jt))},i.\u0275cmp=ke({type:i,selectors:[["mat-toolbar"]],contentQueries:function(r,n,l){var c;1&r&&Mn(l,pse,5),2&r&&Ve(c=Ge())&&(n._toolbarRows=c)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(r,n){2&r&&Ze("mat-toolbar-multiple-rows",n._toolbarRows.length>0)("mat-toolbar-single-row",0===n._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Re],ngContentSelectors:dse,decls:2,vars:0,template:function(r,n){1&r&&(vi(fse),Gt(0),Gt(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}),i}(),gse=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({imports:[[vn],vn]}),i}(),mse=function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i}),i.\u0275inj=St({providers:[{provide:aq,useValue:{floatLabel:"always"}},{provide:K1,useValue:udsData.language}],imports:[io,jE,KV,gse,tS,ote,xP,cse,$W,PS,Aee,bP,Zae,RW,bee,a,E,pte,Qoe,v5,lse,Jae,nre,Nne,x5,gte,Zee]}),i}();function _se(i,s){if(1&i){var r=xe();I(0,"button",6),ne("click",function(){var p=he(r).$implicit;return Q().changeLang(p)}),K(1),B()}if(2&i){var n=s.$implicit;G(1),Ln(n.name)}}function yse(i,s){if(1&i&&(I(0,"button",12)(1,"i",7),K(2,"face"),B(),K(3),B()),2&i){var r=Q();U("matMenuTriggerFor",Dn(7)),G(3),Ln(r.api.user.user)}}function bse(i,s){if(1&i&&(I(0,"button",18),K(1),I(2,"i",7),K(3,"arrow_drop_down"),B()()),2&i){var r=Q();U("matMenuTriggerFor",Dn(7)),G(1),Le("",r.api.user.user," ")}}var Cse=function(){var i=function(){function s(r){R(this,s),this.api=r,this.isNavbarCollapsed=!0;var n=r.config.language;this.langs=[];var c,l=qt(r.config.available_languages);try{for(l.s();!(c=l.n()).done;){var p=c.value;p.id===n?this.lang=p:this.langs.push(p)}}catch(_){l.e(_)}finally{l.f()}}return L(s,[{key:"ngOnInit",value:function(){}},{key:"changeLang",value:function(n){return this.lang=n,document.getElementById("id_language").attributes.value.value=n.id,document.getElementById("form_language").submit(),!1}},{key:"user",value:function(){this.api.gotoUser()}},{key:"logout",value:function(){this.api.logout()}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot))},i.\u0275cmp=ke({type:i,selectors:[["uds-navbar"]],decls:41,vars:13,consts:[["id","form_language","method","post",3,"action"],["type","hidden",3,"name","value"],["id","id_language","type","hidden","name","language",3,"value"],["appMenu","matMenu"],["mat-menu-item","",3,"click",4,"ngFor","ngForOf"],["userMenu","matMenu"],["mat-menu-item","",3,"click"],[1,"material-icons"],[1,"material-icons","highlight"],["x-position","before"],["shrink","matMenu"],["mat-menu-item","",3,"matMenuTriggerFor",4,"ngIf"],["mat-menu-item","",3,"matMenuTriggerFor"],["color","primary",1,"uds-nav"],["mat-button","","routerLink","/"],["alt","Universal Desktop Services",1,"udsicon",3,"src"],[1,"fill-remaining-space"],[1,"expanded"],["mat-button","",3,"matMenuTriggerFor"],["mat-button","",3,"matMenuTriggerFor",4,"ngIf"],[1,"shrinked"],["mat-icon-button","",3,"matMenuTriggerFor"]],template:function(r,n){if(1&r&&(I(0,"form",0),Se(1,"input",1)(2,"input",2),B(),I(3,"mat-menu",null,3),te(5,_se,2,1,"button",4),B(),I(6,"mat-menu",null,5)(8,"button",6),ne("click",function(){return n.user()}),I(9,"i",7)(10,"i",7),K(11,"home"),B()(),I(12,"uds-translate"),K(13,"User mode"),B()(),I(14,"button",6),ne("click",function(){return n.logout()}),I(15,"i",8),K(16,"exit_to_app"),B(),I(17,"uds-translate"),K(18,"Logout"),B()()(),I(19,"mat-menu",9,10),te(21,yse,4,2,"button",11),I(22,"button",12)(23,"i",7),K(24,"language"),B(),K(25),B()(),I(26,"mat-toolbar",13)(27,"button",14),Se(28,"img",15),K(29," UDS "),B(),Se(30,"span",16),I(31,"div",17)(32,"button",18),K(33),I(34,"i",7),K(35,"arrow_drop_down"),B()(),te(36,bse,4,2,"button",19),B(),I(37,"div",20)(38,"button",21)(39,"i",7),K(40,"menu"),B()()()()),2&r){var l=Dn(4),c=Dn(20);Uu("action",n.api.config.urls.changeLang,Qt),G(1),Uu("name",n.api.csrfField),Uu("value",n.api.csrfToken),G(1),Uu("value",n.lang.id),G(3),U("ngForOf",n.langs),G(16),U("ngIf",n.api.user.isLogged),G(1),U("matMenuTriggerFor",l),G(3),Ln(n.lang.name),G(3),U("src",n.api.staticURL("admin/img/udsicon.png"),Qt),G(4),U("matMenuTriggerFor",l),G(1),Le("",n.lang.name," "),G(3),U("ngIf",n.api.user.isLogged),G(2),U("matMenuTriggerFor",c)}},directives:[nb,Xf,Sc,HQ,ir,EP,Gn,en,jQ,vse,qn,Gw],styles:[".uds-nav[_ngcontent-%COMP%]{position:fixed;top:0;z-index:1000}.fill-remaining-space[_ngcontent-%COMP%]{flex:1 1 auto}.material-icons[_ngcontent-%COMP%]{margin-right:.3rem}.udsicon[_ngcontent-%COMP%]{width:2rem}.mat-button[_ngcontent-%COMP%]{font-weight:300}@media only screen and (max-width: 744px){.expanded[_ngcontent-%COMP%]{display:none;visibility:hidden}.shrinked[_ngcontent-%COMP%]{visibility:visible}}@media only screen and (min-width: 745px){.expanded[_ngcontent-%COMP%]{visibility:visible}.shrinked[_ngcontent-%COMP%]{display:none;visibility:hidden}}"]}),i}();function wse(i,s){if(1&i&&(I(0,"a",24),Se(1,"img",2),I(2,"uds-translate"),K(3,"Groups"),B()()),2&i){var r=Q();G(1),U("src",r.icon("groups"),Qt)}}function Sse(i,s){if(1&i){var r=xe();I(0,"a",8),ne("click",function(){return he(r),Q().toggleConfig()}),Se(1,"img",2),I(2,"uds-translate"),K(3,"Tools"),B(),I(4,"i",9),K(5,"arrow_drop_down"),B()()}if(2&i){var n=Q();G(1),U("src",n.icon("tools"),Qt)}}var Mse=function(){var i=function(){function s(r,n){R(this,s),this.api=r,this.rest=n,this.connectivityShown=!1,this.poolsShown=!1,this.configShown=!1,this.tokensShown=!1}return L(s,[{key:"ngOnInit",value:function(){}},{key:"icon",value:function(n){return this.api.staticURL("admin/img/icons/"+n+".png")}},{key:"toggleConnectivity",value:function(){this.connectivityShown=!this.connectivityShown,this.poolsShown=!1,this.configShown=!1}},{key:"togglePools",value:function(){this.connectivityShown=!1,this.poolsShown=!this.poolsShown,this.configShown=!1}},{key:"toggleConfig",value:function(){this.connectivityShown=!1,this.poolsShown=!1,this.configShown=!this.configShown}},{key:"flushCache",value:function(){var n=this;this.rest.system.flushCache().subscribe(function(){n.api.gui.snackbar.open(django.gettext("Cache flushed"),django.gettext("dismiss"),{duration:2e3})})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn))},i.\u0275cmp=ke({type:i,selectors:[["uds-sidebar"]],decls:86,vars:24,consts:[[1,"sidebar","mat-toolbar","mat-primary"],["mat-button","","routerLink","/summary",1,"sidebar-link"],[1,"icon",3,"src"],["mat-button","","routerLink","/providers",1,"sidebar-link"],["mat-button","","routerLink","/networks",1,"sidebar-link"],["mat-button","","routerLink","/authenticators",1,"sidebar-link"],["mat-button","","routerLink","/osmanagers",1,"sidebar-link"],["mat-button","","routerLink","/transports",1,"sidebar-link"],["mat-button","",1,"sidebar-link",3,"click"],[1,"material-icons"],[1,"submenu",3,"hidden"],["mat-button","","routerLink","/pools/service-pools",1,"sidebar-link"],["mat-button","","routerLink","/pools/meta-pools",1,"sidebar-link"],["mat-button","","routerLink","/pools/pool-groups","class","sidebar-link",4,"ngIf"],["mat-button","","routerLink","/pools/calendars",1,"sidebar-link"],["mat-button","","routerLink","/pools/accounts",1,"sidebar-link"],["mat-button","","class","sidebar-link",3,"click",4,"ngIf"],["mat-button","","routerLink","/tools/gallery",1,"sidebar-link"],["mat-button","","routerLink","/tools/reports",1,"sidebar-link"],["mat-button","","routerLink","/tools/notifiers",1,"sidebar-link"],[1,"submenu2",3,"hidden"],["mat-button","","routerLink","/tools/tokens/actor",1,"sidebar-link"],["mat-button","","routerLink","/tools/tokens/tunnel",1,"sidebar-link"],["mat-button","","routerLink","/tools/configuration",1,"sidebar-link"],["mat-button","","routerLink","/pools/pool-groups",1,"sidebar-link"]],template:function(r,n){1&r&&(I(0,"div",0)(1,"a",1),Se(2,"img",2),I(3,"uds-translate"),K(4,"Summary"),B()(),I(5,"a",3),Se(6,"img",2),I(7,"uds-translate"),K(8,"Services"),B()(),I(9,"a",4),Se(10,"img",2),I(11,"uds-translate"),K(12,"Networks"),B()(),I(13,"a",5),Se(14,"img",2),I(15,"uds-translate"),K(16,"Authenticators"),B()(),I(17,"a",6),Se(18,"img",2),I(19,"uds-translate"),K(20,"Os Managers"),B()(),I(21,"a",7),Se(22,"img",2),I(23,"uds-translate"),K(24,"Transports"),B()(),I(25,"a",8),ne("click",function(){return n.togglePools()}),Se(26,"img",2),I(27,"uds-translate"),K(28,"Pools"),B(),I(29,"i",9),K(30,"arrow_drop_down"),B()(),I(31,"div",10)(32,"a",11),Se(33,"img",2),I(34,"uds-translate"),K(35,"Service pools"),B()(),I(36,"a",12),Se(37,"img",2),I(38,"uds-translate"),K(39,"Meta pools"),B()(),te(40,wse,4,1,"a",13),I(41,"a",14),Se(42,"img",2),I(43,"uds-translate"),K(44,"Calendars"),B()(),I(45,"a",15),Se(46,"img",2),I(47,"uds-translate"),K(48,"Accounts"),B()()(),te(49,Sse,6,1,"a",16),I(50,"div",10)(51,"a",17),Se(52,"img",2),I(53,"uds-translate"),K(54,"Gallery"),B()(),I(55,"a",18),Se(56,"img",2),I(57,"uds-translate"),K(58,"Reports"),B()(),I(59,"a",19),Se(60,"img",2),I(61,"uds-translate"),K(62,"Notifiers"),B()(),I(63,"a",8),ne("click",function(){return n.tokensShown=!n.tokensShown}),Se(64,"img",2),I(65,"uds-translate"),K(66,"Tokens"),B(),I(67,"i",9),K(68,"arrow_drop_down"),B()(),I(69,"div",20)(70,"a",21),Se(71,"img",2),I(72,"uds-translate"),K(73,"Actor"),B()(),I(74,"a",22),Se(75,"img",2),I(76,"uds-translate"),K(77,"Tunnel"),B()()(),I(78,"a",23),Se(79,"img",2),I(80,"uds-translate"),K(81,"Configuration"),B()(),I(82,"a",8),ne("click",function(){return n.flushCache()}),Se(83,"img",2),I(84,"uds-translate"),K(85,"Flush Cache"),B()()()()),2&r&&(G(2),U("src",n.icon("dashboard-monitor"),Qt),G(4),U("src",n.icon("providers"),Qt),G(4),U("src",n.icon("networks"),Qt),G(4),U("src",n.icon("authenticators"),Qt),G(4),U("src",n.icon("osmanagers"),Qt),G(4),U("src",n.icon("transports"),Qt),G(4),U("src",n.icon("miscellaneous"),Qt),G(5),U("hidden",!n.poolsShown),G(2),U("src",n.icon("pools"),Qt),G(4),U("src",n.icon("metas"),Qt),G(3),U("ngIf",n.api.user.isAdmin),G(2),U("src",n.icon("calendars"),Qt),G(4),U("src",n.icon("accounts"),Qt),G(3),U("ngIf",n.api.user.isAdmin),G(1),U("hidden",!n.configShown),G(2),U("src",n.icon("gallery"),Qt),G(4),U("src",n.icon("reports"),Qt),G(4),U("src",n.icon("notifiers"),Qt),G(4),U("src",n.icon("maleta"),Qt),G(5),U("hidden",!n.tokensShown),G(2),U("src",n.icon("accounts"),Qt),G(4),U("src",n.icon("proxy"),Qt),G(4),U("src",n.icon("configuration"),Qt),G(4),U("src",n.icon("flush-cache"),Qt))},directives:[cg,Al,Gn,en],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%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_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%] .mat-h2[_ngcontent-%COMP%], .mat-typography[_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%] .mat-h3[_ngcontent-%COMP%], .mat-typography[_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%] .mat-h4[_ngcontent-%COMP%], .mat-typography[_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%] .mat-h5[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font:400 11.62px/20px Roboto,Helvetica Neue,sans-serif;margin:0 0 12px}.mat-h6[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h6[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font:400 9.38px/20px Roboto,Helvetica Neue,sans-serif;margin:0 0 12px}.mat-body-strong[_ngcontent-%COMP%], .mat-body-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-body-strong[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-body-2[_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%] .mat-body[_ngcontent-%COMP%], .mat-typography[_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[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-body-1[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-body-1[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 12px}.mat-small[_ngcontent-%COMP%], .mat-caption[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-small[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-caption[_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-raised-button[_ngcontent-%COMP%], .mat-icon-button[_ngcontent-%COMP%], .mat-stroked-button[_ngcontent-%COMP%], .mat-flat-button[_ngcontent-%COMP%], .mat-fab[_ngcontent-%COMP%], .mat-mini-fab[_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-subtitle[_ngcontent-%COMP%], .mat-card-content[_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-trailing-icon.mat-icon[_ngcontent-%COMP%], .mat-chip[_ngcontent-%COMP%] .mat-chip-remove.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);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);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);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-header[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%]{font-size:14px}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2), .mat-grid-tile-footer[_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%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-slider-thumb-label-text[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:12px;font-weight:500}.mat-stepper-vertical[_ngcontent-%COMP%], .mat-stepper-horizontal[_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%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-tab-label[_ngcontent-%COMP%], .mat-tab-link[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;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-tree-node[_ngcontent-%COMP%], .mat-nested-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;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_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%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;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%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.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}@keyframes cdk-text-field-autofill-start{}@keyframes cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%], .mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}.sidebar[_ngcontent-%COMP%]{position:fixed;top:4rem;padding-top:12px;bottom:0;display:flex;flex-direction:column;overflow-y:auto;width:56px;transition:all .3s cubic-bezier(.86,0,.07,1);box-shadow:0 16px 38px -12px #fafafa8f,0 4px 25px #fafafa1f,0 8px 10px -5px #fafafa33;overflow-x:hidden;z-index:25}.sidebar-link[_ngcontent-%COMP%]{display:flex;width:240px;color:transparent;transition:color .3s cubic-bezier(.86,0,.07,1);font-weight:300;font-size:1rem}.sidebar[_ngcontent-%COMP%]:hover{width:240px;transition:all .3s cubic-bezier(.86,0,.07,1)}.sidebar[_ngcontent-%COMP%]:hover .sidebar-link[_ngcontent-%COMP%]{color:#000}.submenu[_ngcontent-%COMP%] > .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 #3030308f,0 4px 25px #3030301f,0 8px 10px -5px #30303033} .dark-theme .sidebar:hover .sidebar-link{color:#fff!important}"]}),i}();function kse(i,s){1&i&&Se(0,"div",1),2&i&&U("innerHTML",Q().messages,Xi)}var Dse=function(){var i=function(){function s(r){R(this,s),this.api=r,this.messages="",this.visible=!1}return L(s,[{key:"ngOnInit",value:function(){var n=this;if(this.api.notices.length>0){var c='
';this.messages='
'+c+this.api.notices.map(function(_){return _.replace(/ /gm," ").replace(/([A-Z]+[A-Z]+)/gm,"$1").replace(/([0-9]+)/gm,"$1")}).join("
"+c)+"
",this.api.gui.alert("",this.messages,0,"80%").subscribe(function(){n.visible=!0})}}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot))},i.\u0275cmp=ke({type:i,selectors:[["uds-notices"]],decls:1,vars:1,consts:[["class","notice",3,"innerHTML",4,"ngIf"],[1,"notice",3,"innerHTML"]],template:function(r,n){1&r&&te(0,kse,1,1,"div",0),2&r&&U("ngIf",n.visible)},directives:[en],styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:steelblue;border-radius:3px;box-shadow:#00000024 0 4px 20px,#465d9c66 0 7px 10px -5px;box-sizing:border-box;color:#fff;margin:1rem 2rem 0rem;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}"]}),i}(),xse=function(){var i=function(){function s(){R(this,s)}return L(s,[{key:"ngOnInit",value:function(){}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=ke({type:i,selectors:[["uds-footer"]],decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(r,n){1&r&&(I(0,"div"),K(1,"\xa9 2012-2022 "),I(2,"a",0),K(3,"Virtual Cable S.L.U."),B()())},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%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_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%] .mat-h2[_ngcontent-%COMP%], .mat-typography[_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%] .mat-h3[_ngcontent-%COMP%], .mat-typography[_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%] .mat-h4[_ngcontent-%COMP%], .mat-typography[_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%] .mat-h5[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h5[_ngcontent-%COMP%]{font:400 11.62px/20px Roboto,Helvetica Neue,sans-serif;margin:0 0 12px}.mat-h6[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h6[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h6[_ngcontent-%COMP%]{font:400 9.38px/20px Roboto,Helvetica Neue,sans-serif;margin:0 0 12px}.mat-body-strong[_ngcontent-%COMP%], .mat-body-2[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-body-strong[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-body-2[_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%] .mat-body[_ngcontent-%COMP%], .mat-typography[_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[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-body-1[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-body[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-body-1[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 12px}.mat-small[_ngcontent-%COMP%], .mat-caption[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-small[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-caption[_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-raised-button[_ngcontent-%COMP%], .mat-icon-button[_ngcontent-%COMP%], .mat-stroked-button[_ngcontent-%COMP%], .mat-flat-button[_ngcontent-%COMP%], .mat-fab[_ngcontent-%COMP%], .mat-mini-fab[_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-subtitle[_ngcontent-%COMP%], .mat-card-content[_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-trailing-icon.mat-icon[_ngcontent-%COMP%], .mat-chip[_ngcontent-%COMP%] .mat-chip-remove.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);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);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);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-header[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%]{font-size:14px}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%], .mat-grid-tile-footer[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header[_ngcontent-%COMP%] .mat-line[_ngcontent-%COMP%]:nth-child(n+2), .mat-grid-tile-footer[_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%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-slider-thumb-label-text[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-size:12px;font-weight:500}.mat-stepper-vertical[_ngcontent-%COMP%], .mat-stepper-horizontal[_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%]{font-family:Roboto,Helvetica Neue,sans-serif}.mat-tab-label[_ngcontent-%COMP%], .mat-tab-link[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;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-tree-node[_ngcontent-%COMP%], .mat-nested-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;left:0}[dir=rtl][_ngcontent-%COMP%] .cdk-visually-hidden[_ngcontent-%COMP%]{left:auto;right:0}.cdk-overlay-container[_ngcontent-%COMP%], .cdk-global-overlay-wrapper[_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%]{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane[_ngcontent-%COMP%]{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex;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%]{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing[_ngcontent-%COMP%]{opacity:0;visibility:visible}.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}@keyframes cdk-text-field-autofill-start{}@keyframes cdk-text-field-autofill-end{}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored[_ngcontent-%COMP%]:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms}.mat-focus-indicator[_ngcontent-%COMP%], .mat-mdc-focus-indicator[_ngcontent-%COMP%]{position:relative}a[_ngcontent-%COMP%]{text-decoration:none}div[_ngcontent-%COMP%], a[_ngcontent-%COMP%]{color:#000} .dark-theme div, .dark-theme a{color:#fff}"]}),i}(),Tse=function(){var i=function(){function s(r){R(this,s),this.api=r,this.title="UDS Admin",this.blackTheme=!1}return L(s,[{key:"handleKeyboardEvent",value:function(n){n.altKey&&n.ctrlKey&&"b"===n.key&&(this.blackTheme=!this.blackTheme,this.api.switchTheme(this.blackTheme))}},{key:"ngOnInit",value:function(){this.api.switchTheme(this.blackTheme)}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot))},i.\u0275cmp=ke({type:i,selectors:[["uds-root"]],hostBindings:function(r,n){1&r&&ne("keydown",function(c){return n.handleKeyboardEvent(c)},!1,JO)},decls:8,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(r,n){1&r&&(Se(0,"uds-navbar")(1,"uds-sidebar"),I(2,"div",0)(3,"div",1),Se(4,"uds-notices")(5,"router-outlet"),B(),I(6,"div",2),Se(7,"uds-footer"),B()())},directives:[Cse,Mse,Dse,cc,xse],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% - 64px);margin:4rem auto auto 56px;padding-left:8px;overflow-x:hidden}"]}),i}(),Ase=function(){var i=function(s){se(n,s);var r=ue(n);function n(){var l;return R(this,n),(l=r.call(this)).itemsPerPageLabel=django.gettext("Items per page"),l}return L(n)}(kg);return i.\u0275fac=function(r){return new(r||i)},i.\u0275prov=Ue({token:i,factory:i.\u0275fac}),i}(),Ese=function(){var i=function(){function s(){R(this,s),this.changed=new ye}return L(s,[{key:"ngOnInit",value:function(){this.field.value=this.field.value||this.field.gui.defvalue}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"mat-form-field",0)(1,"mat-label"),K(2),B(),I(3,"input",1),ne("ngModelChange",function(c){return n.field.value=c})("change",function(){return n.changed.emit(n)}),B()()),2&r&&(G(2),Le(" ",n.field.gui.label," "),G(1),U("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly)("maxlength",n.field.gui.length||128)("autocomplete","new-"+n.field.name))},directives:[or,Tr,ua,yi,pr,ar,Vs,gS],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]}),i}();function Pse(i,s){if(1&i&&(I(0,"mat-option",4),K(1),B()),2&i){var r=s.$implicit;U("value",r),G(1),Le(" ",r," ")}}var Ose=function(){var i=function(){function s(){R(this,s),this.changed=new ye,this.values=[]}return L(s,[{key:"ngOnInit",value:function(){this.field.value=this.field.value||this.field.gui.defvalue,this.values=this.field.gui.values.map(function(n){return n.text})}},{key:"_filter",value:function(){var n=this.field.value.toLowerCase();return this.values.filter(function(l){return l.toLowerCase().includes(n)})}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=ke({type:i,selectors:[["uds-field-autocomplete"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:9,consts:[["appearance","standard"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","text",3,"ngModel","placeholder","required","disabled","maxlength","matAutocomplete","autocomplete","ngModelChange","change"],[3,"value"]],template:function(r,n){if(1&r&&(I(0,"mat-form-field",0)(1,"mat-label"),K(2),B(),I(3,"mat-autocomplete",null,1),te(5,Pse,2,2,"mat-option",2),B(),I(6,"input",3),ne("ngModelChange",function(p){return n.field.value=p})("change",function(){return n.changed.emit(n)}),B()()),2&r){var l=Dn(4);G(2),Le(" ",n.field.gui.label," "),G(3),U("ngForOf",n._filter()),G(1),U("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly)("maxlength",n.field.gui.length||128)("matAutocomplete",l)("autocomplete","new-"+n.field.name)}},directives:[or,Tr,Iq,ir,Pi,ua,yi,RH,pr,ar,Vs,gS],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]}),i}(),Ise=function(){var i=function(){function s(){R(this,s),this.changed=new ye}return L(s,[{key:"ngOnInit",value:function(){!this.field.value&&0!==this.field.value&&(this.field.value=this.field.gui.defvalue)}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"mat-form-field",0)(1,"mat-label"),K(2),B(),I(3,"input",1),ne("ngModelChange",function(c){return n.field.value=c})("change",function(){return n.changed.emit(n)}),B()()),2&r&&(G(2),Le(" ",n.field.gui.label," "),G(1),U("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly))},directives:[or,Tr,ua,Kf,yi,pr,ar,Vs],styles:[""]}),i}(),Rse=function(){var i=function(){function s(){R(this,s),this.changed=new ye,this.passwordType="password"}return L(s,[{key:"ngOnInit",value:function(){this.field.value=this.field.value||this.field.gui.defvalue}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"mat-form-field",0)(1,"mat-label"),K(2),B(),I(3,"input",1),ne("ngModelChange",function(c){return n.field.value=c})("change",function(){return n.changed.emit(n)}),B(),I(4,"a",2),ne("click",function(){return n.passwordType="text"===n.passwordType?"password":"text"}),I(5,"i",3),K(6,"remove_red_eye"),B()()()),2&r&&(G(2),Le(" ",n.field.gui.label," "),G(1),U("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly)("type",n.passwordType))},directives:[or,Tr,ua,yi,pr,ar,Vs,cg,wg],styles:[".cdk-text-field-autofilled[_ngcontent-%COMP%]{background-color:red}"]}),i}(),Lse=function(){var i=function(){function s(){R(this,s)}return L(s,[{key:"ngOnInit",value:function(){(""===this.field.value||void 0===this.field.value)&&(this.field.value=this.field.gui.defvalue)}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=ke({type:i,selectors:[["uds-field-hidden"]],inputs:{field:"field"},decls:0,vars:0,template:function(r,n){},styles:[""]}),i}(),Fse=function(){var i=function(){function s(){R(this,s)}return L(s,[{key:"ngOnInit",value:function(){this.field.value=this.field.value||this.field.gui.defvalue}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"mat-form-field",0)(1,"mat-label"),K(2),B(),I(3,"textarea",1),ne("ngModelChange",function(c){return n.field.value=c}),B()()),2&r&&(G(2),Le(" ",n.field.gui.label," "),G(1),U("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",n.field.gui.required)("readonly",n.field.gui.rdonly))},directives:[or,Tr,ua,yi,pr,ar,Vs],styles:[""]}),i}();function Nse(i,s){if(1&i){var r=xe();I(0,"uds-mat-select-search",3),ne("changed",function(l){return he(r),Q().filter=l}),B()}}function Bse(i,s){if(1&i&&(I(0,"mat-option",4),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.text," ")}}var Vse=function(){var i=function(){function s(){R(this,s),this.changed=new ye,this.filter=""}return L(s,[{key:"ngOnInit",value: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}},{key:"filteredValues",value:function(){if(!this.filter)return this.field.gui.values;var n=this.filter.toLocaleLowerCase();return this.field.gui.values.filter(function(l){return l.text.toLocaleLowerCase().includes(n)})}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"mat-form-field")(1,"mat-label"),K(2),B(),I(3,"mat-select",0),ne("ngModelChange",function(c){return n.field.value=c})("valueChange",function(){return n.changed.emit(n)}),te(4,Nse,1,0,"uds-mat-select-search",1),te(5,Bse,2,2,"mat-option",2),B()()),2&r&&(G(2),Le(" ",n.field.gui.label," "),G(1),U("ngModel",n.field.value)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly),G(1),U("ngIf",n.field.gui.values.length>10),G(1),U("ngForOf",n.filteredValues()))},directives:[or,Tr,Ua,pr,ar,Vs,en,kc,ir,Pi],styles:[""]}),i}();function Hse(i,s){if(1&i){var r=xe();I(0,"uds-mat-select-search",3),ne("changed",function(l){return he(r),Q().filter=l}),B()}}function zse(i,s){if(1&i&&(I(0,"mat-option",4),K(1),B()),2&i){var r=s.$implicit;U("value",r.id),G(1),Le(" ",r.text," ")}}var Gse=function(){var i=function(){function s(){R(this,s),this.changed=new ye,this.filter=""}return L(s,[{key:"ngOnInit",value:function(){this.field.value=void 0,void 0!==this.field.values?this.field.values.forEach(function(n,l,c){c[l]=""+n.id}):this.field.values=new Array}},{key:"filteredValues",value:function(){if(!this.filter)return this.field.gui.values;var n=this.filter.toLocaleLowerCase();return this.field.gui.values.filter(function(l){return l.text.toLocaleLowerCase().includes(n)})}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"mat-form-field")(1,"mat-label"),K(2),B(),I(3,"mat-select",0),ne("ngModelChange",function(c){return n.field.values=c})("valueChange",function(){return n.changed.emit(n)}),te(4,Hse,1,0,"uds-mat-select-search",1),te(5,zse,2,2,"mat-option",2),B()()),2&r&&(G(2),Le(" ",n.field.gui.label," "),G(1),U("ngModel",n.field.values)("placeholder",n.field.gui.tooltip)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly),G(1),U("ngIf",n.field.gui.values.length>10),G(1),U("ngForOf",n.filteredValues()))},directives:[or,Tr,Ua,pr,ar,Vs,en,kc,ir,Pi],styles:[""]}),i}();function Use(i,s){if(1&i){var r=xe();I(0,"div",12)(1,"div",13),K(2),B(),I(3,"div",14),K(4," \xa0"),I(5,"a",15),ne("click",function(){var p=he(r).index;return Q().removeElement(p)}),I(6,"i",16),K(7,"close"),B()()()()}if(2&i){var n=s.$implicit;G(2),Le(" ",n," ")}}var jse=function(){var i=function(){function s(r,n,l,c){var p=this;R(this,s),this.api=r,this.rest=n,this.dialogRef=l,this.data=c,this.values=[],this.input="",this.onSave=new ye(!0),this.data.values.forEach(function(_){return p.values.push(_)})}return L(s,[{key:"addElements",value:function(){var n=this;this.input.split(",").forEach(function(l){n.values.push(l)}),this.input=""}},{key:"checkKey",value:function(n){"Enter"===n.code&&this.addElements()}},{key:"removeAll",value:function(){this.values.length=0}},{key:"removeElement",value:function(n){this.values.splice(n,1)}},{key:"save",value:function(){var n=this;this.data.values.length=0,this.values.forEach(function(l){return n.data.values.push(l)}),this.onSave.emit(this.values),this.dialogRef.close()}},{key:"ngOnInit",value:function(){}}],[{key:"launch",value:function(n,l,c){var p=window.innerWidth<800?"50%":"30%";return n.gui.dialog.open(s,{width:p,data:{title:l,values:c},disableClose:!0}).componentInstance.onSave}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot),z(rn),z(Hr),z(Xr))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"h4",0),K(1),B(),I(2,"mat-dialog-content")(3,"div",1)(4,"div",2),te(5,Use,8,1,"div",3),B(),I(6,"div",4)(7,"button",5),ne("click",function(){return n.removeAll()}),I(8,"uds-translate"),K(9,"Remove all"),B()()(),I(10,"div",6)(11,"mat-form-field",7)(12,"input",8),ne("keyup",function(c){return n.checkKey(c)})("ngModelChange",function(c){return n.input=c}),B(),I(13,"button",9),ne("click",function(){return n.addElements()}),I(14,"uds-translate"),K(15,"Add"),B()()()()()(),I(16,"mat-dialog-actions")(17,"button",10)(18,"uds-translate"),K(19,"Cancel"),B()(),I(20,"button",11),ne("click",function(){return n.save()}),I(21,"uds-translate"),K(22,"Ok"),B()()()),2&r&&(G(1),Le(" ",n.data.title,"\n"),G(4),U("ngForOf",n.values),G(7),U("ngModel",n.input))},directives:[si,jr,ir,qn,Gn,or,ua,yi,pr,ar,wg,li,_i],styles:[".content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between;justify-self:center}.list[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin:1rem;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:#00000024 0 1px 4px;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}"]}),i}(),Wse=function(){var i=function(){function s(r){R(this,s),this.api=r,this.changed=new ye}return L(s,[{key:"ngOnInit",value:function(){}},{key:"launch",value:function(){var n=this;void 0===this.field.values&&(this.field.values=[]),jse.launch(this.api,this.field.gui.label,this.field.values).subscribe(function(l){n.changed.emit({field:n.field})})}},{key:"getValue",value:function(){if(void 0===this.field.values)return"";var n=this.field.values.filter(function(l,c,p){return c<5}).join(", ");return this.field.values.length>5&&(n+=django.gettext(", (%i more items)").replace("%i",""+(this.field.values.length-5))),n}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"mat-form-field",0)(1,"mat-label"),K(2),B(),I(3,"input",1),ne("click",function(){return n.launch()}),B()()),2&r&&(G(2),Le(" ",n.field.gui.label," "),G(1),U("readonly",!0)("value",n.getValue())("placeholder",n.field.gui.tooltip)("disabled",!0===n.field.gui.rdonly))},directives:[or,Tr,ua],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]}),i}(),Yse=function(){var i=function(){function s(){R(this,s),this.changed=new ye}return L(s,[{key:"ngOnInit",value:function(){this.field.value=function(s){return""===s||null==s}(this.field.value)?fP(this.field.gui.defvalue):fP(this.field.value)}},{key:"getValue",value:function(){return fP(this.field.value)?django.gettext("Yes"):django.gettext("No")}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"div",0)(1,"span",1),K(2),B(),I(3,"mat-slide-toggle",2),ne("ngModelChange",function(c){return n.field.value=c})("change",function(){return n.changed.emit(n)}),K(4),B()()),2&r&&(G(2),Ln(n.field.gui.label),G(1),U("ngModel",n.field.value)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly),G(1),Le(" ",n.getValue()," "))},directives:[zS,QQ,pr,ar,Vs],styles:[".label[_ngcontent-%COMP%]{color:#0009;display:block;font-weight:400;left:0px;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:0px 0px;white-space:nowrap}"]}),i}();function qse(i,s){if(1&i&&Se(0,"div",5),2&i){var r=Q().$implicit;U("innerHTML",Q().asIcon(r),Xi)}}function Zse(i,s){if(1&i&&(I(0,"div"),te(1,qse,1,1,"div",4),B()),2&i){var r=s.$implicit,n=Q();G(1),U("ngIf",r.id==n.field.value)}}function Xse(i,s){if(1&i){var r=xe();I(0,"uds-mat-select-search",6),ne("changed",function(l){return he(r),Q().filter=l}),B()}}function Kse(i,s){if(1&i&&(I(0,"mat-option",7),Se(1,"div",5),B()),2&i){var r=s.$implicit,n=Q();U("value",r.id),G(1),U("innerHTML",n.asIcon(r),Xi)}}var $se=function(){var i=function(){function s(r){R(this,s),this.api=r,this.changed=new ye,this.filter=""}return L(s,[{key:"ngOnInit",value: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)}},{key:"asIcon",value:function(n){return this.api.safeString(this.api.gui.icon(n.img)+n.text)}},{key:"filteredValues",value:function(){if(!this.filter)return this.field.gui.values;var n=this.filter.toLocaleLowerCase();return this.field.gui.values.filter(function(l){return l.text.toLocaleLowerCase().includes(n)})}}]),s}();return i.\u0275fac=function(r){return new(r||i)(z(Ot))},i.\u0275cmp=ke({type:i,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(r,n){1&r&&(I(0,"mat-form-field")(1,"mat-label"),K(2),B(),I(3,"mat-select",0),ne("valueChange",function(){return n.changed.emit(n)})("ngModelChange",function(c){return n.field.value=c}),I(4,"mat-select-trigger"),te(5,Zse,2,1,"div",1),B(),te(6,Xse,1,0,"uds-mat-select-search",2),te(7,Kse,2,2,"mat-option",3),B()()),2&r&&(G(2),Le(" ",n.field.gui.label," "),G(1),U("placeholder",n.field.gui.tooltip)("ngModel",n.field.value)("required",!0===n.field.gui.required)("disabled",!0===n.field.gui.rdonly),G(2),U("ngForOf",n.field.gui.values),G(1),U("ngIf",n.field.gui.values.length>10),G(1),U("ngForOf",n.filteredValues()))},directives:[or,Tr,Ua,pr,ar,Vs,pq,ir,en,kc,Pi],styles:[""]}),i}(),Qse=function(){var i=function(){function s(){R(this,s),this.changed=new ye,this.value=new Date}return L(s,[{key:"date",get:function(){return this.value},set:function(n){this.value!==n&&(this.value=n,this.field.value=yg("%Y-%m-%d",this.value))}},{key:"ngOnInit",value:function(){this.field.value=this.field.value||this.field.gui.defvalue,"2000-01-01"===this.field.value?this.field.value=yg("%Y-01-01"):"2000-01-01"===this.field.value&&(this.field.value=yg("%Y-12-31"));var n=this.field.value.split("-");3===n.length&&(this.value=new Date(+n[0],+n[1]-1,+n[2]))}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=ke({type:i,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(r,n){if(1&r&&(I(0,"mat-form-field",0)(1,"mat-label"),K(2),B(),I(3,"input",1),ne("ngModelChange",function(p){return n.date=p}),B(),Se(4,"mat-datepicker-toggle",2)(5,"mat-datepicker",null,3),B()),2&r){var l=Dn(6);G(2),Le(" ",n.field.gui.label," "),G(1),U("matDatepicker",l)("ngModel",n.date)("placeholder",n.field.gui.tooltip)("disabled",!0===n.field.gui.rdonly),G(1),U("for",l)}},directives:[or,Tr,ua,BH,yi,pr,ar,kJ,wg,MJ],styles:[""]}),i}();function Jse(i,s){if(1&i){var r=xe();I(0,"mat-chip",5),ne("removed",function(){var _=he(r).$implicit;return Q().remove(_)}),K(1),I(2,"i",6),K(3,"cancel"),B()()}if(2&i){var n=s.$implicit,l=Q();U("selectable",!1)("removable",!0!==l.field.gui.rdonly),G(1),Le(" ",n," ")}}var ele=function(){var i=function(){function s(){R(this,s),this.changed=new ye,this.separatorKeysCodes=[13,188]}return L(s,[{key:"ngOnInit",value:function(){void 0===this.field.values&&(this.field.values=new Array,this.field.value=void 0),this.field.values.forEach(function(n,l,c){""===n.trim()&&c.splice(l,1)})}},{key:"add",value:function(n){var l=n.input,c=n.value;(c||"").trim()&&this.field.values.push(c.trim()),l&&(l.value="")}},{key:"remove",value:function(n){var l=this.field.values.indexOf(n);l>=0&&this.field.values.splice(l,1)}}]),s}();return i.\u0275fac=function(r){return new(r||i)},i.\u0275cmp=ke({type:i,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(r,n){if(1&r&&(I(0,"mat-form-field",0)(1,"mat-label"),K(2),B(),I(3,"mat-chip-list",1,2),ne("change",function(){return n.changed.emit(n)}),te(5,Jse,4,3,"mat-chip",3),I(6,"input",4),ne("matChipInputTokenEnd",function(p){return n.add(p)}),B()()()),2&r){var l=Dn(4);G(2),Le(" ",n.field.gui.label," "),G(1),U("selectable",!1)("disabled",!0===n.field.gui.rdonly),G(2),U("ngForOf",n.field.values),G(1),U("placeholder",n.field.gui.tooltip)("matChipInputFor",l)("matChipInputSeparatorKeyCodes",n.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},directives:[or,Tr,XJ,ir,zH,YJ,ZJ],styles:["*.mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]}),i}(),tle=(Ht(8691),function(){var i=L(function s(){R(this,s)});return i.\u0275fac=function(r){return new(r||i)},i.\u0275mod=Mt({type:i,bootstrap:[Tse]}),i.\u0275inj=St({providers:[Ot,rn,{provide:kg,useClass:Ase}],imports:[[ic,QU,Hoe,DW,mse,bu.forRoot({echarts:function(){return Promise.resolve().then(Ht.bind(Ht,8045))}})]]}),i}());(function mp(i,s,r){var n=i.\u0275cmp;n.directiveDefs=function(){return s.map(id)},n.pipeDefs=function(){return r.map(lM)}})(ab,[rc,kP,kf,Ese,Ose,Fse,Ise,Rse,Lse,Vse,Gse,Wse,Yse,$se,Qse,ele],[]),function D8(){false}(),EU().bootstrapModule(tle).catch(function(i){return console.log(i)})},8045:function(Ul,$r,Ht){"use strict";Ht.r($r),Ht.d($r,{Axis:function(){return Fa},ChartView:function(){return jn},ComponentModel:function(){return sn},ComponentView:function(){return Ze},List:function(){return ga},Model:function(){return Kn},PRIORITY:function(){return k2},SeriesModel:function(){return fr},color:function(){return Ye},connect:function(){return l8},dataTool:function(){return L2},dependencies:function(){return wr},disConnect:function(){return ZD},disconnect:function(){return u8},dispose:function(){return O2},env:function(){return tn},extendChartView:function(){return _n},extendComponentModel:function(){return J8},extendComponentView:function(){return Hi},extendSeriesModel:function(){return jt},format:function(){return an},getCoordinateSystemDimensions:function(){return JZ},getInstanceByDom:function(){return RC},getInstanceById:function(){return I2},getMap:function(){return JD},graphic:function(){return Qn},helper:function(){return _t},init:function(){return s8},innerDrawElementOnCanvas:function(){return xC},matrix:function(){return Po},number:function(){return se},parseGeoJSON:function(){return uL},parseGeoJson:function(){return uL},registerAction:function(){return uu},registerCoordinateSystem:function(){return f8},registerLayout:function(){return d8},registerLoading:function(){return kv},registerLocale:function(){return zd},registerMap:function(){return FC},registerPostInit:function(){return c8},registerPostUpdate:function(){return $D},registerPreprocessor:function(){return XD},registerProcessor:function(){return KD},registerTheme:function(){return LC},registerTransform:function(){return Dv},registerUpdateLifecycle:function(){return QD},registerVisual:function(){return ph},setCanvasCreator:function(){return eX},setPlatformAPI:function(){return Pg},throttle:function(){return vC},time:function(){return Er},use:function(){return Nt},util:function(){return wu},vector:function(){return ca},version:function(){return EC},zrUtil:function(){return qe},zrender:function(){return L}});var qe={};Ht.r(qe),Ht.d(qe,{HashMap:function(){return tM},RADIAN_TO_DEGREE:function(){return Bg},assert:function(){return fa},bind:function(){return ze},clone:function(){return ot},concatArray:function(){return Ng},createCanvas:function(){return on},createHashMap:function(){return $e},createObject:function(){return ji},curry:function(){return wt},defaults:function(){return rt},disableUserSelect:function(){return nM},each:function(){return q},eqNaN:function(){return Rg},extend:function(){return ve},filter:function(){return Un},find:function(){return XH},guid:function(){return $S},hasOwn:function(){return je},indexOf:function(){return Ct},inherits:function(){return pp},isArray:function(){return Ce},isArrayLike:function(){return Ca},isBuiltInObject:function(){return JS},isDom:function(){return vp},isFunction:function(){return et},isGradientObject:function(){return Sb},isImagePatternObject:function(){return HP},isNumber:function(){return Cn},isObject:function(){return Ke},isPrimitive:function(){return nd},isRegExp:function(){return KH},isString:function(){return Ne},isStringSafe:function(){return QS},isTypedArray:function(){return Oo},keys:function(){return Zt},logError:function(){return Xe},map:function(){return Me},merge:function(){return Dt},mergeAll:function(){return gr},mixin:function(){return Ir},noop:function(){return Jr},normalizeCssArray:function(){return Lg},reduce:function(){return Ys},retrieve:function(){return Ui},retrieve2:function(){return Ft},retrieve3:function(){return Su},setAsPrimitive:function(){return Fg},slice:function(){return gp},trim:function(){return Io}});var ca={};Ht.r(ca),Ht.d(ca,{add:function(){return Hg},applyTransform:function(){return Yi},clone:function(){return ss},copy:function(){return wa},create:function(){return gn},dist:function(){return Oc},distSquare:function(){return qs},distance:function(){return Tb},distanceSquare:function(){return JH},div:function(){return st},dot:function(){return rM},len:function(){return zg},lenSquare:function(){return ln},length:function(){return En},lengthSquare:function(){return WP},lerp:function(){return Ab},max:function(){return da},min:function(){return Ic},mul:function(){return sZ},negate:function(){return Ro},normalize:function(){return ei},scale:function(){return $t},scaleAndAdd:function(){return Zn},set:function(){return ur},sub:function(){return Wl}});var Ye={};Ht.r(Ye),Ht.d(Ye,{fastLerp:function(){return zb},fastMapToColor:function(){return _Z},lerp:function(){return rO},lift:function(){return cM},lum:function(){return Gb},mapToColor:function(){return yZ},modifyAlpha:function(){return Sp},modifyHSL:function(){return Zg},parse:function(){return mo},random:function(){return bZ},stringify:function(){return No},toHex:function(){return mZ}});var Po={};Ht.r(Po),Ht.d(Po,{clone:function(){return Da},copy:function(){return nm},create:function(){return ka},identity:function(){return Tp},invert:function(){return ud},mul:function(){return Js},rotate:function(){return el},scale:function(){return $b},translate:function(){return vs}});var L={};Ht.r(L),Ht.d(L,{dispose:function(){return yO},disposeAll:function(){return bO},getInstance:function(){return Ep},init:function(){return PM},registerPainter:function(){return cn},version:function(){return OM}});var R={};Ht.r(R),Ht.d(R,{Arc:function(){return t_},BezierCurve:function(){return Vi},BoundingRect:function(){return zt},Circle:function(){return ks},CompoundPath:function(){return Qe},Ellipse:function(){return $m},Group:function(){return ct},Image:function(){return Ki},IncrementalDisplayable:function(){return _D},Line:function(){return Nr},LinearGradient:function(){return ju},OrientedBoundingRect:function(){return sC},Path:function(){return Xt},Point:function(){return Et},Polygon:function(){return Ia},Polyline:function(){return Ra},RadialGradient:function(){return vv},Rect:function(){return fn},Ring:function(){return e_},Sector:function(){return Ja},Text:function(){return dn},applyTransform:function(){return Cl},clipPointsByRect:function(){return dC},clipRectByRect:function(){return GR},createIcon:function(){return gv},extendPath:function(){return HR},extendShape:function(){return VR},getShapeClass:function(){return uC},getTransform:function(){return df},groupTransition:function(){return l_},initProps:function(){return nr},isElementRemoved:function(){return Bd},lineLineIntersect:function(){return mG},linePolygonIntersect:function(){return hC},makeImage:function(){return cC},makePath:function(){return ff},mergePath:function(){return Mo},registerShape:function(){return Ds},removeElement:function(){return ru},removeElementWithFadeOut:function(){return Xp},resizePath:function(){return CD},setTooltipConfig:function(){return ih},subPixelOptimize:function(){return fC},subPixelOptimizeLine:function(){return a_},subPixelOptimizeRect:function(){return o_},transformDirection:function(){return s_},traverseElements:function(){return hf},updateProps:function(){return Ut}});var _t={};Ht.r(_t),Ht.d(_t,{createDimensions:function(){return b8},createList:function(){return aL},createScale:function(){return z_},createSymbol:function(){return Dr},createTextStyle:function(){return U8},dataStack:function(){return z8},enableHoverEmphasis:function(){return Yc},getECData:function(){return vt},getLayoutRect:function(){return oi},mixinAxisModelCommonMethods:function(){return G8}});var se={};Ht.r(se),Ht.d(se,{MAX_SAFE_INTEGER:function(){return SO},asc:function(){return Zi},getPercentWithPrecision:function(){return wO},getPixelPrecision:function(){return Ae},getPrecision:function(){return Xl},getPrecisionSafe:function(){return CO},isNumeric:function(){return RM},isRadianAroundZero:function(){return n0},linearMap:function(){return wn},nice:function(){return hi},numericToNumber:function(){return Iu},parseDate:function(){return ms},quantile:function(){return Ip},quantity:function(){return Op},quantityExponent:function(){return IM},reformIntervals:function(){return bd},remRadian:function(){return MO},round:function(){return Mr}});var Er={};Ht.r(Er),Ht.d(Er,{format:function(){return Nm},parse:function(){return ms}});var Qn={};Ht.r(Qn),Ht.d(Qn,{Arc:function(){return t_},BezierCurve:function(){return Vi},BoundingRect:function(){return zt},Circle:function(){return ks},CompoundPath:function(){return Qe},Ellipse:function(){return $m},Group:function(){return ct},Image:function(){return Ki},IncrementalDisplayable:function(){return _D},Line:function(){return Nr},LinearGradient:function(){return ju},Polygon:function(){return Ia},Polyline:function(){return Ra},RadialGradient:function(){return vv},Rect:function(){return fn},Ring:function(){return e_},Sector:function(){return Ja},Text:function(){return dn},clipPointsByRect:function(){return dC},clipRectByRect:function(){return GR},createIcon:function(){return gv},extendPath:function(){return HR},extendShape:function(){return VR},getShapeClass:function(){return uC},getTransform:function(){return df},initProps:function(){return nr},makeImage:function(){return cC},makePath:function(){return ff},mergePath:function(){return Mo},registerShape:function(){return Ds},resizePath:function(){return CD},updateProps:function(){return Ut}});var an={};Ht.r(an),Ht.d(an,{addCommas:function(){return Tk},capitalFirst:function(){return w4},encodeHTML:function(){return Ka},formatTime:function(){return AI},formatTpl:function(){return Ek},getTextRect:function(){return KC},getTooltipMarker:function(){return C4},normalizeCssArray:function(){return jd},toCamelCase:function(){return z0},truncateText:function(){return l0}});var wu={};Ht.r(wu),Ht.d(wu,{bind:function(){return ze},clone:function(){return ot},curry:function(){return wt},defaults:function(){return rt},each:function(){return q},extend:function(){return ve},filter:function(){return Un},indexOf:function(){return Ct},inherits:function(){return pp},isArray:function(){return Ce},isFunction:function(){return et},isObject:function(){return Ke},isString:function(){return Ne},map:function(){return Me},merge:function(){return Dt},reduce:function(){return Ys}});var ue=function(a,t){return(ue=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,o){e.__proto__=o}||function(e,o){for(var u in o)Object.prototype.hasOwnProperty.call(o,u)&&(e[u]=o[u])})(a,t)};function de(a,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function e(){this.constructor=a}ue(a,t),a.prototype=null===t?Object.create(t):(e.prototype=t.prototype,new e)}var Ii=function a(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},Gr=new function a(){this.browser=new Ii,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(Gr.wxa=!0,Gr.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?Gr.worker=!0:"undefined"==typeof navigator?(Gr.node=!0,Gr.svgSupported=!0):function Tc(a,t){var e=t.browser,o=a.match(/Firefox\/([\d.]+)/),u=a.match(/MSIE\s([\d.]+)/)||a.match(/Trident\/.+?rv:(([\d.]+))/),f=a.match(/Edge?\/([\d.]+)/),d=/micromessenger/i.test(a);o&&(e.firefox=!0,e.version=o[1]),u&&(e.ie=!0,e.version=u[1]),f&&(e.edge=!0,e.version=f[1],e.newEdge=+f[1].split(".")[0]>18),d&&(e.weChat=!0),t.svgSupported="undefined"!=typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported="undefined"!=typeof document;var h=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in h||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in h)&&!("OTransition"in h),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}(navigator.userAgent,Gr);var a,t,tn=Gr,bb="sans-serif",ho="12px "+bb,ZS=function qH(a){var t={};if("undefined"==typeof JSON)return t;for(var e=0;e=0)h=d*e.length;else for(var v=0;v>1)%2;d.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",o[v]+":0",u[g]+":0",o[1-v]+":auto",u[1-g]+":auto",""].join("!important;"),a.appendChild(d),e.push(d)}return e}(t,f),h=function Ue(a,t,e){for(var o=e?"invTrans":"trans",u=t[o],f=t.srcCoords,d=[],h=[],v=!0,g=0;g<4;g++){var m=a[g].getBoundingClientRect(),y=2*g,b=m.left,C=m.top;d.push(b,C),v=v&&f&&b===f[y]&&C===f[y+1],h.push(a[g].offsetLeft,a[g].offsetTop)}return v&&u?u:(t.srcCoords=d,t[o]=e?ez(h,d):ez(d,h))}(d,f,u);if(h)return h(a,e,o),!0}return!1}function tz(a){return"CANVAS"===a.nodeName.toUpperCase()}var St=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ug=[],qP=tn.browser.firefox&&+tn.browser.version.split(".")[0]<39;function aM(a,t,e,o){return e=e||{},o?ZP(a,t,e):qP&&null!=t.layerX&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):null!=t.offsetX?(e.zrX=t.offsetX,e.zrY=t.offsetY):ZP(a,t,e),e}function ZP(a,t,e){if(tn.domSupported&&a.getBoundingClientRect){var o=t.clientX,u=t.clientY;if(tz(a)){var f=a.getBoundingClientRect();return e.zrX=o-f.left,void(e.zrY=u-f.top)}if(YP(Ug,a,o,u))return e.zrX=Ug[0],void(e.zrY=Ug[1])}e.zrX=e.zrY=0}function Eb(a){return a||window.event}function Wa(a,t,e){if(null!=(t=Eb(t)).zrX)return t;var o=t.type;if(o&&o.indexOf("touch")>=0){var d="touchend"!==o?t.targetTouches[0]:t.changedTouches[0];d&&aM(a,d,t,e)}else{aM(a,t,t,e);var f=function oM(a){var t=a.wheelDelta;if(t)return t;var e=a.deltaX,o=a.deltaY;return null==e||null==o?t:3*Math.abs(0!==o?o:e)*(o>0?-1:o<0?1:e>0?-1:1)}(t);t.zrDelta=f?f/120:-(t.detail||0)/3}var h=t.button;return null==t.which&&void 0!==h&&St.test(t.type)&&(t.which=1&h?1:2&h?3:4&h?2:0),t}function Pb(a,t,e,o){a.addEventListener(t,e,o)}function nz(a,t,e,o){a.removeEventListener(t,e,o)}var It=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function Ob(a){return 2===a.which||3===a.which}var rz=function(){function a(){this._track=[]}return a.prototype.recognize=function(t,e,o){return this._doTrack(t,e,o),this._recognize(t)},a.prototype.clear=function(){return this._track.length=0,this},a.prototype._doTrack=function(t,e,o){var u=t.touches;if(u){for(var f={points:[],touches:[],target:e,event:t},d=0,h=u.length;d1&&u&&u.length>1){var d=Mu(u)/Mu(f);!isFinite(d)&&(d=1),e.pinchScale=d;var h=function XP(a){return[(a[0][0]+a[1][0])/2,(a[0][1]+a[1][1])/2]}(u);return e.pinchX=h[0],e.pinchY=h[1],{type:"pinch",target:t[0].target,event:e}}}}};function pZ(){It(this.event)}var vZ=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.handler=null,e}return lr(t,a),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(ls),Ya=function a(t,e){this.x=t,this.y=e},iz=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],$P=function(a){function t(e,o,u,f){var d=a.call(this)||this;return d._hovered=new Ya(0,0),d.storage=e,d.painter=o,d.painterRoot=f,u=u||new vZ,d.proxy=null,d.setHandlerProxy(u),d._draggingMgr=new uZ(d),d}return lr(t,a),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(q(iz,function(o){e.on&&e.on(o,this[o],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var o=e.zrX,u=e.zrY,f=QP(this,o,u),d=this._hovered,h=d.target;h&&!h.__zr&&(h=(d=this.findHover(d.x,d.y)).target);var v=this._hovered=f?new Ya(o,u):this.findHover(o,u),g=v.target,m=this.proxy;m.setCursor&&m.setCursor(g?g.cursor:"default"),h&&g!==h&&this.dispatchToElement(d,"mouseout",e),this.dispatchToElement(v,"mousemove",e),g&&g!==h&&this.dispatchToElement(v,"mouseover",e)},t.prototype.mouseout=function(e){var o=e.zrEventControl;"only_globalout"!==o&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==o&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new Ya(0,0)},t.prototype.dispatch=function(e,o){var u=this[e];u&&u.call(this,o)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var o=this.proxy;o.setCursor&&o.setCursor(e)},t.prototype.dispatchToElement=function(e,o,u){var f=(e=e||{}).target;if(!f||!f.silent){for(var d="on"+o,h=function Zs(a,t,e){return{type:a,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:pZ}}(o,e,u);f&&(f[d]&&(h.cancelBubble=!!f[d].call(f,h)),f.trigger(o,h),f=f.__hostTarget?f.__hostTarget:f.parent,!h.cancelBubble););h.cancelBubble||(this.trigger(o,h),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(v){"function"==typeof v[d]&&v[d].call(v,h),v.trigger&&v.trigger(o,h)}))}},t.prototype.findHover=function(e,o,u){for(var f=this.storage.getDisplayList(),d=new Ya(e,o),h=f.length-1;h>=0;h--){var v=void 0;if(f[h]!==u&&!f[h].ignore&&(v=az(f[h],e,o))&&(!d.topTarget&&(d.topTarget=f[h]),"silent"!==v)){d.target=f[h];break}}return d},t.prototype.processGesture=function(e,o){this._gestureMgr||(this._gestureMgr=new rz);var u=this._gestureMgr;"start"===o&&u.clear();var f=u.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if("end"===o&&u.clear(),f){var d=f.type;e.gestureEvent=d;var h=new Ya;h.target=f.target,this.dispatchToElement(h,d,f.event)}},t}(ls);function az(a,t,e){if(a[a.rectHover?"rectContain":"contain"](t,e)){for(var o=a,u=void 0,f=!1;o;){if(o.ignoreClip&&(f=!0),!f){var d=o.getClipPath();if(d&&!d.contain(t,e))return!1;o.silent&&(u=!0)}o=o.__hostTarget||o.parent}return!u||"silent"}return!1}function QP(a,t,e){var o=a.painter;return t<0||t>o.getWidth()||e<0||e>o.getHeight()}q(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(a){$P.prototype[a]=function(t){var f,d,e=t.zrX,o=t.zrY,u=QP(this,e,o);if(("mouseup"!==a||!u)&&(d=(f=this.findHover(e,o)).target),"mousedown"===a)this._downEl=d,this._downPoint=[t.zrX,t.zrY],this._upEl=d;else if("mouseup"===a)this._upEl=d;else if("click"===a){if(this._downEl!==this._upEl||!this._downPoint||Oc(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(f,a,t)}});var cr=$P;function jg(a,t,e,o){var u=t+1;if(u===e)return 1;if(o(a[u++],a[t])<0){for(;u=0;)u++;return u-t}function Rb(a,t,e,o,u){for(o===t&&o++;o>>1])<0?h=v:d=v+1;var g=o-d;switch(g){case 3:a[d+3]=a[d+2];case 2:a[d+2]=a[d+1];case 1:a[d+1]=a[d];break;default:for(;g>0;)a[d+g]=a[d+g-1],g--}a[d]=f}}function Lb(a,t,e,o,u,f){var d=0,h=0,v=1;if(f(a,t[e+u])>0){for(h=o-u;v0;)d=v,(v=1+(v<<1))<=0&&(v=h);v>h&&(v=h),d+=u,v+=u}else{for(h=u+1;vh&&(v=h);var g=d;d=u-v,v=u-g}for(d++;d>>1);f(a,t[e+m])>0?d=m+1:v=m}return v}function Xs(a,t,e,o,u,f){var d=0,h=0,v=1;if(f(a,t[e+u])<0){for(h=u+1;vh&&(v=h);var g=d;d=u-v,v=u-g}else{for(h=o-u;v=0;)d=v,(v=1+(v<<1))<=0&&(v=h);v>h&&(v=h),d+=u,v+=u}for(d++;d>>1);f(a,t[e+m])<0?v=m:d=m+1}return v}function Fb(a,t,e,o){e||(e=0),o||(o=a.length);var u=o-e;if(!(u<2)){var f=0;if(u<32)return void Rb(a,e,o,e+(f=jg(a,e,o,t)),t);var d=function Wg(a,t){var d,h,e=7,v=0,g=[];function C(D){var x=d[D],T=h[D],E=d[D+1],P=h[D+1];h[D]=T+P,D===v-3&&(d[D+1]=d[D+2],h[D+1]=h[D+2]),v--;var V=Xs(a[E],a,x,T,0,t);x+=V,0!=(T-=V)&&0!==(P=Lb(a[x+T-1],a,E,P,P-1,t))&&(T<=P?function S(D,x,T,E){var P=0;for(P=0;P=7||W>=7);if(X)break;j<0&&(j=0),j+=2}if((e=j)<1&&(e=1),1===x){for(P=0;P=0;P--)a[Z+P]=a[j+P];if(0===x){ee=!0;break}}if(a[H--]=g[N--],1==--E){ee=!0;break}if(0!=(J=E-Lb(a[V],g,0,E,E-1,t))){for(E-=J,Z=1+(H-=J),j=1+(N-=J),P=0;P=7||J>=7);if(ee)break;W<0&&(W=0),W+=2}if((e=W)<1&&(e=1),1===E){for(Z=1+(H-=x),j=1+(V-=x),P=x-1;P>=0;P--)a[Z+P]=a[j+P];a[H]=g[N]}else{if(0===E)throw new Error;for(j=H-(E-1),P=0;P=0;P--)a[Z+P]=a[j+P];a[H]=g[N]}else for(j=H-(E-1),P=0;P1;){var D=v-2;if(D>=1&&h[D-1]<=h[D]+h[D+1]||D>=2&&h[D-2]<=h[D]+h[D-1])h[D-1]h[D+1])break;C(D)}},forceMergeRuns:function b(){for(;v>1;){var D=v-2;D>0&&h[D-1]=32;)t|=1&a,a>>=1;return a+t}(u);do{if((f=jg(a,e,o,t))h&&(v=h),Rb(a,e,e+v,e+f,t),f=v}d.pushRun(e,f),d.mergeRuns(),u-=f,e+=f}while(0!==u);d.forceMergeRuns()}}var lM=!1;function Nb(){lM||(lM=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Mt(a,t){return a.zlevel===t.zlevel?a.z===t.z?a.z2-t.z2:a.z-t.z:a.zlevel-t.zlevel}var be,sz=function(){function a(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Mt}return a.prototype.traverse=function(t,e){for(var o=0;o0&&(m.__clipPaths=[]),isNaN(m.z)&&(Nb(),m.z=0),isNaN(m.z2)&&(Nb(),m.z2=0),isNaN(m.zlevel)&&(Nb(),m.zlevel=0),this._displayList[this._displayListLen++]=m}var y=t.getDecalElement&&t.getDecalElement();y&&this._updateAndAddDisplayable(y,e,o);var b=t.getTextGuideLine();b&&this._updateAndAddDisplayable(b,e,o);var C=t.getTextContent();C&&this._updateAndAddDisplayable(C,e,o)}},a.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},a.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,o=t.length;e=0&&this._roots.splice(u,1)}},a.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},a.prototype.getRoots=function(){return this._roots},a.prototype.dispose=function(){this._displayList=null,this._roots=null},a}(),JP=sz;be=tn.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(a){return setTimeout(a,16)};var qi=be,Li={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,o=.1;return 0===t?0:1===t?1:(!o||o<1?(o=1,e=.1):e=.4*Math.asin(1/o)/(2*Math.PI),-o*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,o=.1;return 0===t?0:1===t?1:(!o||o<1?(o=1,e=.1):e=.4*Math.asin(1/o)/(2*Math.PI),o*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,o=.1;return 0===t?0:1===t?1:(!o||o<1?(o=1,e=.1):e=.4*Math.asin(1/o)/(2*Math.PI),(t*=2)<1?o*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:o*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-Li.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*Li.bounceIn(2*t):.5*Li.bounceOut(2*t-1)+.5}},Du=Li,Yl=Math.pow,Fi=Math.sqrt,_p=Fi(3),od=1/3,Sa=gn(),_r=gn(),yp=gn();function Ni(a){return a>-1e-8&&a<1e-8}function at(a){return a>1e-8||a<-1e-8}function xt(a,t,e,o,u){var f=1-u;return f*f*(f*a+3*u*t)+u*u*(u*o+3*f*e)}function Lr(a,t,e,o,u){var f=1-u;return 3*(((t-a)*f+2*(e-t)*u)*f+(o-e)*u*u)}function Ma(a,t,e,o,u,f){var d=o+3*(t-e)-a,h=3*(e-2*t+a),v=3*(t-a),g=a-u,m=h*h-3*d*v,y=h*v-9*d*g,b=v*v-3*h*g,C=0;if(Ni(m)&&Ni(y))Ni(h)?f[0]=0:(S=-v/h)>=0&&S<=1&&(f[C++]=S);else{var k=y*y-4*m*b;if(Ni(k)){var D=y/m,x=-D/2;(S=-h/d+D)>=0&&S<=1&&(f[C++]=S),x>=0&&x<=1&&(f[C++]=x)}else if(k>0){var T=Fi(k),E=m*h+1.5*d*(-y+T),P=m*h+1.5*d*(-y-T);(S=(-h-((E=E<0?-Yl(-E,od):Yl(E,od))+(P=P<0?-Yl(-P,od):Yl(P,od))))/(3*d))>=0&&S<=1&&(f[C++]=S)}else{var V=(2*m*h-3*d*y)/(2*Fi(m*m*m)),N=Math.acos(V)/3,H=Fi(m),j=Math.cos(N),S=(-h-2*H*j)/(3*d),Z=(x=(-h+H*(j+_p*Math.sin(N)))/(3*d),(-h+H*(j-_p*Math.sin(N)))/(3*d));S>=0&&S<=1&&(f[C++]=S),x>=0&&x<=1&&(f[C++]=x),Z>=0&&Z<=1&&(f[C++]=Z)}}return C}function Rc(a,t,e,o,u){var f=6*e-12*t+6*a,d=9*t+3*o-3*a-9*e,h=3*t-3*a,v=0;if(Ni(d))at(f)&&(g=-h/f)>=0&&g<=1&&(u[v++]=g);else{var m=f*f-4*d*h;if(Ni(m))u[0]=-f/(2*d);else if(m>0){var g,y=Fi(m),b=(-f-y)/(2*d);(g=(-f+y)/(2*d))>=0&&g<=1&&(u[v++]=g),b>=0&&b<=1&&(u[v++]=b)}}return v}function Fr(a,t,e,o,u,f){var d=(t-a)*u+a,h=(e-t)*u+t,v=(o-e)*u+e,g=(h-d)*u+d,m=(v-h)*u+h,y=(m-g)*u+g;f[0]=a,f[1]=d,f[2]=g,f[3]=y,f[4]=y,f[5]=m,f[6]=v,f[7]=o}function Lc(a,t,e,o,u,f,d,h,v,g,m){var y,S,k,D,x,b=.005,C=1/0;Sa[0]=v,Sa[1]=g;for(var T=0;T<1;T+=.05)_r[0]=xt(a,e,u,d,T),_r[1]=xt(t,o,f,h,T),(D=qs(Sa,_r))=0&&D=0&&C=1?1:Ma(0,o,f,1,v,h)&&xt(0,u,d,1,h[0])}}}var Cp=function(){function a(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Jr,this.ondestroy=t.ondestroy||Jr,this.onrestart=t.onrestart||Jr,t.easing&&this.setEasing(t.easing)}return a.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var o=this._life,u=t-this._startTime-this._pausedTime,f=u/o;f<0&&(f=0),f=Math.min(f,1);var d=this.easingFunc,h=d?d(f):f;if(this.onframe(h),1===f){if(!this.loop)return!0;this._startTime=t-u%o,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},a.prototype.pause=function(){this._paused=!0},a.prototype.resume=function(){this._paused=!1},a.prototype.setEasing=function(t){this.easing=t,this.easingFunc=et(t)?t:Du[t]||sd(t)},a}(),Ks=Cp,yr=function a(t){this.value=t},lz=function(){function a(){this._len=0}return a.prototype.insert=function(t){var e=new yr(t);return this.insertEntry(e),e},a.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++},a.prototype.remove=function(t){var e=t.prev,o=t.next;e?e.next=o:this.head=o,o?o.prev=e:this.tail=e,t.next=t.prev=null,this._len--},a.prototype.len=function(){return this._len},a.prototype.clear=function(){this.head=this.tail=null,this._len=0},a}(),uz=function(){function a(t){this._list=new lz,this._maxSize=10,this._map={},this._maxSize=t}return a.prototype.put=function(t,e){var o=this._list,u=this._map,f=null;if(null==u[t]){var d=o.len(),h=this._lastRemovedEntry;if(d>=this._maxSize&&d>0){var v=o.head;o.remove(v),delete u[v.key],f=v.value,this._lastRemovedEntry=v}h?h.value=e:h=new yr(e),h.key=t,o.insertEntry(h),u[t]=h}return f},a.prototype.get=function(t){var e=this._map[t],o=this._list;if(null!=e)return e!==o.tail&&(o.remove(e),o.insertEntry(e)),e.value},a.prototype.clear=function(){this._list.clear(),this._map={}},a.prototype.len=function(){return this._list.len()},a}(),go=uz,us={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 Lo(a){return(a=Math.round(a))<0?0:a>255?255:a}function Nc(a){return a<0?0:a>1?1:a}function Fo(a){var t=a;return t.length&&"%"===t.charAt(t.length-1)?Lo(parseFloat(t)/100*255):Lo(parseInt(t,10))}function wp(a){var t=a;return t.length&&"%"===t.charAt(t.length-1)?Nc(parseFloat(t)/100):Nc(parseFloat(t))}function eO(a,t,e){return e<0?e+=1:e>1&&(e-=1),6*e<1?a+(t-a)*e*6:2*e<1?t:3*e<2?a+(t-a)*(2/3-e)*6:a}function Bc(a,t,e){return a+(t-a)*e}function cs(a,t,e,o,u){return a[0]=t,a[1]=e,a[2]=o,a[3]=u,a}function tO(a,t){return a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3],a}var cz=new go(20),uM=null;function qg(a,t){uM&&tO(uM,t),uM=cz.put(a,uM||t.slice())}function mo(a,t){if(a){t=t||[];var e=cz.get(a);if(e)return tO(t,e);var o=(a+="").replace(/ /g,"").toLowerCase();if(o in us)return tO(t,us[o]),qg(a,t),t;var f,u=o.length;if("#"===o.charAt(0))return 4===u||5===u?(f=parseInt(o.slice(1,4),16))>=0&&f<=4095?(cs(t,(3840&f)>>4|(3840&f)>>8,240&f|(240&f)>>4,15&f|(15&f)<<4,5===u?parseInt(o.slice(4),16)/15:1),qg(a,t),t):void cs(t,0,0,0,1):7===u||9===u?(f=parseInt(o.slice(1,7),16))>=0&&f<=16777215?(cs(t,(16711680&f)>>16,(65280&f)>>8,255&f,9===u?parseInt(o.slice(7),16)/255:1),qg(a,t),t):void cs(t,0,0,0,1):void 0;var d=o.indexOf("("),h=o.indexOf(")");if(-1!==d&&h+1===u){var v=o.substr(0,d),g=o.substr(d+1,h-(d+1)).split(","),m=1;switch(v){case"rgba":if(4!==g.length)return 3===g.length?cs(t,+g[0],+g[1],+g[2],1):cs(t,0,0,0,1);m=wp(g.pop());case"rgb":return 3!==g.length?void cs(t,0,0,0,1):(cs(t,Fo(g[0]),Fo(g[1]),Fo(g[2]),m),qg(a,t),t);case"hsla":return 4!==g.length?void cs(t,0,0,0,1):(g[3]=wp(g[3]),nO(g,t),qg(a,t),t);case"hsl":return 3!==g.length?void cs(t,0,0,0,1):(nO(g,t),qg(a,t),t);default:return}}cs(t,0,0,0,1)}}function nO(a,t){var e=(parseFloat(a[0])%360+360)%360/360,o=wp(a[1]),u=wp(a[2]),f=u<=.5?u*(o+1):u+o-u*o,d=2*u-f;return cs(t=t||[],Lo(255*eO(d,f,e+1/3)),Lo(255*eO(d,f,e)),Lo(255*eO(d,f,e-1/3)),1),4===a.length&&(t[3]=a[3]),t}function cM(a,t){var e=mo(a);if(e){for(var o=0;o<3;o++)e[o]=t<0?e[o]*(1-t)|0:(255-e[o])*t+e[o]|0,e[o]>255?e[o]=255:e[o]<0&&(e[o]=0);return No(e,4===e.length?"rgba":"rgb")}}function mZ(a){var t=mo(a);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function zb(a,t,e){if(t&&t.length&&a>=0&&a<=1){e=e||[];var o=a*(t.length-1),u=Math.floor(o),f=Math.ceil(o),d=t[u],h=t[f],v=o-u;return e[0]=Lo(Bc(d[0],h[0],v)),e[1]=Lo(Bc(d[1],h[1],v)),e[2]=Lo(Bc(d[2],h[2],v)),e[3]=Nc(Bc(d[3],h[3],v)),e}}var _Z=zb;function rO(a,t,e){if(t&&t.length&&a>=0&&a<=1){var o=a*(t.length-1),u=Math.floor(o),f=Math.ceil(o),d=mo(t[u]),h=mo(t[f]),v=o-u,g=No([Lo(Bc(d[0],h[0],v)),Lo(Bc(d[1],h[1],v)),Lo(Bc(d[2],h[2],v)),Nc(Bc(d[3],h[3],v))],"rgba");return e?{color:g,leftIndex:u,rightIndex:f,value:o}:g}}var yZ=rO;function Zg(a,t,e,o){var u=mo(a);if(a)return u=function gZ(a){if(a){var v,g,t=a[0]/255,e=a[1]/255,o=a[2]/255,u=Math.min(t,e,o),f=Math.max(t,e,o),d=f-u,h=(f+u)/2;if(0===d)v=0,g=0;else{g=h<.5?d/(f+u):d/(2-f-u);var m=((f-t)/6+d/2)/d,y=((f-e)/6+d/2)/d,b=((f-o)/6+d/2)/d;t===f?v=b-y:e===f?v=1/3+m-b:o===f&&(v=2/3+y-m),v<0&&(v+=1),v>1&&(v-=1)}var C=[360*v,g,h];return null!=a[3]&&C.push(a[3]),C}}(u),null!=t&&(u[0]=function Hb(a){return(a=Math.round(a))<0?0:a>360?360:a}(t)),null!=e&&(u[1]=wp(e)),null!=o&&(u[2]=wp(o)),No(nO(u),"rgba")}function Sp(a,t){var e=mo(a);if(e&&null!=t)return e[3]=Nc(t),No(e,"rgba")}function No(a,t){if(a&&a.length){var e=a[0]+","+a[1]+","+a[2];return("rgba"===t||"hsva"===t||"hsla"===t)&&(e+=","+a[3]),t+"("+e+")"}}function Gb(a,t){var e=mo(a);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function bZ(){return No([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var Ub=Math.round;function fs(a){var t;if(a&&"transparent"!==a){if("string"==typeof a&&a.indexOf("rgba")>-1){var e=mo(a);e&&(a="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}}else a="none";return{color:a,opacity:null==t?1:t}}function xn(a){return a<1e-4&&a>-1e-4}function Xg(a){return Ub(1e3*a)/1e3}function fM(a){return Ub(1e4*a)/1e4}var oO={left:"start",right:"end",center:"middle",middle:"middle"};function jb(a){return a&&!!a.image}function sO(a){return"linear"===a.type}function lO(a){return"radial"===a.type}function Wb(a){return"url(#"+a+")"}function Yb(a){var t=a.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function pz(a){var t=a.x||0,e=a.y||0,o=(a.rotation||0)*Bg,u=Ft(a.scaleX,1),f=Ft(a.scaleY,1),d=a.skewX||0,h=a.skewY||0,v=[];return(t||e)&&v.push("translate("+t+"px,"+e+"px)"),o&&v.push("rotate("+o+")"),(1!==u||1!==f)&&v.push("scale("+u+","+f+")"),(d||h)&&v.push("skew("+Ub(d*Bg)+"deg, "+Ub(h*Bg)+"deg)"),v.join(" ")}var ni=tn.hasGlobalWindow&&et(window.btoa)?function(a){return window.btoa(unescape(a))}:"undefined"!=typeof Buffer?function(a){return Buffer.from(a).toString("base64")}:function(a){return null},qb=Array.prototype.slice;function xu(a,t,e){return(t-a)*e+a}function ri(a,t,e,o){for(var u=t.length,f=0;fo?t:a,f=Math.min(e,o),d=u[f-1]||{color:[0,0,0,0],offset:0},h=f;hd)o.length=d;else for(var v=f;v=1},a.prototype.getAdditiveTrack=function(){return this._additiveTrack},a.prototype.addKeyframe=function(t,e,o){this._needsSort=!0;var u=this.keyframes,f=u.length,d=!1,h=6,v=e;if(Ca(e)){var g=function Bo(a){return Ca(a&&a[0])?2:1}(e);h=g,(1===g&&!Cn(e[0])||2===g&&!Cn(e[0][0]))&&(d=!0)}else if(Cn(e)&&!Rg(e))h=0;else if(Ne(e))if(isNaN(+e)){var m=mo(e);m&&(v=m,h=3)}else h=0;else if(Sb(e)){var y=ve({},v);y.colorStops=Me(e.colorStops,function(C){return{offset:C.offset,color:mo(C.color)}}),sO(e)?h=4:lO(e)&&(h=5),v=y}0===f?this.valType=h:(h!==this.valType||6===h)&&(d=!0),this.discrete=this.discrete||d;var b={time:t,value:v,rawValue:e,percent:0};return o&&(b.easing=o,b.easingFunc=et(o)?o:Du[o]||sd(o)),u.push(b),b},a.prototype.prepare=function(t,e){var o=this.keyframes;this._needsSort&&o.sort(function(k,D){return k.time-D.time});for(var u=this.valType,f=o.length,d=o[f-1],h=this.discrete,v=mM(u),g=gM(u),m=0;m=0&&!(d[m].percent<=e);m--);m=b(m,h-2)}else{for(m=y;me);m++);m=b(m-1,h-2)}S=d[m+1],C=d[m]}if(C&&S){this._lastFr=m,this._lastFrP=e;var D=S.percent-C.percent,x=0===D?1:b((e-C.percent)/D,1);S.easingFunc&&(x=S.easingFunc(x));var T=o?this._additiveValue:g?Jg:t[v];if((mM(f)||g)&&!T&&(T=this._additiveValue=[]),this.discrete)t[v]=x<1?C.rawValue:S.rawValue;else if(mM(f))1===f?ri(T,C[u],S[u],x):function vz(a,t,e,o){for(var u=t.length,f=u&&t[0].length,d=0;d0&&v.addKeyframe(0,ld(g),u),this._trackKeys.push(h)}v.addKeyframe(t,ld(e[h]),u)}return this._maxTime=Math.max(this._maxTime,t),this},a.prototype.pause=function(){this._clip.pause(),this._paused=!0},a.prototype.resume=function(){this._clip.resume(),this._paused=!1},a.prototype.isPaused=function(){return!!this._paused},a.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},a.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,o=0;o0)){this._started=1;for(var e=this,o=[],u=this._maxTime||0,f=0;f1){var h=d.pop();f.addKeyframe(h.time,t[u]),f.prepare(this._maxTime,f.getAdditiveTrack())}}}},a}(),Xb=_z;function kp(){return(new Date).getTime()}var yz=function(a){function t(e){var o=a.call(this)||this;return o._running=!1,o._time=0,o._pausedTime=0,o._pauseStart=0,o._paused=!1,o.stage=(e=e||{}).stage||{},o}return lr(t,a),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var o=e.getClip();o&&this.addClip(o)},t.prototype.removeClip=function(e){if(e.animation){var o=e.prev,u=e.next;o?o.next=u:this._head=u,u?u.prev=o:this._tail=o,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var o=e.getClip();o&&this.removeClip(o),e.animation=null},t.prototype.update=function(e){for(var o=kp()-this._pausedTime,u=o-this._time,f=this._head;f;){var d=f.next;f.step(o,u)&&(f.ondestroy(),this.removeClip(f)),f=d}this._time=o,e||(this.trigger("frame",u),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0,qi(function o(){e._running&&(qi(o),!e._paused&&e.update())})},t.prototype.start=function(){this._running||(this._time=kp(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=kp(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=kp()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var o=e.next;e.prev=e.next=e.animation=null,e=o}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,o){o=o||{},this.start();var u=new Xb(e,o.loop);return this.addAnimator(u),u},t}(ls),Oe=yz,he=tn.domSupported,di=function(){var a=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1};return{mouse:a,touch:["touchstart","touchend","touchmove"],pointer:Me(a,function(u){var f=u.replace("mouse","pointer");return e.hasOwnProperty(f)?f:u})}}(),_M_mouse=["mousemove","mouseup"],_M_pointer=["pointermove","pointerup"],Dp=!1;function ps(a){var t=a.pointerType;return"pen"===t||"touch"===t}function em(a){a&&(a.zrByTouch=!0)}function cO(a,t){for(var e=t,o=!1;e&&9!==e.nodeType&&!(o=e.domBelongToZr||e!==t&&e===a.painterRoot);)e=e.parentNode;return o}var SZ=function a(t,e){this.stopPropagation=Jr,this.stopImmediatePropagation=Jr,this.preventDefault=Jr,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},_o={mousedown:function(t){t=Wa(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Wa(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=Wa(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){cO(this,(t=Wa(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Dp=!0,t=Wa(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Dp||(t=Wa(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){em(t=Wa(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),_o.mousemove.call(this,t),_o.mousedown.call(this,t)},touchmove:function(t){em(t=Wa(this.dom,t)),this.handler.processGesture(t,"change"),_o.mousemove.call(this,t)},touchend:function(t){em(t=Wa(this.dom,t)),this.handler.processGesture(t,"end"),_o.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&_o.click.call(this,t)},pointerdown:function(t){_o.mousedown.call(this,t)},pointermove:function(t){ps(t)||_o.mousemove.call(this,t)},pointerup:function(t){_o.mouseup.call(this,t)},pointerout:function(t){ps(t)||_o.mouseout.call(this,t)}};q(["click","dblclick","contextmenu"],function(a){_o[a]=function(t){t=Wa(this.dom,t),this.trigger(a,t)}});var ha={pointermove:function(t){ps(t)||ha.mousemove.call(this,t)},pointerup:function(t){ha.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 Eu(a,t,e,o){a.mounted[t]=e,a.listenerOpts[t]=o,Pb(a.domTarget,t,e,o)}function Qs(a){var t=a.mounted;for(var e in t)t.hasOwnProperty(e)&&nz(a.domTarget,e,t[e],a.listenerOpts[e]);a.mounted={}}var dO=function a(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e},hO=function(a){function t(e,o){var u=a.call(this)||this;return u.__pointerCapturing=!1,u.dom=e,u.painterRoot=o,u._localHandlerScope=new dO(e,_o),he&&(u._globalHandlerScope=new dO(document,ha)),function Au(a,t){var e=t.domHandlers;tn.pointerEventsSupported?q(di.pointer,function(o){Eu(t,o,function(u){e[o].call(a,u)})}):(tn.touchEventsSupported&&q(di.touch,function(o){Eu(t,o,function(u){e[o].call(a,u),function yM(a){a.touching=!0,null!=a.touchTimer&&(clearTimeout(a.touchTimer),a.touchTimer=null),a.touchTimer=setTimeout(function(){a.touching=!1,a.touchTimer=null},700)}(t)})}),q(di.mouse,function(o){Eu(t,o,function(u){u=Eb(u),t.touching||e[o].call(a,u)})}))}(u,u._localHandlerScope),u}return lr(t,a),t.prototype.dispose=function(){Qs(this._localHandlerScope),he&&Qs(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,he&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var o=this._globalHandlerScope;e?function fO(a,t){function e(o){Eu(t,o,function u(f){f=Eb(f),cO(a,f.target)||(f=function wZ(a,t){return Wa(a.dom,new SZ(a,t),!0)}(a,f),t.domHandlers[o].call(a,f))},{capture:!0})}tn.pointerEventsSupported?q(_M_pointer,e):tn.touchEventsSupported||q(_M_mouse,e)}(this,o):Qs(o)}},t}(ls),bz=hO,pO=1;tn.hasGlobalWindow&&(pO=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var xp=pO,tm="#333",bM="#ccc";function ka(){return[1,0,0,1,0,0]}function Tp(a){return a[0]=1,a[1]=0,a[2]=0,a[3]=1,a[4]=0,a[5]=0,a}function nm(a,t){return a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3],a[4]=t[4],a[5]=t[5],a}function Js(a,t,e){var u=t[1]*e[0]+t[3]*e[1],f=t[0]*e[2]+t[2]*e[3],d=t[1]*e[2]+t[3]*e[3],h=t[0]*e[4]+t[2]*e[5]+t[4],v=t[1]*e[4]+t[3]*e[5]+t[5];return a[0]=t[0]*e[0]+t[2]*e[1],a[1]=u,a[2]=f,a[3]=d,a[4]=h,a[5]=v,a}function vs(a,t,e){return a[0]=t[0],a[1]=t[1],a[2]=t[2],a[3]=t[3],a[4]=t[4]+e[0],a[5]=t[5]+e[1],a}function el(a,t,e){var o=t[0],u=t[2],f=t[4],d=t[1],h=t[3],v=t[5],g=Math.sin(e),m=Math.cos(e);return a[0]=o*m+d*g,a[1]=-o*g+d*m,a[2]=u*m+h*g,a[3]=-u*g+m*h,a[4]=m*f+g*v,a[5]=m*v-g*f,a}function $b(a,t,e){var o=e[0],u=e[1];return a[0]=t[0]*o,a[1]=t[1]*u,a[2]=t[2]*o,a[3]=t[3]*u,a[4]=t[4]*o,a[5]=t[5]*u,a}function ud(a,t){var e=t[0],o=t[2],u=t[4],f=t[1],d=t[3],h=t[5],v=e*d-f*o;return v?(a[0]=d*(v=1/v),a[1]=-f*v,a[2]=-o*v,a[3]=e*v,a[4]=(o*h-d*u)*v,a[5]=(f*u-e*h)*v,a):null}function Da(a){var t=[1,0,0,1,0,0];return nm(t,a),t}var Pu=Tp;function Bi(a){return a>5e-5||a<-5e-5}var cd=[],Zl=[],CM=[1,0,0,1,0,0],wM=Math.abs,Cz=function(){function a(){}return a.prototype.getLocalTransform=function(t){return a.getLocalTransform(this,t)},a.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},a.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},a.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},a.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},a.prototype.needLocalTransform=function(){return Bi(this.rotation)||Bi(this.x)||Bi(this.y)||Bi(this.scaleX-1)||Bi(this.scaleY-1)||Bi(this.skewX)||Bi(this.skewY)},a.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),o=this.transform;e||t?(o=o||[1,0,0,1,0,0],e?this.getLocalTransform(o):Pu(o),t&&(e?Js(o,t,o):nm(o,t)),this.transform=o,this._resolveGlobalScaleRatio(o)):o&&Pu(o)},a.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(cd);var o=cd[0]<0?-1:1,u=cd[1]<0?-1:1,f=((cd[0]-o)*e+o)/cd[0]||0,d=((cd[1]-u)*e+u)/cd[1]||0;t[0]*=f,t[1]*=f,t[2]*=d,t[3]*=d}this.invTransform=this.invTransform||[1,0,0,1,0,0],ud(this.invTransform,t)},a.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},a.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],o=t[2]*t[2]+t[3]*t[3],u=Math.atan2(t[1],t[0]),f=Math.PI/2+u-Math.atan2(t[3],t[2]);o=Math.sqrt(o)*Math.cos(f),e=Math.sqrt(e),this.skewX=f,this.skewY=0,this.rotation=-u,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=o,this.originX=0,this.originY=0}},a.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(Js(Zl,t.invTransform,e),e=Zl);var o=this.originX,u=this.originY;(o||u)&&(CM[4]=o,CM[5]=u,Js(Zl,e,CM),Zl[4]-=o,Zl[5]-=u,e=Zl),this.setLocalTransform(e)}},a.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)},a.prototype.transformCoordToLocal=function(t,e){var o=[t,e],u=this.invTransform;return u&&Yi(o,o,u),o},a.prototype.transformCoordToGlobal=function(t,e){var o=[t,e],u=this.transform;return u&&Yi(o,o,u),o},a.prototype.getLineScale=function(){var t=this.transform;return t&&wM(t[0]-1)>1e-10&&wM(t[3]-1)>1e-10?Math.sqrt(wM(t[0]*t[3]-t[2]*t[1])):1},a.prototype.copyTransform=function(t){rm(this,t)},a.getLocalTransform=function(t,e){e=e||[];var o=t.originX||0,u=t.originY||0,f=t.scaleX,d=t.scaleY,h=t.anchorX,v=t.anchorY,g=t.rotation||0,m=t.x,y=t.y,b=t.skewX?Math.tan(t.skewX):0,C=t.skewY?Math.tan(-t.skewY):0;if(o||u||h||v){var S=o+h,k=u+v;e[4]=-S*f-b*k*d,e[5]=-k*d-C*S*f}else e[4]=e[5]=0;return e[0]=f,e[3]=d,e[1]=C*f,e[2]=b*d,g&&el(e,e,g),e[4]+=o+m,e[5]+=u+y,e},a.initDefaultProps=function(){var t=a.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),a}(),Vo=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function rm(a,t){for(var e=0;eS&&(S=E,Et.set(im,kS&&(S=P,Et.set(im,0,x=o.x&&t<=o.x+o.width&&e>=o.y&&e<=o.y+o.height},a.prototype.clone=function(){return new a(this.x,this.y,this.width,this.height)},a.prototype.copy=function(t){a.copy(this,t)},a.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},a.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},a.prototype.isZero=function(){return 0===this.width||0===this.height},a.create=function(t){return new a(t.x,t.y,t.width,t.height)},a.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},a.applyTransform=function(t,e,o){if(o){if(o[1]<1e-5&&o[1]>-1e-5&&o[2]<1e-5&&o[2]>-1e-5){var u=o[0],f=o[3],h=o[5];return t.x=e.x*u+o[4],t.y=e.y*f+h,t.width=e.width*u,t.height=e.height*f,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}nl.x=dd.x=e.x,nl.y=rl.y=e.y,fd.x=rl.x=e.x+e.width,fd.y=dd.y=e.y+e.height,nl.transform(o),rl.transform(o),fd.transform(o),dd.transform(o),t.x=Qb(nl.x,fd.x,dd.x,rl.x),t.y=Qb(nl.y,fd.y,dd.y,rl.y);var v=tl(nl.x,fd.x,dd.x,rl.x),g=tl(nl.y,fd.y,dd.y,rl.y);t.width=v-t.x,t.height=g-t.y}else t!==e&&a.copy(t,e)},a}(),zt=wz,Sz={};function xa(a,t){var e=Sz[t=t||ho];e||(e=Sz[t]=new go(500));var o=e.get(a);return null==o&&(o=Ws.measureText(a,t).width,e.put(a,o)),o}function MM(a,t,e,o){var u=xa(a,t),f=am(t),d=Vc(0,u,e),h=vd(0,f,o);return new zt(d,h,u,f)}function pd(a,t,e,o){var u=((a||"")+"").split("\n");if(1===u.length)return MM(u[0],t,e,o);for(var d=new zt(0,0,0,0),h=0;h=0?parseFloat(a)/100*t:parseFloat(a):a}function Ou(a,t,e){var o=t.position||"inside",u=null!=t.distance?t.distance:5,f=e.height,d=e.width,h=f/2,v=e.x,g=e.y,m="left",y="top";if(o instanceof Array)v+=il(o[0],e.width),g+=il(o[1],e.height),m=null,y=null;else switch(o){case"left":v-=u,g+=h,m="right",y="middle";break;case"right":v+=u+d,g+=h,y="middle";break;case"top":v+=d/2,g-=u,m="center",y="bottom";break;case"bottom":v+=d/2,g+=f+u,m="center";break;case"inside":v+=d/2,g+=h,m="center",y="middle";break;case"insideLeft":v+=u,g+=h,y="middle";break;case"insideRight":v+=d-u,g+=h,m="right",y="middle";break;case"insideTop":v+=d/2,g+=u,m="center";break;case"insideBottom":v+=d/2,g+=f-u,m="center",y="bottom";break;case"insideTopLeft":v+=u,g+=u;break;case"insideTopRight":v+=d-u,g+=u,m="right";break;case"insideBottomLeft":v+=u,g+=f-u,y="bottom";break;case"insideBottomRight":v+=d-u,g+=f-u,m="right",y="bottom"}return(a=a||{}).x=v,a.y=g,a.align=m,a.verticalAlign=y,a}var sm="__zr_normal__",Ap=Vo.concat(["ignore"]),Mz=Ys(Vo,function(a,t){return a[t]=!0,a},{ignore:!1}),gd={},mO=new zt(0,0,0,0),kM=function(){function a(t){this.id=$S(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return a.prototype._init=function(t){this.attr(t)},a.prototype.drift=function(t,e,o){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var u=this.transform;u||(u=this.transform=[1,0,0,1,0,0]),u[4]+=t,u[5]+=e,this.decomposeTransform(),this.markRedraw()},a.prototype.beforeUpdate=function(){},a.prototype.afterUpdate=function(){},a.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},a.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var o=this.textConfig,u=o.local,f=e.innerTransformable,d=void 0,h=void 0,v=!1;f.parent=u?this:null;var g=!1;if(f.copyTransform(e),null!=o.position){var m=mO;m.copy(o.layoutRect?o.layoutRect:this.getBoundingRect()),u||m.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(gd,o,m):Ou(gd,o,m),f.x=gd.x,f.y=gd.y,d=gd.align,h=gd.verticalAlign;var y=o.origin;if(y&&null!=o.rotation){var b=void 0,C=void 0;"center"===y?(b=.5*m.width,C=.5*m.height):(b=il(y[0],m.width),C=il(y[1],m.height)),g=!0,f.originX=-f.x+b+(u?0:m.x),f.originY=-f.y+C+(u?0:m.y)}}null!=o.rotation&&(f.rotation=o.rotation);var S=o.offset;S&&(f.x+=S[0],f.y+=S[1],g||(f.originX=-S[0],f.originY=-S[1]));var k=null==o.inside?"string"==typeof o.position&&o.position.indexOf("inside")>=0:o.inside,D=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),x=void 0,T=void 0,E=void 0;k&&this.canBeInsideText()?(T=o.insideStroke,(null==(x=o.insideFill)||"auto"===x)&&(x=this.getInsideTextFill()),(null==T||"auto"===T)&&(T=this.getInsideTextStroke(x),E=!0)):(T=o.outsideStroke,(null==(x=o.outsideFill)||"auto"===x)&&(x=this.getOutsideFill()),(null==T||"auto"===T)&&(T=this.getOutsideStroke(x),E=!0)),((x=x||"#000")!==D.fill||T!==D.stroke||E!==D.autoStroke||d!==D.align||h!==D.verticalAlign)&&(v=!0,D.fill=x,D.stroke=T,D.autoStroke=E,D.align=d,D.verticalAlign=h,e.setDefaultTextStyle(D)),e.__dirty|=1,v&&e.dirtyStyle(!0)}},a.prototype.canBeInsideText=function(){return!0},a.prototype.getInsideTextFill=function(){return"#fff"},a.prototype.getInsideTextStroke=function(t){return"#000"},a.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?bM:tm},a.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),o="string"==typeof e&&mo(e);o||(o=[255,255,255,1]);for(var u=o[3],f=this.__zr.isDarkMode(),d=0;d<3;d++)o[d]=o[d]*u+(f?0:255)*(1-u);return o[3]=1,No(o,"rgba")},a.prototype.traverse=function(t,e){},a.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||{},ve(this.extra,e)):this[t]=e},a.prototype.hide=function(){this.ignore=!0,this.markRedraw()},a.prototype.show=function(){this.ignore=!1,this.markRedraw()},a.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(Ke(t))for(var u=Zt(t),f=0;f0},a.prototype.getState=function(t){return this.states[t]},a.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},a.prototype.clearStates=function(t){this.useState(sm,!1,t)},a.prototype.useState=function(t,e,o,u){var f=t===sm;if(this.hasState()||!f){var h=this.currentStates,v=this.stateTransition;if(!(Ct(h,t)>=0)||!e&&1!==h.length){var g;if(this.stateProxy&&!f&&(g=this.stateProxy(t)),g||(g=this.states&&this.states[t]),!g&&!f)return void Xe("State "+t+" not exists.");f||this.saveCurrentToNormalState(g);var m=!!(g&&g.hoverLayer||u);m&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,g,this._normalState,e,!o&&!this.__inHover&&v&&v.duration>0,v);var y=this._textContent,b=this._textGuide;return y&&y.useState(t,e,o,m),b&&b.useState(t,e,o,m),f?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!m&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2),g}}},a.prototype.useStates=function(t,e,o){if(t.length){var u=[],f=this.currentStates,d=t.length,h=d===f.length;if(h)for(var v=0;v0,S);var k=this._textContent,D=this._textGuide;k&&k.useStates(t,e,b),D&&D.useStates(t,e,b),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!b&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=-2)}else this.clearStates()},a.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var o=this.currentStates.slice();o.splice(e,1),this.useStates(o)}},a.prototype.replaceState=function(t,e,o){var u=this.currentStates.slice(),f=Ct(u,t),d=Ct(u,e)>=0;f>=0?d?u.splice(f,1):u[f]=e:o&&!d&&u.push(e),this.useStates(u)},a.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},a.prototype._mergeStates=function(t){for(var o,e={},u=0;u=0&&f.splice(d,1)}),this.animators.push(t),o&&o.animation.addAnimator(t),o&&o.wakeUp()},a.prototype.updateDuringAnimation=function(t){this.markRedraw()},a.prototype.stopAnimation=function(t,e){for(var o=this.animators,u=o.length,f=[],d=0;d0&&e.during&&f[0].during(function(S,k){e.during(k)});for(var b=0;b0||u.force&&!d.length){var V,j=void 0,Z=void 0,W=void 0;if(h)for(Z={},b&&(j={}),P=0;P=0&&(u.splice(f,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,o){var u=Ct(this._children,e);return u>=0&&this.replaceAt(o,u),this},t.prototype.replaceAt=function(e,o){var u=this._children,f=u[o];if(e&&e!==this&&e.parent!==this&&e!==f){u[o]=e,f.parent=null;var d=this.__zr;d&&f.removeSelfFromZr(d),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var o=this.__zr;o&&o!==e.__zr&&e.addSelfToZr(o),o&&o.refresh()},t.prototype.remove=function(e){var o=this.__zr,u=this._children,f=Ct(u,e);return f<0||(u.splice(f,1),e.parent=null,o&&e.removeSelfFromZr(o),o&&o.refresh()),this},t.prototype.removeAll=function(){for(var e=this._children,o=this.__zr,u=0;u0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},a.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},a.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},a.prototype.refreshHover=function(){this._needsRefreshHover=!0},a.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},a.prototype.resize=function(t){this.painter.resize((t=t||{}).width,t.height),this.handler.resize()},a.prototype.clearAnimation=function(){this.animation.clear()},a.prototype.getWidth=function(){return this.painter.getWidth()},a.prototype.getHeight=function(){return this.painter.getHeight()},a.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},a.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},a.prototype.on=function(t,e,o){return this.handler.on(t,e,o),this},a.prototype.off=function(t,e){this.handler.off(t,e)},a.prototype.trigger=function(t,e){this.handler.trigger(t,e)},a.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e0){if(a<=u)return d;if(a>=f)return h}else{if(a>=u)return d;if(a<=f)return h}else{if(a===u)return d;if(a===f)return h}return(a-u)/v*g+d}function Ie(a,t){switch(a){case"center":case"middle":a="50%";break;case"left":case"top":a="0%";break;case"right":case"bottom":a="100%"}return Ne(a)?function Pp(a){return a.replace(/^\s+|\s+$/g,"")}(a).match(/%$/)?parseFloat(a)/100*t:parseFloat(a):null==a?NaN:+a}function Mr(a,t,e){return null==t&&(t=10),t=Math.min(Math.max(0,t),20),a=(+a).toFixed(t),e?a:+a}function Zi(a){return a.sort(function(t,e){return t-e}),a}function Xl(a){if(a=+a,isNaN(a))return 0;if(a>1e-14)for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(a*t)/t===a)return e;return CO(a)}function CO(a){var t=a.toString().toLowerCase(),e=t.indexOf("e"),o=e>0?+t.slice(e+1):0,u=e>0?e:t.length,f=t.indexOf(".");return Math.max(0,(f<0?0:u-1-f)-o)}function Ae(a,t){var e=Math.log,o=Math.LN10,u=Math.floor(e(a[1]-a[0])/o),f=Math.round(e(Math.abs(t[1]-t[0]))/o),d=Math.min(Math.max(-u+f,0),20);return isFinite(d)?d:20}function wO(a,t,e){if(!a[t])return 0;var o=Ys(a,function(S,k){return S+(isNaN(k)?0:k)},0);if(0===o)return 0;for(var u=Math.pow(10,e),f=Me(a,function(S){return(isNaN(S)?0:S)/o*u*100}),d=100*u,h=Me(f,function(S){return Math.floor(S)}),v=Ys(h,function(S,k){return S+k},0),g=Me(f,function(S,k){return S-h[k]});vm&&(m=g[b],y=b);++h[y],g[y]=0,++v}return h[t]/u}function MZ(a,t){var e=Math.max(Xl(a),Xl(t)),o=a+t;return e>20?o:Mr(o,e)}var SO=9007199254740991;function MO(a){var t=2*Math.PI;return(a%t+t)%t}function n0(a){return a>-1e-4&&a<1e-4}var kZ=/^(?:(\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 ms(a){if(a instanceof Date)return a;if(Ne(a)){var t=kZ.exec(a);if(!t)return new Date(NaN);if(t[8]){var e=+t[4]||0;return"Z"!==t[8].toUpperCase()&&(e-=+t[8].slice(0,3)),new Date(Date.UTC(+t[1],+(t[2]||1)-1,+t[3]||1,e,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0))}return new Date(+t[1],+(t[2]||1)-1,+t[3]||1,+t[4]||0,+(t[5]||0),+t[6]||0,t[7]?+t[7].substring(0,3):0)}return null==a?new Date(NaN):new Date(Math.round(a))}function Op(a){return Math.pow(10,IM(a))}function IM(a){if(0===a)return 0;var t=Math.floor(Math.log(a)/Math.LN10);return a/Math.pow(10,t)>=10&&t++,t}function hi(a,t){var e=IM(a),o=Math.pow(10,e),u=a/o;return a=(t?u<1.5?1:u<2.5?2:u<4?3:u<7?5:10:u<1?1:u<2?2:u<3?3:u<5?5:10)*o,e>=-20?+a.toFixed(e<0?-e:0):a}function Ip(a,t){var e=(a.length-1)*t+1,o=Math.floor(e),u=+a[o-1],f=e-o;return f?u+f*(a[o]-u):u}function bd(a){a.sort(function(v,g){return h(v,g,0)?-1:1});for(var t=-1/0,e=1,o=0;o=0||f&&Ct(f,v)<0)){var g=o.getShallow(v,t);null!=g&&(d[a[h][0]]=g)}}return d}}var xZ=ol([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),RO=function(){function a(){}return a.prototype.getAreaStyle=function(t,e){return xZ(this,t,e)},a}(),UM=new go(50);function TZ(a){if("string"==typeof a){var t=UM.get(a);return t&&t.image}return a}function jM(a,t,e,o,u){if(a){if("string"==typeof a){if(t&&t.__zrImageSrc===a||!e)return t;var f=UM.get(a),d={hostEl:e,cb:o,cbPayload:u};if(f)!s0(t=f.image)&&f.pending.push(d);else{var h=Ws.loadImage(a,LO,LO);h.__zrImageSrc=a,UM.put(a,h.__cachedImgObj={image:h,pending:[d]})}return t}return a}return t}function LO(){var a=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=d;v++)h-=d;var g=xa(e,t);return g>h&&(e="",g=0),h=a-g,u.ellipsis=e,u.ellipsisWidth=g,u.contentWidth=h,u.containerWidth=a,u}function FO(a,t){var e=t.containerWidth,o=t.font,u=t.contentWidth;if(!e)return"";var f=xa(a,o);if(f<=e)return a;for(var d=0;;d++){if(f<=u||d>=t.maxIterations){a+=t.ellipsis;break}var h=0===d?Fz(a,u,t.ascCharWidth,t.cnCharWidth):f>0?Math.floor(a.length*u/f):0;f=xa(a=a.substr(0,h),o)}return""===a&&(a=t.placeholder),a}function Fz(a,t,e,o){for(var u=0,f=0,d=a.length;f0&&S+o.accumWidth>o.width&&(m=t.split("\n"),g=!0),o.accumWidth=S}else{var k=VO(t,v,o.width,o.breakAll,o.accumWidth);o.accumWidth=k.accumWidth+C,y=k.linesWidths,m=k.lines}}else m=t.split("\n");for(var D=0;D=33&&t<=383}(a)||!!Nz[a]}function VO(a,t,e,o,u){for(var f=[],d=[],h="",v="",g=0,m=0,y=0;ye:u+m+C>e)?m?(h||v)&&(S?(h||(h=v,v="",m=g=0),f.push(h),d.push(m-g),v+=b,h="",m=g+=C):(v&&(h+=v,v="",g=0),f.push(h),d.push(m),h=b,m=C)):S?(f.push(v),d.push(g),v=b,g=C):(f.push(b),d.push(C)):(m+=C,S?(v+=b,g+=C):(v&&(h+=v,v="",g=0),h+=b))}else v&&(h+=v,m+=g),f.push(h),d.push(m),h="",v="",g=0,m=0}return!f.length&&!h&&(h=a,v="",g=0),v&&(h+=v),h&&(f.push(h),d.push(m)),1===f.length&&(m+=u),{accumWidth:m,lines:f,linesWidths:d}}var WM="__zr_style_"+Math.round(10*Math.random()),Td={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ta={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};Td[WM]=!0;var sl=["z","z2","invisible"],HO=["invisible"],Vz=function(a){function t(e){return a.call(this,e)||this}return lr(t,a),t.prototype._init=function(e){for(var o=Zt(e),u=0;u1e-4)return h[0]=a-e,h[1]=t-o,v[0]=a+e,void(v[1]=t+o);if(KM[0]=XM(u)*e+a,KM[1]=ZM(u)*o+t,d0[0]=XM(f)*e+a,d0[1]=ZM(f)*o+t,g(h,KM,d0),m(v,KM,d0),(u%=Ad)<0&&(u+=Ad),(f%=Ad)<0&&(f+=Ad),u>f&&!d?f+=Ad:uu&&(Hc[0]=XM(C)*e+a,Hc[1]=ZM(C)*o+t,g(h,Hc,h),m(v,Hc,v))}var er={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ed=[],Lu=[],ys=[],$l=[],Ql=[],Jl=[],h0=Math.min,QM=Math.max,Pd=Math.cos,Od=Math.sin,Fu=Math.abs,p0=Math.PI,ul=2*p0,v0="undefined"!=typeof Float32Array,Id=[];function JM(a){return Math.round(a/p0*1e8)/1e8%2*p0}function br(a,t){var e=JM(a[0]);e<0&&(e+=ul);var u=a[1];u+=e-a[0],!t&&u-e>=ul?u=e+ul:t&&e-u>=ul?u=e-ul:!t&&e>u?u=e+(ul-JM(e-u)):t&&e0&&(this._ux=Fu(o/xp/t)||0,this._uy=Fu(o/xp/e)||0)},a.prototype.setDPR=function(t){this.dpr=t},a.prototype.setContext=function(t){this._ctx=t},a.prototype.getContext=function(){return this._ctx},a.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},a.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},a.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(er.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},a.prototype.lineTo=function(t,e){var o=Fu(t-this._xi),u=Fu(e-this._yi),f=o>this._ux||u>this._uy;if(this.addData(er.L,t,e),this._ctx&&f&&this._ctx.lineTo(t,e),f)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var d=o*o+u*u;d>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=d)}return this},a.prototype.bezierCurveTo=function(t,e,o,u,f,d){return this._drawPendingPt(),this.addData(er.C,t,e,o,u,f,d),this._ctx&&this._ctx.bezierCurveTo(t,e,o,u,f,d),this._xi=f,this._yi=d,this},a.prototype.quadraticCurveTo=function(t,e,o,u){return this._drawPendingPt(),this.addData(er.Q,t,e,o,u),this._ctx&&this._ctx.quadraticCurveTo(t,e,o,u),this._xi=o,this._yi=u,this},a.prototype.arc=function(t,e,o,u,f,d){return this._drawPendingPt(),Id[0]=u,Id[1]=f,br(Id,d),this.addData(er.A,t,e,o,o,u=Id[0],(f=Id[1])-u,0,d?0:1),this._ctx&&this._ctx.arc(t,e,o,u,f,d),this._xi=Pd(f)*o+t,this._yi=Od(f)*o+e,this},a.prototype.arcTo=function(t,e,o,u,f){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,o,u,f),this},a.prototype.rect=function(t,e,o,u){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,o,u),this.addData(er.R,t,e,o,u),this},a.prototype.closePath=function(){this._drawPendingPt(),this.addData(er.Z);var t=this._ctx,e=this._x0,o=this._y0;return t&&t.closePath(),this._xi=e,this._yi=o,this},a.prototype.fill=function(t){t&&t.fill(),this.toStatic()},a.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},a.prototype.len=function(){return this._len},a.prototype.setData=function(t){var e=t.length;(!this.data||this.data.length!==e)&&v0&&(this.data=new Float32Array(e));for(var o=0;om.length&&(this._expandData(),m=this.data);for(var y=0;y0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},a.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},a.prototype.getBoundingRect=function(){ys[0]=ys[1]=Ql[0]=Ql[1]=Number.MAX_VALUE,$l[0]=$l[1]=Jl[0]=Jl[1]=-Number.MAX_VALUE;var d,t=this.data,e=0,o=0,u=0,f=0;for(d=0;do||Fu(E)>u||b===e-1)&&(k=Math.sqrt(T*T+E*E),f=D,d=x);break;case er.C:var P=t[b++],V=t[b++],x=(D=t[b++],t[b++]),N=t[b++],H=t[b++];k=fi(f,d,P,V,D,x,N,H,10),f=N,d=H;break;case er.Q:k=bp(f,d,P=t[b++],V=t[b++],D=t[b++],x=t[b++],10),f=D,d=x;break;case er.A:var j=t[b++],Z=t[b++],W=t[b++],X=t[b++],J=t[b++],ee=t[b++],re=ee+J;b+=1,b++,S&&(h=Pd(J)*W+j,v=Od(J)*X+Z),k=QM(W,X)*h0(ul,Math.abs(ee)),f=Pd(re)*W+j,d=Od(re)*X+Z;break;case er.R:h=f=t[b++],v=d=t[b++],k=2*t[b++]+2*t[b++];break;case er.Z:var T=h-f;E=v-d,k=Math.sqrt(T*T+E*E),f=h,d=v}k>=0&&(g[y++]=k,m+=k)}return this._pathLen=m,m},a.prototype.rebuildPath=function(t,e){var h,v,g,m,y,b,S,T,P,V,o=this.data,u=this._ux,f=this._uy,d=this._len,C=e<1,D=0,x=0,E=0;if(!C||(this._pathSegLen||this._calculateLength(),S=this._pathSegLen,T=e*this._pathLen))e:for(var N=0;N0&&(t.lineTo(P,V),E=0),H){case er.M:h=g=o[N++],v=m=o[N++],t.moveTo(g,m);break;case er.L:y=o[N++],b=o[N++];var Z=Fu(y-g),W=Fu(b-m);if(Z>u||W>f){if(C){if(D+(X=S[x++])>T){t.lineTo(g*(1-(J=(T-D)/X))+y*J,m*(1-J)+b*J);break e}D+=X}t.lineTo(y,b),g=y,m=b,E=0}else{var ee=Z*Z+W*W;ee>E&&(P=y,V=b,E=ee)}break;case er.C:var re=o[N++],ie=o[N++],ce=o[N++],me=o[N++],pe=o[N++],_e=o[N++];if(C){if(D+(X=S[x++])>T){Fr(g,re,ce,pe,J=(T-D)/X,Ed),Fr(m,ie,me,_e,J,Lu),t.bezierCurveTo(Ed[1],Lu[1],Ed[2],Lu[2],Ed[3],Lu[3]);break e}D+=X}t.bezierCurveTo(re,ie,ce,me,pe,_e),g=pe,m=_e;break;case er.Q:if(re=o[N++],ie=o[N++],ce=o[N++],me=o[N++],C){if(D+(X=S[x++])>T){ql(g,re,ce,J=(T-D)/X,Ed),ql(m,ie,me,J,Lu),t.quadraticCurveTo(Ed[1],Lu[1],Ed[2],Lu[2]);break e}D+=X}t.quadraticCurveTo(re,ie,ce,me),g=ce,m=me;break;case er.A:var Pe=o[N++],Be=o[N++],He=o[N++],nt=o[N++],ht=o[N++],In=o[N++],Bn=o[N++],Tt=!o[N++],pt=He>nt?He:nt,Vt=Fu(He-nt)>.001,Lt=ht+In,Je=!1;if(C&&(D+(X=S[x++])>T&&(Lt=ht+In*(T-D)/X,Je=!0),D+=X),Vt&&t.ellipse?t.ellipse(Pe,Be,He,nt,Bn,ht,Lt,Tt):t.arc(Pe,Be,pt,ht,Lt,Tt),Je)break e;j&&(h=Pd(ht)*He+Pe,v=Od(ht)*nt+Be),g=Pd(Lt)*He+Pe,m=Od(Lt)*nt+Be;break;case er.R:h=g=o[N],v=m=o[N+1],y=o[N++],b=o[N++];var kt=o[N++],sr=o[N++];if(C){if(D+(X=S[x++])>T){var Yt=T-D;t.moveTo(y,b),t.lineTo(y+h0(Yt,kt),b),(Yt-=kt)>0&&t.lineTo(y+kt,b+h0(Yt,sr)),(Yt-=sr)>0&&t.lineTo(y+QM(kt-Yt,0),b+sr),(Yt-=kt)>0&&t.lineTo(y,b+QM(sr-Yt,0));break e}D+=X}t.rect(y,b,kt,sr);break;case er.Z:if(C){var X;if(D+(X=S[x++])>T){var J;t.lineTo(g*(1-(J=(T-D)/X))+h*J,m*(1-J)+v*J);break e}D+=X}t.closePath(),g=h,m=v}}},a.prototype.clone=function(){var t=new a,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},a.CMD=er,a.initDefaultProps=function(){var t=a.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),a}(),eu=Xi;function Qt(a,t,e,o,u,f,d){if(0===u)return!1;var v,h=u;if(d>t+h&&d>o+h||da+h&&f>e+h||ft+y&&m>o+y&&m>f+y&&m>h+y||ma+y&&g>e+y&&g>u+y&&g>d+y||gt+g&&v>o+g&&v>f+g||va+g&&h>e+g&&h>u+g||he||m+gu&&(u+=_m);var b=Math.atan2(v,h);return b<0&&(b+=_m),b>=o&&b<=u||b+_m>=o&&b+_m<=u}function Gc(a,t,e,o,u,f){if(f>t&&f>o||fu?h:0}var Rd=eu.CMD,cl=2*Math.PI,Aa=[-1,-1,-1],Go=[-1,-1];function Ea(){var a=Go[0];Go[0]=Go[1],Go[1]=a}function ym(a,t,e,o,u,f,d,h,v,g){if(g>t&&g>o&&g>f&&g>h||g1&&Ea(),C=xt(t,o,f,h,Go[0]),b>1&&(S=xt(t,o,f,h,Go[1]))),y+=2===b?Dt&&h>o&&h>f||h=0&&g<=1&&(u[v++]=g);else{var m=d*d-4*f*h;if(Ni(m))(g=-d/(2*f))>=0&&g<=1&&(u[v++]=g);else if(m>0){var g,y=Fi(m),b=(-d-y)/(2*f);(g=(-d+y)/(2*f))>=0&&g<=1&&(u[v++]=g),b>=0&&b<=1&&(u[v++]=b)}}return v}(t,o,f,h,Aa);if(0===v)return 0;var g=Yg(t,o,f);if(g>=0&&g<=1){for(var m=0,y=ti(t,o,f,g),b=0;be||h<-e)return 0;var v=Math.sqrt(e*e-h*h);Aa[0]=-v,Aa[1]=v;var g=Math.abs(o-u);if(g<1e-4)return 0;if(g>=cl-1e-4){o=0,u=cl;var m=f?1:-1;return d>=Aa[0]+a&&d<=Aa[1]+a?m:0}if(o>u){var y=o;o=u,u=y}o<0&&(o+=cl,u+=cl);for(var b=0,C=0;C<2;C++){var S=Aa[C];if(S+a>d){var k=Math.atan2(h,S);m=f?1:-1,k<0&&(k=cl+k),(k>=o&&k<=u||k+cl>=o&&k+cl<=u)&&(k>Math.PI/2&&k<1.5*Math.PI&&(m=-m),b+=m)}}return b}function YO(a,t,e,o,u){for(var b,C,f=a.data,d=a.len(),h=0,v=0,g=0,m=0,y=0,S=0;S1&&(e||(h+=Gc(v,g,m,y,o,u))),D&&(m=v=f[S],y=g=f[S+1]),k){case Rd.M:v=m=f[S++],g=y=f[S++];break;case Rd.L:if(e){if(Qt(v,g,f[S],f[S+1],t,o,u))return!0}else h+=Gc(v,g,f[S],f[S+1],o,u)||0;v=f[S++],g=f[S++];break;case Rd.C:if(e){if(UO(v,g,f[S++],f[S++],f[S++],f[S++],f[S],f[S+1],t,o,u))return!0}else h+=ym(v,g,f[S++],f[S++],f[S++],f[S++],f[S],f[S+1],o,u)||0;v=f[S++],g=f[S++];break;case Rd.Q:if(e){if(jO(v,g,f[S++],f[S++],f[S],f[S+1],t,o,u))return!0}else h+=tk(v,g,f[S++],f[S++],f[S],f[S+1],o,u)||0;v=f[S++],g=f[S++];break;case Rd.A:var x=f[S++],T=f[S++],E=f[S++],P=f[S++],V=f[S++],N=f[S++];S+=1;var H=!!(1-f[S++]);b=Math.cos(V)*E+x,C=Math.sin(V)*P+T,D?(m=b,y=C):h+=Gc(v,g,b,C,o,u);var j=(o-x)*P/E+x;if(e){if(Gz(x,T,P,V,V+N,H,t,j,u))return!0}else h+=Uz(x,T,P,V,V+N,H,j,u);v=Math.cos(V+N)*E+x,g=Math.sin(V+N)*P+T;break;case Rd.R:if(m=v=f[S++],y=g=f[S++],b=m+f[S++],C=y+f[S++],e){if(Qt(m,y,b,y,t,o,u)||Qt(b,y,b,C,t,o,u)||Qt(b,C,m,C,t,o,u)||Qt(m,C,m,y,t,o,u))return!0}else h+=Gc(b,y,b,C,o,u),h+=Gc(m,C,m,y,o,u);break;case Rd.Z:if(e){if(Qt(v,g,m,y,t,o,u))return!0}else h+=Gc(v,g,m,y,o,u);v=m,g=y}}return!e&&!function ek(a,t){return Math.abs(a-t)<1e-4}(g,y)&&(h+=Gc(v,g,m,y,o,u)||0),0!==h}var bm=rt({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},Td),Wz={style:rt({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ta.style)},g0=Vo.concat(["invisible","culling","z","z2","zlevel","parent"]),Yz=function(a){function t(e){return a.call(this,e)||this}return lr(t,a),t.prototype.update=function(){var e=this;a.prototype.update.call(this);var o=this.style;if(o.decal){var u=this._decalEl=this._decalEl||new t;u.buildPath===t.prototype.buildPath&&(u.buildPath=function(v){e.buildPath(v,e.shape)}),u.silent=!0;var f=u.style;for(var d in o)f[d]!==o[d]&&(f[d]=o[d]);f.fill=o.fill?o.decal:null,f.decal=null,f.shadowColor=null,o.strokeFirst&&(f.stroke=null);for(var h=0;h.5?tm:o>.2?"#eee":bM}if(e)return bM}return tm},t.prototype.getInsideTextStroke=function(e){var o=this.style.fill;if(Ne(o)){var u=this.__zr;if(!(!u||!u.isDarkMode())==Gb(e,0)<.4)return o}},t.prototype.buildPath=function(e,o,u){},t.prototype.pathUpdated=function(){this.__dirty&=-5},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new eu(!1)},t.prototype.hasStroke=function(){var e=this.style,o=e.stroke;return!(null==o||"none"===o||!(e.lineWidth>0))},t.prototype.hasFill=function(){var o=this.style.fill;return null!=o&&"none"!==o},t.prototype.getBoundingRect=function(){var e=this._rect,o=this.style,u=!e;if(u){var f=!1;this.path||(f=!0,this.createPathProxy());var d=this.path;(f||4&this.__dirty)&&(d.beginPath(),this.buildPath(d,this.shape,!1),this.pathUpdated()),e=d.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var h=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||u){h.copy(e);var v=o.strokeNoScale?this.getLineScale():1,g=o.lineWidth;if(!this.hasFill()){var m=this.strokeContainThreshold;g=Math.max(g,null==m?4:m)}v>1e-10&&(h.width+=g/v,h.height+=g/v,h.x-=g/v/2,h.y-=g/v/2)}return h}return e},t.prototype.contain=function(e,o){var u=this.transformCoordToLocal(e,o),f=this.getBoundingRect(),d=this.style;if(f.contain(e=u[0],o=u[1])){var h=this.path;if(this.hasStroke()){var v=d.lineWidth,g=d.strokeNoScale?this.getLineScale():1;if(g>1e-10&&(this.hasFill()||(v=Math.max(v,this.strokeContainThreshold)),function jz(a,t,e,o){return YO(a,t,!0,e,o)}(h,v/g,e,o)))return!0}if(this.hasFill())return function qO(a,t,e){return YO(a,0,!1,t,e)}(h,e,o)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=4,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,o){"shape"===e?this.setShape(o):a.prototype.attrKV.call(this,e,o)},t.prototype.setShape=function(e,o){var u=this.shape;return u||(u=this.shape={}),"string"==typeof e?u[e]=o:ve(u,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(4&this.__dirty)},t.prototype.createStyle=function(e){return ji(bm,e)},t.prototype._innerSaveToNormal=function(e){a.prototype._innerSaveToNormal.call(this,e);var o=this._normalState;e.shape&&!o.shape&&(o.shape=ve({},this.shape))},t.prototype._applyStateObj=function(e,o,u,f,d,h){a.prototype._applyStateObj.call(this,e,o,u,f,d,h);var g,v=!(o&&f);if(o&&o.shape?d?f?g=o.shape:(g=ve({},u.shape),ve(g,o.shape)):(g=ve({},f?this.shape:u.shape),ve(g,o.shape)):v&&(g=u.shape),g)if(d){this.shape=ve({},this.shape);for(var m={},y=Zt(g),b=0;b0},t.prototype.hasFill=function(){var o=this.style.fill;return null!=o&&"none"!==o},t.prototype.createStyle=function(e){return ji(nk,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var o=e.text;null!=o?o+="":o="";var u=pd(o,e.font,e.textAlign,e.textBaseline);if(u.x+=e.x||0,u.y+=e.y||0,this.hasStroke()){var f=e.lineWidth;u.x-=f/2,u.y-=f/2,u.width+=f,u.height+=f}this._rect=u}return this._rect},t.initDefaultProps=void(t.prototype.dirtyRectTolerance=10),t}(_s);ZO.prototype.type="tspan";var Cm=ZO,rk=rt({x:0,y:0},Td),qz={style:rt({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ta.style)},Vp=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return lr(t,a),t.prototype.createStyle=function(e){return ji(rk,e)},t.prototype._getSize=function(e){var o=this.style,u=o[e];if(null!=u)return u;var f=function Zz(a){return!!(a&&"string"!=typeof a&&a.width&&a.height)}(o.image)?o.image:this.__image;if(!f)return 0;var d="width"===e?"height":"width",h=o[d];return null==h?f[e]:f[e]/f[d]*h},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return qz},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new zt(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t}(_s);Vp.prototype.type="image";var Ki=Vp,Hp=Math.round;function XO(a,t,e){if(t){var o=t.x1,u=t.x2,f=t.y1,d=t.y2;a.x1=o,a.x2=u,a.y1=f,a.y2=d;var h=e&&e.lineWidth;return h&&(Hp(2*o)===Hp(2*u)&&(a.x1=a.x2=Uc(o,h,!0)),Hp(2*f)===Hp(2*d)&&(a.y1=a.y2=Uc(f,h,!0))),a}}function KO(a,t,e){if(t){var o=t.x,u=t.y,f=t.width,d=t.height;a.x=o,a.y=u,a.width=f,a.height=d;var h=e&&e.lineWidth;return h&&(a.x=Uc(o,h,!0),a.y=Uc(u,h,!0),a.width=Math.max(Uc(o+f,h,!1)-a.x,0===f?0:1),a.height=Math.max(Uc(u+d,h,!1)-a.y,0===d?0:1)),a}}function Uc(a,t,e){if(!t)return a;var o=Hp(2*a);return(o+Hp(t))%2==0?o/2:(o+(e?1:-1))/2}var Kz=function a(){this.x=0,this.y=0,this.width=0,this.height=0},$z={},$O=function(a){function t(e){return a.call(this,e)||this}return lr(t,a),t.prototype.getDefaultShape=function(){return new Kz},t.prototype.buildPath=function(e,o){var u,f,d,h;if(this.subPixelOptimize){var v=KO($z,o,this.style);u=v.x,f=v.y,d=v.width,h=v.height,v.r=o.r,o=v}else u=o.x,f=o.y,d=o.width,h=o.height;o.r?function Xz(a,t){var h,v,g,m,y,e=t.x,o=t.y,u=t.width,f=t.height,d=t.r;u<0&&(e+=u,u=-u),f<0&&(o+=f,f=-f),"number"==typeof d?h=v=g=m=d:d instanceof Array?1===d.length?h=v=g=m=d[0]:2===d.length?(h=g=d[0],v=m=d[1]):3===d.length?(h=d[0],v=m=d[1],g=d[2]):(h=d[0],v=d[1],g=d[2],m=d[3]):h=v=g=m=0,h+v>u&&(h*=u/(y=h+v),v*=u/y),g+m>u&&(g*=u/(y=g+m),m*=u/y),v+g>f&&(v*=f/(y=v+g),g*=f/y),h+m>f&&(h*=f/(y=h+m),m*=f/y),a.moveTo(e+h,o),a.lineTo(e+u-v,o),0!==v&&a.arc(e+u-v,o+v,v,-Math.PI/2,0),a.lineTo(e+u,o+f-g),0!==g&&a.arc(e+u-g,o+f-g,g,0,Math.PI/2),a.lineTo(e+m,o+f),0!==m&&a.arc(e+m,o+f-m,m,Math.PI/2,Math.PI),a.lineTo(e,o+h),0!==h&&a.arc(e+h,o+h,h,Math.PI,1.5*Math.PI)}(e,o):e.rect(u,f,d,h)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(Xt);$O.prototype.type="rect";var fn=$O,QO={fill:"#000"},JO={style:rt({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},Ta.style)},eI=function(a){function t(e){var o=a.call(this)||this;return o.type="text",o._children=[],o._defaultStyle=QO,o.attr(e),o}return lr(t,a),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){a.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;eC&&g){var S=Math.floor(C/h);y=y.slice(0,S)}if(a&&f&&null!=m)for(var k=Dd(m,u,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),D=0;D0,J=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),ee=d.calculatedLineHeight,re=0;reh&&f0(e,a.substring(h,g),t,d),f0(e,v[2],t,d,v[1]),h=Np.lastIndex}hu){V>0?(T.tokens=T.tokens.slice(0,V),D(T,P,E),e.lines=e.lines.slice(0,x+1)):e.lines=e.lines.slice(0,x);break e}var J=H.width,ee=null==J||"auto"===J;if("string"==typeof J&&"%"===J.charAt(J.length-1))N.percentWidth=J,m.push(N),N.contentWidth=xa(N.text,W);else{if(ee){var re=H.backgroundColor,ie=re&&re.image;ie&&s0(ie=TZ(ie))&&(N.width=Math.max(N.width,ie.width*X/ie.height))}var ce=S&&null!=o?o-P:null;null!=ce&&ce=0&&"right"===(re=N[ee]).align;)this._placeToken(re,e,j,x,J,"right",E),Z-=re.width,J-=re.width,ee--;for(X+=(f-(X-D)-(T-J)-Z)/2;W<=ee;)this._placeToken(re=N[W],e,j,x,X+re.width/2,"center",E),X+=re.width,W++;x+=j}},t.prototype._placeToken=function(e,o,u,f,d,h,v){var g=o.rich[e.styleName]||{};g.text=e.text;var m=e.verticalAlign,y=f+u/2;"top"===m?y=f+e.height/2:"bottom"===m&&(y=f+u-e.height/2),!e.isLineHolder&&b0(g)&&this._renderBackground(g,o,"right"===h?d-e.width:"center"===h?d-e.width/2:d,y-e.height/2,e.width,e.height);var C=!!g.backgroundColor,S=e.textPadding;S&&(d=ak(d,h,S),y-=e.height/2-S[0]-e.innerHeight/2);var k=this._getOrCreateChild(Cm),D=k.createStyle();k.useStyle(D);var x=this._defaultStyle,T=!1,E=0,P=tI("fill"in g?g.fill:"fill"in o?o.fill:(T=!0,x.fill)),V=y0("stroke"in g?g.stroke:"stroke"in o?o.stroke:C||v||x.autoStroke&&!T?null:(E=2,x.stroke)),N=g.textShadowBlur>0||o.textShadowBlur>0;D.text=e.text,D.x=d,D.y=y,N&&(D.shadowBlur=g.textShadowBlur||o.textShadowBlur||0,D.shadowColor=g.textShadowColor||o.textShadowColor||"transparent",D.shadowOffsetX=g.textShadowOffsetX||o.textShadowOffsetX||0,D.shadowOffsetY=g.textShadowOffsetY||o.textShadowOffsetY||0),D.textAlign=h,D.textBaseline="middle",D.font=e.font||ho,D.opacity=Su(g.opacity,o.opacity,1),ik(D,g),V&&(D.lineWidth=Su(g.lineWidth,o.lineWidth,E),D.lineDash=Ft(g.lineDash,o.lineDash),D.lineDashOffset=o.lineDashOffset||0,D.stroke=V),P&&(D.fill=P);var H=e.contentWidth,j=e.contentHeight;k.setBoundingRect(new zt(Vc(D.x,H,D.textAlign),vd(D.y,j,D.textBaseline),H,j))},t.prototype._renderBackground=function(e,o,u,f,d,h){var k,D,T,v=e.backgroundColor,g=e.borderWidth,m=e.borderColor,y=v&&v.image,b=v&&!y,C=e.borderRadius,S=this;if(b||e.lineHeight||g&&m){(k=this._getOrCreateChild(fn)).useStyle(k.createStyle()),k.style.fill=null;var x=k.shape;x.x=u,x.y=f,x.width=d,x.height=h,x.r=C,k.dirtyShape()}if(b)(T=k.style).fill=v||null,T.fillOpacity=Ft(e.fillOpacity,1);else if(y){(D=this._getOrCreateChild(Ki)).onload=function(){S.dirtyStyle()};var E=D.style;E.image=v.image,E.x=u,E.y=f,E.width=d,E.height=h}g&&m&&((T=k.style).lineWidth=g,T.stroke=m,T.strokeOpacity=Ft(e.strokeOpacity,1),T.lineDash=e.borderDash,T.lineDashOffset=e.borderDashOffset||0,k.strokeContainThreshold=0,k.hasFill()&&k.hasStroke()&&(T.strokeFirst=!0,T.lineWidth*=2));var P=(k||D).style;P.shadowBlur=e.shadowBlur||0,P.shadowColor=e.shadowColor||"transparent",P.shadowOffsetX=e.shadowOffsetX||0,P.shadowOffsetY=e.shadowOffsetY||0,P.opacity=Su(e.opacity,o.opacity,1)},t.makeFont=function(e){var o="";return e4(e)&&(o=[e.fontStyle,e.fontWeight,Jz(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),o&&Io(o)||e.textFont||e.font},t}(_s),zp={left:!0,right:1,center:1},tu={top:1,bottom:1,middle:1},Qz=["fontStyle","fontWeight","fontSize","fontFamily"];function Jz(a){return"string"!=typeof a||-1===a.indexOf("px")&&-1===a.indexOf("rem")&&-1===a.indexOf("em")?isNaN(+a)?"12px":a+"px":a}function ik(a,t){for(var e=0;e=0,f=!1;if(a instanceof Xt){var d=Ld(a),h=u&&d.selectFill||d.normalFill,v=u&&d.selectStroke||d.normalStroke;if(jc(h)||jc(v)){var g=(o=o||{}).style||{};"inherit"===g.fill?(f=!0,o=ve({},o),(g=ve({},g)).fill=h):!jc(g.fill)&&jc(h)?(f=!0,o=ve({},o),(g=ve({},g)).fill=rI(h)):!jc(g.stroke)&&jc(v)&&(f||(o=ve({},o),g=ve({},g)),g.stroke=rI(v)),o.style=g}}if(o&&null==o.z2){f||(o=ve({},o));var m=a.z2EmphasisLift;o.z2=a.z2+(null!=m?m:10)}return o}(this,0,t,e);if("blur"===a)return function D0(a,t,e){var o=Ct(a.currentStates,t)>=0,u=a.style.opacity,f=o?null:function uk(a,t,e,o){for(var u=a.style,f={},d=0;d0){var v={dataIndex:h,seriesIndex:e.seriesIndex};null!=d&&(v.dataType=d),t.push(v)}})}),t}function Yc(a,t,e){Nd(a,!0),nu(a,Nu),vk(a,t,e)}function Yr(a,t,e,o){o?function u4(a){Nd(a,!1)}(a):Yc(a,t,e)}function vk(a,t,e){var o=vt(a);null!=t?(o.focus=t,o.blurScope=e):o.focus&&(o.focus=null)}var gk=["emphasis","blur","select"],c4={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function pa(a,t,e,o){e=e||"itemStyle";for(var u=0;u0){var S={duration:m.duration,delay:m.delay||0,easing:m.easing,done:f,force:!!f||!!d,setToFinal:!g,scope:a,during:d};h?t.animateFrom(e,S):t.animateTo(e,S)}else t.stopAnimation(),!h&&t.attr(e),d&&d(1),f&&f()}function Ut(a,t,e,o,u,f){Am("update",a,t,e,o,u,f)}function nr(a,t,e,o,u,f){Am("enter",a,t,e,o,u,f)}function Bd(a){if(!a.__zr)return!0;for(var t=0;t-1?"ZH":"EN";function zd(a,t){a=a.toUpperCase(),Ck[a]=new Kn(t),Im[a]=t}function Rm(a){return Ck[a]}zd("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:". "}}}}),zd("ZH",{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 Lm=36e5,Wo=24*Lm,wk=365*Wo,Ud={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}"},Qp="{yyyy}-{MM}-{dd}",Sk={year:"{yyyy}",month:"{yyyy}-{MM}",day:Qp,hour:Qp+" "+Ud.hour,minute:Qp+" "+Ud.minute,second:Qp+" "+Ud.second,millisecond:Ud.none},Jp=["year","month","day","hour","minute","second","millisecond"],yI=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Co(a,t){return"0000".substr(0,t-(a+="").length)+a}function Fm(a){switch(a){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return a}}function bI(a){return a===Fm(a)}function Nm(a,t,e,o){var u=ms(a),f=u[Xa(e)](),d=u[ev(e)]()+1,h=Math.floor((d-1)/4)+1,v=u[B0(e)](),g=u["get"+(e?"UTC":"")+"Day"](),m=u[V0(e)](),y=(m-1)%12+1,b=u[Mk(e)](),C=u[Bm(e)](),S=u[kk(e)](),D=(o instanceof Kn?o:Rm(o||_I)||function $p(){return Ck.EN}()).getModel("time"),x=D.get("month"),T=D.get("monthAbbr"),E=D.get("dayOfWeek"),P=D.get("dayOfWeekAbbr");return(t||"").replace(/{yyyy}/g,f+"").replace(/{yy}/g,f%100+"").replace(/{Q}/g,h+"").replace(/{MMMM}/g,x[d-1]).replace(/{MMM}/g,T[d-1]).replace(/{MM}/g,Co(d,2)).replace(/{M}/g,d+"").replace(/{dd}/g,Co(v,2)).replace(/{d}/g,v+"").replace(/{eeee}/g,E[g]).replace(/{ee}/g,P[g]).replace(/{e}/g,g+"").replace(/{HH}/g,Co(m,2)).replace(/{H}/g,m+"").replace(/{hh}/g,Co(y+"",2)).replace(/{h}/g,y+"").replace(/{mm}/g,Co(b,2)).replace(/{m}/g,b+"").replace(/{ss}/g,Co(C,2)).replace(/{s}/g,C+"").replace(/{SSS}/g,Co(S,3)).replace(/{S}/g,S+"")}function SI(a,t){var e=ms(a),o=e[ev(t)]()+1,u=e[B0(t)](),f=e[V0(t)](),d=e[Mk(t)](),h=e[Bm(t)](),g=0===e[kk(t)](),m=g&&0===h,y=m&&0===d,b=y&&0===f,C=b&&1===u;return C&&1===o?"year":C?"month":b?"day":y?"hour":m?"minute":g?"second":"millisecond"}function MI(a,t,e){var o=Cn(a)?ms(a):a;switch(t=t||SI(a,e)){case"year":return o[Xa(e)]();case"half-year":return o[ev(e)]()>=6?1:0;case"quarter":return Math.floor((o[ev(e)]()+1)/4);case"month":return o[ev(e)]();case"day":return o[B0(e)]();case"half-day":return o[V0(e)]()/24;case"hour":return o[V0(e)]();case"minute":return o[Mk(e)]();case"second":return o[Bm(e)]();case"millisecond":return o[kk(e)]()}}function Xa(a){return a?"getUTCFullYear":"getFullYear"}function ev(a){return a?"getUTCMonth":"getMonth"}function B0(a){return a?"getUTCDate":"getDate"}function V0(a){return a?"getUTCHours":"getHours"}function Mk(a){return a?"getUTCMinutes":"getMinutes"}function Bm(a){return a?"getUTCSeconds":"getSeconds"}function kk(a){return a?"getUTCMilliseconds":"getMilliseconds"}function _4(a){return a?"setUTCFullYear":"setFullYear"}function H0(a){return a?"setUTCMonth":"setMonth"}function Dk(a){return a?"setUTCDate":"setDate"}function kI(a){return a?"setUTCHours":"setHours"}function DI(a){return a?"setUTCMinutes":"setMinutes"}function xI(a){return a?"setUTCSeconds":"setSeconds"}function xk(a){return a?"setUTCMilliseconds":"setMilliseconds"}function Tk(a){if(!RM(a))return Ne(a)?a:"-";var t=(a+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function z0(a,t){return a=(a||"").toLowerCase().replace(/-(.)/g,function(e,o){return o.toUpperCase()}),t&&a&&(a=a.charAt(0).toUpperCase()+a.slice(1)),a}var jd=Lg,y4=/([&<>"'])/g,TI={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ka(a){return null==a?"":(a+"").replace(y4,function(t,e){return TI[e]})}function Ak(a,t,e){function u(m){return m&&Io(m)?m:"-"}function f(m){return!(null==m||isNaN(m)||!isFinite(m))}var d="time"===t,h=a instanceof Date;if(d||h){var v=d?ms(a):a;if(!isNaN(+v))return Nm(v,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",e);if(h)return"-"}if("ordinal"===t)return QS(a)?u(a):Cn(a)&&f(a)?a+"":"-";var g=Iu(a);return f(g)?Tk(g):QS(a)?u(a):"boolean"==typeof a?a+"":"-"}var hl=["a","b","c","d","e","f","g"],Vm=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Ek(a,t,e){Ce(t)||(t=[t]);var o=t.length;if(!o)return"";for(var u=t[0].$vars||[],f=0;f':'':{renderMode:f,content:"{"+(e.markerId||"markerX")+"|} ",style:"subItem"===u?{width:4,height:4,borderRadius:2,backgroundColor:o}:{width:10,height:10,borderRadius:5,backgroundColor:o}}:""}function AI(a,t,e){("week"===a||"month"===a||"quarter"===a||"half-year"===a||"year"===a)&&(a="MM-dd\nyyyy");var o=ms(t),u=e?"getUTC":"get",f=o[u+"FullYear"](),d=o[u+"Month"]()+1,h=o[u+"Date"](),v=o[u+"Hours"](),g=o[u+"Minutes"](),m=o[u+"Seconds"](),y=o[u+"Milliseconds"]();return a.replace("MM",Co(d,2)).replace("M",d).replace("yyyy",f).replace("yy",f%100+"").replace("dd",Co(h,2)).replace("d",h).replace("hh",Co(v,2)).replace("h",v).replace("mm",Co(g,2)).replace("m",g).replace("ss",Co(m,2)).replace("s",m).replace("SSS",Co(y,3))}function w4(a){return a&&a.charAt(0).toUpperCase()+a.substr(1)}function Wd(a,t){return t=t||"transparent",Ne(a)?a:Ke(a)&&a.colorStops&&(a.colorStops[0]||{}).color||t}function G0(a,t){if("_blank"===t||"blank"===t){var e=window.open();e.opener=null,e.location.href=a}else window.open(a,t)}var tv=q,EI=["left","right","top","bottom","width","height"],Yd=[["width","left","right"],["height","top","bottom"]];function nv(a,t,e,o,u){var f=0,d=0;null==o&&(o=1/0),null==u&&(u=1/0);var h=0;t.eachChild(function(v,g){var C,S,m=v.getBoundingRect(),y=t.childAt(g+1),b=y&&y.getBoundingRect();if("horizontal"===a){var k=m.width+(b?-b.x+m.x:0);(C=f+k)>o||v.newline?(f=0,C=k,d+=h+e,h=m.height):h=Math.max(h,m.height)}else{var D=m.height+(b?-b.y+m.y:0);(S=d+D)>u||v.newline?(f+=h+e,d=0,S=D,h=m.width):h=Math.max(h,m.width)}v.newline||(v.x=f,v.y=d,v.markRedraw(),"horizontal"===a?f=C+e:d=S+e)})}var Hu=nv;function oi(a,t,e){e=jd(e||0);var o=t.width,u=t.height,f=Ie(a.left,o),d=Ie(a.top,u),h=Ie(a.right,o),v=Ie(a.bottom,u),g=Ie(a.width,o),m=Ie(a.height,u),y=e[2]+e[0],b=e[1]+e[3],C=a.aspect;switch(isNaN(g)&&(g=o-h-b-f),isNaN(m)&&(m=u-v-y-d),null!=C&&(isNaN(g)&&isNaN(m)&&(C>o/u?g=.8*o:m=.8*u),isNaN(g)&&(g=C*m),isNaN(m)&&(m=g/C)),isNaN(f)&&(f=o-h-g-b),isNaN(d)&&(d=u-v-m-y),a.left||a.right){case"center":f=o/2-g/2-e[3];break;case"right":f=o-g-b}switch(a.top||a.bottom){case"middle":case"center":d=u/2-m/2-e[0];break;case"bottom":d=u-m-y}f=f||0,d=d||0,isNaN(g)&&(g=o-b-f-(h||0)),isNaN(m)&&(m=u-y-d-(v||0));var S=new zt(f+e[3],d+e[0],g,m);return S.margin=e,S}function Ok(a,t,e,o,u,f){var g,d=!u||!u.hv||u.hv[0],h=!u||!u.hv||u.hv[1],v=u&&u.boundingMode||"all";if((f=f||a).x=a.x,f.y=a.y,!d&&!h)return!1;if("raw"===v)g="group"===a.type?new zt(0,0,+t.width||0,+t.height||0):a.getBoundingRect();else if(g=a.getBoundingRect(),a.needLocalTransform()){var m=a.getLocalTransform();(g=g.clone()).applyTransform(m)}var y=oi(rt({width:g.width,height:g.height},t),e,o),b=d?y.x-g.x:0,C=h?y.y-g.y:0;return"raw"===v?(f.x=b,f.y=C):(f.x+=b,f.y+=C),f===a&&a.markRedraw(),!0}function qd(a){var t=a.layoutMode||a.constructor.layoutMode;return Ke(t)?t:t?{type:t}:null}function Zd(a,t,e){var o=e&&e.ignoreSize;!Ce(o)&&(o=[o,o]);var u=d(Yd[0],0),f=d(Yd[1],1);function d(m,y){var b={},C=0,S={},k=0;if(tv(m,function(E){S[E]=a[E]}),tv(m,function(E){h(t,E)&&(b[E]=S[E]=t[E]),v(b,E)&&C++,v(S,E)&&k++}),o[y])return v(t,m[1])?S[m[2]]=null:v(t,m[2])&&(S[m[1]]=null),S;if(2===k||!C)return S;if(C>=2)return b;for(var x=0;x=0;v--)h=Dt(h,u[v],!0);o.defaultOption=h}return o.defaultOption},t.prototype.getReferringComponents=function(e,o){var f=e+"Id";return ge(this.ecModel,e,{index:this.get(e+"Index",!0),id:this.get(f,!0)},o)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=((e=t.prototype).type="component",e.id="",e.name="",e.mainType="",e.subType="",void(e.componentIndex=0)),t;var e}(Kn);a0(Xd,Kn),Ru(Xd),function gI(a){var t={};a.registerSubTypeDefaulter=function(e,o){var u=ai(e);t[u.main]=o},a.determineSubType=function(e,o){var u=o.type;if(!u){var f=ai(e).main;a.hasSubTypes(e)&&t[f]&&(u=t[f](o))}return u}}(Xd),function bk(a,t){function o(f,d){return f[d]||(f[d]={predecessor:[],successor:[]}),f[d]}a.topologicalTravel=function(f,d,h,v){if(f.length){var g=function e(f){var d={},h=[];return q(f,function(v){var g=o(d,v),y=function u(f,d){var h=[];return q(f,function(v){Ct(d,v)>=0&&h.push(v)}),h}(g.originalDeps=t(v),f);g.entryCount=y.length,0===g.entryCount&&h.push(v),q(y,function(b){Ct(g.predecessor,b)<0&&g.predecessor.push(b);var C=o(d,b);Ct(C.successor,b)<0&&C.successor.push(v)})}),{graph:d,noEntryList:h}}(d),m=g.graph,y=g.noEntryList,b={};for(q(f,function(T){b[T]=!0});y.length;){var C=y.pop(),S=m[C],k=!!b[C];k&&(h.call(v,C,S.originalDeps.slice()),delete b[C]),q(S.successor,k?x:D)}q(b,function(){throw new Error("")})}function D(T){m[T].entryCount--,0===m[T].entryCount&&y.push(T)}function x(T){b[T]=!0,D(T)}}}(Xd,function II(a){var t=[];return q(Xd.getClassesByMainType(a),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=Me(t,function(e){return ai(e).main}),"dataset"!==a&&Ct(t,"dataset")<=0&&t.unshift("dataset"),t});var sn=Xd,au="";"undefined"!=typeof navigator&&(au=navigator.platform||"");var zu="rgba(0, 0, 0, 0.2)",S4={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:zu,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:zu,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:zu,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:zu,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:zu,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:zu,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:au.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},RI=$e(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),pl="original",Qi="arrayRows",Yo="objectRows",Cs="keyedColumns",qo="typedArray",LI="unknown",ws="column",Kd="row",Rk=Sn();function U0(a,t,e){var o={},u=Fk(t);if(!u||!a)return o;var m,y,f=[],d=[],v=Rk(t.ecModel).datasetMap,g=u.uid+"_"+e.seriesLayoutBy;q(a=a.slice(),function(k,D){var x=Ke(k)?k:a[D]={name:k};"ordinal"===x.type&&null==m&&(m=D,y=S(x)),o[x.name]=[]});var b=v.get(g)||v.set(g,{categoryWayDim:y,valueWayDim:0});function C(k,D,x){for(var T=0;Tt)return a[o];return a[e-1]}(o,d):e;if((m=m||e)&&m.length){var y=m[v];return u&&(g[u]=y),h.paletteIdx=(v+1)%m.length,y}}var j0,av,VI,T4="\0_ec_inner",HI=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return de(t,a),t.prototype.init=function(e,o,u,f,d,h){f=f||{},this.option=null,this._theme=new Kn(f),this._locale=new Kn(d),this._optionManager=h},t.prototype.setOption=function(e,o,u){var f=W0(o);this._optionManager.setOption(e,u,f),this._resetOption(null,f)},t.prototype.resetOption=function(e,o){return this._resetOption(e,W0(o))},t.prototype._resetOption=function(e,o){var u=!1,f=this._optionManager;if(!e||"recreate"===e){var d=f.mountOption("recreate"===e);this.option&&"recreate"!==e?(this.restoreData(),this._mergeOption(d,o)):VI(this,d),u=!0}if(("timeline"===e||"media"===e)&&this.restoreData(),!e||"recreate"===e||"timeline"===e){var h=f.getTimelineOption(this);h&&(u=!0,this._mergeOption(h,o))}if(!e||"recreate"===e||"media"===e){var v=f.getMediaOption(this);v.length&&q(v,function(g){u=!0,this._mergeOption(g,o)},this)}return u},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,o){var u=this.option,f=this._componentsMap,d=this._componentsCount,h=[],v=$e(),g=o&&o.replaceMergeMainTypeMap;(function M4(a){Rk(a).datasetMap=$e()})(this),q(e,function(y,b){null!=y&&(sn.hasClass(b)?b&&(h.push(b),v.set(b,!0)):u[b]=null==u[b]?ot(y):Dt(u[b],y,!0))}),g&&g.each(function(y,b){sn.hasClass(b)&&!v.get(b)&&(h.push(b),v.set(b,!0))}),sn.topologicalTravel(h,sn.getAllClassMainTypes(),function m(y){var b=function iv(a,t,e){var o=Bk.get(t);if(!o)return e;var u=o(a);return u?e.concat(u):e}(this,y,Xn(e[y])),C=f.get(y),k=yo(C,b,C?g&&g.get(y)?"replaceMerge":"normalMerge":"replaceAll");(function BM(a,t,e){q(a,function(o){var u=o.newOption;Ke(u)&&(o.keyInfo.mainType=t,o.keyInfo.subType=function r0(a,t,e,o){return t.type?t.type:e?e.subType:o.determineSubType(a,t)}(t,u,o.existing,e))})})(k,y,sn),u[y]=null,f.set(y,null),d.set(y,0);var E,D=[],x=[],T=0;q(k,function(V,N){var H=V.existing,j=V.newOption;if(j){var W=sn.getClass(y,V.keyInfo.subType,!("series"===y));if(!W)return;if("tooltip"===y){if(E)return;E=!0}if(H&&H.constructor===W)H.name=V.keyInfo.name,H.mergeOption(j,this),H.optionUpdated(j,!1);else{var ee=ve({componentIndex:N},V.keyInfo);ve(H=new W(j,this,this,ee),ee),V.brandNew&&(H.__requireNewView=!0),H.init(j,this,this),H.optionUpdated(null,!0)}}else H&&(H.mergeOption({},this),H.optionUpdated({},!1));H?(D.push(H.option),x.push(H),T++):(D.push(void 0),x.push(void 0))},this),u[y]=D,f.set(y,x),d.set(y,T),"series"===y&&j0(this)},this),this._seriesIndices||j0(this)},t.prototype.getOption=function(){var e=ot(this.option);return q(e,function(o,u){if(sn.hasClass(u)){for(var f=Xn(o),d=f.length,h=!1,v=d-1;v>=0;v--)f[v]&&!hm(f[v])?h=!0:(f[v]=null,!h&&d--);f.length=d,e[u]=f}}),delete e[T4],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,o){var u=this._componentsMap.get(e);if(u){var f=u[o||0];if(f)return f;if(null==o)for(var d=0;d=t:"max"===e?a<=t:a===t})(o[g],f,v)||(u=!1)}}),u}var Re=WI,vl=q,Qd=Ke,ZI=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Gk(a){var t=a&&a.itemStyle;if(t)for(var e=0,o=ZI.length;e=0;k--){var D=a[k];if(h||(C=D.data.rawIndexOf(D.stackedByDimension,b)),C>=0){var x=D.data.getByRawIndex(D.stackResultDimension,C);if(y>=0&&x>0||y<=0&&x<0){y=MZ(y,x),S=x;break}}}return o[0]=y,o[1]=S,o})})}var Gu=function a(t){this.data=t.data||(t.sourceFormat===Cs?{}:[]),this.sourceFormat=t.sourceFormat||LI,this.seriesLayoutBy=t.seriesLayoutBy||ws,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var o=0;oD&&(D=P)}S[0]=k,S[1]=D}},u=function(){return this._data?this._data.length/this._dimSize:0};function f(d){for(var h=0;h=0&&(k=d.interpolatedValue[D])}return null!=k?k+"":""}):void 0},a.prototype.getRawValue=function(t,e){return uv(this.getData(e),t)},a.prototype.formatTooltip=function(t,e,o){},a}();function H4(a){var t,e;return Ke(a)?a.type&&(e=a):t=a,{text:t,frag:e}}function X0(a){return new HZ(a)}var HZ=function(){function a(t){this._reset=(t=t||{}).reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return a.prototype.perform=function(t){var f,e=this._upstream,o=t&&t.skip;if(this._dirty&&e){var u=this.context;u.data=u.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!o&&(f=this._plan(this.context));var y,d=m(this._modBy),h=this._modDataCount||0,v=m(t&&t.modBy),g=t&&t.modDataCount||0;function m(T){return!(T>=1)&&(T=1),T}(d!==v||h!==g)&&(f="reset"),(this._dirty||"reset"===f)&&(this._dirty=!1,y=this._doReset(o)),this._modBy=v,this._modDataCount=g;var b=t&&t.step;if(this._dueEnd=e?e._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var C=this._dueIndex,S=Math.min(null!=b?this._dueIndex+b:1/0,this._dueEnd);if(!o&&(y||C1&&o>0?h:d}};return f;function d(){return t=a?null:ve},gte:function(t,e){return t>=e}},q4=function(){function a(t,e){Cn(e)||Pn(""),this._opFn=Y4[t],this._rvalFloat=Iu(e)}return a.prototype.evaluate=function(t){return Cn(t)?this._opFn(t,this._rvalFloat):this._opFn(Iu(t),this._rvalFloat)},a}(),Xk=function(){function a(t,e){var o="desc"===t;this._resultLT=o?1:-1,null==e&&(e=o?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return a.prototype.evaluate=function(t,e){var o=Cn(t)?t:Iu(t),u=Cn(e)?e:Iu(e),f=isNaN(o),d=isNaN(u);if(f&&(o=this._incomparable),d&&(u=this._incomparable),f&&d){var h=Ne(t),v=Ne(e);h&&(o=v?t:0),v&&(u=h?e:0)}return ou?-this._resultLT:0},a}(),Z4=function(){function a(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Iu(e)}return a.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var o=typeof t;o!==this._rvalTypeof&&("number"===o||"number"===this._rvalTypeof)&&(e=Iu(t)===this._rvalFloat)}return this._isEQ?e:!e},a}();function dR(a,t){return"eq"===a||"ne"===a?new Z4("eq"===a,t):je(Y4,a)?new q4(a,t):null}var hR=function(){function a(){}return a.prototype.getRawData=function(){throw new Error("not supported")},a.prototype.getRawDataItem=function(t){throw new Error("not supported")},a.prototype.cloneRawData=function(){},a.prototype.getDimensionInfo=function(t){},a.prototype.cloneAllDimensionInfo=function(){},a.prototype.count=function(){},a.prototype.retrieveValue=function(t,e){},a.prototype.retrieveValueFromItem=function(t,e){},a.prototype.convertValue=function(t,e){return sf(t,e)},a}();function jZ(a){return Qk(a.sourceFormat)||Pn(""),a.data}function WZ(a){var t=a.sourceFormat,e=a.data;if(Qk(t)||Pn(""),t===Qi){for(var u=[],f=0,d=e.length;f65535?B:Se}function Wm(a){var t=a.constructor;return t===Array?a.slice():new t(a)}function Jk(a,t,e,o,u){var f=Rn[e||"float"];if(u){var d=a[t],h=d&&d.length;if(h!==o){for(var v=new f(o),g=0;gD[1]&&(D[1]=k)}return this._rawCount=this._count=v,{start:h,end:v}},a.prototype._initDataFromProvider=function(t,e,o){for(var u=this._provider,f=this._chunks,d=this._dimensions,h=d.length,v=this._rawExtent,g=Me(d,function(T){return T.property}),m=0;mx[1]&&(x[1]=D)}}!u.persistent&&u.clean&&u.clean(),this._rawCount=this._count=e,this._extent=[]},a.prototype.count=function(){return this._count},a.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,o=e[t];if(null!=o&&ot))return d;f=d-1}}return-1},a.prototype.indicesOfNearest=function(t,e,o){var f=this._chunks[t],d=[];if(!f)return d;null==o&&(o=1/0);for(var h=1/0,v=-1,g=0,m=0,y=this.count();m=0&&v<0)&&(h=S,v=C,g=0),C===v&&(d[g++]=m))}return d.length=g,d},a.prototype.getIndices=function(){var t,e=this._indices;if(e){var u=this._count;if((o=e.constructor)===Array){t=new o(u);for(var f=0;f=y&&T<=b||isNaN(T))&&(v[g++]=k),k++;S=!0}else if(2===f){D=C[u[0]];var E=C[u[1]],P=t[u[1]][0],V=t[u[1]][1];for(x=0;x=y&&T<=b||isNaN(T))&&(N>=P&&N<=V||isNaN(N))&&(v[g++]=k),k++}S=!0}}if(!S)if(1===f)for(x=0;x=y&&T<=b||isNaN(T))&&(v[g++]=H)}else for(x=0;xt[W][1])&&(j=!1)}j&&(v[g++]=e.getRawIndex(x))}return gx[1]&&(x[1]=D)}}},a.prototype.lttbDownSample=function(t,e){var m,y,b,o=this.clone([t],!0),f=o._chunks[t],d=this.count(),h=0,v=Math.floor(1/e),g=this.getRawIndex(0),C=new($a(this._rawCount))(Math.min(2*(Math.ceil(d/v)+2),d));C[h++]=g;for(var S=1;Sm&&(m=y,b=P)}X>0&&Xm-S&&(h.length=v=m-S);for(var k=0;ky[1]&&(y[1]=x),b[C++]=T}return f._count=C,f._indices=b,f._updateGetRawIdx(),f},a.prototype.each=function(t,e){if(this._count)for(var o=t.length,u=this._chunks,f=0,d=this.count();fv&&(v=y)}return this._extent[t]=d=[h,v],d},a.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var o=[],u=this._chunks,f=0;f=0?this._indices[t]:-1},a.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},a.internalField=function(){function t(e,o,u,f){return sf(e[f],this._dimensions[f])}On={arrayRows:t,objectRows:function(o,u,f,d){return sf(o[u],this._dimensions[d])},keyedColumns:t,original:function(o,u,f,d){var h=o&&(null==o.value?o:o.value);return sf(h instanceof Array?h[d]:h,this._dimensions[d])},typedArray:function(o,u,f,d){return o[d]}}}(),a}(),ne=eD,cv=function(){function a(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return a.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},a.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},a.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},a.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},a.prototype._createSource=function(){this._setLocalSource([],[]);var u,f,t=this._sourceHost,e=this._getUpstreamSourceManagers(),o=!!e.length;if(Ym(t)){var d=t,h=void 0,v=void 0,g=void 0;if(o){var m=e[0];m.prepareSource(),h=(g=m.getSource()).data,v=g.sourceFormat,f=[m._getVersionSign()]}else v=Oo(h=d.get("data",!0))?qo:pl,f=[];var y=this._getSourceMetaRawOption()||{},b=g&&g.metaRawOption||{},C=Ft(y.seriesLayoutBy,b.seriesLayoutBy)||null,S=Ft(y.sourceHeader,b.sourceHeader),k=Ft(y.dimensions,b.dimensions);u=C!==b.seriesLayoutBy||!!S!=!!b.sourceHeader||k?[Jc(h,{seriesLayoutBy:C,sourceHeader:S,dimensions:k},v)]:[]}else{var x=t;if(o){var T=this._applyTransform(e);u=T.sourceList,f=T.upstreamSignList}else u=[Jc(x.get("source",!0),this._getSourceMetaRawOption(),null)],f=[]}this._setLocalSource(u,f)},a.prototype._applyTransform=function(t){var e=this._sourceHost,o=e.get("transform",!0),u=e.get("fromTransformResult",!0);null!=u&&1!==t.length&&tD("");var d,h=[],v=[];return q(t,function(g){g.prepareSource();var m=g.getSource(u||0);null!=u&&!m&&tD(""),h.push(m),v.push(g._getVersionSign())}),o?d=function U(a,t,e){var o=Xn(a),u=o.length;u||Pn("");for(var d=0,h=u;d1||e>0&&!a.noHeader;return q(a.blocks,function(u){var f=nD(u);f>=t&&(t=f+ +(o&&(!f||Uu(u)&&!u.noHeader)))}),t}return 0}function gR(a,t,e,o){var u=t.noHeader,f=function _R(a){return{html:K4[a],richText:vi[a]}}(nD(t)),d=[],h=t.blocks||[];fa(!h||Ce(h)),h=h||[];var v=a.orderMode;if(t.sortBlocks&&v){h=h.slice();var g={valueAsc:"asc",valueDesc:"desc"};if(je(g,v)){var m=new Xk(g[v],null);h.sort(function(S,k){return m.evaluate(S.sortParam,k.sortParam)})}else"seriesDesc"===v&&h.reverse()}q(h,function(S,k){var D=t.valueFormatter,x=$0(S)(D?ve(ve({},a),{valueFormatter:D}):a,S,k>0?f.html:0,o);null!=x&&d.push(x)});var y="richText"===a.renderMode?d.join(f.richText):Q0(d.join(""),u?e:f.html);if(u)return y;var b=Ak(t.header,"ordinal",a.useUTC),C=Q(o,a.renderMode).nameStyle;return"richText"===a.renderMode?$4(a,b,C)+f.richText+y:Q0('
'+Ka(b)+"
"+y,e)}function mR(a,t,e,o){var u=a.renderMode,f=t.noName,d=t.noValue,h=!t.markerType,v=t.name,g=a.useUTC,m=t.valueFormatter||a.valueFormatter||function(P){return Me(P=Ce(P)?P:[P],function(V,N){return Ak(V,Ce(C)?C[N]:C,g)})};if(!f||!d){var y=h?"":a.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",u),b=f?"":Ak(v,"ordinal",g),C=t.valueType,S=d?[]:m(t.value),k=!h||!f,D=!h&&f,x=Q(o,u),T=x.nameStyle,E=x.valueStyle;return"richText"===u?(h?"":y)+(f?"":$4(a,b,T))+(d?"":function Q4(a,t,e,o,u){var f=[u];return e&&f.push({padding:[0,0,0,o?10:20],align:"right"}),a.markupStyleCreator.wrapRichTextStyle(Ce(t)?t.join(" "):t,f)}(a,S,k,D,E)):Q0((h?"":y)+(f?"":function yR(a,t,e){return''+Ka(a)+""}(b,!h,T))+(d?"":function bR(a,t,e,o){return''+Me(a=Ce(a)?a:[a],function(d){return Ka(d)}).join("  ")+""}(S,k,D,E)),e)}}function rD(a,t,e,o,u,f){if(a)return $0(a)({useUTC:u,renderMode:e,orderMode:o,markupStyleCreator:t,valueFormatter:a.valueFormatter},a,0,f)}function Q0(a,t){return'
'+a+'
'}function $4(a,t,e){return a.markupStyleCreator.wrapRichTextStyle(t,e)}function CR(a,t){return Wd(a.getData().getItemVisual(t,"style")[a.visualDrawType])}function iD(a,t){var e=a.get("padding");return null!=e?e:"richText"===t?[8,10]:10}var aD=function(){function a(){this.richTextStyles={},this._nextStyleNameId=zo()}return a.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},a.prototype.makeTooltipMarker=function(t,e,o){var u="richText"===o?this._generateStyleName():null,f=C4({color:e,type:t,renderMode:o,markerId:u});return Ne(f)?f:(this.richTextStyles[u]=f.style,f.content)},a.prototype.wrapRichTextStyle=function(t,e){var o={};Ce(e)?q(e,function(f){return ve(o,f)}):ve(o,e);var u=this._generateStyleName();return this.richTextStyles[u]=o,"{"+u+"|"+t+"}"},a}();function Si(a){var m,y,b,C,t=a.series,e=a.dataIndex,o=a.multipleSeries,u=t.getData(),f=u.mapDimensionsAll("defaultedTooltip"),d=f.length,h=t.getRawValue(e),v=Ce(h),g=CR(t,e);if(d>1||v&&!d){var S=function wR(a,t,e,o,u){var f=t.getData(),d=Ys(a,function(y,b,C){var S=f.getDimensionInfo(C);return y||S&&!1!==S.tooltip&&null!=S.displayName},!1),h=[],v=[],g=[];function m(y,b){var C=f.getDimensionInfo(b);!C||!1===C.otherDims.tooltip||(d?g.push(Gt("nameValue",{markerType:"subItem",markerColor:u,name:C.displayName,value:y,valueType:C.type})):(h.push(y),v.push(C.type)))}return o.length?q(o,function(y){m(uv(f,e,y),y)}):q(a,m),{inlineValues:h,inlineValueTypes:v,blocks:g}}(h,t,e,f,g);m=S.inlineValues,y=S.inlineValueTypes,b=S.blocks,C=S.inlineValues[0]}else if(d){var k=u.getDimensionInfo(f[0]);C=m=uv(u,e,f[0]),y=k.type}else C=m=v?h[0]:h;var D=Fp(t),x=D&&t.name||"",T=u.getName(e),E=o?x:T;return Gt("section",{header:x,noHeader:o||!D,sortParam:C,blocks:[Gt("nameValue",{markerType:"item",markerColor:g,name:E,noName:!Io(E),value:m,valueType:y})].concat(b||[])})}var uf=Sn();function J0(a,t){return a.getName(t)||a.getId(t)}var qm="__universalTransitionEnabled",eC=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return de(t,a),t.prototype.init=function(e,o,u){this.seriesIndex=this.componentIndex,this.dataTask=X0({count:fv,reset:J4}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(e,u),(uf(this).sourceManager=new cv(this)).prepareSource();var d=this.getInitialData(e,u);sD(d,this),this.dataTask.context.data=d,uf(this).dataBeforeProcessed=d,oD(this),this._initSelectedMapFromData(d)},t.prototype.mergeDefaultAndTheme=function(e,o){var u=qd(this),f=u?rv(e):{},d=this.subType;sn.hasClass(d)&&(d+="Series"),Dt(e,o.getTheme().get(this.subType)),Dt(e,this.getDefaultOption()),Cd(e,"label",["show"]),this.fillDataTextStyle(e.data),u&&Zd(e,f,u)},t.prototype.mergeOption=function(e,o){e=Dt(this.option,e,!0),this.fillDataTextStyle(e.data);var u=qd(this);u&&Zd(this.option,e,u);var f=uf(this).sourceManager;f.dirty(),f.prepareSource();var d=this.getInitialData(e,o);sD(d,this),this.dataTask.dirty(),this.dataTask.context.data=d,uf(this).dataBeforeProcessed=d,oD(this),this._initSelectedMapFromData(d)},t.prototype.fillDataTextStyle=function(e){if(e&&!Oo(e))for(var o=["show"],u=0;uthis.getShallow("animationThreshold")&&(o=!1),!!o},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(e,o,u){var f=this.ecModel,d=Vk.prototype.getColorFromPalette.call(this,e,o,u);return d||(d=f.getColorFromPalette(e,o,u)),d},t.prototype.coordDimToDataDim=function(e){return this.getRawData().mapDimensionsAll(e)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(e,o){this._innerSelect(this.getData(o),e)},t.prototype.unselect=function(e,o){var u=this.option.selectedMap;if(u){var f=this.option.selectedMode,d=this.getData(o);if("series"===f||"all"===u)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var h=0;h=0&&u.push(d)}return u},t.prototype.isSelected=function(e,o){var u=this.option.selectedMap;if(!u)return!1;var f=this.getData(o);return("all"===u||u[J0(f,e)])&&!f.getItemModel(e).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[qm])return!0;var e=this.option.universalTransition;return!!e&&(!0===e||e&&e.enabled)},t.prototype._innerSelect=function(e,o){var u,f,d=this.option,h=d.selectedMode,v=o.length;if(h&&v)if("series"===h)d.selectedMap="all";else if("multiple"===h){Ke(d.selectedMap)||(d.selectedMap={});for(var g=d.selectedMap,m=0;m0&&this._innerSelect(e,o)}},t.registerClass=function(e){return sn.registerClass(e)},t.protoInitialize=((e=t.prototype).type="series.__base__",e.seriesIndex=0,e.ignoreStyleOnData=!1,e.hasSymbolVisual=!1,e.defaultSymbol="circle",e.visualStyleAccessPath="itemStyle",void(e.visualDrawType="fill")),t;var e}(sn);function oD(a){var t=a.name;Fp(a)||(a.name=function SR(a){var t=a.getRawData(),e=t.mapDimensionsAll("seriesName"),o=[];return q(e,function(u){var f=t.getDimensionInfo(u);f.displayName&&o.push(f.displayName)}),o.join(" ")}(a)||t)}function fv(a){return a.model.getRawData().count()}function J4(a){var t=a.model;return t.setData(t.getRawData().cloneShallow()),eG}function eG(a,t){t.outputData&&a.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function sD(a,t){q(Ng(a.CHANGABLE_METHODS,a.DOWNSAMPLE_METHODS),function(e){a.wrapMethod(e,wt(tG,t))})}function tG(a,t){var e=tC(a);return e&&e.setOutputEnd((t||this).count()),t}function tC(a){var t=(a.ecModel||{}).scheduler,e=t&&t.getPipeline(a.uid);if(e){var o=e.currentTask;if(o){var u=o.agentStubMap;u&&(o=u.get(a.uid))}return o}}Ir(eC,Zk),Ir(eC,Vk),a0(eC,sn);var fr=eC,ta=function(){function a(){this.group=new ct,this.uid=Zc("viewComponent")}return a.prototype.init=function(t,e){},a.prototype.render=function(t,e,o,u){},a.prototype.dispose=function(t,e){},a.prototype.updateView=function(t,e,o,u){},a.prototype.updateLayout=function(t,e,o,u){},a.prototype.updateVisual=function(t,e,o,u){},a.prototype.toggleBlurSeries=function(t,e,o){},a.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},a}();GM(ta),Ru(ta);var Ze=ta;function Qa(){var a=Sn();return function(t){var e=a(t),o=t.pipelineContext,u=!!e.large,f=!!e.progressiveRender,d=e.large=!(!o||!o.large),h=e.progressiveRender=!(!o||!o.progressiveRender);return(u!==d||f!==h)&&"reset"}}var dv=eu.CMD,nG=[[],[],[]],ml=Math.sqrt,_l=Math.atan2;function Ms(a,t){if(t){var u,f,d,h,v,g,e=a.data,o=a.len(),m=dv.M,y=dv.C,b=dv.L,C=dv.R,S=dv.A,k=dv.Q;for(d=0,h=0;d1&&(d*=nC(S),h*=nC(S));var k=(u===f?-1:1)*nC((d*d*(h*h)-d*d*(C*C)-h*h*(b*b))/(d*d*(C*C)+h*h*(b*b)))||0,D=k*d*C/h,x=k*-h*b/d,T=(a+e)/2+rC(y)*D-Zm(y)*x,E=(t+o)/2+Zm(y)*D+rC(y)*x,P=iC([1,0],[(b-D)/d,(C-x)/h]),V=[(b-D)/d,(C-x)/h],N=[(-1*b-D)/d,(-1*C-x)/h],H=iC(V,N);if(lD(V,N)<=-1&&(H=Xm),lD(V,N)>=1&&(H=0),H<0){var j=Math.round(H/Xm*1e6)/1e6;H=2*Xm+j%2*Xm}m.addData(g,T,E,d,h,P,H,y,f)}var rG=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,kR=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,uD=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return lr(t,a),t.prototype.applyTransform=function(e){},t}(Xt);function cD(a){return null!=a.setData}function Km(a,t){var e=function iG(a){var t=new eu;if(!a)return t;var d,e=0,o=0,u=e,f=o,h=eu.CMD,v=a.match(rG);if(!v)return t;for(var g=0;gre*re+ie*ie&&(j=W,Z=X),{cx:j,cy:Z,x0:-m,y0:-y,x1:j*(u/V-1),y1:Z*(u/V-1)}}var uG=function a(){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},ER=function(a){function t(e){return a.call(this,e)||this}return lr(t,a),t.prototype.getDefaultShape=function(){return new uG},t.prototype.buildPath=function(e,o){!function lG(a,t){var e,o=Jm(t.r,0),u=Jm(t.r0||0,0),f=o>0;if(f||u>0){if(f||(o=u,u=0),u>o){var h=o;o=u,u=h}var v=t.startAngle,g=t.endAngle;if(!isNaN(v)&&!isNaN(g)){var m=t.cx,y=t.cy,b=!!t.clockwise,C=AR(g-v),S=C>aC&&C%aC;if(S>yl&&(C=S),o>yl)if(C>aC-yl)a.moveTo(m+o*nh(v),y+o*cf(v)),a.arc(m,y,o,v,g,!b),u>yl&&(a.moveTo(m+u*nh(g),y+u*cf(g)),a.arc(m,y,u,g,v,b));else{var k=void 0,D=void 0,x=void 0,T=void 0,E=void 0,P=void 0,V=void 0,N=void 0,H=void 0,j=void 0,Z=void 0,W=void 0,X=void 0,J=void 0,ee=void 0,re=void 0,ie=o*nh(v),ce=o*cf(v),me=u*nh(g),pe=u*cf(g),_e=C>yl;if(_e){var Pe=t.cornerRadius;Pe&&(e=function sG(a){var t;if(Ce(a)){var e=a.length;if(!e)return a;t=1===e?[a[0],a[0],0,0]:2===e?[a[0],a[0],a[1],a[1]]:3===e?a.concat(a[2]):a}else t=[a,a,a,a];return t}(Pe),k=e[0],D=e[1],x=e[2],T=e[3]);var Be=AR(o-u)/2;if(E=su(Be,x),P=su(Be,T),V=su(Be,k),N=su(Be,D),Z=H=Jm(E,P),W=j=Jm(V,N),(H>yl||j>yl)&&(X=o*nh(g),J=o*cf(g),ee=u*nh(v),re=u*cf(v),Cyl){var Vt=su(x,Z),Lt=su(T,Z),Je=oC(ee,re,ie,ce,o,Vt,b),kt=oC(X,J,me,pe,o,Lt,b);a.moveTo(m+Je.cx+Je.x0,y+Je.cy+Je.y0),Z0&&a.arc(m+Je.cx,y+Je.cy,Vt,Oa(Je.y0,Je.x0),Oa(Je.y1,Je.x1),!b),a.arc(m,y,o,Oa(Je.cy+Je.y1,Je.cx+Je.x1),Oa(kt.cy+kt.y1,kt.cx+kt.x1),!b),Lt>0&&a.arc(m+kt.cx,y+kt.cy,Lt,Oa(kt.y1,kt.x1),Oa(kt.y0,kt.x0),!b))}else a.moveTo(m+ie,y+ce),a.arc(m,y,o,v,g,!b);else a.moveTo(m+ie,y+ce);u>yl&&_e?W>yl?(Vt=su(k,W),Je=oC(me,pe,X,J,u,-(Lt=su(D,W)),b),kt=oC(ie,ce,ee,re,u,-Vt,b),a.lineTo(m+Je.cx+Je.x0,y+Je.cy+Je.y0),W0&&a.arc(m+Je.cx,y+Je.cy,Lt,Oa(Je.y0,Je.x0),Oa(Je.y1,Je.x1),!b),a.arc(m,y,u,Oa(Je.cy+Je.y1,Je.cx+Je.x1),Oa(kt.cy+kt.y1,kt.cx+kt.x1),b),Vt>0&&a.arc(m+kt.cx,y+kt.cy,Vt,Oa(kt.y1,kt.x1),Oa(kt.y0,kt.x0),!b))):(a.lineTo(m+me,y+pe),a.arc(m,y,u,g,v,b)):a.lineTo(m+me,y+pe)}else a.moveTo(m,y);a.closePath()}}}(e,o)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(Xt);ER.prototype.type="sector";var Ja=ER,cG=function a(){this.cx=0,this.cy=0,this.r=0,this.r0=0},PR=function(a){function t(e){return a.call(this,e)||this}return lr(t,a),t.prototype.getDefaultShape=function(){return new cG},t.prototype.buildPath=function(e,o){var u=o.cx,f=o.cy,d=2*Math.PI;e.moveTo(u+o.r,f),e.arc(u,f,o.r,0,d,!1),e.moveTo(u+o.r0,f),e.arc(u,f,o.r0,0,d,!0)},t}(Xt);PR.prototype.type="ring";var e_=PR;function hD(a,t,e){var o=t.smooth,u=t.points;if(u&&u.length>=2){if(o){var f=function OR(a,t,e,o){var v,g,m,y,u=[],f=[],d=[],h=[];if(o){m=[1/0,1/0],y=[-1/0,-1/0];for(var b=0,C=a.length;bdr[1]){if(h=!1,f)return h;var m=Math.abs(dr[0]-lu[1]),y=Math.abs(lu[0]-dr[1]);Math.min(m,y)>u.len()&&Et.scale(u,g,mMath.abs(f[1])?f[0]>0?"right":"left":f[1]>0?"bottom":"top"}function wD(a){return!a.isGroup}function l_(a,t,e){if(a&&t){var f=function o(d){var h={};return d.traverse(function(v){wD(v)&&v.anid&&(h[v.anid]=v)}),h}(a);t.traverse(function(d){if(wD(d)&&d.anid){var h=f[d.anid];if(h){var v=u(d);d.attr(u(h)),Ut(d,v,e,vt(d).dataIndex)}}})}function u(d){var h={x:d.x,y:d.y,rotation:d.rotation};return function zR(a){return null!=a.shape}(d)&&(h.shape=ve({},d.shape)),h}}function dC(a,t){return Me(a,function(e){var o=e[0];o=r_(o,t.x),o=lC(o,t.x+t.width);var u=e[1];return u=r_(u,t.y),[o,u=lC(u,t.y+t.height)]})}function GR(a,t){var e=r_(a.x,t.x),o=lC(a.x+a.width,t.x+t.width),u=r_(a.y,t.y),f=lC(a.y+a.height,t.y+t.height);if(o>=e&&f>=u)return{x:e,y:u,width:o-e,height:f-u}}function gv(a,t,e){var o=ve({rectHover:!0},t),u=o.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},a)return 0===a.indexOf("image://")?(u.image=a.slice(8),rt(u,e),new Ki(o)):ff(a.replace("path://",""),o,e,"center")}function hC(a,t,e,o,u){for(var f=0,d=u[u.length-1];f=-1e-6}(b))return!1;var C=a-u,S=t-f,k=UR(C,S,v,g)/b;if(k<0||k>1)return!1;var D=UR(C,S,m,y)/b;return!(D<0||D>1)}function UR(a,t,e,o){return a*o-e*t}function ih(a){var t=a.itemTooltipOption,e=a.componentModel,o=a.itemName,u=Ne(t)?{formatter:t}:t,f=e.mainType,d=e.componentIndex,h={componentType:f,name:o,$vars:["name"]};h[f+"Index"]=d;var v=a.formatterParamsExtra;v&&q(Zt(v),function(m){je(h,m)||(h[m]=v[m],h.$vars.push(m))});var g=vt(a.el);g.componentMainType=f,g.componentIndex=d,g.tooltipConfig={name:o,option:rt({content:o,formatterParams:h},u)}}function u_(a,t){var e;a.isGroup&&(e=t(a)),e||a.traverse(t)}function hf(a,t){if(a)if(Ce(a))for(var e=0;e=0?y():d=setTimeout(y,-h),u=o};return b.clear=function(){d&&(clearTimeout(d),d=null)},b.debounceNextCall=function(C){m=C},b}function sh(a,t,e,o){var u=a[t];if(u){var f=u[pC]||u;if(u[ZR]!==e||u[oh]!==o){if(null==e||!o)return a[t]=f;(u=a[t]=vC(f,e,"debounce"===o))[pC]=f,u[oh]=o,u[ZR]=e}return u}}function c_(a,t){var e=a[t];e&&e[pC]&&(e.clear&&e.clear(),a[t]=e[pC])}var SD=Sn(),XR={itemStyle:ol(m4,!0),lineStyle:ol(g4,!0)},KR={lineStyle:"stroke",itemStyle:"fill"};function $R(a,t){return a.visualStyleMapper||XR[t]||(console.warn("Unkown style type '"+t+"'."),XR.itemStyle)}function gC(a,t){return a.visualDrawType||KR[t]||(console.warn("Unkown style type '"+t+"'."),"fill")}var CG={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var o=t.getData(),u=t.visualStyleAccessPath||"itemStyle",f=t.getModel(u),h=$R(t,u)(f),v=f.getShallow("decal");v&&(o.setVisual("decal",v),v.dirty=!0);var g=gC(t,u),m=h[g],y=et(m)?m:null;if(!h[g]||y||"auto"===h.fill||"auto"===h.stroke){var C=t.getColorFromPalette(t.name,null,e.getSeriesCount());h[g]||(h[g]=C,o.setVisual("colorFromPalette",!0)),h.fill="auto"===h.fill||et(h.fill)?C:h.fill,h.stroke="auto"===h.stroke||et(h.stroke)?C:h.stroke}if(o.setVisual("style",h),o.setVisual("drawType",g),!e.isSeriesFiltered(t)&&y)return o.setVisual("colorFromPalette",!1),{dataEach:function(k,D){var x=t.getDataParams(D),T=ve({},h);T[g]=y(x),k.setItemVisual(D,"style",T)}}}},mv=new Kn,QR={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var o=t.getData(),u=t.visualStyleAccessPath||"itemStyle",f=$R(t,u),d=o.getVisual("drawType");return{dataEach:o.hasItemOption?function(h,v){var g=h.getRawDataItem(v);if(g&&g[u]){mv.option=g[u];var m=f(mv);ve(h.ensureUniqueItemVisual(v,"style"),m),mv.option.decal&&(h.setItemVisual(v,"decal",mv.option.decal),mv.option.decal.dirty=!0),d in m&&h.setItemVisual(v,"colorFromPalette",!1)}}:null}}}},wG={performRawSeries:!0,overallReset:function(t){var e=$e();t.eachSeries(function(o){var u=o.getColorBy();if(!o.isColorBySeries()){var f=o.type+"-"+u,d=e.get(f);d||e.set(f,d={}),SD(o).scope=d}}),t.eachSeries(function(o){if(!o.isColorBySeries()&&!t.isSeriesFiltered(o)){var u=o.getRawData(),f={},d=o.getData(),h=SD(o).scope,g=gC(o,o.visualStyleAccessPath||"itemStyle");d.each(function(m){var y=d.getRawIndex(m);f[y]=m}),u.each(function(m){var y=f[m];if(d.getItemVisual(y,"colorFromPalette")){var C=d.ensureUniqueItemVisual(y,"style"),S=u.getName(m)||m+"",k=u.count();C[g]=o.getColorFromPalette(S,h,k)}})}})}},mC=Math.PI,MD=function(){function a(t,e,o,u){this._stageTaskMap=$e(),this.ecInstance=t,this.api=e,o=this._dataProcessorHandlers=o.slice(),u=this._visualHandlers=u.slice(),this._allHandlers=o.concat(u)}return a.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each(function(o){var u=o.overallTask;u&&u.dirty()})},a.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var o=this._pipelineMap.get(t.__pipeline.id),u=o.context,d=!e&&o.progressiveEnabled&&(!u||u.progressiveRender)&&t.__idxInPipeline>o.blockIndex?o.step:null,h=u&&u.modDataCount;return{step:d,modBy:null!=h?Math.ceil(h/d):null,modDataCount:h}}},a.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},a.prototype.updateStreamModes=function(t,e){var o=this._pipelineMap.get(t.uid),f=t.getData().count(),d=o.progressiveEnabled&&e.incrementalPrepareRender&&f>=o.threshold,h=t.get("large")&&f>=t.get("largeThreshold"),v="mod"===t.get("progressiveChunkMode")?f:null;t.pipelineContext=o.context={progressiveRender:d,modDataCount:v,large:h}},a.prototype.restorePipelines=function(t){var e=this,o=e._pipelineMap=$e();t.eachSeries(function(u){var f=u.getProgressive(),d=u.uid;o.set(d,{id:d,head:null,tail:null,threshold:u.getProgressiveThreshold(),progressiveEnabled:f&&!(u.preventIncremental&&u.preventIncremental()),blockIndex:-1,step:Math.round(f||700),count:0}),e._pipe(u,u.dataTask)})},a.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),o=this.api;q(this._allHandlers,function(u){var f=t.get(u.uid)||t.set(u.uid,{});fa(!(u.reset&&u.overallReset),""),u.reset&&this._createSeriesStageTask(u,f,e,o),u.overallReset&&this._createOverallStageTask(u,f,e,o)},this)},a.prototype.prepareView=function(t,e,o,u){var f=t.renderTask,d=f.context;d.model=e,d.ecModel=o,d.api=u,f.__block=!t.incrementalPrepareRender,this._pipe(e,f)},a.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},a.prototype.performVisualTasks=function(t,e,o){this._performStageTasks(this._visualHandlers,t,e,o)},a.prototype._performStageTasks=function(t,e,o,u){u=u||{};var f=!1,d=this;function h(v,g){return v.setDirty&&(!v.dirtyMap||v.dirtyMap.get(g.__pipeline.id))}q(t,function(v,g){if(!u.visualType||u.visualType===v.visualType){var m=d._stageTaskMap.get(v.uid),y=m.seriesTaskMap,b=m.overallTask;if(b){var C,S=b.agentStubMap;S.each(function(D){h(u,D)&&(D.dirty(),C=!0)}),C&&b.dirty(),d.updatePayload(b,o);var k=d.getPerformArgs(b,u.block);S.each(function(D){D.perform(k)}),b.perform(k)&&(f=!0)}else y&&y.each(function(D,x){h(u,D)&&D.dirty();var T=d.getPerformArgs(D,u.block);T.skip=!v.performRawSeries&&e.isSeriesFiltered(D.context.model),d.updatePayload(D,o),D.perform(T)&&(f=!0)})}}),this.unfinished=f||this.unfinished},a.prototype.performSeriesTasks=function(t){var e;t.eachSeries(function(o){e=o.dataTask.perform()||e}),this.unfinished=e||this.unfinished},a.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)})},a.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},a.prototype._createSeriesStageTask=function(t,e,o,u){var f=this,d=e.seriesTaskMap,h=e.seriesTaskMap=$e(),v=t.seriesType,g=t.getTargetSeries;function m(y){var b=y.uid,C=h.set(b,d&&d.get(b)||X0({plan:xG,reset:TG,count:EG}));C.context={model:y,ecModel:o,api:u,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:f},f._pipe(y,C)}t.createOnAllSeries?o.eachRawSeries(m):v?o.eachRawSeriesByType(v,m):g&&g(o,u).each(m)},a.prototype._createOverallStageTask=function(t,e,o,u){var f=this,d=e.overallTask=e.overallTask||X0({reset:MG});d.context={ecModel:o,api:u,overallReset:t.overallReset,scheduler:f};var h=d.agentStubMap,v=d.agentStubMap=$e(),g=t.seriesType,m=t.getTargetSeries,y=!0,b=!1;function S(k){var D=k.uid,x=v.set(D,h&&h.get(D)||(b=!0,X0({reset:JR,onDirty:DG})));x.context={model:k,overallProgress:y},x.agent=d,x.__block=y,f._pipe(k,x)}fa(!t.createOnAllSeries,""),g?o.eachRawSeriesByType(g,S):m?m(o,u).each(S):(y=!1,q(o.getSeries(),S)),b&&d.dirty()},a.prototype._pipe=function(t,e){var u=this._pipelineMap.get(t.uid);!u.head&&(u.head=e),u.tail&&u.tail.pipe(e),u.tail=e,e.__idxInPipeline=u.count++,e.__pipeline=u},a.wrapStageHandler=function(t,e){return et(t)&&(t={overallReset:t,seriesType:PG(t)}),t.uid=Zc("stageHandler"),e&&(t.visualType=e),t},a}();function MG(a){a.overallReset(a.ecModel,a.api,a.payload)}function JR(a){return a.overallProgress&&kG}function kG(){this.agent.dirty(),this.getDownstream().dirty()}function DG(){this.agent&&this.agent.dirty()}function xG(a){return a.plan?a.plan(a.model,a.ecModel,a.api,a.payload):null}function TG(a){a.useClearVisual&&a.data.clearAllVisual();var t=a.resetDefines=Xn(a.reset(a.model,a.ecModel,a.api,a.payload));return t.length>1?Me(t,function(e,o){return e2(o)}):AG}var AG=e2(0);function e2(a){return function(t,e){var o=e.data,u=e.resetDefines[a];if(u&&u.dataEach)for(var f=t.start;f0&&C===g.length-b.length){var S=g.slice(0,C);"data"!==S&&(e.mainType=S,e[b.toLowerCase()]=v,m=!0)}}h.hasOwnProperty(g)&&(o[g]=v,m=!0),m||(u[g]=v)})}return{cptQuery:e,dataQuery:o,otherQuery:u}},a.prototype.filter=function(t,e){var o=this.eventInfo;if(!o)return!0;var u=o.targetEl,f=o.packedEvent,d=o.model,h=o.view;if(!d||!h)return!0;var v=e.cptQuery,g=e.dataQuery;return m(v,d,"mainType")&&m(v,d,"subType")&&m(v,d,"index","componentIndex")&&m(v,d,"name")&&m(v,d,"id")&&m(g,f,"name")&&m(g,f,"dataIndex")&&m(g,f,"dataType")&&(!h.filterForExposedEvent||h.filterForExposedEvent(t,e.otherQuery,u,f));function m(y,b,C,S){return null==y[C]||b[S||C]===y[C]}},a.prototype.afterTrigger=function(){this.eventInfo=null},a}(),f_=["symbol","symbolSize","symbolRotate","symbolOffset"],r2=f_.concat(["symbolKeepAspect"]),ft={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var o=t.getData();if(t.legendIcon&&o.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var u={},f={},d=!1,h=0;h0&&function GG(a,t){return a&&"solid"!==a&&t>0?"dashed"===a?[4*t,2*t]:"dotted"===a?[t]:Cn(a)?[a]:Ce(a)?a:null:null}(t.lineDash,t.lineWidth),o=t.lineDashOffset;if(e){var u=t.strokeNoScale&&a.getLineScale?a.getLineScale():1;u&&1!==u&&(e=Me(e,function(f){return f/u}),o/=u)}return[e,o]}var qu=new eu(!0);function g_(a){var t=a.stroke;return!(null==t||"none"===t||!(a.lineWidth>0))}function ch(a){return"string"==typeof a&&"none"!==a}function ID(a){var t=a.fill;return null!=t&&"none"!==t}function RD(a,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var e=a.globalAlpha;a.globalAlpha=t.fillOpacity*t.opacity,a.fill(),a.globalAlpha=e}else a.fill()}function o2(a,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var e=a.globalAlpha;a.globalAlpha=t.strokeOpacity*t.opacity,a.stroke(),a.globalAlpha=e}else a.stroke()}function s2(a,t,e){var o=jM(t.image,t.__image,e);if(s0(o)){var u=a.createPattern(o,t.repeat||"repeat");if("function"==typeof DOMMatrix&&u&&u.setTransform){var f=new DOMMatrix;f.translateSelf(t.x||0,t.y||0),f.rotateSelf(0,0,(t.rotation||0)*Bg),f.scaleSelf(t.scaleX||1,t.scaleY||1),u.setTransform(f)}return u}}var kC=["shadowBlur","shadowOffsetX","shadowOffsetY"],m_=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function xs(a,t,e,o,u){var f=!1;if(!o&&t===(e=e||{}))return!1;if(o||t.opacity!==e.opacity){to(a,u),f=!0;var d=Math.max(Math.min(t.opacity,1),0);a.globalAlpha=isNaN(d)?Td.opacity:d}(o||t.blend!==e.blend)&&(f||(to(a,u),f=!0),a.globalCompositeOperation=t.blend||Td.blend);for(var h=0;h0&&e.unfinished);e.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(e,o,u){if(!this[La]){if(this._disposed)return;var f,d,h;if(Ke(o)&&(u=o.lazyUpdate,f=o.silent,d=o.replaceMerge,h=o.transition,o=o.notMerge),this[La]=!0,!this._model||o){var v=new Re(this._api),g=this._theme,m=this._model=new zI;m.scheduler=this._scheduler,m.ssr=this._ssr,m.init(null,null,null,g,this._locale,v)}this._model.setOption(e,{replaceMerge:d},A_);var y={seriesTransition:h,optionChanged:!0};if(u)this[ro]={silent:f,updateParams:y},this[La]=!1,this.getZr().wakeUp();else{try{Mi(this),mf.update.call(this,null,y)}catch(b){throw this[ro]=null,this[La]=!1,b}this._ssr||this._zr.flush(),this[ro]=null,this[La]=!1,hh.call(this,f),w_.call(this,f)}}},t.prototype.setTheme=function(){},t.prototype.getModel=function(){return this._model},t.prototype.getOption=function(){return this._model&&this._model.getOption()},t.prototype.getWidth=function(){return this._zr.getWidth()},t.prototype.getHeight=function(){return this._zr.getHeight()},t.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||XG&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(e){return this.renderToCanvas(e)},t.prototype.renderToCanvas=function(e){return this._zr.painter.getRenderedCanvas({backgroundColor:(e=e||{}).backgroundColor||this._model.get("backgroundColor"),pixelRatio:e.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(e){return this._zr.painter.renderToString({useViewBox:(e=e||{}).useViewBox})},t.prototype.getSvgDataURL=function(){if(tn.svgSupported){var e=this._zr;return q(e.storage.getDisplayList(),function(u){u.stopAnimation(null,!0)}),e.painter.toDataURL()}},t.prototype.getDataURL=function(e){if(!this._disposed){var u=this._model,f=[],d=this;q((e=e||{}).excludeComponents,function(v){u.eachComponent({mainType:v},function(g){var m=d._componentsMap[g.__viewId];m.group.ignore||(f.push(m),m.group.ignore=!0)})});var h="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(e).toDataURL("image/"+(e&&e.type||"png"));return q(f,function(v){v.group.ignore=!1}),h}},t.prototype.getConnectedDataURL=function(e){if(!this._disposed){var o="svg"===e.type,u=this.group,f=Math.min,d=Math.max,h=1/0;if(E_[u]){var v=h,g=h,m=-h,y=-h,b=[],C=e&&e.pixelRatio||this.getDevicePixelRatio();q(_f,function(E,P){if(E.group===u){var V=o?E.getZr().painter.getSvgDom().innerHTML:E.renderToCanvas(ot(e)),N=E.getDom().getBoundingClientRect();v=f(N.left,v),g=f(N.top,g),m=d(N.right,m),y=d(N.bottom,y),b.push({dom:V,left:N.left,top:N.top})}});var S=(m*=C)-(v*=C),k=(y*=C)-(g*=C),D=Ws.createCanvas(),x=PM(D,{renderer:o?"svg":"canvas"});if(x.resize({width:S,height:k}),o){var T="";return q(b,function(E){T+=''+E.dom+""}),x.painter.getSvgRoot().innerHTML=T,e.connectedBackgroundColor&&x.painter.setBackgroundColor(e.connectedBackgroundColor),x.refreshImmediately(),x.painter.toDataURL()}return e.connectedBackgroundColor&&x.add(new fn({shape:{x:0,y:0,width:S,height:k},style:{fill:e.connectedBackgroundColor}})),q(b,function(E){var P=new Ki({style:{x:E.left*C-v,y:E.top*C-g,image:E.dom}});x.add(P)}),x.refreshImmediately(),D.toDataURL("image/"+(e&&e.type||"png"))}return this.getDataURL(e)}},t.prototype.convertToPixel=function(e,o){return x2(this,"convertToPixel",e,o)},t.prototype.convertFromPixel=function(e,o){return x2(this,"convertFromPixel",e,o)},t.prototype.containPixel=function(e,o){var f;if(!this._disposed)return q(vm(this._model,e),function(h,v){v.indexOf("Models")>=0&&q(h,function(g){var m=g.coordinateSystem;if(m&&m.containPoint)f=f||!!m.containPoint(o);else if("seriesModels"===v){var y=this._chartsMap[g.__viewId];y&&y.containPoint&&(f=f||y.containPoint(o,g))}},this)},this),!!f},t.prototype.getVisual=function(e,o){var f=vm(this._model,e,{defaultMainType:"series"}),h=f.seriesModel.getData(),v=f.hasOwnProperty("dataIndexInside")?f.dataIndexInside:f.hasOwnProperty("dataIndex")?h.indexOfRawIndex(f.dataIndex):null;return null!=v?CC(h,v,o):d_(h,o)},t.prototype.getViewOfComponentModel=function(e){return this._componentsMap[e.__viewId]},t.prototype.getViewOfSeriesModel=function(e){return this._chartsMap[e.__viewId]},t.prototype._initEvents=function(){var e=this;q(A2,function(o){var u=function(d){var g,h=e.getModel(),v=d.target;if("globalout"===o?g={}:v&&Cv(v,function(k){var D=vt(k);if(D&&null!=D.dataIndex){var x=D.dataModel||h.getSeriesByIndex(D.seriesIndex);return g=x&&x.getDataParams(D.dataIndex,D.dataType)||{},!0}if(D.eventData)return g=ve({},D.eventData),!0},!0),g){var y=g.componentType,b=g.componentIndex;("markLine"===y||"markPoint"===y||"markArea"===y)&&(y="series",b=g.seriesIndex);var C=y&&null!=b&&h.getComponent(y,b),S=C&&e["series"===C.mainType?"_chartsMap":"_componentsMap"][C.__viewId];g.event=d,g.type=o,e._$eventProcessor.eventInfo={targetEl:v,packedEvent:g,model:C,view:S},e.trigger(o,g)}};u.zrEventfulCallAtLast=!0,e._zr.on(o,u,e)}),q(x_,function(o,u){e._messageCenter.on(u,function(f){this.trigger(u,f)},e)}),q(["selectchanged"],function(o){e._messageCenter.on(o,function(u){this.trigger(o,u)},e)}),function Wu(a,t,e){a.on("selectchanged",function(o){var u=e.getModel();o.isFromClick?(bv("map","selectchanged",t,u,o),bv("pie","selectchanged",t,u,o)):"select"===o.fromAction?(bv("map","selected",t,u,o),bv("pie","selected",t,u,o)):"unselect"===o.fromAction&&(bv("map","unselected",t,u,o),bv("pie","unselected",t,u,o))})}(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){this._disposed||this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(!this._disposed){this._disposed=!0,this.getDom()&&VM(this.getDom(),IC,"");var o=this,u=o._api,f=o._model;q(o._componentsViews,function(d){d.dispose(f,u)}),q(o._chartsViews,function(d){d.dispose(f,u)}),o._zr.dispose(),o._dom=o._model=o._chartsMap=o._componentsMap=o._chartsViews=o._componentsViews=o._scheduler=o._api=o._zr=o._throttledZrFlush=o._theme=o._coordSysMgr=o._messageCenter=null,delete _f[o.id]}},t.prototype.resize=function(e){if(!this[La]){if(this._disposed)return;this._zr.resize(e);var o=this._model;if(this._loadingFX&&this._loadingFX.resize(),o){var u=o.resetOption("media"),f=e&&e.silent;this[ro]&&(null==f&&(f=this[ro].silent),u=!0,this[ro]=null),this[La]=!0;try{u&&Mi(this),mf.update.call(this,{type:"resize",animation:ve({duration:0},e&&e.animation)})}catch(d){throw this[La]=!1,d}this[La]=!1,hh.call(this,f),w_.call(this,f)}}},t.prototype.showLoading=function(e,o){if(!this._disposed&&(Ke(e)&&(o=e,e=""),e=e||"default",this.hideLoading(),qD[e])){var u=qD[e](this._api,o),f=this._zr;this._loadingFX=u,f.add(u)}},t.prototype.hideLoading=function(){this._disposed||(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},t.prototype.makeActionFromEvent=function(e){var o=ve({},e);return o.type=x_[e.type],o},t.prototype.dispatchAction=function(e,o){if(!this._disposed&&(Ke(o)||(o={silent:!!o}),D_[e.type]&&this._model)){if(this[La])return void this._pendingActions.push(e);var u=o.silent;HD.call(this,e,u);var f=o.flush;f?this._zr.flush():!1!==f&&tn.browser.weChat&&this._throttledZrFlush(),hh.call(this,u),w_.call(this,u)}},t.prototype.updateLabelLayout=function(){no.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(e){if(!this._disposed){var o=e.seriesIndex;this.getModel().getSeriesByIndex(o).appendData(e),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},t.internalField=function(){function e(y){y.clearColorPalette(),y.eachSeries(function(b){b.clearColorPalette()})}function u(y){for(var b=[],C=y.currentStates,S=0;S0?{duration:k,delay:C.get("delay"),easing:C.get("easing")}:null;b.eachRendered(function(x){if(x.states&&x.states.emphasis){if(Bd(x))return;if(x instanceof Xt&&function dl(a){var t=Ld(a);t.normalFill=a.style.fill,t.normalStroke=a.style.stroke;var e=a.states.select||{};t.selectFill=e.style&&e.style.fill||null,t.selectStroke=e.style&&e.style.stroke||null}(x),x.__dirty){var T=x.prevStates;T&&x.useStates(T)}if(S){x.stateTransition=D;var E=x.getTextContent(),P=x.getTextGuideLine();E&&(E.stateTransition=D),P&&(P.stateTransition=D)}x.__dirty&&u(x)}})}Mi=function(b){var C=b._scheduler;C.restorePipelines(b._model),C.prepareStageTasks(),gf(b,!0),gf(b,!1),C.plan()},gf=function(b,C){for(var S=b._model,k=b._scheduler,D=C?b._componentsViews:b._chartsViews,x=C?b._componentsMap:b._chartsMap,T=b._zr,E=b._api,P=0;Pb.get("hoverLayerThreshold")&&!tn.node&&!tn.worker&&b.eachSeries(function(D){if(!D.preventUsingHoverLayer){var x=y._chartsMap[D.__viewId];x.__alive&&x.eachRendered(function(T){T.states.emphasis&&(T.states.emphasis.hoverLayer=!0)})}})}(b,C),no.trigger("series:afterupdate",C,S,D)},ko=function(b){b[C_]=!0,b.getZr().wakeUp()},a8=function(b){!b[C_]||(b.getZr().storage.traverse(function(C){Bd(C)||u(C)}),b[C_]=!1)},UD=function(b){return new(function(C){function S(){return null!==C&&C.apply(this,arguments)||this}return de(S,C),S.prototype.getCoordinateSystems=function(){return b._coordSysMgr.getCoordinateSystems()},S.prototype.getComponentByElement=function(k){for(;k;){var D=k.__ecComponentInfo;if(null!=D)return b._model.getComponent(D.mainType,D.index);k=k.parent}},S.prototype.enterEmphasis=function(k,D){jo(k,D),ko(b)},S.prototype.leaveEmphasis=function(k,D){Bu(k,D),ko(b)},S.prototype.enterBlur=function(k){fk(k),ko(b)},S.prototype.leaveBlur=function(k){dk(k),ko(b)},S.prototype.enterSelect=function(k){oI(k),ko(b)},S.prototype.leaveSelect=function(k){hk(k),ko(b)},S.prototype.getModel=function(){return b.getModel()},S.prototype.getViewOfComponentModel=function(k){return b.getViewOfComponentModel(k)},S.prototype.getViewOfSeriesModel=function(k){return b.getViewOfSeriesModel(k)},S}(L4))(b)},M_=function(b){function C(S,k){for(var D=0;D=0)){h8.push(e);var f=DD.wrapStageHandler(e,u);f.__prio=t,f.__raw=e,a.push(f)}}function kv(a,t){qD[a]=t}function eX(a){Pg({createCanvas:a})}function FC(a,t,e){var o=m2("registerMap");o&&o(a,t,e)}function JD(a){var t=m2("getMap");return t&&t(a)}var Dv=function lf(a){var t=(a=ot(a)).type;t||Pn("");var o=t.split(":");2!==o.length&&Pn("");var u=!1;"echarts"===o[0]&&(t=o[1],u=!0),a.__isBuiltIn=u,z.set(t,a)};ph(2e3,CG),ph(4500,QR),ph(4500,wG),ph(2e3,ft),ph(4500,LG),ph(7e3,function ye(a,t){a.eachRawSeries(function(e){if(!a.isSeriesFiltered(e)){var o=e.getData();o.hasItemVisual()&&o.each(function(d){var h=o.getItemVisual(d,"decal");h&&(o.ensureUniqueItemVisual(d,"style").decal=__(h,t))});var u=o.getVisual("decal");u&&(o.getVisual("style").decal=__(u,t))}})}),XD(eh),KD(900,function ov(a){var t=$e();a.eachSeries(function(e){var o=e.get("stack");if(o){var u=t.get(o)||t.set(o,[]),f=e.getData(),d={stackResultDimension:f.getCalculationInfo("stackResultDimension"),stackedOverDimension:f.getCalculationInfo("stackedOverDimension"),stackedDimension:f.getCalculationInfo("stackedDimension"),stackedByDimension:f.getCalculationInfo("stackedByDimension"),isStackedByIndex:f.getCalculationInfo("isStackedByIndex"),data:f,seriesModel:e};if(!d.stackedDimension||!d.isStackedByIndex&&!d.stackedByDimension)return;u.length&&f.setCalculationInfo("stackedOnSeries",u[u.length-1].seriesModel),u.push(d)}}),t.each(sv)}),kv("default",function SG(a,t){rt(t=t||{},{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 e=new ct,o=new fn({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});e.add(o);var d,u=new dn({style:{text:t.text,fill:t.textColor,fontSize:t.fontSize,fontWeight:t.fontWeight,fontStyle:t.fontStyle,fontFamily:t.fontFamily},zlevel:t.zlevel,z:10001}),f=new fn({style:{fill:"none"},textContent:u,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});return e.add(f),t.showSpinner&&((d=new t_({shape:{startAngle:-mC/2,endAngle:-mC/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*mC/2}).start("circularInOut"),d.animateShape(!0).when(1e3,{startAngle:3*mC/2}).delay(300).start("circularInOut"),e.add(d)),e.resize=function(){var h=u.getBoundingRect().width,v=t.showSpinner?t.spinnerRadius:0,g=(a.getWidth()-2*v-(t.showSpinner&&h?10:0)-h)/2-(t.showSpinner&&h?0:5+h/2)+(t.showSpinner?0:h/2)+(h?0:v),m=a.getHeight()/2;t.showSpinner&&d.setShape({cx:g,cy:m}),f.setShape({x:g-v,y:m-v,width:2*v,height:2*v}),o.setShape({x:0,y:0,width:a.getWidth(),height:a.getHeight()})},e.resize(),e}),uu({type:Fd,event:Fd,update:Fd},Jr),uu({type:w0,event:w0,update:w0},Jr),uu({type:Wp,event:Wp,update:Wp},Jr),uu({type:Yp,event:Yp,update:Yp},Jr),uu({type:qp,event:qp,update:qp},Jr),LC("light",OG),LC("dark",IG);var L2={},p8=[],ex={registerPreprocessor:XD,registerProcessor:KD,registerPostInit:c8,registerPostUpdate:$D,registerUpdateLifecycle:QD,registerAction:uu,registerCoordinateSystem:f8,registerLayout:d8,registerVisual:ph,registerTransform:Dv,registerLoading:kv,registerMap:FC,registerImpl:function ZG(a,t){hr[a]=t},PRIORITY:k2,ComponentModel:sn,ComponentView:Ze,SeriesModel:fr,ChartView:jn,registerComponentModel:function(t){sn.registerClass(t)},registerComponentView:function(t){Ze.registerClass(t)},registerSeriesModel:function(t){fr.registerClass(t)},registerChartView:function(t){jn.registerClass(t)},registerSubTypeDefaulter:function(t,e){sn.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){cn(t,e)}};function Nt(a){Ce(a)?q(a,function(t){Nt(t)}):Ct(p8,a)>=0||(p8.push(a),et(a)&&(a={install:a}),a.install(ex))}function yf(a){return null==a?0:a.length||1}function tx(a){return a}var tX=function(){function a(t,e,o,u,f,d){this._old=t,this._new=e,this._oldKeyGetter=o||tx,this._newKeyGetter=u||tx,this.context=f,this._diffModeMultiple="multiple"===d}return a.prototype.add=function(t){return this._add=t,this},a.prototype.update=function(t){return this._update=t,this},a.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},a.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},a.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},a.prototype.remove=function(t){return this._remove=t,this},a.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},a.prototype._executeOneToOne=function(){var t=this._old,e=this._new,o={},u=new Array(t.length),f=new Array(e.length);this._initIndexMap(t,null,u,"_oldKeyGetter"),this._initIndexMap(e,o,f,"_newKeyGetter");for(var d=0;d1){var m=v.shift();1===v.length&&(o[h]=v[0]),this._update&&this._update(m,d)}else 1===g?(o[h]=null,this._update&&this._update(v,d)):this._remove&&this._remove(d)}this._performRestAdd(f,o)},a.prototype._executeMultiple=function(){var e=this._new,o={},u={},f=[],d=[];this._initIndexMap(this._old,o,f,"_oldKeyGetter"),this._initIndexMap(e,u,d,"_newKeyGetter");for(var h=0;h1&&1===b)this._updateManyToOne&&this._updateManyToOne(m,g),u[v]=null;else if(1===y&&b>1)this._updateOneToMany&&this._updateOneToMany(m,g),u[v]=null;else if(1===y&&1===b)this._update&&this._update(m,g),u[v]=null;else if(y>1&&b>1)this._updateManyToMany&&this._updateManyToMany(m,g),u[v]=null;else if(y>1)for(var C=0;C1)for(var h=0;h30}var z2,xv,O_,I_,ix,Tv,Ku,P_=Ke,cu=Me,_8="undefined"==typeof Int32Array?Array:Int32Array,V2=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],H2=["_approximateExtent"],G2=function(){function a(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var o,u=!1;N2(t)?(o=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(u=!0,o=t),o=o||["x","y"];for(var f={},d=[],h={},v=!1,g={},m=0;m=e)){var u=this._store.getProvider();this._updateOrdinalMeta();var f=this._nameList,d=this._idList;if(u.getSource().sourceFormat===pl&&!u.pure)for(var g=[],m=t;m0},a.prototype.ensureUniqueItemVisual=function(t,e){var o=this._itemVisuals,u=o[t];u||(u=o[t]={});var f=u[e];return null==f&&(Ce(f=this.getVisual(e))?f=f.slice():P_(f)&&(f=ve({},f)),u[e]=f),f},a.prototype.setItemVisual=function(t,e,o){var u=this._itemVisuals[t]||{};this._itemVisuals[t]=u,P_(e)?ve(u,e):u[e]=o},a.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},a.prototype.setLayout=function(t,e){P_(t)?ve(this._layout,t):this._layout[t]=e},a.prototype.getLayout=function(t){return this._layout[t]},a.prototype.getItemLayout=function(t){return this._itemLayouts[t]},a.prototype.setItemLayout=function(t,e,o){this._itemLayouts[t]=o?ve(this._itemLayouts[t]||{},e):e},a.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},a.prototype.setItemGraphicEl=function(t,e){wm(this.hostModel&&this.hostModel.seriesIndex,this.dataType,t,e),this._graphicEls[t]=e},a.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},a.prototype.eachItemGraphicEl=function(t,e){q(this._graphicEls,function(o,u){o&&t&&t.call(e,o,u)})},a.prototype.cloneShallow=function(t){return t||(t=new a(this._schema?this._schema:cu(this.dimensions,this._getDimInfo,this),this.hostModel)),ix(t,this),t._store=this._store,t},a.prototype.wrapMethod=function(t,e){var o=this[t];!et(o)||(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var u=o.apply(this,arguments);return e.apply(this,[u].concat(gp(arguments)))})},a.internalField=(z2=function(e){var o=e._invertedIndicesMap;q(o,function(u,f){var d=e._dimInfos[f],h=d.ordinalMeta,v=e._store;if(h){u=o[f]=new _8(h.categories.length);for(var g=0;g1&&(g+="__ec__"+y),f[o]=g}})),a}(),ga=G2;function b8(a,t){return R_(a,t).dimensions}function R_(a,t){Qc(a)||(a=ef(a));var e=(t=t||{}).coordDimensions||[],o=t.dimensionsDefine||a.dimensionsDefine||[],u=$e(),f=[],d=function U2(a,t,e,o){var u=Math.max(a.dimensionsDetectedCount||1,t.length,e.length,o||0);return q(t,function(f){var d;Ke(f)&&(d=f.dimsDef)&&(u=Math.max(u,d.length))}),u}(a,e,o,t.dimensionsCount),h=t.canOmitUnusedDimensions&&Pt(d),v=o===a.dimensionsDefine,g=v?B2(a):BC(o),m=t.encodeDefine;!m&&t.encodeDefaulter&&(m=t.encodeDefaulter(a,d));for(var y=$e(m),b=new X4(d),C=0;C0&&(o.name=u+(f-1)),f++,t.set(u,f)}}(f),new m8({source:a,dimensions:f,fullDimensionCount:d,dimensionOmitted:h})}function w8(a,t,e){var o=t.data;if(e||o.hasOwnProperty(a)){for(var u=0;o.hasOwnProperty(a+u);)u++;a+=u}return t.set(a,!0),a}var j2=function a(t){this.coordSysDims=[],this.axisMap=$e(),this.categoryAxisMap=$e(),this.coordSysName=t},M8={cartesian2d:function(t,e,o,u){var f=t.getReferringComponents("xAxis",ii).models[0],d=t.getReferringComponents("yAxis",ii).models[0];e.coordSysDims=["x","y"],o.set("x",f),o.set("y",d),L_(f)&&(u.set("x",f),e.firstCategoryDimIndex=0),L_(d)&&(u.set("y",d),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,o,u){var f=t.getReferringComponents("singleAxis",ii).models[0];e.coordSysDims=["single"],o.set("single",f),L_(f)&&(u.set("single",f),e.firstCategoryDimIndex=0)},polar:function(t,e,o,u){var f=t.getReferringComponents("polar",ii).models[0],d=f.findAxisModel("radiusAxis"),h=f.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],o.set("radius",d),o.set("angle",h),L_(d)&&(u.set("radius",d),e.firstCategoryDimIndex=0),L_(h)&&(u.set("angle",h),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,o,u){e.coordSysDims=["lng","lat"]},parallel:function(t,e,o,u){var f=t.ecModel,d=f.getComponent("parallel",t.get("parallelIndex")),h=e.coordSysDims=d.dimensions.slice();q(d.parallelAxisIndex,function(v,g){var m=f.getComponent("parallelAxis",v),y=h[g];o.set(y,m),L_(m)&&(u.set(y,m),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=g))})}};function L_(a){return"category"===a.get("type")}function HC(a,t,e){var f,d,h,o=(e=e||{}).byIndex,u=e.stackedCoordDimension;!function W2(a){return!N2(a.schema)}(t)?(f=(d=t.schema).dimensions,h=t.store):f=t;var g,m,y,b,v=!(!a||!a.get("stack"));if(q(f,function(T,E){Ne(T)&&(f[E]=T={name:T}),v&&!T.isExtraCoord&&(!o&&!g&&T.ordinalMeta&&(g=T),!m&&"ordinal"!==T.type&&"time"!==T.type&&(!u||u===T.coordDim)&&(m=T))}),m&&!o&&!g&&(o=!0),m){y="__\0ecstackresult_"+a.id,b="__\0ecstackedover_"+a.id,g&&(g.createInvertedIndices=!0);var C=m.coordDim,S=m.type,k=0;q(f,function(T){T.coordDim===C&&k++});var D={name:y,coordDim:C,coordDimIndex:k,type:S,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:f.length},x={name:b,coordDim:b,coordDimIndex:k+1,type:S,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:f.length+1};d?(h&&(D.storeDimIndex=h.ensureCalculationDimension(b,S),x.storeDimIndex=h.ensureCalculationDimension(y,S)),d.appendCalculationDimension(D),d.appendCalculationDimension(x)):(f.push(D),f.push(x))}return{stackedDimension:m&&m.name,stackedByDimension:g&&g.name,isStackedByIndex:o,stackedOverDimension:b,stackResultDimension:y}}function $u(a,t){return!!t&&t===a.getCalculationInfo("stackedDimension")}function ax(a,t){return $u(a,t)?a.getCalculationInfo("stackResultDimension"):t}var wl=function ox(a,t,e){e=e||{};var u,o=t.getSourceManager(),f=!1;a?(f=!0,u=ef(a)):f=(u=o.getSource()).sourceFormat===pl;var d=function S8(a){var t=a.get("coordinateSystem"),e=new j2(t),o=M8[t];if(o)return o(a,e,e.axisMap,e.categoryAxisMap),e}(t),h=function Y2(a,t){var u,e=a.get("coordinateSystem"),o=Hm.get(e);return t&&t.coordSysDims&&(u=Me(t.coordSysDims,function(f){var d={name:f},h=t.axisMap.get(f);if(h){var v=h.get("type");d.type=rx(v)}return d})),u||(u=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),u}(t,d),v=e.useEncodeDefaulter,g=et(v)?v:v?wt(U0,h,t):null,y=R_(u,{coordDimensions:h,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:g,canOmitUnusedDimensions:!f}),b=function F_(a,t,e){var o,u;return e&&q(a,function(f,d){var v=e.categoryAxisMap.get(f.coordDim);v&&(null==o&&(o=d),f.ordinalMeta=v.getOrdinalMeta(),t&&(f.createInvertedIndices=!0)),null!=f.otherDims.itemName&&(u=!0)}),!u&&null!=o&&(a[o].otherDims.itemName=0),o}(y.dimensions,e.createInvertedIndices,d),C=f?null:o.getSharedDataStore(y),S=HC(t,{schema:y,store:C}),k=new ga(y,t);k.setCalculationInfo(S);var D=null!=b&&function q2(a){if(a.sourceFormat===pl){var t=function k8(a){for(var t=0;te[1]&&(e[1]=t[1])},a.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},a.prototype.getExtent=function(){return this._extent.slice()},a.prototype.setExtent=function(t,e){var o=this._extent;isNaN(t)||(o[0]=t),isNaN(e)||(o[1]=e)},a.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},a.prototype.isBlank=function(){return this._isBlank},a.prototype.setBlank=function(t){this._isBlank=t},a}();Ru(sx);var bf=sx,D8=0,iX=function(){function a(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++D8}return a.createByAxisModel=function(t){var e=t.option,o=e.data,u=o&&Me(o,aX);return new a({categories:u,needCollect:!u,deduplication:!1!==e.dedplication})},a.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},a.prototype.parseAndCollect=function(t){var e,o=this._needCollect;if(!Ne(t)&&!o)return t;if(o&&!this._deduplication)return this.categories[e=this.categories.length]=t,e;var u=this._getOrCreateMap();return null==(e=u.get(t))&&(o?(this.categories[e=this.categories.length]=t,u.set(t,e)):e=NaN),e},a.prototype._getOrCreateMap=function(){return this._map||(this._map=$e(this.categories))},a}();function aX(a){return Ke(a)&&null!=a.value?a.value:a+""}var zC=iX;function lx(a){return"interval"===a.type||"log"===a.type}function ux(a){var t=Math.pow(10,IM(a)),e=a/t;return e?2===e?e=3:3===e?e=5:e*=2:e=1,Mr(e*t)}function Z2(a){return Xl(a)+2}function T8(a,t,e){a[t]=Math.max(Math.min(a[t],e[1]),e[0])}function cx(a,t){return a>=t[0]&&a<=t[1]}function GC(a,t){return t[1]===t[0]?.5:(a-t[0])/(t[1]-t[0])}function Av(a,t){return a*(t[1]-t[0])+t[0]}var A8=function(a){function t(e){var o=a.call(this,e)||this;o.type="ordinal";var u=o.getSetting("ordinalMeta");return u||(u=new zC({})),Ce(u)&&(u=new zC({categories:Me(u,function(f){return Ke(f)?f.value:f})})),o._ordinalMeta=u,o._extent=o.getSetting("extent")||[0,u.categories.length-1],o}return de(t,a),t.prototype.parse=function(e){return null==e?NaN:Ne(e)?this._ordinalMeta.getOrdinal(e):Math.round(e)},t.prototype.contain=function(e){return cx(e=this.parse(e),this._extent)&&null!=this._ordinalMeta.categories[e]},t.prototype.normalize=function(e){return GC(e=this._getTickNumber(this.parse(e)),this._extent)},t.prototype.scale=function(e){return e=Math.round(Av(e,this._extent)),this.getRawOrdinalNumber(e)},t.prototype.getTicks=function(){for(var e=[],o=this._extent,u=o[0];u<=o[1];)e.push({value:u}),u++;return e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(null!=e){for(var o=e.ordinalNumbers,u=this._ordinalNumbersByTick=[],f=this._ticksByOrdinalNumber=[],d=0,h=this._ordinalMeta.categories.length,v=Math.min(h,o.length);d=0&&e=0&&e=e},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t}(bf);bf.registerClass(A8);var fx=A8,Ev=Mr,Cf=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return de(t,a),t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return cx(e,this._extent)},t.prototype.normalize=function(e){return GC(e,this._extent)},t.prototype.scale=function(e){return Av(e,this._extent)},t.prototype.setExtent=function(e,o){var u=this._extent;isNaN(e)||(u[0]=parseFloat(e)),isNaN(o)||(u[1]=parseFloat(o))},t.prototype.unionExtent=function(e){var o=this._extent;e[0]o[1]&&(o[1]=e[1]),this.setExtent(o[0],o[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(e){this._interval=e,this._niceExtent=this._extent.slice(),this._intervalPrecision=Z2(e)},t.prototype.getTicks=function(e){var o=this._interval,u=this._extent,f=this._niceExtent,d=this._intervalPrecision,h=[];if(!o)return h;u[0]1e4)return[];var m=h.length?h[h.length-1].value:f[1];return u[1]>m&&h.push(e?{value:Ev(m+o,d)}:{value:u[1]}),h},t.prototype.getMinorTicks=function(e){for(var o=this.getTicks(!0),u=[],f=this.getExtent(),d=1;df[0]&&Co&&(d=u.interval=o);var h=u.intervalPrecision=Z2(d);return function oX(a,t){!isFinite(a[0])&&(a[0]=t[0]),!isFinite(a[1])&&(a[1]=t[1]),T8(a,0,t),T8(a,1,t),a[0]>a[1]&&(a[0]=a[1])}(u.niceTickExtent=[Mr(Math.ceil(a[0]/d)*d,h),Mr(Math.floor(a[1]/d)*d,h)],a),u}(f,e,o,u);this._intervalPrecision=h.intervalPrecision,this._interval=h.interval,this._niceExtent=h.niceTickExtent}},t.prototype.calcNiceExtent=function(e){var o=this._extent;if(o[0]===o[1])if(0!==o[0]){var u=o[0];e.fixMax||(o[1]+=u/2),o[0]-=u/2}else o[1]=1;isFinite(o[1]-o[0])||(o[0]=0,o[1]=1),this.calcNiceTicks(e.splitNumber,e.minInterval,e.maxInterval);var d=this._interval;e.fixMin||(o[0]=Ev(Math.floor(o[0]/d)*d)),e.fixMax||(o[1]=Ev(Math.ceil(o[1]/d)*d))},t.prototype.setNiceExtent=function(e,o){this._niceExtent=[e,o]},t.type="interval",t}(bf);bf.registerClass(Cf);var Qu=Cf,UC="undefined"!=typeof Float32Array,dx=UC?Float32Array:Array;function Ju(a){return Ce(a)?UC?new Float32Array(a):a:new dx(a)}var N_="__ec_stack_";function B_(a){return a.get("stack")||N_+a.seriesIndex}function jC(a){return a.dim+a.index}function E8(a,t){var e=[];return t.eachSeriesByType(a,function(o){$2(o)&&e.push(o)}),e}function P8(a){var t=function lX(a){var t={};q(a,function(v){var m=v.coordinateSystem.getBaseAxis();if("time"===m.type||"value"===m.type)for(var y=v.getData(),b=m.dim+"_"+m.index,C=y.getDimensionIndex(y.mapDimension(m.dim)),S=y.getStore(),k=0,D=S.count();k0&&(f=null===f?h:Math.min(f,h))}e[o]=f}}return e}(a),e=[];return q(a,function(o){var h,f=o.coordinateSystem.getBaseAxis(),d=f.getExtent();if("category"===f.type)h=f.getBandWidth();else if("value"===f.type||"time"===f.type){var g=t[f.dim+"_"+f.index],m=Math.abs(d[1]-d[0]),y=f.scale.getExtent(),b=Math.abs(y[1]-y[0]);h=g?m/b*g:m}else{var C=o.getData();h=Math.abs(d[1]-d[0])/C.count()}var S=Ie(o.get("barWidth"),h),k=Ie(o.get("barMaxWidth"),h),D=Ie(o.get("barMinWidth")||(px(o)?.5:1),h),x=o.get("barGap"),T=o.get("barCategoryGap");e.push({bandWidth:h,barWidth:S,barMaxWidth:k,barMinWidth:D,barGap:x,barCategoryGap:T,axisKey:jC(f),stackId:B_(o)})}),hx(e)}function hx(a){var t={};q(a,function(o,u){var f=o.axisKey,d=o.bandWidth,h=t[f]||{bandWidth:d,remainedWidth:d,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},v=h.stacks;t[f]=h;var g=o.stackId;v[g]||h.autoWidthCount++,v[g]=v[g]||{width:0,maxWidth:0};var m=o.barWidth;m&&!v[g].width&&(v[g].width=m,m=Math.min(h.remainedWidth,m),h.remainedWidth-=m);var y=o.barMaxWidth;y&&(v[g].maxWidth=y);var b=o.barMinWidth;b&&(v[g].minWidth=b);var C=o.barGap;null!=C&&(h.gap=C);var S=o.barCategoryGap;null!=S&&(h.categoryGap=S)});var e={};return q(t,function(o,u){e[u]={};var f=o.stacks,d=o.bandWidth,h=o.categoryGap;if(null==h){var v=Zt(f).length;h=Math.max(35-4*v,15)+"%"}var g=Ie(h,d),m=Ie(o.gap,1),y=o.remainedWidth,b=o.autoWidthCount,C=(y-g)/(b+(b-1)*m);C=Math.max(C,0),q(f,function(x){var T=x.maxWidth,E=x.minWidth;if(x.width){var P=x.width;T&&(P=Math.min(P,T)),E&&(P=Math.max(P,E)),x.width=P,y-=P+m*P,b--}else P=C,T&&TP&&(P=E),P!==C&&(x.width=P,y-=P+m*P,b--)}),C=(y-g)/(b+(b-1)*m),C=Math.max(C,0);var k,S=0;q(f,function(x,T){x.width||(x.width=C),k=x,S+=x.width*(1+m)}),k&&(S-=k.width*m);var D=-S/2;q(f,function(x,T){e[u][T]=e[u][T]||{bandWidth:d,offset:D,width:x.width},D+=x.width*(1+m)})}),e}function X2(a,t){var e=E8(a,t),o=P8(e);q(e,function(u){var f=u.getData(),h=u.coordinateSystem.getBaseAxis(),v=B_(u),g=o[jC(h)][v];f.setLayout({bandWidth:g.bandWidth,offset:g.offset,size:g.width})})}function K2(a){return{seriesType:a,plan:Qa(),reset:function(e){if($2(e)){var o=e.getData(),u=e.coordinateSystem,f=u.getBaseAxis(),d=u.getOtherAxis(f),h=o.getDimensionIndex(o.mapDimension(d.dim)),v=o.getDimensionIndex(o.mapDimension(f.dim)),g=e.get("showBackground",!0),m=o.mapDimension(d.dim),y=o.getCalculationInfo("stackResultDimension"),b=$u(o,m)&&!!o.getCalculationInfo("stackedOnSeries"),C=d.isHorizontal(),S=function Q2(a,t){return t.toGlobalCoord(t.dataToCoord("log"===t.type?1:0))}(0,d),k=px(e),D=e.get("barMinHeight")||0,x=y&&o.getDimensionIndex(y),T=o.getLayout("size"),E=o.getLayout("offset");return{progress:function(V,N){for(var ee,H=V.count,j=k&&Ju(3*H),Z=k&&g&&Ju(3*H),W=k&&Ju(H),X=u.master.getRect(),J=C?X.width:X.height,re=N.getStore(),ie=0;null!=(ee=V.next());){var ce=re.get(b?x:h,ee),me=re.get(v,ee),pe=S,_e=void 0;b&&(_e=+ce-re.get(h,ee));var Pe=void 0,Be=void 0,He=void 0,nt=void 0;if(C){var ht=u.dataToPoint([ce,me]);b&&(pe=u.dataToPoint([_e,me])[0]),Pe=pe,Be=ht[1]+E,He=ht[0]-pe,nt=T,Math.abs(He)0)for(var h=0;h=0;--h)if(v[g]){f=v[g];break}f=f||d.none}if(Ce(f)){var y=null==a.level?0:a.level>=0?a.level:f.length+a.level;f=f[y=Math.min(y,f.length-1)]}}return Nm(new Date(a.value),f,u,o)}(e,o,u,this.getSetting("locale"),f)},t.prototype.getTicks=function(){var o=this._extent,u=[];if(!this._interval)return u;u.push({value:o[0],level:0});var f=this.getSetting("useUTC"),d=function cX(a,t,e,o){var f=yI,d=0;function h(W,X,J,ee,re,ie,ce){for(var me=new Date(X),pe=X,_e=me[ee]();pe1&&0===ie&&J.unshift({value:J[0].value-pe})}}for(ie=0;ie=o[0]&&T<=o[1]&&y++)}var E=(o[1]-o[0])/t;if(y>1.5*E&&b>E/1.5||(g.push(D),y>E||a===f[C]))break}m=[]}}var P=Un(Me(g,function(W){return Un(W,function(X){return X.value>=o[0]&&X.value<=o[1]&&!X.notAdd})}),function(W){return W.length>0}),V=[],N=P.length-1;for(C=0;Cu&&(this._approxInterval=u);var h=WC.length,v=Math.min(function(t,e,o,u){for(;o>>1;t[f][1]16?16:a>7.5?7:a>3.5?4:a>1.5?2:1}function uX(a){return(a/=2592e6)>6?6:a>3?3:a>2?2:1}function nL(a){return(a/=Lm)>12?12:a>6?6:a>3.5?4:a>2?2:1}function Pv(a,t){return(a/=t?6e4:1e3)>30?30:a>20?20:a>15?15:a>10?10:a>5?5:a>2?2:1}function I8(a){return hi(a,!0)}function R8(a,t,e){var o=new Date(a);switch(Fm(t)){case"year":case"month":o[H0(e)](0);case"day":o[Dk(e)](1);case"hour":o[kI(e)](0);case"minute":o[DI(e)](0);case"second":o[xI(e)](0),o[xk(e)](0)}return o.getTime()}bf.registerClass(eL);var L8=eL,rL=bf.prototype,V_=Qu.prototype,fX=Mr,dX=Math.floor,hX=Math.ceil,vx=Math.pow,Sl=Math.log,gx=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new Qu,e._interval=0,e}return de(t,a),t.prototype.getTicks=function(e){var u=this._extent,f=this._originalScale.getExtent();return Me(V_.getTicks.call(this,e),function(h){var v=h.value,g=Mr(vx(this.base,v));return g=v===u[0]&&this._fixMin?mx(g,f[0]):g,{value:g=v===u[1]&&this._fixMax?mx(g,f[1]):g}},this)},t.prototype.setExtent=function(e,o){var u=this.base;e=Sl(e)/Sl(u),o=Sl(o)/Sl(u),V_.setExtent.call(this,e,o)},t.prototype.getExtent=function(){var e=this.base,o=rL.getExtent.call(this);o[0]=vx(e,o[0]),o[1]=vx(e,o[1]);var f=this._originalScale.getExtent();return this._fixMin&&(o[0]=mx(o[0],f[0])),this._fixMax&&(o[1]=mx(o[1],f[1])),o},t.prototype.unionExtent=function(e){this._originalScale.unionExtent(e);var o=this.base;e[0]=Sl(e[0])/Sl(o),e[1]=Sl(e[1])/Sl(o),rL.unionExtent.call(this,e)},t.prototype.unionExtentFromData=function(e,o){this.unionExtent(e.getApproximateExtent(o))},t.prototype.calcNiceTicks=function(e){e=e||10;var o=this._extent,u=o[1]-o[0];if(!(u===1/0||u<=0)){var f=Op(u);for(e/u*f<=.5&&(f*=10);!isNaN(f)&&Math.abs(f)<1&&Math.abs(f)>0;)f*=10;var h=[Mr(hX(o[0]/f)*f),Mr(dX(o[1]/f)*f)];this._interval=f,this._niceExtent=h}},t.prototype.calcNiceExtent=function(e){V_.calcNiceExtent.call(this,e),this._fixMin=e.fixMin,this._fixMax=e.fixMax},t.prototype.parse=function(e){return e},t.prototype.contain=function(e){return cx(e=Sl(e)/Sl(this.base),this._extent)},t.prototype.normalize=function(e){return GC(e=Sl(e)/Sl(this.base),this._extent)},t.prototype.scale=function(e){return e=Av(e,this._extent),vx(this.base,e)},t.type="log",t}(bf),F8=gx.prototype;function mx(a,t){return fX(a,Xl(t))}F8.getMinorTicks=V_.getMinorTicks,F8.getLabel=V_.getLabel,bf.registerClass(gx);var pX=gx,vX=function(){function a(t,e,o){this._prepareParams(t,e,o)}return a.prototype._prepareParams=function(t,e,o){o[1]0&&v>0&&!g&&(h=0),h<0&&v<0&&!m&&(v=0));var b=this._determinedMin,C=this._determinedMax;return null!=b&&(h=b,g=!0),null!=C&&(v=C,m=!0),{min:h,max:v,minFixed:g,maxFixed:m,isBlank:y}},a.prototype.modifyDataMinMax=function(t,e){this[fu[t]]=e},a.prototype.setDeterminedMinMax=function(t,e){this[YC[t]]=e},a.prototype.freeze=function(){this.frozen=!0},a}(),YC={min:"_determinedMin",max:"_determinedMax"},fu={min:"_dataMin",max:"_dataMax"};function N8(a,t,e){var o=a.rawExtentInfo;return o||(o=new vX(a,t,e),a.rawExtentInfo=o,o)}function qC(a,t){return null==t?null:Rg(t)?NaN:a.parse(t)}function iL(a,t){var e=a.type,o=N8(a,t,a.getExtent()).calculate();a.setBlank(o.isBlank);var u=o.min,f=o.max,d=t.ecModel;if(d&&"time"===e){var h=E8("bar",d),v=!1;if(q(h,function(y){v=v||y.getBaseAxis()===t.axis}),v){var g=P8(h),m=function Jt(a,t,e,o){var u=e.axis.getExtent(),f=u[1]-u[0],d=function O8(a,t,e){if(a&&t){var o=a[jC(t)];return null!=o&&null!=e?o[B_(e)]:o}}(o,e.axis);if(void 0===d)return{min:a,max:t};var h=1/0;q(d,function(C){h=Math.min(C.offset,h)});var v=-1/0;q(d,function(C){v=Math.max(C.offset+C.width,v)}),h=Math.abs(h),v=Math.abs(v);var g=h+v,m=t-a,b=m/(1-(h+v)/f)-m;return{min:a-=b*(h/g),max:t+=b*(v/g)}}(u,f,t,g);u=m.min,f=m.max}}return{extent:[u,f],fixMin:o.minFixed,fixMax:o.maxFixed}}function $o(a,t){var e=t,o=iL(a,e),u=o.extent,f=e.get("splitNumber");a instanceof pX&&(a.base=e.get("logBase"));var d=a.type,h=e.get("interval"),v="interval"===d||"time"===d;a.setExtent(u[0],u[1]),a.calcNiceExtent({splitNumber:f,fixMin:o.fixMin,fixMax:o.fixMax,minInterval:v?e.get("minInterval"):null,maxInterval:v?e.get("maxInterval"):null}),null!=h&&a.setInterval&&a.setInterval(h)}function H_(a,t){if(t=t||a.get("type"))switch(t){case"category":return new fx({ordinalMeta:a.getOrdinalMeta?a.getOrdinalMeta():a.getCategories(),extent:[1/0,-1/0]});case"time":return new L8({locale:a.ecModel.getLocaleModel(),useUTC:a.ecModel.get("useUTC")});default:return new(bf.getClass(t)||Qu)}}function Ov(a){var o,t=a.getLabelModel().get("formatter"),e="category"===a.type?a.scale.getExtent()[0]:null;return"time"===a.scale.type?(o=t,function(u,f){return a.scale.getFormattedLabel(u,f,o)}):Ne(t)?function(o){return function(u){var f=a.scale.getLabel(u);return o.replace("{value}",null!=f?f:"")}}(t):et(t)?function(o){return function(u,f){return null!=e&&(f=u.value-e),o(ZC(a,u),f,null!=u.level?{level:u.level}:null)}}(t):function(o){return a.scale.getLabel(o)}}function ZC(a,t){return"category"===a.type?a.scale.getLabel(t):t.value}function _x(a,t){var e=t*Math.PI/180,o=a.width,u=a.height,f=o*Math.abs(Math.cos(e))+Math.abs(u*Math.sin(e)),d=o*Math.abs(Math.sin(e))+Math.abs(u*Math.cos(e));return new zt(a.x,a.y,f,d)}function XC(a){var t=a.get("interval");return null==t?"auto":t}function du(a){return"category"===a.type&&0===XC(a.getLabelModel())}function tc(a,t){var e={};return q(a.mapDimensionsAll(t),function(o){e[ax(a,o)]=!0}),Zt(e)}var wf=function(){function a(){}return a.prototype.getNeedCrossZero=function(){return!this.option.scale},a.prototype.getCoordSysModel=function(){},a}();function aL(a){return wl(null,a)}var z8={isDimensionStacked:$u,enableDataStack:HC,getStackedDimension:ax};function z_(a,t){var e=t;t instanceof Kn||(e=new Kn(t));var o=H_(e);return o.setExtent(a[0],a[1]),$o(o,e),o}function G8(a){Ir(a,wf)}function U8(a,t){return Cr(a,null,null,"normal"!==(t=t||{}).state)}function yx(a,t){return Math.abs(a-t)<1e-8}function ki(a,t,e){var o=0,u=a[0];if(!u)return!1;for(var f=1;fu&&(o=d,u=v)}if(o)return function Zr(a){for(var t=0,e=0,o=0,u=a.length,f=a[u-1][0],d=a[u-1][1],h=0;h>1^-(1&h),v=v>>1^-(1&v),u=h+=u,f=v+=f,o.push([h/e,v/e])}return o}function uL(a,t){return a=function Y8(a){if(!a.UTF8Encoding)return a;var t=a,e=t.UTF8Scale;return null==e&&(e=1024),q(t.features,function(u){var f=u.geometry,d=f.encodeOffsets,h=f.coordinates;if(d)switch(f.type){case"LineString":f.coordinates=q8(h,d,e);break;case"Polygon":case"MultiLineString":bx(h,d,e);break;case"MultiPolygon":q(h,function(v,g){return bx(v,d[g],e)})}}),t.UTF8Encoding=!1,t}(a),Me(Un(a.features,function(e){return e.geometry&&e.properties&&e.geometry.coordinates.length>0}),function(e){var o=e.properties,u=e.geometry,f=[];switch(u.type){case"Polygon":var d=u.coordinates;f.push(new j8(d[0],d.slice(1)));break;case"MultiPolygon":q(u.coordinates,function(v){v[0]&&f.push(new j8(v[0],v.slice(1)))});break;case"LineString":f.push(new sL([u.coordinates]));break;case"MultiLineString":f.push(new sL(u.coordinates))}var h=new lL(o[t||"name"],f,o.cp);return h.properties=o,h})}function KC(a,t,e,o,u,f,d,h){return new dn({style:{text:a,font:t,align:e,verticalAlign:o,padding:u,rich:f,overflow:d?"truncate":null,lineHeight:h}}).getBoundingRect()}var Sf=Sn();function Z8(a,t){var f,d,e=cL(a,"labels"),o=XC(t);return fL(e,o)||(et(o)?f=QC(a,o):(d="auto"===o?function X8(a){var t=Sf(a).autoInterval;return null!=t?t:Sf(a).autoInterval=a.calculateCategoryInterval()}(a):o,f=Qo(a,d)),Sx(e,o,{labels:f,labelCategoryInterval:d}))}function cL(a,t){return Sf(a)[t]||(Sf(a)[t]=[])}function fL(a,t){for(var e=0;e1&&m/v>2&&(g=Math.round(Math.ceil(g/v)*v));var y=du(a),b=d.get("showMinLabel")||y,C=d.get("showMaxLabel")||y;b&&g!==f[0]&&k(f[0]);for(var S=g;S<=f[1];S+=v)k(S);function k(D){var x={value:D};h.push(e?D:{formattedLabel:o(x),rawLabel:u.getLabel(x),tickValue:D})}return C&&S-v!==f[1]&&k(f[1]),h}function QC(a,t,e){var o=a.scale,u=Ov(a),f=[];return q(o.getTicks(),function(d){var h=o.getLabel(d),v=d.value;t(d.value,h)&&f.push(e?v:{formattedLabel:u(d),rawLabel:h,tickValue:v})}),f}var dL=[0,1],$8=function(){function a(t,e,o){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=o||[0,0]}return a.prototype.contain=function(t){var e=this._extent,o=Math.min(e[0],e[1]),u=Math.max(e[0],e[1]);return t>=o&&t<=u},a.prototype.containData=function(t){return this.scale.contain(t)},a.prototype.getExtent=function(){return this._extent.slice()},a.prototype.getPixelPrecision=function(t){return Ae(t||this.scale.getExtent(),this._extent)},a.prototype.setExtent=function(t,e){var o=this._extent;o[0]=t,o[1]=e},a.prototype.dataToCoord=function(t,e){var o=this._extent,u=this.scale;return t=u.normalize(t),this.onBand&&"ordinal"===u.type&&hL(o=o.slice(),u.count()),wn(t,dL,o,e)},a.prototype.coordToData=function(t,e){var o=this._extent,u=this.scale;this.onBand&&"ordinal"===u.type&&hL(o=o.slice(),u.count());var f=wn(t,o,dL,e);return this.scale.scale(f)},a.prototype.pointToData=function(t,e){},a.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),f=Me(function Ts(a,t){return"category"===a.type?function gX(a,t){var f,d,e=cL(a,"ticks"),o=XC(t),u=fL(e,o);if(u)return u;if((!t.get("show")||a.scale.isBlank())&&(f=[]),et(o))f=QC(a,o,!0);else if("auto"===o){var h=Z8(a,a.getLabelModel());d=h.labelCategoryInterval,f=Me(h.labels,function(v){return v.tickValue})}else f=Qo(a,d=o,!0);return Sx(e,o,{ticks:f,tickCategoryInterval:d})}(a,t):{ticks:Me(a.scale.getTicks(),function(e){return e.value})}}(this,e).ticks,function(h){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(h):h),tickValue:h}},this);return function Q8(a,t,e,o){var u=t.length;if(a.onBand&&!e&&u){var d,f=a.getExtent();if(1===u)t[0].coord=f[0],d=t[1]={coord:f[0]};else{var g=(t[u-1].coord-t[0].coord)/(t[u-1].tickValue-t[0].tickValue);q(t,function(C){C.coord-=g/2});var m=a.scale.getExtent();t.push(d={coord:t[u-1].coord+g*(1+m[1]-t[u-1].tickValue)})}var y=f[0]>f[1];b(t[0].coord,f[0])&&(o?t[0].coord=f[0]:t.shift()),o&&b(f[0],t[0].coord)&&t.unshift({coord:f[0]}),b(f[1],d.coord)&&(o?d.coord=f[1]:t.pop()),o&&b(d.coord,f[1])&&t.push({coord:f[1]})}function b(C,S){return C=Mr(C),S=Mr(S),y?C>S:C0&&e<100||(e=5),Me(this.scale.getMinorTicks(e),function(f){return Me(f,function(d){return{coord:this.dataToCoord(d),tickValue:d}},this)},this)},a.prototype.getViewLabels=function(){return function $C(a){return"category"===a.type?function Cx(a){var t=a.getLabelModel(),e=Z8(a,t);return!t.get("show")||a.scale.isBlank()?{labels:[],labelCategoryInterval:e.labelCategoryInterval}:e}(a):function mX(a){var t=a.scale.getTicks(),e=Ov(a);return{labels:Me(t,function(o,u){return{level:o.level,formattedLabel:e(o,u),rawLabel:a.scale.getLabel(o),tickValue:o.value}})}}(a)}(this).labels},a.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},a.prototype.getTickModel=function(){return this.model.getModel("axisTick")},a.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),o=e[1]-e[0]+(this.onBand?1:0);0===o&&(o=1);var u=Math.abs(t[1]-t[0]);return Math.abs(u)/o},a.prototype.calculateCategoryInterval=function(){return function K8(a){var t=function _X(a){var t=a.getLabelModel();return{axisRotate:a.getRotate?a.getRotate():a.isHorizontal&&!a.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}(a),e=Ov(a),o=(t.axisRotate-t.labelRotate)/180*Math.PI,u=a.scale,f=u.getExtent(),d=u.count();if(f[1]-f[0]<1)return 0;var h=1;d>40&&(h=Math.max(1,Math.floor(d/40)));for(var v=f[0],g=a.dataToCoord(v+1)-a.dataToCoord(v),m=Math.abs(g*Math.cos(o)),y=Math.abs(g*Math.sin(o)),b=0,C=0;v<=f[1];v+=h){var k,D=pd(e({value:v}),t.font,"center","top");k=1.3*D.height,b=Math.max(b,1.3*D.width,7),C=Math.max(C,k,7)}var x=b/m,T=C/y;isNaN(x)&&(x=1/0),isNaN(T)&&(T=1/0);var E=Math.max(0,Math.floor(Math.min(x,T))),P=Sf(a.model),V=a.getExtent(),N=P.lastAutoInterval,H=P.lastTickCount;return null!=N&&null!=H&&Math.abs(N-E)<=1&&Math.abs(H-d)<=1&&N>E&&P.axisExtent0===V[0]&&P.axisExtent1===V[1]?E=N:(P.lastTickCount=d,P.lastAutoInterval=E,P.axisExtent0=V[0],P.axisExtent1=V[1]),E}(this)},a}();function hL(a,t){var u=(a[1]-a[0])/t/2;a[0]+=u,a[1]-=u}var Fa=$8;function J8(a){var t=sn.extend(a);return sn.registerClass(t),t}function Hi(a){var t=Ze.extend(a);return Ze.registerClass(t),t}function jt(a){var t=fr.extend(a);return fr.registerClass(t),t}function _n(a){var t=jn.extend(a);return jn.registerClass(t),t}var G_=2*Math.PI,hu=eu.CMD,nc=["top","right","bottom","left"];function JC(a,t,e,o,u){var f=e.width,d=e.height;switch(a){case"top":o.set(e.x+f/2,e.y-t),u.set(0,-1);break;case"bottom":o.set(e.x+f/2,e.y+d+t),u.set(0,1);break;case"left":o.set(e.x-t,e.y+d/2),u.set(-1,0);break;case"right":o.set(e.x+f+t,e.y+d/2),u.set(1,0)}}function Ml(a,t,e,o,u,f,d,h,v){d-=a,h-=t;var g=Math.sqrt(d*d+h*h),m=(d/=g)*e+a,y=(h/=g)*e+t;if(Math.abs(o-u)%G_<1e-4)return v[0]=m,v[1]=y,g-e;if(f){var b=o;o=zc(u),u=zc(b)}else o=zc(o),u=zc(u);o>u&&(u+=G_);var C=Math.atan2(h,d);if(C<0&&(C+=G_),C>=o&&C<=u||C+G_>=o&&C+G_<=u)return v[0]=m,v[1]=y,g-e;var S=e*Math.cos(o)+a,k=e*Math.sin(o)+t,D=e*Math.cos(u)+a,x=e*Math.sin(u)+t,T=(S-d)*(S-d)+(k-h)*(k-h),E=(D-d)*(D-d)+(x-h)*(x-h);return T0){t=t/180*Math.PI,Do.fromArray(a[0]),rr.fromArray(a[1]),Br.fromArray(a[2]),Et.sub(pu,Do,rr),Et.sub(Dl,Br,rr);var e=pu.len(),o=Dl.len();if(!(e<.001||o<.001)){pu.scale(1/e),Dl.scale(1/o);var u=pu.dot(Dl);if(Math.cos(t)1&&Et.copy(ma,Br),ma.toArray(a[1])}}}}function vL(a,t,e){if(e<=180&&e>0){e=e/180*Math.PI,Do.fromArray(a[0]),rr.fromArray(a[1]),Br.fromArray(a[2]),Et.sub(pu,rr,Do),Et.sub(Dl,Br,rr);var o=pu.len(),u=Dl.len();if(!(o<.001||u<.001)&&(pu.scale(1/o),Dl.scale(1/u),pu.dot(t)=v)Et.copy(ma,Br);else{ma.scaleAndAdd(Dl,h/Math.tan(Math.PI/2-m));var y=Br.x!==rr.x?(ma.x-rr.x)/(Br.x-rr.x):(ma.y-rr.y)/(Br.y-rr.y);if(isNaN(y))return;y<0?Et.copy(ma,rr):y>1&&Et.copy(ma,Br)}ma.toArray(a[1])}}}function gL(a,t,e,o){var u="normal"===e,f=u?a:a.ensureState(e);f.ignore=t;var d=o.get("smooth");d&&!0===d&&(d=.3),f.shape=f.shape||{},d>0&&(f.shape.smooth=d);var h=o.getModel("lineStyle").getLineStyle();u?a.useStyle(h):f.style=h}function tU(a,t){var e=t.smooth,o=t.points;if(o)if(a.moveTo(o[0][0],o[0][1]),e>0&&o.length>=3){var u=Oc(o[0],o[1]),f=Oc(o[1],o[2]);if(!u||!f)return a.lineTo(o[1][0],o[1][1]),void a.lineTo(o[2][0],o[2][1]);var d=Math.min(u,f)*e,h=Ab([],o[1],o[0],d/u),v=Ab([],o[1],o[2],d/f),g=Ab([],h,v,.5);a.bezierCurveTo(h[0],h[1],h[0],h[1],g[0],g[1]),a.bezierCurveTo(v[0],v[1],v[0],v[1],o[2][0],o[2][1])}else for(var m=1;m0&&f&&N(-y/d,0,d);var T,E,D=a[0],x=a[d-1];return P(),T<0&&H(-T,.8),E<0&&H(E,.8),P(),V(T,E,1),V(E,T,-1),P(),T<0&&j(-T),E<0&&j(E),g}function P(){T=D.rect[t]-o,E=u-x.rect[t]-x.rect[e]}function V(Z,W,X){if(Z<0){var J=Math.min(W,-Z);if(J>0){N(J*X,0,d);var ee=J+Z;ee<0&&H(-ee*X,1)}else H(-Z*X,1)}}function N(Z,W,X){0!==Z&&(g=!0);for(var J=W;J0)for(ee=0;ee0;ee--)N(-X[ee-1]*ce,ee,d)}}function j(Z){var W=Z<0?-1:1;Z=Math.abs(Z);for(var X=Math.ceil(Z/(d-1)),J=0;J0?N(X,0,J+1):N(-X,d-J-1,d),(Z-=X)<=0)return}}function U_(a,t,e,o){return mL(a,"y","height",t,e,o)}function Iv(a){var t=[];a.sort(function(k,D){return D.priority-k.priority});var e=new zt(0,0,0,0);function o(k){if(!k.ignore){var D=k.ensureState("emphasis");null==D.ignore&&(D.ignore=!1)}k.ignore=!0}for(var u=0;u=0&&o.attr(f.oldLayoutSelect),Ct(b,"emphasis")>=0&&o.attr(f.oldLayoutEmphasis)),Ut(o,g,e,v)}else if(o.attr(g),!Hd(o).valueAnimation){var y=Ft(o.style.opacity,1);o.style.opacity=0,nr(o,{style:{opacity:y}},e,v)}if(f.oldLayout=g,o.states.select){var C=f.oldLayoutSelect={};rw(C,g,iw),rw(C,o.states.select,iw)}if(o.states.emphasis){var S=f.oldLayoutEmphasis={};rw(S,g,iw),rw(S,o.states.emphasis,iw)}F0(o,v,m,e,e)}if(u&&!u.ignore&&!u.invisible){var f=Tx(u),k={points:u.shape.points};(d=f.oldLayout)?(u.attr({shape:d}),Ut(u,{shape:k},e)):(u.setShape(k),u.style.strokePercent=0,nr(u,{style:{strokePercent:1}},e)),f.oldLayout=k}},a}(),Ax=iU,Ex=Sn();function yL(a){a.registerUpdateLifecycle("series:beforeupdate",function(t,e,o){var u=Ex(e).labelManager;u||(u=Ex(e).labelManager=new Ax),u.clearLabels()}),a.registerUpdateLifecycle("series:layoutlabels",function(t,e,o){var u=Ex(e).labelManager;o.updatedSeries.forEach(function(f){u.addLabelsOfSeries(e.getViewOfSeriesModel(f))}),u.updateLayoutConfig(e),u.layout(e),u.processLabelsOverall()})}function bL(a,t,e){var o=Ws.createCanvas(),u=t.getWidth(),f=t.getHeight(),d=o.style;return d&&(d.position="absolute",d.left="0",d.top="0",d.width=u+"px",d.height=f+"px",o.setAttribute("data-zr-dom-id",a)),o.width=u*e,o.height=f*e,o}Nt(yL);var Px=function(a){function t(e,o,u){var d,f=a.call(this)||this;f.motionBlur=!1,f.lastFrameAlpha=.7,f.dpr=1,f.virtual=!1,f.config={},f.incremental=!1,f.zlevel=0,f.maxRepaintRectCount=5,f.__dirty=!0,f.__firstTimePaint=!0,f.__used=!1,f.__drawIndex=0,f.__startIndex=0,f.__endIndex=0,f.__prevStartIndex=null,f.__prevEndIndex=null,u=u||xp,"string"==typeof e?d=bL(e,o,u):Ke(e)&&(e=(d=e).id),f.id=e,f.dom=d;var h=d.style;return h&&(nM(d),d.onselectstart=function(){return!1},h.padding="0",h.margin="0",h.borderWidth="0"),f.painter=o,f.dpr=u,f}return lr(t,a),t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=bL("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!==e&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,o,u,f){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var D,d=[],h=this.maxRepaintRectCount,v=!1,g=new zt(0,0,0,0);function m(T){if(T.isFinite()&&!T.isZero())if(0===d.length)(E=new zt(0,0,0,0)).copy(T),d.push(E);else{for(var P=!1,V=1/0,N=0,H=0;H=h)}}for(var y=this.__startIndex;y15)break}ce.prevElClipPaths&&T.restore()};if(E)if(0===E.length)Z=x.__endIndex;else for(var X=C.dpr,J=0;J0&&t>u[0]){for(v=0;vt);v++);h=o[u[v]]}if(u.splice(v+1,0,t),o[t]=e,!e.virtual)if(h){var g=h.dom;g.nextSibling?d.insertBefore(e.dom,g.nextSibling):d.appendChild(e.dom)}else d.firstChild?d.insertBefore(e.dom,d.firstChild):d.appendChild(e.dom);e.__painter=this}},a.prototype.eachLayer=function(t,e){for(var o=this._zlevelList,u=0;u0?.01:0),this._needsManuallyCompositing),m.__builtin__||Xe("ZLevel "+g+" has been used by unkown layer "+m.id),m!==f&&(m.__used=!0,m.__startIndex!==v&&(m.__dirty=!0),m.__startIndex=v,m.__drawIndex=m.incremental?-1:v,e(v),f=m),1&u.__dirty&&!u.__inHover&&(m.__dirty=!0,m.incremental&&m.__drawIndex<0&&(m.__drawIndex=v))}e(v),this.eachBuiltinLayer(function(y,b){!y.__used&&y.getElementCount()>0&&(y.__dirty=!0,y.__startIndex=y.__endIndex=y.__drawIndex=0),y.__dirty&&y.__drawIndex<0&&(y.__drawIndex=y.__startIndex)})},a.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},a.prototype._clearLayer=function(t){t.clear()},a.prototype.setBackgroundColor=function(t){this._backgroundColor=t,q(this._layers,function(e){e.setUnpainted()})},a.prototype.configLayer=function(t,e){if(e){var o=this._layerConfig;o[t]?Dt(o[t],e,!0):o[t]=e;for(var u=0;u=Mf:-g>=Mf),C=g>0?g%Mf:g%Mf+Mf;S=!!b||!xn(y)&&C>=ML==!!m;var k=t+o*en(d),D=e+u*SL(d);this._start&&this._add("M",k,D);var x=Math.round(f*Rx);if(b){var T=1/this._p,E=(m?1:-1)*(Mf-T);this._add("A",o,u,x,1,+m,t+o*en(d+E),e+u*SL(d+E)),T>.01&&this._add("A",o,u,x,0,+m,k,D)}else{var P=t+o*en(h),V=e+u*SL(h);this._add("A",o,u,x,+S,+m,P,V)}},a.prototype.rect=function(t,e,o,u){this._add("M",t,e),this._add("l",o,0),this._add("l",0,u),this._add("l",-o,0),this._add("Z")},a.prototype.closePath=function(){this._d.length>0&&this._add("Z")},a.prototype._add=function(t,e,o,u,f,d,h,v,g){for(var m=[],y=this._p,b=1;b"}(d,u.attrs)+(u.text||"")+(f?""+e+Me(f,function(v){return o(v)}).join(e)+e:"")+function dU(a){return""}(d)}(a)}function Fx(a){return{zrId:a,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function TL(a,t,e,o){return xi("svg","root",{width:a,height:t,xmlns:Es,"xmlns:xlink":DL,version:"1.1",baseProfile:"full",viewBox:!!o&&"0 0 "+a+" "+t},e)}var AL={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},_h="transform-origin";function pU(a,t,e){var o=ve({},a.shape);ve(o,t),a.buildPath(e,o);var u=new kf;return u.reset(Yb(a)),e.rebuildPath(u,1),u.generateStr(),u.getStr()}function vU(a,t){var e=t.originX,o=t.originY;(e||o)&&(a[_h]=e+"px "+o+"px")}var gU={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Nx(a,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=a,e}function PL(a){return Ne(a)?AL[a]?"cubic-bezier("+AL[a]+")":sd(a)?a:"":""}function ow(a,t,e,o){var u=a.animators,f=u.length,d=[];if(a instanceof Qe){var h=function EL(a,t,e){var f,d,u={};if(q(a.shape.paths,function(v){var g=Fx(e.zrId);g.animation=!0,ow(v,{},g,!0);var m=g.cssAnims,y=g.cssNodes,b=Zt(m),C=b.length;if(C){var S=m[d=b[C-1]];for(var k in S){var D=S[k];u[k]=u[k]||{d:""},u[k].d+=D.d||""}for(var x in y){var T=y[x].animation;T.indexOf(d)>=0&&(f=T)}}}),f){t.d=!1;var h=Nx(u,e);return f.replace(d,h)}}(a,t,e);if(h)d.push(h);else if(!f)return}else if(!f)return;for(var v={},g=0;g0}).length)return Nx(H,e)+" "+T[0]+" both"}for(var D in v)(h=k(v[D]))&&d.push(h);if(d.length){var x=e.zrId+"-cls-"+e.cssClassIdx++;e.cssNodes["."+x]={animation:d.join(",")},t.class=x}}var W_=Math.round;function sw(a){return a&&Ne(a.src)}function lw(a){return a&&et(a.toDataURL)}function Bx(a,t,e,o){(function bX(a,t,e,o){var u=null==t.opacity?1:t.opacity;if(e instanceof Ki)a("opacity",u);else{if(function kL(a){var t=a.fill;return null!=t&&t!==mh}(t)){var f=fs(t.fill);a("fill",f.color);var d=null!=t.fillOpacity?t.fillOpacity*f.opacity*u:f.opacity*u;(o||d<1)&&a("fill-opacity",d)}else a("fill",mh);if(function sU(a){var t=a.stroke;return null!=t&&t!==mh}(t)){var h=fs(t.stroke);a("stroke",h.color);var v=t.strokeNoScale?e.getLineScale():1,g=v?(t.lineWidth||0)/v:0,m=null!=t.strokeOpacity?t.strokeOpacity*h.opacity*u:h.opacity*u,y=t.strokeFirst;if((o||1!==g)&&a("stroke-width",g),(o||y)&&a("paint-order",y?"stroke":"fill"),(o||m<1)&&a("stroke-opacity",m),t.lineDash){var b=OD(e),C=b[0],S=b[1];C&&(S=yX(S||0),a("stroke-dasharray",C.join(",")),(S||o)&&a("stroke-dashoffset",S))}else o&&a("stroke-dasharray",mh);for(var k=0;kf?Gx(a,null==e[v+1]?null:e[v+1].elm,e,u,v):fw(a,t,o,f))}(e,o,u):xl(u)?(xl(a.text)&&Vx(e,""),Gx(e,null,u,0,u.length-1)):xl(o)?fw(e,o,0,o.length-1):xl(a.text)&&Vx(e,""):a.text!==t.text&&(xl(o)&&fw(e,o,0,o.length-1),Vx(e,t.text)))}var HL=0,AX=function(){function a(t,e,o){if(this.type="svg",this.refreshHover=function(){},this.configLayer=function(){},this.storage=e,this._opts=o=ve({},o),this.root=t,this._id="zr"+HL++,this._oldVNode=TL(o.width,o.height),t&&!o.ssr){var u=this._viewport=document.createElement("div");u.style.cssText="position:relative;overflow:hidden";var f=this._svgDom=this._oldVNode.elm=xL("svg");Ux(null,this._oldVNode),u.appendChild(f),t.appendChild(u)}this.resize(o.width,o.height)}return a.prototype.getType=function(){return this.type},a.prototype.getViewportRoot=function(){return this._viewport},a.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},a.prototype.getSvgDom=function(){return this._svgDom},a.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",function dw(a,t){if(Ch(a,t))Fv(a,t);else{var e=a.elm,o=Y_(e);Lv(t),null!==o&&(yh(o,t.elm,NL(e)),fw(o,[a],0,0))}}(this._oldVNode,t),this._oldVNode=t}},a.prototype.renderOneToVNode=function(t){return RL(t,Fx(this._id))},a.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),o=this._backgroundColor,u=this._width,f=this._height,d=Fx(this._id);d.animation=t.animation,d.willUpdate=t.willUpdate,d.compress=t.compress;var h=[];if(o&&"none"!==o){var v=fs(o);this._bgVNode=xi("rect","bg",{width:u,height:f,x:"0",y:"0",id:"0",fill:v.color,"fill-opacity":v.opacity}),h.push(this._bgVNode)}else this._bgVNode=null;var y=t.compress?null:this._mainVNode=xi("g","main",{},[]);this._paintList(e,d,y?y.children:h),y&&h.push(y);var b=Me(Zt(d.defs),function(k){return d.defs[k]});if(b.length&&h.push(xi("defs","defs",{},b)),t.animation){var C=function hU(a,t,e){var o=(e=e||{}).newline?"\n":"",u=" {"+o,f=o+"}",d=Me(Zt(a),function(v){return v+u+Me(Zt(a[v]),function(g){return g+":"+a[v][g]+";"}).join(o)+f}).join(o),h=Me(Zt(t),function(v){return"@keyframes "+v+u+Me(Zt(t[v]),function(g){return g+u+Me(Zt(t[v][g]),function(m){var y=t[v][g][m];return"d"===m&&(y='path("'+y+'")'),m+":"+y+";"}).join(o)+f}).join(o)+f}).join(o);return d||h?[""].join(o):""}(d.cssNodes,d.cssAnims,{newline:!0});if(C){var S=xi("style","stl",{},[],C);h.push(S)}}return TL(u,f,h,t.useViewBox)},a.prototype.renderToString=function(t){return Lx(this.renderToVNode({animation:Ft((t=t||{}).cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Ft(t.useViewBox,!0)}),{newline:!0})},a.prototype.setBackgroundColor=function(t){this._backgroundColor=t;var e=this._bgVNode;if(e&&e.elm){var o=fs(t),f=o.opacity;e.elm.setAttribute("fill",o.color),f<1&&e.elm.setAttribute("fill-opacity",f)}},a.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},a.prototype._paintList=function(t,e,o){for(var h,v,u=t.length,f=[],d=0,g=0,m=0;m=0&&(!b||!v||b[k]!==v[k]);k--);for(var D=S-1;D>k;D--)h=f[--d-1];for(var x=k+1;x-1&&(g.style.stroke=g.style.fill,g.style.fill="#fff",g.style.lineWidth=2),o},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={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},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,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t}(fr),DU=zL;function Nv(a,t){var e=a.mapDimensionsAll("defaultedLabel"),o=e.length;if(1===o){var u=uv(a,t,e[0]);return null!=u?u+"":null}if(o){for(var f=[],d=0;d=0&&o.push(t[f])}return o.join(" ")}var UL=function(a){function t(e,o,u,f){var d=a.call(this)||this;return d.updateData(e,o,u,f),d}return de(t,a),t.prototype._createSymbol=function(e,o,u,f,d){this.removeAll();var h=Dr(e,-1,-1,2,2,null,d);h.attr({z2:100,culling:!0,scaleX:f[0]/2,scaleY:f[1]/2}),h.drift=xU,this._symbolType=e,this.add(h)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){jo(this.childAt(0))},t.prototype.downplay=function(){Bu(this.childAt(0))},t.prototype.setZ=function(e,o){var u=this.childAt(0);u.zlevel=e,u.z=o},t.prototype.setDraggable=function(e){var o=this.childAt(0);o.draggable=e,o.cursor=e?"move":o.cursor},t.prototype.updateData=function(e,o,u,f){this.silent=!1;var d=e.getItemVisual(o,"symbol")||"circle",h=e.hostModel,v=t.getSymbolSize(e,o),g=d!==this._symbolType,m=f&&f.disableAnimation;if(g){var y=e.getItemVisual(o,"symbolKeepAspect");this._createSymbol(d,e,o,v,y)}else{(b=this.childAt(0)).silent=!1;var C={scaleX:v[0]/2,scaleY:v[1]/2};m?b.attr(C):Ut(b,C,h,o),iu(b)}if(this._updateCommon(e,o,v,u,f),g){var b=this.childAt(0);m||(C={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:b.style.opacity}},b.scaleX=b.scaleY=0,b.style.opacity=0,nr(b,C,h,o))}m&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,o,u,f,d){var g,m,y,b,C,S,k,D,x,h=this.childAt(0),v=e.hostModel;if(f&&(g=f.emphasisItemStyle,m=f.blurItemStyle,y=f.selectItemStyle,b=f.focus,C=f.blurScope,k=f.labelStatesModels,D=f.hoverScale,x=f.cursorStyle,S=f.emphasisDisabled),!f||e.hasItemOption){var T=f&&f.itemModel?f.itemModel:e.getItemModel(o),E=T.getModel("emphasis");g=E.getModel("itemStyle").getItemStyle(),y=T.getModel(["select","itemStyle"]).getItemStyle(),m=T.getModel(["blur","itemStyle"]).getItemStyle(),b=E.get("focus"),C=E.get("blurScope"),S=E.get("disabled"),k=va(T),D=E.getShallow("scale"),x=T.getShallow("cursor")}var P=e.getItemVisual(o,"symbolRotate");h.attr("rotation",(P||0)*Math.PI/180||0);var V=uh(e.getItemVisual(o,"symbolOffset"),u);V&&(h.x=V[0],h.y=V[1]),x&&h.attr("cursor",x);var N=e.getItemVisual(o,"style"),H=N.fill;if(h instanceof Ki){var j=h.style;h.useStyle(ve({image:j.image,x:j.x,y:j.y,width:j.width,height:j.height},N))}else h.useStyle(h.__isEmptyBrush?ve({},N):N),h.style.decal=null,h.setColor(H,d&&d.symbolInnerColor),h.style.strokeNoScale=!0;var Z=e.getItemVisual(o,"liftZ"),W=this._z2;null!=Z?null==W&&(this._z2=h.z2,h.z2+=Z):null!=W&&(h.z2=W,this._z2=null);var X=d&&d.useNameLabel;$i(h,k,{labelFetcher:v,labelDataIndex:o,defaultText:function J(ie){return X?e.getName(ie):Nv(e,ie)},inheritColor:H,defaultOpacity:N.opacity}),this._sizeX=u[0]/2,this._sizeY=u[1]/2;var ee=h.ensureState("emphasis");if(ee.style=g,h.ensureState("select").style=y,h.ensureState("blur").style=m,D){var re=Math.max(Cn(D)?D:1.1,3/this._sizeY);ee.scaleX=this._sizeX*re,ee.scaleY=this._sizeY*re}this.setSymbolScale(1),Yr(this,b,C,S)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,o,u){var f=this.childAt(0),d=vt(this).dataIndex,h=u&&u.animation;if(this.silent=f.silent=!0,u&&u.fadeLabel){var v=f.getTextContent();v&&ru(v,{style:{opacity:0}},o,{dataIndex:d,removeOpt:h,cb:function(){f.removeTextContent()}})}else f.removeTextContent();ru(f,{style:{opacity:0},scaleX:0,scaleY:0},o,{dataIndex:d,cb:e,removeOpt:h})},t.getSymbolSize=function(e,o){return p_(e.getItemVisual(o,"symbolSize"))},t}(ct);function xU(a,t){this.parent.drift(a,t)}var X_=UL;function hw(a,t,e,o){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(o.isIgnore&&o.isIgnore(e))&&!(o.clipShape&&!o.clipShape.contain(t[0],t[1]))&&"none"!==a.getItemVisual(e,"symbol")}function jL(a){return null!=a&&!Ke(a)&&(a={isIgnore:a}),a||{}}function WL(a){var t=a.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:va(t),cursorStyle:t.get("cursor")}}var TU=function(){function a(t){this.group=new ct,this._SymbolCtor=t||X_}return a.prototype.updateData=function(t,e){this._progressiveEls=null,e=jL(e);var o=this.group,u=t.hostModel,f=this._data,d=this._SymbolCtor,h=e.disableAnimation,v=WL(t),g={disableAnimation:h},m=e.getSymbolPoint||function(y){return t.getItemLayout(y)};f||o.removeAll(),t.diff(f).add(function(y){var b=m(y);if(hw(t,b,y,e)){var C=new d(t,y,v,g);C.setPosition(b),t.setItemGraphicEl(y,C),o.add(C)}}).update(function(y,b){var C=f.getItemGraphicEl(b),S=m(y);if(hw(t,S,y,e)){var k=t.getItemVisual(y,"symbol")||"circle",D=C&&C.getSymbolType&&C.getSymbolType();if(!C||D&&D!==k)o.remove(C),(C=new d(t,y,v,g)).setPosition(S);else{C.updateData(t,y,v,g);var x={x:S[0],y:S[1]};h?C.attr(x):Ut(C,x,u)}o.add(C),t.setItemGraphicEl(y,C)}else o.remove(C)}).remove(function(y){var b=f.getItemGraphicEl(y);b&&b.fadeOut(function(){o.remove(b)},u)}).execute(),this._getSymbolPoint=m,this._data=t},a.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl(function(o,u){var f=t._getSymbolPoint(u);o.setPosition(f),o.markRedraw()})},a.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=WL(t),this._data=null,this.group.removeAll()},a.prototype.incrementalUpdate=function(t,e,o){function u(v){v.isGroup||(v.incremental=!0,v.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],o=jL(o);for(var f=t.start;f0?e=o[0]:o[1]<0&&(e=o[1]),e}(u,e),d=o.dim,h=u.dim,v=t.mapDimension(h),g=t.mapDimension(d),m="x"===h||"radius"===h?1:0,y=Me(a.dimensions,function(S){return t.mapDimension(S)}),b=!1,C=t.getCalculationInfo("stackResultDimension");return $u(t,y[0])&&(b=!0,y[0]=C),$u(t,y[1])&&(b=!0,y[1]=C),{dataDimsForPoint:y,valueStart:f,valueAxisDim:h,baseAxisDim:d,stacked:!!b,valueDim:v,baseDim:g,baseDataOffset:m,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function qL(a,t,e,o){var u=NaN;a.stacked&&(u=e.get(e.getCalculationInfo("stackedOverDimension"),o)),isNaN(u)&&(u=a.valueStart);var f=a.baseDataOffset,d=[];return d[f]=e.get(a.baseDim,o),d[1-f]=u,t.dataToPoint(d)}var ic=Math.min,wh=Math.max;function Sh(a,t){return isNaN(a)||isNaN(t)}function ZL(a,t,e,o,u,f,d,h,v){for(var g,m,y,b,C,S,k=e,D=0;D=u||k<0)break;if(Sh(x,T)){if(v){k+=f;continue}break}if(k===e)a[f>0?"moveTo":"lineTo"](x,T),y=x,b=T;else{var E=x-g,P=T-m;if(E*E+P*P<.5){k+=f;continue}if(d>0){for(var V=k+f,N=t[2*V],H=t[2*V+1];N===x&&H===T&&D=o||Sh(N,H))C=x,S=T;else{W=N-g,X=H-m;var re=x-g,ie=N-x,ce=T-m,me=H-T,pe=void 0,_e=void 0;if("x"===h){var Pe=W>0?1:-1;C=x-Pe*(pe=Math.abs(re))*d,S=T,J=x+Pe*(_e=Math.abs(ie))*d,ee=T}else if("y"===h){var Be=X>0?1:-1;C=x,S=T-Be*(pe=Math.abs(ce))*d,J=x,ee=T+Be*(_e=Math.abs(me))*d}else pe=Math.sqrt(re*re+ce*ce),C=x-W*d*(1-(Z=(_e=Math.sqrt(ie*ie+me*me))/(_e+pe))),S=T-X*d*(1-Z),ee=T+X*d*Z,J=ic(J=x+W*d*Z,wh(N,x)),ee=ic(ee,wh(H,T)),J=wh(J,ic(N,x)),S=T-(X=(ee=wh(ee,ic(H,T)))-T)*pe/_e,C=ic(C=x-(W=J-x)*pe/_e,wh(g,x)),S=ic(S,wh(m,T)),J=x+(W=x-(C=wh(C,ic(g,x))))*_e/pe,ee=T+(X=T-(S=wh(S,ic(m,T))))*_e/pe}a.bezierCurveTo(y,b,C,S,x,T),y=J,b=ee}else a.lineTo(x,T)}g=x,m=T,k+=f}return D}var OU=function a(){this.smooth=0,this.smoothConstraint=!0},IU=function(a){function t(e){var o=a.call(this,e)||this;return o.type="ec-polyline",o}return de(t,a),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new OU},t.prototype.buildPath=function(e,o){var u=o.points,f=0,d=u.length/2;if(o.connectNulls){for(;d>0&&Sh(u[2*d-2],u[2*d-1]);d--);for(;f=0){var P=g?(S-v)*E+v:(C-h)*E+h;return g?[e,P]:[P,e]}h=C,v=S;break;case d.C:C=f[y++],S=f[y++],k=f[y++],D=f[y++],x=f[y++],T=f[y++];var V=g?Ma(h,C,k,x,e,m):Ma(v,S,D,T,e,m);if(V>0)for(var N=0;N=0)return P=g?xt(v,S,D,T,H):xt(h,C,k,x,H),g?[e,P]:[P,e]}h=x,v=T}}},t}(Xt),RU=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return de(t,a),t}(OU),XL=function(a){function t(e){var o=a.call(this,e)||this;return o.type="ec-polygon",o}return de(t,a),t.prototype.getDefaultShape=function(){return new RU},t.prototype.buildPath=function(e,o){var u=o.points,f=o.stackedOnPoints,d=0,h=u.length/2,v=o.smoothMonotone;if(o.connectNulls){for(;h>0&&Sh(u[2*h-2],u[2*h-1]);h--);for(;do)return!1;return!0}(f,t))){var d=t.mapDimension(f.dim),h={};return q(f.getViewLabels(),function(v){var g=f.scale.getRawOrdinalNumber(v.tickValue);h[g]=1}),function(v){return!h.hasOwnProperty(t.get(d,v))}}}}(e,v,d),W=this._data;W&&W.eachItemGraphicEl(function(Bn,Tt){Bn.__temp&&(h.remove(Bn),W.setItemGraphicEl(Tt,null))}),H||S.remove(),h.add(x);var J,X=!b&&e.get("step");d&&d.getArea&&e.get("clip",!0)&&(null!=(J=d.getArea()).width?(J.x-=.1,J.y-=.1,J.width+=.2,J.height+=.2):J.r0&&(J.r0-=.5,J.r+=.5)),this._clipShapeForSymbol=J;var ee=function VU(a,t,e){var o=a.getVisual("visualMeta");if(o&&o.length&&a.count()&&"cartesian2d"===t.type){for(var u,f,d=o.length-1;d>=0;d--){var h=a.getDimensionInfo(o[d].dimension);if("x"===(u=h&&h.coordDim)||"y"===u){f=o[d];break}}if(f){var v=t.getAxis(u),g=Me(f.stops,function(E){return{coord:v.toGlobalCoord(v.dataToCoord(E.value)),color:E.color}}),m=g.length,y=f.outerColors.slice();m&&g[0].coord>g[m-1].coord&&(g.reverse(),y.reverse());var b=function PX(a,t){var u,f,e=[],o=a.length;function d(m,y,b){var C=m.coord;return{coord:b,color:rO((b-C)/(y.coord-C),[m.color,y.color])}}for(var h=0;ht){f?e.push(d(f,v,t)):u&&e.push(d(u,v,0),d(u,v,t));break}u&&(e.push(d(u,v,0)),u=null),e.push(v),f=v}}return e}(g,"x"===u?e.getWidth():e.getHeight()),C=b.length;if(!C&&m)return g[0].coord<0?y[1]?y[1]:g[m-1].color:y[0]?y[0]:g[0].color;var k=b[0].coord-10,D=b[C-1].coord+10,x=D-k;if(x<.001)return"transparent";q(b,function(E){E.offset=(E.coord-k)/x}),b.push({offset:C?b[C-1].offset:.5,color:y[1]||"transparent"}),b.unshift({offset:C?b[0].offset:.5,color:y[0]||"transparent"});var T=new ju(0,0,0,0,b,!0);return T[u]=k,T[u+"2"]=D,T}}}(v,d,u)||v.getVisual("style")[v.getVisual("drawType")];if(k&&C.type===d.type&&X===this._step){E&&!D?D=this._newPolygon(y,N):D&&!E&&(x.remove(D),D=this._polygon=null),b||this._initOrUpdateEndLabel(e,d,Wd(ee));var re=x.getClipPath();re?nr(re,{shape:$L(this,d,!1,e).shape},e):x.setClipPath($L(this,d,!0,e)),H&&S.updateData(v,{isIgnore:Z,clipShape:J,disableAnimation:!0,getSymbolPoint:function(Tt){return[y[2*Tt],y[2*Tt+1]]}}),(!NU(this._stackedOnPoints,N)||!NU(this._points,y))&&(T?this._doUpdateAnimation(v,N,d,u,X,P,j):(X&&(y=Mh(y,d,X,j),N&&(N=Mh(N,d,X,j))),k.setShape({points:y}),D&&D.setShape({points:y,stackedOnPoints:N})))}else H&&S.updateData(v,{isIgnore:Z,clipShape:J,disableAnimation:!0,getSymbolPoint:function(Tt){return[y[2*Tt],y[2*Tt+1]]}}),T&&this._initSymbolLabelAnimation(v,d,J),X&&(y=Mh(y,d,X,j),N&&(N=Mh(N,d,X,j))),k=this._newPolyline(y),E&&(D=this._newPolygon(y,N)),b||this._initOrUpdateEndLabel(e,d,Wd(ee)),x.setClipPath($L(this,d,!0,e));var ce=e.getModel("emphasis"),me=ce.get("focus"),pe=ce.get("blurScope"),_e=ce.get("disabled");k.useStyle(rt(g.getLineStyle(),{fill:"none",stroke:ee,lineJoin:"bevel"})),pa(k,e,"lineStyle"),k.style.lineWidth>0&&"bolder"===e.get(["emphasis","lineStyle","width"])&&(k.getState("emphasis").style.lineWidth=+k.style.lineWidth+1),vt(k).seriesIndex=e.seriesIndex,Yr(k,me,pe,_e);var Be=Wx(e.get("smooth")),He=e.get("smoothMonotone");if(k.setShape({smooth:Be,smoothMonotone:He,connectNulls:j}),D){var nt=v.getCalculationInfo("stackedOnSeries"),ht=0;D.useStyle(rt(m.getAreaStyle(),{fill:ee,opacity:.7,lineJoin:"bevel",decal:v.getVisual("style").decal})),nt&&(ht=Wx(nt.get("smooth"))),D.setShape({smooth:Be,stackedOnSmooth:ht,smoothMonotone:He,connectNulls:j}),pa(D,e,"areaStyle"),vt(D).seriesIndex=e.seriesIndex,Yr(D,me,pe,_e)}var In=function(Tt){f._changePolyState(Tt)};v.eachItemGraphicEl(function(Bn){Bn&&(Bn.onHoverStateChange=In)}),this._polyline.onHoverStateChange=In,this._data=v,this._coordSys=d,this._stackedOnPoints=N,this._points=y,this._step=X,this._valueOrigin=P,e.get("triggerLineEvent")&&(this.packEventData(e,k),D&&this.packEventData(e,D))},t.prototype.packEventData=function(e,o){vt(o).eventData={componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line"}},t.prototype.highlight=function(e,o,u,f){var d=e.getData(),h=wd(d,f);if(this._changePolyState("emphasis"),!(h instanceof Array)&&null!=h&&h>=0){var v=d.getLayout("points"),g=d.getItemGraphicEl(h);if(!g){var m=v[2*h],y=v[2*h+1];if(isNaN(m)||isNaN(y)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(m,y))return;var b=e.get("zlevel"),C=e.get("z");(g=new X_(d,h)).x=m,g.y=y,g.setZ(b,C);var S=g.getSymbolPath().getTextContent();S&&(S.zlevel=b,S.z=C,S.z2=this._polyline.z2+1),g.__temp=!0,d.setItemGraphicEl(h,g),g.stopSymbolAnimation(!0),this.group.add(g)}g.highlight()}else jn.prototype.highlight.call(this,e,o,u,f)},t.prototype.downplay=function(e,o,u,f){var d=e.getData(),h=wd(d,f);if(this._changePolyState("normal"),null!=h&&h>=0){var v=d.getItemGraphicEl(h);v&&(v.__temp?(d.setItemGraphicEl(h,null),this.group.remove(v)):v.downplay())}else jn.prototype.downplay.call(this,e,o,u,f)},t.prototype._changePolyState=function(e){var o=this._polygon;xm(this._polyline,e),o&&xm(o,e)},t.prototype._newPolyline=function(e){var o=this._polyline;return o&&this._lineGroup.remove(o),o=new IU({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(o),this._polyline=o,o},t.prototype._newPolygon=function(e,o){var u=this._polygon;return u&&this._lineGroup.remove(u),u=new XL({shape:{points:e,stackedOnPoints:o},segmentIgnoreThreshold:2}),this._lineGroup.add(u),this._polygon=u,u},t.prototype._initSymbolLabelAnimation=function(e,o,u){var f,d,h=o.getBaseAxis(),v=h.inverse;"cartesian2d"===o.type?(f=h.isHorizontal(),d=!1):"polar"===o.type&&(f="angle"===h.dim,d=!0);var g=e.hostModel,m=g.get("animationDuration");et(m)&&(m=m(null));var y=g.get("animationDelay")||0,b=et(y)?y(null):y;e.eachItemGraphicEl(function(C,S){var k=C;if(k){var x=void 0,T=void 0,E=void 0;if(u)if(d){var P=u,V=o.pointToCoord([C.x,C.y]);f?(x=P.startAngle,T=P.endAngle,E=-V[1]/180*Math.PI):(x=P.r0,T=P.r,E=V[0])}else f?(x=u.x,T=u.x+u.width,E=C.x):(x=u.y+u.height,T=u.y,E=C.y);var H=T===x?0:(E-x)/(T-x);v&&(H=1-H);var j=et(y)?y(S):m*H+b,Z=k.getSymbolPath(),W=Z.getTextContent();k.attr({scaleX:0,scaleY:0}),k.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:j}),W&&W.animateFrom({style:{opacity:0}},{duration:300,delay:j}),Z.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,o,u){var f=e.getModel("endLabel");if(GU(e)){var d=e.getData(),h=this._polyline,v=d.getLayout("points");if(!v)return h.removeTextContent(),void(this._endLabel=null);var g=this._endLabel;g||((g=this._endLabel=new dn({z2:200})).ignoreClip=!0,h.setTextContent(this._endLabel),h.disableLabelAnimation=!0);var m=function RX(a){for(var t=a.length/2;t>0&&IX(a[2*t-2],a[2*t-1]);t--);return t-1}(v);m>=0&&($i(h,va(e,"endLabel"),{inheritColor:u,labelFetcher:e,labelDataIndex:m,defaultText:function(b,C,S){return null!=S?GL(d,S):Nv(d,b)},enableTextSetter:!0},function FX(a,t){var e=t.getBaseAxis(),o=e.isHorizontal(),u=e.inverse,f=o?u?"right":"left":"center",d=o?"middle":u?"top":"bottom";return{normal:{align:a.get("align")||f,verticalAlign:a.get("verticalAlign")||d}}}(f,o)),h.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,o,u,f,d,h,v){var g=this._endLabel,m=this._polyline;if(g){e<1&&null==f.originalX&&(f.originalX=g.x,f.originalY=g.y);var y=u.getLayout("points"),b=u.hostModel,C=b.get("connectNulls"),S=h.get("precision"),k=h.get("distance")||0,D=v.getBaseAxis(),x=D.isHorizontal(),T=D.inverse,E=o.shape,P=T?x?E.x:E.y+E.height:x?E.x+E.width:E.y,V=(x?k:0)*(T?-1:1),N=(x?0:-k)*(T?-1:1),H=x?"x":"y",j=function LX(a,t,e){for(var f,d,o=a.length/2,u="x"===e?0:1,h=0,v=-1,g=0;g=t||f>=t&&d<=t){v=g;break}h=g,f=d}return{range:[h,v],t:(t-f)/(d-f)}}(y,P,H),Z=j.range,W=Z[1]-Z[0],X=void 0;if(W>=1){if(W>1&&!C){var J=zU(y,Z[0]);g.attr({x:J[0]+V,y:J[1]+N}),d&&(X=b.getRawValue(Z[0]))}else{(J=m.getPointOn(P,H))&&g.attr({x:J[0]+V,y:J[1]+N});var ee=b.getRawValue(Z[0]),re=b.getRawValue(Z[1]);d&&(X=EO(u,S,ee,re,j.t))}f.lastFrameIndex=Z[0]}else{var ie=1===e||f.lastFrameIndex>0?Z[0]:0;J=zU(y,ie),d&&(X=b.getRawValue(ie)),g.attr({x:J[0]+V,y:J[1]+N})}d&&Hd(g).setLabelText(X)}},t.prototype._doUpdateAnimation=function(e,o,u,f,d,h,v){var g=this._polyline,m=this._polygon,y=e.hostModel,b=function PU(a,t,e,o,u,f,d,h){for(var v=function EU(a,t){var e=[];return t.diff(a).add(function(o){e.push({cmd:"+",idx:o})}).update(function(o,u){e.push({cmd:"=",idx:u,idx1:o})}).remove(function(o){e.push({cmd:"-",idx:o})}).execute(),e}(a,t),g=[],m=[],y=[],b=[],C=[],S=[],k=[],D=YL(u,t,d),x=a.getLayout("points")||[],T=t.getLayout("points")||[],E=0;E3e3||m&&BU(S,D)>3e3)return g.stopAnimation(),g.setShape({points:k}),void(m&&(m.stopAnimation(),m.setShape({points:k,stackedOnPoints:D})));g.shape.__points=b.current,g.shape.points=C;var x={shape:{points:k}};b.current!==C&&(x.shape.__points=b.next),g.stopAnimation(),Ut(g,x,y),m&&(m.setShape({points:C,stackedOnPoints:S}),m.stopAnimation(),Ut(m,{shape:{stackedOnPoints:D}},y),g.shape.points!==m.shape.points&&(m.shape.points=g.shape.points));for(var T=[],E=b.status,P=0;Pe&&(e=t[o]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,o=0;o10&&"cartesian2d"===h.type&&d){var g=h.getBaseAxis(),m=h.getOtherAxis(g),y=g.getExtent(),b=u.getDevicePixelRatio(),C=Math.abs(y[1]-y[0])*(b||1),S=Math.round(v/C);if(isFinite(S)&&S>1){"lttb"===d&&e.setData(f.lttbDownSample(f.mapDimension(m.dim),1/S));var k=void 0;Ne(d)?k=Yx[d]:et(d)&&(k=d),k&&e.setData(f.downSample(f.mapDimension(m.dim),1/S,k,UU))}}}}}var dt=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.getInitialData=function(e,o){return wl(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e){var o=this.coordinateSystem;if(o&&o.clampData){var u=o.dataToPoint(o.clampData(e)),f=this.getData(),d=f.getLayout("offset"),h=f.getLayout("size");return u[o.getBaseAxis().isHorizontal()?0:1]+=d+h/2,u}return[NaN,NaN]},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},t}(fr);fr.registerClass(dt);var oc=dt,Ur=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.getInitialData=function(){return wl(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},t.prototype.getProgressiveThreshold=function(){var e=this.get("progressiveThreshold"),o=this.get("largeThreshold");return o>e&&(e=o),e},t.prototype.brushSelector=function(e,o,u){return u.rect(o.getItemLayout(e))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Xc(oc.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}),t}(oc),QL=Ur,JL=function a(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},Bv=function(a){function t(e){var o=a.call(this,e)||this;return o.type="sausage",o}return de(t,a),t.prototype.getDefaultShape=function(){return new JL},t.prototype.buildPath=function(e,o){var u=o.cx,f=o.cy,d=Math.max(o.r0||0,0),h=Math.max(o.r,0),v=.5*(h-d),g=d+v,m=o.startAngle,y=o.endAngle,b=o.clockwise,C=2*Math.PI,S=b?y-mh)return!0;h=y}return!1},t.prototype._isOrderDifferentInView=function(e,o){for(var u=o.scale,f=u.getExtent(),d=Math.max(0,f[0]),h=Math.min(f[1],u.getOrdinalMeta().categories.length-1);d<=h;++d)if(e.ordinalNumbers[d]!==u.getRawOrdinalNumber(d))return!0},t.prototype._updateSortWithinSameData=function(e,o,u,f){if(this._isOrderChangedWithinSameData(e,o,u)){var d=this._dataSort(e,u,o);this._isOrderDifferentInView(d,u)&&(this._removeOnRenderedListener(f),f.dispatchAction({type:"changeAxisOrder",componentType:u.dim+"Axis",axisId:u.index,sortInfo:d}))}},t.prototype._dispatchInitSort=function(e,o,u){var f=o.baseAxis,d=this._dataSort(e,f,function(h){return e.get(e.mapDimension(o.otherAxis.dim),h)});u.dispatchAction({type:"changeAxisOrder",componentType:f.dim+"Axis",isInitSort:!0,axisId:f.index,sortInfo:d})},t.prototype.remove=function(e,o){this._clear(this._model),this._removeOnRenderedListener(o)},t.prototype.dispose=function(e,o){this._removeOnRenderedListener(o)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var o=this.group,u=this._data;e&&e.isAnimationEnabled()&&u&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],u.eachItemGraphicEl(function(f){Xp(f,e,vt(f).dataIndex)})):o.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t}(jn),eF={cartesian2d:function(t,e){var o=e.width<0?-1:1,u=e.height<0?-1:1;o<0&&(e.x+=e.width,e.width=-e.width),u<0&&(e.y+=e.height,e.height=-e.height);var f=t.x+t.width,d=t.y+t.height,h=mw(e.x,t.x),v=Df(e.x+e.width,f),g=mw(e.y,t.y),m=Df(e.y+e.height,d),y=vf?v:h,e.y=b&&g>d?m:g,e.width=y?0:v-h,e.height=b?0:m-g,o<0&&(e.x+=e.width,e.width=-e.width),u<0&&(e.y+=e.height,e.height=-e.height),y||b},polar:function(t,e){var o=e.r0<=e.r?1:-1;if(o<0){var u=e.r;e.r=e.r0,e.r0=u}var f=Df(e.r,t.r),d=mw(e.r0,t.r0);e.r=f,e.r0=d;var h=f-d<0;return o<0&&(u=e.r,e.r=e.r0,e.r0=u),h}},Zx={cartesian2d:function(t,e,o,u,f,d,h,v,g){var m=new fn({shape:ve({},u),z2:1});return m.__dataIndex=o,m.name="item",d&&(m.shape[f?"height":"width"]=0),m},polar:function(t,e,o,u,f,d,h,v,g){var m=!f&&g?vw:Ja,y=new m({shape:u,z2:1});y.name="item";var b=$x(f);if(y.calculateTextPosition=function jU(a,t){var e=(t=t||{}).isRoundCap;return function(o,u,f){var d=u.position;if(!d||d instanceof Array)return Ou(o,u,f);var h=a(d),v=null!=u.distance?u.distance:5,g=this.shape,m=g.cx,y=g.cy,b=g.r,C=g.r0,S=(b+C)/2,k=g.startAngle,D=g.endAngle,x=(k+D)/2,T=e?Math.abs(b-C)/2:0,E=Math.cos,P=Math.sin,V=m+b*E(k),N=y+b*P(k),H="left",j="top";switch(h){case"startArc":V=m+(C-v)*E(x),N=y+(C-v)*P(x),H="center",j="top";break;case"insideStartArc":V=m+(C+v)*E(x),N=y+(C+v)*P(x),H="center",j="bottom";break;case"startAngle":V=m+S*E(k)+gw(k,v+T,!1),N=y+S*P(k)+Q_(k,v+T,!1),H="right",j="middle";break;case"insideStartAngle":V=m+S*E(k)+gw(k,-v+T,!1),N=y+S*P(k)+Q_(k,-v+T,!1),H="left",j="middle";break;case"middle":V=m+S*E(x),N=y+S*P(x),H="center",j="middle";break;case"endArc":V=m+(b+v)*E(x),N=y+(b+v)*P(x),H="center",j="bottom";break;case"insideEndArc":V=m+(b-v)*E(x),N=y+(b-v)*P(x),H="center",j="top";break;case"endAngle":V=m+S*E(D)+gw(D,v+T,!0),N=y+S*P(D)+Q_(D,v+T,!0),H="left",j="middle";break;case"insideEndAngle":V=m+S*E(D)+gw(D,-v+T,!0),N=y+S*P(D)+Q_(D,-v+T,!0),H="right",j="middle";break;default:return Ou(o,u,f)}return(o=o||{}).x=V,o.y=N,o.align=H,o.verticalAlign=j,o}}(b,{isRoundCap:m===vw}),d){var S=f?"r":"endAngle",k={};y.shape[S]=f?0:u.startAngle,k[S]=u[S],(v?Ut:nr)(y,{shape:k},d)}return y}};function Xx(a,t,e,o,u,f,d,h){var v,g;f?(g={x:o.x,width:o.width},v={y:o.y,height:o.height}):(g={y:o.y,height:o.height},v={x:o.x,width:o.width}),h||(d?Ut:nr)(e,{shape:v},t,u,null),(d?Ut:nr)(e,{shape:g},t?a.baseAxis.model:null,u)}function nF(a,t){for(var e=0;e0?1:-1,h=u.height>0?1:-1;return{x:u.x+d*f/2,y:u.y+h*f/2,width:u.width-d*f,height:u.height-h*f}},polar:function(t,e,o){var u=t.getItemLayout(e);return{cx:u.cx,cy:u.cy,r0:u.r0,r:u.r,startAngle:u.startAngle,endAngle:u.endAngle,clockwise:u.clockwise}}};function $x(a){return function(t){var e=t?"Arc":"Angle";return function(o){switch(o){case"start":case"insideStart":case"end":case"insideEnd":return o+e;default:return o}}}(a)}function bw(a,t,e,o,u,f,d,h){var v=t.getItemVisual(e,"style");h||a.setShape("r",o.get(["itemStyle","borderRadius"])||0),a.useStyle(v);var g=o.getShallow("cursor");g&&a.attr("cursor",g);var m=h?d?u.r>=u.r0?"endArc":"startArc":u.endAngle>=u.startAngle?"endAngle":"startAngle":d?u.height>=0?"bottom":"top":u.width>=0?"right":"left",y=va(o);$i(a,y,{labelFetcher:f,labelDataIndex:e,defaultText:Nv(f.getData(),e),inheritColor:v.fill,defaultOpacity:v.opacity,defaultOutsidePosition:m});var b=a.getTextContent();if(h&&b){var C=o.get(["label","position"]);a.textConfig.inside="middle"===C||null,function WU(a,t,e,o){if(Cn(o))a.setTextConfig({rotation:o});else if(Ce(t))a.setTextConfig({rotation:0});else{var v,u=a.shape,f=u.clockwise?u.startAngle:u.endAngle,d=u.clockwise?u.endAngle:u.startAngle,h=(f+d)/2,g=e(t);switch(g){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":v=h;break;case"startAngle":case"insideStartAngle":v=f;break;case"endAngle":case"insideEndAngle":v=d;break;default:return void a.setTextConfig({rotation:0})}var m=1.5*Math.PI-v;"middle"===g&&m>Math.PI/2&&m<1.5*Math.PI&&(m-=Math.PI),a.setTextConfig({rotation:m})}}(a,"outside"===C?m:C,$x(d),o.get(["label","rotate"]))}dI(b,y,f.getRawValue(e),function(k){return GL(t,k)});var S=o.getModel(["emphasis"]);Yr(a,S.get("focus"),S.get("blurScope"),S.get("disabled")),pa(a,o),function rF(a){return null!=a.startAngle&&null!=a.endAngle&&a.startAngle===a.endAngle}(u)&&(a.style.fill="none",a.style.stroke="none",q(a.states,function(k){k.style&&(k.style.fill=k.style.stroke="none")}))}var aF=function a(){},Qx=function(a){function t(e){var o=a.call(this,e)||this;return o.type="largeBar",o}return de(t,a),t.prototype.getDefaultShape=function(){return new aF},t.prototype.buildPath=function(e,o){for(var u=o.points,f=this.baseDimIdx,d=1-this.baseDimIdx,h=[],v=[],g=this.barWidth,m=0;m=h[0]&&t<=h[0]+v[0]&&e>=h[1]&&e<=h[1]+v[1])return d[m]}return-1}(this,a.offsetX,a.offsetY);vt(this).dataIndex=e>=0?e:null},30,!1);function ZU(a,t,e){if(ac(e,"cartesian2d")){var o=t,u=e.getArea();return{x:a?o.x:u.x,y:a?u.y:o.y,width:a?o.width:u.width,height:a?u.height:o.height}}return{cx:(u=e.getArea()).cx,cy:u.cy,r0:a?u.r0:t.r0,r:a?u.r:t.r,startAngle:a?t.startAngle:0,endAngle:a?t.endAngle:2*Math.PI}}var UX=YU,Jx=2*Math.PI,XU=Math.PI/180;function sF(a,t){return oi(a.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function lF(a,t){var e=sF(a,t),o=a.get("center"),u=a.get("radius");Ce(u)||(u=[0,u]),Ce(o)||(o=[o,o]);var f=Ie(e.width,t.getWidth()),d=Ie(e.height,t.getHeight()),h=Math.min(f,d);return{cx:Ie(o[0],f)+e.x,cy:Ie(o[1],d)+e.y,r0:Ie(u[0],h/2),r:Ie(u[1],h/2)}}function uF(a,t,e){t.eachSeriesByType(a,function(o){var u=o.getData(),f=u.mapDimension("value"),d=sF(o,e),h=lF(o,e),v=h.cx,g=h.cy,m=h.r,y=h.r0,b=-o.get("startAngle")*XU,C=o.get("minAngle")*XU,S=0;u.each(f,function(W){!isNaN(W)&&S++});var k=u.getSum(f),D=Math.PI/(k||S)*2,x=o.get("clockwise"),T=o.get("roseType"),E=o.get("stillShowZeroSum"),P=u.getDataExtent(f);P[0]=0;var V=Jx,N=0,H=b,j=x?1:-1;if(u.setLayout({viewRect:d,r:m}),u.each(f,function(W,X){var J;if(isNaN(W))u.setItemLayout(X,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:x,cx:v,cy:g,r0:y,r:T?NaN:m});else{(J="area"!==T?0===k&&E?D:W*D:Jx/S)e?x:D,V=Math.abs(E.label.y-e);if(V>=P.maxY){var N=E.label.x-t-E.len2*u,H=o+E.len,j=Math.abs(N)a.unconstrainedWidth?null:C:null)}var k=o.getBoundingRect();f.width=k.width,f.height=k.height+((o.style.margin||0)+2.1),f.y-=(f.height-y)/2}}}function nT(a){return"center"===a.position}function J_(a,t,e){var o=a.get("borderRadius");if(null==o)return e?{cornerRadius:0}:null;Ce(o)||(o=[o,o,o,o]);var u=Math.abs(t.r||0-t.r0||0);return{cornerRadius:Me(o,function(f){return il(f,u)})}}var $U=function(a){function t(e,o,u){var f=a.call(this)||this;f.z2=2;var d=new dn;return f.setTextContent(d),f.updateData(e,o,u,!0),f}return de(t,a),t.prototype.updateData=function(e,o,u,f){var d=this,h=e.hostModel,v=e.getItemModel(o),g=v.getModel("emphasis"),m=e.getItemLayout(o),y=ve(J_(v.getModel("itemStyle"),m,!0),m);if(isNaN(y.startAngle))d.setShape(y);else{if(f){d.setShape(y);var b=h.getShallow("animationType");h.ecModel.ssr?(nr(d,{scaleX:0,scaleY:0},h,{dataIndex:o,isFrom:!0}),d.originX=y.cx,d.originY=y.cy):"scale"===b?(d.shape.r=m.r0,nr(d,{shape:{r:m.r}},h,o)):null!=u?(d.setShape({startAngle:u,endAngle:u}),nr(d,{shape:{startAngle:m.startAngle,endAngle:m.endAngle}},h,o)):(d.shape.endAngle=m.startAngle,Ut(d,{shape:{endAngle:m.endAngle}},h,o))}else iu(d),Ut(d,{shape:y},h,o);d.useStyle(e.getItemVisual(o,"style")),pa(d,v);var C=(m.startAngle+m.endAngle)/2,S=h.get("selectedOffset"),k=Math.cos(C)*S,D=Math.sin(C)*S,x=v.getShallow("cursor");x&&d.attr("cursor",x),this._updateLabel(h,e,o),d.ensureState("emphasis").shape=ve({r:m.r+(g.get("scale")&&g.get("scaleSize")||0)},J_(g.getModel("itemStyle"),m)),ve(d.ensureState("select"),{x:k,y:D,shape:J_(v.getModel(["select","itemStyle"]),m)}),ve(d.ensureState("blur"),{shape:J_(v.getModel(["blur","itemStyle"]),m)});var T=d.getTextGuideLine(),E=d.getTextContent();T&&ve(T.ensureState("select"),{x:k,y:D}),ve(E.ensureState("select"),{x:k,y:D}),Yr(this,g.get("focus"),g.get("blurScope"),g.get("disabled"))}},t.prototype._updateLabel=function(e,o,u){var f=this,d=o.getItemModel(u),h=d.getModel("labelLine"),v=o.getItemVisual(u,"style"),g=v&&v.fill,m=v&&v.opacity;$i(f,va(d),{labelFetcher:o.hostModel,labelDataIndex:u,inheritColor:g,defaultOpacity:m,defaultText:e.getFormattedLabel(u,"normal")||o.getName(u)});var y=f.getTextContent();f.setTextConfig({position:null,rotation:null}),y.attr({z2:10});var b=e.get(["label","position"]);if("outside"!==b&&"outer"!==b)f.removeTextGuideLine();else{var C=this.getTextGuideLine();C||(C=new Ra,this.setTextGuideLine(C)),Mx(this,kx(d),{stroke:g,opacity:Su(h.get(["lineStyle","opacity"]),m,1)})}},t}(Ja),QU=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return de(t,a),t.prototype.render=function(e,o,u,f){var g,d=e.getData(),h=this._data,v=this.group;if(!h&&d.count()>0){for(var m=d.getItemLayout(0),y=1;isNaN(m&&m.startAngle)&&y0?"right":"left":He>0?"left":"right"}var zr=Math.PI,Ar=0,la=J.get("rotate");if(Cn(la))Ar=la*(zr/180);else if("center"===ee)Ar=0;else if("radial"===la||!0===la)Ar=He<0?-Be+zr:-Be;else if("tangential"===la&&"outside"!==ee&&"outer"!==ee){var co=Math.atan2(He,nt);co<0&&(co=2*zr+co),nt>0&&(co=zr+co),Ar=co-zr}if(f=!!Ar,Z.x=ht,Z.y=In,Z.rotation=Ar,Z.setStyle({verticalAlign:"middle"}),pt){Z.setStyle({align:Tt});var yH=Z.states.select;yH&&(yH.x+=Z.x,yH.y+=Z.y)}else{var cp=Z.getBoundingRect().clone();cp.applyTransform(Z.getComputedTransform());var Sq=(Z.style.margin||0)+2.1;cp.y-=Sq/2,cp.height+=Sq,e.push({label:Z,labelLine:W,position:ee,len:_e,len2:Pe,minTurnAngle:pe.get("minTurnAngle"),maxSurfaceAngle:pe.get("maxSurfaceAngle"),surfaceNormal:new Et(He,nt),linePoints:Bn,textAlign:Tt,labelDistance:re,labelAlignTo:ie,edgeDistance:ce,bleedMargin:me,rect:cp,unconstrainedWidth:cp.width,labelStyleWidth:Z.style.width})}H.setTextConfig({inside:pt})}}),!f&&a.get("avoidLabelOverlap")&&function KU(a,t,e,o,u,f,d,h){for(var v=[],g=[],m=Number.MAX_VALUE,y=-Number.MAX_VALUE,b=0;b=f.r0}},t.type="pie",t}(jn),YX=QU;function ey(a,t,e){t=Ce(t)&&{coordDimensions:t}||ve({encodeDefine:a.getEncode()},t);var o=a.getSource(),u=R_(o,t).dimensions,f=new ga(u,a);return f.initData(o,e),f}var Na=function(){function a(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return a.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},a.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},a.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},a.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},a}(),ty=Na,JU=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return de(t,a),t.prototype.init=function(e){a.prototype.init.apply(this,arguments),this.legendVisualProvider=new ty(ze(this.getData,this),ze(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.mergeOption=function(){a.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return ey(this,{coordDimensions:["value"],encodeDefaulter:wt(Lk,this)})},t.prototype.getDataParams=function(e){var o=this.getData(),u=a.prototype.getDataParams.call(this,e),f=[];return o.each(o.mapDimension("value"),function(d){f.push(d)}),u.percent=wO(f,e,o.hostModel.get("percentPrecision")),u.$vars.push("percent"),u},t.prototype._defaultLabelLine=function(e){Cd(e,"labelLine",["show"]);var o=e.labelLine,u=e.emphasis.labelLine;o.show=o.show&&e.label.show,u.show=u.show&&e.emphasis.label.show},t.type="series.pie",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",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,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},t}(fr),e6=JU,n6=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return de(t,a),t.prototype.getInitialData=function(e,o){return wl(null,this,{useEncodeDefaulter:!0})},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?5e3:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?1e4:this.get("progressiveThreshold"):e},t.prototype.brushSelector=function(e,o,u){return u.point(o.getItemLayout(e))},t.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},t.type="series.scatter",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},t}(fr),r6=n6,rT=function a(){},dF=function(a){function t(e){var o=a.call(this,e)||this;return o._off=0,o.hoverDataIdx=-1,o}return de(t,a),t.prototype.getDefaultShape=function(){return new rT},t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.buildPath=function(e,o){var y,u=o.points,f=o.size,d=this.symbolProxy,h=d.shape,v=e.getContext?e.getContext():e,m=this.softClipShape;if(v&&f[0]<4)this._ctx=v;else{for(this._ctx=null,y=this._off;y=0;g--){var m=2*g,y=f[m]-h/2,b=f[m+1]-v/2;if(e>=y&&o>=b&&e<=y+h&&o<=b+v)return g}return-1},t.prototype.contain=function(e,o){var u=this.transformCoordToLocal(e,o);return this.getBoundingRect().contain(e=u[0],o=u[1])?(this.hoverDataIdx=this.findDataIndex(e,o))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var o=this.shape,u=o.points,f=o.size,d=f[0],h=f[1],v=1/0,g=1/0,m=-1/0,y=-1/0,b=0;b=0&&(g.dataIndex=y+(t.startIndex||0))})},a.prototype.remove=function(){this._clear()},a.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},a}(),i6=ny,hF=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.render=function(e,o,u){var f=e.getData();this._updateSymbolDraw(f,e).updateData(f,{clipShape:this._getClipShape(e)}),this._finished=!0},t.prototype.incrementalPrepareRender=function(e,o,u){var f=e.getData();this._updateSymbolDraw(f,e).incrementalPrepareUpdate(f),this._finished=!1},t.prototype.incrementalRender=function(e,o,u){this._symbolDraw.incrementalUpdate(e,o.getData(),{clipShape:this._getClipShape(o)}),this._finished=e.end===o.getData().count()},t.prototype.updateTransform=function(e,o,u){var f=e.getData();if(this.group.dirty(),!this._finished||f.count()>1e4)return{update:!0};var d=pw("").reset(e,o,u);d.progress&&d.progress({start:0,end:f.count(),count:f.count()},f),this._symbolDraw.updateLayout(f)},t.prototype.eachRendered=function(e){this._symbolDraw&&this._symbolDraw.eachRendered(e)},t.prototype._getClipShape=function(e){var o=e.coordinateSystem,u=o&&o.getArea&&o.getArea();return e.get("clip",!0)?u:null},t.prototype._updateSymbolDraw=function(e,o){var u=this._symbolDraw,d=o.pipelineContext.large;return(!u||d!==this._isLargeDraw)&&(u&&u.remove(),u=this._symbolDraw=d?new i6:new K_,this._isLargeDraw=d,this.group.removeAll()),this.group.add(u.group),u},t.prototype.remove=function(e,o){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},t.prototype.dispose=function(){},t.type="scatter",t}(jn),ry=hF,ww=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return de(t,a),t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},t}(sn),a6=ww,Dh=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return de(t,a),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ii).models[0]},t.type="cartesian2dAxis",t}(sn);Ir(Dh,wf);var iT={show:!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)"]}}},o6=Dt({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},iT),_a=Dt({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}}},iT),aT={category:o6,value:_a,time:Dt({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},_a),log:rt({logBase:10},_a)},To={value:1,category:1,time:1,log:1};function xf(a,t,e,o){q(To,function(u,f){var d=Dt(Dt({},aT[f],!0),o,!0),h=function(v){function g(){var m=null!==v&&v.apply(this,arguments)||this;return m.type=t+"Axis."+f,m}return de(g,v),g.prototype.mergeDefaultAndTheme=function(m,y){var b=qd(this),C=b?rv(m):{};Dt(m,y.getTheme().get(f+"Axis")),Dt(m,this.getDefaultOption()),m.type=oT(m),b&&Zd(m,C,b)},g.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=zC.createByAxisModel(this))},g.prototype.getCategories=function(m){var y=this.option;if("category"===y.type)return m?y.data:this.__ordinalMeta.categories},g.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},g.type=t+"Axis."+f,g.defaultOption=d,g}(e);a.registerComponentModel(h)}),a.registerSubTypeDefaulter(t+"Axis",oT)}function oT(a){return a.type||(a.data?"category":"value")}var l6=function(){function a(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return a.prototype.getAxis=function(t){return this._axes[t]},a.prototype.getAxes=function(){return Me(this._dimList,function(t){return this._axes[t]},this)},a.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Un(this.getAxes(),function(e){return e.scale.type===t})},a.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},a}(),sT=["x","y"];function xh(a){return"interval"===a.type||"time"===a.type}var ao=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=sT,e}return de(t,a),t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,o=this.getAxis("y").scale;if(xh(e)&&xh(o)){var u=e.getExtent(),f=o.getExtent(),d=this.dataToPoint([u[0],f[0]]),h=this.dataToPoint([u[1],f[1]]),v=u[1]-u[0],g=f[1]-f[0];if(v&&g){var m=(h[0]-d[0])/v,y=(h[1]-d[1])/g,S=this._transform=[m,0,0,y,d[0]-u[0]*m,d[1]-f[0]*y];this._invTransform=ud([],S)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var o=this.getAxis("x"),u=this.getAxis("y");return o.contain(o.toLocalCoord(e[0]))&&u.contain(u.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.dataToPoint=function(e,o,u){u=u||[];var f=e[0],d=e[1];if(this._transform&&null!=f&&isFinite(f)&&null!=d&&isFinite(d))return Yi(u,e,this._transform);var h=this.getAxis("x"),v=this.getAxis("y");return u[0]=h.toGlobalCoord(h.dataToCoord(f,o)),u[1]=v.toGlobalCoord(v.dataToCoord(d,o)),u},t.prototype.clampData=function(e,o){var u=this.getAxis("x").scale,f=this.getAxis("y").scale,d=u.getExtent(),h=f.getExtent(),v=u.parse(e[0]),g=f.parse(e[1]);return(o=o||[])[0]=Math.min(Math.max(Math.min(d[0],d[1]),v),Math.max(d[0],d[1])),o[1]=Math.min(Math.max(Math.min(h[0],h[1]),g),Math.max(h[0],h[1])),o},t.prototype.pointToData=function(e,o){var u=[];if(this._invTransform)return Yi(u,e,this._invTransform);var f=this.getAxis("x"),d=this.getAxis("y");return u[0]=f.coordToData(f.toLocalCoord(e[0]),o),u[1]=d.coordToData(d.toLocalCoord(e[1]),o),u},t.prototype.getOtherAxis=function(e){return this.getAxis("x"===e.dim?"y":"x")},t.prototype.getArea=function(){var e=this.getAxis("x").getGlobalExtent(),o=this.getAxis("y").getGlobalExtent(),u=Math.min(e[0],e[1]),f=Math.min(o[0],o[1]),d=Math.max(e[0],e[1])-u,h=Math.max(o[0],o[1])-f;return new zt(u,f,d,h)},t}(l6),u6=ao,sc=function(a){function t(e,o,u,f,d){var h=a.call(this,e,o,u)||this;return h.index=0,h.type=f||"value",h.position=d||"bottom",h}return de(t,a),t.prototype.isHorizontal=function(){var e=this.position;return"top"===e||"bottom"===e},t.prototype.getGlobalExtent=function(e){var o=this.getExtent();return o[0]=this.toGlobalCoord(o[0]),o[1]=this.toGlobalCoord(o[1]),e&&o[0]>o[1]&&o.reverse(),o},t.prototype.pointToData=function(e,o){return this.coordToData(this.toLocalCoord(e["x"===this.dim?0:1]),o)},t.prototype.setCategorySortInfo=function(e){if("category"!==this.type)return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t}(Fa),lT=sc;function Th(a,t,e){e=e||{};var o=a.coordinateSystem,u=t.axis,f={},d=u.getAxesOnZeroOf()[0],h=u.position,v=d?"onZero":h,g=u.dim,m=o.getRect(),y=[m.x,m.x+m.width,m.y,m.y+m.height],b={left:0,right:1,top:0,bottom:1,onZero:2},C=t.get("offset")||0,S="x"===g?[y[2]-C,y[3]+C]:[y[0]-C,y[1]+C];if(d){var k=d.toGlobalCoord(d.dataToCoord(0));S[b.onZero]=Math.max(Math.min(k,S[1]),S[0])}f.position=["y"===g?S[b[v]]:y[0],"x"===g?S[b[v]]:y[3]],f.rotation=Math.PI/2*("x"===g?0:1),f.labelDirection=f.tickDirection=f.nameDirection={top:-1,bottom:1,left:-1,right:1}[h],f.labelOffset=d?S[b[h]]-S[b.onZero]:0,t.get(["axisTick","inside"])&&(f.tickDirection=-f.tickDirection),Ui(e.labelInside,t.get(["axisLabel","inside"]))&&(f.labelDirection=-f.labelDirection);var x=t.get(["axisLabel","rotate"]);return f.labelRotate="top"===v?-x:x,f.z2=1,f}function uT(a){return"cartesian2d"===a.get("coordinateSystem")}function vF(a){var t={xAxisModel:null,yAxisModel:null};return q(t,function(e,o){var u=o.replace(/Model$/,""),f=a.getReferringComponents(u,ii).models[0];t[o]=f}),t}var cT=Math.log;function gF(a,t,e){var o=Qu.prototype,u=o.getTicks.call(e),f=o.getTicks.call(e,!0),d=u.length-1,h=o.getInterval.call(e),v=iL(a,t),g=v.extent,m=v.fixMin,y=v.fixMax;if("log"===a.type){var b=cT(a.base);g=[cT(g[0])/b,cT(g[1])/b]}a.setExtent(g[0],g[1]),a.calcNiceExtent({splitNumber:d,fixMin:m,fixMax:y});var C=o.getExtent.call(a);m&&(g[0]=C[0]),y&&(g[1]=C[1]);var S=o.getInterval.call(a),k=g[0],D=g[1];if(m&&y)S=(D-k)/d;else if(m)for(D=g[0]+S*d;Dg[0]&&isFinite(k)&&isFinite(g[0]);)S=ux(S),k=g[1]-S*d;else{a.getTicks().length-1>d&&(S=ux(S));var T=S*d;(k=Mr((D=Math.ceil(g[1]/S)*S)-T))<0&&g[0]>=0?(k=0,D=Mr(T)):D>0&&g[1]<=0&&(D=0,k=-Mr(T))}var E=(u[0].value-f[0].value)/h,P=(u[d].value-f[d].value)/h;o.setExtent.call(a,k+S*E,D+S*P),o.setInterval.call(a,S),(E||P)&&o.setNiceExtent.call(a,k+S,D-S)}var c6=function(){function a(t,e,o){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=sT,this._initCartesian(t,e,o),this.model=t}return a.prototype.getRect=function(){return this._rect},a.prototype.update=function(t,e){var o=this._axesMap;function u(d){var h,v=Zt(d),g=v.length;if(g){for(var m=[],y=g-1;y>=0;y--){var C=d[+v[y]],S=C.model,k=C.scale;lx(k)&&S.get("alignTicks")&&null==S.get("interval")?m.push(C):($o(k,S),lx(k)&&(h=C))}m.length&&(h||$o((h=m.pop()).scale,h.model),q(m,function(D){gF(D.scale,D.model,h.scale)}))}}this._updateScale(t,this.model),u(o.x),u(o.y);var f={};q(o.x,function(d){mF(o,"y",d,f)}),q(o.y,function(d){mF(o,"x",d,f)}),this.resize(this.model,e)},a.prototype.resize=function(t,e,o){var u=t.getBoxLayoutParams(),f=!o&&t.get("containLabel"),d=oi(u,{width:e.getWidth(),height:e.getHeight()});this._rect=d;var h=this._axesList;function v(){q(h,function(g){var m=g.isHorizontal(),y=m?[0,d.width]:[0,d.height],b=g.inverse?1:0;g.setExtent(y[b],y[1-b]),function _F(a,t){var e=a.getExtent(),o=e[0]+e[1];a.toGlobalCoord="x"===a.dim?function(u){return u+t}:function(u){return o-u+t},a.toLocalCoord="x"===a.dim?function(u){return u-t}:function(u){return o-u+t}}(g,m?d.x:d.y)})}v(),f&&(q(h,function(g){if(!g.model.get(["axisLabel","inside"])){var m=function V8(a){var e=a.scale;if(a.model.get(["axisLabel","show"])&&!e.isBlank()){var o,u,f=e.getExtent();u=e instanceof fx?e.count():(o=e.getTicks()).length;var v,d=a.getLabelModel(),h=Ov(a),g=1;u>40&&(g=Math.ceil(u/40));for(var m=0;m0&&o>0||e<0&&o<0)}(a)}var f6=c6,Tf=Math.PI,Ah=function(){function a(t,e){this.group=new ct,this.opt=e,this.axisModel=t,rt(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var o=new ct({x:e.position[0],y:e.position[1],rotation:e.rotation});o.updateTransform(),this._transformGroup=o}return a.prototype.hasBuilder=function(t){return!!yF[t]},a.prototype.add=function(t){yF[t](this.opt,this.axisModel,this.group,this._transformGroup)},a.prototype.getGroup=function(){return this.group},a.innerTextLayout=function(t,e,o){var f,d,u=MO(e-t);return n0(u)?(d=o>0?"top":"bottom",f="center"):n0(u-Tf)?(d=o>0?"bottom":"top",f="center"):(d="middle",f=u>0&&u0?"right":"left":o>0?"left":"right"),{rotation:u,textAlign:f,textVerticalAlign:d}},a.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},a.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},a}(),yF={axisLine:function(t,e,o,u){var f=e.get(["axisLine","show"]);if("auto"===f&&t.handleAutoShown&&(f=t.handleAutoShown("axisLine")),f){var d=e.axis.getExtent(),h=u.transform,v=[d[0],0],g=[d[1],0];h&&(Yi(v,v,h),Yi(g,g,h));var m=ve({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),y=new Nr({subPixelOptimize:!0,shape:{x1:v[0],y1:v[1],x2:g[0],y2:g[1]},style:m,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});y.anid="line",o.add(y);var b=e.get(["axisLine","symbol"]);if(null!=b){var C=e.get(["axisLine","symbolSize"]);Ne(b)&&(b=[b,b]),(Ne(C)||Cn(C))&&(C=[C,C]);var S=uh(e.get(["axisLine","symbolOffset"])||0,C),k=C[0],D=C[1];q([{rotate:t.rotation+Math.PI/2,offset:S[0],r:0},{rotate:t.rotation-Math.PI/2,offset:S[1],r:Math.sqrt((v[0]-g[0])*(v[0]-g[0])+(v[1]-g[1])*(v[1]-g[1]))}],function(x,T){if("none"!==b[T]&&null!=b[T]){var E=Dr(b[T],-k/2,-D/2,k,D,m.stroke,!0),P=x.r+x.offset;E.attr({rotation:x.rotate,x:v[0]+P*Math.cos(t.rotation),y:v[1]-P*Math.sin(t.rotation),silent:!0,z2:11}),o.add(E)}})}}},axisTickLabel:function(t,e,o,u){var f=function d6(a,t,e,o){var u=e.axis,f=e.getModel("axisTick"),d=f.get("show");if("auto"===d&&o.handleAutoShown&&(d=o.handleAutoShown("axisTick")),d&&!u.scale.isBlank()){for(var h=f.getModel("lineStyle"),v=o.tickDirection*f.get("length"),m=Mw(u.getTicksCoords(),t.transform,v,rt(h.getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])}),"ticks"),y=0;ym[1]?-1:1,b=["start"===d?m[0]-y*g:"end"===d?m[1]+y*g:(m[0]+m[1])/2,hT(d)?t.labelOffset+h*g:0],S=e.get("nameRotate");null!=S&&(S=S*Tf/180),hT(d)?C=Ah.innerTextLayout(t.rotation,null!=S?S:t.rotation,h):(C=function bF(a,t,e,o){var f,d,u=MO(e-a),h=o[0]>o[1],v="start"===t&&!h||"start"!==t&&h;return n0(u-Tf/2)?(d=v?"bottom":"top",f="center"):n0(u-1.5*Tf)?(d=v?"top":"bottom",f="center"):(d="middle",f=u<1.5*Tf&&u>Tf/2?v?"left":"right":v?"right":"left"),{rotation:u,textAlign:f,textVerticalAlign:d}}(t.rotation,d,S||0,m),null!=(k=t.axisNameAvailableWidth)&&(k=Math.abs(k/Math.sin(C.rotation)),!isFinite(k)&&(k=null)));var D=v.getFont(),x=e.get("nameTruncate",!0)||{},T=x.ellipsis,E=Ui(t.nameTruncateMaxWidth,x.maxWidth,k),P=new dn({x:b[0],y:b[1],rotation:C.rotation,silent:Ah.isLabelSilent(e),style:Cr(v,{text:f,font:D,overflow:"truncate",width:E,ellipsis:T,fill:v.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:v.get("align")||C.textAlign,verticalAlign:v.get("verticalAlign")||C.textVerticalAlign}),z2:1});if(ih({el:P,componentModel:e,itemName:f}),P.__fullText=f,P.anid="name",e.get("triggerEvent")){var V=Ah.makeAxisEventDataBase(e);V.targetType="axisName",V.name=f,vt(P).eventData=V}u.add(P),P.updateTransform(),o.add(P),P.decomposeTransform()}}};function Ps(a){a&&(a.ignore=!0)}function Eh(a,t){var e=a&&a.getBoundingRect().clone(),o=t&&t.getBoundingRect().clone();if(e&&o){var u=Tp([]);return el(u,u,-a.rotation),e.applyTransform(Js([],u,a.getLocalTransform())),o.applyTransform(Js([],u,t.getLocalTransform())),e.intersect(o)}}function hT(a){return"middle"===a||"center"===a}function Mw(a,t,e,o,u){for(var f=[],d=[],h=[],v=0;v=0||a===t}function v6(a){var t=pT(a);if(t){var e=t.axisPointerModel,o=t.axis.scale,u=e.option,f=e.get("status"),d=e.get("value");null!=d&&(d=o.parse(d));var h=kw(e);null==f&&(u.status=h?"show":"hide");var v=o.getExtent().slice();v[0]>v[1]&&v.reverse(),(null==d||d>v[1])&&(d=v[1]),d0&&!S.min?S.min=0:null!=S.min&&S.min<0&&!S.max&&(S.max=0);var k=v;null!=S.color&&(k=rt({color:S.color},v));var D=Dt(ot(S),{boundaryGap:e,splitNumber:o,scale:u,axisLine:f,axisTick:d,axisLabel:h,name:S.text,showName:g,nameLocation:"end",nameGap:y,nameTextStyle:k,triggerEvent:b},!1);if(g||(D.name=""),Ne(m)){var x=D.name;D.name=m.replace("{value}",null!=x?x:"")}else et(m)&&(D.name=m(D.name,D));var T=new Kn(D,null,this.ecModel);return Ir(T,wf.prototype),T.mainType="radar",T.componentIndex=this.componentIndex,T},this);this._indicatorModels=C},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type="radar",t.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:Dt({lineStyle:{color:"#bbb"}},ly.axisLine),axisLabel:Oh(ly.axisLabel,!1),axisTick:Oh(ly.axisTick,!1),splitLine:Oh(ly.splitLine,!0),splitArea:Oh(ly.splitArea,!0),indicator:[]},t}(sn),w6=C6,S6=["axisLine","axisTickLabel","axisName"],M6=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.render=function(e,o,u){this.group.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e){var o=e.coordinateSystem;q(Me(o.getIndicatorAxes(),function(d){var h=d.model.get("showName")?d.name:"";return new ra(d.model,{axisName:h,position:[o.cx,o.cy],rotation:d.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})}),function(d){q(S6,d.add,d),this.group.add(d.getGroup())},this)},t.prototype._buildSplitLineAndArea=function(e){var o=e.coordinateSystem,u=o.getIndicatorAxes();if(u.length){var f=e.get("shape"),d=e.getModel("splitLine"),h=e.getModel("splitArea"),v=d.getModel("lineStyle"),g=h.getModel("areaStyle"),m=d.get("show"),y=h.get("show"),b=v.get("color"),C=g.get("color"),S=Ce(b)?b:[b],k=Ce(C)?C:[C],D=[],x=[];if("circle"===f)for(var E=u[0].getTicksCoords(),P=o.cx,V=o.cy,N=0;N3?1.4:d>1?1.2:1.1;Pw(this,"zoom","zoomOnMouseWheel",e,{scale:f>0?g:1/g,originX:h,originY:v,isAvailableBehavior:null})}if(u){var y=Math.abs(f);Pw(this,"scrollMove","moveOnMouseWheel",e,{scrollDelta:(f>0?1:-1)*(y>3?.4:y>1?.15:.05),originX:h,originY:v,isAvailableBehavior:null})}}},t.prototype._pinchHandler=function(e){yT(this._zr,"globalPan")||Pw(this,"zoom",null,e,{scale:e.pinchScale>1?1.1:1/1.1,originX:e.pinchX,originY:e.pinchY,isAvailableBehavior:null})},t}(ls);function Pw(a,t,e,o,u){a.pointerChecker&&a.pointerChecker(o,u.originX,u.originY)&&(It(o.event),Ow(a,t,e,o,u))}function Ow(a,t,e,o,u){u.isAvailableBehavior=ze(uy,null,e,o),a.trigger(t,u)}function uy(a,t,e){var o=e[a];return!a||o&&(!Ne(o)||t.event[o+"Key"])}var Ih=Ew;function cy(a,t,e){var o=a.target;o.x+=t,o.y+=e,o.dirty()}function CT(a,t,e,o){var u=a.target,f=a.zoomLimit,d=a.zoom=a.zoom||1;if(d*=t,f){var h=f.min||0;d=Math.max(Math.min(f.max||1/0,d),h)}var g=d/a.zoom;a.zoom=d,u.x-=(e-u.x)*(g-1),u.y-=(o-u.y)*(g-1),u.scaleX*=g,u.scaleY*=g,u.dirty()}var fy={axisPointer:1,tooltip:1,brush:1};function Iw(a,t,e){var o=t.getComponentByElement(a.topTarget),u=o&&o.coordinateSystem;return o&&o!==e&&!fy.hasOwnProperty(o.mainType)&&u&&u.model!==e}function RF(a){Ne(a)&&(a=(new DOMParser).parseFromString(a,"text/xml"));var e=a;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}var wT,Rh={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},zv=Zt(Rh),Gv={"alignment-baseline":"textBaseline","stop-color":"stopColor"},ST=Zt(Gv),LF=function(){function a(){this._defs={},this._root=null}return a.prototype.parse=function(t,e){e=e||{};var o=RF(t);this._defsUsePending=[];var u=new ct;this._root=u;var m,y,f=[],d=o.getAttribute("viewBox")||"",h=parseFloat(o.getAttribute("width")||e.width),v=parseFloat(o.getAttribute("height")||e.height);isNaN(h)&&(h=null),isNaN(v)&&(v=null),Ao(o,u,null,!0,!1);for(var g=o.firstChild;g;)this._parseNode(g,u,f,null,!1,!1),g=g.nextSibling;if(function T6(a,t){for(var e=0;e=4&&(m={x:parseFloat(b[0]||0),y:parseFloat(b[1]||0),width:parseFloat(b[2]),height:parseFloat(b[3])})}if(m&&null!=h&&null!=v&&(y=Pf(m,{x:0,y:0,width:h,height:v}),!e.ignoreViewBox)){var C=u;(u=new ct).add(C),C.scaleX=C.scaleY=y.scale,C.x=y.x,C.y=y.y}return!e.ignoreRootClip&&null!=h&&null!=v&&u.setClipPath(new fn({shape:{x:0,y:0,width:h,height:v}})),{root:u,width:h,height:v,viewBoxRect:m,viewBoxTransform:y,named:f}},a.prototype._parseNode=function(t,e,o,u,f,d){var v,h=t.nodeName.toLowerCase(),g=u;if("defs"===h&&(f=!0),"text"===h&&(d=!0),"defs"===h||"switch"===h)v=e;else{if(!f){var m=wT[h];if(m&&je(wT,h)){v=m.call(this,t,e);var y=t.getAttribute("name");if(y){var b={name:y,namedFrom:null,svgNodeTagLower:h,el:v};o.push(b),"g"===h&&(g=b)}else u&&o.push({name:u.name,namedFrom:u,svgNodeTagLower:h,el:v});e.add(v)}}var C=FF[h];if(C&&je(FF,h)){var S=C.call(this,t),k=t.getAttribute("id");k&&(this._defs[k]=S)}}if(v&&v.isGroup)for(var D=t.firstChild;D;)1===D.nodeType?this._parseNode(D,v,o,g,f,d):3===D.nodeType&&d&&this._parseText(D,v),D=D.nextSibling},a.prototype._parseText=function(t,e){var o=new Cm({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});Is(e,o),Ao(t,o,this._defsUsePending,!1,!1),function Lw(a,t){var e=t.__selfStyle;if(e){var o=e.textBaseline,u=o;o&&"auto"!==o&&"baseline"!==o?"before-edge"===o||"text-before-edge"===o?u="top":"after-edge"===o||"text-after-edge"===o?u="bottom":("central"===o||"mathematical"===o)&&(u="middle"):u="alphabetic",a.style.textBaseline=u}var f=t.__inheritedStyle;if(f){var d=f.textAlign,h=d;d&&("middle"===d&&(h="center"),a.style.textAlign=h)}}(o,e);var u=o.style,f=u.fontSize;f&&f<9&&(u.fontSize=9,o.scaleX*=f/9,o.scaleY*=f/9);var d=(u.fontSize||u.fontFamily)&&[u.fontStyle,u.fontWeight,(u.fontSize||12)+"px",u.fontFamily||"sans-serif"].join(" ");u.font=d;var h=o.getBoundingRect();return this._textX+=h.width,e.add(o),o},a.internalField=void(wT={g:function(e,o){var u=new ct;return Is(o,u),Ao(e,u,this._defsUsePending,!1,!1),u},rect:function(e,o){var u=new fn;return Is(o,u),Ao(e,u,this._defsUsePending,!1,!1),u.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),u.silent=!0,u},circle:function(e,o){var u=new ks;return Is(o,u),Ao(e,u,this._defsUsePending,!1,!1),u.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),u.silent=!0,u},line:function(e,o){var u=new Nr;return Is(o,u),Ao(e,u,this._defsUsePending,!1,!1),u.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),u.silent=!0,u},ellipse:function(e,o){var u=new $m;return Is(o,u),Ao(e,u,this._defsUsePending,!1,!1),u.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),u.silent=!0,u},polygon:function(e,o){var f,u=e.getAttribute("points");u&&(f=BF(u));var d=new Ia({shape:{points:f||[]},silent:!0});return Is(o,d),Ao(e,d,this._defsUsePending,!1,!1),d},polyline:function(e,o){var f,u=e.getAttribute("points");u&&(f=BF(u));var d=new Ra({shape:{points:f||[]},silent:!0});return Is(o,d),Ao(e,d,this._defsUsePending,!1,!1),d},image:function(e,o){var u=new Ki;return Is(o,u),Ao(e,u,this._defsUsePending,!1,!1),u.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),u.silent=!0,u},text:function(e,o){var u=e.getAttribute("x")||"0",f=e.getAttribute("y")||"0",d=e.getAttribute("dx")||"0",h=e.getAttribute("dy")||"0";this._textX=parseFloat(u)+parseFloat(d),this._textY=parseFloat(f)+parseFloat(h);var v=new ct;return Is(o,v),Ao(e,v,this._defsUsePending,!1,!0),v},tspan:function(e,o){var u=e.getAttribute("x"),f=e.getAttribute("y");null!=u&&(this._textX=parseFloat(u)),null!=f&&(this._textY=parseFloat(f));var d=e.getAttribute("dx")||"0",h=e.getAttribute("dy")||"0",v=new ct;return Is(o,v),Ao(e,v,this._defsUsePending,!1,!0),this._textX+=parseFloat(d),this._textY+=parseFloat(h),v},path:function(e,o){var f=DR(e.getAttribute("d")||"");return Is(o,f),Ao(e,f,this._defsUsePending,!1,!1),f.silent=!0,f}}),a}(),FF={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),o=parseInt(t.getAttribute("y1")||"0",10),u=parseInt(t.getAttribute("x2")||"10",10),f=parseInt(t.getAttribute("y2")||"0",10),d=new ju(e,o,u,f);return Rw(t,d),NF(t,d),d},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),o=parseInt(t.getAttribute("cy")||"0",10),u=parseInt(t.getAttribute("r")||"0",10),f=new vv(e,o,u);return Rw(t,f),NF(t,f),f}};function Rw(a,t){"userSpaceOnUse"===a.getAttribute("gradientUnits")&&(t.global=!0)}function NF(a,t){for(var e=a.firstChild;e;){if(1===e.nodeType&&"stop"===e.nodeName.toLocaleLowerCase()){var u,o=e.getAttribute("offset");u=o&&o.indexOf("%")>0?parseInt(o,10)/100:o?parseFloat(o):0;var f={};uc(e,f,f);var d=f.stopColor||e.getAttribute("stop-color")||"#000000";t.colorStops.push({offset:u,color:d})}e=e.nextSibling}}function Is(a,t){a&&a.__inheritedStyle&&(t.__inheritedStyle||(t.__inheritedStyle={}),rt(t.__inheritedStyle,a.__inheritedStyle))}function BF(a){for(var t=dy(a),e=[],o=0;o0;f-=2){var h=o[f-1],v=dy(o[f]);switch(u=u||[1,0,0,1,0,0],h){case"translate":vs(u,u,[parseFloat(v[0]),parseFloat(v[1]||"0")]);break;case"scale":$b(u,u,[parseFloat(v[0]),parseFloat(v[1]||v[0])]);break;case"rotate":el(u,u,-parseFloat(v[0])*MT);break;case"skewX":Js(u,[1,0,Math.tan(parseFloat(v[0])*MT),1,0,0],u);break;case"skewY":Js(u,[1,Math.tan(parseFloat(v[0])*MT),0,1,0,0],u);break;case"matrix":u[0]=parseFloat(v[0]),u[1]=parseFloat(v[1]),u[2]=parseFloat(v[2]),u[3]=parseFloat(v[3]),u[4]=parseFloat(v[4]),u[5]=parseFloat(v[5])}}t.setLocalTransform(u)}}(a,t),uc(a,d,h),o||function P6(a,t,e){for(var o=0;o0,D={api:o,geo:v,mapOrGeoModel:t,data:h,isVisualEncodedByVisualMap:k,isGeo:d,transformInfoRaw:b};"geoJSON"===v.resourceType?this._buildGeoJSON(D):"geoSVG"===v.resourceType&&this._buildSVG(D),this._updateController(t,e,o),this._updateMapSelectHandler(t,g,o,u)},a.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=$e(),o=$e(),u=this._regionsGroup,f=t.transformInfoRaw,d=t.mapOrGeoModel,h=t.data,v=t.geo.projection,g=v&&v.stream;function m(C,S){return S&&(C=S(C)),C&&[C[0]*f.scaleX+f.x,C[1]*f.scaleY+f.y]}function y(C){for(var S=[],k=!g&&v&&v.project,D=0;D=0)&&(b=u);var C=d?{normal:{align:"center",verticalAlign:"middle"}}:null;$i(t,va(o),{labelFetcher:b,labelDataIndex:y,defaultText:e},C);var S=t.getTextContent();if(S&&(xT(S).ignore=S.ignore,t.textConfig&&d)){var k=t.getBoundingRect().clone();t.textConfig.layoutRect=k,t.textConfig.position=[(d[0]-k.x)/k.width*100+"%",(d[1]-k.y)/k.height*100+"%"]}t.disableLabelAnimation=!0}else t.removeTextContent(),t.removeTextConfig(),t.disableLabelAnimation=null}function YF(a,t,e,o,u,f){a.data?a.data.setItemGraphicEl(f,t):vt(t).eventData={componentType:"geo",componentIndex:u.componentIndex,geoIndex:u.componentIndex,name:e,region:o&&o.option||{}}}function qF(a,t,e,o,u){a.data||ih({el:t,componentModel:u,itemName:e,itemTooltipOption:o.get("tooltip")})}function ZF(a,t,e,o,u){t.highDownSilentOnTouch=!!u.get("selectedMode");var f=o.getModel("emphasis"),d=f.get("focus");return Yr(t,d,f.get("blurScope"),f.get("disabled")),a.isGeo&&function G(a,t,e){var o=vt(a);o.componentMainType=t.mainType,o.componentIndex=t.componentIndex,o.componentHighDownName=e}(t,u,e),d}function XF(a,t,e){var u,o=[];function f(){u=[]}function d(){u.length&&(o.push(u),u=[])}var h=t({polygonStart:f,polygonEnd:d,lineStart:f,lineEnd:d,point:function(g,m){isFinite(g)&&isFinite(m)&&u.push([g,m])},sphere:function(){}});return!e&&h.polygonStart(),q(a,function(v){h.lineStart();for(var g=0;g-1&&(u.style.stroke=u.style.fill,u.style.fill="#fff",u.style.lineWidth=2),u},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={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"},t}(fr),Hw=$F;function G6(a){var t={};a.eachSeriesByType("map",function(e){var o=e.getHostGeoModel(),u=o?"o"+o.id:"i"+e.getMapType();(t[u]=t[u]||[]).push(e)}),q(t,function(e,o){for(var u=function z6(a,t){var e={};return q(a,function(o){o.each(o.mapDimension("value"),function(u,f){var d="ec-"+o.getName(f);e[d]=e[d]||[],isNaN(u)||e[d].push(u)})}),a[0].map(a[0].mapDimension("value"),function(o,u){for(var f="ec-"+a[0].getName(u),d=0,h=1/0,v=-1/0,g=e[f].length,m=0;m1?(P.width=E,P.height=E/D):(P.height=E,P.width=E*D),P.y=T[1]-P.height/2,P.x=T[0]-P.width/2;else{var V=a.getBoxLayoutParams();V.aspect=D,P=oi(V,{width:S,height:k})}this.setViewRect(P.x,P.y,P.width,P.height),this.setCenter(a.get("center")),this.setZoom(a.get("zoom"))}var j6=function(){function a(){this.dimensions=eN}return a.prototype.create=function(t,e){var o=[];function u(d){return{nameProperty:d.get("nameProperty"),aspectScale:d.get("aspectScale"),projection:d.get("projection")}}t.eachComponent("geo",function(d,h){var v=d.get("map"),g=new rN(v+h,v,ve({nameMap:d.get("nameMap")},u(d)));g.zoomLimit=d.get("scaleLimit"),o.push(g),d.coordinateSystem=g,g.model=d,g.resize=iN,g.resize(d,e)}),t.eachSeries(function(d){if("geo"===d.get("coordinateSystem")){var v=d.get("geoIndex")||0;d.coordinateSystem=o[v]}});var f={};return t.eachSeriesByType("map",function(d){if(!d.getHostGeoModel()){var h=d.getMapType();f[h]=f[h]||[],f[h].push(d)}}),q(f,function(d,h){var v=Me(d,function(m){return m.get("nameMap")}),g=new rN(h,h,ve({nameMap:gr(v)},u(d[0])));g.zoomLimit=Ui.apply(null,Me(d,function(m){return m.get("scaleLimit")})),o.push(g),g.resize=iN,g.resize(d[0],e),q(d,function(m){m.coordinateSystem=g,function U6(a,t){q(t.get("geoCoord"),function(e,o){a.addGeoCoord(o,e)})}(g,m)})}),o},a.prototype.getFilledRegions=function(t,e,o,u){for(var f=(t||[]).slice(),d=$e(),h=0;h=0;){var f=t[e];f.hierNode.prelim+=o,f.hierNode.modifier+=o,o+=f.hierNode.shift+(u+=f.hierNode.change)}}(a);var f=(e[0].hierNode.prelim+e[e.length-1].hierNode.prelim)/2;u?(a.hierNode.prelim=u.hierNode.prelim+t(a,u),a.hierNode.modifier=a.hierNode.prelim-f):a.hierNode.prelim=f}else u&&(a.hierNode.prelim=u.hierNode.prelim+t(a,u));a.parentNode.hierNode.defaultAncestor=function pN(a,t,e,o){if(t){for(var u=a,f=a,d=f.parentNode.children[0],h=t,v=u.hierNode.modifier,g=f.hierNode.modifier,m=d.hierNode.modifier,y=h.hierNode.modifier;h=PT(h),f=by(f),h&&f;){u=PT(u),d=by(d),u.hierNode.ancestor=a;var b=h.hierNode.prelim+y-f.hierNode.prelim-g+o(h,f);b>0&&(J6(Q6(h,a,e),a,b),g+=b,v+=b),y+=h.hierNode.modifier,g+=f.hierNode.modifier,v+=u.hierNode.modifier,m+=d.hierNode.modifier}h&&!PT(u)&&(u.hierNode.thread=h,u.hierNode.modifier+=y-v),f&&!by(d)&&(d.hierNode.thread=f,d.hierNode.modifier+=g-m,e=a)}return e}(a,u,a.parentNode.hierNode.defaultAncestor||o[0],t)}function dN(a){a.setLayout({x:a.hierNode.prelim+a.parentNode.hierNode.modifier},!0),a.hierNode.modifier+=a.parentNode.hierNode.modifier}function hN(a){return arguments.length?a:ej}function yy(a,t){return a-=Math.PI/2,{x:t*Math.cos(a),y:t*Math.sin(a)}}function PT(a){var t=a.children;return t.length&&a.isExpand?t[t.length-1]:a.hierNode.thread}function by(a){var t=a.children;return t.length&&a.isExpand?t[0]:a.hierNode.thread}function Q6(a,t,e){return a.hierNode.ancestor.parentNode===t.parentNode?a.hierNode.ancestor:e}function J6(a,t,e){var o=e/(t.hierNode.i-a.hierNode.i);t.hierNode.change-=o,t.hierNode.shift+=e,t.hierNode.modifier+=e,t.hierNode.prelim+=e,a.hierNode.change+=o}function ej(a,t){return a.parentNode===t.parentNode?1:2}var OT=function a(){this.parentPoint=[],this.childPoints=[]},vN=function(a){function t(e){return a.call(this,e)||this}return de(t,a),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new OT},t.prototype.buildPath=function(e,o){var u=o.childPoints,f=u.length,d=o.parentPoint,h=u[0],v=u[f-1];if(1===f)return e.moveTo(d[0],d[1]),void e.lineTo(h[0],h[1]);var g=o.orient,m="TB"===g||"BT"===g?0:1,y=1-m,b=Ie(o.forkPosition,1),C=[];C[m]=d[m],C[y]=d[y]+(v[y]-d[y])*b,e.moveTo(d[0],d[1]),e.lineTo(C[0],C[1]),e.moveTo(h[0],h[1]),C[m]=h[m],e.lineTo(C[0],C[1]),C[m]=v[m],e.lineTo(C[0],C[1]),e.lineTo(v[0],v[1]);for(var S=1;ST.x)||(P-=Math.PI);var H=V?"left":"right",j=h.getModel("label"),Z=j.get("rotate"),W=Z*(Math.PI/180),X=D.getTextContent();X&&(D.setTextConfig({position:j.get("position")||H,rotation:null==Z?-P:W,origin:"center"}),X.setStyle("verticalAlign","middle"))}var J=h.get(["emphasis","focus"]),ee="ancestor"===J?d.getAncestorsIndices():"descendant"===J?d.getDescendantIndices():null;ee&&(vt(e).focus=ee),function nj(a,t,e,o,u,f,d,h){var v=t.getModel(),g=a.get("edgeShape"),m=a.get("layout"),y=a.getOrient(),b=a.get(["lineStyle","curveness"]),C=a.get("edgeForkPosition"),S=v.getModel("lineStyle").getLineStyle(),k=o.__edge;if("curve"===g)t.parentNode&&t.parentNode!==e&&(k||(k=o.__edge=new Vi({shape:Ba(m,y,b,u,u)})),Ut(k,{shape:Ba(m,y,b,f,d)},a));else if("polyline"===g&&"orthogonal"===m&&t!==e&&t.children&&0!==t.children.length&&!0===t.isExpand){for(var D=t.children,x=[],T=0;Te&&(e=u.height)}this.height=e+1},a.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,o=this.children,u=o.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},a.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},a.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},a.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},a.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},a.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},a.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},a.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},a.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e=0){var o=e.getData().tree.root,u=a.targetNode;if(Ne(u)&&(u=o.getNodeById(u)),u&&o.contains(u))return{node:u};var f=a.targetNodeId;if(null!=f&&(u=o.getNodeById(f)))return{node:u}}}function FT(a){for(var t=[];a;)(a=a.parentNode)&&t.push(a);return t.reverse()}function NT(a,t){return Ct(FT(a),t)>=0}function Ww(a,t){for(var e=[];a;){var o=a.dataIndex;e.push({name:a.name,dataIndex:o,value:t.getRawValue(o)}),a=a.parentNode}return e.reverse(),e}var sj=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return de(t,a),t.prototype.getInitialData=function(e){var o={name:e.name,children:e.data},f=new Kn(e.leaves||{},this,this.ecModel),d=LT.createTree(o,this,function h(y){y.wrapMethod("getItemModel",function(b,C){var S=d.getNodeByDataIndex(C);return S&&S.children.length&&S.isExpand||(b.parentModel=f),b})}),v=0;d.eachNode("preorder",function(y){y.depth>v&&(v=y.depth)});var m=e.expandAndCollapse&&e.initialTreeDepth>=0?e.initialTreeDepth:v;return d.root.eachNode("preorder",function(y){var b=y.hostTree.data.getRawDataItem(y.dataIndex);y.isExpand=b&&null!=b.collapsed?!b.collapsed:y.depth<=m}),d.data},t.prototype.getOrient=function(){var e=this.get("orient");return"horizontal"===e?e="LR":"vertical"===e&&(e="TB"),e},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.formatTooltip=function(e,o,u){for(var f=this.getData().tree,d=f.root.children[0],h=f.getNodeByDataIndex(e),v=h.getValue(),g=h.name;h&&h!==d;)g=h.parentNode.name+"."+g,h=h.parentNode;return Gt("nameValue",{name:g,value:v,noValue:isNaN(v)||null==v})},t.prototype.getDataParams=function(e){var o=a.prototype.getDataParams.apply(this,arguments),u=this.getData().tree.getNodeByDataIndex(e);return o.treeAncestors=Ww(u,this),o.collapsed=!u.isExpand,o},t.type="series.tree",t.layoutMode="box",t.defaultOption={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},t}(fr),wN=sj;function wy(a,t){for(var o,e=[a];o=e.pop();)if(t(o),o.isExpand){var u=o.children;if(u.length)for(var f=u.length-1;f>=0;f--)e.push(u[f])}}function uj(a,t){a.eachSeriesByType("tree",function(e){!function BT(a,t){var e=function K6(a,t){return oi(a.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(a,t);a.layoutInfo=e;var o=a.get("layout"),u=0,f=0,d=null;"radial"===o?(u=2*Math.PI,f=Math.min(e.height,e.width)/2,d=hN(function(E,P){return(E.parentNode===P.parentNode?1:2)/E.depth})):(u=e.width,f=e.height,d=hN());var h=a.getData().tree.root,v=h.children[0];if(v){(function cN(a){var t=a;t.hierNode={defaultAncestor:null,ancestor:t,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var o,u,e=[t];o=e.pop();)if(u=o.children,o.isExpand&&u.length)for(var d=u.length-1;d>=0;d--){var h=u[d];h.hierNode={defaultAncestor:null,ancestor:h,prelim:0,modifier:0,change:0,shift:0,i:d,thread:null},e.push(h)}})(h),function lj(a,t,e){for(var f,o=[a],u=[];f=o.pop();)if(u.push(f),f.isExpand){var d=f.children;if(d.length)for(var h=0;hm.getLayout().x&&(m=E),E.depth>y.depth&&(y=E)});var b=g===m?1:d(g,m)/2,C=b-g.getLayout().x,S=0,k=0,D=0,x=0;if("radial"===o)S=u/(m.getLayout().x+b+C),k=f/(y.depth-1||1),wy(v,function(E){var P=yy(D=(E.getLayout().x+C)*S,x=(E.depth-1)*k);E.setLayout({x:P.x,y:P.y,rawX:D,rawY:x},!0)});else{var T=a.getOrient();"RL"===T||"LR"===T?(k=f/(m.getLayout().x+b+C),S=u/(y.depth-1||1),wy(v,function(E){x=(E.getLayout().x+C)*k,E.setLayout({x:D="LR"===T?(E.depth-1)*S:u-(E.depth-1)*S,y:x},!0)})):("TB"===T||"BT"===T)&&(S=u/(m.getLayout().x+b+C),k=f/(y.depth-1||1),wy(v,function(E){D=(E.getLayout().x+C)*S,E.setLayout({x:D,y:x="TB"===T?(E.depth-1)*k:f-(E.depth-1)*k},!0)}))}}}(e,t)})}function cj(a){a.eachSeriesByType("tree",function(t){var e=t.getData();e.tree.eachNode(function(u){var d=u.getModel().getModel("itemStyle").getItemStyle();ve(e.ensureUniqueItemVisual(u.dataIndex,"style"),d)})})}var MN=["treemapZoomToNode","treemapRender","treemapMove"];function kN(a){var t=a.getData(),o={};t.tree.eachNode(function(u){for(var f=u;f&&f.depth>1;)f=f.parentNode;var d=Hk(a.ecModel,f.name||f.dataIndex+"",o);u.setVisual("decal",d)})}var gt=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.preventUsingHoverLayer=!0,e}return de(t,a),t.prototype.getInitialData=function(e,o){var u={name:e.name,children:e.data};Va(u);var f=e.levels||[],d=this.designatedVisualItemStyle={},h=new Kn({itemStyle:d},this,o);f=e.levels=function DN(a,t){var e=Xn(t.get("color")),o=Xn(t.get(["aria","decal","decals"]));if(e){var u,f;q(a=a||[],function(h){var v=new Kn(h),g=v.get("color"),m=v.get("decal");(v.get(["itemStyle","color"])||g&&"none"!==g)&&(u=!0),(v.get(["itemStyle","decal"])||m&&"none"!==m)&&(f=!0)});var d=a[0]||(a[0]={});return u||(d.color=e.slice()),!f&&o&&(d.decal=o.slice()),a}}(f,o);var v=Me(f||[],function(y){return new Kn(y,h,o)},this),g=LT.createTree(u,this,function m(y){y.wrapMethod("getItemModel",function(b,C){var S=g.getNodeByDataIndex(C);return b.parentModel=(S?v[S.depth]:null)||h,b})});return g.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.formatTooltip=function(e,o,u){var f=this.getData(),d=this.getRawValue(e);return Gt("nameValue",{name:f.getName(e),value:d})},t.prototype.getDataParams=function(e){var o=a.prototype.getDataParams.apply(this,arguments),u=this.getData().tree.getNodeByDataIndex(e);return o.treeAncestors=Ww(u,this),o.treePathInfo=o.treeAncestors,o},t.prototype.setLayoutInfo=function(e){this.layoutInfo=this.layoutInfo||{},ve(this.layoutInfo,e)},t.prototype.mapIdToIndex=function(e){var o=this._idIndexMap;o||(o=this._idIndexMap=$e(),this._idIndexMapCount=0);var u=o.get(e);return null==u&&o.set(e,u=this._idIndexMapCount++),u},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var o=this.getRawData().tree.root;(!e||e!==o&&!o.contains(e))&&(this._viewRoot=o)},t.prototype.enableAriaDecal=function(){kN(this)},t.type="series.treemap",t.layoutMode="box",t.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%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},t}(fr);function Va(a){var t=0;q(a.children,function(o){Va(o);var u=o.value;Ce(u)&&(u=u[0]),t+=u});var e=a.value;Ce(e)&&(e=e[0]),(null==e||isNaN(e))&&(e=t),e<0&&(e=0),Ce(a.value)?a.value[0]=e:a.value=e}var Yw=gt,dj=function(){function a(t){this.group=new ct,t.add(this.group)}return a.prototype.render=function(t,e,o,u){var f=t.getModel("breadcrumb"),d=this.group;if(d.removeAll(),f.get("show")&&o){var h=f.getModel("itemStyle"),v=h.getModel("textStyle"),g={pos:{left:f.get("left"),right:f.get("right"),top:f.get("top"),bottom:f.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:f.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(o,g,v),this._renderContent(t,g,h,v,u),Ok(d,g.pos,g.box)}},a.prototype._prepare=function(t,e,o){for(var u=t;u;u=u.parentNode){var f=wi(u.getModel().get("name"),""),d=o.getTextRect(f),h=Math.max(d.width+16,e.emptyItemWidth);e.totalWidth+=h+8,e.renderList.push({node:u,text:f,width:h})}},a.prototype._renderContent=function(t,e,o,u,f){for(var d=0,h=e.emptyItemWidth,v=t.get(["breadcrumb","height"]),g=function Pk(a,t,e){var o=t.width,u=t.height,f=Ie(a.left,o),d=Ie(a.top,u),h=Ie(a.right,o),v=Ie(a.bottom,u);return(isNaN(f)||isNaN(parseFloat(a.left)))&&(f=0),(isNaN(h)||isNaN(parseFloat(a.right)))&&(h=o),(isNaN(d)||isNaN(parseFloat(a.top)))&&(d=0),(isNaN(v)||isNaN(parseFloat(a.bottom)))&&(v=u),e=jd(e||0),{width:Math.max(h-f-e[1]-e[3],0),height:Math.max(v-d-e[0]-e[2],0)}}(e.pos,e.box),m=e.totalWidth,y=e.renderList,b=y.length-1;b>=0;b--){var C=y[b],S=C.node,k=C.width,D=C.text;m>g.width&&(m-=k-h,k=h,D=null);var x=new Ia({shape:{points:hj(d,0,k,v,b===y.length-1,0===b)},style:rt(o.getItemStyle(),{lineJoin:"bevel"}),textContent:new dn({style:{text:D,fill:u.getTextColor(),font:u.getFont()}}),textConfig:{position:"inside"},z2:1e5,onclick:wt(f,S)});x.disableLabelAnimation=!0,this.group.add(x),pj(x,t,S),d+=k+8}},a.prototype.remove=function(){this.group.removeAll()},a}();function hj(a,t,e,o,u,f){var d=[[u?a:a-5,t],[a+e,t],[a+e,t+o],[u?a:a-5,t+o]];return!f&&d.splice(2,0,[a+e+5,t+o/2]),!u&&d.push([a,t+o/2]),d}function pj(a,t,e){vt(a).eventData={componentType:"series",componentSubType:"treemap",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:e&&e.dataIndex,name:e&&e.name},treePathInfo:e&&Ww(e,t)}}var gu=dj,xN=function(){function a(){this._storage=[],this._elExistsMap={}}return a.prototype.add=function(t,e,o,u,f){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:o,delay:u,easing:f}),!0)},a.prototype.finished=function(t){return this._finishedCallback=t,this},a.prototype.start=function(){for(var t=this,e=this._storage.length,o=function(){--e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},u=0,f=this._storage.length;u3||Math.abs(e.dy)>3)){var o=this.seriesModel.getData().tree.root;if(!o)return;var u=o.getLayout();if(!u)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:u.x+e.dx,y:u.y+e.dy,width:u.width,height:u.height}})}},t.prototype._onZoom=function(e){var o=e.originX,u=e.originY;if("animating"!==this._state){var f=this.seriesModel.getData().tree.root;if(!f)return;var d=f.getLayout();if(!d)return;var h=new zt(d.x,d.y,d.width,d.height),v=this.seriesModel.layoutInfo,g=[1,0,0,1,0,0];vs(g,g,[-(o-=v.x),-(u-=v.y)]),$b(g,g,[e.scale,e.scale]),vs(g,g,[o,u]),h.applyTransform(g),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:h.x,y:h.y,width:h.width,height:h.height}})}},t.prototype._initEvents=function(e){var o=this;e.on("click",function(u){if("ready"===o._state){var f=o.seriesModel.get("nodeClick",!0);if(f){var d=o.findTarget(u.offsetX,u.offsetY);if(d){var h=d.node;if(h.getLayout().isLeafRoot)o._rootToNode(d);else if("zoomToNode"===f)o._zoomToNode(d);else if("link"===f){var v=h.hostTree.data.getItemModel(h.dataIndex),g=v.get("link",!0),m=v.get("target",!0)||"blank";g&&G0(g,m)}}}}},this)},t.prototype._renderBreadcrumb=function(e,o,u){var f=this;u||(u=null!=e.get("leafDepth",!0)?{node:e.getViewRoot()}:this.findTarget(o.getWidth()/2,o.getHeight()/2))||(u={node:e.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new gu(this.group))).render(e,o,u.node,function(d){"animating"!==f._state&&(NT(e.getViewRoot(),d)?f._rootToNode({node:d}):f._zoomToNode({node:d}))})},t.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},t.prototype.dispose=function(){this._clearController()},t.prototype._zoomToNode=function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype._rootToNode=function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},t.prototype.findTarget=function(e,o){var u;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(d){var h=this._storage.background[d.getRawIndex()];if(h){var v=h.transformCoordToLocal(e,o),g=h.shape;if(!(g.x<=v[0]&&v[0]<=g.x+g.width&&g.y<=v[1]&&v[1]<=g.y+g.height))return!1;u={node:d,offsetX:v[0],offsetY:v[1]}}},this),u},t.type="treemap",t}(jn),Qw=mj,Yv=q,PN=Ke,GT=function(){function a(t){var e=t.mappingMethod,o=t.type,u=this.option=ot(t);this.type=o,this.mappingMethod=e,this._normalizeData=ON[e];var f=a.visualHandlers[o];this.applyVisual=f.applyVisual,this.getColorMapper=f.getColorMapper,this._normalizedToVisual=f._normalizedToVisual[e],"piecewise"===e?(UT(u),function yj(a){var t=a.pieceList;a.hasSpecialVisual=!1,q(t,function(e,o){e.originIndex=o,null!=e.visual&&(a.hasSpecialVisual=!0)})}(u)):"category"===e?u.categories?function Jw(a){var t=a.categories,e=a.categoryMap={},o=a.visual;if(Yv(t,function(d,h){e[d]=h}),!Ce(o)){var u=[];Ke(o)?Yv(o,function(d,h){var v=e[h];u[null!=v?v:-1]=d}):u[-1]=o,o=qv(a,u)}for(var f=t.length-1;f>=0;f--)null==o[f]&&(delete e[t[f]],t.pop())}(u):UT(u,!0):(fa("linear"!==e||u.dataExtent),UT(u))}return a.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},a.prototype.getNormalizer=function(){return ze(this._normalizeData,this)},a.listVisualTypes=function(){return Zt(a.visualHandlers)},a.isValidType=function(t){return a.visualHandlers.hasOwnProperty(t)},a.eachVisual=function(t,e,o){Ke(t)?q(t,e,o):e.call(o,t)},a.mapVisual=function(t,e,o){var u,f=Ce(t)?[]:Ke(t)?{}:(u=!0,null);return a.eachVisual(t,function(d,h){var v=e.call(o,d,h);u?f=v:f[h]=v}),f},a.retrieveVisuals=function(t){var o,e={};return t&&Yv(a.visualHandlers,function(u,f){t.hasOwnProperty(f)&&(e[f]=t[f],o=!0)}),o?e:null},a.prepareVisualTypes=function(t){if(Ce(t))t=t.slice();else{if(!PN(t))return[];var e=[];Yv(t,function(o,u){e.push(u)}),t=e}return t.sort(function(o,u){return"color"===u&&"color"!==o&&0===o.indexOf("color")?1:-1}),t},a.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},a.findPieceIndex=function(t,e,o){for(var u,f=1/0,d=0,h=e.length;dg[1]&&(g[1]=v);var m=t.get("colorMappingBy"),y={type:d.name,dataExtent:g,visual:d.range};"color"!==y.type||"index"!==m&&"id"!==m?y.mappingMethod="linear":(y.mappingMethod="category",y.loop=!0);var b=new pn(y);return Bh(b).drColorMappingBy=m,b}}}(0,u,f,0,v,C);q(C,function(k,D){if(k.depth>=e.length||k===e[k.depth]){var x=function $X(a,t,e,o,u,f){var d=ve({},t);if(u){var h=u.type,v="color"===h&&Bh(u).drColorMappingBy,g="index"===v?o:"id"===v?f.mapIdToIndex(e.getId()):e.getValue(a.get("visualDimension"));d[h]=u.mapValueToVisual(g)}return d}(u,v,k,D,S,o);YT(k,x,e,o)}})}else b=RN(v),g.fill=b}}function RN(a){var t=Xv(a,"color");if(t){var e=Xv(a,"colorAlpha"),o=Xv(a,"colorSaturation");return o&&(t=Zg(t,null,null,o)),e&&(t=Sp(t,e)),t}}function Xv(a,t){var e=a[t];if(null!=e&&"none"!==e)return e}function qT(a,t){var e=a.get(t);return Ce(e)&&e.length?{name:t,range:e}:null}var zh=Math.max,r1=Math.min,ZT=Ui,Gh=q,hc=["itemStyle","borderWidth"],XT=["itemStyle","gapWidth"],bj=["upperLabel","show"],Cj=["upperLabel","height"],wj={seriesType:"treemap",reset:function(t,e,o,u){var f=o.getWidth(),d=o.getHeight(),h=t.option,v=oi(t.getBoxLayoutParams(),{width:o.getWidth(),height:o.getHeight()}),g=h.size||[],m=Ie(ZT(v.width,g[0]),f),y=Ie(ZT(v.height,g[1]),d),b=u&&u.type,S=Cy(u,["treemapZoomToNode","treemapRootToNode"],t),k="treemapRender"===b||"treemapMove"===b?u.rootRect:null,D=t.getViewRoot(),x=FT(D);if("treemapMove"!==b){var T="treemapZoomToNode"===b?function tK(a,t,e,o,u){var f=(t||{}).node,d=[o,u];if(!f||f===e)return d;for(var h,v=o*u,g=v*a.option.zoomToNodeRatio;h=f.parentNode;){for(var m=0,y=h.children,b=0,C=y.length;bSO&&(g=SO),f=h}gh[1]&&(h[1]=g)})):h=[NaN,NaN],{sum:o,dataExtent:h}}(t,d,h);if(0===g.sum)return a.viewChildren=[];if(g.sum=function QX(a,t,e,o,u){if(!o)return e;for(var f=a.get("visibleMin"),d=u.length,h=d,v=d-1;v>=0;v--){var g=u["asc"===o?d-v-1:v].getValue();g/e*to&&(o=d));var v=a.area*a.area,g=t*t*e;return v?zh(g*o/v,v/(g*u)):1/0}function Sj(a,t,e,o,u){var f=t===e.width?0:1,d=1-f,h=["x","y"],v=["width","height"],g=e[h[f]],m=t?a.area/t:0;(u||m>e[v[d]])&&(m=e[v[d]]);for(var y=0,b=a.length;yu&&(u=e);var d=u%2?u+2:u+3;f=[];for(var h=0;h0&&(V[0]=-V[0],V[1]=-V[1]);var H=P[0]<0?-1:1;if("start"!==f.__position&&"end"!==f.__position){var j=-Math.atan2(P[1],P[0]);y[0].8?"left":b[0]<-.8?"right":"center",k=b[1]>.8?"top":b[1]<-.8?"bottom":"middle";break;case"start":f.x=-b[0]*x+m[0],f.y=-b[1]*T+m[1],S=b[0]>.8?"right":b[0]<-.8?"left":"center",k=b[1]>.8?"bottom":b[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":f.x=x*H+m[0],f.y=m[1]+Z,S=P[0]<0?"right":"left",f.originX=-x*H,f.originY=-Z;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":f.x=N[0],f.y=N[1]+Z,S="center",f.originY=-Z;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":f.x=-x*H+y[0],f.y=y[1]+Z,S=P[0]>=0?"right":"left",f.originX=x*H,f.originY=-Z}f.scaleX=f.scaleY=d,f.setStyle({verticalAlign:f.__verticalAlign||k,align:f.__align||S})}}}function C(W,X){var J=W.__specifiedRotation;if(null==J){var ee=v.tangentAt(X);W.attr("rotation",(1===X?-1:1)*Math.PI/2-Math.atan2(ee[1],ee[0]))}else W.attr("rotation",J)}},t}(ct),Ha=Lf,tA=function(){function a(t){this.group=new ct,this._LineCtor=t||Ha}return a.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var o=this,u=o.group,f=o._lineData;o._lineData=t,f||u.removeAll();var d=Uh(t);t.diff(f).add(function(h){e._doAdd(t,h,d)}).update(function(h,v){e._doUpdate(f,t,v,h,d)}).remove(function(h){u.remove(f.getItemGraphicEl(h))}).execute()},a.prototype.updateLayout=function(){var t=this._lineData;!t||t.eachItemGraphicEl(function(e,o){e.updateLayout(t,o)},this)},a.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Uh(t),this._lineData=null,this.group.removeAll()},a.prototype.incrementalUpdate=function(t,e){function o(h){!h.isGroup&&!function nA(a){return a.animators&&a.animators.length>0}(h)&&(h.incremental=!0,h.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var u=t.start;u=0?h+=g:h-=g:S>=0?h-=g:h+=g}return h}function XN(a,t){var e=[],o=ql,u=[[],[],[]],f=[[],[]],d=[];t/=2,a.eachEdge(function(h,v){var g=h.getLayout(),m=h.getVisual("fromSymbol"),y=h.getVisual("toSymbol");g.__original||(g.__original=[ss(g[0]),ss(g[1])],g[2]&&g.__original.push(ss(g[2])));var b=g.__original;if(null!=g[2]){if(wa(u[0],b[0]),wa(u[1],b[2]),wa(u[2],b[1]),m&&"none"!==m){var C=xy(h.node1),S=rA(u,b[0],C*t);o(u[0][0],u[1][0],u[2][0],S,e),u[0][0]=e[3],u[1][0]=e[4],o(u[0][1],u[1][1],u[2][1],S,e),u[0][1]=e[3],u[1][1]=e[4]}y&&"none"!==y&&(C=xy(h.node2),S=rA(u,b[1],C*t),o(u[0][0],u[1][0],u[2][0],S,e),u[1][0]=e[1],u[2][0]=e[2],o(u[0][1],u[1][1],u[2][1],S,e),u[1][1]=e[1],u[2][1]=e[2]),wa(g[0],u[0]),wa(g[1],u[2]),wa(g[2],u[1])}else wa(f[0],b[0]),wa(f[1],b[1]),Wl(d,f[1],f[0]),ei(d,d),m&&"none"!==m&&(C=xy(h.node1),Zn(f[0],f[0],d,C*t)),y&&"none"!==y&&(C=xy(h.node2),Zn(f[1],f[1],d,-C*t)),wa(g[0],f[0]),wa(g[1],f[1])})}function Ej(a){return"view"===a.type}var hK=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.init=function(e,o){var u=new K_,f=new Fs,d=this.group;this._controller=new Ih(o.getZr()),this._controllerHost={target:d},d.add(u.group),d.add(f.group),this._symbolDraw=u,this._lineDraw=f,this._firstRender=!0},t.prototype.render=function(e,o,u){var f=this,d=e.coordinateSystem;this._model=e;var h=this._symbolDraw,v=this._lineDraw,g=this.group;if(Ej(d)){var m={x:d.x,y:d.y,scaleX:d.scaleX,scaleY:d.scaleY};this._firstRender?g.attr(m):Ut(g,m,e)}XN(e.getGraph(),es(e));var y=e.getData();h.updateData(y);var b=e.getEdgeData();v.updateData(b),this._updateNodeAndLinkScale(),this._updateController(e,o,u),clearTimeout(this._layoutTimeout);var C=e.forceLayout,S=e.get(["force","layoutAnimation"]);C&&this._startForceLayoutIteration(C,S),y.graph.eachNode(function(T){var E=T.dataIndex,P=T.getGraphicEl(),V=T.getModel();if(P){P.off("drag").off("dragend");var N=V.get("draggable");N&&P.on("drag",function(){C&&(C.warmUp(),!f._layouting&&f._startForceLayoutIteration(C,S),C.setFixed(E),y.setItemLayout(E,[P.x,P.y]))}).on("dragend",function(){C&&C.setUnfixed(E)}),P.setDraggable(N&&!!C),"adjacency"===V.get(["emphasis","focus"])&&(vt(P).focus=T.getAdjacentDataIndices())}}),y.graph.eachEdge(function(T){var E=T.getGraphicEl(),P=T.getModel().get(["emphasis","focus"]);!E||"adjacency"===P&&(vt(E).focus={edge:[T.dataIndex],node:[T.node1.dataIndex,T.node2.dataIndex]})});var k="circular"===e.get("layout")&&e.get(["circular","rotateLabel"]),D=y.getLayout("cx"),x=y.getLayout("cy");y.eachItemGraphicEl(function(T,E){var V=y.getItemModel(E).get(["label","rotate"])||0,N=T.getSymbolPath();if(k){var H=y.getItemLayout(E),j=Math.atan2(H[1]-x,H[0]-D);j<0&&(j=2*Math.PI+j);var Z=H[0]=0&&t.call(e,o[f],f)},a.prototype.eachEdge=function(t,e){for(var o=this.edges,u=o.length,f=0;f=0&&o[f].node1.dataIndex>=0&&o[f].node2.dataIndex>=0&&t.call(e,o[f],f)},a.prototype.breadthFirstTraverse=function(t,e,o,u){if(e instanceof $v||(e=this._nodesMap[Oy(e)]),e){for(var f="out"===o?"outEdges":"in"===o?"inEdges":"edges",d=0;d=0&&v.node2.dataIndex>=0}),f=0,d=u.length;f=0&&this[a][t].setItemVisual(this.dataIndex,o,u)},getVisual:function(o){return this[a][t].getItemVisual(this.dataIndex,o)},setLayout:function(o,u){this.dataIndex>=0&&this[a][t].setItemLayout(this.dataIndex,o,u)},getLayout:function(){return this[a][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[a][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[a][t].getRawIndex(this.dataIndex)}}}Ir($v,iA("hostGraph","data")),Ir(Pj,iA("hostGraph","edgeData"));var gK=vK;function Oj(a,t,e,o,u){for(var f=new gK(o),d=0;d "+b)),g++)}var S,C=e.get("coordinateSystem");if("cartesian2d"===C||"polar"===C)S=wl(a,e);else{var k=Hm.get(C),D=k&&k.dimensions||[];Ct(D,"value")<0&&D.concat(["value"]);var x=R_(a,{coordDimensions:D,encodeDefine:e.getEncode()}).dimensions;(S=new ga(x,e)).initData(a)}var T=new ga(["value"],e);return T.initData(v,h),u&&u(S,T),jw({mainData:S,struct:f,structAttr:"graph",datas:{node:S,edge:T},datasAttr:{node:"data",edge:"edgeData"}}),f.update(),f}var mK=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return de(t,a),t.prototype.init=function(e){a.prototype.init.apply(this,arguments);var o=this;function u(){return o._categoriesData}this.legendVisualProvider=new ty(u,u),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeOption=function(e){a.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},t.prototype.mergeDefaultAndTheme=function(e){a.prototype.mergeDefaultAndTheme.apply(this,arguments),Cd(e,"edgeLabel",["show"])},t.prototype.getInitialData=function(e,o){var u=e.edges||e.links||[],f=e.data||e.nodes||[],d=this;if(f&&u){!function oK(a){!KT(a)||(a.__curvenessList=[],a.__edgeMap={},Dj(a))}(this);var h=Oj(f,u,this,!0,function v(g,m){g.wrapMethod("getItemModel",function(S){var x=d._categoriesModels[S.getShallow("category")];return x&&(x.parentModel=S.parentModel,S.parentModel=x),S});var y=Kn.prototype.getModel;function b(S,k){var D=y.call(this,S,k);return D.resolveParentPath=C,D}function C(S){if(S&&("label"===S[0]||"label"===S[1])){var k=S.slice();return"label"===S[0]?k[0]="edgeLabel":"label"===S[1]&&(k[1]="edgeLabel"),k}return S}m.wrapMethod("getItemModel",function(S){return S.resolveParentPath=C,S.getModel=b,S})});return q(h.edges,function(g){!function sK(a,t,e,o){if(KT(e)){var u=a1(a,t,e),f=e.__edgeMap,d=f[If(u)];f[u]&&!d?f[u].isForward=!0:d&&f[u]&&(d.isForward=!0,f[u].isForward=!1),f[u]=f[u]||[],f[u].push(o)}}(g.node1,g.node2,this,g.dataIndex)},this),h.data}},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.getCategoriesData=function(){return this._categoriesData},t.prototype.formatTooltip=function(e,o,u){if("edge"===u){var f=this.getData(),d=this.getDataParams(e,u),h=f.graph.getEdgeByIndex(e),v=f.getName(h.node1.dataIndex),g=f.getName(h.node2.dataIndex),m=[];return null!=v&&m.push(v),null!=g&&m.push(g),Gt("nameValue",{name:m.join(" > "),value:d.value,noValue:null==d.value})}return Si({series:this,dataIndex:e,multipleSeries:o})},t.prototype._updateCategoriesData=function(){var e=Me(this.option.categories||[],function(u){return null!=u.value?u:ve({value:0},u)}),o=new ga(["value"],this);o.initData(e),this._categoriesData=o,this._categoriesModels=o.mapArray(function(u){return o.getItemModel(u)})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.isAnimationEnabled=function(){return a.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},t.type="series.graph",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={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"}}},t}(fr),_K=mK,aA={type:"graphRoam",event:"graphRoam",update:"none"},bK=function a(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},CK=function(a){function t(e){var o=a.call(this,e)||this;return o.type="pointer",o}return de(t,a),t.prototype.getDefaultShape=function(){return new bK},t.prototype.buildPath=function(e,o){var u=Math.cos,f=Math.sin,d=o.r,h=o.width,v=o.angle,g=o.x-u(v)*h*(h>=d/3?1:2),m=o.y-f(v)*h*(h>=d/3?1:2);v=o.angle-Math.PI/2,e.moveTo(g,m),e.lineTo(o.x+u(v)*h,o.y+f(v)*h),e.lineTo(o.x+u(o.angle)*d,o.y+f(o.angle)*d),e.lineTo(o.x-u(v)*h,o.y-f(v)*h),e.lineTo(g,m)},t}(Xt),wK=CK;function oA(a,t){var e=null==a?"":a+"";return t&&(Ne(t)?e=t.replace("{value}",e):et(t)&&(e=t(a))),e}var MK=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.render=function(e,o,u){this.group.removeAll();var f=e.get(["axisLine","lineStyle","color"]),d=function SK(a,t){var e=a.get("center"),o=t.getWidth(),u=t.getHeight(),f=Math.min(o,u);return{cx:Ie(e[0],t.getWidth()),cy:Ie(e[1],t.getHeight()),r:Ie(a.get("radius"),f/2)}}(e,u);this._renderMain(e,o,u,f,d),this._data=e.getData()},t.prototype.dispose=function(){},t.prototype._renderMain=function(e,o,u,f,d){var h=this.group,v=e.get("clockwise"),g=-e.get("startAngle")/180*Math.PI,m=-e.get("endAngle")/180*Math.PI,y=e.getModel("axisLine"),C=y.get("roundCap")?vw:Ja,S=y.get("show"),k=y.getModel("lineStyle"),D=k.get("width"),x=[g,m];br(x,!v);for(var T=(m=x[1])-(g=x[0]),E=g,P=0;S&&P=Z&&(0===W?0:f[W-1][0]).8?"bottom":"middle",align:re<-.4?"left":re>.4?"right":"center"},{inheritColor:Pe}),silent:!0}))}if(T.get("show")&&ce!==P){me=(me=T.get("distance"))?me+m:m;for(var Be=0;Be<=V;Be++){re=Math.cos(j),ie=Math.sin(j);var He=new Nr({shape:{x1:re*(S-me)+b,y1:ie*(S-me)+C,x2:re*(S-H-me)+b,y2:ie*(S-H-me)+C},silent:!0,style:J});"auto"===J.stroke&&He.setStyle({stroke:f((ce+Be/V)/P)}),y.add(He),j+=W}j-=W}else j+=Z}},t.prototype._renderPointer=function(e,o,u,f,d,h,v,g,m){var y=this.group,b=this._data,C=this._progressEls,S=[],k=e.get(["pointer","show"]),D=e.getModel("progress"),x=D.get("show"),T=e.getData(),E=T.mapDimension("value"),P=+e.get("min"),V=+e.get("max"),N=[P,V],H=[h,v];function j(W,X){var Be,ee=T.getItemModel(W).getModel("pointer"),re=Ie(ee.get("width"),d.r),ie=Ie(ee.get("length"),d.r),ce=e.get(["pointer","icon"]),me=ee.get("offsetCenter"),pe=Ie(me[0],d.r),_e=Ie(me[1],d.r),Pe=ee.get("keepAspect");return(Be=ce?Dr(ce,pe-re/2,_e-ie,re,ie,null,Pe):new wK({shape:{angle:-Math.PI/2,width:re,r:ie,x:pe,y:_e}})).rotation=-(X+Math.PI/2),Be.x=d.cx,Be.y=d.cy,Be}function Z(W,X){var ee=D.get("roundCap")?vw:Ja,re=D.get("overlap"),ie=re?D.get("width"):m/T.count(),pe=new ee({shape:{startAngle:h,endAngle:X,cx:d.cx,cy:d.cy,clockwise:g,r0:re?d.r-ie:d.r-(W+1)*ie,r:re?d.r:d.r-W*ie}});return re&&(pe.z2=V-T.get(E,W)%V),pe}(x||k)&&(T.diff(b).add(function(W){var X=T.get(E,W);if(k){var J=j(W,h);nr(J,{rotation:-((isNaN(+X)?H[0]:wn(X,N,H,!0))+Math.PI/2)},e),y.add(J),T.setItemGraphicEl(W,J)}if(x){var ee=Z(W,h),re=D.get("clip");nr(ee,{shape:{endAngle:wn(X,N,H,re)}},e),y.add(ee),wm(e.seriesIndex,T.dataType,W,ee),S[W]=ee}}).update(function(W,X){var J=T.get(E,W);if(k){var ee=b.getItemGraphicEl(X),re=ee?ee.rotation:h,ie=j(W,re);ie.rotation=re,Ut(ie,{rotation:-((isNaN(+J)?H[0]:wn(J,N,H,!0))+Math.PI/2)},e),y.add(ie),T.setItemGraphicEl(W,ie)}if(x){var ce=C[X],pe=Z(W,ce?ce.shape.endAngle:h),_e=D.get("clip");Ut(pe,{shape:{endAngle:wn(J,N,H,_e)}},e),y.add(pe),wm(e.seriesIndex,T.dataType,W,pe),S[W]=pe}}).execute(),T.each(function(W){var X=T.getItemModel(W),J=X.getModel("emphasis"),ee=J.get("focus"),re=J.get("blurScope"),ie=J.get("disabled");if(k){var ce=T.getItemGraphicEl(W),me=T.getItemVisual(W,"style"),pe=me.fill;if(ce instanceof Ki){var _e=ce.style;ce.useStyle(ve({image:_e.image,x:_e.x,y:_e.y,width:_e.width,height:_e.height},me))}else ce.useStyle(me),"pointer"!==ce.type&&ce.setColor(pe);ce.setStyle(X.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===ce.style.fill&&ce.setStyle("fill",f(wn(T.get(E,W),N,[0,1],!0))),ce.z2EmphasisLift=0,pa(ce,X),Yr(ce,ee,re,ie)}if(x){var Pe=S[W];Pe.useStyle(T.getItemVisual(W,"style")),Pe.setStyle(X.getModel(["progress","itemStyle"]).getItemStyle()),Pe.z2EmphasisLift=0,pa(Pe,X),Yr(Pe,ee,re,ie)}}),this._progressEls=S)},t.prototype._renderAnchor=function(e,o){var u=e.getModel("anchor");if(u.get("show")){var d=u.get("size"),h=u.get("icon"),v=u.get("offsetCenter"),g=u.get("keepAspect"),m=Dr(h,o.cx-d/2+Ie(v[0],o.r),o.cy-d/2+Ie(v[1],o.r),d,d,null,g);m.z2=u.get("showAbove")?1:0,m.setStyle(u.getModel("itemStyle").getItemStyle()),this.group.add(m)}},t.prototype._renderTitleAndDetail=function(e,o,u,f,d){var h=this,v=e.getData(),g=v.mapDimension("value"),m=+e.get("min"),y=+e.get("max"),b=new ct,C=[],S=[],k=e.isAnimationEnabled(),D=e.get(["pointer","showAbove"]);v.diff(this._data).add(function(x){C[x]=new dn({silent:!0}),S[x]=new dn({silent:!0})}).update(function(x,T){C[x]=h._titleEls[T],S[x]=h._detailEls[T]}).execute(),v.each(function(x){var T=v.getItemModel(x),E=v.get(g,x),P=new ct,V=f(wn(E,[m,y],[0,1],!0)),N=T.getModel("title");if(N.get("show")){var H=N.get("offsetCenter"),j=d.cx+Ie(H[0],d.r),Z=d.cy+Ie(H[1],d.r);(W=C[x]).attr({z2:D?0:2,style:Cr(N,{x:j,y:Z,text:v.getName(x),align:"center",verticalAlign:"middle"},{inheritColor:V})}),P.add(W)}var X=T.getModel("detail");if(X.get("show")){var J=X.get("offsetCenter"),ee=d.cx+Ie(J[0],d.r),re=d.cy+Ie(J[1],d.r),ie=Ie(X.get("width"),d.r),ce=Ie(X.get("height"),d.r),me=e.get(["progress","show"])?v.getItemVisual(x,"style").fill:V,W=S[x],pe=X.get("formatter");W.attr({z2:D?0:2,style:Cr(X,{x:ee,y:re,text:oA(E,pe),width:isNaN(ie)?null:ie,height:isNaN(ce)?null:ce,align:"center",verticalAlign:"middle"},{inheritColor:me})}),dI(W,{normal:X},E,function(Pe){return oA(Pe,pe)}),k&&F0(W,x,v,e,{getFormattedLabel:function(Be,He,nt,ht,In,Bn){return oA(Bn?Bn.interpolatedValue:E,pe)}}),P.add(W)}b.add(P)}),this.group.add(b),this._titleEls=C,this._detailEls=S},t.type="gauge",t}(jn),kK=MK,DK=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="itemStyle",e}return de(t,a),t.prototype.getInitialData=function(e,o){return ey(this,["value"])},t.type="series.gauge",t.defaultOption={z:2,colorBy:"data",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,showAbove:!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}},t}(fr),xK=DK,AK=["itemStyle","opacity"],EK=function(a){function t(e,o){var u=a.call(this)||this,f=u,d=new Ra,h=new dn;return f.setTextContent(h),u.setTextGuideLine(d),u.updateData(e,o,!0),u}return de(t,a),t.prototype.updateData=function(e,o,u){var f=this,d=e.hostModel,h=e.getItemModel(o),v=e.getItemLayout(o),g=h.getModel("emphasis"),m=h.get(AK);m=null==m?1:m,u||iu(f),f.useStyle(e.getItemVisual(o,"style")),f.style.lineJoin="round",u?(f.setShape({points:v.points}),f.style.opacity=0,nr(f,{style:{opacity:m}},d,o)):Ut(f,{style:{opacity:m},shape:{points:v.points}},d,o),pa(f,h),this._updateLabel(e,o),Yr(this,g.get("focus"),g.get("blurScope"),g.get("disabled"))},t.prototype._updateLabel=function(e,o){var u=this,f=this.getTextGuideLine(),d=u.getTextContent(),h=e.hostModel,v=e.getItemModel(o),m=e.getItemLayout(o).label,y=e.getItemVisual(o,"style"),b=y.fill;$i(d,va(v),{labelFetcher:e.hostModel,labelDataIndex:o,defaultOpacity:y.opacity,defaultText:e.getName(o)},{normal:{align:m.textAlign,verticalAlign:m.verticalAlign}}),u.setTextConfig({local:!0,inside:!!m.inside,insideStroke:b,outsideFill:b});var C=m.linePoints;f.setShape({points:C}),u.textGuideLineConfig={anchor:C?new Et(C[0][0],C[0][1]):null},Ut(d,{style:{x:m.x,y:m.y}},h,o),d.attr({rotation:m.rotation,originX:m.x,originY:m.y,z2:10}),Mx(u,kx(v),{stroke:b})},t}(Ia),PK=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.ignoreLabelLineUpdate=!0,e}return de(t,a),t.prototype.render=function(e,o,u){var f=e.getData(),d=this._data,h=this.group;f.diff(d).add(function(v){var g=new EK(f,v);f.setItemGraphicEl(v,g),h.add(g)}).update(function(v,g){var m=d.getItemGraphicEl(g);m.updateData(f,v),h.add(m),f.setItemGraphicEl(v,m)}).remove(function(v){Xp(d.getItemGraphicEl(v),e,v)}).execute(),this._data=f},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.prototype.dispose=function(){},t.type="funnel",t}(jn),OK=PK,IK=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.init=function(e){a.prototype.init.apply(this,arguments),this.legendVisualProvider=new ty(ze(this.getData,this),ze(this.getRawData,this)),this._defaultLabelLine(e)},t.prototype.getInitialData=function(e,o){return ey(this,{coordDimensions:["value"],encodeDefaulter:wt(Lk,this)})},t.prototype._defaultLabelLine=function(e){Cd(e,"labelLine",["show"]);var o=e.labelLine,u=e.emphasis.labelLine;o.show=o.show&&e.label.show,u.show=u.show&&e.emphasis.label.show},t.prototype.getDataParams=function(e){var o=this.getData(),u=a.prototype.getDataParams.call(this,e),f=o.mapDimension("value"),d=o.getSum(f);return u.percent=d?+(o.get(f,e)/d*100).toFixed(2):0,u.$vars.push("percent"),u},t.type="series.funnel",t.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",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"}}},t}(fr),RK=IK;function BK(a,t){a.eachSeriesByType("funnel",function(e){var o=e.getData(),u=o.mapDimension("value"),f=e.get("sort"),d=function LK(a,t){return oi(a.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t),h=e.get("orient"),v=d.width,g=d.height,m=function FK(a,t){for(var e=a.mapDimension("value"),o=a.mapArray(e,function(v){return v}),u=[],f="ascending"===t,d=0,h=a.count();d5)return;var f=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==f.behavior&&this._dispatchExpand({axisExpandWindow:f.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&JN(this,"mousemove")){var e=this._model,o=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),u=o.behavior;"jump"===u&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===u?null:{axisExpandWindow:o.axisExpandWindow,animation:"jump"===u?null:{duration:0}})}}};function JN(a,t){var e=a._model;return e.get("axisExpandable")&&e.get("axisExpandTriggerOn")===t}var r$=t$,i$=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.init=function(){a.prototype.init.apply(this,arguments),this.mergeOption({})},t.prototype.mergeOption=function(e){e&&Dt(this.option,e,!0),this._initDimensions()},t.prototype.contains=function(e,o){var u=e.get("parallelIndex");return null!=u&&o.getComponent("parallel",u)===this},t.prototype.setAxisExpand=function(e){q(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(o){e.hasOwnProperty(o)&&(this.option[o]=e[o])},this)},t.prototype._initDimensions=function(){var e=this.dimensions=[],o=this.parallelAxisIndex=[];q(Un(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(f){return(f.get("parallelIndex")||0)===this.componentIndex},this),function(f){e.push("dim"+f.get("dim")),o.push(f.componentIndex)})},t.type="parallel",t.dependencies=["parallelAxis"],t.layoutMode="box",t.defaultOption={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},t}(sn),a$=i$,o$=function(a){function t(e,o,u,f,d){var h=a.call(this,e,o,u)||this;return h.type=f||"value",h.axisIndex=d,h}return de(t,a),t.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},t}(Fa),s$=o$;function Qv(a,t,e,o,u,f){a=a||0;var d=e[1]-e[0];if(null!=u&&(u=Iy(u,[0,d])),null!=f&&(f=Math.max(f,null!=u?u:0)),"all"===o){var h=Math.abs(t[1]-t[0]);h=Iy(h,[0,d]),u=f=Iy(h,[u,f]),o=0}t[0]=Iy(t[0],e),t[1]=Iy(t[1],e);var v=e3(t,o);t[o]+=a;var y,g=u||0,m=e.slice();return v.sign<0?m[0]+=g:m[1]-=g,t[o]=Iy(t[o],m),y=e3(t,o),null!=u&&(y.sign!==v.sign||y.spanf&&(t[1-o]=t[o]+y.sign*f),t}function e3(a,t){var e=a[t]-a[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function Iy(a,t){return Math.min(null!=t[1]?t[1]:1/0,Math.max(null!=t[0]?t[0]:-1/0,a))}var t3=q,Lj=Math.min,Fj=Math.max,Nj=Math.floor,l$=Math.ceil,Bj=Mr,u$=Math.PI,c$=function(){function a(t,e,o){this.type="parallel",this._axesMap=$e(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,o)}return a.prototype._init=function(t,e,o){var f=t.parallelAxisIndex;t3(t.dimensions,function(d,h){var v=f[h],g=e.getComponent("parallelAxis",v),m=this._axesMap.set(d,new s$(d,H_(g),[0,0],g.get("type"),v));m.onBand="category"===m.type&&g.get("boundaryGap"),m.inverse=g.get("inverse"),g.axis=m,m.model=g,m.coordinateSystem=g.coordinateSystem=this},this)},a.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},a.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),o=e.axisBase,u=e.layoutBase,f=e.pixelDimIndex,d=t[1-f],h=t[f];return d>=o&&d<=o+e.axisLength&&h>=u&&h<=u+e.layoutLength},a.prototype.getModel=function(){return this._model},a.prototype._updateAxesFromSeries=function(t,e){e.eachSeries(function(o){if(t.contains(o,e)){var u=o.getData();t3(this.dimensions,function(f){var d=this._axesMap.get(f);d.scale.unionExtentFromData(u,u.mapDimension(f)),$o(d.scale,d.model)},this)}},this)},a.prototype.resize=function(t,e){this._rect=oi(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},a.prototype.getRect=function(){return this._rect},a.prototype._makeLayoutInfo=function(){var S,t=this._model,e=this._rect,o=["x","y"],u=["width","height"],f=t.get("layout"),d="horizontal"===f?0:1,h=e[u[d]],v=[0,h],g=this.dimensions.length,m=sA(t.get("axisExpandWidth"),v),y=sA(t.get("axisExpandCount")||0,[0,g]),b=t.get("axisExpandable")&&g>3&&g>y&&y>1&&m>0&&h>0,C=t.get("axisExpandWindow");C?(S=sA(C[1]-C[0],v),C[1]=C[0]+S):(S=sA(m*(y-1),v),(C=[m*(t.get("axisExpandCenter")||Nj(g/2))-S/2])[1]=C[0]+S);var D=(h-S)/(g-y);D<3&&(D=0);var x=[Nj(Bj(C[0]/m,1))+1,l$(Bj(C[1]/m,1))-1];return{layout:f,pixelDimIndex:d,layoutBase:e[o[d]],layoutLength:h,axisBase:e[o[1-d]],axisLength:e[u[1-d]],axisExpandable:b,axisExpandWidth:m,axisCollapseWidth:D,axisExpandWindow:C,axisCount:g,winInnerIndices:x,axisExpandWindow0Pos:D/m*C[0]}},a.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,o=this.dimensions,u=this._makeLayoutInfo(),f=u.layout;e.each(function(d){var h=[0,u.axisLength],v=d.inverse?1:0;d.setExtent(h[v],h[1-v])}),t3(o,function(d,h){var v=(u.axisExpandable?d$:f$)(h,u),g={horizontal:{x:v.position,y:u.axisLength},vertical:{x:0,y:v.position}},y=[g[f].x+t.x,g[f].y+t.y],b={horizontal:u$/2,vertical:0}[f],C=[1,0,0,1,0,0];el(C,C,b),vs(C,C,y),this._axesLayout[d]={position:y,rotation:b,transform:C,axisNameAvailableWidth:v.axisNameAvailableWidth,axisLabelShow:v.axisLabelShow,nameTruncateMaxWidth:v.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},a.prototype.getAxis=function(t){return this._axesMap.get(t)},a.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},a.prototype.eachActiveState=function(t,e,o,u){null==o&&(o=0),null==u&&(u=t.count());var f=this._axesMap,d=this.dimensions,h=[],v=[];q(d,function(D){h.push(t.mapDimension(D)),v.push(f.get(D).model)});for(var g=this.hasAxisBrushed(),m=o;mf*(1-y[0])?(g="jump",v=h-f*(1-y[2])):(v=h-f*y[1])>=0&&(v=h-f*(1-y[1]))<=0&&(v=0),(v*=e.axisExpandWidth/m)?Qv(v,u,d,"all"):g="none";else{var C=u[1]-u[0];(u=[Fj(0,d[1]*h/C-C/2)])[1]=Lj(d[1],u[0]+C),u[0]=u[1]-C}return{axisExpandWindow:u,behavior:g}},a}();function sA(a,t){return Lj(Fj(a,t[0]),t[1])}function f$(a,t){var e=t.layoutLength/(t.axisCount-1);return{position:e*a,axisNameAvailableWidth:e,axisLabelShow:!0}}function d$(a,t){var h,m,o=t.axisExpandWidth,f=t.axisCollapseWidth,d=t.winInnerIndices,v=f,g=!1;return a=0;u--)Zi(o[u])},t.prototype.getActiveState=function(e){var o=this.activeIntervals;if(!o.length)return"normal";if(null==e||isNaN(+e))return"inactive";if(1===o.length){var u=o[0];if(u[0]<=e&&e<=u[1])return"active"}else for(var f=0,d=o.length;f6}(a)||u){if(f&&!u){"single"===d.brushMode&&o3(a);var v=ot(d);v.brushType=vA(v.brushType,f),v.panelId=f===Jv?null:f.panelId,u=a._creatingCover=Uj(a,v),a._covers.push(u)}if(u){var g=d1[vA(a._brushType,f)];u.__brushOption.range=g.getCreatingRange(f1(a,u,a._track)),o&&(a3(a,u),g.updateCommon(a,u)),lA(a,u),h={isEnd:o}}}else o&&"single"===d.brushMode&&d.removeOnClick&&cA(a,t,e)&&o3(a)&&(h={isEnd:o,removeOnClick:!0});return h}function vA(a,t){return"auto"===a?t.defaultBrushType:a}var f3={mousedown:function(t){if(this._dragging)gA(this,t);else if(!t.target||!t.target.draggable){pA(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=cA(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var u=this.group.transformCoordToLocal(t.offsetX,t.offsetY);if(function Xj(a,t,e){if(a._brushType&&!function Kj(a,t,e){var o=a._zr;return t<0||t>o.getWidth()||e<0||e>o.getHeight()}(a,t.offsetX,t.offsetY)){var o=a._zr,u=a._covers,f=cA(a,t,e);if(!a._dragging)for(var d=0;d=0&&(h[d[v].depth]=new Kn(d[v],this,o));if(f&&u)return Oj(f,u,this,!0,function m(y,b){y.wrapMethod("getItemModel",function(C,S){var k=C.parentModel,D=k.getData().getItemLayout(S);if(D){var T=k.levelModels[D.depth];T&&(C.parentModel=T)}return C}),b.wrapMethod("getItemModel",function(C,S){var k=C.parentModel,x=k.getGraph().getEdgeByIndex(S).node1.getLayout();if(x){var E=k.levelModels[x.depth];E&&(C.parentModel=E)}return C})}).data},t.prototype.setNodePosition=function(e,o){var f=(this.option.data||this.option.nodes)[e];f.localX=o[0],f.localY=o[1]},t.prototype.getGraph=function(){return this.getData().graph},t.prototype.getEdgeData=function(){return this.getGraph().edgeData},t.prototype.formatTooltip=function(e,o,u){function f(C){return isNaN(C)||null==C}if("edge"===u){var d=this.getDataParams(e,u),h=d.data,v=d.value;return Gt("nameValue",{name:h.source+" -- "+h.target,value:v,noValue:f(v)})}var y=this.getGraph().getNodeByIndex(e).getLayout().value,b=this.getDataParams(e,u).data.name;return Gt("nameValue",{name:null!=b?b+"":null,value:y,noValue:f(y)})},t.prototype.optionUpdated=function(){},t.prototype.getDataParams=function(e,o){var u=a.prototype.getDataParams.call(this,e,o);if(null==u.value&&"node"===o){var d=this.getGraph().getNodeByIndex(e).getLayout().value;u.value=d}return u},t.type="series.sankey",t.defaultOption={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},t}(fr),b3=y3;function bA(a,t){a.eachSeriesByType("sankey",function(e){var o=e.get("nodeWidth"),u=e.get("nodeGap"),f=function w$(a,t){return oi(a.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}(e,t);e.layoutInfo=f;var d=f.width,h=f.height,v=e.getGraph(),g=v.nodes,m=v.edges;!function n7(a){q(a,function(t){var e=qh(t.outEdges,wA),o=qh(t.inEdges,wA),u=t.getValue()||0,f=Math.max(e,o,u);t.setLayout({value:f},!0)})}(g),function C3(a,t,e,o,u,f,d,h,v){(function r7(a,t,e,o,u,f,d){for(var h=[],v=[],g=[],m=[],y=0,b=0;b=0;x&&D.depth>C&&(C=D.depth),k.setLayout({depth:x?D.depth:y},!0),k.setLayout("vertical"===f?{dy:e}:{dx:e},!0);for(var T=0;Ty-1?C:y-1;d&&"left"!==d&&function a7(a,t,e,o){if("right"===t){for(var u=[],f=a,d=0;f.length;){for(var h=0;h0;f--)u7(h,v*=.99,d),CA(h,u,e,o,d),S$(h,v,d),CA(h,u,e,o,d)}(a,t,f,u,o,d,h),function M$(a,t){var e="vertical"===t?"x":"y";q(a,function(o){o.outEdges.sort(function(u,f){return u.node2.getLayout()[e]-f.node2.getLayout()[e]}),o.inEdges.sort(function(u,f){return u.node1.getLayout()[e]-f.node1.getLayout()[e]})}),q(a,function(o){var u=0,f=0;q(o.outEdges,function(d){d.setLayout({sy:u},!0),u+=d.getLayout().dy}),q(o.inEdges,function(d){d.setLayout({ty:f},!0),f+=d.getLayout().dy})})}(a,h)}(g,m,o,u,d,h,0!==Un(g,function(k){return 0===k.getLayout().value}).length?0:e.get("layoutIterations"),e.get("orient"),e.get("nodeAlign"))})}function w3(a){var t=a.hostGraph.data.getRawDataItem(a.dataIndex);return null!=t.depth&&t.depth>=0}function CA(a,t,e,o,u){var f="vertical"===u?"x":"y";q(a,function(d){d.sort(function(k,D){return k.getLayout()[f]-D.getLayout()[f]});for(var h,v,g,m=0,y=d.length,b="vertical"===u?"dx":"dy",C=0;C0&&(h=v.getLayout()[f]+g,v.setLayout("vertical"===u?{x:h}:{y:h},!0)),m=v.getLayout()[f]+v.getLayout()[b]+t;if((g=m-t-("vertical"===u?o:e))>0)for(h=v.getLayout()[f]-g,v.setLayout("vertical"===u?{x:h}:{y:h},!0),m=h,C=y-2;C>=0;--C)(g=(v=d[C]).getLayout()[f]+v.getLayout()[b]+t-m)>0&&(h=v.getLayout()[f]-g,v.setLayout("vertical"===u?{x:h}:{y:h},!0)),m=v.getLayout()[f]})}function u7(a,t,e){q(a.slice().reverse(),function(o){q(o,function(u){if(u.outEdges.length){var f=qh(u.outEdges,c7,e)/qh(u.outEdges,wA);if(isNaN(f)){var d=u.outEdges.length;f=d?qh(u.outEdges,f7,e)/d:0}if("vertical"===e){var h=u.getLayout().x+(f-Yh(u,e))*t;u.setLayout({x:h},!0)}else{var v=u.getLayout().y+(f-Yh(u,e))*t;u.setLayout({y:v},!0)}}})})}function c7(a,t){return Yh(a.node2,t)*a.getValue()}function f7(a,t){return Yh(a.node2,t)}function k3(a,t){return Yh(a.node1,t)*a.getValue()}function d7(a,t){return Yh(a.node1,t)}function Yh(a,t){return"vertical"===t?a.getLayout().x+a.getLayout().dx/2:a.getLayout().y+a.getLayout().dy/2}function wA(a){return a.getValue()}function qh(a,t,e){for(var o=0,u=a.length,f=-1;++ff&&(f=h)}),q(o,function(d){var v=new pn({type:"color",mappingMethod:"linear",dataExtent:[u,f],visual:t.get("color")}).mapValueToVisual(d.getLayout().value),g=d.getModel().get(["itemStyle","color"]);null!=g?(d.setVisual("color",g),d.setVisual("style",{fill:g})):(d.setVisual("color",v),d.setVisual("style",{fill:v}))})}})}var D3=function(){function a(){}return a.prototype.getInitialData=function(t,e){var o,v,u=e.getComponent("xAxis",this.get("xAxisIndex")),f=e.getComponent("yAxis",this.get("yAxisIndex")),d=u.get("type"),h=f.get("type");"category"===d?(t.layout="horizontal",o=u.getOrdinalMeta(),v=!0):"category"===h?(t.layout="vertical",o=f.getOrdinalMeta(),v=!0):t.layout=t.layout||"horizontal";var g=["x","y"],m="horizontal"===t.layout?0:1,y=this._baseAxisDim=g[m],b=g[1-m],C=[u,f],S=C[m].get("type"),k=C[1-m].get("type"),D=t.data;if(D&&v){var x=[];q(D,function(P,V){var N;Ce(P)?(N=P.slice(),P.unshift(V)):Ce(P.value)?((N=ve({},P)).value=N.value.slice(),P.value.unshift(V)):N=P,x.push(N)}),t.data=x}var T=this.defaultValueDimensions,E=[{name:y,type:rx(S),ordinalMeta:o,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:b,type:rx(k),dimsDef:T.slice()}];return ey(this,{coordDimensions:E,dimensionsCount:T.length+1,encodeDefaulter:wt(U0,E,this)})},a.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},a}(),x3=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],e.visualDrawType="stroke",e}return de(t,a),t.type="series.boxplot",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={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},t}(fr);Ir(x3,D3,!0);var T3=x3,tg=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.render=function(e,o,u){var f=e.getData(),d=this.group,h=this._data;this._data||d.removeAll();var v="horizontal"===e.get("layout")?1:0;f.diff(h).add(function(g){if(f.hasValue(g)){var y=A3(f.getItemLayout(g),f,g,v,!0);f.setItemGraphicEl(g,y),d.add(y)}}).update(function(g,m){var y=h.getItemGraphicEl(m);if(f.hasValue(g)){var b=f.getItemLayout(g);y?(iu(y),E3(b,y,f,g)):y=A3(b,f,g,v),d.add(y),f.setItemGraphicEl(g,y)}else d.remove(y)}).remove(function(g){var m=h.getItemGraphicEl(g);m&&d.remove(m)}).execute(),this._data=f},t.prototype.remove=function(e){var o=this.group,u=this._data;this._data=null,u&&u.eachItemGraphicEl(function(f){f&&o.remove(f)})},t.type="boxplot",t}(jn),h7=function a(){},p7=function(a){function t(e){var o=a.call(this,e)||this;return o.type="boxplotBoxPath",o}return de(t,a),t.prototype.getDefaultShape=function(){return new h7},t.prototype.buildPath=function(e,o){var u=o.points,f=0;for(e.moveTo(u[f][0],u[f][1]),f++;f<4;f++)e.lineTo(u[f][0],u[f][1]);for(e.closePath();fk)&&o.push([x,E])}}return{boxData:e,outliers:o}}(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:u.boxData},{data:u.outliers}]}},L3=["color","borderColor"],g7=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.render=function(e,o,u){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(e),this._isLargeDraw?this._renderLarge(e):this._renderNormal(e)},t.prototype.incrementalPrepareRender=function(e,o,u){this._clear(),this._updateDrawMode(e)},t.prototype.incrementalRender=function(e,o,u,f){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(e,o):this._incrementalRenderNormal(e,o)},t.prototype.eachRendered=function(e){hf(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var o=e.pipelineContext.large;(null==this._isLargeDraw||o!==this._isLargeDraw)&&(this._isLargeDraw=o,this._clear())},t.prototype._renderNormal=function(e){var o=e.getData(),u=this._data,f=this.group,d=o.getLayout("isSimpleBox"),h=e.get("clip",!0),v=e.coordinateSystem,g=v.getArea&&v.getArea();this._data||f.removeAll(),o.diff(u).add(function(m){if(o.hasValue(m)){var y=o.getItemLayout(m);if(h&&TA(g,y))return;var b=$n(y,0,!0);nr(b,{shape:{points:y.ends}},e,m),m1(b,o,m,d),f.add(b),o.setItemGraphicEl(m,b)}}).update(function(m,y){var b=u.getItemGraphicEl(y);if(o.hasValue(m)){var C=o.getItemLayout(m);h&&TA(g,C)?f.remove(b):(b?(Ut(b,{shape:{points:C.ends}},e,m),iu(b)):b=$n(C),m1(b,o,m,d),f.add(b),o.setItemGraphicEl(m,b))}else f.remove(b)}).remove(function(m){var y=u.getItemGraphicEl(m);y&&f.remove(y)}).execute(),this._data=o},t.prototype._renderLarge=function(e){this._clear(),Yn(e,this.group);var o=e.get("clip",!0)?$_(e.coordinateSystem,!1,e):null;o?this.group.setClipPath(o):this.group.removeClipPath()},t.prototype._incrementalRenderNormal=function(e,o){for(var d,u=o.getData(),f=u.getLayout("isSimpleBox");null!=(d=e.next());){var v=$n(u.getItemLayout(d));m1(v,u,d,f),v.incremental=!0,this.group.add(v),this._progressiveEls.push(v)}},t.prototype._incrementalRenderLarge=function(e,o){Yn(o,this.group,this._progressiveEls,!0)},t.prototype.remove=function(e){this._clear()},t.prototype._clear=function(){this.group.removeAll(),this._data=null},t.type="candlestick",t}(jn),vc=function a(){},zi=function(a){function t(e){var o=a.call(this,e)||this;return o.type="normalCandlestickBox",o}return de(t,a),t.prototype.getDefaultShape=function(){return new vc},t.prototype.buildPath=function(e,o){var u=o.points;this.__simpleBox?(e.moveTo(u[4][0],u[4][1]),e.lineTo(u[6][0],u[6][1])):(e.moveTo(u[0][0],u[0][1]),e.lineTo(u[1][0],u[1][1]),e.lineTo(u[2][0],u[2][1]),e.lineTo(u[3][0],u[3][1]),e.closePath(),e.moveTo(u[4][0],u[4][1]),e.lineTo(u[5][0],u[5][1]),e.moveTo(u[6][0],u[6][1]),e.lineTo(u[7][0],u[7][1]))},t}(Xt);function $n(a,t,e){var o=a.ends;return new zi({shape:{points:e?mt(o,a):o},z2:100})}function TA(a,t){for(var e=!0,o=0;o0?"borderColor":"borderColor0"])||e.get(["itemStyle",a>0?"color":"color0"]),f=e.getModel("itemStyle").getItemStyle(L3);t.useStyle(f),t.style.fill=null,t.style.stroke=u}var _1=g7,_7=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],e}return de(t,a),t.prototype.getShadowDim=function(){return"open"},t.prototype.brushSelector=function(e,o,u){var f=o.getItemLayout(e);return f&&u.rect(f.brushRect)},t.type="series.candlestick",t.dependencies=["xAxis","yAxis","grid"],t.defaultOption={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},t}(fr);Ir(_7,D3,!0);var y1=_7;function D$(a){!a||!Ce(a.series)||q(a.series,function(t){Ke(t)&&"k"===t.type&&(t.type="candlestick")})}var F3=["itemStyle","borderColor"],By=["itemStyle","borderColor0"],N3=["itemStyle","color"],AA=["itemStyle","color0"],Nn={seriesType:"candlestick",plan:Qa(),performRawSeries:!0,reset:function(t,e){function o(d,h){return h.get(d>0?N3:AA)}function u(d,h){return h.get(d>0?F3:By)}if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(h,v){for(var g;null!=(g=h.next());){var m=v.getItemModel(g),y=v.getItemLayout(g).sign,b=m.getItemStyle();b.fill=o(y,m),b.stroke=u(y,m)||b.fill,ve(v.ensureUniqueItemVisual(g,"style"),b)}}}}},b1=Nn,B3={seriesType:"candlestick",plan:Qa(),reset:function(t){var e=t.coordinateSystem,o=t.getData(),u=function y7(a,t){var o,e=a.getBaseAxis(),u="category"===e.type?e.getBandWidth():(o=e.getExtent(),Math.abs(o[1]-o[0])/t.count()),f=Ie(Ft(a.get("barMaxWidth"),u),u),d=Ie(Ft(a.get("barMinWidth"),1),u),h=a.get("barWidth");return null!=h?Ie(h,u):Math.max(Math.min(u/2,f),d)}(t,o),h=["x","y"],v=o.getDimensionIndex(o.mapDimension(h[0])),g=Me(o.mapDimensionsAll(h[1]),o.getDimensionIndex,o),m=g[0],y=g[1],b=g[2],C=g[3];if(o.setLayout({candleWidth:u,isSimpleBox:u<=1.3}),!(v<0||g.length<4))return{progress:t.pipelineContext.large?function k(D,x){for(var P,H,T=Ju(4*D.count),E=0,V=[],N=[],j=x.getStore();null!=(H=D.next());){var Z=j.get(v,H),W=j.get(m,H),X=j.get(y,H),J=j.get(b,H),ee=j.get(C,H);isNaN(Z)||isNaN(J)||isNaN(ee)?(T[E++]=NaN,E+=3):(T[E++]=V3(j,H,W,X,y),V[0]=Z,V[1]=J,P=e.dataToPoint(V,null,N),T[E++]=P?P[0]:NaN,T[E++]=P?P[1]:NaN,V[1]=ee,P=e.dataToPoint(V,null,N),T[E++]=P?P[1]:NaN)}x.setLayout("largePoints",T)}:function S(D,x){for(var T,E=x.getStore();null!=(T=D.next());){var P=E.get(v,T),V=E.get(m,T),N=E.get(y,T),H=E.get(b,T),j=E.get(C,T),Z=Math.min(V,N),W=Math.max(V,N),X=ce(Z,P),J=ce(W,P),ee=ce(H,P),re=ce(j,P),ie=[];me(ie,J,0),me(ie,X,1),ie.push(_e(re),_e(J),_e(ee),_e(X)),x.setItemLayout(T,{sign:V3(E,T,V,N,y),initBaseline:V>N?J[1]:X[1],ends:ie,brushRect:(Pe=H,Be=j,He=P,nt=void 0,ht=void 0,nt=ce(Pe,He),ht=ce(Be,He),nt[0]-=u/2,ht[0]-=u/2,{x:nt[0],y:nt[1],width:u,height:ht[1]-nt[1]})})}var Pe,Be,He,nt,ht;function ce(Pe,Be){var He=[];return He[0]=Be,He[1]=Pe,isNaN(Be)||isNaN(Pe)?[NaN,NaN]:e.dataToPoint(He)}function me(Pe,Be,He){var nt=Be.slice(),ht=Be.slice();nt[0]=fC(nt[0]+u/2,1,!1),ht[0]=fC(ht[0]-u/2,1,!0),He?Pe.push(nt,ht):Pe.push(ht,nt)}function _e(Pe){return Pe[0]=fC(Pe[0],1),Pe}}}}};function V3(a,t,e,o,u){return e>o?-1:e0?a.get(u,t-1)<=o?1:-1:1}var b7=B3;function H3(a,t){var e=t.rippleEffectColor||t.color;a.eachChild(function(o){o.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?e:null,fill:"fill"===t.brushType?e:null}})})}var w7=function(a){function t(e,o){var u=a.call(this)||this,f=new X_(e,o),d=new ct;return u.add(f),u.add(d),u.updateData(e,o),u}return de(t,a),t.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},t.prototype.startEffectAnimation=function(e){for(var o=e.symbolType,u=e.color,f=e.rippleNumber,d=this.childAt(1),h=0;h0&&(h=this._getLineLength(f)/g*1e3),h!==this._period||v!==this._loop){f.stopAnimation();var y=void 0;y=et(m)?m(u):m,f.__t>0&&(y=-h*f.__t),this._animateSymbol(f,h,y,v)}this._period=h,this._loop=v}},t.prototype._animateSymbol=function(e,o,u,f){if(o>0){e.__t=0;var d=this,h=e.animate("",f).when(o,{__t:1}).delay(u).during(function(){d._updateSymbolPosition(e)});f||h.done(function(){d.remove(e)}),h.start()}},t.prototype._getLineLength=function(e){return Oc(e.__p1,e.__cp1)+Oc(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,o){e.__p1=o[0],e.__p2=o[1],e.__cp1=o[2]||[(o[0][0]+o[1][0])/2,(o[0][1]+o[1][1])/2]},t.prototype.updateData=function(e,o,u){this.childAt(0).updateData(e,o,u),this._updateEffectSymbol(e,o)},t.prototype._updateSymbolPosition=function(e){var o=e.__p1,u=e.__p2,f=e.__cp1,d=e.__t,h=[e.x,e.y],v=h.slice(),g=ti,m=Fc;h[0]=g(o[0],f[0],u[0],d),h[1]=g(o[1],f[1],u[1],d);var y=m(o[0],f[0],u[0],d),b=m(o[1],f[1],u[1],d);e.rotation=-Math.atan2(b,y)-Math.PI/2,("line"===this._symbolType||"rect"===this._symbolType||"roundRect"===this._symbolType)&&(void 0!==e.__lastT&&e.__lastT=0&&!(f[v]<=o);v--);v=Math.min(v,d-2)}else{for(v=h;vo);v++);v=Math.min(v-1,d-2)}var m=(o-f[v])/(f[v+1]-f[v]),y=u[v],b=u[v+1];e.x=y[0]*(1-m)+m*b[0],e.y=y[1]*(1-m)+m*b[1],e.rotation=-Math.atan2(b[1]-y[1],b[0]-y[0])-Math.PI/2,this._lastFrame=v,this._lastFramePercent=o,e.ignore=!1}},t}(z3),P7=E7,O7=function a(){this.polyline=!1,this.curveness=0,this.segs=[]},I7=function(a){function t(e){var o=a.call(this,e)||this;return o._off=0,o.hoverDataIdx=-1,o}return de(t,a),t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new O7},t.prototype.buildPath=function(e,o){var d,u=o.segs,f=o.curveness;if(o.polyline)for(d=this._off;d0){e.moveTo(u[d++],u[d++]);for(var v=1;v0?e.quadraticCurveTo((g+y)/2-(m-b)*f,(m+b)/2-(y-g)*f,y,b):e.lineTo(y,b)}this.incremental&&(this._off=d,this.notClear=!0)},t.prototype.findDataIndex=function(e,o){var u=this.shape,f=u.segs,d=u.curveness,h=this.style.lineWidth;if(u.polyline)for(var v=0,g=0;g0)for(var y=f[g++],b=f[g++],C=1;C0){if(jO(y,b,(y+S)/2-(b-k)*d,(b+k)/2-(S-y)*d,S,k,h,e,o))return v}else if(Qt(y,b,S,k,h,e,o))return v;v++}return-1},t.prototype.contain=function(e,o){var u=this.transformCoordToLocal(e,o);return this.getBoundingRect().contain(e=u[0],o=u[1])?(this.hoverDataIdx=this.findDataIndex(e,o))>=0:(this.hoverDataIdx=-1,!1)},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var u=this.shape.segs,f=1/0,d=1/0,h=-1/0,v=-1/0,g=0;g0&&(d.dataIndex=v+t.__startIndex)})},a.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},a}(),A$=T$,R7={seriesType:"lines",plan:Qa(),reset:function(t){var e=t.coordinateSystem;if(e){var o=t.get("polyline"),u=t.pipelineContext.large;return{progress:function(d,h){var v=[];if(u){var g=void 0,m=d.end-d.start;if(o){for(var y=0,b=d.start;b0&&(m||g.configLayer(h,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(v/10+.9,1),0)})),d.updateData(f);var y=e.get("clip",!0)&&$_(e.coordinateSystem,!1,e);y?this.group.setClipPath(y):this.group.removeClipPath(),this._lastZlevel=h,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,o,u){var f=e.getData();this._updateLineDraw(f,e).incrementalPrepareUpdate(f),this._clearLayer(u),this._finished=!1},t.prototype.incrementalRender=function(e,o,u){this._lineDraw.incrementalUpdate(e,o.getData()),this._finished=e.end===o.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,o,u){var f=e.getData(),d=e.pipelineContext;if(!this._finished||d.large||d.progressiveRender)return{update:!0};var h=U3.reset(e,o,u);h.progress&&h.progress({start:0,end:f.count(),count:f.count()},f),this._lineDraw.updateLayout(),this._clearLayer(u)},t.prototype._updateLineDraw=function(e,o){var u=this._lineDraw,f=this._showEffect(o),d=!!o.get("polyline"),v=o.pipelineContext.large;return(!u||f!==this._hasEffet||d!==this._isPolyline||v!==this._isLargeDraw)&&(u&&u.remove(),u=this._lineDraw=v?new A$:new Fs(d?f?P7:G3:f?z3:Ha),this._hasEffet=f,this._isPolyline=d,this._isLargeDraw=v),this.group.add(u.group),u},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var o=e.getZr();"svg"!==o.painter.getType()&&null!=this._lastZlevel&&o.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,o){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(o)},t.prototype.dispose=function(e,o){this.remove(e,o)},t.type="lines",t}(jn),F7=L7,N7="undefined"==typeof Uint32Array?Array:Uint32Array,B7="undefined"==typeof Float64Array?Array:Float64Array;function j3(a){var t=a.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(a.data=Me(t,function(e){var u={coords:[e[0].coord,e[1].coord]};return e[0].name&&(u.fromName=e[0].name),e[1].name&&(u.toName=e[1].name),gr([u,e[0],e[1]])}))}var V7=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return de(t,a),t.prototype.init=function(e){e.data=e.data||[],j3(e);var o=this._processFlatCoordsArray(e.data);this._flatCoords=o.flatCoords,this._flatCoordsOffset=o.flatCoordsOffset,o.flatCoords&&(e.data=new Float32Array(o.count)),a.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(j3(e),e.data){var o=this._processFlatCoordsArray(e.data);this._flatCoords=o.flatCoords,this._flatCoordsOffset=o.flatCoordsOffset,o.flatCoords&&(e.data=new Float32Array(o.count))}a.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var o=this._processFlatCoordsArray(e.data);o.flatCoords&&(this._flatCoords?(this._flatCoords=Ng(this._flatCoords,o.flatCoords),this._flatCoordsOffset=Ng(this._flatCoordsOffset,o.flatCoordsOffset)):(this._flatCoords=o.flatCoords,this._flatCoordsOffset=o.flatCoordsOffset),e.data=new Float32Array(o.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var o=this.getData().getItemModel(e);return o.option instanceof Array?o.option:o.getShallow("coords")},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,o){if(this._flatCoordsOffset){for(var u=this._flatCoordsOffset[2*e],f=this._flatCoordsOffset[2*e+1],d=0;d ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),o=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&o>0?o+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",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}},t}(fr),H7=V7;function C1(a){return a instanceof Array||(a=[a,a]),a}var z7={seriesType:"lines",reset:function(t){var e=C1(t.get("symbol")),o=C1(t.get("symbolSize")),u=t.getData();return u.setVisual("fromSymbol",e&&e[0]),u.setVisual("toSymbol",e&&e[1]),u.setVisual("fromSymbolSize",o&&o[0]),u.setVisual("toSymbolSize",o&&o[1]),{dataEach:u.hasItemOption?function f(d,h){var v=d.getItemModel(h),g=C1(v.getShallow("symbol",!0)),m=C1(v.getShallow("symbolSize",!0));g[0]&&d.setItemVisual(h,"fromSymbol",g[0]),g[1]&&d.setItemVisual(h,"toSymbol",g[1]),m[0]&&d.setItemVisual(h,"fromSymbolSize",m[0]),m[1]&&d.setItemVisual(h,"toSymbolSize",m[1])}:null}}},E$=z7,EA=function(){function a(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Ws.createCanvas();this.canvas=t}return a.prototype.update=function(t,e,o,u,f,d){var h=this._getBrush(),v=this._getGradient(f,"inRange"),g=this._getGradient(f,"outOfRange"),m=this.pointSize+this.blurSize,y=this.canvas,b=y.getContext("2d"),C=t.length;y.width=e,y.height=o;for(var S=0;S0){var J=d(E)?v:g;E>0&&(E=E*W+j),V[N++]=J[X],V[N++]=J[X+1],V[N++]=J[X+2],V[N++]=J[X+3]*E*256}else N+=4}return b.putImageData(P,0,0),y},a.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Ws.createCanvas()),e=this.pointSize+this.blurSize,o=2*e;t.width=o,t.height=o;var u=t.getContext("2d");return u.clearRect(0,0,o,o),u.shadowOffsetX=o,u.shadowBlur=this.blurSize,u.shadowColor="#000",u.beginPath(),u.arc(-e,e,this.pointSize,0,2*Math.PI,!0),u.closePath(),u.fill(),t},a.prototype._getGradient=function(t,e){for(var o=this._gradientPixels,u=o[e]||(o[e]=new Uint8ClampedArray(1024)),f=[0,0,0,0],d=0,h=0;h<256;h++)t[e](h/255,!0,f),u[d++]=f[0],u[d++]=f[1],u[d++]=f[2],u[d++]=f[3];return u},a}(),Hf=EA;function w1(a){var t=a.dimensions;return"lng"===t[0]&&"lat"===t[1]}var OA=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.render=function(e,o,u){var f;o.eachComponent("visualMap",function(h){h.eachTargetSeries(function(v){v===e&&(f=h)})}),this._progressiveEls=null,this.group.removeAll();var d=e.coordinateSystem;"cartesian2d"===d.type||"calendar"===d.type?this._renderOnCartesianAndCalendar(e,u,0,e.getData().count()):w1(d)&&this._renderOnGeo(d,e,f,u)},t.prototype.incrementalPrepareRender=function(e,o,u){this.group.removeAll()},t.prototype.incrementalRender=function(e,o,u,f){var d=o.coordinateSystem;d&&(w1(d)?this.render(o,u,f):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(o,f,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){hf(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,o,u,f,d){var g,m,y,b,h=e.coordinateSystem,v=ac(h,"cartesian2d");if(v){var C=h.getAxis("x"),S=h.getAxis("y");g=C.getBandWidth()+.5,m=S.getBandWidth()+.5,y=C.scale.getExtent(),b=S.scale.getExtent()}for(var k=this.group,D=e.getData(),x=e.getModel(["emphasis","itemStyle"]).getItemStyle(),T=e.getModel(["blur","itemStyle"]).getItemStyle(),E=e.getModel(["select","itemStyle"]).getItemStyle(),P=e.get(["itemStyle","borderRadius"]),V=va(e),N=e.getModel("emphasis"),H=N.get("focus"),j=N.get("blurScope"),Z=N.get("disabled"),W=v?[D.mapDimension("x"),D.mapDimension("y"),D.mapDimension("value")]:[D.mapDimension("time"),D.mapDimension("value")],X=u;Xy[1]||ieb[1])continue;var ce=h.dataToPoint([re,ie]);J=new fn({shape:{x:ce[0]-g/2,y:ce[1]-m/2,width:g,height:m},style:ee})}else{if(isNaN(D.get(W[1],X)))continue;J=new fn({z2:1,shape:h.dataToRect([D.get(W[0],X)]).contentShape,style:ee})}if(D.hasItemOption){var me=D.getItemModel(X),pe=me.getModel("emphasis");x=pe.getModel("itemStyle").getItemStyle(),T=me.getModel(["blur","itemStyle"]).getItemStyle(),E=me.getModel(["select","itemStyle"]).getItemStyle(),P=me.get(["itemStyle","borderRadius"]),H=pe.get("focus"),j=pe.get("blurScope"),Z=pe.get("disabled"),V=va(me)}J.shape.r=P;var _e=e.getRawValue(X),Pe="-";_e&&null!=_e[2]&&(Pe=_e[2]+""),$i(J,V,{labelFetcher:e,labelDataIndex:X,defaultOpacity:ee.opacity,defaultText:Pe}),J.ensureState("emphasis").style=x,J.ensureState("blur").style=T,J.ensureState("select").style=E,Yr(J,H,j,Z),J.incremental=d,d&&(J.states.emphasis.hoverLayer=!0),k.add(J),D.setItemGraphicEl(X,J),this._progressiveEls&&this._progressiveEls.push(J)}},t.prototype._renderOnGeo=function(e,o,u,f){var d=u.targetVisuals.inRange,h=u.targetVisuals.outOfRange,v=o.getData(),g=this._hmLayer||this._hmLayer||new Hf;g.blurSize=o.get("blurSize"),g.pointSize=o.get("pointSize"),g.minOpacity=o.get("minOpacity"),g.maxOpacity=o.get("maxOpacity");var m=e.getViewRect().clone(),y=e.getRoamTransform();m.applyTransform(y);var b=Math.max(m.x,0),C=Math.max(m.y,0),S=Math.min(m.width+m.x,f.getWidth()),k=Math.min(m.height+m.y,f.getHeight()),D=S-b,x=k-C,T=[v.mapDimension("lng"),v.mapDimension("lat"),v.mapDimension("value")],E=v.mapArray(T,function(H,j,Z){var W=e.dataToPoint([H,j]);return W[0]-=b,W[1]-=C,W.push(Z),W}),P=u.getExtent(),V="visualMap.continuous"===u.type?function PA(a,t){var e=a[1]-a[0];return t=[(t[0]-a[0])/e,(t[1]-a[0])/e],function(o){return o>=t[0]&&o<=t[1]}}(P,u.option.range):function W3(a,t,e){var o=a[1]-a[0],u=(t=Me(t,function(d){return{interval:[(d.interval[0]-a[0])/o,(d.interval[1]-a[0])/o]}})).length,f=0;return function(d){var h;for(h=f;h=0;h--){var v;if((v=t[h].interval)[0]<=d&&d<=v[1]){f=h;break}}return h>=0&&h0?1:-1})(e,f,u,o,b),function W7(a,t,e,o,u,f,d,h,v,g){var S,m=v.valueDim,y=v.categoryDim,b=Math.abs(e[y.wh]),C=a.getItemVisual(t,"symbolSize");(S=Ce(C)?C.slice():null==C?["100%","100%"]:[C,C])[y.index]=Ie(S[y.index],b),S[m.index]=Ie(S[m.index],o?b:Math.abs(f)),g.symbolSize=S,(g.symbolScale=[S[0]/h,S[1]/h])[m.index]*=(v.isHorizontal?-1:1)*d}(a,t,u,f,0,b.boundingLength,b.pxSign,m,o,b),function K3(a,t,e,o,u){var f=a.get(Z3)||0;f&&(RA.attr({scaleX:t[0],scaleY:t[1],rotation:e}),RA.updateTransform(),f/=RA.getLineScale(),f*=t[o.valueDim.index]),u.valueLineWidth=f||0}(e,b.symbolScale,g,o,b);var C=b.symbolSize,S=uh(e.get("symbolOffset"),C);return function $3(a,t,e,o,u,f,d,h,v,g,m,y){var b=m.categoryDim,C=m.valueDim,S=y.pxSign,k=Math.max(t[C.index]+h,0),D=k;if(o){var x=Math.abs(v),T=Ui(a.get("symbolMargin"),"15%")+"",E=!1;T.lastIndexOf("!")===T.length-1&&(E=!0,T=T.slice(0,T.length-1));var P=Ie(T,t[C.index]),V=Math.max(k+2*P,0),N=E?0:2*P,H=RM(o),j=H?o:tB((x+N)/V);V=k+2*(P=(x-j*k)/2/(E?j:Math.max(j-1,1))),N=E?0:2*P,!H&&"fixed"!==o&&(j=g?tB((Math.abs(g)+N)/V):0),D=j*V-N,y.repeatTimes=j,y.symbolMargin=P}var W=S*(D/2),X=y.pathPosition=[];X[b.index]=e[b.wh]/2,X[C.index]="start"===d?W:"end"===d?v-W:v/2,f&&(X[0]+=f[0],X[1]+=f[1]);var J=y.bundlePosition=[];J[b.index]=e[b.xy],J[C.index]=e[C.xy];var ee=y.barRectShape=ve({},e);ee[C.wh]=S*Math.max(Math.abs(e[C.wh]),Math.abs(X[C.index]+W)),ee[b.wh]=e[b.wh];var re=y.clipShape={};re[b.xy]=-e[b.xy],re[b.wh]=m.ecSize[b.wh],re[C.xy]=0,re[C.wh]=e[C.wh]}(e,C,u,f,0,S,h,b.valueLineWidth,b.boundingLength,b.repeatCutLength,o,b),b}function M1(a,t){return a.toGlobalCoord(a.dataToCoord(a.scale.parse(t)))}function Y7(a){var t=a.symbolPatternSize,e=Dr(a.symbolType,-t/2,-t/2,t,t);return e.attr({culling:!0}),"image"!==e.type&&e.setStyle({strokeNoScale:!0}),e}function LA(a,t,e,o){var u=a.__pictorialBundle,h=e.pathPosition,v=t.valueDim,g=e.repeatTimes||0,m=0,y=e.symbolSize[t.valueDim.index]+e.valueLineWidth+2*e.symbolMargin;for(gc(a,function(k){k.__pictorialAnimationIndex=m,k.__pictorialRepeatTimes=g,m0:x<0)&&(T=g-1-k),D[v.index]=y*(T-g/2+.5)+h[v.index],{x:D[0],y:D[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation}}}function k1(a,t,e,o){var u=a.__pictorialBundle,f=a.__pictorialMainPath;f?Gf(f,null,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:e.symbolScale[0],scaleY:e.symbolScale[1],rotation:e.rotation},e,o):(f=a.__pictorialMainPath=Y7(e),u.add(f),Gf(f,{x:e.pathPosition[0],y:e.pathPosition[1],scaleX:0,scaleY:0,rotation:e.rotation},{scaleX:e.symbolScale[0],scaleY:e.symbolScale[1]},e,o))}function Q3(a,t,e){var o=ve({},t.barRectShape),u=a.__pictorialBarRect;u?Gf(u,null,{shape:o},t,e):((u=a.__pictorialBarRect=new fn({z2:2,shape:o,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,a.add(u))}function FA(a,t,e,o){if(e.symbolClip){var u=a.__pictorialClipPath,f=ve({},e.clipShape),d=t.valueDim,h=e.animationModel,v=e.dataIndex;if(u)Ut(u,{shape:f},h,v);else{f[d.wh]=0,u=new fn({shape:f}),a.__pictorialBundle.setClipPath(u),a.__pictorialClipPath=u;var g={};g[d.wh]=e.clipShape[d.wh],R[o?"updateProps":"initProps"](u,{shape:g},h,v)}}}function J3(a,t){var e=a.getItemModel(t);return e.getAnimationDelayParams=eB,e.isAnimationEnabled=NA,e}function eB(a){return{index:a.__pictorialAnimationIndex,count:a.__pictorialRepeatTimes}}function NA(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function Vy(a,t,e,o){var u=new ct,f=new ct;return u.add(f),u.__pictorialBundle=f,f.x=e.bundlePosition[0],f.y=e.bundlePosition[1],e.symbolRepeat?LA(u,t,e):k1(u,0,e),Q3(u,e,o),FA(u,t,e,o),u.__pictorialShapeStr=x1(a,e),u.__pictorialSymbolMeta=e,u}function BA(a,t,e,o){var u=o.__pictorialBarRect;u&&u.removeTextContent();var f=[];gc(o,function(d){f.push(d)}),o.__pictorialMainPath&&f.push(o.__pictorialMainPath),o.__pictorialClipPath&&(e=null),q(f,function(d){ru(d,{scaleX:0,scaleY:0},e,t,function(){o.parent&&o.parent.remove(o)})}),a.setItemGraphicEl(t,null)}function x1(a,t){return[a.getItemVisual(t.dataIndex,"symbol")||"none",!!t.symbolRepeat,!!t.symbolClip].join(":")}function gc(a,t,e){q(a.__pictorialBundle.children(),function(o){o!==a.__pictorialBarRect&&t.call(e,o)})}function Gf(a,t,e,o,u,f){t&&a.attr(t),o.symbolClip&&!u?e&&a.attr(e):e&&R[u?"updateProps":"initProps"](a,e,o.animationModel,o.dataIndex,f)}function Hy(a,t,e){var o=e.dataIndex,u=e.itemModel,f=u.getModel("emphasis"),d=f.getModel("itemStyle").getItemStyle(),h=u.getModel(["blur","itemStyle"]).getItemStyle(),v=u.getModel(["select","itemStyle"]).getItemStyle(),g=u.getShallow("cursor"),m=f.get("focus"),y=f.get("blurScope"),b=f.get("scale");gc(a,function(k){if(k instanceof Ki){var D=k.style;k.useStyle(ve({image:D.image,x:D.x,y:D.y,width:D.width,height:D.height},e.style))}else k.useStyle(e.style);var x=k.ensureState("emphasis");x.style=d,b&&(x.scaleX=1.1*k.scaleX,x.scaleY=1.1*k.scaleY),k.ensureState("blur").style=h,k.ensureState("select").style=v,g&&(k.cursor=g),k.z2=e.z2});var C=t.valueDim.posDesc[+(e.boundingLength>0)];$i(a.__pictorialBarRect,va(u),{labelFetcher:t.seriesModel,labelDataIndex:o,defaultText:Nv(t.seriesModel.getData(),o),inheritColor:e.style.fill,defaultOpacity:e.style.opacity,defaultOutsidePosition:C}),Yr(a,m,y,f.get("disabled"))}function tB(a){var t=Math.round(a);return Math.abs(a-t)<1e-4?t:Math.ceil(a)}var ng=j7,P$=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e.defaultSymbol="roundRect",e}return de(t,a),t.prototype.getInitialData=function(e){return e.stack=null,a.prototype.getInitialData.apply(this,arguments)},t.type="series.pictorialBar",t.dependencies=["grid"],t.defaultOption=Xc(oc.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"}}}),t}(oc),Uf=P$,rB=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e._layers=[],e}return de(t,a),t.prototype.render=function(e,o,u){var f=e.getData(),d=this,h=this.group,v=e.getLayerSeries(),g=f.getLayout("layoutInfo"),m=g.rect,y=g.boundaryGap;function b(D){return D.name}h.x=0,h.y=m.y+y[0];var C=new Zu(this._layersSeries||[],v,b,b),S=[];function k(D,x,T){var E=d._layers;if("remove"!==D){for(var N,P=[],V=[],H=v[x].indices,j=0;jf&&(f=h),o.push(h)}for(var g=0;gf&&(f=y)}return{y0:u,max:f}}(h),g=v.y0,m=e/v.max,y=u.length,b=u[0].indices.length,S=0;SMath.PI/2?"right":"left"):J&&"center"!==J?"left"===J?(W=d.r0+X,v>Math.PI/2&&(J="right")):"right"===J&&(W=d.r-X,v>Math.PI/2&&(J="left")):(W=h===2*Math.PI&&0===d.r0?0:(d.r+d.r0)/2,J="center"),P.style.align=J,P.style.verticalAlign=D(T,"verticalAlign")||"middle",P.x=W*g+d.cx,P.y=W*m+d.cy;var ee=D(T,"rotate"),re=0;"radial"===ee?(re=-v)<-Math.PI/2&&(re+=Math.PI):"tangential"===ee?(re=Math.PI/2-v)>Math.PI/2?re-=Math.PI:re<-Math.PI/2&&(re+=Math.PI):Cn(ee)&&(re=ee*Math.PI/180),P.rotation=re}),b.dirtyStyle()},t}(Ja),aB=K7,so="sunburstRootToNode",zA="sunburstHighlight",O$=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.render=function(e,o,u,f){var d=this;this.seriesModel=e,this.api=u,this.ecModel=o;var h=e.getData(),v=h.tree.root,g=e.getViewRoot(),m=this.group,y=e.get("renderLabelForZeroData"),b=[];g.eachNode(function(T){b.push(T)}),function S(T,E){function P(N){return N.getId()}function V(N,H){!function k(T,E){if(!y&&T&&!T.getValue()&&(T=null),T!==v&&E!==v)if(E&&E.piece)T?(E.piece.updateData(!1,T,e,o,u),h.setItemGraphicEl(T.dataIndex,E.piece)):function D(T){!T||T.piece&&(m.remove(T.piece),T.piece=null)}(E);else if(T){var P=new aB(T,e,o,u);m.add(P),h.setItemGraphicEl(T.dataIndex,P)}}(null==N?null:T[N],null==H?null:E[H])}0===T.length&&0===E.length||new Zu(E,T,P,P).add(V).update(V).remove(wt(V,null)).execute()}(b,this._oldChildren||[]),function x(T,E){E.depth>0?(d.virtualPiece?d.virtualPiece.updateData(!1,T,e,o,u):(d.virtualPiece=new aB(T,e,o,u),m.add(d.virtualPiece)),E.piece.off("click"),d.virtualPiece.on("click",function(P){d._rootToNode(E.parentNode)})):d.virtualPiece&&(m.remove(d.virtualPiece),d.virtualPiece=null)}(v,g),this._initEvents(),this._oldChildren=b},t.prototype._initEvents=function(){var e=this;this.group.off("click"),this.group.on("click",function(o){var u=!1;e.seriesModel.getViewRoot().eachNode(function(d){if(!u&&d.piece&&d.piece===o.target){var h=d.getModel().get("nodeClick");if("rootToNode"===h)e._rootToNode(d);else if("link"===h){var v=d.getModel(),g=v.get("link");g&&G0(g,v.get("target",!0)||"_blank")}u=!0}})})},t.prototype._rootToNode=function(e){e!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:so,from:this.uid,seriesId:this.seriesModel.id,targetNode:e})},t.prototype.containPoint=function(e,o){var f=o.getData().getItemLayout(0);if(f){var d=e[0]-f.cx,h=e[1]-f.cy,v=Math.sqrt(d*d+h*h);return v<=f.r&&v>=f.r0}},t.type="sunburst",t}(jn),$7=O$,Q7=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.ignoreStyleOnData=!0,e}return de(t,a),t.prototype.getInitialData=function(e,o){var u={name:e.name,children:e.data};J7(u);var f=this._levelModels=Me(e.levels||[],function(v){return new Kn(v,this,o)},this),d=LT.createTree(u,this,function h(v){v.wrapMethod("getItemModel",function(g,m){var y=d.getNodeByDataIndex(m),b=f[y.depth];return b&&(g.parentModel=b),g})});return d.data},t.prototype.optionUpdated=function(){this.resetViewRoot()},t.prototype.getDataParams=function(e){var o=a.prototype.getDataParams.apply(this,arguments),u=this.getData().tree.getNodeByDataIndex(e);return o.treePathInfo=Ww(u,this),o},t.prototype.getLevelModel=function(e){return this._levelModels&&this._levelModels[e.depth]},t.prototype.getViewRoot=function(){return this._viewRoot},t.prototype.resetViewRoot=function(e){e?this._viewRoot=e:e=this._viewRoot;var o=this.getRawData().tree.root;(!e||e!==o&&!o.contains(e))&&(this._viewRoot=o)},t.prototype.enableAriaDecal=function(){kN(this)},t.type="series.sunburst",t.defaultOption={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:[],sort:"desc"},t}(fr);function J7(a){var t=0;q(a.children,function(o){J7(o);var u=o.value;Ce(u)&&(u=u[0]),t+=u});var e=a.value;Ce(e)&&(e=e[0]),(null==e||isNaN(e))&&(e=t),e<0&&(e=0),Ce(a.value)?a.value[0]=e:a.value=e}var I$=Q7,Gy=Math.PI/180;function eW(a,t,e){t.eachSeriesByType(a,function(o){var u=o.get("center"),f=o.get("radius");Ce(f)||(f=[0,f]),Ce(u)||(u=[u,u]);var d=e.getWidth(),h=e.getHeight(),v=Math.min(d,h),g=Ie(u[0],d),m=Ie(u[1],h),y=Ie(f[0],v/2),b=Ie(f[1],v/2),C=-o.get("startAngle")*Gy,S=o.get("minAngle")*Gy,k=o.getData().tree.root,D=o.getViewRoot(),x=D.depth,T=o.get("sort");null!=T&&oB(D,T);var E=0;q(D.children,function(ce){!isNaN(ce.getValue())&&E++});var P=D.getValue(),V=Math.PI/(P||E)*2,N=D.depth>0,j=(b-y)/(D.height-(N?-1:1)||1),Z=o.get("clockwise"),W=o.get("stillShowZeroSum"),X=Z?1:-1;if(N){var ie=2*Math.PI;k.setLayout({angle:ie,startAngle:C,endAngle:C+ie,clockwise:Z,cx:g,cy:m,r0:y,r:y+j})}!function ce(me,pe){if(me){var _e=pe;if(me!==k){var Pe=me.getValue(),Be=0===P&&W?V:Pe*V;Be1;)d=d.parentNode;var h=u.getColorFromPalette(d.name||d.dataIndex+"",t);return o.depth>1&&Ne(h)&&(h=cM(h,(o.depth-1)/(f-1)*.5)),h}(d,o,f.root.height)),ve(u.ensureUniqueItemVisual(d.dataIndex,"style"),v)})})}var GA={color:"fill",borderColor:"stroke"},sB={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},mc=Sn(),lB=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,o){return wl(null,this)},t.prototype.getDataParams=function(e,o,u){var f=a.prototype.getDataParams.call(this,e,o);return u&&(f.info=mc(u).info),f},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t}(fr),uB=lB;function nW(a,t){return t=t||[0,0],Me(["x","y"],function(e,o){var u=this.getAxis(e),f=t[o],d=a[o]/2;return"category"===u.type?u.getBandWidth():Math.abs(u.dataToCoord(f-d)-u.dataToCoord(f+d))},this)}function iW(a,t){return t=t||[0,0],Me([0,1],function(e){var o=t[e],u=a[e]/2,f=[],d=[];return f[e]=o-u,d[e]=o+u,f[1-e]=d[1-e]=t[1-e],Math.abs(this.dataToPoint(f)[e]-this.dataToPoint(d)[e])},this)}function oW(a,t){var e=this.getAxis(),o=t instanceof Array?t[0]:t,u=(a instanceof Array?a[0]:a)/2;return"category"===e.type?e.getBandWidth():Math.abs(e.dataToCoord(o-u)-e.dataToCoord(o+u))}function sW(a,t){return t=t||[0,0],Me(["Radius","Angle"],function(e,o){var f=this["get"+e+"Axis"](),d=t[o],h=a[o]/2,v="category"===f.type?f.getBandWidth():Math.abs(f.dataToCoord(d-h)-f.dataToCoord(d+h));return"Angle"===e&&(v=v*Math.PI/180),v},this)}function R1(a,t,e,o){return a&&(a.legacy||!1!==a.legacy&&!e&&!o&&"tspan"!==t&&("text"===t||je(a,"text")))}function fB(a,t,e){var u,f,d,o=a;if("text"===t)d=o;else{d={},je(o,"text")&&(d.text=o.text),je(o,"rich")&&(d.rich=o.rich),je(o,"textFill")&&(d.fill=o.textFill),je(o,"textStroke")&&(d.stroke=o.textStroke),je(o,"fontFamily")&&(d.fontFamily=o.fontFamily),je(o,"fontSize")&&(d.fontSize=o.fontSize),je(o,"fontStyle")&&(d.fontStyle=o.fontStyle),je(o,"fontWeight")&&(d.fontWeight=o.fontWeight),f={type:"text",style:d,silent:!0},u={};var h=je(o,"textPosition");e?u.position=h?o.textPosition:"inside":h&&(u.position=o.textPosition),je(o,"textPosition")&&(u.position=o.textPosition),je(o,"textOffset")&&(u.offset=o.textOffset),je(o,"textRotation")&&(u.rotation=o.textRotation),je(o,"textDistance")&&(u.distance=o.textDistance)}return dB(d,a),q(d.rich,function(v){dB(v,v)}),{textConfig:u,textContent:f}}function dB(a,t){!t||(t.font=t.textFont||t.font,je(t,"textStrokeWidth")&&(a.lineWidth=t.textStrokeWidth),je(t,"textAlign")&&(a.align=t.textAlign),je(t,"textVerticalAlign")&&(a.verticalAlign=t.textVerticalAlign),je(t,"textLineHeight")&&(a.lineHeight=t.textLineHeight),je(t,"textWidth")&&(a.width=t.textWidth),je(t,"textHeight")&&(a.height=t.textHeight),je(t,"textBackgroundColor")&&(a.backgroundColor=t.textBackgroundColor),je(t,"textPadding")&&(a.padding=t.textPadding),je(t,"textBorderColor")&&(a.borderColor=t.textBorderColor),je(t,"textBorderWidth")&&(a.borderWidth=t.textBorderWidth),je(t,"textBorderRadius")&&(a.borderRadius=t.textBorderRadius),je(t,"textBoxShadowColor")&&(a.shadowColor=t.textBoxShadowColor),je(t,"textBoxShadowBlur")&&(a.shadowBlur=t.textBoxShadowBlur),je(t,"textBoxShadowOffsetX")&&(a.shadowOffsetX=t.textBoxShadowOffsetX),je(t,"textBoxShadowOffsetY")&&(a.shadowOffsetY=t.textBoxShadowOffsetY))}function hB(a,t,e){var o=a;o.textPosition=o.textPosition||e.position||"inside",null!=e.offset&&(o.textOffset=e.offset),null!=e.rotation&&(o.textRotation=e.rotation),null!=e.distance&&(o.textDistance=e.distance);var u=o.textPosition.indexOf("inside")>=0,f=a.fill||"#000";pB(o,t);var d=null==o.textFill;return u?d&&(o.textFill=e.insideFill||"#fff",!o.textStroke&&e.insideStroke&&(o.textStroke=e.insideStroke),!o.textStroke&&(o.textStroke=f),null==o.textStrokeWidth&&(o.textStrokeWidth=2)):(d&&(o.textFill=a.fill||e.outsideFill||"#000"),!o.textStroke&&e.outsideStroke&&(o.textStroke=e.outsideStroke)),o.text=t.text,o.rich=t.rich,q(t.rich,function(h){pB(h,h)}),o}function pB(a,t){!t||(je(t,"fill")&&(a.textFill=t.fill),je(t,"stroke")&&(a.textStroke=t.fill),je(t,"lineWidth")&&(a.textStrokeWidth=t.lineWidth),je(t,"font")&&(a.font=t.font),je(t,"fontStyle")&&(a.fontStyle=t.fontStyle),je(t,"fontWeight")&&(a.fontWeight=t.fontWeight),je(t,"fontSize")&&(a.fontSize=t.fontSize),je(t,"fontFamily")&&(a.fontFamily=t.fontFamily),je(t,"align")&&(a.textAlign=t.align),je(t,"verticalAlign")&&(a.textVerticalAlign=t.verticalAlign),je(t,"lineHeight")&&(a.textLineHeight=t.lineHeight),je(t,"width")&&(a.textWidth=t.width),je(t,"height")&&(a.textHeight=t.height),je(t,"backgroundColor")&&(a.textBackgroundColor=t.backgroundColor),je(t,"padding")&&(a.textPadding=t.padding),je(t,"borderColor")&&(a.textBorderColor=t.borderColor),je(t,"borderWidth")&&(a.textBorderWidth=t.borderWidth),je(t,"borderRadius")&&(a.textBorderRadius=t.borderRadius),je(t,"shadowColor")&&(a.textBoxShadowColor=t.shadowColor),je(t,"shadowBlur")&&(a.textBoxShadowBlur=t.shadowBlur),je(t,"shadowOffsetX")&&(a.textBoxShadowOffsetX=t.shadowOffsetX),je(t,"shadowOffsetY")&&(a.textBoxShadowOffsetY=t.shadowOffsetY),je(t,"textShadowColor")&&(a.textShadowColor=t.textShadowColor),je(t,"textShadowBlur")&&(a.textShadowBlur=t.textShadowBlur),je(t,"textShadowOffsetX")&&(a.textShadowOffsetX=t.textShadowOffsetX),je(t,"textShadowOffsetY")&&(a.textShadowOffsetY=t.textShadowOffsetY))}var jA={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},vB=Zt(jA),Uy=(Ys(Vo,function(a,t){return a[t]=1,a},{}),Vo.join(", "),["","style","shape","extra"]),rg=Sn();function L1(a,t,e,o,u){var f=a+"Animation",d=Zp(a,o,u)||{},h=rg(t).userDuring;return d.duration>0&&(d.during=h?ze(hW,{el:t,userDuring:h}):null,d.setToFinal=!0,d.scope=a),ve(d,e[f]),d}function F1(a,t,e,o){var u=(o=o||{}).dataIndex,f=o.isInit,d=o.clearStyle,h=e.isAnimationEnabled(),v=rg(a),g=t.style;v.userDuring=t.during;var m={},y={};if(function vW(a,t,e){for(var o=0;o=0)){var b=a.getAnimationStyleProps(),C=b?b.style:null;if(C){!f&&(f=o.style={});var S=Zt(e);for(g=0;g0&&a.animateFrom(b,C)}else!function cW(a,t,e,o,u){if(u){var f=L1("update",a,t,o,e);f.duration>0&&a.animateFrom(u,f)}}(a,t,u||0,e,m);lW(a,t),g?a.dirty():a.markRedraw()}function lW(a,t){for(var e=rg(a).leaveToProps,o=0;o=0){!d&&(d=o[a]={});var C=Zt(f);for(m=0;mo[1]&&o.reverse(),{coordSys:{type:"polar",cx:a.cx,cy:a.cy,r:o[1],r0:o[0]},api:{coord:function(f){var d=t.dataToRadius(f[0]),h=e.dataToAngle(f[1]),v=a.coordToPoint([d,h]);return v.push(d,h*Math.PI/180),v},size:ze(sW,a)}}},calendar:function UA(a){var t=a.getRect(),e=a.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:a.getCellWidth(),cellHeight:a.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(u,f){return a.dataToPoint(u,f)}}}}};function Yy(a){return a instanceof Xt}function KA(a){return a instanceof _s}var H1=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.render=function(e,o,u,f){this._progressiveEls=null;var d=this._data,h=e.getData(),v=this.group,g=yB(e,h,o,u);d||v.removeAll(),h.diff(d).add(function(y){U1(u,null,y,g(y,f),e,v,h)}).remove(function(y){var b=d.getItemGraphicEl(y);ig(b,mc(b).option,e)}).update(function(y,b){var C=d.getItemGraphicEl(b);U1(u,C,y,g(y,f),e,v,h)}).execute();var m=e.get("clip",!0)?$_(e.coordinateSystem,!1,e):null;m?v.setClipPath(m):v.removeClipPath(),this._data=h},t.prototype.incrementalPrepareRender=function(e,o,u){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,o,u,f,d){var h=o.getData(),v=yB(o,h,u,f),g=this._progressiveEls=[];function m(C){C.isGroup||(C.incremental=!0,C.ensureState("emphasis").hoverLayer=!0)}for(var y=e.start;y=0?t.getStore().get(me,ie):void 0}var pe=t.get(ce.name,ie),_e=ce&&ce.ordinalMeta;return _e?_e.categories[pe]:pe},styleEmphasis:function H(re,ie){null==ie&&(ie=g);var ce=T(ie,_c).getItemStyle(),me=E(ie,_c),pe=Cr(me,null,null,!0,!0);pe.text=me.getShallow("show")?Su(a.getFormattedLabel(ie,_c),a.getFormattedLabel(ie,jf),Nv(t,ie)):null;var _e=L0(me,null,!0);return Z(re,ce),ce=hB(ce,pe,_e),re&&j(ce,re),ce.legacy=!0,ce},visual:function W(re,ie){if(null==ie&&(ie=g),je(GA,re)){var ce=t.getItemVisual(ie,"style");return ce?ce[GA[re]]:null}if(je(sB,re))return t.getItemVisual(ie,re)},barLayout:function X(re){if("cartesian2d"===f.type)return function sX(a){var t=[],e=a.axis,o="axis0";if("category"===e.type){for(var u=e.getBandWidth(),f=0;f=m;y--)ig(t.childAt(y),mc(t).option,u)}}(a,g,e,o,u),d>=0?f.replaceAt(g,d):f.add(g),g}function JA(a,t,e){var o=mc(a),u=t.type,f=t.shape,d=t.style;return e.isUniversalTransitionEnabled()||null!=u&&u!==o.customGraphicType||"path"===u&&function W1(a){return a&&(je(a,"pathData")||je(a,"d"))}(f)&&tE(f)!==o.customPathData||"image"===u&&je(d,"image")&&d.image!==o.customImagePath}function bB(a,t,e){var o=t?sg(a,t):a,u=t?eE(a,o,_c):a.style,f=a.type,d=o?o.textConfig:null,h=a.textContent,v=h?t?sg(h,t):h:null;if(u&&(e.isLegacy||R1(u,f,!!d,!!v))){e.isLegacy=!0;var g=fB(u,f,!t);!d&&g.textConfig&&(d=g.textConfig),!v&&g.textContent&&(v=g.textContent)}!t&&v&&!v.type&&(v.type="text");var y=t?e[t]:e.normal;y.cfg=d,y.conOpt=v}function sg(a,t){return t?a?a[t]:null:a}function eE(a,t,e){var o=t&&t.style;return null==o&&e===_c&&a&&(o=a.styleEmphasis),o}function wB(a,t){var e=a&&a.name;return null!=e?e:"e\0\0"+t}function SB(a,t){var e=this.context;QA(e.api,null!=t?e.oldChildren[t]:null,e.dataIndex,null!=a?e.newChildren[a]:null,e.seriesModel,e.group)}function MW(a){var t=this.context,e=t.oldChildren[a];ig(e,mc(e).option,t.seriesModel)}function tE(a){return a&&(a.pathData||a.d)}var $h=Sn(),nE=ot,rE=ze,kW=function(){function a(){this._dragging=!1,this.animationThreshold=15}return a.prototype.render=function(t,e,o,u){var f=e.get("value"),d=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=o,u||this._lastValue!==f||this._lastStatus!==d){this._lastValue=f,this._lastStatus=d;var h=this._group,v=this._handle;if(!d||"hide"===d)return h&&h.hide(),void(v&&v.hide());h&&h.show(),v&&v.show();var g={};this.makeElOption(g,f,t,e,o);var m=g.graphicKey;m!==this._lastGraphicKey&&this.clear(o),this._lastGraphicKey=m;var y=this._moveAnimation=this.determineAnimation(t,e);if(h){var b=wt(kB,e,y);this.updatePointerEl(h,g,b),this.updateLabelEl(h,g,b,e)}else h=this._group=new ct,this.createPointerEl(h,g,t,e),this.createLabelEl(h,g,t,e),o.getZr().add(h);mi(h,e,!0),this._renderHandle(f)}},a.prototype.remove=function(t){this.clear(t)},a.prototype.dispose=function(t){this.clear(t)},a.prototype.determineAnimation=function(t,e){var o=e.get("animation"),u=t.axis,f="category"===u.type,d=e.get("snap");if(!d&&!f)return!1;if("auto"===o||null==o){var h=this.animationThreshold;if(f&&u.getBandWidth()>h)return!0;if(d){var v=pT(t).seriesDataCount,g=u.getExtent();return Math.abs(g[0]-g[1])/v>h}return!1}return!0===o},a.prototype.makeElOption=function(t,e,o,u,f){},a.prototype.createPointerEl=function(t,e,o,u){var f=e.pointer;if(f){var d=$h(t).pointerEl=new R[f.type](nE(e.pointer));t.add(d)}},a.prototype.createLabelEl=function(t,e,o,u){if(e.label){var f=$h(t).labelEl=new dn(nE(e.label));t.add(f),xB(f,u)}},a.prototype.updatePointerEl=function(t,e,o){var u=$h(t).pointerEl;u&&e.pointer&&(u.setStyle(e.pointer.style),o(u,{shape:e.pointer.shape}))},a.prototype.updateLabelEl=function(t,e,o,u){var f=$h(t).labelEl;f&&(f.setStyle(e.label.style),o(f,{x:e.label.x,y:e.label.y}),xB(f,u))},a.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var h,e=this._axisPointerModel,o=this._api.getZr(),u=this._handle,f=e.getModel("handle"),d=e.get("status");if(!f.get("show")||!d||"hide"===d)return u&&o.remove(u),void(this._handle=null);this._handle||(h=!0,u=this._handle=gv(f.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(m){It(m.event)},onmousedown:rE(this._onHandleDragMove,this,0,0),drift:rE(this._onHandleDragMove,this),ondragend:rE(this._onHandleDragEnd,this)}),o.add(u)),mi(u,e,!1),u.setStyle(f.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var v=f.get("size");Ce(v)||(v=[v,v]),u.scaleX=v[0]/2,u.scaleY=v[1]/2,sh(this,"_doDispatchAxisPointer",f.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,h)}},a.prototype._moveHandleToValue=function(t,e){kB(this._axisPointerModel,!e&&this._moveAnimation,this._handle,iE(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},a.prototype._onHandleDragMove=function(t,e){var o=this._handle;if(o){this._dragging=!0;var u=this.updateHandleTransform(iE(o),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=u,o.stopAnimation(),o.attr(iE(u)),$h(o).lastProp=null,this._doDispatchAxisPointer()}},a.prototype._doDispatchAxisPointer=function(){if(this._handle){var e=this._payloadInfo,o=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:o.axis.dim,axisIndex:o.componentIndex}]})}},a.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},a.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),o=this._group,u=this._handle;e&&o&&(this._lastGraphicKey=null,o&&e.remove(o),u&&e.remove(u),this._group=null,this._handle=null,this._payloadInfo=null),c_(this,"_doDispatchAxisPointer")},a.prototype.doClear=function(){},a.prototype.buildLabel=function(t,e,o){return{x:t[o=o||0],y:t[1-o],width:e[o],height:e[1-o]}},a}();function kB(a,t,e,o){DB($h(e).lastProp,o)||($h(e).lastProp=o,t?Ut(e,o,a):(e.stopAnimation(),e.attr(o)))}function DB(a,t){if(Ke(a)&&Ke(t)){var e=!0;return q(t,function(o,u){e=e&&DB(a[u],o)}),!!e}return a===t}function xB(a,t){a[t.get(["label","show"])?"show":"hide"]()}function iE(a){return{x:a.x||0,y:a.y||0,rotation:a.rotation||0}}function mi(a,t,e){var o=t.get("z"),u=t.get("zlevel");a&&a.traverse(function(f){"group"!==f.type&&(null!=o&&(f.z=o),null!=u&&(f.zlevel=u),f.silent=e)})}var Y1=kW;function q1(a){var o,t=a.get("type"),e=a.getModel(t+"Style");return"line"===t?(o=e.getLineStyle()).fill=null:"shadow"===t&&((o=e.getAreaStyle()).stroke=null),o}function TB(a,t,e,o,u){var d=xW(e.get("value"),t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),h=e.getModel("label"),v=jd(h.get("padding")||0),g=h.getFont(),m=pd(d,g),y=u.position,b=m.width+v[1]+v[3],C=m.height+v[0]+v[2],S=u.align;"right"===S&&(y[0]-=b),"center"===S&&(y[0]-=b/2);var k=u.verticalAlign;"bottom"===k&&(y[1]-=C),"middle"===k&&(y[1]-=C/2),function DW(a,t,e,o){var u=o.getWidth(),f=o.getHeight();a[0]=Math.min(a[0]+t,u)-t,a[1]=Math.min(a[1]+e,f)-e,a[0]=Math.max(a[0],0),a[1]=Math.max(a[1],0)}(y,b,C,o);var D=h.get("backgroundColor");(!D||"auto"===D)&&(D=t.get(["axisLine","lineStyle","color"])),a.label={x:y[0],y:y[1],style:Cr(h,{text:d,font:g,fill:h.getTextColor(),padding:v,backgroundColor:D}),z2:10}}function xW(a,t,e,o,u){a=t.scale.parse(a);var f=t.scale.getLabel({value:a},{precision:u.precision}),d=u.formatter;if(d){var h={value:ZC(t,{value:a}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};q(o,function(v){var g=e.getSeriesByIndex(v.seriesIndex),y=g&&g.getDataParams(v.dataIndexInside);y&&h.seriesData.push(y)}),Ne(d)?f=d.replace("{value}",f):et(d)&&(f=d(h))}return f}function AB(a,t,e){var o=[1,0,0,1,0,0];return el(o,o,e.rotation),vs(o,o,e.position),Cl([a.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],o)}function TW(a,t,e,o,u,f){var d=ra.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=u.get(["label","margin"]),TB(t,o,u,f,{position:AB(o.axis,a,e),align:d.textAlign,verticalAlign:d.textVerticalAlign})}function aE(a,t,e){return{x1:a[e=e||0],y1:a[1-e],x2:t[e],y2:t[1-e]}}function EB(a,t,e){return{x:a[e=e||0],y:a[1-e],width:t[e],height:t[1-e]}}function PB(a,t,e,o,u,f){return{cx:a,cy:t,r0:e,r:o,startAngle:u,endAngle:f,clockwise:!0}}var OB=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return de(t,a),t.prototype.makeElOption=function(e,o,u,f,d){var h=u.axis,v=h.grid,g=f.get("type"),m=IB(v,h).getOtherAxis(h).getGlobalExtent(),y=h.toGlobalCoord(h.dataToCoord(o,!0));if(g&&"none"!==g){var b=q1(f),C=AW[g](h,y,m);C.style=b,e.graphicKey=C.type,e.pointer=C}TW(o,e,Th(v.model,u),u,f,d)},t.prototype.getHandleTransform=function(e,o,u){var f=Th(o.axis.grid.model,o,{labelInside:!1});f.labelMargin=u.get(["handle","margin"]);var d=AB(o.axis,e,f);return{x:d[0],y:d[1],rotation:f.rotation+(f.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,o,u,f){var d=u.axis,h=d.grid,v=d.getGlobalExtent(!0),g=IB(h,d).getOtherAxis(d).getGlobalExtent(),m="x"===d.dim?0:1,y=[e.x,e.y];y[m]+=o[m],y[m]=Math.min(v[1],y[m]),y[m]=Math.max(v[0],y[m]);var b=(g[1]+g[0])/2,C=[b,b];return C[m]=y[m],{x:y[0],y:y[1],rotation:e.rotation,cursorPoint:C,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][m]}},t}(Y1);function IB(a,t){var e={};return e[t.dim+"AxisIndex"]=t.index,a.getCartesian(e)}var AW={line:function(t,e,o){return{type:"Line",subPixelOptimize:!0,shape:aE([e,o[0]],[e,o[1]],RB(t))}},shadow:function(t,e,o){var u=Math.max(1,t.getBandWidth());return{type:"Rect",shape:EB([e-u/2,o[0]],[u,o[1]-o[0]],RB(t))}}};function RB(a){return"x"===a.dim?0:1}var EW=OB,vn=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.type="axisPointer",t.defaultOption={show:"auto",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}},t}(sn),N$=vn,Yf=Sn(),B$=q;function Fl(a,t,e){if(!tn.node){var o=t.getZr();Yf(o).records||(Yf(o).records={}),function yc(a,t){function e(o,u){a.on(o,function(f){var d=function LB(a){var t={showTip:[],hideTip:[]};return{dispatchAction:function o(u){var f=t[u.type];f?f.push(u):(u.dispatchAction=o,a.dispatchAction(u))},pendings:t}}(t);B$(Yf(a).records,function(h){h&&u(h,f,d.dispatchAction)}),function bc(a,t){var u,e=a.showTip.length,o=a.hideTip.length;e?u=a.showTip[e-1]:o&&(u=a.hideTip[o-1]),u&&(u.dispatchAction=null,t.dispatchAction(u))}(d.pendings,t)})}Yf(a).initialized||(Yf(a).initialized=!0,e("click",wt(X1,"click")),e("mousemove",wt(X1,"mousemove")),e("globalout",Z1))}(o,t),(Yf(o).records[a]||(Yf(o).records[a]={})).handler=e}}function Z1(a,t,e){a.handler("leave",null,e)}function X1(a,t,e,o){t.handler(a,e,o)}function K1(a,t){if(!tn.node){var e=t.getZr();(Yf(e).records||{})[a]&&(Yf(e).records[a]=null)}}var PW=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.render=function(e,o,u){var f=o.getComponent("tooltip"),d=e.get("triggerOn")||f&&f.get("triggerOn")||"mousemove|click";Fl("axisPointer",u,function(h,v,g){"none"!==d&&("leave"===h||d.indexOf(h)>=0)&&g({type:"updateAxisPointer",currTrigger:h,x:v&&v.offsetX,y:v&&v.offsetY})})},t.prototype.remove=function(e,o){K1("axisPointer",o)},t.prototype.dispose=function(e,o){K1("axisPointer",o)},t.type="axisPointer",t}(Ze),oa=PW;function qf(a,t){var u,e=[],o=a.seriesIndex;if(null==o||!(u=t.getSeriesByIndex(o)))return{point:[]};var f=u.getData(),d=wd(f,a);if(null==d||d<0||Ce(d))return{point:[]};var h=f.getItemGraphicEl(d),v=u.coordinateSystem;if(u.getTooltipPosition)e=u.getTooltipPosition(d)||[];else if(v&&v.dataToPoint)if(a.isStacked){var g=v.getBaseAxis(),y=v.getOtherAxis(g).dim,C="x"===y||"radius"===y?1:0,S=f.mapDimension(g.dim),k=[];k[C]=f.get(S,d),k[1-C]=f.get(f.getCalculationInfo("stackResultDimension"),d),e=v.dataToPoint(k)||[]}else e=v.dataToPoint(f.getValues(Me(v.dimensions,function(x){return f.mapDimension(x)}),d))||[];else if(h){var D=h.getBoundingRect().clone();D.applyTransform(h.transform),e=[D.x+D.width/2,D.y+D.height/2]}return{point:e,el:h}}var FB=Sn();function oE(a,t,e){var o=a.currTrigger,u=[a.x,a.y],f=a,d=a.dispatchAction||ze(e.dispatchAction,e),h=t.getComponent("axisPointer").coordSysAxesInfo;if(h){sE(u)&&(u=qf({seriesIndex:f.seriesIndex,dataIndex:f.dataIndex},t).point);var v=sE(u),g=f.axesInfo,m=h.axesInfo,y="leave"===o||sE(u),b={},C={},S={list:[],map:{}},k={showPointer:wt(IW,C),showTooltip:wt(RW,S)};q(h.coordSysMap,function(x,T){var E=v||x.containPoint(u);q(h.coordSysAxesInfo[T],function(P,V){var N=P.axis,H=function z$(a,t){for(var e=0;e<(a||[]).length;e++){var o=a[e];if(t.axis.dim===o.axisDim&&t.axis.model.componentIndex===o.axisIndex)return o}}(g,P);if(!y&&E&&(!g||H)){var j=H&&H.value;null==j&&!v&&(j=N.pointToData(u)),null!=j&&NB(P,j,k,!1,b)}})});var D={};return q(m,function(x,T){var E=x.linkGroup;E&&!C[T]&&q(E.axesInfo,function(P,V){var N=C[V];if(P!==x&&N){var H=N.value;E.mapper&&(H=x.axis.scale.parse(E.mapper(H,lg(P),lg(x)))),D[x.key]=H}})}),q(D,function(x,T){NB(m[T],x,k,!0,b)}),function V$(a,t,e){var o=e.axesInfo=[];q(t,function(u,f){var d=u.axisPointerModel.option,h=a[f];h?(!u.useHandle&&(d.status="show"),d.value=h.value,d.seriesDataIndices=(h.payloadBatch||[]).slice()):!u.useHandle&&(d.status="hide"),"show"===d.status&&o.push({axisDim:u.axis.dim,axisIndex:u.axis.model.componentIndex,value:d.value})})}(C,m,b),function qy(a,t,e,o){if(!sE(t)&&a.list.length){var u=((a.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};o({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:u.dataIndexInside,dataIndex:u.dataIndex,seriesIndex:u.seriesIndex,dataByCoordSys:a.list})}else o({type:"hideTip"})}(S,u,a,d),function H$(a,t,e){var o=e.getZr(),u="axisPointerLastHighlights",f=FB(o)[u]||{},d=FB(o)[u]={};q(a,function(g,m){var y=g.axisPointerModel.option;"show"===y.status&&q(y.seriesDataIndices,function(b){d[b.seriesIndex+" | "+b.dataIndex]=b})});var h=[],v=[];q(f,function(g,m){!d[m]&&v.push(g)}),q(d,function(g,m){!f[m]&&h.push(g)}),v.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:v}),h.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:h})}(m,0,e),b}}function NB(a,t,e,o,u){var f=a.axis;if(!f.scale.isBlank()&&f.containData(t)){if(!a.involveSeries)return void e.showPointer(a,t);var d=function OW(a,t){var e=t.axis,o=e.dim,u=a,f=[],d=Number.MAX_VALUE,h=-1;return q(t.seriesModels,function(v,g){var y,b,m=v.getData().mapDimensionsAll(o);if(v.getAxisTooltipData){var C=v.getAxisTooltipData(m,a,e);b=C.dataIndices,y=C.nestestValue}else{if(!(b=v.getData().indicesOfNearest(m[0],a,"category"===e.type?.5:null)).length)return;y=v.getData().get(m[0],b[0])}if(null!=y&&isFinite(y)){var S=a-y,k=Math.abs(S);k<=d&&((k=0&&h<0)&&(d=k,h=S,u=y,f.length=0),q(b,function(D){f.push({seriesIndex:v.seriesIndex,dataIndexInside:D,dataIndex:v.getData().getRawIndex(D)})}))}}),{payloadBatch:f,snapToValue:u}}(t,a),h=d.payloadBatch,v=d.snapToValue;h[0]&&null==u.seriesIndex&&ve(u,h[0]),!o&&a.snap&&f.containData(v)&&null!=v&&(t=v),e.showPointer(a,t,h),e.showTooltip(a,d,v)}}function IW(a,t,e,o){a[t.key]={value:e,payloadBatch:o}}function RW(a,t,e,o){var u=e.payloadBatch,f=t.axis,d=f.model,h=t.axisPointerModel;if(t.triggerTooltip&&u.length){var v=t.coordSys.model,g=iy(v),m=a.map[g];m||(m=a.map[g]={coordSysId:v.id,coordSysIndex:v.componentIndex,coordSysType:v.type,coordSysMainType:v.mainType,dataByAxis:[]},a.list.push(m)),m.dataByAxis.push({axisDim:f.dim,axisIndex:d.componentIndex,axisType:d.type,axisId:d.id,value:o,valueLabelOpt:{precision:h.get(["label","precision"]),formatter:h.get(["label","formatter"])},seriesDataIndices:u.slice()})}}function lg(a){var t=a.axis.model,e={},o=e.axisDim=a.axis.dim;return e.axisIndex=e[o+"AxisIndex"]=t.componentIndex,e.axisName=e[o+"AxisName"]=t.name,e.axisId=e[o+"AxisId"]=t.id,e}function sE(a){return!a||null==a[0]||isNaN(a[0])||null==a[1]||isNaN(a[1])}function Zy(a){Af.registerAxisPointerClass("CartesianAxisPointer",EW),a.registerComponentModel(N$),a.registerComponentView(oa),a.registerPreprocessor(function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!Ce(e)&&(t.axisPointer.link=[e])}}),a.registerProcessor(a.PRIORITY.PROCESSOR.STATISTIC,function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=function CF(a,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function wF(a,t,e){var o=t.getComponent("tooltip"),u=t.getComponent("axisPointer"),f=u.get("link",!0)||[],d=[];q(e.getCoordinateSystems(),function(h){if(h.axisPointerEnabled){var v=iy(h.model),g=a.coordSysAxesInfo[v]={};a.coordSysMap[v]=h;var y=h.model.getModel("tooltip",o);if(q(h.getAxes(),wt(k,!1,null)),h.getTooltipAxes&&o&&y.get("show")){var b="axis"===y.get("trigger"),C="cross"===y.get(["axisPointer","type"]),S=h.getTooltipAxes(y.get(["axisPointer","axis"]));(b||C)&&q(S.baseAxes,wt(k,!C||"cross",b)),C&&q(S.otherAxes,wt(k,"cross",!1))}}function k(D,x,T){var E=T.model.getModel("axisPointer",u),P=E.get("show");if(P&&("auto"!==P||D||kw(E))){null==x&&(x=E.get("triggerTooltip")),E=D?function SF(a,t,e,o,u,f){var d=t.getModel("axisPointer"),v={};q(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],function(b){v[b]=ot(d.get(b))}),v.snap="category"!==a.type&&!!f,"cross"===d.get("type")&&(v.type="line");var g=v.label||(v.label={});if(null==g.show&&(g.show=!1),"cross"===u){var m=d.get(["label","show"]);if(g.show=null==m||m,!f){var y=v.lineStyle=d.get("crossStyle");y&&rt(g,y.textStyle)}}return a.model.getModel("axisPointer",new Kn(v,e,o))}(T,y,u,t,D,x):E;var V=E.get("snap"),N=iy(T.model),H=x||V||"category"===T.type,j=a.axesInfo[N]={key:N,axis:T,coordSys:h,axisPointerModel:E,triggerTooltip:x,involveSeries:H,snap:V,useHandle:kw(E),seriesModels:[],linkGroup:null};g[N]=j,a.seriesInvolved=a.seriesInvolved||H;var Z=function ya(a,t){for(var e=t.model,o=t.dim,u=0;uD?"left":"right",y=Math.abs(g[1]-x)/k<.3?"middle":g[1]>x?"top":"bottom"}return{position:g,align:m,verticalAlign:y}}(o,u,0,v,f.get(["label","margin"]));TB(e,u,f,d,D)},t}(Y1),VB={line:function(t,e,o,u){return"angle"===t.dim?{type:"Line",shape:aE(e.coordToPoint([u[0],o]),e.coordToPoint([u[1],o]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:o}}},shadow:function(t,e,o,u){var f=Math.max(1,t.getBandWidth()),d=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:PB(e.cx,e.cy,u[0],u[1],(-o-f/2)*d,(f/2-o)*d)}:{type:"Sector",shape:PB(e.cx,e.cy,o-f/2,o+f/2,0,2*Math.PI)}}},HB=LW,zB=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.findAxisModel=function(e){var o;return this.ecModel.eachComponent(e,function(f){f.getCoordSysModel()===this&&(o=f)},this),o},t.type="polar",t.dependencies=["radiusAxis","angleAxis"],t.defaultOption={z:0,center:["50%","50%"],radius:"80%"},t}(sn),FW=zB,uE=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return de(t,a),t.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ii).models[0]},t.type="polarAxis",t}(sn);Ir(uE,wf);var GB=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.type="angleAxis",t}(uE),Nl=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.type="radiusAxis",t}(uE),Cc=function(a){function t(e,o){return a.call(this,"radius",e,o)||this}return de(t,a),t.prototype.pointToData=function(e,o){return this.polar.pointToData(e,o)["radius"===this.dim?0:1]},t}(Fa);Cc.prototype.dataToRadius=Fa.prototype.dataToCoord,Cc.prototype.radiusToData=Fa.prototype.coordToData;var NW=Cc,BW=Sn(),Xy=function(a){function t(e,o){return a.call(this,"angle",e,o||[0,360])||this}return de(t,a),t.prototype.pointToData=function(e,o){return this.polar.pointToData(e,o)["radius"===this.dim?0:1]},t.prototype.calculateCategoryInterval=function(){var e=this,o=e.getLabelModel(),u=e.scale,f=u.getExtent(),d=u.count();if(f[1]-f[0]<1)return 0;var h=f[0],v=e.dataToCoord(h+1)-e.dataToCoord(h),g=Math.abs(v),m=pd(null==h?"":h+"",o.getFont(),"center","top"),b=Math.max(m.height,7)/g;isNaN(b)&&(b=1/0);var C=Math.max(0,Math.floor(b)),S=BW(e.model),k=S.lastAutoInterval,D=S.lastTickCount;return null!=k&&null!=D&&Math.abs(k-C)<=1&&Math.abs(D-d)<=1&&k>C?C=k:(S.lastTickCount=d,S.lastAutoInterval=C),C},t}(Fa);Xy.prototype.dataToAngle=Fa.prototype.dataToCoord,Xy.prototype.angleToData=Fa.prototype.coordToData;var G$=Xy,VW=["radius","angle"],U$=function(){function a(t){this.dimensions=VW,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new NW,this._angleAxis=new G$,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return a.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},a.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},a.prototype.getAxis=function(t){return this["_"+t+"Axis"]},a.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},a.prototype.getAxesByScale=function(t){var e=[],o=this._angleAxis,u=this._radiusAxis;return o.scale.type===t&&e.push(o),u.scale.type===t&&e.push(u),e},a.prototype.getAngleAxis=function(){return this._angleAxis},a.prototype.getRadiusAxis=function(){return this._radiusAxis},a.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},a.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},a.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},a.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},a.prototype.pointToData=function(t,e){var o=this.pointToCoord(t);return[this._radiusAxis.radiusToData(o[0],e),this._angleAxis.angleToData(o[1],e)]},a.prototype.pointToCoord=function(t){var e=t[0]-this.cx,o=t[1]-this.cy,u=this.getAngleAxis(),f=u.getExtent(),d=Math.min(f[0],f[1]),h=Math.max(f[0],f[1]);u.inverse?d=h-360:h=d+360;var v=Math.sqrt(e*e+o*o);e/=v,o/=v;for(var g=Math.atan2(-o,e)/Math.PI*180,m=gh;)g+=360*m;return[v,g]},a.prototype.coordToPoint=function(t){var e=t[0],o=t[1]/180*Math.PI;return[Math.cos(o)*e+this.cx,-Math.sin(o)*e+this.cy]},a.prototype.getArea=function(){var t=this.getAngleAxis(),o=this.getRadiusAxis().getExtent().slice();o[0]>o[1]&&o.reverse();var u=t.getExtent(),f=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:o[0],r:o[1],startAngle:-u[0]*f,endAngle:-u[1]*f,clockwise:t.inverse,contain:function(h,v){var g=h-this.cx,m=v-this.cy,y=g*g+m*m-1e-4,b=this.r,C=this.r0;return y<=b*b&&y>=C*C}}},a.prototype.convertToPixel=function(t,e,o){return $1(e)===this?this.dataToPoint(o):null},a.prototype.convertFromPixel=function(t,e,o){return $1(e)===this?this.pointToData(o):null},a}();function $1(a){var t=a.seriesModel,e=a.polarModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}var j$=U$;function UB(a,t){var e=this,o=e.getAngleAxis(),u=e.getRadiusAxis();if(o.scale.setExtent(1/0,-1/0),u.scale.setExtent(1/0,-1/0),a.eachSeries(function(h){if(h.coordinateSystem===e){var v=h.getData();q(tc(v,"radius"),function(g){u.scale.unionExtentFromData(v,g)}),q(tc(v,"angle"),function(g){o.scale.unionExtentFromData(v,g)})}}),$o(o.scale,o.model),$o(u.scale,u.model),"category"===o.type&&!o.onBand){var f=o.getExtent(),d=360/o.scale.count();o.inverse?f[1]+=d:f[1]-=d,o.setExtent(f[0],f[1])}}function Pi(a,t){if(a.type=t.get("type"),a.scale=H_(t),a.onBand=t.get("boundaryGap")&&"category"===a.type,a.inverse=t.get("inverse"),function zW(a){return"angleAxis"===a.mainType}(t)){a.inverse=a.inverse!==t.get("clockwise");var e=t.get("startAngle");a.setExtent(e,e+(a.inverse?-360:360))}t.axis=a,a.model=t}var cE={dimensions:VW,create:function(t,e){var o=[];return t.eachComponent("polar",function(u,f){var d=new j$(f+"");d.update=UB;var h=d.getRadiusAxis(),v=d.getAngleAxis(),g=u.findAxisModel("radiusAxis"),m=u.findAxisModel("angleAxis");Pi(h,g),Pi(v,m),function HW(a,t,e){var o=t.get("center"),u=e.getWidth(),f=e.getHeight();a.cx=Ie(o[0],u),a.cy=Ie(o[1],f);var d=a.getRadiusAxis(),h=Math.min(u,f)/2,v=t.get("radius");null==v?v=[0,"100%"]:Ce(v)||(v=[0,v]);var g=[Ie(v[0],h),Ie(v[1],h)];d.inverse?d.setExtent(g[1],g[0]):d.setExtent(g[0],g[1])}(d,u,e),o.push(d),u.coordinateSystem=d,d.model=u}),t.eachSeries(function(u){if("polar"===u.get("coordinateSystem")){var f=u.getReferringComponents("polar",ii).models[0];u.coordinateSystem=f.coordinateSystem}}),o}},jB=cE,Q1=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function J1(a,t,e){t[1]>t[0]&&(t=t.slice().reverse());var o=a.coordToPoint([t[0],e]),u=a.coordToPoint([t[1],e]);return{x1:o[0],y1:o[1],x2:u[0],y2:u[1]}}function ug(a){return a.getRadiusAxis().inverse?0:1}function WB(a){var t=a[0],e=a[a.length-1];t&&e&&Math.abs(Math.abs(t.coord-e.coord)-360)<1e-4&&a.pop()}var W$=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="PolarAxisPointer",e}return de(t,a),t.prototype.render=function(e,o){if(this.group.removeAll(),e.get("show")){var u=e.axis,f=u.polar,d=f.getRadiusAxis().getExtent(),h=u.getTicksCoords(),v=u.getMinorTicksCoords(),g=Me(u.getViewLabels(),function(m){m=ot(m);var y=u.scale,b="ordinal"===y.type?y.getRawOrdinalNumber(m.tickValue):m.tickValue;return m.coord=u.dataToCoord(b),m});WB(g),WB(h),q(Q1,function(m){e.get([m,"show"])&&(!u.scale.isBlank()||"axisLine"===m)&&GW[m](this.group,e,f,h,v,d,g)},this)}},t.type="angleAxis",t}(Af),GW={axisLine:function(t,e,o,u,f,d){var m,h=e.getModel(["axisLine","lineStyle"]),v=ug(o),g=v?0:1;(m=0===d[g]?new ks({shape:{cx:o.cx,cy:o.cy,r:d[v]},style:h.getLineStyle(),z2:1,silent:!0}):new e_({shape:{cx:o.cx,cy:o.cy,r:d[v],r0:d[g]},style:h.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(m)},axisTick:function(t,e,o,u,f,d){var h=e.getModel("axisTick"),v=(h.get("inside")?-1:1)*h.get("length"),g=d[ug(o)],m=Me(u,function(y){return new Nr({shape:J1(o,[g,g+v],y.coord)})});t.add(Mo(m,{style:rt(h.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,o,u,f,d){if(f.length){for(var h=e.getModel("axisTick"),v=e.getModel("minorTick"),g=(h.get("inside")?-1:1)*v.get("length"),m=d[ug(o)],y=[],b=0;bT?"left":"right",V=Math.abs(x[1]-E)/D<.3?"middle":x[1]>E?"top":"bottom";if(v&&v[k]){var N=v[k];Ke(N)&&N.textStyle&&(S=new Kn(N.textStyle,g,g.ecModel))}var H=new dn({silent:ra.isLabelSilent(e),style:Cr(S,{x:x[0],y:x[1],fill:S.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:b.formattedLabel,align:P,verticalAlign:V})});if(t.add(H),y){var j=ra.makeAxisEventDataBase(e);j.targetType="axisLabel",j.value=b.rawLabel,vt(H).eventData=j}},this)},splitLine:function(t,e,o,u,f,d){var v=e.getModel("splitLine").getModel("lineStyle"),g=v.get("color"),m=0;g=g instanceof Array?g:[g];for(var y=[],b=0;b=0?"p":"n",ee=H;V&&(o[m][X]||(o[m][X]={p:H,n:H}),ee=o[m][X][J]);var re=void 0,ie=void 0,ce=void 0,me=void 0;if("radius"===S.dim){var pe=S.dataToCoord(W)-H,_e=v.dataToCoord(X);Math.abs(pe)=me})}}})},XW={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},KW={splitNumber:5},_i=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.type="polar",t}(Ze);function jr(a,t){t=t||{};var o=a.axis,u={},f=o.position,d=o.orient,h=a.coordinateSystem.getRect(),v=[h.x,h.x+h.width,h.y,h.y+h.height],g={horizontal:{top:v[2],bottom:v[3]},vertical:{left:v[0],right:v[1]}};u.position=["vertical"===d?g.vertical[f]:v[0],"horizontal"===d?g.horizontal[f]:v[3]],u.rotation=Math.PI/2*{horizontal:0,vertical:1}[d],u.labelDirection=u.tickDirection=u.nameDirection={top:-1,bottom:1,right:1,left:-1}[f],a.get(["axisTick","inside"])&&(u.tickDirection=-u.tickDirection),Ui(t.labelInside,a.get(["axisLabel","inside"]))&&(u.labelDirection=-u.labelDirection);var b=t.rotate;return null==b&&(b=a.get(["axisLabel","rotate"])),u.labelRotation="top"===f?-b:b,u.z2=1,u}var li=["axisLine","axisTickLabel","axisName"],ZB=["splitArea","splitLine"],$W=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="SingleAxisPointer",e}return de(t,a),t.prototype.render=function(e,o,u,f){var d=this.group;d.removeAll();var h=this._axisGroup;this._axisGroup=new ct;var v=jr(e),g=new ra(e,v);q(li,g.add,g),d.add(this._axisGroup),d.add(g.getGroup()),q(ZB,function(m){e.get([m,"show"])&&QW[m](this,this.group,this._axisGroup,e)},this),l_(h,this._axisGroup,e),a.prototype.render.call(this,e,o,u,f)},t.prototype.remove=function(){Ef(this)},t.type="singleAxis",t}(Af),QW={splitLine:function(t,e,o,u){var f=u.axis;if(!f.scale.isBlank()){var d=u.getModel("splitLine"),h=d.getModel("lineStyle"),v=h.get("color");v=v instanceof Array?v:[v];for(var g=u.coordinateSystem.getRect(),m=f.isHorizontal(),y=[],b=0,C=f.getTicksCoords({tickModel:d}),S=[],k=[],D=0;D=e.y&&t[1]<=e.y+e.height:o.contain(o.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},a.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},a.prototype.dataToPoint=function(t){var e=this.getAxis(),o=this.getRect(),u=[],f="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),u[f]=e.toGlobalCoord(e.dataToCoord(+t)),u[1-f]=0===f?o.y+o.height/2:o.x+o.width/2,u},a.prototype.convertToPixel=function(t,e,o){return cg(e)===this?this.dataToPoint(o):null},a.prototype.convertFromPixel=function(t,e,o){return cg(e)===this?this.pointToData(o):null},a}();function cg(a){var t=a.seriesModel,e=a.singleAxisModel;return e&&e.coordinateSystem||t&&t.coordinateSystem}var tS=qn,$B={create:function Gn(a,t){var e=[];return a.eachComponent("singleAxis",function(o,u){var f=new tS(o,a,t);f.name="single_"+u,f.resize(o,t),o.coordinateSystem=f,e.push(f)}),a.eachSeries(function(o){if("singleAxis"===o.get("coordinateSystem")){var u=o.getReferringComponents("singleAxis",ii).models[0];o.coordinateSystem=u&&u.coordinateSystem}}),e},dimensions:KB},t9=$B,QB=["x","y"],n9=["width","height"],fg=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return de(t,a),t.prototype.makeElOption=function(e,o,u,f,d){var h=u.axis,v=h.coordinateSystem,g=nS(v,1-za(h)),m=v.dataToPoint(o)[0],y=f.get("type");if(y&&"none"!==y){var b=q1(f),C=JB[y](h,m,g);C.style=b,e.graphicKey=C.type,e.pointer=C}TW(o,e,jr(u),u,f,d)},t.prototype.getHandleTransform=function(e,o,u){var f=jr(o,{labelInside:!1});f.labelMargin=u.get(["handle","margin"]);var d=AB(o.axis,e,f);return{x:d[0],y:d[1],rotation:f.rotation+(f.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,o,u,f){var d=u.axis,h=d.coordinateSystem,v=za(d),g=nS(h,v),m=[e.x,e.y];m[v]+=o[v],m[v]=Math.min(g[1],m[v]),m[v]=Math.max(g[0],m[v]);var y=nS(h,1-v),b=(y[1]+y[0])/2,C=[b,b];return C[v]=m[v],{x:m[0],y:m[1],rotation:e.rotation,cursorPoint:C,tooltipOption:{verticalAlign:"middle"}}},t}(Y1),JB={line:function(t,e,o){return{type:"Line",subPixelOptimize:!0,shape:aE([e,o[0]],[e,o[1]],za(t))}},shadow:function(t,e,o){var u=t.getBandWidth();return{type:"Rect",shape:EB([e-u/2,o[0]],[u,o[1]-o[0]],za(t))}}};function za(a){return a.isHorizontal()?0:1}function nS(a,t){var e=a.getRect();return[e[QB[t]],e[QB[t]]+e[n9[t]]]}var r9=fg,eV=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.type="single",t}(Ze),Ga=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.init=function(e,o,u){var f=rv(e);a.prototype.init.apply(this,arguments),tV(e,f)},t.prototype.mergeOption=function(e){a.prototype.mergeOption.apply(this,arguments),tV(this.option,e)},t.prototype.getCellSize=function(){return this.option.cellSize},t.type="calendar",t.defaultOption={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%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},t}(sn);function tV(a,t){var o,e=a.cellSize;1===(o=Ce(e)?e:a.cellSize=[e,e]).length&&(o[1]=o[0]);var u=Me([0,1],function(f){return function NZ(a,t){return null!=a[Yd[t][0]]||null!=a[Yd[t][1]]&&null!=a[Yd[t][2]]}(t,f)&&(o[f]="auto"),null!=o[f]&&"auto"!==o[f]});Zd(a,t,{type:"box",ignoreSize:u})}var nV=Ga,i9=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.render=function(e,o,u){var f=this.group;f.removeAll();var d=e.coordinateSystem,h=d.getRangeInfo(),v=d.getOrient(),g=o.getLocaleModel();this._renderDayRect(e,h,f),this._renderLines(e,h,v,f),this._renderYearText(e,h,v,f),this._renderMonthText(e,g,v,f),this._renderWeekText(e,g,h,v,f)},t.prototype._renderDayRect=function(e,o,u){for(var f=e.coordinateSystem,d=e.getModel("itemStyle").getItemStyle(),h=f.getCellWidth(),v=f.getCellHeight(),g=o.start.time;g<=o.end.time;g=f.getNextNDay(g,1).time){var m=f.dataToRect([g],!1).tl,y=new fn({shape:{x:m[0],y:m[1],width:h,height:v},cursor:"default",style:d});u.add(y)}},t.prototype._renderLines=function(e,o,u,f){var d=this,h=e.coordinateSystem,v=e.getModel(["splitLine","lineStyle"]).getLineStyle(),g=e.get(["splitLine","show"]),m=v.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var y=o.start,b=0;y.time<=o.end.time;b++){S(y.formatedDate),0===b&&(y=h.getDateInfo(o.start.y+"-"+o.start.m));var C=y.date;C.setMonth(C.getMonth()+1),y=h.getDateInfo(C)}function S(k){d._firstDayOfMonth.push(h.getDateInfo(k)),d._firstDayPoints.push(h.dataToRect([k],!1).tl);var D=d._getLinePointsOfOneWeek(e,k,u);d._tlpoints.push(D[0]),d._blpoints.push(D[D.length-1]),g&&d._drawSplitline(D,v,f)}S(h.getNextNDay(o.end.time,1).formatedDate),g&&this._drawSplitline(d._getEdgesPoints(d._tlpoints,m,u),v,f),g&&this._drawSplitline(d._getEdgesPoints(d._blpoints,m,u),v,f)},t.prototype._getEdgesPoints=function(e,o,u){var f=[e[0].slice(),e[e.length-1].slice()],d="horizontal"===u?0:1;return f[0][d]=f[0][d]-o/2,f[1][d]=f[1][d]+o/2,f},t.prototype._drawSplitline=function(e,o,u){var f=new Ra({z2:20,shape:{points:e},style:o});u.add(f)},t.prototype._getLinePointsOfOneWeek=function(e,o,u){for(var f=e.coordinateSystem,d=f.getDateInfo(o),h=[],v=0;v<7;v++){var g=f.getNextNDay(d.time,v),m=f.dataToRect([g.time],!1);h[2*g.day]=m.tl,h[2*g.day+1]=m["horizontal"===u?"bl":"tr"]}return h},t.prototype._formatterLabel=function(e,o){return Ne(e)&&e?function b4(a,t,e){return q(t,function(o,u){a=a.replace("{"+u+"}",e?Ka(o):o)}),a}(e,o):et(e)?e(o):o.nameMap},t.prototype._yearTextPositionControl=function(e,o,u,f,d){var h=o[0],v=o[1],g=["center","bottom"];"bottom"===f?(v+=d,g=["center","top"]):"left"===f?h-=d:"right"===f?(h+=d,g=["center","top"]):v-=d;var m=0;return("left"===f||"right"===f)&&(m=Math.PI/2),{rotation:m,x:h,y:v,style:{align:g[0],verticalAlign:g[1]}}},t.prototype._renderYearText=function(e,o,u,f){var d=e.getModel("yearLabel");if(d.get("show")){var h=d.get("margin"),v=d.get("position");v||(v="horizontal"!==u?"top":"left");var g=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],m=(g[0][0]+g[1][0])/2,y=(g[0][1]+g[1][1])/2,b="horizontal"===u?0:1,C={top:[m,g[b][1]],bottom:[m,g[1-b][1]],left:[g[1-b][0],y],right:[g[b][0],y]},S=o.start.y;+o.end.y>+o.start.y&&(S=S+"-"+o.end.y);var k=d.get("formatter"),x=this._formatterLabel(k,{start:o.start.y,end:o.end.y,nameMap:S}),T=new dn({z2:30,style:Cr(d,{text:x})});T.attr(this._yearTextPositionControl(T,C[v],u,v,h)),f.add(T)}},t.prototype._monthTextPositionControl=function(e,o,u,f,d){var h="left",v="top",g=e[0],m=e[1];return"horizontal"===u?(m+=d,o&&(h="center"),"start"===f&&(v="bottom")):(g+=d,o&&(v="middle"),"start"===f&&(h="right")),{x:g,y:m,align:h,verticalAlign:v}},t.prototype._renderMonthText=function(e,o,u,f){var d=e.getModel("monthLabel");if(d.get("show")){var h=d.get("nameMap"),v=d.get("margin"),g=d.get("position"),m=d.get("align"),y=[this._tlpoints,this._blpoints];(!h||Ne(h))&&(h&&(o=Rm(h)||o),h=o.get(["time","monthAbbr"])||[]);var b="start"===g?0:1,C="horizontal"===u?0:1;v="start"===g?-v:v;for(var S="center"===m,k=0;k=u.start.time&&o.timeh.end.time&&e.reverse(),e},a.prototype._getRangeInfo=function(t){var o,e=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];e[0].time>e[1].time&&(o=!0,e.reverse());var u=Math.floor(e[1].time/pE)-Math.floor(e[0].time/pE)+1,f=new Date(e[0].time),d=f.getDate(),h=e[1].date.getDate();f.setDate(d+u-1);var v=f.getDate();if(v!==h)for(var g=f.getTime()-e[1].time>0?1:-1;(v=f.getDate())!==h&&(f.getTime()-e[1].time)*g>0;)u-=g,f.setDate(v-g);var m=Math.floor((u+e[0].day+6)/7),y=o?1-m:m-1;return o&&e.reverse(),{range:[e[0].formatedDate,e[1].formatedDate],start:e[0],end:e[1],allDay:u,weeks:m,nthWeek:y,fweek:e[0].day,lweek:e[1].day}},a.prototype._getDateByWeeksAndDay=function(t,e,o){var u=this._getRangeInfo(o);if(t>u.weeks||0===t&&eu.lweek)return null;var f=7*(t-1)-u.fweek+e,d=new Date(u.start.time);return d.setDate(+u.start.d+f),this.getDateInfo(d)},a.create=function(t,e){var o=[];return t.eachComponent("calendar",function(u){var f=new a(u,t,e);o.push(f),u.coordinateSystem=f}),t.eachSeries(function(u){"calendar"===u.get("coordinateSystem")&&(u.coordinateSystem=o[u.get("calendarIndex")||0])}),o},a.dimensions=["time","value"],a}();function wc(a){var t=a.calendarModel,e=a.seriesModel;return t?t.coordinateSystem:e?e.coordinateSystem:null}var rV=yi;function iV(a,t){var e;return q(t,function(o){null!=a[o]&&"auto"!==a[o]&&(e=!0)}),e}var vE=["transition","enterFrom","leaveTo"],aV=vE.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function Ky(a,t,e){if(e&&(!a[e]&&t[e]&&(a[e]={}),a=a[e],t=t[e]),a&&t)for(var o=e?vE:aV,u=0;u=0;m--){var y,b,C;if(C=null!=(b=wi((y=u[m]).id,null))?d.get(b):null){x=ns(S=C.parent);var S,E={},P=Ok(C,y,S===f?{width:h,height:v}:{width:x.width,height:x.height},null,{hv:y.hv,boundingMode:y.bounding},E);if(!ns(C).isNew&&P){for(var V=y.transition,N={},H=0;H=0)?N[j]=Z:C[j]=Z}Ut(C,N,e,0)}else C.attr(E)}}},t.prototype._clear=function(){var e=this,o=this._elMap;o.each(function(u){$y(u,ns(u).option,o,e._lastGraphicModel)}),this._elMap=$e()},t.prototype.dispose=function(){this._clear()},t.type="graphic",t}(Ze);function dg(a){var e=new(je(gE,a)?gE[a]:uC(a))({});return ns(e).type=a,e}function mE(a,t,e,o){var u=dg(e);return t.add(u),o.set(a,u),ns(u).id=a,ns(u).isNew=!0,u}function $y(a,t,e,o){a&&a.parent&&("group"===a.type&&a.traverse(function(f){$y(f,t,e,o)}),ig(a,t,o),e.removeKey(ns(a).id))}function _E(a,t,e,o){if(!a.isGroup){var u=a;u.cursor=Ft(t.cursor,_s.prototype.cursor),u.z=Ft(t.z,e||0),u.zlevel=Ft(t.zlevel,o||0);var f=t.z2;null!=f&&(u.z2=f||0)}q(Zt(t),function(d){var h=t[d];0===d.indexOf("on")&&et(h)&&(a[d]=h)}),a.draggable=t.draggable,null!=t.name&&(a.name=t.name),null!=t.id&&(a.id=t.id)}var yE=["x","y","radius","angle","single"],bE=["cartesian2d","polar","singleAxis"];function yu(a){return a+"Axis"}function iS(a){var t=a.ecModel,e={infoList:[],infoMap:$e()};return a.eachTargetAxis(function(o,u){var f=t.getComponent(yu(o),u);if(f){var d=f.getCoordSysModel();if(d){var h=d.uid,v=e.infoMap.get(h);v||(e.infoList.push(v={model:d,axisModels:[]}),e.infoMap.set(h,v)),v.axisModels.push(f)}}}),e}var hg=function(){function a(){this.indexList=[],this.indexMap=[]}return a.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},a}(),hV=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e._autoThrottle=!0,e._noTarget=!0,e._rangePropMode=["percent","percent"],e}return de(t,a),t.prototype.init=function(e,o,u){var f=CE(e);this.settledOption=f,this.mergeDefaultAndTheme(e,u),this._doInit(f)},t.prototype.mergeOption=function(e){var o=CE(e);Dt(this.option,e,!0),Dt(this.settledOption,o,!0),this._doInit(o)},t.prototype._doInit=function(e){var o=this.option;this._setDefaultThrottle(e),this._updateRangeUse(e);var u=this.settledOption;q([["start","startValue"],["end","endValue"]],function(f,d){"value"===this._rangePropMode[d]&&(o[f[0]]=u[f[0]]=null)},this),this._resetTarget()},t.prototype._resetTarget=function(){var e=this.get("orient",!0),o=this._targetAxisInfoMap=$e();this._fillSpecifiedTargetAxis(o)?this._orient=e||this._makeAutoOrientByTargetAxis():(this._orient=e||"horizontal",this._fillAutoTargetAxisByOrient(o,this._orient)),this._noTarget=!0,o.each(function(f){f.indexList.length&&(this._noTarget=!1)},this)},t.prototype._fillSpecifiedTargetAxis=function(e){var o=!1;return q(yE,function(u){var f=this.getReferringComponents(yu(u),Pz);if(f.specified){o=!0;var d=new hg;q(f.models,function(h){d.add(h.componentIndex)}),e.set(u,d)}},this),o},t.prototype._fillAutoTargetAxisByOrient=function(e,o){var u=this.ecModel,f=!0;if(f){var d="vertical"===o?"y":"x";v(u.findComponents({mainType:d+"Axis"}),d)}function v(g,m){var y=g[0];if(y){var b=new hg;if(b.add(y.componentIndex),e.set(m,b),f=!1,"x"===m||"y"===m){var C=y.getReferringComponents("grid",ii).models[0];C&&q(g,function(S){y.componentIndex!==S.componentIndex&&C===S.getReferringComponents("grid",ii).models[0]&&b.add(S.componentIndex)})}}}f&&v(u.findComponents({mainType:"singleAxis",filter:function(y){return y.get("orient",!0)===o}}),"single"),f&&q(yE,function(g){if(f){var m=u.findComponents({mainType:yu(g),filter:function(C){return"category"===C.get("type",!0)}});if(m[0]){var y=new hg;y.add(m[0].componentIndex),e.set(g,y),f=!1}}},this)},t.prototype._makeAutoOrientByTargetAxis=function(){var e;return this.eachTargetAxis(function(o){!e&&(e=o)},this),"y"===e?"vertical":"horizontal"},t.prototype._setDefaultThrottle=function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var o=this.ecModel.option;this.option.throttle=o.animation&&o.animationDurationUpdate>0?100:20}},t.prototype._updateRangeUse=function(e){var o=this._rangePropMode,u=this.get("rangeMode");q([["start","startValue"],["end","endValue"]],function(f,d){var h=null!=e[f[0]],v=null!=e[f[1]];h&&!v?o[d]="percent":!h&&v?o[d]="value":u?o[d]=u[d]:h&&(o[d]="percent")})},t.prototype.noTarget=function(){return this._noTarget},t.prototype.getFirstTargetAxisModel=function(){var e;return this.eachTargetAxis(function(o,u){null==e&&(e=this.ecModel.getComponent(yu(o),u))},this),e},t.prototype.eachTargetAxis=function(e,o){this._targetAxisInfoMap.each(function(u,f){q(u.indexList,function(d){e.call(o,f,d)})})},t.prototype.getAxisProxy=function(e,o){var u=this.getAxisModel(e,o);if(u)return u.__dzAxisProxy},t.prototype.getAxisModel=function(e,o){var u=this._targetAxisInfoMap.get(e);if(u&&u.indexMap[o])return this.ecModel.getComponent(yu(e),o)},t.prototype.setRawRange=function(e){var o=this.option,u=this.settledOption;q([["start","startValue"],["end","endValue"]],function(f){(null!=e[f[0]]||null!=e[f[1]])&&(o[f[0]]=u[f[0]]=e[f[0]],o[f[1]]=u[f[1]]=e[f[1]])},this),this._updateRangeUse(e)},t.prototype.setCalculatedRange=function(e){var o=this.option;q(["start","startValue","end","endValue"],function(u){o[u]=e[u]})},t.prototype.getPercentRange=function(){var e=this.findRepresentativeAxisProxy();if(e)return e.getDataPercentWindow()},t.prototype.getValueRange=function(e,o){if(null!=e||null!=o)return this.getAxisProxy(e,o).getDataValueWindow();var u=this.findRepresentativeAxisProxy();return u?u.getDataValueWindow():void 0},t.prototype.findRepresentativeAxisProxy=function(e){if(e)return e.__dzAxisProxy;for(var o,u=this._targetAxisInfoMap.keys(),f=0;f=0}(e)){var o=yu(this._dimName),u=e.getReferringComponents(o,ii).models[0];u&&this._axisIndex===u.componentIndex&&t.push(e)}},this),t},a.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},a.prototype.getMinMaxSpan=function(){return ot(this._minMaxSpan)},a.prototype.calculateDataWindow=function(t){var g,e=this._dataExtent,u=this.getAxisModel().axis.scale,f=this._dataZoomModel.getRangePropMode(),d=[0,100],h=[],v=[];Xf(["start","end"],function(b,C){var S=t[b],k=t[b+"Value"];"percent"===f[C]?(null==S&&(S=d[C]),k=u.parse(wn(S,d,e))):(g=!0,S=wn(k=null==k?e[C]:u.parse(k),e,d)),v[C]=k,h[C]=S}),aS(v),aS(h);var m=this._minMaxSpan;function y(b,C,S,k,D){var x=D?"Span":"ValueSpan";Qv(0,b,S,"all",m["min"+x],m["max"+x]);for(var T=0;T<2;T++)C[T]=wn(b[T],S,k,!0),D&&(C[T]=u.parse(C[T]))}return g?y(v,h,e,d,!1):y(h,v,d,e,!0),{valueWindow:v,percentWindow:h}},a.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function u9(a,t,e){var o=[1/0,-1/0];Xf(e,function(d){!function H8(a,t,e){t&&q(tc(t,e),function(o){var u=t.getApproximateExtent(o);u[0]a[1]&&(a[1]=u[1])})}(o,d.getData(),t)});var u=a.getAxisModel(),f=N8(u.axis.scale,u,o).calculate();return[f.min,f.max]}(this,this._dimName,e),this._updateMinMaxSpan();var o=this.calculateDataWindow(t.settledOption);this._valueWindow=o.valueWindow,this._percentWindow=o.percentWindow,this._setAxisModel()}},a.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var o=this._dimName,u=this.getTargetSeriesModels(),f=t.get("filterMode"),d=this._valueWindow;"none"!==f&&Xf(u,function(v){var g=v.getData(),m=g.mapDimensionsAll(o);if(m.length){if("weakFilter"===f){var y=g.getStore(),b=Me(m,function(C){return g.getDimensionIndex(C)},g);g.filterSelf(function(C){for(var S,k,D,x=0;xd[1];if(E&&!P&&!V)return!0;E&&(D=!0),P&&(S=!0),V&&(k=!0)}return D&&S&&k})}else Xf(m,function(C){if("empty"===f)v.setData(g=g.map(C,function(k){return function h(v){return v>=d[0]&&v<=d[1]}(k)?k:NaN}));else{var S={};S[C]=d,g.selectRange(S)}});Xf(m,function(C){g.setApproximateExtent(d,C)})}})}},a.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,o=this._dataExtent;Xf(["min","max"],function(u){var f=e.get(u+"Span"),d=e.get(u+"ValueSpan");null!=d&&(d=this.getAxisModel().axis.scale.parse(d)),null!=d?f=wn(o[0]+d,o,[0,100],!0):null!=f&&(d=wn(f,[0,100],o,!0)-o[0]),t[u+"Span"]=f,t[u+"ValueSpan"]=d},this)},a.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,o=this._valueWindow;if(e){var u=Ae(o,[0,500]);u=Math.min(u,20);var f=t.axis.scale.rawExtentInfo;0!==e[0]&&f.setDeterminedMinMax("min",+o[0].toFixed(u)),100!==e[1]&&f.setDeterminedMinMax("max",+o[1].toFixed(u)),f.freeze()}},a}(),wE=oS,c9={getTargetSeries:function(t){function e(f){t.eachComponent("dataZoom",function(d){d.eachTargetAxis(function(h,v){var g=t.getComponent(yu(h),v);f(h,v,g,d)})})}e(function(f,d,h,v){h.__dzAxisProxy=null});var o=[];e(function(f,d,h,v){h.__dzAxisProxy||(h.__dzAxisProxy=new wE(f,d,v,t),o.push(h.__dzAxisProxy))});var u=$e();return q(o,function(f){q(f.getTargetSeriesModels(),function(d){u.set(d.uid,d)})}),u},overallReset:function(t,e){t.eachComponent("dataZoom",function(o){o.eachTargetAxis(function(u,f){o.getAxisProxy(u,f).reset(o)}),o.eachTargetAxis(function(u,f){o.getAxisProxy(u,f).filterData(o,e)})}),t.eachComponent("dataZoom",function(o){var u=o.findRepresentativeAxisProxy();if(u){var f=u.getDataPercentWindow(),d=u.getDataValueWindow();o.setCalculatedRange({start:f[0],end:f[1],startValue:d[0],endValue:d[1]})}})}},q$=c9,f9=!1;function gV(a){f9||(f9=!0,a.registerProcessor(a.PRIORITY.PROCESSOR.FILTER,q$),function Z$(a){a.registerAction("dataZoom",function(t,e){q(function dV(a,t){var f,e=$e(),o=[],u=$e();a.eachComponent({mainType:"dataZoom",query:t},function(m){u.get(m.uid)||h(m)});do{f=!1,a.eachComponent("dataZoom",d)}while(f);function d(m){!u.get(m.uid)&&function v(m){var y=!1;return m.eachTargetAxis(function(b,C){var S=e.get(b);S&&S[C]&&(y=!0)}),y}(m)&&(h(m),f=!0)}function h(m){u.set(m.uid,!0),o.push(m),function g(m){m.eachTargetAxis(function(y,b){(e.get(y)||e.set(y,[]))[b]=!0})}(m)}return o}(e,t),function(u){u.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})})})}(a),a.registerSubTypeDefaulter("dataZoom",function(){return"slider"}))}function X$(a){a.registerComponentModel(lo),a.registerComponentView(pr),gV(a)}var Vl=function a(){},mV={};function Jh(a,t){mV[a]=t}function _V(a){return mV[a]}var d9=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.optionUpdated=function(){a.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;q(this.option.feature,function(o,u){var f=_V(u);f&&(f.getDefaultOption&&(f.defaultOption=f.getDefaultOption(e)),Dt(o,f.defaultOption))})},t.type="toolbox",t.layoutMode={type:"box",ignoreSize:!0},t.defaultOption={show:!0,z:6,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"}},t}(sn),h9=d9;function vg(a,t){var e=jd(t.get("padding")),o=t.getItemStyle(["color","opacity"]);return o.fill=t.get("backgroundColor"),new fn({shape:{x:a.x-e[3],y:a.y-e[0],width:a.width+e[1]+e[3],height:a.height+e[0]+e[2],r:t.get("borderRadius")},style:o,silent:!0,z2:-1})}var lS=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return de(t,a),t.prototype.render=function(e,o,u,f){var d=this.group;if(d.removeAll(),e.get("show")){var h=+e.get("itemSize"),v="vertical"===e.get("orient"),g=e.get("feature")||{},m=this._features||(this._features={}),y=[];q(g,function(S,k){y.push(k)}),new Zu(this._featureNames||[],y).add(b).update(b).remove(wt(b,null)).execute(),this._featureNames=y,function sS(a,t,e){var o=t.getBoxLayoutParams(),u=t.get("padding"),f={width:e.getWidth(),height:e.getHeight()},d=oi(o,f,u);Hu(t.get("orient"),a,t.get("itemGap"),d.width,d.height),Ok(a,o,f,u)}(d,e,u),d.add(vg(d.getBoundingRect(),e)),v||d.eachChild(function(S){var k=S.__title,D=S.ensureState("emphasis"),x=D.textConfig||(D.textConfig={}),T=S.getTextContent(),E=T&&T.ensureState("emphasis");if(E&&!et(E)&&k){var P=E.style||(E.style={}),V=pd(k,dn.makeFont(P)),N=S.x+d.x,j=!1;S.y+d.y+h+V.height>u.getHeight()&&(x.position="top",j=!0);var Z=j?-5-V.height:h+10;N+V.width/2>u.getWidth()?(x.position=["100%",Z],P.align="right"):N-V.width/2<0&&(x.position=[0,Z],P.align="left")}})}function b(S,k){var P,D=y[S],x=y[k],T=g[D],E=new Kn(T,e,e.ecModel);if(f&&null!=f.newTitle&&f.featureName===D&&(T.title=f.newTitle),D&&!x){if(function uS(a){return 0===a.indexOf("my")}(D))P={onclick:E.option.onclick,featureName:D};else{var V=_V(D);if(!V)return;P=new V}m[D]=P}else if(!(P=m[x]))return;P.uid=Zc("toolbox-feature"),P.model=E,P.ecModel=o,P.api=u;var N=P instanceof Vl;D||!x?!E.get("show")||N&&P.unusable?N&&P.remove&&P.remove(o,u):(function C(S,k,D){var V,N,x=S.getModel("iconStyle"),T=S.getModel(["emphasis","iconStyle"]),E=k instanceof Vl&&k.getIcons?k.getIcons():S.get("icon"),P=S.get("title")||{};Ne(E)?(V={})[D]=E:V=E,Ne(P)?(N={})[D]=P:N=P;var H=S.iconPaths={};q(V,function(j,Z){var W=gv(j,{},{x:-h/2,y:-h/2,width:h,height:h});W.setStyle(x.getItemStyle()),W.ensureState("emphasis").style=T.getItemStyle();var J=new dn({style:{text:N[Z],align:T.get("textAlign"),borderRadius:T.get("textBorderRadius"),padding:T.get("textPadding"),fill:null},ignore:!0});W.setTextContent(J),ih({el:W,componentModel:e,itemName:Z,formatterParamsExtra:{title:N[Z]}}),W.__title=N[Z],W.on("mouseover",function(){var ee=T.getItemStyle(),re=v?null==e.get("right")&&"right"!==e.get("left")?"right":"left":null==e.get("bottom")&&"bottom"!==e.get("top")?"bottom":"top";J.setStyle({fill:T.get("textFill")||ee.fill||ee.stroke||"#000",backgroundColor:T.get("textBackgroundColor")}),W.setTextConfig({position:T.get("textPosition")||re}),J.ignore=!e.get("showTitle"),u.enterEmphasis(this)}).on("mouseout",function(){"emphasis"!==S.get(["iconStatus",Z])&&u.leaveEmphasis(this),J.hide()}),("emphasis"===S.get(["iconStatus",Z])?jo:Bu)(W),d.add(W),W.on("click",ze(k.onclick,k,o,u,Z)),H[Z]=W})}(E,P,D),E.setIconStatus=function(H,j){var Z=this.option,W=this.iconPaths;Z.iconStatus=Z.iconStatus||{},Z.iconStatus[H]=j,W[H]&&("emphasis"===j?jo:Bu)(W[H])},P instanceof Vl&&P.render&&P.render(E,o,u,f)):N&&P.dispose&&P.dispose(o,u)}},t.prototype.updateView=function(e,o,u,f){q(this._features,function(d){d instanceof Vl&&d.updateView&&d.updateView(d.model,o,u,f)})},t.prototype.remove=function(e,o){q(this._features,function(u){u instanceof Vl&&u.remove&&u.remove(e,o)}),this.group.removeAll()},t.prototype.dispose=function(e,o){q(this._features,function(u){u instanceof Vl&&u.dispose&&u.dispose(e,o)})},t.type="toolbox",t}(Ze),p9=lS,SE=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return de(t,a),t.prototype.onclick=function(e,o){var u=this.model,f=u.get("name")||e.get("title.0.text")||"echarts",d="svg"===o.getZr().painter.getType(),h=d?"svg":u.get("type",!0)||"png",v=o.getConnectedDataURL({type:h,backgroundColor:u.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",connectedBackgroundColor:u.get("connectedBackgroundColor"),excludeComponents:u.get("excludeComponents"),pixelRatio:u.get("pixelRatio")}),g=tn.browser;if(et(MouseEvent)&&(g.newEdge||!g.ie&&!g.edge)){var m=document.createElement("a");m.download=f+"."+h,m.target="_blank",m.href=v;var y=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});m.dispatchEvent(y)}else if(window.navigator.msSaveOrOpenBlob||d){var b=v.split(","),C=b[0].indexOf("base64")>-1,S=d?decodeURIComponent(b[1]):b[1];C&&(S=window.atob(S));var k=f+"."+h;if(window.navigator.msSaveOrOpenBlob){for(var D=S.length,x=new Uint8Array(D);D--;)x[D]=S.charCodeAt(D);var T=new Blob([x]);window.navigator.msSaveOrOpenBlob(T,k)}else{var E=document.createElement("iframe");document.body.appendChild(E);var P=E.contentWindow,V=P.document;V.open("image/svg+xml","replace"),V.write(S),V.close(),P.focus(),V.execCommand("SaveAs",!0,k),document.body.removeChild(E)}}else{var N=u.get("lang"),H='',j=window.open();j.document.write(H),j.document.title=f}},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:e.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},t}(Vl),cS=SE,yV="__ec_magicType_stack__",g9=[["line","bar"],["stack"]],bV=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return de(t,a),t.prototype.getIcons=function(){var e=this.model,o=e.get("icon"),u={};return q(e.get("type"),function(f){o[f]&&(u[f]=o[f])}),u},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},t.prototype.onclick=function(e,o,u){var f=this.model,d=f.get(["seriesIndex",u]);if(CV[u]){var h={series:[]};q(g9,function(y){Ct(y,u)>=0&&q(y,function(b){f.setIconStatus(b,"normal")})}),f.setIconStatus(u,"emphasis"),e.eachComponent({mainType:"series",query:null==d?null:{seriesIndex:d}},function(b){var k=CV[u](b.subType,b.id,b,f);k&&(rt(k,b.option),h.series.push(k));var D=b.coordinateSystem;if(D&&"cartesian2d"===D.type&&("line"===u||"bar"===u)){var x=D.getAxesByScale("ordinal")[0];if(x){var E=x.dim+"Axis",V=b.getReferringComponents(E,ii).models[0].componentIndex;h[E]=h[E]||[];for(var N=0;N<=V;N++)h[E][V]=h[E][V]||{};h[E][V].boundaryGap="bar"===u}}});var g,m=u;"stack"===u&&(g=Dt({stack:f.option.title.tiled,tiled:f.option.title.stack},f.option.title),"emphasis"!==f.get(["iconStatus",u])&&(m="tiled")),o.dispatchAction({type:"changeMagicType",currentType:m,newOption:h,newTitle:g,featureName:"magicType"})}},t}(Vl),CV={line:function(t,e,o,u){if("bar"===t)return Dt({id:e,type:"line",data:o.get("data"),stack:o.get("stack"),markPoint:o.get("markPoint"),markLine:o.get("markLine")},u.get(["option","line"])||{},!0)},bar:function(t,e,o,u){if("line"===t)return Dt({id:e,type:"bar",data:o.get("data"),stack:o.get("stack"),markPoint:o.get("markPoint"),markLine:o.get("markLine")},u.get(["option","bar"])||{},!0)},stack:function(t,e,o,u){var f=o.get("stack")===yV;if("line"===t||"bar"===t)return u.setIconStatus("stack",f?"normal":"emphasis"),Dt({id:e,stack:f?"":yV},u.get(["option","stack"])||{},!0)}};uu({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(a,t){t.mergeOption(a.newOption)});var $$=bV,fS=new Array(60).join("-");function ME(a){var t=[];return q(a,function(e,o){var u=e.categoryAxis,d=e.valueAxis.dim,h=[" "].concat(Me(e.series,function(C){return C.name})),v=[u.model.getCategories()];q(e.series,function(C){var S=C.getRawData();v.push(C.getRawData().mapArray(S.mapDimension(d),function(k){return k}))});for(var g=[h.join("\t")],m=0;m=0)return!0}(u)){var d=function DE(a){for(var t=a.split(/\n+/g),o=[],u=Me(gg(t.shift()).split(SV),function(v){return{name:v,data:[]}}),f=0;f=0)&&d(f,u._targetInfoList)})}return a.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,function(o,u,f){if((o.coordRanges||(o.coordRanges=[])).push(u),!o.coordRange){o.coordRange=u;var d=tp[o.brushType](0,f,u);o.__rangeOffset={offset:PE[o.brushType](d.values,o.range,[1,1]),xyMinMax:d.xyMinMax}}}),t},a.prototype.matchOutputRanges=function(t,e,o){q(t,function(u){var f=this.findTargetInfo(u,e);f&&!0!==f&&q(f.coordSyses,function(d){var h=tp[u.brushType](1,d,u.range,!0);o(u,h.values,d,e)})},this)},a.prototype.setInputRanges=function(t,e){q(t,function(o){var u=this.findTargetInfo(o,e);if(o.range=o.range||[],u&&!0!==u){o.panelId=u.panelId;var f=tp[o.brushType](0,u.coordSys,o.coordRange),d=o.__rangeOffset;o.range=d?PE[o.brushType](f.values,d.offset,function J$(a,t){var e=C9(a),o=C9(t),u=[e[0]/o[0],e[1]/o[1]];return isNaN(u[0])&&(u[0]=1),isNaN(u[1])&&(u[1]=1),u}(f.xyMinMax,d.xyMinMax)):f.values}},this)},a.prototype.makePanelOpts=function(t,e){return Me(this._targetInfoList,function(o){var u=o.getPanelRect();return{panelId:o.panelId,defaultBrushType:e?e(o):null,clipPath:mA(u),isTargetByCursor:_A(u,t,o.coordSysModel),getLinearBrushOtherExtent:h1(u)}})},a.prototype.controlSeries=function(t,e,o){var u=this.findTargetInfo(t,o);return!0===u||u&&Ct(u.coordSyses,e.coordinateSystem)>=0},a.prototype.findTargetInfo=function(t,e){for(var o=this._targetInfoList,u=AE(e,t),f=0;fa[1]&&a.reverse(),a}function AE(a,t){return vm(a,t,{includeMainTypes:xV})}var EE={grid:function(t,e){var o=t.xAxisModels,u=t.yAxisModels,f=t.gridModels,d=$e(),h={},v={};!o&&!u&&!f||(q(o,function(g){var m=g.axis.grid.model;d.set(m.id,m),h[m.id]=!0}),q(u,function(g){var m=g.axis.grid.model;d.set(m.id,m),v[m.id]=!0}),q(f,function(g){d.set(g.id,g),h[g.id]=!0,v[g.id]=!0}),d.each(function(g){var y=[];q(g.coordinateSystem.getCartesians(),function(b,C){(Ct(o,b.getAxis("x").model)>=0||Ct(u,b.getAxis("y").model)>=0)&&y.push(b)}),e.push({panelId:"grid--"+g.id,gridModel:g,coordSysModel:g,coordSys:y[0],coordSyses:y,getPanelRect:EV.grid,xAxisDeclared:h[g.id],yAxisDeclared:v[g.id]})}))},geo:function(t,e){q(t.geoModels,function(o){var u=o.coordinateSystem;e.push({panelId:"geo--"+o.id,geoModel:o,coordSysModel:o,coordSys:u,coordSyses:[u],getPanelRect:EV.geo})})}},AV=[function(a,t){var e=a.xAxisModel,o=a.yAxisModel,u=a.gridModel;return!u&&e&&(u=e.axis.grid.model),!u&&o&&(u=o.axis.grid.model),u&&u===t.gridModel},function(a,t){var e=a.geoModel;return e&&e===t.geoModel}],EV={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(df(t)),e}},tp={lineX:wt(Sc,0),lineY:wt(Sc,1),rect:function(t,e,o,u){var f=t?e.pointToData([o[0][0],o[1][0]],u):e.dataToPoint([o[0][0],o[1][0]],u),d=t?e.pointToData([o[0][1],o[1][1]],u):e.dataToPoint([o[0][1],o[1][1]],u),h=[tb([f[0],d[0]]),tb([f[1],d[1]])];return{values:h,xyMinMax:h}},polygon:function(t,e,o,u){var f=[[1/0,-1/0],[1/0,-1/0]];return{values:Me(o,function(h){var v=t?e.pointToData(h,u):e.dataToPoint(h,u);return f[0][0]=Math.min(f[0][0],v[0]),f[1][0]=Math.min(f[1][0],v[1]),f[0][1]=Math.max(f[0][1],v[0]),f[1][1]=Math.max(f[1][1],v[1]),v}),xyMinMax:f}}};function Sc(a,t,e,o){var u=e.getAxis(["x","y"][a]),f=tb(Me([0,1],function(h){return t?u.coordToData(u.toLocalCoord(o[h]),!0):u.toGlobalCoord(u.dataToCoord(o[h]))})),d=[];return d[a]=f,d[1-a]=[NaN,NaN],{values:f,xyMinMax:d}}var PE={lineX:wt(b9,0),lineY:wt(b9,1),rect:function(t,e,o){return[[t[0][0]-o[0]*e[0][0],t[0][1]-o[0]*e[0][1]],[t[1][0]-o[1]*e[1][0],t[1][1]-o[1]*e[1][1]]]},polygon:function(t,e,o){return Me(t,function(u,f){return[u[0]-o[0]*e[f][0],u[1]-o[1]*e[f][1]]})}};function b9(a,t,e,o){return[t[0]-o[a]*e[0],t[1]-o[a]*e[1]]}function C9(a){return a?[a[0][1]-a[0][0],a[1][1]-a[1][0]]:[NaN,NaN]}var PV=TV,OE=q,OV=function pm(a){return"\0_ec_\0"+a}("toolbox-dataZoom_"),IV=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return de(t,a),t.prototype.render=function(e,o,u,f){this._brushController||(this._brushController=new d3(u.getZr()),this._brushController.on("brush",ze(this._onBrush,this)).mount()),function Kf(a,t,e,o,u){var f=e._isZoomActive;o&&"takeGlobalCursor"===o.type&&(f="dataZoomSelect"===o.key&&o.dataZoomSelectActive),e._isZoomActive=f,a.setIconStatus("zoom",f?"emphasis":"normal");var h=new PV(nb(a),t,{include:["grid"]}).makePanelOpts(u,function(v){return v.xAxisDeclared&&!v.yAxisDeclared?"lineX":!v.xAxisDeclared&&v.yAxisDeclared?"lineY":"rect"});e._brushController.setPanels(h).enableBrush(!(!f||!h.length)&&{brushType:"auto",brushStyle:a.getModel("brushStyle").getItemStyle()})}(e,o,this,f,u),function w9(a,t){a.setIconStatus("back",function kV(a){return eb(a).length}(t)>1?"emphasis":"normal")}(e,o)},t.prototype.onclick=function(e,o,u){ar[u].call(this)},t.prototype.remove=function(e,o){this._brushController&&this._brushController.unmount()},t.prototype.dispose=function(e,o){this._brushController&&this._brushController.dispose()},t.prototype._onBrush=function(e){var o=e.areas;if(e.isEnd&&o.length){var u={},f=this.ecModel;this._brushController.updateCovers([]),new PV(nb(this.model),f,{include:["grid"]}).matchOutputRanges(o,f,function(g,m,y){if("cartesian2d"===y.type){var b=g.brushType;"rect"===b?(h("x",y,m[0]),h("y",y,m[1])):h({lineX:"x",lineY:"y"}[b],y,m)}}),function TE(a,t){var e=eb(a);hS(t,function(o,u){for(var f=e.length-1;f>=0&&!e[f][u];f--);if(f<0){var h=a.queryComponents({mainType:"dataZoom",subType:"select",id:u})[0];if(h){var v=h.getPercentRange();e[0][u]={dataZoomId:u,start:v[0],end:v[1]}}}}),e.push(t)}(f,u),this._dispatchZoomAction(u)}function h(g,m,y){var b=m.getAxis(g),C=b.model,S=function v(g,m,y){var b;return y.eachComponent({mainType:"dataZoom",subType:"select"},function(C){C.getAxisModel(g,m.componentIndex)&&(b=C)}),b}(g,C,f),k=S.findRepresentativeAxisProxy(C).getMinMaxSpan();(null!=k.minValueSpan||null!=k.maxValueSpan)&&(y=Qv(0,y.slice(),b.scale.getExtent(),0,k.minValueSpan,k.maxValueSpan)),S&&(u[S.id]={dataZoomId:S.id,startValue:y[0],endValue:y[1]})}},t.prototype._dispatchZoomAction=function(e){var o=[];OE(e,function(u,f){o.push(ot(u))}),o.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:o})},t.getDefaultOption=function(e){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:e.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},t}(Vl),ar={zoom:function(){this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:!this._isZoomActive})},back:function(){this._dispatchZoomAction(function MV(a){var t=eb(a),e=t[t.length-1];t.length>1&&t.pop();var o={};return hS(e,function(u,f){for(var d=t.length-1;d>=0;d--)if(u=t[d][f]){o[f]=u;break}}),o}(this.ecModel))}};function nb(a){var t={xAxisIndex:a.get("xAxisIndex",!0),yAxisIndex:a.get("yAxisIndex",!0),xAxisId:a.get("xAxisId",!0),yAxisId:a.get("yAxisId",!0)};return null==t.xAxisIndex&&null==t.xAxisId&&(t.xAxisIndex="all"),null==t.yAxisIndex&&null==t.yAxisId&&(t.yAxisIndex="all"),t}!function k4(a,t){fa(null==Bk.get(a)&&t),Bk.set(a,t)}("dataZoom",function(a){var t=a.getComponent("toolbox",0),e=["feature","dataZoom"];if(t&&null!=t.get(e)){var o=t.getModel(e),u=[],d=vm(a,nb(o));return OE(d.xAxisModels,function(v){return h(v,"xAxis","xAxisIndex")}),OE(d.yAxisModels,function(v){return h(v,"yAxis","yAxisIndex")}),u}function h(v,g,m){var y=v.componentIndex,b={type:"select",$fromToolbox:!0,filterMode:o.get("filterMode",!0)||"filter",id:OV+g+y};b[m]=y,u.push(b)}});var S9=IV,RV=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={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}},t}(sn),M9=RV;function IE(a){var t=a.get("confine");return null!=t?!!t:"richText"===a.get("renderMode")}function LV(a){if(tn.domSupported)for(var t=document.documentElement.style,e=0,o=a.length;e-1?(h+="top:50%",v+="translateY(-50%) rotate("+(g="left"===f?-225:-45)+"deg)"):(h+="left:50%",v+="translateX(-50%) rotate("+(g="top"===f?225:45)+"deg)");var m=g*Math.PI/180,y=d+u,b=y*Math.abs(Math.cos(m))+y*Math.abs(Math.sin(m)),S=t+" solid "+u+"px;";return'
'}(o,u,f)),Ne(t))d.innerHTML=t+h;else if(t){d.innerHTML="",Ce(t)||(t=[t]);for(var v=0;v=0?this._tryShow(f,d):"leave"===u&&this._hide(d))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,o=this._ecModel,u=this._api;if(null!=this._lastX&&null!=this._lastY&&"none"!==e.get("triggerOn")){var f=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!u.isDisposed()&&f.manuallyShowTip(e,o,u,{x:f._lastX,y:f._lastY,dataByCoordSys:f._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,o,u,f){if(f.from!==this.uid&&!tn.node&&u.getDom()){var d=GE(f,u);this._ticket="";var h=f.dataByCoordSys,v=function jV(a,t,e){var o=Sd(a).queryOptionMap,u=o.keys()[0];if(u&&"series"!==u){var v,d=ge(t,u,o.get(u),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(d&&(e.getViewOfComponentModel(d).group.traverse(function(g){var m=vt(g).tooltipConfig;if(m&&m.name===a.name)return v=g,!0}),v))return{componentMainType:u,componentIndex:d.componentIndex,el:v}}}(f,o,u);if(v){var g=v.el.getBoundingRect().clone();g.applyTransform(v.el.transform),this._tryShow({offsetX:g.x+g.width/2,offsetY:g.y+g.height/2,target:v.el,position:f.position,positionDefault:"bottom"},d)}else if(f.tooltip&&null!=f.x&&null!=f.y){var m=nQ;m.x=f.x,m.y=f.y,m.update(),vt(m).tooltipConfig={name:null,option:f.tooltip},this._tryShow({offsetX:f.x,offsetY:f.y,target:m},d)}else if(h)this._tryShow({offsetX:f.x,offsetY:f.y,position:f.position,dataByCoordSys:h,tooltipOption:f.tooltipOption},d);else if(null!=f.seriesIndex){if(this._manuallyAxisShowTip(e,o,u,f))return;var y=qf(f,o),b=y.point[0],C=y.point[1];null!=b&&null!=C&&this._tryShow({offsetX:b,offsetY:C,target:y.el,position:f.position,positionDefault:"bottom"},d)}else null!=f.x&&null!=f.y&&(u.dispatchAction({type:"updateAxisPointer",x:f.x,y:f.y}),this._tryShow({offsetX:f.x,offsetY:f.y,position:f.position,target:u.getZr().findHover(f.x,f.y).target},d))}},t.prototype.manuallyHideTip=function(e,o,u,f){!this._alwaysShowContent&&this._tooltipModel&&this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,f.from!==this.uid&&this._hide(GE(f,u))},t.prototype._manuallyAxisShowTip=function(e,o,u,f){var d=f.seriesIndex,h=f.dataIndex,v=o.getComponent("axisPointer").coordSysAxesInfo;if(null!=d&&null!=h&&null!=v){var g=o.getSeriesByIndex(d);if(g&&"axis"===rb([g.getData().getItemModel(h),g,(g.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return u.dispatchAction({type:"updateAxisPointer",seriesIndex:d,dataIndex:h,position:f.position}),!0}},t.prototype._tryShow=function(e,o){var u=e.target;if(this._tooltipModel){this._lastX=e.offsetX,this._lastY=e.offsetY;var d=e.dataByCoordSys;if(d&&d.length)this._showAxisTooltip(d,e);else if(u){var h,v;this._lastDataByCoordSys=null,Cv(u,function(g){return null!=vt(g).dataIndex?(h=g,!0):null!=vt(g).tooltipConfig?(v=g,!0):void 0},!0),h?this._showSeriesItemTooltip(e,h,o):v?this._showComponentItemTooltip(e,v,o):this._hide(o)}else this._lastDataByCoordSys=null,this._hide(o)}},t.prototype._showOrMove=function(e,o){var u=e.get("showDelay");o=ze(o,this),clearTimeout(this._showTimout),u>0?this._showTimout=setTimeout(o,u):o()},t.prototype._showAxisTooltip=function(e,o){var u=this._ecModel,f=this._tooltipModel,d=[o.offsetX,o.offsetY],h=rb([o.tooltipOption],f),v=this._renderMode,g=[],m=Gt("section",{blocks:[],noHeader:!0}),y=[],b=new aD;q(e,function(T){q(T.dataByAxis,function(E){var P=u.getComponent(E.axisDim+"Axis",E.axisIndex),V=E.value;if(P&&null!=V){var N=xW(V,P.axis,u,E.seriesDataIndices,E.valueLabelOpt),H=Gt("section",{header:N,noHeader:!Io(N),sortBlocks:!0,blocks:[]});m.blocks.push(H),q(E.seriesDataIndices,function(j){var Z=u.getSeriesByIndex(j.seriesIndex),W=j.dataIndexInside,X=Z.getDataParams(W);if(!(X.dataIndex<0)){X.axisDim=E.axisDim,X.axisIndex=E.axisIndex,X.axisType=E.axisType,X.axisId=E.axisId,X.axisValue=ZC(P.axis,{value:V}),X.axisValueLabel=N,X.marker=b.makeTooltipMarker("item",Wd(X.color),v);var J=H4(Z.formatTooltip(W,!0,null)),ee=J.frag;if(ee){var re=rb([Z],f).get("valueFormatter");H.blocks.push(re?ve({valueFormatter:re},ee):ee)}J.text&&y.push(J.text),g.push(X)}})}})}),m.blocks.reverse(),y.reverse();var C=o.position,S=h.get("order"),k=rD(m,b,v,S,u.get("useUTC"),h.get("textStyle"));k&&y.unshift(k);var x=y.join("richText"===v?"\n\n":"
");this._showOrMove(h,function(){this._updateContentNotChangedOnAxis(e,g)?this._updatePosition(h,C,d[0],d[1],this._tooltipContent,g):this._showTooltipContent(h,x,g,Math.random()+"",d[0],d[1],C,null,b)})},t.prototype._showSeriesItemTooltip=function(e,o,u){var f=this._ecModel,d=vt(o),h=d.seriesIndex,v=f.getSeriesByIndex(h),g=d.dataModel||v,m=d.dataIndex,y=d.dataType,b=g.getData(y),C=this._renderMode,S=e.positionDefault,k=rb([b.getItemModel(m),g,v&&(v.coordinateSystem||{}).model],this._tooltipModel,S?{position:S}:null),D=k.get("trigger");if(null==D||"item"===D){var x=g.getDataParams(m,y),T=new aD;x.marker=T.makeTooltipMarker("item",Wd(x.color),C);var E=H4(g.formatTooltip(m,!1,y)),P=k.get("order"),V=k.get("valueFormatter"),N=E.frag,H=N?rD(V?ve({valueFormatter:V},N):N,T,C,P,f.get("useUTC"),k.get("textStyle")):E.text,j="item_"+g.name+"_"+m;this._showOrMove(k,function(){this._showTooltipContent(k,H,x,j,e.offsetX,e.offsetY,e.position,e.target,T)}),u({type:"showTip",dataIndexInside:m,dataIndex:b.getRawIndex(m),seriesIndex:h,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,o,u){var f=vt(o),h=f.tooltipConfig.option||{};Ne(h)&&(h={content:h,formatter:h});var g=[h],m=this._ecModel.getComponent(f.componentMainType,f.componentIndex);m&&g.push(m),g.push({formatter:h.content});var y=e.positionDefault,b=rb(g,this._tooltipModel,y?{position:y}:null),C=b.get("content"),S=Math.random()+"",k=new aD;this._showOrMove(b,function(){var D=ot(b.get("formatterParams")||{});this._showTooltipContent(b,C,D,S,e.offsetX,e.offsetY,e.position,o,k)}),u({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,o,u,f,d,h,v,g,m){if(this._ticket="",e.get("showContent")&&e.get("show")){var y=this._tooltipContent;y.setEnterable(e.get("enterable"));var b=e.get("formatter");v=v||e.get("position");var C=o,k=this._getNearestPoint([d,h],u,e.get("trigger"),e.get("borderColor")).color;if(b)if(Ne(b)){var D=e.ecModel.get("useUTC"),x=Ce(u)?u[0]:u;C=b,x&&x.axisType&&x.axisType.indexOf("time")>=0&&(C=Nm(x.axisValue,C,D)),C=Ek(C,u,!0)}else if(et(b)){var E=ze(function(P,V){P===this._ticket&&(y.setContent(V,m,e,k,v),this._updatePosition(e,v,d,h,y,u,g))},this);this._ticket=f,C=b(u,f,E)}else C=b;y.setContent(C,m,e,k,v),y.show(e,k),this._updatePosition(e,v,d,h,y,u,g)}},t.prototype._getNearestPoint=function(e,o,u,f){return"axis"===u||Ce(o)?{color:f||("html"===this._renderMode?"#fff":"none")}:Ce(o)?void 0:{color:f||o.color||o.borderColor}},t.prototype._updatePosition=function(e,o,u,f,d,h,v){var g=this._api.getWidth(),m=this._api.getHeight();o=o||e.get("position");var y=d.getSize(),b=e.get("align"),C=e.get("verticalAlign"),S=v&&v.getBoundingRect().clone();if(v&&S.applyTransform(v.transform),et(o)&&(o=o([u,f],h,d.el,S,{viewSize:[g,m],contentSize:y.slice()})),Ce(o))u=Ie(o[0],g),f=Ie(o[1],m);else if(Ke(o)){var k=o;k.width=y[0],k.height=y[1];var D=oi(k,{width:g,height:m});u=D.x,f=D.y,b=null,C=null}else if(Ne(o)&&v){var x=function np(a,t,e,o){var u=e[0],f=e[1],d=Math.ceil(Math.SQRT2*o)+8,h=0,v=0,g=t.width,m=t.height;switch(a){case"inside":h=t.x+g/2-u/2,v=t.y+m/2-f/2;break;case"top":h=t.x+g/2-u/2,v=t.y-f-d;break;case"bottom":h=t.x+g/2-u/2,v=t.y+m+d;break;case"left":h=t.x-u-d,v=t.y+m/2-f/2;break;case"right":h=t.x+g+d,v=t.y+m/2-f/2}return[h,v]}(o,S,y,e.get("borderWidth"));u=x[0],f=x[1]}else x=function P9(a,t,e,o,u,f,d){var h=e.getSize(),v=h[0],g=h[1];return null!=f&&(a+v+f+2>o?a-=v+f:a+=f),null!=d&&(t+g+d>u?t-=g+d:t+=d),[a,t]}(u,f,d,g,m,b?null:20,C?null:20),u=x[0],f=x[1];b&&(u-=UV(b)?y[0]/2:"right"===b?y[0]:0),C&&(f-=UV(C)?y[1]/2:"bottom"===C?y[1]:0),IE(e)&&(x=function GV(a,t,e,o,u){var f=e.getSize(),d=f[0],h=f[1];return a=Math.min(a+d,o)-d,t=Math.min(t+h,u)-h,[a=Math.max(a,0),t=Math.max(t,0)]}(u,f,d,g,m),u=x[0],f=x[1]),d.moveTo(u,f)},t.prototype._updateContentNotChangedOnAxis=function(e,o){var u=this._lastDataByCoordSys,f=this._cbParamsList,d=!!u&&u.length===e.length;return d&&q(u,function(h,v){var g=h.dataByAxis||[],y=(e[v]||{}).dataByAxis||[];(d=d&&g.length===y.length)&&q(g,function(b,C){var S=y[C]||{},k=b.seriesDataIndices||[],D=S.seriesDataIndices||[];(d=d&&b.value===S.value&&b.axisType===S.axisType&&b.axisId===S.axisId&&k.length===D.length)&&q(k,function(x,T){var E=D[T];d=d&&x.seriesIndex===E.seriesIndex&&x.dataIndex===E.dataIndex}),f&&q(b.seriesDataIndices,function(x){var T=x.seriesIndex,E=o[T],P=f[T];E&&P&&P.data!==E.data&&(d=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=o,!!d},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,o){tn.node||!o.getDom()||(c_(this,"_updatePosition"),this._tooltipContent.dispose(),K1("itemTooltip",o))},t.type="tooltip",t}(Ze);function rb(a,t,e){var u,o=t.ecModel;e?(u=new Kn(e,o,o),u=new Kn(t.option,u,o)):u=t;for(var f=a.length-1;f>=0;f--){var d=a[f];d&&(d instanceof Kn&&(d=d.get("tooltip",!0)),Ne(d)&&(d={formatter:d}),d&&(u=new Kn(d,u,o)))}return u}function GE(a,t){return a.dispatchAction||ze(t.dispatchAction,t)}function UV(a){return"center"===a||"middle"===a}var O9=zE,I9=["rect","polygon","keep","clear"];function R9(a,t){var e=Xn(a?a.brush:[]);if(e.length){var o=[];q(e,function(v){var g=v.hasOwnProperty("toolbox")?v.toolbox:[];g instanceof Array&&(o=o.concat(g))});var u=a&&a.toolbox;Ce(u)&&(u=u[0]),u||(a.toolbox=[u={feature:{}}]);var f=u.feature||(u.feature={}),d=f.brush||(f.brush={}),h=d.type||(d.type=[]);h.push.apply(h,o),function Vs(a){var t={};q(a,function(e){t[e]=1}),a.length=0,q(t,function(e,o){a.push(o)})}(h),t&&!h.length&&h.push.apply(h,I9)}}var ib=q;function YV(a){if(a)for(var t in a)if(a.hasOwnProperty(t))return!0}function vS(a,t,e){var o={};return ib(t,function(f){var d=o[f]=function u(){var f=function(){};return f.prototype.__hidden=f.prototype,new f}();ib(a[f],function(h,v){if(pn.isValidType(v)){var g={type:v,visual:h};e&&e(g,f),d[v]=new pn(g),"opacity"===v&&((g=ot(g)).type="colorAlpha",d.__hidden.__alphaForOpacity=new pn(g))}})}),o}function qV(a,t,e){var o;q(e,function(u){t.hasOwnProperty(u)&&YV(t[u])&&(o=!0)}),o&&q(e,function(u){t.hasOwnProperty(u)&&YV(t[u])?a[u]=ot(t[u]):delete a[u]})}var XV={lineX:UE(0),lineY:UE(1),rect:{point:function(t,e,o){return t&&o.boundingRect.contain(t[0],t[1])},rect:function(t,e,o){return t&&o.boundingRect.intersect(t)}},polygon:{point:function(t,e,o){return t&&o.boundingRect.contain(t[0],t[1])&&ki(o.range,t[0],t[1])},rect:function(t,e,o){var u=o.range;if(!t||u.length<=1)return!1;var f=t.x,d=t.y,h=t.width,v=t.height,g=u[0];return!!(ki(u,f,d)||ki(u,f+h,d)||ki(u,f,d+v)||ki(u,f+h,d+v)||zt.create(t).contain(g[0],g[1])||hC(f,d,f+h,d,u)||hC(f,d,f,d+v,u)||hC(f+h,d,f+h,d+v,u)||hC(f,d+v,f+h,d+v,u))||void 0}}};function UE(a){var t=["x","y"],e=["width","height"];return{point:function(u,f,d){if(u)return mS(u[a],d.range)},rect:function(u,f,d){if(u){var h=d.range,v=[u[t[a]],u[t[a]]+u[e[a]]];return v[1]e[0][1]&&(e[0][1]=d[0]),d[1]e[1][1]&&(e[1][1]=d[1])}return e&&JV(e)}};function JV(a){return new zt(a[0][0],a[1][0],a[0][1]-a[0][0],a[1][1]-a[1][0])}var B9=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.init=function(e,o){this.ecModel=e,this.api=o,(this._brushController=new d3(o.getZr())).on("brush",ze(this._onBrush,this)).mount()},t.prototype.render=function(e,o,u,f){this.model=e,this._updateController(e,o,u,f)},t.prototype.updateTransform=function(e,o,u,f){KV(o),this._updateController(e,o,u,f)},t.prototype.updateVisual=function(e,o,u,f){this.updateTransform(e,o,u,f)},t.prototype.updateView=function(e,o,u,f){this._updateController(e,o,u,f)},t.prototype._updateController=function(e,o,u,f){(!f||f.$from!==e.id)&&this._brushController.setPanels(e.brushTargetManager.makePanelOpts(u)).enableBrush(e.brushOption).updateCovers(e.areas.slice())},t.prototype.dispose=function(){this._brushController.dispose()},t.prototype._onBrush=function(e){var o=this.model.id,u=this.model.brushTargetManager.setOutputRanges(e.areas,this.ecModel);(!e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:o,areas:ot(u),$from:o}),e.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:o,areas:ot(u),$from:o})},t.type="brush",t}(Ze),V9=B9,z9=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.areas=[],e.brushOption={},e}return de(t,a),t.prototype.optionUpdated=function(e,o){var u=this.option;!o&&qV(u,e,["inBrush","outOfBrush"]);var f=u.inBrush=u.inBrush||{};u.outOfBrush=u.outOfBrush||{color:"#ddd"},f.hasOwnProperty("liftZ")||(f.liftZ=5)},t.prototype.setAreas=function(e){!e||(this.areas=Me(e,function(o){return e5(this.option,o)},this))},t.prototype.setBrushOption=function(e){this.brushOption=e5(this.option,e),this.brushType=this.brushOption.brushType},t.type="brush",t.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],t.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},t}(sn);function e5(a,t){return Dt({brushType:a.brushType,brushMode:a.brushMode,transformable:a.transformable,brushStyle:new Kn(a.brushStyle).getItemStyle(),removeOnClick:a.removeOnClick,z:a.z},t,!0)}var G9=z9,U9=["rect","polygon","lineX","lineY","keep","clear"],j9=function(a){function t(){return null!==a&&a.apply(this,arguments)||this}return de(t,a),t.prototype.render=function(e,o,u){var f,d,h;o.eachComponent({mainType:"brush"},function(v){f=v.brushType,d=v.brushOption.brushMode||"single",h=h||!!v.areas.length}),this._brushType=f,this._brushMode=d,q(e.get("type",!0),function(v){e.setIconStatus(v,("keep"===v?"multiple"===d:"clear"===v?h:v===f)?"emphasis":"normal")})},t.prototype.updateView=function(e,o,u){this.render(e,o,u)},t.prototype.getIcons=function(){var e=this.model,o=e.get("icon",!0),u={};return q(e.get("type",!0),function(f){o[f]&&(u[f]=o[f])}),u},t.prototype.onclick=function(e,o,u){var f=this._brushType,d=this._brushMode;"clear"===u?(o.dispatchAction({type:"axisAreaSelect",intervals:[]}),o.dispatchAction({type:"brush",command:"clear",areas:[]})):o.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===u?f:f!==u&&u,brushMode:"keep"===u?"multiple"===d?"single":"multiple":d}})},t.getDefaultOption=function(e){return{show:!0,type:U9.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:e.getLocaleModel().get(["toolbox","brush","title"])}},t}(Vl),W9=j9,q9=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return de(t,a),t.type="title",t.defaultOption={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"}},t}(sn),Z9=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.render=function(e,o,u){if(this.group.removeAll(),e.get("show")){var f=this.group,d=e.getModel("textStyle"),h=e.getModel("subtextStyle"),v=e.get("textAlign"),g=Ft(e.get("textBaseline"),e.get("textVerticalAlign")),m=new dn({style:Cr(d,{text:e.get("text"),fill:d.getTextColor()},{disableBox:!0}),z2:10}),y=m.getBoundingRect(),b=e.get("subtext"),C=new dn({style:Cr(h,{text:b,fill:h.getTextColor(),y:y.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),S=e.get("link"),k=e.get("sublink"),D=e.get("triggerEvent",!0);m.silent=!S&&!D,C.silent=!k&&!D,S&&m.on("click",function(){G0(S,"_"+e.get("target"))}),k&&C.on("click",function(){G0(k,"_"+e.get("subtarget"))}),vt(m).eventData=vt(C).eventData=D?{componentType:"title",componentIndex:e.componentIndex}:null,f.add(m),b&&f.add(C);var x=f.getBoundingRect(),T=e.getBoxLayoutParams();T.width=x.width,T.height=x.height;var E=oi(T,{width:u.getWidth(),height:u.getHeight()},e.get("padding"));v||("middle"===(v=e.get("left")||e.get("right"))&&(v="center"),"right"===v?E.x+=E.width:"center"===v&&(E.x+=E.width/2)),g||("center"===(g=e.get("top")||e.get("bottom"))&&(g="middle"),"bottom"===g?E.y+=E.height:"middle"===g&&(E.y+=E.height/2),g=g||"top"),f.x=E.x,f.y=E.y,f.markRedraw();var P={align:v,verticalAlign:g};m.setStyle(P),C.setStyle(P),x=f.getBoundingRect();var V=E.margin,N=e.getItemStyle(["color","opacity"]);N.fill=e.get("backgroundColor");var H=new fn({shape:{x:x.x-V[3],y:x.y-V[0],width:x.width+V[1]+V[3],height:x.height+V[0]+V[2],r:e.get("borderRadius")},style:N,subPixelOptimize:!0,silent:!0});f.add(H)}},t.type="title",t}(Ze),oQ=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.layoutMode="box",e}return de(t,a),t.prototype.init=function(e,o,u){this.mergeDefaultAndTheme(e,u),this._initData()},t.prototype.mergeOption=function(e){a.prototype.mergeOption.apply(this,arguments),this._initData()},t.prototype.setCurrentIndex=function(e){null==e&&(e=this.option.currentIndex);var o=this._data.count();this.option.loop?e=(e%o+o)%o:(e>=o&&(e=o-1),e<0&&(e=0)),this.option.currentIndex=e},t.prototype.getCurrentIndex=function(){return this.option.currentIndex},t.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},t.prototype.setPlayState=function(e){this.option.autoPlay=!!e},t.prototype.getPlayState=function(){return!!this.option.autoPlay},t.prototype._initData=function(){var d,e=this.option,o=e.data||[],u=e.axisType,f=this._names=[];"category"===u?(d=[],q(o,function(g,m){var b,y=wi(fm(g),"");Ke(g)?(b=ot(g)).value=m:b=m,d.push(b),f.push(y)})):d=o,(this._data=new ga([{name:"value",type:{category:"ordinal",time:"time",value:"number"}[u]||"number"}],this)).initData(d,f)},t.prototype.getData=function(){return this._data},t.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},t.type="timeline",t.defaultOption={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:[]},t}(sn),t5=oQ,n5=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.type="timeline.slider",t.defaultOption=Xc(t5.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:[]}),t}(t5);Ir(n5,Zk.prototype);var r5=n5,K9=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.type="timeline",t}(Ze),sQ=K9,a5=function(a){function t(e,o,u,f){var d=a.call(this,e,o,u)||this;return d.type=f||"value",d}return de(t,a),t.prototype.getLabelModel=function(){return this.model.getModel("label")},t.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},t}(Fa),o5=a5,rs=Math.PI,s5=Sn(),l5=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.init=function(e,o){this.api=o},t.prototype.render=function(e,o,u){if(this.model=e,this.api=u,this.ecModel=o,this.group.removeAll(),e.get("show",!0)){var f=this._layout(e,u),d=this._createGroup("_mainGroup"),h=this._createGroup("_labelGroup"),v=this._axis=this._createAxis(f,e);e.formatTooltip=function(g){return Gt("nameValue",{noName:!0,value:v.scale.getLabel({value:g})})},q(["AxisLine","AxisTick","Control","CurrentPointer"],function(g){this["_render"+g](f,d,v,e)},this),this._renderAxisLabel(f,h,v,e),this._position(f,e)}this._doPlayStop(),this._updateTicksStatus()},t.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},t.prototype.dispose=function(){this._clearTimer()},t.prototype._layout=function(e,o){var h,u=e.get(["label","position"]),f=e.get("orient"),d=function $9(a,t){return oi(a.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()},a.get("padding"))}(e,o),v={horizontal:"center",vertical:(h=null==u||"auto"===u?"horizontal"===f?d.y+d.height/2=0||"+"===h?"left":"right"},g={horizontal:h>=0||"+"===h?"top":"bottom",vertical:"middle"},m={horizontal:0,vertical:rs/2},y="vertical"===f?d.height:d.width,b=e.getModel("controlStyle"),C=b.get("show",!0),S=C?b.get("itemSize"):0,k=C?b.get("itemGap"):0,D=S+k,x=e.get(["label","rotate"])||0;x=x*rs/180;var T,E,P,V=b.get("position",!0),N=C&&b.get("showPlayBtn",!0),H=C&&b.get("showPrevBtn",!0),j=C&&b.get("showNextBtn",!0),Z=0,W=y;"left"===V||"bottom"===V?(N&&(T=[0,0],Z+=D),H&&(E=[Z,0],Z+=D),j&&(P=[W-S,0],W-=D)):(N&&(T=[W-S,0],W-=D),H&&(E=[0,0],Z+=D),j&&(P=[W-S,0],W-=D));var X=[Z,W];return e.get("inverse")&&X.reverse(),{viewRect:d,mainLength:y,orient:f,rotation:m[f],labelRotation:x,labelPosOpt:h,labelAlign:e.get(["label","align"])||v[f],labelBaseline:e.get(["label","verticalAlign"])||e.get(["label","baseline"])||g[f],playPosition:T,prevBtnPosition:E,nextBtnPosition:P,axisExtent:X,controlSize:S,controlGap:k}},t.prototype._position=function(e,o){var u=this._mainGroup,f=this._labelGroup,d=e.viewRect;if("vertical"===e.orient){var h=[1,0,0,1,0,0],v=d.x,g=d.y+d.height;vs(h,h,[-v,-g]),el(h,h,-rs/2),vs(h,h,[v,g]),(d=d.clone()).applyTransform(h)}var m=T(d),y=T(u.getBoundingRect()),b=T(f.getBoundingRect()),C=[u.x,u.y],S=[f.x,f.y];S[0]=C[0]=m[0][0];var D,k=e.labelPosOpt;function x(P){P.originX=m[0][0]-P.x,P.originY=m[1][0]-P.y}function T(P){return[[P.x,P.x+P.width],[P.y,P.y+P.height]]}function E(P,V,N,H,j){P[H]+=N[H][j]-V[H][j]}null==k||Ne(k)?(E(C,y,m,1,D="+"===k?0:1),E(S,b,m,1,1-D)):(E(C,y,m,1,D=k>=0?0:1),S[1]=C[1]+k),u.setPosition(C),f.setPosition(S),u.rotation=f.rotation=e.rotation,x(u),x(f)},t.prototype._createAxis=function(e,o){var u=o.getData(),f=o.get("axisType"),d=function Hs(a,t){if(t=t||a.get("type"))switch(t){case"category":return new fx({ordinalMeta:a.getCategories(),extent:[1/0,-1/0]});case"time":return new L8({locale:a.ecModel.getLocaleModel(),useUTC:a.ecModel.get("useUTC")});default:return new Qu}}(o,f);d.getTicks=function(){return u.mapArray(["value"],function(g){return{value:g}})};var h=u.getDataExtent("value");d.setExtent(h[0],h[1]),d.calcNiceTicks();var v=new o5("value",d,e.axisExtent,f);return v.model=o,v},t.prototype._createGroup=function(e){var o=this[e]=new ct;return this.group.add(o),o},t.prototype._renderAxisLine=function(e,o,u,f){var d=u.getExtent();if(f.get(["lineStyle","show"])){var h=new Nr({shape:{x1:d[0],y1:0,x2:d[1],y2:0},style:ve({lineCap:"round"},f.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});o.add(h);var v=this._progressLine=new Nr({shape:{x1:d[0],x2:this._currentPointer?this._currentPointer.x:d[0],y1:0,y2:0},style:rt({lineCap:"round",lineWidth:h.style.lineWidth},f.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});o.add(v)}},t.prototype._renderAxisTick=function(e,o,u,f){var d=this,h=f.getData(),v=u.scale.getTicks();this._tickSymbols=[],q(v,function(g){var m=u.dataToCoord(g.value),y=h.getItemModel(g.value),b=y.getModel("itemStyle"),C=y.getModel(["emphasis","itemStyle"]),S=y.getModel(["progress","itemStyle"]),k={x:m,y:0,onclick:ze(d._changeTimeline,d,g.value)},D=u5(y,b,o,k);D.ensureState("emphasis").style=C.getItemStyle(),D.ensureState("progress").style=S.getItemStyle(),Yc(D);var x=vt(D);y.get("tooltip")?(x.dataIndex=g.value,x.dataModel=f):x.dataIndex=x.dataModel=null,d._tickSymbols.push(D)})},t.prototype._renderAxisLabel=function(e,o,u,f){var d=this;if(u.getLabelModel().get("show")){var v=f.getData(),g=u.getViewLabels();this._tickLabels=[],q(g,function(m){var y=m.tickValue,b=v.getItemModel(y),C=b.getModel("label"),S=b.getModel(["emphasis","label"]),k=b.getModel(["progress","label"]),D=u.dataToCoord(m.tickValue),x=new dn({x:D,y:0,rotation:e.labelRotation-e.rotation,onclick:ze(d._changeTimeline,d,y),silent:!1,style:Cr(C,{text:m.formattedLabel,align:e.labelAlign,verticalAlign:e.labelBaseline})});x.ensureState("emphasis").style=Cr(S),x.ensureState("progress").style=Cr(k),o.add(x),Yc(x),s5(x).dataIndex=y,d._tickLabels.push(x)})}},t.prototype._renderControl=function(e,o,u,f){var d=e.controlSize,h=e.rotation,v=f.getModel("controlStyle").getItemStyle(),g=f.getModel(["emphasis","controlStyle"]).getItemStyle(),m=f.getPlayState(),y=f.get("inverse",!0);function b(C,S,k,D){if(C){var x=il(Ft(f.get(["controlStyle",S+"BtnSize"]),d),d),E=function Q9(a,t,e,o){var u=o.style,f=gv(a.get(["controlStyle",t]),o||{},new zt(e[0],e[1],e[2],e[3]));return u&&f.setStyle(u),f}(f,S+"Icon",[0,-x/2,x,x],{x:C[0],y:C[1],originX:d/2,originY:0,rotation:D?-h:0,rectHover:!0,style:v,onclick:k});E.ensureState("emphasis").style=g,o.add(E),Yc(E)}}b(e.nextBtnPosition,"next",ze(this._changeTimeline,this,y?"-":"+")),b(e.prevBtnPosition,"prev",ze(this._changeTimeline,this,y?"+":"-")),b(e.playPosition,m?"stop":"play",ze(this._handlePlayClick,this,!m),!0)},t.prototype._renderCurrentPointer=function(e,o,u,f){var d=f.getData(),h=f.getCurrentIndex(),v=d.getItemModel(h).getModel("checkpointStyle"),g=this;this._currentPointer=u5(v,v,this._mainGroup,{},this._currentPointer,{onCreate:function(b){b.draggable=!0,b.drift=ze(g._handlePointerDrag,g),b.ondragend=ze(g._handlePointerDragend,g),WE(b,g._progressLine,h,u,f,!0)},onUpdate:function(b){WE(b,g._progressLine,h,u,f)}})},t.prototype._handlePlayClick=function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},t.prototype._handlePointerDrag=function(e,o,u){this._clearTimer(),this._pointerChangeTimeline([u.offsetX,u.offsetY])},t.prototype._handlePointerDragend=function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},t.prototype._pointerChangeTimeline=function(e,o){var u=this._toAxisCoord(e)[0],d=Zi(this._axis.getExtent().slice());u>d[1]&&(u=d[1]),u=0&&(d[f]=+d[f].toFixed(b)),[d,y]}var p5={min:wt(ZE,"min"),max:wt(ZE,"max"),average:wt(ZE,"average"),median:wt(ZE,"median")};function CS(a,t){var e=a.getData(),o=a.coordinateSystem;if(t&&!function lQ(a){return!isNaN(parseFloat(a.x))&&!isNaN(parseFloat(a.y))}(t)&&!Ce(t.coord)&&o){var u=o.dimensions,f=rY(t,e,o,a);if((t=ot(t)).type&&p5[t.type]&&f.baseAxis&&f.valueAxis){var d=Ct(u,f.baseAxis.dim),h=Ct(u,f.valueAxis.dim),v=p5[t.type](e,f.baseDataDim,f.valueDataDim,d,h);t.coord=v[0],t.value=v[1]}else{for(var g=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],m=0;m<2;m++)p5[g[m]]&&(g[m]=XE(e,e.mapDimension(u[m]),g[m]));t.coord=g}}return t}function rY(a,t,e,o){var u={};return null!=a.valueIndex||null!=a.valueDim?(u.valueDataDim=null!=a.valueIndex?t.getDimension(a.valueIndex):a.valueDim,u.valueAxis=e.getAxis(function uQ(a,t){var e=a.getData().getDimensionInfo(t);return e&&e.coordDim}(o,u.valueDataDim)),u.baseAxis=e.getOtherAxis(u.valueAxis),u.baseDataDim=t.mapDimension(u.baseAxis.dim)):(u.baseAxis=o.getBaseAxis(),u.valueAxis=e.getOtherAxis(u.baseAxis),u.baseDataDim=t.mapDimension(u.baseAxis.dim),u.valueDataDim=t.mapDimension(u.valueAxis.dim)),u}function wS(a,t){return!(a&&a.containData&&t.coord&&!function Hl(a){return!(isNaN(parseFloat(a.x))&&isNaN(parseFloat(a.y)))}(t))||a.containData(t.coord)}function v5(a,t){return a?function(e,o,u,f){return sf(f<2?e.coord&&e.coord[f]:e.value,t[f])}:function(e,o,u,f){return sf(e.value,t[f])}}function XE(a,t,e){if("average"===e){var o=0,u=0;return a.each(t,function(f,d){isNaN(f)||(o+=f,u++)}),o/u}return"median"===e?a.getMedian(t):a.getDataExtent(t)["max"===e?1:0]}var KE=Sn(),iY=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.init=function(){this.markerGroupMap=$e()},t.prototype.render=function(e,o,u){var f=this,d=this.markerGroupMap;d.each(function(h){KE(h).keep=!1}),o.eachSeries(function(h){var v=Jf.getMarkerModelFromSeries(h,f.type);v&&f.renderSeries(h,v,o,u)}),d.each(function(h){!KE(h).keep&&f.group.remove(h.group)})},t.prototype.markKeep=function(e){KE(e).keep=!0},t.prototype.toggleBlurSeries=function(e,o){var u=this;q(e,function(f){var d=Jf.getMarkerModelFromSeries(f,u.type);d&&d.getData().eachItemGraphicEl(function(v){v&&(o?fk(v):dk(v))})})},t.type="marker",t}(Ze),$E=iY;function g5(a,t,e){var o=t.coordinateSystem;a.each(function(u){var d,f=a.getItemModel(u),h=Ie(f.get("x"),e.getWidth()),v=Ie(f.get("y"),e.getHeight());if(isNaN(h)||isNaN(v)){if(t.getMarkerPosition)d=t.getMarkerPosition(a.getValues(a.dimensions,u));else if(o){var g=a.get(o.dimensions[0],u),m=a.get(o.dimensions[1],u);d=o.dataToPoint([g,m])}}else d=[h,v];isNaN(h)||(d[0]=h),isNaN(v)||(d[1]=v),a.setItemLayout(u,d)})}var aY=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.updateTransform=function(e,o,u){o.eachSeries(function(f){var d=Jf.getMarkerModelFromSeries(f,"markPoint");d&&(g5(d.getData(),f,u),this.markerGroupMap.get(f.id).updateLayout())},this)},t.prototype.renderSeries=function(e,o,u,f){var d=e.coordinateSystem,h=e.id,v=e.getData(),g=this.markerGroupMap,m=g.get(h)||g.set(h,new K_),y=function oY(a,t,e){var o;o=a?Me(a&&a.dimensions,function(h){return ve(ve({},t.getData().getDimensionInfo(t.getData().mapDimension(h))||{}),{name:h,ordinalMeta:null})}):[{name:"value",type:"float"}];var u=new ga(o,e),f=Me(e.get("data"),wt(CS,t));a&&(f=Un(f,wt(wS,a)));var d=v5(!!a,o);return u.initData(f,null,d),u}(d,e,o);o.setData(y),g5(o.getData(),e,f),y.each(function(b){var C=y.getItemModel(b),S=C.getShallow("symbol"),k=C.getShallow("symbolSize"),D=C.getShallow("symbolRotate"),x=C.getShallow("symbolOffset"),T=C.getShallow("symbolKeepAspect");if(et(S)||et(k)||et(D)||et(x)){var E=o.getRawValue(b),P=o.getDataParams(b);et(S)&&(S=S(E,P)),et(k)&&(k=k(E,P)),et(D)&&(D=D(E,P)),et(x)&&(x=x(E,P))}var V=C.getModel("itemStyle").getItemStyle(),N=d_(v,"color");V.fill||(V.fill=N),y.setItemVisual(b,{symbol:S,symbolSize:k,symbolRotate:D,symbolOffset:x,symbolKeepAspect:T,style:V})}),m.updateData(y),this.group.add(m.group),y.eachItemGraphicEl(function(b){b.traverse(function(C){vt(C).dataModel=o})}),this.markKeep(m),m.group.silent=o.get("silent")||e.get("silent")},t.type="markPoint",t}($E),sY=aY,uY=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.createMarkerModelFromSeries=function(e,o,u){return new t(e,o,u)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t}(Jf),cY=uY,SS=Sn(),fY=function(t,e,o,u){var d,f=t.getData();if(Ce(u))d=u;else{var h=u.type;if("min"===h||"max"===h||"average"===h||"median"===h||null!=u.xAxis||null!=u.yAxis){var v=void 0,g=void 0;if(null!=u.yAxis||null!=u.xAxis)v=e.getAxis(null!=u.yAxis?"y":"x"),g=Ui(u.yAxis,u.xAxis);else{var m=rY(u,f,e,t);v=m.valueAxis,g=XE(f,ax(f,m.valueDataDim),h)}var b="x"===v.dim?0:1,C=1-b,S=ot(u),k={coord:[]};S.type=null,S.coord=[],S.coord[C]=-1/0,k.coord[C]=1/0;var D=o.get("precision");D>=0&&Cn(g)&&(g=+g.toFixed(Math.min(D,20))),S.coord[b]=k.coord[b]=g,d=[S,k,{type:h,valueIndex:u.valueIndex,value:g}]}else d=[]}var x=[CS(t,d[0]),CS(t,d[1]),ve({},d[2])];return x[2].type=x[2].type||null,Dt(x[2],x[0]),Dt(x[2],x[1]),x};function ab(a){return!isNaN(a)&&!isFinite(a)}function m5(a,t,e,o){var u=1-a,f=o.dimensions[a];return ab(t[u])&&ab(e[u])&&t[a]===e[a]&&o.getAxis(f).containData(t[a])}function dY(a,t){if("cartesian2d"===a.type){var e=t[0].coord,o=t[1].coord;if(e&&o&&(m5(1,e,o,a)||m5(0,e,o,a)))return!0}return wS(a,t[0])&&wS(a,t[1])}function QE(a,t,e,o,u){var h,f=o.coordinateSystem,d=a.getItemModel(t),v=Ie(d.get("x"),u.getWidth()),g=Ie(d.get("y"),u.getHeight());if(isNaN(v)||isNaN(g)){if(o.getMarkerPosition)h=o.getMarkerPosition(a.getValues(a.dimensions,t));else{var y=a.get((m=f.dimensions)[0],t),b=a.get(m[1],t);h=f.dataToPoint([y,b])}if(ac(f,"cartesian2d")){var m,C=f.getAxis("x"),S=f.getAxis("y");ab(a.get((m=f.dimensions)[0],t))?h[0]=C.toGlobalCoord(C.getExtent()[e?0:1]):ab(a.get(m[1],t))&&(h[1]=S.toGlobalCoord(S.getExtent()[e?0:1]))}isNaN(v)||(h[0]=v),isNaN(g)||(h[1]=g)}else h=[v,g];a.setItemLayout(t,h)}var hY=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.updateTransform=function(e,o,u){o.eachSeries(function(f){var d=Jf.getMarkerModelFromSeries(f,"markLine");if(d){var h=d.getData(),v=SS(d).from,g=SS(d).to;v.each(function(m){QE(v,m,!0,f,u),QE(g,m,!1,f,u)}),h.each(function(m){h.setItemLayout(m,[v.getItemLayout(m),g.getItemLayout(m)])}),this.markerGroupMap.get(f.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,o,u,f){var d=e.coordinateSystem,h=e.id,v=e.getData(),g=this.markerGroupMap,m=g.get(h)||g.set(h,new Fs);this.group.add(m.group);var y=function pY(a,t,e){var o;o=a?Me(a&&a.dimensions,function(g){return ve(ve({},t.getData().getDimensionInfo(t.getData().mapDimension(g))||{}),{name:g,ordinalMeta:null})}):[{name:"value",type:"float"}];var u=new ga(o,e),f=new ga(o,e),d=new ga([],e),h=Me(e.get("data"),wt(fY,t,a,e));a&&(h=Un(h,wt(dY,a)));var v=v5(!!a,o);return u.initData(Me(h,function(g){return g[0]}),null,v),f.initData(Me(h,function(g){return g[1]}),null,v),d.initData(Me(h,function(g){return g[2]})),d.hasItemOption=!0,{from:u,to:f,line:d}}(d,e,o),b=y.from,C=y.to,S=y.line;SS(o).from=b,SS(o).to=C,o.setData(S);var k=o.get("symbol"),D=o.get("symbolSize"),x=o.get("symbolRotate"),T=o.get("symbolOffset");function E(P,V,N){var H=P.getItemModel(V);QE(P,V,N,e,f);var j=H.getModel("itemStyle").getItemStyle();null==j.fill&&(j.fill=d_(v,"color")),P.setItemVisual(V,{symbolKeepAspect:H.get("symbolKeepAspect"),symbolOffset:Ft(H.get("symbolOffset",!0),T[N?0:1]),symbolRotate:Ft(H.get("symbolRotate",!0),x[N?0:1]),symbolSize:Ft(H.get("symbolSize"),D[N?0:1]),symbol:Ft(H.get("symbol",!0),k[N?0:1]),style:j})}Ce(k)||(k=[k,k]),Ce(D)||(D=[D,D]),Ce(x)||(x=[x,x]),Ce(T)||(T=[T,T]),y.from.each(function(P){E(b,P,!0),E(C,P,!1)}),S.each(function(P){var V=S.getItemModel(P).getModel("lineStyle").getLineStyle();S.setItemLayout(P,[b.getItemLayout(P),C.getItemLayout(P)]),null==V.stroke&&(V.stroke=b.getItemVisual(P,"style").fill),S.setItemVisual(P,{fromSymbolKeepAspect:b.getItemVisual(P,"symbolKeepAspect"),fromSymbolOffset:b.getItemVisual(P,"symbolOffset"),fromSymbolRotate:b.getItemVisual(P,"symbolRotate"),fromSymbolSize:b.getItemVisual(P,"symbolSize"),fromSymbol:b.getItemVisual(P,"symbol"),toSymbolKeepAspect:C.getItemVisual(P,"symbolKeepAspect"),toSymbolOffset:C.getItemVisual(P,"symbolOffset"),toSymbolRotate:C.getItemVisual(P,"symbolRotate"),toSymbolSize:C.getItemVisual(P,"symbolSize"),toSymbol:C.getItemVisual(P,"symbol"),style:V})}),m.updateData(S),y.line.eachItemGraphicEl(function(P,V){P.traverse(function(N){vt(N).dataModel=o})}),this.markKeep(m),m.group.silent=o.get("silent")||e.get("silent")},t.type="markLine",t}($E),vY=hY,mY=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.createMarkerModelFromSeries=function(e,o,u){return new t(e,o,u)},t.type="markArea",t.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},t}(Jf),_Y=mY,MS=Sn(),yY=function(t,e,o,u){var f=CS(t,u[0]),d=CS(t,u[1]),h=f.coord,v=d.coord;h[0]=Ui(h[0],-1/0),h[1]=Ui(h[1],-1/0),v[0]=Ui(v[0],1/0),v[1]=Ui(v[1],1/0);var g=gr([{},f,d]);return g.coord=[f.coord,d.coord],g.x0=f.x,g.y0=f.y,g.x1=d.x,g.y1=d.y,g};function kS(a){return!isNaN(a)&&!isFinite(a)}function _5(a,t,e,o){var u=1-a;return kS(t[u])&&kS(e[u])}function y5(a,t){var e=t.coord[0],o=t.coord[1];return!!(ac(a,"cartesian2d")&&e&&o&&(_5(1,e,o)||_5(0,e,o)))||wS(a,{coord:e,x:t.x0,y:t.y0})||wS(a,{coord:o,x:t.x1,y:t.y1})}function ui(a,t,e,o,u){var h,f=o.coordinateSystem,d=a.getItemModel(t),v=Ie(d.get(e[0]),u.getWidth()),g=Ie(d.get(e[1]),u.getHeight());if(isNaN(v)||isNaN(g)){if(o.getMarkerPosition)h=o.getMarkerPosition(a.getValues(e,t));else{var b=[m=a.get(e[0],t),y=a.get(e[1],t)];f.clampData&&f.clampData(b,b),h=f.dataToPoint(b,!0)}if(ac(f,"cartesian2d")){var C=f.getAxis("x"),S=f.getAxis("y"),m=a.get(e[0],t),y=a.get(e[1],t);kS(m)?h[0]=C.toGlobalCoord(C.getExtent()["x0"===e[0]?0:1]):kS(y)&&(h[1]=S.toGlobalCoord(S.getExtent()["y0"===e[1]?0:1]))}isNaN(v)||(h[0]=v),isNaN(g)||(h[1]=g)}else h=[v,g];return h}var vr=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],b5=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.updateTransform=function(e,o,u){o.eachSeries(function(f){var d=Jf.getMarkerModelFromSeries(f,"markArea");if(d){var h=d.getData();h.each(function(v){var g=Me(vr,function(y){return ui(h,v,y,f,u)});h.setItemLayout(v,g),h.getItemGraphicEl(v).setShape("points",g)})}},this)},t.prototype.renderSeries=function(e,o,u,f){var d=e.coordinateSystem,h=e.id,v=e.getData(),g=this.markerGroupMap,m=g.get(h)||g.set(h,{group:new ct});this.group.add(m.group),this.markKeep(m);var y=function C5(a,t,e){var o,u;if(a){var d=Me(a&&a.dimensions,function(g){var m=t.getData();return ve(ve({},m.getDimensionInfo(m.mapDimension(g))||{}),{name:g,ordinalMeta:null})});u=Me(["x0","y0","x1","y1"],function(g,m){return{name:g,type:d[m%2].type}}),o=new ga(u,e)}else o=new ga(u=[{name:"value",type:"float"}],e);var h=Me(e.get("data"),wt(yY,t,a,e));a&&(h=Un(h,wt(y5,a)));var v=a?function(g,m,y,b){return sf(g.coord[Math.floor(b/2)][b%2],u[b])}:function(g,m,y,b){return sf(g.value,u[b])};return o.initData(h,null,v),o.hasItemOption=!0,o}(d,e,o);o.setData(y),y.each(function(b){var C=Me(vr,function(j){return ui(y,b,j,e,f)}),S=d.getAxis("x").scale,k=d.getAxis("y").scale,D=S.getExtent(),x=k.getExtent(),T=[S.parse(y.get("x0",b)),S.parse(y.get("x1",b))],E=[k.parse(y.get("y0",b)),k.parse(y.get("y1",b))];Zi(T),Zi(E),y.setItemLayout(b,{points:C,allClipped:!!(D[0]>T[1]||D[1]E[1]||x[1]=0},t.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={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",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",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"},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}},t}(sn),DS=w5,ip=wt,ob=q,sb=ct,CY=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return de(t,a),t.prototype.init=function(){this.group.add(this._contentGroup=new sb),this.group.add(this._selectorGroup=new sb),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,o,u){var f=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),e.get("show",!0)){var d=e.get("align"),h=e.get("orient");(!d||"auto"===d)&&(d="right"===e.get("left")&&"vertical"===h?"right":"left");var v=e.get("selector",!0),g=e.get("selectorPosition",!0);v&&(!g||"auto"===g)&&(g="horizontal"===h?"end":"start"),this.renderInner(d,e,o,u,v,h,g);var m=e.getBoxLayoutParams(),y={width:u.getWidth(),height:u.getHeight()},b=e.get("padding"),C=oi(m,y,b),S=this.layoutInner(e,d,C,f,v,g),k=oi(rt({width:S.width,height:S.height},m),y,b);this.group.x=k.x-S.x,this.group.y=k.y-S.y,this.group.markRedraw(),this.group.add(this._backgroundEl=vg(S,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,o,u,f,d,h,v){var g=this.getContentGroup(),m=$e(),y=o.get("selectedMode"),b=[];u.eachRawSeries(function(C){!C.get("legendHoverLink")&&b.push(C.id)}),ob(o.getData(),function(C,S){var k=C.get("name");if(!this.newlineDisabled&&(""===k||"\n"===k)){var D=new sb;return D.newline=!0,void g.add(D)}var x=u.getSeriesByName(k)[0];if(!m.get(k))if(x){var T=x.getData(),E=T.getVisual("legendLineStyle")||{},P=T.getVisual("legendIcon"),V=T.getVisual("style");this._createItem(x,k,S,C,o,e,E,V,P,y).on("click",ip(tP,k,null,f,b)).on("mouseover",ip(nP,x.name,null,f,b)).on("mouseout",ip(rP,x.name,null,f,b)),m.set(k,!0)}else u.eachRawSeries(function(H){if(!m.get(k)&&H.legendVisualProvider){var j=H.legendVisualProvider;if(!j.containName(k))return;var Z=j.indexOfName(k),W=j.getItemVisual(Z,"style"),X=j.getItemVisual(Z,"legendIcon"),J=mo(W.fill);J&&0===J[3]&&(J[3]=.2,W=ve(ve({},W),{fill:No(J,"rgba")})),this._createItem(H,k,S,C,o,e,{},W,X,y).on("click",ip(tP,null,k,f,b)).on("mouseover",ip(nP,null,k,f,b)).on("mouseout",ip(rP,null,k,f,b)),m.set(k,!0)}},this)},this),d&&this._createSelector(d,o,f,h,v)},t.prototype._createSelector=function(e,o,u,f,d){var h=this.getSelectorGroup();ob(e,function(g){var m=g.type,y=new dn({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){u.dispatchAction({type:"all"===m?"legendAllSelect":"legendInverseSelect"})}});h.add(y),$i(y,{normal:o.getModel("selectorLabel"),emphasis:o.getModel(["emphasis","selectorLabel"])},{defaultText:g.title}),Yc(y)})},t.prototype._createItem=function(e,o,u,f,d,h,v,g,m,y){var b=e.visualDrawType,C=d.get("itemWidth"),S=d.get("itemHeight"),k=d.isSelected(o),D=f.get("symbolRotate"),x=f.get("symbolKeepAspect"),T=f.get("icon"),E=function is(a,t,e,o,u,f){function d(S,k){"auto"===S.lineWidth&&(S.lineWidth=k.lineWidth>0?2:0),ob(S,function(D,x){"inherit"===S[x]&&(S[x]=k[x])})}var v=t.getModel("itemStyle").getItemStyle(),g=0===a.lastIndexOf("empty",0)?"fill":"stroke";v.decal=o.decal,"inherit"===v.fill&&(v.fill=o[u]),"inherit"===v.stroke&&(v.stroke=o[g]),"inherit"===v.opacity&&(v.opacity=("fill"===u?o:e).opacity),d(v,o);var m=t.getModel("lineStyle"),y=m.getLineStyle();if(d(y,e),"auto"===v.fill&&(v.fill=o.fill),"auto"===v.stroke&&(v.stroke=o.fill),"auto"===y.stroke&&(y.stroke=o.fill),!f){var b=t.get("inactiveBorderWidth");v.lineWidth="auto"===b?o.lineWidth>0&&v[g]?2:0:v.lineWidth,v.fill=t.get("inactiveColor"),v.stroke=t.get("inactiveBorderColor"),y.stroke=m.get("inactiveColor"),y.lineWidth=m.get("inactiveWidth")}return{itemStyle:v,lineStyle:y}}(m=T||m||"roundRect",f,v,g,b,k),P=new sb,V=f.getModel("textStyle");if(!et(e.getLegendIcon)||T&&"inherit"!==T){var N="inherit"===T&&e.getData().getVisual("symbol")?"inherit"===D?e.getData().getVisual("symbolRotate"):D:0;P.add(function cQ(a){var t=a.icon||"roundRect",e=Dr(t,0,0,a.itemWidth,a.itemHeight,a.itemStyle.fill,a.symbolKeepAspect);return e.setStyle(a.itemStyle),e.rotation=(a.iconRotate||0)*Math.PI/180,e.setOrigin([a.itemWidth/2,a.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill="#fff",e.style.lineWidth=2),e}({itemWidth:C,itemHeight:S,icon:m,iconRotate:N,itemStyle:E.itemStyle,lineStyle:E.lineStyle,symbolKeepAspect:x}))}else P.add(e.getLegendIcon({itemWidth:C,itemHeight:S,icon:m,iconRotate:D,itemStyle:E.itemStyle,lineStyle:E.lineStyle,symbolKeepAspect:x}));var H="left"===h?C+5:-5,j=h,Z=d.get("formatter"),W=o;Ne(Z)&&Z?W=Z.replace("{name}",null!=o?o:""):et(Z)&&(W=Z(o));var X=f.get("inactiveColor");P.add(new dn({style:Cr(V,{text:W,x:H,y:S/2,fill:k?V.getTextColor():X,align:j,verticalAlign:"middle"})}));var J=new fn({shape:P.getBoundingRect(),invisible:!0}),ee=f.getModel("tooltip");return ee.get("show")&&ih({el:J,componentModel:d,itemName:o,itemTooltipOption:ee.option}),P.add(J),P.eachChild(function(re){re.silent=!0}),J.silent=!y,this.getContentGroup().add(P),Yc(P),P.__legendDataIndex=u,P},t.prototype.layoutInner=function(e,o,u,f,d,h){var v=this.getContentGroup(),g=this.getSelectorGroup();Hu(e.get("orient"),v,e.get("itemGap"),u.width,u.height);var m=v.getBoundingRect(),y=[-m.x,-m.y];if(g.markRedraw(),v.markRedraw(),d){Hu("horizontal",g,e.get("selectorItemGap",!0));var b=g.getBoundingRect(),C=[-b.x,-b.y],S=e.get("selectorButtonGap",!0),k=e.getOrient().index,D=0===k?"width":"height",x=0===k?"height":"width",T=0===k?"y":"x";"end"===h?C[k]+=m[D]+S:y[k]+=b[D]+S,C[1-k]+=m[x]/2-b[x]/2,g.x=C[0],g.y=C[1],v.x=y[0],v.y=y[1];var E={x:0,y:0};return E[D]=m[D]+S+b[D],E[x]=Math.max(m[x],b[x]),E[T]=Math.min(0,b[T]+C[1-k]),E}return v.x=y[0],v.y=y[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ze);function tP(a,t,e,o){rP(a,t,e,o),e.dispatchAction({type:"legendToggleSelect",name:null!=a?a:t}),nP(a,t,e,o)}function ap(a){for(var e,t=a.getZr().storage.getDisplayList(),o=0,u=t.length;ou[d],D=[-C.x,-C.y];o||(D[f]=m[g]);var x=[0,0],T=[-S.x,-S.y],E=Ft(e.get("pageButtonGap",!0),e.get("itemGap",!0));k&&("end"===e.get("pageButtonPosition",!0)?T[f]+=u[d]-S[d]:x[f]+=S[d]+E),T[1-f]+=C[h]/2-S[h]/2,m.setPosition(D),y.setPosition(x),b.setPosition(T);var V={x:0,y:0};if(V[d]=k?u[d]:C[d],V[h]=Math.max(C[h],S[h]),V[v]=Math.min(0,S[v]+T[1-f]),y.__rectSize=u[d],k){var N={x:0,y:0};N[d]=Math.max(u[d]-S[d]-E,0),N[h]=V[h],y.setClipPath(new fn({shape:N})),y.__rectSize=N[d]}else b.eachChild(function(j){j.attr({invisible:!0,silent:!0})});var H=this._getPageInfo(e);return null!=H.pageIndex&&Ut(m,{x:H.contentPosition[0],y:H.contentPosition[1]},k?e:null),this._updatePageInfoView(e,H),V},t.prototype._pageGo=function(e,o,u){var f=this._getPageInfo(o)[e];null!=f&&u.dispatchAction({type:"legendScroll",scrollDataIndex:f,legendId:o.id})},t.prototype._updatePageInfoView=function(e,o){var u=this._controllerGroup;q(["pagePrev","pageNext"],function(m){var b=null!=o[m+"DataIndex"],C=u.childOfName(m);C&&(C.setStyle("fill",e.get(b?"pageIconColor":"pageIconInactiveColor",!0)),C.cursor=b?"pointer":"default")});var f=u.childOfName("pageText"),d=e.get("pageFormatter"),h=o.pageIndex,v=null!=h?h+1:0,g=o.pageCount;f&&d&&f.setStyle("text",Ne(d)?d.replace("{current}",null==v?"":v+"").replace("{total}",null==g?"":g+""):d({current:v,total:g}))},t.prototype._getPageInfo=function(e){var o=e.get("scrollDataIndex",!0),u=this.getContentGroup(),f=this._containerGroup.__rectSize,d=e.getOrient().index,h=lb[d],v=oP[d],g=this._findTargetItemIndex(o),m=u.children(),y=m[g],b=m.length,C=b?1:0,S={contentPosition:[u.x,u.y],pageCount:C,pageIndex:C-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!y)return S;var k=P(y);S.contentPosition[d]=-k.s;for(var D=g+1,x=k,T=k,E=null;D<=b;++D)(!(E=P(m[D]))&&T.e>x.s+f||E&&!V(E,x.s))&&(x=T.i>x.i?T:E)&&(null==S.pageNextDataIndex&&(S.pageNextDataIndex=x.i),++S.pageCount),T=E;for(D=g-1,x=k,T=k,E=null;D>=-1;--D)(!(E=P(m[D]))||!V(T,E.s))&&x.i=H&&N.s<=H+f}},t.prototype._findTargetItemIndex=function(e){return this._showController?(this.getContentGroup().eachChild(function(d,h){var v=d.__legendDataIndex;null==f&&null!=v&&(f=h),v===e&&(o=h)}),null!=o?o:f):0;var o,f},t.type="legend.scroll",t}(S5),MY=SY;function T5(a){Nt(k5),a.registerComponentModel(xS),a.registerComponentView(MY),function x5(a){a.registerAction("legendScroll","legendscroll",function(t,e){var o=t.scrollDataIndex;null!=o&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(u){u.setScrollDataIndex(o)})})}(a)}var DY=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.type="dataZoom.inside",t.defaultOption=Xc(pg.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),t}(pg),xY=DY,TS=Sn();function A5(a,t,e){TS(a).coordSysRecordMap.each(function(o){var u=o.dataZoomInfoMap.get(t.uid);u&&(u.getRange=e)})}function E5(a,t){if(t){a.removeKey(t.model.uid);var e=t.controller;e&&e.dispose()}}function sa(a,t){a.isDisposed()||a.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:t})}function TY(a,t,e,o){return a.coordinateSystem.containPoint([e,o])}var PY=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return de(t,a),t.prototype.render=function(e,o,u){a.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),A5(u,e,{pan:ze(sP.pan,this),zoom:ze(sP.zoom,this),scrollMove:ze(sP.scrollMove,this)}))},t.prototype.dispose=function(){this._clear(),a.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){(function Ot(a,t){for(var e=TS(a).coordSysRecordMap,o=e.keys(),u=0;u0?v.pixelStart+v.pixelLength-v.pixel:v.pixel-v.pixelStart)/v.pixelLength*(d[1]-d[0])+d[0],m=Math.max(1/u.scale,0);d[0]=(d[0]-g)*m+g,d[1]=(d[1]-g)*m+g;var y=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();if(Qv(0,d,[0,100],0,y.minSpan,y.maxSpan),this.range=d,f[0]!==d[0]||f[1]!==d[1])return d}},pan:P5(function(a,t,e,o,u,f){var d=lP[o]([f.oldX,f.oldY],[f.newX,f.newY],t,u,e);return d.signal*(a[1]-a[0])*d.pixel/d.pixelLength}),scrollMove:P5(function(a,t,e,o,u,f){return lP[o]([0,0],[f.scrollDelta,f.scrollDelta],t,u,e).signal*(a[1]-a[0])*f.scrollDelta})};function P5(a){return function(t,e,o,u){var f=this.range,d=f.slice(),h=t.axisModels[0];if(h&&(Qv(a(d,h,t,e,o,u),d,[0,100],"all"),this.range=d,f[0]!==d[0]||f[1]!==d[1]))return d}}var lP={grid:function(t,e,o,u,f){var d=o.axis,h={},v=f.model.coordinateSystem.getRect();return t=t||[0,0],"x"===d.dim?(h.pixel=e[0]-t[0],h.pixelLength=v.width,h.pixelStart=v.x,h.signal=d.inverse?1:-1):(h.pixel=e[1]-t[1],h.pixelLength=v.height,h.pixelStart=v.y,h.signal=d.inverse?-1:1),h},polar:function(t,e,o,u,f){var d=o.axis,h={},v=f.model.coordinateSystem,g=v.getRadiusAxis().getExtent(),m=v.getAngleAxis().getExtent();return t=t?v.pointToCoord(t):[0,0],e=v.pointToCoord(e),"radiusAxis"===o.mainType?(h.pixel=e[0]-t[0],h.pixelLength=g[1]-g[0],h.pixelStart=g[0],h.signal=d.inverse?1:-1):(h.pixel=e[1]-t[1],h.pixelLength=m[1]-m[0],h.pixelStart=m[0],h.signal=d.inverse?-1:1),h},singleAxis:function(t,e,o,u,f){var d=o.axis,h=f.model.coordinateSystem.getRect(),v={};return t=t||[0,0],"horizontal"===d.orient?(v.pixel=e[0]-t[0],v.pixelLength=h.width,v.pixelStart=h.x,v.signal=d.inverse?1:-1):(v.pixel=e[1]-t[1],v.pixelLength=h.height,v.pixelStart=h.y,v.signal=d.inverse?-1:1),v}},OY=PY;function O5(a){gV(a),a.registerComponentModel(xY),a.registerComponentView(OY),function EY(a){a.registerProcessor(a.PRIORITY.PROCESSOR.FILTER,function(t,e){var o=TS(e),u=o.coordSysRecordMap||(o.coordSysRecordMap=$e());u.each(function(f){f.dataZoomInfoMap=null}),t.eachComponent({mainType:"dataZoom",subType:"inside"},function(f){q(iS(f).infoList,function(h){var v=h.model.uid,g=u.get(v)||u.set(v,function Mc(a,t){var e={model:t,containsPoint:wt(TY,t),dispatchAction:wt(sa,a),dataZoomInfoMap:null,controller:null},o=e.controller=new Ih(a.getZr());return q(["pan","zoom","scrollMove"],function(u){o.on(u,function(f){var d=[];e.dataZoomInfoMap.each(function(h){if(f.isAvailableBehavior(h.model.option)){var v=(h.getRange||{})[u],g=v&&v(h.dzReferCoordSysInfo,e.model.mainType,e.controller,f);!h.model.get("disabled",!0)&&g&&d.push({dataZoomId:h.model.id,start:g[0],end:g[1]})}}),d.length&&e.dispatchAction(d)})}),e}(e,h.model));(g.dataZoomInfoMap||(g.dataZoomInfoMap=$e())).set(f.uid,{dzReferCoordSysInfo:h,model:f,getRange:null})})}),u.each(function(f){var h,d=f.controller,v=f.dataZoomInfoMap;if(v){var g=v.keys()[0];null!=g&&(h=v.get(g))}if(h){var m=function AY(a){var t,e="type_",o={type_true:2,type_move:1,type_false:0,type_undefined:-1},u=!0;return a.each(function(f){var d=f.model,h=!d.get("disabled",!0)&&(!d.get("zoomLock",!0)||"move");o[e+h]>o[e+t]&&(t=h),u=u&&d.get("preventDefaultMouseMove",!0)}),{controlType:t,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!u}}}(v);d.enable(m.controlType,m.opt),d.setPointerChecker(f.containsPoint),sh(f,"dispatchAction",h.model.get("throttle",!0),"fixRate")}else E5(u,f)})})}(a)}var IY=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.type="dataZoom.slider",t.layoutMode="box",t.defaultOption=Xc(pg.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"}}}),t}(pg),RY=IY,ub=fn,cb="horizontal",R5="vertical",L5=["line","bar","candlestick","scatter"],F5={easing:"cubicOut",duration:100,delay:0},fQ=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e._displayables={},e}return de(t,a),t.prototype.init=function(e,o){this.api=o,this._onBrush=ze(this._onBrush,this),this._onBrushEnd=ze(this._onBrushEnd,this)},t.prototype.render=function(e,o,u,f){if(a.prototype.render.apply(this,arguments),sh(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show"))return e.noTarget()?(this._clear(),void this.group.removeAll()):((!f||"dataZoom"!==f.type||f.from!==this.uid)&&this._buildView(),void this._updateView());this.group.removeAll()},t.prototype.dispose=function(){this._clear(),a.prototype.dispose.apply(this,arguments)},t.prototype._clear=function(){c_(this,"_dispatchZoomAction");var e=this.api.getZr();e.off("mousemove",this._onBrush),e.off("mouseup",this._onBrushEnd)},t.prototype._buildView=function(){var e=this.group;e.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var o=this._displayables.sliderGroup=new ct;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(o),this._positionGroup()},t.prototype._resetLocation=function(){var e=this.dataZoomModel,o=this.api,f=e.get("brushSelect")?7:0,d=this._findCoordRect(),h={width:o.getWidth(),height:o.getHeight()},v=this._orient===cb?{right:h.width-d.x-d.width,top:h.height-30-7-f,width:d.width,height:30}:{right:7,top:d.y,width:30,height:d.height},g=rv(e.option);q(["right","top","width","height"],function(y){"ph"===g[y]&&(g[y]=v[y])});var m=oi(g,h);this._location={x:m.x,y:m.y},this._size=[m.width,m.height],this._orient===R5&&this._size.reverse()},t.prototype._positionGroup=function(){var e=this.group,o=this._location,u=this._orient,f=this.dataZoomModel.getFirstTargetAxisModel(),d=f&&f.get("inverse"),h=this._displayables.sliderGroup,v=(this._dataShadowInfo||{}).otherAxisInverse;h.attr(u!==cb||d?u===cb&&d?{scaleY:v?1:-1,scaleX:-1}:u!==R5||d?{scaleY:v?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:v?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:v?1:-1,scaleX:1});var g=e.getBoundingRect([h]);e.x=o.x-g.x,e.y=o.y-g.y,e.markRedraw()},t.prototype._getViewExtent=function(){return[0,this._size[0]]},t.prototype._renderBackground=function(){var e=this.dataZoomModel,o=this._size,u=this._displayables.sliderGroup,f=e.get("brushSelect");u.add(new ub({silent:!0,shape:{x:0,y:0,width:o[0],height:o[1]},style:{fill:e.get("backgroundColor")},z2:-40}));var d=new ub({shape:{x:0,y:0,width:o[0],height:o[1]},style:{fill:"transparent"},z2:0,onclick:ze(this._onClickPanel,this)}),h=this.api.getZr();f?(d.on("mousedown",this._onBrushStart,this),d.cursor="crosshair",h.on("mousemove",this._onBrush),h.on("mouseup",this._onBrushEnd)):(h.off("mousemove",this._onBrush),h.off("mouseup",this._onBrushEnd)),u.add(d)},t.prototype._renderDataShadow=function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],e){var o=this._size,u=this._shadowSize||[],f=e.series,d=f.getRawData(),h=f.getShadowDim?f.getShadowDim():e.otherDim;if(null!=h){var v=this._shadowPolygonPts,g=this._shadowPolylinePts;if(d!==this._shadowData||h!==this._shadowDim||o[0]!==u[0]||o[1]!==u[1]){var m=d.getDataExtent(h),y=.3*(m[1]-m[0]);m=[m[0]-y,m[1]+y];var E,b=[0,o[1]],S=[[o[0],0],[0,0]],k=[],D=o[0]/(d.count()-1),x=0,T=Math.round(d.count()/o[0]);d.each([h],function(j,Z){if(T>0&&Z%T)x+=D;else{var W=null==j||isNaN(j)||""===j,X=W?0:wn(j,m,b,!0);W&&!E&&Z?(S.push([S[S.length-1][0],0]),k.push([k[k.length-1][0],0])):!W&&E&&(S.push([x,0]),k.push([x,0])),S.push([x,X]),k.push([x,X]),x+=D,E=W}}),v=this._shadowPolygonPts=S,g=this._shadowPolylinePts=k}this._shadowData=d,this._shadowDim=h,this._shadowSize=[o[0],o[1]];for(var Z,W,X,J,P=this.dataZoomModel,N=0;N<3;N++){var H=(Z=void 0,W=void 0,void 0,void 0,Z=P.getModel(1===N?"selectedDataBackground":"dataBackground"),W=new ct,X=new Ia({shape:{points:v},segmentIgnoreThreshold:1,style:Z.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),J=new Ra({shape:{points:g},segmentIgnoreThreshold:1,style:Z.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19}),W.add(X),W.add(J),W);this._displayables.sliderGroup.add(H),this._displayables.dataShadowSegs.push(H)}}}},t.prototype._prepareDataShadowInfo=function(){var e=this.dataZoomModel,o=e.get("showDataShadow");if(!1!==o){var u,f=this.ecModel;return e.eachTargetAxis(function(d,h){q(e.getAxisProxy(d,h).getTargetSeriesModels(),function(g){if(!(u||!0!==o&&Ct(L5,g.get("type"))<0)){var b,m=f.getComponent(yu(d),h).axis,y=function dQ(a){return{x:"y",y:"x",radius:"angle",angle:"radius"}[a]}(d),C=g.coordinateSystem;null!=y&&C.getOtherAxis&&(b=C.getOtherAxis(m).inverse),y=g.getData().mapDimension(y),u={thisAxis:m,series:g,thisDim:d,otherDim:y,otherAxisInverse:b}}},this)},this),u}},t.prototype._renderHandle=function(){var e=this.group,o=this._displayables,u=o.handles=[null,null],f=o.handleLabels=[null,null],d=this._displayables.sliderGroup,h=this._size,v=this.dataZoomModel,g=this.api,m=v.get("borderRadius")||0,y=v.get("brushSelect"),b=o.filler=new ub({silent:y,style:{fill:v.get("fillerColor")},textConfig:{position:"inside"}});d.add(b),d.add(new ub({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:h[0],height:h[1],r:m},style:{stroke:v.get("dataBackgroundColor")||v.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),q([0,1],function(E){var P=v.get("handleIcon");!wC[P]&&P.indexOf("path://")<0&&P.indexOf("image://")<0&&(P="path://"+P);var V=Dr(P,-1,0,2,2,null,!0);V.attr({cursor:NY(this._orient),draggable:!0,drift:ze(this._onDragMove,this,E),ondragend:ze(this._onDragEnd,this),onmouseover:ze(this._showDataInfo,this,!0),onmouseout:ze(this._showDataInfo,this,!1),z2:5});var N=V.getBoundingRect(),H=v.get("handleSize");this._handleHeight=Ie(H,this._size[1]),this._handleWidth=N.width/N.height*this._handleHeight,V.setStyle(v.getModel("handleStyle").getItemStyle()),V.style.strokeNoScale=!0,V.rectHover=!0,V.ensureState("emphasis").style=v.getModel(["emphasis","handleStyle"]).getItemStyle(),Yc(V);var j=v.get("handleColor");null!=j&&(V.style.fill=j),d.add(u[E]=V);var Z=v.getModel("textStyle");e.add(f[E]=new dn({silent:!0,invisible:!0,style:Cr(Z,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:Z.getTextColor(),font:Z.getFont()}),z2:10}))},this);var C=b;if(y){var S=Ie(v.get("moveHandleSize"),h[1]),k=o.moveHandle=new fn({style:v.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:h[1]-.5,height:S}}),D=.8*S,x=o.moveHandleIcon=Dr(v.get("moveHandleIcon"),-D/2,-D/2,D,D,"#fff",!0);x.silent=!0,x.y=h[1]+S/2-.5,k.ensureState("emphasis").style=v.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var T=Math.min(h[1]/2,Math.max(S,10));(C=o.moveZone=new fn({invisible:!0,shape:{y:h[1]-T,height:S+T}})).on("mouseover",function(){g.enterEmphasis(k)}).on("mouseout",function(){g.leaveEmphasis(k)}),d.add(k),d.add(x),d.add(C)}C.attr({draggable:!0,cursor:NY(this._orient),drift:ze(this._onDragMove,this,"all"),ondragstart:ze(this._showDataInfo,this,!0),ondragend:ze(this._onDragEnd,this),onmouseover:ze(this._showDataInfo,this,!0),onmouseout:ze(this._showDataInfo,this,!1)})},t.prototype._resetInterval=function(){var e=this._range=this.dataZoomModel.getPercentRange(),o=this._getViewExtent();this._handleEnds=[wn(e[0],[0,100],o,!0),wn(e[1],[0,100],o,!0)]},t.prototype._updateInterval=function(e,o){var u=this.dataZoomModel,f=this._handleEnds,d=this._getViewExtent(),h=u.findRepresentativeAxisProxy().getMinMaxSpan(),v=[0,100];Qv(o,f,d,u.get("zoomLock")?"all":e,null!=h.minSpan?wn(h.minSpan,v,d,!0):null,null!=h.maxSpan?wn(h.maxSpan,v,d,!0):null);var g=this._range,m=this._range=Zi([wn(f[0],d,v,!0),wn(f[1],d,v,!0)]);return!g||g[0]!==m[0]||g[1]!==m[1]},t.prototype._updateView=function(e){var o=this._displayables,u=this._handleEnds,f=Zi(u.slice()),d=this._size;q([0,1],function(C){var k=this._handleHeight;o.handles[C].attr({scaleX:k/2,scaleY:k/2,x:u[C]+(C?-1:1),y:d[1]/2-k/2})},this),o.filler.setShape({x:f[0],y:0,width:f[1]-f[0],height:d[1]});var h={x:f[0],width:f[1]-f[0]};o.moveHandle&&(o.moveHandle.setShape(h),o.moveZone.setShape(h),o.moveZone.getBoundingRect(),o.moveHandleIcon&&o.moveHandleIcon.attr("x",h.x+h.width/2));for(var v=o.dataShadowSegs,g=[0,f[0],f[1],d[0]],m=0;mo[0]||u[1]<0||u[1]>o[1])){var f=this._handleEnds,h=this._updateInterval("all",u[0]-(f[0]+f[1])/2);this._updateView(),h&&this._dispatchZoomAction(!1)}},t.prototype._onBrushStart=function(e){this._brushStart=new Et(e.offsetX,e.offsetY),this._brushing=!0,this._brushStartTime=+new Date},t.prototype._onBrushEnd=function(e){if(this._brushing){var o=this._displayables.brushRect;if(this._brushing=!1,o){o.attr("ignore",!0);var u=o.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(u.width)<5)){var d=this._getViewExtent(),h=[0,100];this._range=Zi([wn(u.x,d,h,!0),wn(u.x+u.width,d,h,!0)]),this._handleEnds=[u.x,u.x+u.width],this._updateView(),this._dispatchZoomAction(!1)}}}},t.prototype._onBrush=function(e){this._brushing&&(It(e.event),this._updateBrushRect(e.offsetX,e.offsetY))},t.prototype._updateBrushRect=function(e,o){var u=this._displayables,d=u.brushRect;d||(d=u.brushRect=new ub({silent:!0,style:this.dataZoomModel.getModel("brushStyle").getItemStyle()}),u.sliderGroup.add(d)),d.attr("ignore",!1);var h=this._brushStart,v=this._displayables.sliderGroup,g=v.transformCoordToLocal(e,o),m=v.transformCoordToLocal(h.x,h.y),y=this._size;g[0]=Math.max(Math.min(y[0],g[0]),0),d.setShape({x:m[0],y:0,width:g[0]-m[0],height:y[1]})},t.prototype._dispatchZoomAction=function(e){var o=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:e?F5:null,start:o[0],end:o[1]})},t.prototype._findCoordRect=function(){var e,o=iS(this.dataZoomModel).infoList;if(!e&&o.length){var u=o[0].model.coordinateSystem;e=u.getRect&&u.getRect()}if(!e){var f=this.api.getWidth(),d=this.api.getHeight();e={x:.2*f,y:.2*d,width:.6*f,height:.6*d}}return e},t.type="dataZoom.slider",t}(vV);function NY(a){return"vertical"===a?"ns-resize":"ew-resize"}var hQ=fQ;function cP(a){a.registerComponentModel(RY),a.registerComponentView(hQ),gV(a)}var pQ={get:function(t,e,o){var u=ot((vQ[t]||{})[e]);return o&&Ce(u)?u[u.length-1]:u}},vQ={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]}},AS=pQ,N5=pn.mapVisual,uo=pn.eachVisual,B5=Ce,V5=q,H5=Zi,z5=wn,zs=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return de(t,a),t.prototype.init=function(e,o,u){this.mergeDefaultAndTheme(e,u)},t.prototype.optionUpdated=function(e,o){!o&&qV(this.option,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var o=this.stateList;e=ze(e,this),this.controllerVisuals=vS(this.option.controller,o,e),this.targetVisuals=vS(this.option.target,o,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this.option.seriesIndex,o=[];return null==e||"all"===e?this.ecModel.eachSeries(function(u,f){o.push(f)}):o=Xn(e),o},t.prototype.eachTargetSeries=function(e,o){q(this.getTargetSeriesIndices(),function(u){var f=this.ecModel.getSeriesByIndex(u);f&&e.call(o,f)},this)},t.prototype.isTargetSeries=function(e){var o=!1;return this.eachTargetSeries(function(u){u===e&&(o=!0)}),o},t.prototype.formatValueText=function(e,o,u){var g,f=this.option,d=f.precision,h=this.dataBound,v=f.formatter;u=u||["<",">"],Ce(e)&&(e=e.slice(),g=!0);var m=o?e:g?[y(e[0]),y(e[1])]:y(e);return Ne(v)?v.replace("{value}",g?m[0]:m).replace("{value2}",g?m[1]:m):et(v)?g?v(e[0],e[1]):v(e):g?e[0]===h[0]?u[0]+" "+m[1]:e[1]===h[1]?u[1]+" "+m[0]:m[0]+" - "+m[1]:m;function y(b){return b===h[0]?"min":b===h[1]?"max":(+b).toFixed(Math.min(d,20))}},t.prototype.resetExtent=function(){var e=this.option,o=H5([e.min,e.max]);this._dataExtent=o},t.prototype.getDataDimensionIndex=function(e){var o=this.option.dimension;if(null!=o)return e.getDimensionIndex(o);for(var u=e.dimensions,f=u.length-1;f>=0;f--){var h=e.getDimensionInfo(u[f]);if(!h.isCalculationCoord)return h.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,o=this.option,u={inRange:o.inRange,outOfRange:o.outOfRange},f=o.target||(o.target={}),d=o.controller||(o.controller={});Dt(f,u),Dt(d,u);var h=this.isCategory();function v(y){B5(o.color)&&!y.inRange&&(y.inRange={color:o.color.slice().reverse()}),y.inRange=y.inRange||{color:e.get("gradientColor")}}v.call(this,f),v.call(this,d),function g(y,b,C){var S=y[b],k=y[C];S&&!k&&(k=y[C]={},V5(S,function(D,x){if(pn.isValidType(x)){var T=AS.get(x,"inactive",h);null!=T&&(k[x]=T,"color"===x&&!k.hasOwnProperty("opacity")&&!k.hasOwnProperty("colorAlpha")&&(k.opacity=[0,0]))}}))}.call(this,f,"inRange","outOfRange"),function m(y){var b=(y.inRange||{}).symbol||(y.outOfRange||{}).symbol,C=(y.inRange||{}).symbolSize||(y.outOfRange||{}).symbolSize,S=this.get("inactiveColor"),D=this.getItemSymbol()||"roundRect";V5(this.stateList,function(x){var T=this.itemSize,E=y[x];E||(E=y[x]={color:h?S:[S]}),null==E.symbol&&(E.symbol=b&&ot(b)||(h?D:[D])),null==E.symbolSize&&(E.symbolSize=C&&ot(C)||(h?T[0]:[T[0],T[0]])),E.symbol=N5(E.symbol,function(N){return"none"===N?D:N});var P=E.symbolSize;if(null!=P){var V=-1/0;uo(P,function(N){N>V&&(V=N)}),E.symbolSize=N5(P,function(N){return z5(N,[0,V],[0,T[0]],!0)})}},this)}.call(this,d)},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!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"}},t}(sn),ES=zs,G5=[20,140],fP=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.optionUpdated=function(e,o){a.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(u){u.mappingMethod="linear",u.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){a.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=G5[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=G5[1])},t.prototype._resetRange=function(){var e=this.getExtent(),o=this.option.range;!o||o.auto?(e.auto=1,this.option.range=e):Ce(o)&&(o[0]>o[1]&&o.reverse(),o[0]=Math.max(o[0],e[0]),o[1]=Math.min(o[1],e[1]))},t.prototype.completeVisualOption=function(){a.prototype.completeVisualOption.apply(this,arguments),q(this.stateList,function(e){var o=this.option.controller[e].symbolSize;o&&o[0]!==o[1]&&(o[0]=o[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),o=Zi((this.get("range")||[]).slice());return o[0]>e[1]&&(o[0]=e[1]),o[1]>e[1]&&(o[1]=e[1]),o[0]=u[1]||e<=o[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var o=[];return this.eachTargetSeries(function(u){var f=[],d=u.getData();d.each(this.getDataDimensionIndex(d),function(h,v){e[0]<=h&&h<=e[1]&&f.push(v)},this),o.push({seriesId:u.id,dataIndex:f})},this),o},t.prototype.getVisualMeta=function(e){var o=U5(0,0,this.getExtent()),u=U5(0,0,this.option.range.slice()),f=[];function d(C,S){f.push({value:C,color:e(C,S)})}for(var h=0,v=0,g=u.length,m=o.length;ve[1])break;f.push({color:this.getControllerVisual(v,"color",o),offset:h/100})}return f.push({color:this.getControllerVisual(e[1],"color",o),offset:1}),f},t.prototype._createBarPoints=function(e,o){var u=this.visualMapModel.itemSize;return[[u[0]-o[0],e[0]],[u[0],e[0]],[u[0],e[1]],[u[0]-o[1],e[1]]]},t.prototype._createBarGroup=function(e){var o=this._orient,u=this.visualMapModel.get("inverse");return new ct("horizontal"!==o||u?"horizontal"===o&&u?{scaleX:"bottom"===e?-1:1,rotation:-Math.PI/2}:"vertical"!==o||u?{scaleX:"left"===e?1:-1}:{scaleX:"left"===e?1:-1,scaleY:-1}:{scaleX:"bottom"===e?1:-1,rotation:Math.PI/2})},t.prototype._updateHandle=function(e,o){if(this._useHandle){var u=this._shapes,f=this.visualMapModel,d=u.handleThumbs,h=u.handleLabels,v=f.itemSize,g=f.getExtent();VY([0,1],function(m){var y=d[m];y.setStyle("fill",o.handlesColor[m]),y.y=e[m];var b=bu(e[m],[0,v[1]],g,!0),C=this.getControllerVisual(b,"symbolSize");y.scaleX=y.scaleY=C/v[0],y.x=v[0]-C/2;var S=Cl(u.handleLabelPoints[m],df(y,this.group));h[m].setStyle({x:S[0],y:S[1],text:f.formatValueText(this._dataInterval[m]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",u.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,o,u,f){var d=this.visualMapModel,h=d.getExtent(),v=d.itemSize,g=[0,v[1]],m=this._shapes,y=m.indicator;if(y){y.attr("invisible",!1);var C=this.getControllerVisual(e,"color",{convertOpacityToAlpha:!0}),S=this.getControllerVisual(e,"symbolSize"),k=bu(e,h,g,!0),D=v[0]-S/2,x={x:y.x,y:y.y};y.y=k,y.x=D;var T=Cl(m.indicatorLabelPoint,df(y,this.group)),E=m.indicatorLabel;E.attr("invisible",!1);var P=this._applyTransform("left",m.mainGroup),N="horizontal"===this._orient;E.setStyle({text:(u||"")+d.formatValueText(o),verticalAlign:N?P:"middle",align:N?"center":P});var H={x:D,y:k,style:{fill:C}},j={style:{x:T[0],y:T[1]}};if(d.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var Z={duration:100,easing:"cubicInOut",additive:!0};y.x=x.x,y.y=x.y,y.animateTo(H,Z),E.animateTo(j,Z)}else y.attr(H),E.attr(j);this._firstShowIndicator=!1;var W=this._shapes.handleLabels;if(W)for(var X=0;Xd[1]&&(y[1]=1/0),o&&(y[0]===-1/0?this._showIndicator(m,y[1],"< ",v):y[1]===1/0?this._showIndicator(m,y[0],"> ",v):this._showIndicator(m,m,"\u2248 ",v));var b=this._hoverLinkDataIndices,C=[];(o||vP(u))&&(C=this._hoverLinkDataIndices=u.findTargetDataIndices(y));var S=function Ez(a,t){var e={},o={};return u(a||[],e),u(t||[],o,e),[f(e),f(o)];function u(d,h,v){for(var g=0,m=d.length;g=0&&(d.dimension=h,u.push(d))}}),t.getData().setVisual("visualMeta",u)}}];function jY(a,t,e,o){for(var u=t.targetVisuals[o],f=pn.prepareVisualTypes(u),d={color:d_(a.getData(),"color")},h=0,v=f.length;h0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"}),a.registerAction(mQ,db),q(UY,function(t){a.registerVisual(a.PRIORITY.VISUAL.COMPONENT,t)}),a.registerPreprocessor(WY))}function Q5(a){a.registerComponentModel(j5),a.registerComponentView(gQ),$5(a)}var YY=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return de(t,a),t.prototype.optionUpdated=function(e,o){a.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var u=this._mode=this._determineMode();this._pieceList=[],qY[this._mode].call(this,this._pieceList),this._resetSelected(e,o);var f=this.option.categories;this.resetVisual(function(d,h){"categories"===u?(d.mappingMethod="category",d.categories=ot(f)):(d.dataExtent=this.getExtent(),d.mappingMethod="piecewise",d.pieceList=Me(this._pieceList,function(v){return v=ot(v),"inRange"!==h&&(v.visual=null),v}))})},t.prototype.completeVisualOption=function(){var e=this.option,o={},u=pn.listVisualTypes(),f=this.isCategory();function d(h,v,g){return h&&h[v]&&h[v].hasOwnProperty(g)}q(e.pieces,function(h){q(u,function(v){h.hasOwnProperty(v)&&(o[v]=1)})}),q(o,function(h,v){var g=!1;q(this.stateList,function(m){g=g||d(e,m,v)||d(e.target,m,v)},this),!g&&q(this.stateList,function(m){(e[m]||(e[m]={}))[v]=AS.get(v,"inRange"===m?"active":"inactive",f)})},this),a.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,o){var u=this.option,f=this._pieceList,d=(o?u:e).selected||{};if(u.selected=d,q(f,function(v,g){var m=this.getSelectedMapKey(v);d.hasOwnProperty(m)||(d[m]=!0)},this),"single"===u.selectedMode){var h=!1;q(f,function(v,g){var m=this.getSelectedMapKey(v);d[m]&&(h?d[m]=!1:h=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return"categories"===this._mode?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=ot(e)},t.prototype.getValueState=function(e){var o=pn.findPieceIndex(e,this._pieceList);return null!=o&&this.option.selected[this.getSelectedMapKey(this._pieceList[o])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var o=[],u=this._pieceList;return this.eachTargetSeries(function(f){var d=[],h=f.getData();h.each(this.getDataDimensionIndex(h),function(v,g){pn.findPieceIndex(v,u)===e&&d.push(g)},this),o.push({seriesId:f.id,dataIndex:d})},this),o},t.prototype.getRepresentValue=function(e){var o;if(this.isCategory())o=e.value;else if(null!=e.value)o=e.value;else{var u=e.interval||[];o=u[0]===-1/0&&u[1]===1/0?0:(u[0]+u[1])/2}return o},t.prototype.getVisualMeta=function(e){if(!this.isCategory()){var o=[],u=["",""],f=this,h=this._pieceList.slice();if(h.length){var v=h[0].interval[0];v!==-1/0&&h.unshift({interval:[-1/0,v]}),(v=h[h.length-1].interval[1])!==1/0&&h.push({interval:[v,1/0]})}else h.push({interval:[-1/0,1/0]});var g=-1/0;return q(h,function(m){var y=m.interval;y&&(y[0]>g&&d([g,y[0]],"outOfRange"),d(y.slice()),g=y[1])},this),{stops:o,outerColors:u}}function d(m,y){var b=f.getRepresentValue({interval:m});y||(y=f.getValueState(b));var C=e(b,y);m[0]===-1/0?u[0]=C:m[1]===1/0?u[1]=C:o.push({value:m[0],color:C},{value:m[1],color:C})}},t.type="visualMap.piecewise",t.defaultOption=Xc(ES.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}),t}(ES),qY={splitNumber:function(t){var e=this.option,o=Math.min(e.precision,20),u=this.getExtent(),f=e.splitNumber;f=Math.max(parseInt(f,10),1),e.splitNumber=f;for(var d=(u[1]-u[0])/f;+d.toFixed(o)!==d&&o<5;)o++;e.precision=o,d=+d.toFixed(o),e.minOpen&&t.push({interval:[-1/0,u[0]],close:[0,0]});for(var h=0,v=u[0];h","\u2265"][u[0]]])},this)}};function J5(a,t){var e=a.inverse;("vertical"===a.orient?!e:e)&&t.reverse()}var ZY=YY,XY=function(a){function t(){var e=null!==a&&a.apply(this,arguments)||this;return e.type=t.type,e}return de(t,a),t.prototype.doRender=function(){var e=this.group;e.removeAll();var o=this.visualMapModel,u=o.get("textGap"),f=o.textStyleModel,d=f.getFont(),h=f.getTextColor(),v=this._getItemAlign(),g=o.itemSize,m=this._getViewData(),y=m.endsText,b=Ui(o.get("showLabel",!0),!y);y&&this._renderEndsText(e,y[0],g,b,v),q(m.viewPieceList,function(C){var S=C.piece,k=new ct;k.onclick=ze(this._onItemClick,this,S),this._enableHoverLink(k,C.indexInModelPieceList);var D=o.getRepresentValue(S);if(this._createItemSymbol(k,D,[0,0,g[0],g[1]]),b){var x=this.visualMapModel.getValueState(D);k.add(new dn({style:{x:"right"===v?-u:g[0]+u,y:g[1]/2,text:S.text,verticalAlign:"middle",align:v,font:d,fill:h,opacity:"outOfRange"===x?.5:1}}))}e.add(k)},this),y&&this._renderEndsText(e,y[1],g,b,v),Hu(o.get("orient"),e,o.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,o){var u=this;e.on("mouseover",function(){return f("highlight")}).on("mouseout",function(){return f("downplay")});var f=function(h){var v=u.visualMapModel;v.option.hoverLink&&u.api.dispatchAction({type:h,batch:fb(v.findTargetDataIndices(o),v)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,o=e.option;if("vertical"===o.orient)return dP(e,this.api,e.itemSize);var u=o.align;return(!u||"auto"===u)&&(u="left"),u},t.prototype._renderEndsText=function(e,o,u,f,d){if(o){var h=new ct;h.add(new dn({style:Cr(this.visualMapModel.textStyleModel,{x:f?"right"===d?u[0]:0:u[0]/2,y:u[1]/2,verticalAlign:"middle",align:f?d:"center",text:o})})),e.add(h)}},t.prototype._getViewData=function(){var e=this.visualMapModel,o=Me(e.getPieceList(),function(h,v){return{piece:h,indexInModelPieceList:v}}),u=e.get("text"),f=e.get("orient"),d=e.get("inverse");return("horizontal"===f?d:!d)?o.reverse():u&&(u=u.slice().reverse()),{viewPieceList:o,endsText:u}},t.prototype._createItemSymbol=function(e,o,u){e.add(Dr(this.getControllerVisual(o,"symbol"),u[0],u[1],u[2],u[3],this.getControllerVisual(o,"color")))},t.prototype._onItemClick=function(e){var o=this.visualMapModel,u=o.option,f=ot(u.selected),d=o.getSelectedMapKey(e);"single"===u.selectedMode?(f[d]=!0,q(f,function(h,v){f[v]=v===d})):f[d]=!f[d],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:f})},t.type="visualMap.piecewise",t}(W5),KY=XY;function eH(a){a.registerComponentModel(ZY),a.registerComponentView(KY),$5(a)}var _Q={label:{enabled:!0},decal:{show:!1}},tH=Sn(),yQ={};function QY(a,t){var e=a.getModel("aria");if(e.get("enabled")){var o=ot(_Q);Dt(o.label,a.getLocaleModel().get("aria"),!1),Dt(e.option,o,!1),function u(){if(e.getModel("decal").get("show")){var y=$e();a.eachSeries(function(b){if(!b.isColorBySeries()){var C=y.get(b.type);C||y.set(b.type,C={}),tH(b).scope=C}}),a.eachRawSeries(function(b){if(!a.isSeriesFiltered(b))if(et(b.enableAriaDecal))b.enableAriaDecal();else{var C=b.getData();if(b.isColorBySeries()){var T=Hk(b.ecModel,b.name,yQ,a.getSeriesCount()),E=C.getVisual("decal");C.setVisual("decal",P(E,T))}else{var S=b.getRawData(),k={},D=tH(b).scope;C.each(function(V){var N=C.getRawIndex(V);k[N]=V});var x=S.count();S.each(function(V){var N=k[V],H=S.getName(V)||V+"",j=Hk(b.ecModel,H,D,x),Z=C.getItemVisual(N,"decal");C.setItemVisual(N,"decal",P(Z,j))})}}function P(V,N){var H=V?ve(ve({},N),V):N;return H.dirty=!0,H}})}}(),function f(){var g=a.getLocaleModel().get("aria"),m=e.getModel("label");if(m.option=rt(m.option,g),m.get("enabled")){var y=t.getZr().dom;if(m.get("description"))return void y.setAttribute("aria-label",m.get("description"));var D,b=a.getSeriesCount(),C=m.get(["data","maxCount"])||10,S=m.get(["series","maxCount"])||10,k=Math.min(b,S);if(!(b<1)){var x=function h(){var g=a.get("title");return g&&g.length&&(g=g[0]),g&&g.text}();if(x)D=d(m.get(["general","withTitle"]),{title:x});else D=m.get(["general","withoutTitle"]);var E=[];D+=d(m.get(b>1?["series","multiple","prefix"]:["series","single","prefix"]),{seriesCount:b}),a.eachSeries(function(j,Z){if(Z1?["series","multiple",J]:["series","single",J]),{seriesId:j.seriesIndex,seriesName:j.get("name"),seriesType:v(j.subType)});var ee=j.getData();ee.count()>C?W+=d(m.get(["data","partialData"]),{displayCnt:C}):W+=m.get(["data","allData"]);for(var ie=m.get(["data","separator","middle"]),ce=m.get(["data","separator","end"]),me=[],pe=0;pe":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},CQ=function(){function a(t){null==(this._condVal=Ne(t)?new RegExp(t):KH(t)?t:null)&&Pn("")}return a.prototype.evaluate=function(t){var e=typeof t;return Ne(e)?this._condVal.test(t):!!Cn(e)&&this._condVal.test(t+"")},a}(),wQ=function(){function a(){}return a.prototype.evaluate=function(){return this.value},a}(),eq=function(){function a(){}return a.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&o.push(u),u=[ee,re]}function m(ee,re,ie,ce){Sg(ee,ie)&&Sg(re,ce)||u.push(ee,re,ie,ce,ie,ce)}for(var b,C,S,k,D=0;Dj:X2&&o.push(u),o}function yP(a,t,e,o,u,f,d,h,v,g){if(Sg(a,e)&&Sg(t,o)&&Sg(u,d)&&Sg(f,h))v.push(d,h);else{var m=2/g,y=m*m,b=d-a,C=h-t,S=Math.sqrt(b*b+C*C);b/=S,C/=S;var k=e-a,D=o-t,x=u-d,T=f-h,E=k*k+D*D,P=x*x+T*T;if(E=0&&P-N*N=0)v.push(d,h);else{var Z=[],W=[];Fr(a,e,u,d,.5,Z),Fr(t,o,f,h,.5,W),yP(Z[0],W[0],Z[1],W[1],Z[2],W[2],Z[3],W[3],v,g),yP(Z[4],W[4],Z[5],W[5],Z[6],W[6],Z[7],W[7],v,g)}}}}function iH(a,t,e){var f=Math.abs(a[t]/a[1-t]),d=Math.ceil(Math.sqrt(f*e)),h=Math.floor(e/d);0===h&&(h=1,d=e);for(var v=[],g=0;g0)for(g=0;gMath.abs(g),y=iH([v,g],m?0:1,t),b=(m?h:g)/y.length,C=0;C1?null:new Et(k*v+a,k*g+t)}function kQ(a,t,e){var o=new Et;Et.sub(o,e,t),o.normalize();var u=new Et;return Et.sub(u,a,t),u.dot(o)}function op(a,t){var e=a[a.length-1];e&&e[0]===t[0]&&e[1]===t[1]||a.push(t)}function sp(a){var t=a.points,e=[],o=[];mm(t,e,o);var u=new zt(e[0],e[1],o[0]-e[0],o[1]-e[1]),f=u.width,d=u.height,h=u.x,v=u.y,g=new Et,m=new Et;return f>d?(g.x=m.x=h+f/2,g.y=v,m.y=v+d):(g.y=m.y=v+d/2,g.x=h,m.x=h+f),function vb(a,t,e){for(var o=a.length,u=[],f=0;f0)for(var V=o/e,N=-o/2;N<=o/2;N+=V){var H=Math.sin(N),j=Math.cos(N),Z=0;for(E=0;E0;g/=2){var m=0,y=0;(a&g)>0&&(m=1),(t&g)>0&&(y=1),h+=g*g*(3*m^y),0===y&&(1===m&&(a=g-1-a,t=g-1-t),v=a,a=t,t=v)}return h}function wP(a){var t=1/0,e=1/0,o=-1/0,u=-1/0,f=Me(a,function(h){var v=h.getBoundingRect(),g=h.getComputedTransform(),m=v.x+v.width/2+(g?g[4]:0),y=v.y+v.height/2+(g?g[5]:0);return t=Math.min(m,t),e=Math.min(y,e),o=Math.max(m,o),u=Math.max(y,u),[m,y]});return Me(f,function(h,v){return{cp:h,z:gq(h[0],h[1],t,e,o,u),path:a[v]}}).sort(function(h,v){return h.z-v.z}).map(function(h){return h.path})}function SP(a){return function lH(a,t){var u,e=[],o=a.shape;switch(a.type){case"rect":(function oH(a,t,e){for(var o=a.width,u=a.height,f=o>u,d=iH([o,u],f?0:1,t),h=f?"width":"height",v=f?"height":"width",g=f?"x":"y",m=f?"y":"x",y=a[h]/d.length,b=0;b=0;u--)if(!e[u].many.length){var v=e[h].many;if(v.length<=1){if(!h)return e;h=0}f=v.length;var g=Math.ceil(f/2);e[u].many=v.slice(g,f),e[h].many=v.slice(0,g),h++}return e}var kP={clone:function(t){for(var e=[],o=1-Math.pow(1-t.path.style.opacity,1/t.count),u=0;u0){var g,m,h=o.getModel("universalTransition").get("delay"),v=Object.assign({setToFinal:!0},d);dH(a)&&(g=a,m=t),dH(t)&&(g=t,m=a);for(var b=g?g===a:a.length>t.length,C=g?hH(m,g):hH(b?t:a,[b?a:t]),S=0,k=0;k1e4))for(var u=o.getIndices(),f=function yq(a){for(var t=a.dimensions,e=0;e0&&P.group.traverse(function(N){N instanceof Xt&&!N.animators.length&&N.animateFrom({style:{opacity:0}},V)})})}function gH(a){return a.getModel("universalTransition").get("seriesKey")||a.id}function mH(a){return Ce(a)?a.sort().join(","):a}function up(a){if(a.hostModel)return a.hostModel.getModel("universalTransition").get("divideShape")}function _H(a,t){for(var e=0;e=0&&u.push({data:t.oldData[h],divide:up(t.oldData[h]),dim:d.dimension})}),q(Xn(a.to),function(d){var h=_H(e.updatedSeries,d);if(h>=0){var v=e.updatedSeries[h].getData();f.push({data:v,divide:up(v),dim:d.dimension})}}),u.length>0&&f.length>0&&vH(u,f,o)}(b,u,o,e)});else{var d=function Cq(a,t){var e=$e(),o=$e(),u=$e();return q(a.oldSeries,function(d,h){var v=a.oldData[h],g=gH(d),m=mH(g);o.set(m,v),Ce(g)&&q(g,function(y){u.set(y,{data:v,key:m})})}),q(t.updatedSeries,function(d){if(d.isUniversalTransitionEnabled()&&d.isAnimationEnabled()){var h=d.getData(),v=gH(d),g=mH(v),m=o.get(g);if(m)e.set(g,{oldSeries:[{divide:up(m),data:m}],newSeries:[{divide:up(h),data:h}]});else if(Ce(v)){var y=[];q(v,function(S){var k=o.get(S);k&&y.push({divide:up(k),data:k})}),y.length&&e.set(g,{oldSeries:y,newSeries:[{data:h,divide:up(h)}]})}else{var b=u.get(v);if(b){var C=e.get(b.key);C||(C={oldSeries:[{data:b.data,divide:up(b.data)}],newSeries:[]},e.set(b.key,C)),C.newSeries.push({data:h,divide:up(h)})}}}}),e}(u,o);q(d.keys(),function(b){var C=d.get(b);vH(C.oldSeries,C.newSeries,e)})}q(o.updatedSeries,function(b){b[qm]&&(b[qm]=!1)})}for(var h=t.getSeries(),v=u.oldSeries=[],g=u.oldData=[],m=0;m=200&&_t.status<=299}function Ye(R){try{R.dispatchEvent(new MouseEvent("click"))}catch(se){var _t=document.createEvent("MouseEvents");_t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),R.dispatchEvent(_t)}}var Po=$r.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),L=$r.saveAs||("object"!=typeof window||window!==$r?function(){}:"download"in HTMLAnchorElement.prototype&&!Po?function(_t,se,Er){var Qn=$r.URL||$r.webkitURL,an=document.createElement("a");an.download=se=se||_t.name||"download",an.rel="noopener","string"==typeof _t?(an.href=_t,an.origin!==location.origin?ca(an.href)?qe(_t,se,Er):Ye(an,an.target="_blank"):Ye(an)):(an.href=Qn.createObjectURL(_t),setTimeout(function(){Qn.revokeObjectURL(an.href)},4e4),setTimeout(function(){Ye(an)},0))}:"msSaveOrOpenBlob"in navigator?function(_t,se,Er){if(se=se||_t.name||"download","string"==typeof _t)if(ca(_t))qe(_t,se,Er);else{var Qn=document.createElement("a");Qn.href=_t,Qn.target="_blank",setTimeout(function(){Ye(Qn)})}else navigator.msSaveOrOpenBlob(function Ht(R,_t){return void 0===_t?_t={autoBom:!1}:"object"!=typeof _t&&(console.warn("Deprecated: Expected third argument to be a object"),_t={autoBom:!_t}),_t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(R.type)?new Blob([String.fromCharCode(65279),R],{type:R.type}):R}(_t,Er),se)}:function(_t,se,Er,Qn){if((Qn=Qn||open("","_blank"))&&(Qn.document.title=Qn.document.body.innerText="downloading..."),"string"==typeof _t)return qe(_t,se,Er);var an="application/octet-stream"===_t.type,wu=/constructor/i.test($r.HTMLElement)||$r.safari,ue=/CriOS\/[\d]+/.test(navigator.userAgent);if((ue||an&&wu||Po)&&"undefined"!=typeof FileReader){var de=new FileReader;de.onloadend=function(){var as=de.result;as=ue?as:as.replace(/^data:[^;]*;/,"data:attachment/file;"),Qn?Qn.location.href=as:location=as,Qn=null},de.readAsDataURL(_t)}else{var Ci=$r.URL||$r.webkitURL,qt=Ci.createObjectURL(_t);Qn?Qn.location=qt:location.href=qt,Qn=null,setTimeout(function(){Ci.revokeObjectURL(qt)},4e4)}});$r.saveAs=L.saveAs=L,Ul.exports=L},7854:function(Ul){var $r=function(Ht){"use strict";var Ye,qe=Object.prototype,ca=qe.hasOwnProperty,Po="function"==typeof Symbol?Symbol:{},L=Po.iterator||"@@iterator",R=Po.asyncIterator||"@@asyncIterator",_t=Po.toStringTag||"@@toStringTag";function se(it,Fe,Te){return Object.defineProperty(it,Fe,{value:Te,enumerable:!0,configurable:!0,writable:!0}),it[Fe]}try{se({},"")}catch(it){se=function(Te,At,kn){return Te[At]=kn}}function Er(it,Fe,Te,At){var bn=Object.create((Fe&&Fe.prototype instanceof qt?Fe:qt).prototype),Or=new Qr(At||[]);return bn._invoke=function YS(it,Fe,Te){var At=an;return function(bn,Or){if(At===ue)throw new Error("Generator is already running");if(At===de){if("throw"===bn)throw Or;return Eg()}for(Te.method=bn,Te.arg=Or;;){var Ii=Te.delegate;if(Ii){var ba=yt(Ii,Te);if(ba){if(ba===Ci)continue;return ba}}if("next"===Te.method)Te.sent=Te._sent=Te.arg;else if("throw"===Te.method){if(At===an)throw At=de,Te.arg;Te.dispatchException(Te.arg)}else"return"===Te.method&&Te.abrupt("return",Te.arg);At=ue;var Gr=Qn(it,Fe,Te);if("normal"===Gr.type){if(At=Te.done?de:wu,Gr.arg===Ci)continue;return{value:Gr.arg,done:Te.done}}"throw"===Gr.type&&(At=de,Te.method="throw",Te.arg=Gr.arg)}}}(it,Te,Or),bn}function Qn(it,Fe,Te){try{return{type:"normal",arg:it.call(Fe,Te)}}catch(At){return{type:"throw",arg:At}}}Ht.wrap=Er;var an="suspendedStart",wu="suspendedYield",ue="executing",de="completed",Ci={};function qt(){}function as(){}function xc(){}var Ag={};se(Ag,L,function(){return this});var Pr=Object.getPrototypeOf,ed=Pr&&Pr(Pr(Hn([])));ed&&ed!==qe&&ca.call(ed,L)&&(Ag=ed);var jl=xc.prototype=qt.prototype=Object.create(Ag);function WS(it){["next","throw","return"].forEach(function(Fe){se(it,Fe,function(Te){return this._invoke(Fe,Te)})})}function td(it,Fe){function Te(bn,Or,Ii,ba){var Gr=Qn(it[bn],it,Or);if("throw"!==Gr.type){var Tc=Gr.arg,tn=Tc.value;return tn&&"object"==typeof tn&&ca.call(tn,"__await")?Fe.resolve(tn.__await).then(function(js){Te("next",js,Ii,ba)},function(js){Te("throw",js,Ii,ba)}):Fe.resolve(tn).then(function(js){Tc.value=js,Ii(Tc)},function(js){return Te("throw",js,Ii,ba)})}ba(Gr.arg)}var At;this._invoke=function kn(bn,Or){function Ii(){return new Fe(function(ba,Gr){Te(bn,Or,ba,Gr)})}return At=At?At.then(Ii,Ii):Ii()}}function yt(it,Fe){var Te=it.iterator[Fe.method];if(Te===Ye){if(Fe.delegate=null,"throw"===Fe.method){if(it.iterator.return&&(Fe.method="return",Fe.arg=Ye,yt(it,Fe),"throw"===Fe.method))return Ci;Fe.method="throw",Fe.arg=new TypeError("The iterator does not provide a 'throw' method")}return Ci}var At=Qn(Te,it.iterator,Fe.arg);if("throw"===At.type)return Fe.method="throw",Fe.arg=At.arg,Fe.delegate=null,Ci;var kn=At.arg;return kn?kn.done?(Fe[it.resultName]=kn.value,Fe.next=it.nextLoc,"return"!==Fe.method&&(Fe.method="next",Fe.arg=Ye),Fe.delegate=null,Ci):kn:(Fe.method="throw",Fe.arg=new TypeError("iterator result is not an object"),Fe.delegate=null,Ci)}function os(it){var Fe={tryLoc:it[0]};1 in it&&(Fe.catchLoc=it[1]),2 in it&&(Fe.finallyLoc=it[2],Fe.afterLoc=it[3]),this.tryEntries.push(Fe)}function yb(it){var Fe=it.completion||{};Fe.type="normal",delete Fe.arg,it.completion=Fe}function Qr(it){this.tryEntries=[{tryLoc:"root"}],it.forEach(os,this),this.reset(!0)}function Hn(it){if(it){var Fe=it[L];if(Fe)return Fe.call(it);if("function"==typeof it.next)return it;if(!isNaN(it.length)){var Te=-1,At=function kn(){for(;++Te=0;--kn){var bn=this.tryEntries[kn],Or=bn.completion;if("root"===bn.tryLoc)return At("end");if(bn.tryLoc<=this.prev){var Ii=ca.call(bn,"catchLoc"),ba=ca.call(bn,"finallyLoc");if(Ii&&ba){if(this.prev=0;--At){var kn=this.tryEntries[At];if(kn.tryLoc<=this.prev&&ca.call(kn,"finallyLoc")&&this.prev=0;--Te){var At=this.tryEntries[Te];if(At.finallyLoc===Fe)return this.complete(At.completion,At.afterLoc),yb(At),Ci}},catch:function(Fe){for(var Te=this.tryEntries.length-1;Te>=0;--Te){var At=this.tryEntries[Te];if(At.tryLoc===Fe){var kn=At.completion;if("throw"===kn.type){var bn=kn.arg;yb(At)}return bn}}throw new Error("illegal catch attempt")},delegateYield:function(Fe,Te,At){return this.delegate={iterator:Hn(Fe),resultName:Te,nextLoc:At},"next"===this.method&&(this.arg=Ye),Ci}},Ht}(Ul.exports);try{regeneratorRuntime=$r}catch(Ht){"object"==typeof globalThis?globalThis.regeneratorRuntime=$r:Function("r","regeneratorRuntime = r")($r)}}},function(Ul){Ul(Ul.s=133)}]); \ 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 6616da64..f4676e3a 100644 --- a/server/src/uds/templates/uds/admin/index.html +++ b/server/src/uds/templates/uds/admin/index.html @@ -78,6 +78,7 @@ return s; } } + var csrf = { csrfToken: '{{ csrf_token }}', csrfField: '{{ csrf_field }}' }; if (window.top !== window.self) { window.location.href = 'https://www.udsenterprise.com'; @@ -98,7 +99,7 @@ - + \ No newline at end of file